Skip to content Skip to sidebar Skip to footer

Is The Conversion From Html To Dom And Back To Html Standardized?

I'm working on an rich-text editor that will be using ContentEditable. It's imperative that a document that is loaded into the browser (from the web server) is not altered in any w

Solution 1:

It's easy to demonstrate that the markup doesn't round-trip when the serialisation is performed with innerHTML or outerHTML.

Take markup that starts as <div id='mydiv'></div>. In IE9 that becomes <div id="mydiv"></div>. In IE8, it becomes <DIV id=mydiv></DIV>

Post a Comment for "Is The Conversion From Html To Dom And Back To Html Standardized?"