<?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>21887</bug_id>
          
          <creation_ts>2013-05-01 03:49:11 +0000</creation_ts>
          <short_desc>[Custom]: Add a note about using TYPE and NAMESPACE to identify definitions despite NAMESPACE being redundant</short_desc>
          <delta_ts>2013-05-21 22:19:07 +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>18720</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dominic Cooney">dominicc</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87060</commentid>
    <comment_count>0</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2013-05-01 03:49:11 +0000</bug_when>
    <thetext>The steps for register say &quot;If there already exists a definition with the same TYPE, throw a NotSupportedError and stop.&quot; This means that TYPE uniquely specifies a definition.

However when referring to definitions, the spec usually (always?) refers to them by TYPE and NAMESPACE. For example, this from parsing:

&quot;Let ELEMENT be the result of creating a node implementing the interface appropriate for the element type corresponding to TYPE and NAMESPACE&quot;

I agree that this &quot;TYPE and NAMESPACE&quot; is a convenient way to sneak in a namespace check without complicating steps with explicit exits for mismatched namespaces. However it would be nice if there was non-normative language pointing out that the spec does this and there is this implicit namespace checking going on all over the place, which when it fails, is the same as a definition not being available.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88029</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-05-21 22:19:07 +0000</bug_when>
    <thetext>I think I&apos;d rather just make this checks explicit: https://dvcs.w3.org/hg/webcomponents/rev/e96be051a09a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>