- From: Simon Pieters <zcorpan@gmail.com>
- Date: Wed, 06 Jun 2007 23:26:32 +0200
On Wed, 06 Jun 2007 08:11:05 +0200, Ian Hickson <ian at hixie.ch> wrote: > The spec says: > > # If the element's contents are not conformant, it is possible that > # the roundtripping through innerHTML will not work. For instance, if > # the element is a textarea element to which a Comment node has been > # appended, then assigning innerHTML to itself will result in the > # comment being displayed in the text field. Similarly, if, as a > # result of DOM manipulation, the element contains a comment that > # contains the literal string "-->", then when the result of > # serialising the element is parsed, the comment will be truncated at > # that point and the rest of the comment will be interpreted as > # markup. Another example would be making a script element contain a > # text node with the text string "</script>". > > It currently says this for innerHTML. Should I say it in other places > too? > Or would something else be better? It's ok as it is now. -- Simon Pieters
Received on Wednesday, 6 June 2007 14:26:32 UTC