[whatwg] Experiments in end-tag attributes

Schuyler Duveen whatwg at graffitiweb.org
Tue Oct 6 11:19:59 PDT 2009


The html-parsing section of the spec and the browsers I've tested [1]
seem to be doing the right thing, however I'd love if this was noted as
a conforming pattern.  Probably more testing is prudent.

PROBLEM:
<p id="something-here">
  [ massive bloviation and many inner tags
  <p>including
Not-well indented p-tags
</p>
   </p> <!-- ad hoc solution! comment: id="something-here" -->

MORE ELEGANT ALTERNATIVE:
<p id="something-here">
 ....
</p id="something-here">

If it was noted as specifically conformant, this could possibly help
parsers in some cases, including the human variety.

cheers,
Schuyler Duveen

[1] Firefox, Safari, Chromium linux trunk, IE8



More information about the whatwg mailing list