<?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>27978</bug_id>
          
          <creation_ts>2015-02-07 19:15:55 +0000</creation_ts>
          <short_desc>[Custom]: attachedCallback has no protocol for indicating that the custom tag is not applicable in this context</short_desc>
          <delta_ts>2015-07-06 08:10:42 +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>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</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>14968</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Randy Harmon">rjharmon0316+w3</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>dominicc</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>117741</commentid>
    <comment_count>0</comment_count>
    <who name="Randy Harmon">rjharmon0316+w3</who>
    <bug_when>2015-02-07 19:15:55 +0000</bug_when>
    <thetext>I want to be able to call out cases where a custom tag has been used in a context where it&apos;s just not applicable.  &lt;tr&gt; outside a &lt;table&gt; is a traditional HTML example of this scenario, but we don&apos;t seem to have any allowances for that scenario in the custom elements spec.

&quot;attachedCallback
Unless specified otherwise, this callback must be enqueued whenever custom element is inserted into a document and this document has a browsing context.
&quot;

I was thinking that the component author should be able to raise an exception from the attachedCallback to indicate that it&apos;s a wrong context for creating the element.  Not that we can&apos;t console.log() to let component-users know about the problem, but so that the user-agent can have the indication that the element is invalid, perhaps triggering a visual treatment for the tag in developer tools.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117755</commentid>
    <comment_count>1</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2015-02-09 02:31:58 +0000</bug_when>
    <thetext>The treatment of elements in developer tools aren&apos;t really specified in any W3C specifications as far as I know. For specific browsers you could file a bug, eg for Chrome at crbug.com/new .

I could be wrong, but I think in Chrome if attachedCallback throws an exception it will be logged to the console in Developer Tools. If not, file a bug at crbug!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121694</commentid>
    <comment_count>2</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2015-07-06 08:10:42 +0000</bug_when>
    <thetext>Moved to https://github.com/w3c/webcomponents/issues/151</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>