The W3C Dom deprecates the innerHTML property supported by IE. A few articles recommend using for DOM-compliant browsers a subroutine which uses createContextualFragment. But createContextualFragment is not part of the W3C DOM, it is a Netscape specific add-on which is supported by all Gecko-based browsers. Hence a pure W3C DOM browser would not support it.
How can I check (without needing a catalogue of all browsers ever made plus full specifications and bug lists) whether a browser supports createContextualFragment? I'm looking for something as easy as the well-known
if (document.getElementsByTagName("*") w3cdom = true
How can I check (without needing a catalogue of all browsers ever made plus full specifications and bug lists) whether a browser supports createContextualFragment? I'm looking for something as easy as the well-known
if (document.getElementsByTagName("*") w3cdom = true