[whatwg] Descendents of source and track elements should be skipped when serializing HTML fragment (10.3)

The HTML parser expands the isindex element into a bunch of other
elements, so it never inserts that element into the tree.  Of course,
an isindex element could have been inserted via the DOM...

Adam


On Tue, Sep 7, 2010 at 4:44 PM, Ryosuke Niwa <ryosuke.niwa at gmail.com> wrote:
> Hi,
> In HTML fragment serialization algorithm, we skip elements with empty
> content model in step 2.2:
> If?current node?is
> an?area,?base,?basefont,?bgsound,?br,?col,?embed,?frame,?hr,?img,?input,?keygen,?link,?meta,?param,
> or?wbrelement, then continue on to the next child node at this point.
>
> For consistency, I propose to skip children of source and track elements as
> well.
> Also, the algorithm does not seem to specify the behavior on deprecated (or
> undocumented) elements such as isindex. ?Can we assume that the
> serialization of such elements are UA-defined?
> Best,
> Ryosuke Niwa
> Software Engineer
> rniwa at webkit.org
>

Received on Tuesday, 7 September 2010 17:20:50 UTC