Hi,<div><br></div><div>In HTML fragment serialization algorithm, we skip elements with empty content model in step 2.2:</div><div><span style="font-family:sans-serif, 'Droid Sans Fallback';font-size:medium;line-height:21px">If <var title="">current node</var> is an <code style="font-size:inherit;font-family:monospace, 'Droid Sans Fallback', sans-serif;font-variant:normal;color:rgb(255, 69, 0)"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-map-element.html#the-area-element" style="color:inherit;background-color:transparent;background-repeat:initial initial" target="_blank">area</a></code>, <code style="font-size:inherit;font-family:monospace, 'Droid Sans Fallback', sans-serif;font-variant:normal;color:rgb(255, 69, 0)"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-base-element" style="color:inherit;background-color:transparent;background-repeat:initial initial" target="_blank">base</a></code>, <code style="font-size:inherit;font-family:monospace, 'Droid Sans Fallback', sans-serif;font-variant:normal;color:rgb(255, 69, 0)"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#basefont" style="color:inherit;background-color:transparent;background-repeat:initial initial" target="_blank">basefont</a></code>, <code style="font-size:inherit;font-family:monospace, 'Droid Sans Fallback', sans-serif;font-variant:normal;color:rgb(255, 69, 0)"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#bgsound" style="color:inherit;background-color:transparent;background-repeat:initial initial" target="_blank">bgsound</a></code>, <code style="font-size:inherit;font-family:monospace, 'Droid Sans Fallback', sans-serif;font-variant:normal;color:rgb(255, 69, 0)"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-br-element" style="color:inherit;background-color:transparent;background-repeat:initial initial" target="_blank">br</a></code>, <code style="font-size:inherit;font-family:monospace, 'Droid Sans Fallback', sans-serif;font-variant:normal;color:rgb(255, 69, 0)"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/tabular-data.html#the-col-element" style="color:inherit;background-color:transparent;background-repeat:initial initial" target="_blank">col</a></code>, <code style="font-size:inherit;font-family:monospace, 'Droid Sans Fallback', sans-serif;font-variant:normal;color:rgb(255, 69, 0)"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#the-embed-element" style="color:inherit;background-color:transparent;background-repeat:initial initial" target="_blank">embed</a></code>, <code style="font-size:inherit;font-family:monospace, 'Droid Sans Fallback', sans-serif;font-variant:normal;color:rgb(255, 69, 0)"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#frame" style="color:inherit;background-color:transparent;background-repeat:initial initial" target="_blank">frame</a></code>, <code style="font-size:inherit;font-family:monospace, 'Droid Sans Fallback', sans-serif;font-variant:normal;color:rgb(255, 69, 0)"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/grouping-content.html#the-hr-element" style="color:inherit;background-color:transparent;background-repeat:initial initial" target="_blank">hr</a></code>, <code style="font-size:inherit;font-family:monospace, 'Droid Sans Fallback', sans-serif;font-variant:normal;color:rgb(255, 69, 0)"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/embedded-content-1.html#the-img-element" style="color:inherit;background-color:transparent;background-repeat:initial initial" target="_blank">img</a></code>, <code style="font-size:inherit;font-family:monospace, 'Droid Sans Fallback', sans-serif;font-variant:normal;color:rgb(255, 69, 0)"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#the-input-element" style="color:inherit;background-color:transparent;background-repeat:initial initial" target="_blank">input</a></code>, <code style="font-size:inherit;font-family:monospace, 'Droid Sans Fallback', sans-serif;font-variant:normal;color:rgb(255, 69, 0)"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#the-keygen-element" style="color:inherit;background-color:transparent;background-repeat:initial initial" target="_blank">keygen</a></code>, <code style="font-size:inherit;font-family:monospace, 'Droid Sans Fallback', sans-serif;font-variant:normal;color:rgb(255, 69, 0)"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-link-element" style="color:inherit;background-color:transparent;background-repeat:initial initial" target="_blank">link</a></code>, <code style="font-size:inherit;font-family:monospace, 'Droid Sans Fallback', sans-serif;font-variant:normal;color:rgb(255, 69, 0)"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#meta" style="color:inherit;background-color:transparent;background-repeat:initial initial" target="_blank">meta</a></code>, <code style="font-size:inherit;font-family:monospace, 'Droid Sans Fallback', sans-serif;font-variant:normal;color:rgb(255, 69, 0)"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#the-param-element" style="color:inherit;background-color:transparent;background-repeat:initial initial" target="_blank">param</a></code>, or <code style="font-size:inherit;font-family:monospace, 'Droid Sans Fallback', sans-serif;font-variant:normal;color:rgb(255, 69, 0)"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-wbr-element" style="color:inherit;background-color:transparent;background-repeat:initial initial" target="_blank">wbr</a></code>element, then continue on to the next child node at this point.</span><br>


<div><br></div><div>For consistency, I propose to skip children of source and track elements as well.</div><div><br></div><div>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?</div>


<div><br></div><div>Best,<br clear="all">Ryosuke Niwa<br><font color="#999999">Software Engineer</font><div><font class="Apple-style-span" color="#999999"><a href="mailto:rniwa@webkit.org">rniwa@webkit.org</a></font></div>

<div><font class="Apple-style-span" color="#999999"><br></font></div>
</div></div>