[whatwg] [WA1] INS/DEL and omitted </p> tags

Simon Pieters zcorpan at hotmail.com
Thu Nov 24 10:53:00 PST 2005


Hi,

Omitted </p> tags seems to be a bit of an issue in combination with INS and 
DEL elements. How should a UA parse the following markup snippet?

<p>foo<ins><p>bar</ins>

I guess the following might make sense:

1. At the first <p> tag, open the first P.
2. At the <ins> tag, open INS as a child of the first P.
3. At the second <p> tag, undo step 2 and imply </p> before <ins>, then open 
the second P as a child of INS
4. At the </ins> tag, imply </p> before </ins>.

Then the above would be equivalent to:

<p>foo</p><ins><p>bar</p></ins>

The following is what browsers do now:

Opera/9.0 (Windows NT 5.1; U; en)
<P>foo<INS></INS></P><P>bar</P>

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051120 
Firefox/1.6a1
<p>foo<ins><p>bar</p></ins></p>

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
<P>foo<INS><P>bar</INS></P>
innerHTML for the first P: foo<INS>
innerHTML for INS: <P>bar
innerHTML for the second P: bar</INS>

Regards,
Simon Pieters





More information about the whatwg mailing list