W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2007

[whatwg] Serializing <plaintext> with child elements or following siblings

From: Simon Pieters <zcorpan@gmail.com>
Date: Wed, 20 Jun 2007 21:50:55 +0200
Message-ID: <op.tt8j25x47a8kvn@hp-a0a83fcd39d2>
It seems that IE stops serializing .innerHTML after it has dealt with the  
children of a <plaintext> element.

    http://simon.html5.org/test/html/serializing/plaintext/


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 (<) character, a U+002F SOLIDUS (/)
    character, the element's tag name again, and finally a U+003E
    GREATER-THAN SIGN (>) 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 (<) character, a U+002F
    SOLIDUS (/) character, the element's tag name again, and finally a
    U+003E GREATER-THAN SIGN (>) character.

-- 
Simon Pieters
Received on Wednesday, 20 June 2007 12:50:55 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:56 UTC