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 18597 - [Templates]: Make <template> display:none by default
Summary: [Templates]: Make <template> display:none by default
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Tony Ross [MSFT]
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 15476
  Show dependency treegraph
 
Reported: 2012-08-16 18:16 UTC by Tony Ross [MSFT]
Modified: 2012-08-16 23:57 UTC (History)
1 user (show)

See Also:


Attachments

Description Tony Ross [MSFT] 2012-08-16 18:16:14 UTC
In section 9 of the current spec, Rendering HTML Templates, the rendering of the template element itself is defined as hosting an empty shadow tree. 

Rather than taking a dependency on Shadow DOM, this could be defined more simply as an addition to the default style sheet. This is also more consistent with the behavior of other 'hidden' elements in HTML (see http://dev.w3.org/html5/spec/rendering.html#hidden-elements):

    @namespace url(http://www.w3.org/1999/xhtml);
    template {
        display : none;
    }
Comment 1 Dimitri Glazkov 2012-08-16 18:24:28 UTC
this sounds good.
Comment 2 Rafael Weinstein 2012-08-16 18:27:11 UTC
Yup. Agree.
Comment 3 Tony Ross [MSFT] 2012-08-16 23:57:07 UTC
http://dvcs.w3.org/hg/webcomponents/rev/b31b922d9df6