Sign in to follow this  
Servant of the Lord

Code block in thread warping entire page

Recommended Posts

Was just browsing and came across this thread: [url="http://www.gamedev.net/topic/628812-need-some-help-on-tic-tac-toe-player-turn/"]http://www.gamedev.n...oe-player-turn/[/url]

Here's a screenshot of what's happening for me in Google Chrome on Windows 7 32bit:

[img]http://img840.imageshack.us/img840/5866/blahsm.png[/img]

The C++ code that the user has displayed in a [ code ] box is also copied above the entire webpage (but not formatted or syntax highlighted).

This doesn't normally happen for me, this is the first time I've encountered it, and it doesn't seem to be occurring for other threads.

Share this post


Link to post
Share on other sites
frob    44908
That is a known bug that has [url="http://www.gamedev.net/topic/626866-potential-htmljavascript-injection-exploit-with-source-tags-3/"]been[/url] [url="http://www.gamedev.net/topic/624417-mutilated-mobile-view/"]discussed[/url] [url="http://www.gamedev.net/topic/620446-how-knackered-is-your-code-paste/page__p__4914648#entry4914648"]before[/url].

It has several other known side effects, such as preventing the "edit" and other buttons from working correctly.

Other than looking ugly, I don't think there are any major problems that come from the bug. Hopefully the hard-working people who write the code will have a fix some day.

Share this post


Link to post
Share on other sites
Ah ok, good to know you guys are aware of it. [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]

As you mentioned, it messed up the buttons for me. The buttons work (submits the posts, upvotes the users), but don't show the results until you manually refresh the page.
The whole page also lags up pretty bad, but if the problem only occurs once in a blue moon, then that's fine.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this