W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2010

Please special-case "html" as the context of Range.createContextualFragment when the doc is an HTML doc

From: Henri Sivonen <hsivonen@iki.fi>
Date: Mon, 6 Sep 2010 01:20:54 -0700 (PDT)
To: public-webapps@w3.org
Cc: Ian Hickson <ian@hixie.ch>
Message-ID: <1374134814.484343.1283761254370.JavaMail.root@cm-mail03.mozilla.org>
For a future revision of DOM Range:

Please specify that when the document associated with Range is an HTML document (has its HTMLness bit set per HTML5) and the context node (startContainer of the Range) has local name "html" in the XHTML namespace, the context passed to the HTML fragment parsing algorithm should be "body" in the XHTML namespace instead. This is required for compat with existing scripts.

See https://bugzilla.mozilla.org/show_bug.cgi?id=585819 and dependencies/duplicates.

(Also, if the document is an HTML document and the range doesn't have an identifiable context element node even after walking the parent chain, the context passed to the HTML fragment parsing algorithm should be "body" in the XHTML namespace. I don't know DOM Range well enough to say how this situation can arise.)

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/
Received on Monday, 6 September 2010 08:21:31 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:40 GMT