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

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


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?


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:


The following is what browsers do now:

Opera/9.0 (Windows NT 5.1; U; en)

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051120 

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

Simon Pieters

More information about the whatwg mailing list