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 20357 - [Shadow]: Wrong argument names of ShadowRoot object methods
Summary: [Shadow]: Wrong argument names of ShadowRoot object methods
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 trivial
Target Milestone: ---
Assignee: Hayato Ito
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 22716
  Show dependency treegraph
 
Reported: 2012-12-12 09:28 UTC by Sergey G. Grekhov
Modified: 2013-10-24 07:54 UTC (History)
4 users (show)

See Also:


Attachments

Description Sergey G. Grekhov 2012-12-12 09:28:34 UTC
In Shadow DOM specification (https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#shadow-root-object) the following methods of Shadow rot object are listed:

    NodeList getElementsByClassName(DOMString tagName);
    NodeList getElementsByTagName(DOMString className);

Argument name of getElementsByClassName() is tagName and argument name of getElementsByTagName() is className. Should be vice versa.
Comment 1 Hayato Ito 2013-10-24 07:54:25 UTC
Fixed at https://dvcs.w3.org/hg/webcomponents/rev/f2908f2808a9