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 15154 - [Explainer]: Can you use a custom element definition on any element?
Summary: [Explainer]: Can you use a custom element definition on any element?
Status: RESOLVED INVALID
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: 14949
  Show dependency treegraph
 
Reported: 2011-12-12 21:32 UTC by Divya Manian
Modified: 2011-12-12 23:33 UTC (History)
0 users

See Also:


Attachments

Description Divya Manian 2011-12-12 21:32:35 UTC
In this:

<element extends="button" name="x-fancybutton">  <!-- definition -->
    …
</element>

<button is="x-fancybutton" onclick="showTimeClicked(event);">  <!-- use -->
    Show time
</button>


I guess it should be obvious ("no") but I wonder if, say in the example of the custom button definition, can a span use that definition?  so instead of <button is="x-fancy…" can you say <span is="x-fancy…"?
Comment 1 Divya Manian 2011-12-12 23:33:00 UTC
Ugh I didnt see the error handling at the end. Maybe it might just help to explain at the beginning that the elements it can be used on need to be same as the element it extends.