Bug 19889 - [Templates]: Behavior in an XHTML document should match HTML
[Templates]: Behavior in an XHTML document should match HTML
Status: RESOLVED FIXED
Product: WebAppsWG
Classification: Unclassified
Component: Component Model
unspecified
PC All
: P2 normal
: ---
Assigned To: Dimitri Glazkov
public-webapps-bugzilla
:
Depends on:
Blocks: 15476
  Show dependency treegraph
 
Reported: 2012-11-07 13:37 UTC by Adam Klein
Modified: 2013-01-16 23:35 UTC (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Klein 2012-11-07 13:37:38 UTC
To facilitate this, the spec should describe how to modify the tree construction algorithm when parsing XHTML. The easiest modification would be to, if the current node is an HTMLTemplateElement, push the HTMLTemplateElement.content DocumentFragment onto the stack of open elements instead of the template element itself. I've experimented with this approach in WebKit's libxml2-based parser and it seems to work reasonably well.
Comment 1 Olli Pettay 2012-11-07 13:42:18 UTC
But it is a very ugly approach. (Not that I know any non-ugly approaches.)
Comment 2 Rafael Weinstein 2013-01-16 23:35:16 UTC
https://dvcs.w3.org/hg/webcomponents/rev/5b30972d6372