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 20282 - [Shadow]: The old-style getElement* accessors are old and should be gone
Summary: [Shadow]: The old-style getElement* accessors are old and should be gone
Status: RESOLVED DUPLICATE of bug 22515
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: 15480
  Show dependency treegraph
 
Reported: 2012-12-07 04:00 UTC by Dimitri Glazkov
Modified: 2013-07-17 20:17 UTC (History)
2 users (show)

See Also:


Attachments

Description Dimitri Glazkov 2012-12-07 04:00:53 UTC
"getElementById"
Comment 1 Olli Pettay 2012-12-07 12:45:01 UTC
What is wrong with getElementById?
It is still the fastest way to get element by id.
getElementsByTagName is also commonly used.
Comment 2 Ojan Vafai 2012-12-07 19:01:49 UTC
What's strange to me is that we have these on ShadowRoot, but not DocumentFragment. I'd like ShadowRoot to be as close to DocumentFragment as possible just to keep the platform simpler to wrap your head around.

That said, I really don't think we should expose getElementsBy*. We don't need more usages of live NodeLists in the platform.
Comment 3 Dimitri Glazkov 2013-07-17 20:17:53 UTC
These should live on DocumentFragment anyway.

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