I was looking for the XMLHttpRequest object in a source page of Stack Overflow and couldn't find one. So, I tried switching off JavaScript in my browser (Google Chrome) to confirm whether Stack Overflow uses Ajax and found this weird HTML tag, <div id="noscript-padding"></div>, rendered uninterpreted at the top of the page.

Enter image description here

Is that a bug?

  • 3
    SO isn't meant to be viewed without JS, so the fact that you saw odd things can't be helped. – Asad Saeeduddin Jun 10 '13 at 16:41
  • 3
    @Asad: but then again the noscript id suggests that this was added specifically for JavaScript-less clients in mind, which kind of defeats the purpose. – Joachim Sauer Jun 10 '13 at 16:45
  • 7
    That is a webkit bug. Anything inside the <noscript> tag is treated as a text node when the page is loaded with JavaScript enabled. If you turn off JavaScript after the page is loaded, the <noscript> content may be shown as plain text. It is rendered correctly only when you load the page with JavaScript disabled. – Antony Jun 10 '13 at 17:23
  • I normally see a red bar on the top saying that I have scripts disabled in browser. – hjpotter92 Jun 10 '13 at 17:25
  • 2
    ...... element. – Grant Thomas Jun 10 '13 at 18:30

This is a bug in Chrome, where the content of the <noscript> tag is incorrectly interpreted as text the first time. It should be fine on subsequent refreshes, and there's not much that can be done about it on the Stack Exchange's end.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .