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

Simon Pieters zcorpan at gmail.com
Wed Jun 20 12:50:55 PDT 2007


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



More information about the whatwg mailing list