[webkit-dev] Feature Announcement: Adding Document.parse()

Rafael Weinstein rafaelw at chromium.org
Mon Jun 4 13:25:31 PDT 2012


Publics-WebApps has arrived at agreement on an extension to the
fragment parsing algorithm which doesn't require a context element.
The basic idea is that the parser picks a context element based on the
contents of the provided markup.

The full semantics are described here:
http://lists.w3.org/Archives/Public/public-webapps/2012AprJun/0883.html

This mechanism is exposed through a new API call: Document.parse(). It
takes a DOMString of markup and returns a document fragment which
contains the parsed DOM.

There are a few details remaining to be sorted out and this feature
will need spec changes to land in both HTML (which contains the
parser) as well a DOM Parsing and Serialization (which will define the
API) - the editors of the respective specs are on board with the
proposal.

I've worked with abarth, eseidel, rniwa, ojan & darin in prepping the
patch, which I'd like to submit now for review. There will be some
follow on work, but the bulk will land with:
https://bugs.webkit.org/show_bug.cgi?id=84646

Let me know if anyone has questions or concerns.

Cheers
Rafael


More information about the webkit-dev mailing list