Re: [w3c/DOM-Parsing] should createContextualFragment be added in Document / DocumentFragment? (#33)

Hi, right sorry

Basically I often need this feature 'isomorphically' (browser + node), [jsdom](https://github.com/tmpvar/jsdom/issues/31, 7#issuecomment-343902148) has a convenient `JSDOM.fragment(str)` static helper.

I wonder a bit why it was added in Range.prototype, it doesn't even return a Range. So the current way to access createContextualFragment in DOM is not practical, maybe you would agree

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/DOM-Parsing/issues/33#issuecomment-343922580

Received on Monday, 13 November 2017 13:44:37 UTC