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 13347 - introduce superglobal id="" and class=""
Summary: introduce superglobal id="" and class=""
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: DOM (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Anne
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-24 23:36 UTC by Anne
Modified: 2011-08-01 13:27 UTC (History)
8 users (show)

See Also:


Attachments

Description Anne 2011-07-24 23:36:28 UTC
Introduce Element.id, Element.className, and Element.classList. Make them dependent on attributes named "id" and "class", and work irrespective of the namespace of the element.
Comment 1 Jonas Sicking (Not reading bugmail) 2011-07-25 02:05:53 UTC
Does this mean that the "id" and "class" attributes would map to getElementById/#foo/.foo for all elements irrespective of namespace?

I'd be totally behind such a behavior. Last I suggested it a few years back I was met by silence from other browser vendors. Would be lovely if people were behind it now.
Comment 2 Anne 2011-07-25 06:24:12 UTC
(In reply to comment #1)
> Does this mean that the "id" and "class" attributes would map to
> getElementById/#foo/.foo for all elements irrespective of namespace?

Yes. I think we now have people from WebKit, Gecko, and Presto behind this. I will attempt to draft this.
Comment 3 Anne 2011-08-01 13:24:37 UTC
Now part of the draft: https://bitbucket.org/ms2ger/dom-core/changeset/29eb9f3c67e3