On Wed, May 9, 2012 at 11:10 AM, Henri Sivonen <hsivo...@iki.fi> wrote: > On Wed, May 9, 2012 at 11:39 AM, James Graham <jgra...@opera.com> wrote: >> document.parse(string, ["auto"|"html"|"svg"|"mathml"|"xml"]) > > Makes sense at least for the options other than "auto".
The idea is that whatever comes out of this can also be used for the <template> element. There is no known context there. And for fragment parsing deployed thus far (jQuery) the context is not known either. If the context was known we would not need to find it in the first place. So assuming some high-level context (svg/math/...) is known seems kind of weird to me. -- Anne — Opera Software http://annevankesteren.nl/ http://www.opera.com/