23

Looking at the source of the Hello World! box, you see this:

<p><p>This is a collaboratively edited question and answer site for <b>professional and enthusiast programmers</b>. It's 100% free, no registration required.</p></p>

There are two opening <p> tags and two closing </p> tags, which the browser interprets as this:

<p></p>
<p>This is a collaboratively edited question and answer site for <b>professional and enthusiast programmers</b>. It's 100% free, no registration required.</p>
<p></p>

and produces this validation error:

Error Line 2786, Column 177: No p element in scope but a p end tag seen.

…d enthusiast programmers</b>. It's 100% free, no registration required.</p></p>

This error is the only one preventing the front page of Stack Overflow from being "valid" HTML5.

4
  • 8
    fixitfixitfixit
    – Ben Brocka
    May 11, 2012 at 21:18
  • I imagine the scope that the validation error refers to is the parser/tokenizer resolving the first closing </p> tag thus no longer being in the scope of a paragraph, then encountering the second closing </p> tag which it's not expecting anymore since the last paragraph was just closed. May 11, 2012 at 21:19
  • @BoltClock'saUnicorn: The error was referring to the scoped attribute that was supposed to be on the <style> element (which I have personally never heard of before). The link to its corresponding documentation was dead, though.
    – animuson StaffMod
    May 11, 2012 at 21:36
  • @animuson: Ah, scoped stylesheets in HTML5/CSS. I've heard passing mentions of them in the www-style lists, but don't know much about them myself. May 11, 2012 at 21:42

1 Answer 1

3

This is now fixed and will be rolling out with the next build.

You must log in to answer this question.

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