Bug 19889 - [Templates]: Behavior in an XHTML document should match HTML
Summary: [Templates]: Behavior in an XHTML document should match HTML
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: 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:


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