<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>20468</bug_id>
          
          <creation_ts>2012-12-21 01:33:04 +0000</creation_ts>
          <short_desc>[Components]: specify link rel=&quot;components&quot;</short_desc>
          <delta_ts>2013-03-07 23:27:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Component Model</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>20683</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="John Messerly">jmesserly</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>dominicc</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80461</commentid>
    <comment_count>0</comment_count>
    <who name="John Messerly">jmesserly</who>
    <bug_when>2012-12-21 01:33:04 +0000</bug_when>
    <thetext>Apologies if I missed this. I saw it in the explainer but not in the current specs (template, shadow, component). 

I was asked a question today: is the component HTML file parsed as a normal HTML document (i.e. it should have doctype, html, body, etc) or can it just start with &lt;element&gt;? A related question is: what happens if it has other things, like top-level scripts that are not contained in &lt;element&gt;? I have my suspicion (that it is a normal HTML document) but it would be nice to have something a spec to point at.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80468</commentid>
    <comment_count>1</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2012-12-21 07:13:09 +0000</bug_when>
    <thetext>I have heard an idea espoused that component documents *can* be HTML documents but elements outside component definitions are inert when loaded externally. Nor is the document accessible through DOM.

This allows “self documenting” components with documentation in the HTML file along with the component definition. That file may use instances of the components in the file. This can be viewed as a standalone document.

Of course, someone seeking to minimize size would not use self-documenting components in a production environment.

There is an attack vector where documents with inline component definitions are loaded cross-domain (basically the equivalent of cross-site script inclusion).

Thus the packaging specification should specify that CORS is required for cross-site components.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84098</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-03-07 23:27:38 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/components/index.html#link-type-component</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>