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 18738 - [Custom]: Specify that type selectors match all derived types
Summary: [Custom]: Specify that type selectors match all derived types
Status: RESOLVED INVALID
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 18720
  Show dependency treegraph
 
Reported: 2012-08-29 22:01 UTC by Dimitri Glazkov
Modified: 2013-04-10 21:00 UTC (History)
3 users (show)

See Also:


Attachments

Description Dimitri Glazkov 2012-08-29 22:01:18 UTC
Since we're using custom tags now, we need to modify the meaning of type selector to match tag names of all elements in the prototype chain.
Comment 1 Olli Pettay 2012-08-30 03:48:30 UTC
Could you explain what this is actually about.
(I think you mentioned this last week, and this still feels überscary :) )
Special casing APIs makes them in general worse.

Also, we need to make sure to not slow down selector matching.
Comment 2 Dimitri Glazkov 2012-10-29 21:27:03 UTC
I think it was Boris who came up with this.

http://dev.w3.org/csswg/selectors4/#type-selectors

In order for <x-button> (a subclass of HTMLButtonElement) to also match UA styles for <button>, we redefine "element type" to mean:

1) the element itself -- x-button
2) all types it is inherited from -- button.
Comment 3 Dimitri Glazkov 2012-10-29 22:15:11 UTC
Tab, what's the likelihood of something like this flying well with CSS WG?
Comment 4 Tab Atkins Jr. 2012-10-29 22:49:49 UTC
Good question!  I dunno.  I mean, *ultimately* it's the responsibility of the host language, not CSS, to define the tree that Selectors match over.  It can potentially define *whatever it wants* to match the string in a "tag" selector, or a "class" selector.

However, we should poke at the CSSWG to make sure other people don't think we're crazy for doing this.
Comment 5 Dimitri Glazkov 2013-04-10 21:00:27 UTC
No longer necessary. Elements, derived from built-in HTML elements are required to use type extensions.