This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 19889 - [Templates]: Behavior in an XHTML document should match HTML
Summary: [Templates]: Behavior in an XHTML document should match HTML
Status: RESOLVED FIXED
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
URL:
Whiteboard:
Keywords:
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

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