[whatwg] Serializing with child elements or following siblings</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=whatwg@lists.whatwg.org&amp;q=from:%22Simon+Pieters%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Simon Pieters</span></span></a></span> <span class="date"><a href="/search?l=whatwg@lists.whatwg.org&amp;q=date:20070620" rel="nofollow">Wed, 20 Jun 2007 12:51:11 -0700</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <tt>It seems that IE stops serializing .innerHTML after it has dealt with the </tt><tt>children of a &lt;plaintext&gt; element. </tt><pre style="margin: 0em;"> <a rel="nofollow" href="http://simon.html5.org/test/html/serializing/plaintext/">http://simon.html5.org/test/html/serializing/plaintext/</a></pre><pre> If we want to copy that, then change: Append the value of running the HTML fragment serialisation algorithm on the child element (thus recursing into this algorithm for that element), followed by a U+003C LESS-THAN SIGN (&lt;) character, a U+002F SOLIDUS (/) character, the element's tag name again, and finally a U+003E GREATER-THAN SIGN (&gt;) character. ...to: Append the value of running the HTML fragment serialisation algorithm on the child element (thus recursing into this algorithm for that element). If the child node is a plaintext element, then skip to the next step of this algorithm. Otherwise, append a U+003C LESS-THAN SIGN (&lt;) character, a U+002F SOLIDUS (/) character, the element's tag name again, and finally a U+003E GREATER-THAN SIGN (&gt;) character. -- Simon Pieters </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg07051.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="index.html#07052">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="maillist.html#07052">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg07057.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" > <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value="[whatwg] Serializing &lt;plaintext&gt; with child elements or following siblings"> <input type="hidden" name="msgid" value="op.tt8j25x47a8kvn@hp-a0a83fcd39d2"> <input type="hidden" name="relpath" value="whatwg@lists.whatwg.org/msg07052.html"> <input type="submit" value=" Simon Pieters "> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="whatwg@lists.whatwg.org"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search whatwg"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/whatwg@lists.whatwg.org/">whatwg - all messages</a></li> <li class="icons-about"><a href="/whatwg@lists.whatwg.org/info.html">whatwg - about the list</a></li> <li class="icons-expand"><a href="/search?l=whatwg@lists.whatwg.org&amp;q=subject:%22%5C%5Bwhatwg%5C%5D+Serializing+%3Cplaintext%3E+with+child+elements+or+following%09siblings%22&amp;o=newest&amp;f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg07051.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg07057.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray">op.tt8j25x47a8kvn@hp-a0a83fcd39d2</li> </ul> </div> </body> </html> <script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'9d1e9051afb42780',t:'MTc3MTc2NDE1MA=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script>