12015-08-21 Chris Dumez <cdumez@apple.com>
2
3 NodeList should not have a named getter
4 https://bugs.webkit.org/show_bug.cgi?id=148117
5
6 Reviewed by NOBODY (OOPS!).
7
8 Drop the named property getter on NodeList to match the specification:
9 https://dom.spec.whatwg.org/#interface-nodelist
10
11 This change could be a bit risky but:
12 1. Firefox and IE never had this named property getter on NodeList.
13 2. Chrome successfuly dropped this named property getter in early 2014:
14 https://src.chromium.org/viewvc/blink?revision=166356&view=revision
15 3. Our named property getter on NodeList is only partly functional:
16 It only matches by 'id' attribute, not by 'name' attribute.
17 4. Our APIs that were wrongly returning a NodeList instead of an
18 HTMLCollection (getElementsByTagName() / getElementsByClassName())
19 have been fixed in r188735 and r188809. HTMLCollection does have
20 a named property getter.
21 5. This named getter adds code complexity.
22
23 * bindings/js/JSNodeListCustom.cpp:
24 (WebCore::createWrapper): Deleted.
25 * dom/ChildNodeList.cpp:
26 (WebCore::ChildNodeList::invalidateCache): Deleted.
27 * dom/ChildNodeList.h:
28 * dom/LiveNodeList.cpp:
29 * dom/LiveNodeList.h:
30 * dom/NodeList.h:
31 * dom/NodeList.idl:
32 * dom/StaticNodeList.cpp:
33 (WebCore::StaticElementList::length): Deleted.
34 (WebCore::StaticElementList::item): Deleted.
35 * dom/StaticNodeList.h:
36 * html/HTMLCollection.h:
37