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 20489 - [Custom]: Nothing ever defines what the "custom element name" of a random element is
Summary: [Custom]: Nothing ever defines what the "custom element name" of a random ele...
Status: RESOLVED DUPLICATE of bug 21063
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: 17103 20684
  Show dependency treegraph
 
Reported: 2012-12-22 00:33 UTC by Boris Zbarsky
Modified: 2013-02-20 19:02 UTC (History)
1 user (show)

See Also:


Attachments

Description Boris Zbarsky 2012-12-22 00:33:40 UTC
The upgrade algorigthm says:

  "For each element ELEMENT in TREE whose custom element name is NAME: "

but nothing defines, for an arbitrary element, what its custom element name is, as far as I can tell.

What might make the most sense here, in my opinion, is looking for elements whose namespace is the HTML namespace and whose localName is NAME. Unless NAME can be non-lowercase here, in which case things are a bit more complicated.
Comment 1 Dimitri Glazkov 2012-12-22 00:35:45 UTC
(In reply to comment #0)
> The upgrade algorigthm says:
> 
>   "For each element ELEMENT in TREE whose custom element name is NAME: "
> 
> but nothing defines, for an arbitrary element, what its custom element name
> is, as far as I can tell.

It's defined here (even linked from the sentence you selected)? http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html#dfn-custom-element-name

> 
> What might make the most sense here, in my opinion, is looking for elements
> whose namespace is the HTML namespace and whose localName is NAME. Unless
> NAME can be non-lowercase here, in which case things are a bit more
> complicated.
Comment 2 Boris Zbarsky 2012-12-22 01:11:24 UTC
No, that doesn't define it.  That defines the syntax of a custom element name.  It says nothing about how to extract one from a DOM node.  Note, specifically, that "element's tag name" is not defined in the text you cite.  Do you mean the DOM .tagName?  Or something else?
Comment 3 Boris Zbarsky 2012-12-22 01:11:58 UTC
And in particular, the concept of "tag name" does not appear anywhere in http://dom.spec.whatwg.org/
Comment 4 Dimitri Glazkov 2013-02-20 19:02:48 UTC
Pouring this over into bug 21063.

*** This bug has been marked as a duplicate of bug 21063 ***