On May 9, 2012 10:26 AM, "Simon Pieters" <simonp@opera.com> wrote: > > On Wed, 09 May 2012 19:01:42 +0200, Ian Hickson <ian@hixie.ch> wrote: > >> >> Quick alternative proposal that might work for both <template> parsing and >> DocumentFragment.innerHTML: >> >> Have createDocumentFragment() take as an argument a context element. >> Maybe also make it a mutable attribute of the object. Defaults to its >> owner document's body element or root element or some such. Null means >> no root element. >> >> var df = document.createDocumentFragment(document.body); >> df.contextElement = document.createElement('style'); > > > Or just string with the tag name, so it works the same as <template context>? What happens when I pass "a"? - RyosukeReceived on Thursday, 10 May 2012 06:23:29 UTC
This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:34 UTC