W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2005

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

From: Simon Pieters <zcorpan@hotmail.com>
Date: Thu, 24 Nov 2005 18:53:00 +0000
Message-ID: <BAY109-F6618729085E96EB9713E4B4540@phx.gbl>

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
Received on Thursday, 24 November 2005 10:53:00 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:43 UTC