From ec03b38df55f8fddf115d9c704babd0710966ccc Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Tue, 5 Sep 2017 14:35:48 +0800 Subject: [PATCH] Make item(undefined) act the same way as item("undefined") --- source | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source b/source index 9658a878cc6..6587d25c313 100644 --- a/source +++ b/source @@ -7106,7 +7106,8 @@ interface HTMLAllCollection { readonly attribute unsigned long length; getter Element? (unsigned long index); getter (HTMLCollection or Element)? namedItem(DOMString name); - (HTMLCollection or Element)? item(optional DOMString nameOrIndex); + (HTMLCollection or Element)? item(); + (HTMLCollection or Element)? item(DOMString nameOrIndex); // Note: HTMLAllCollection objects have a custom [[Call]] internal method in addition to regular // Web IDL semantics. @@ -7170,6 +7171,9 @@ interface HTMLAllCollection { method must return the result of getting the "all"-named element(s) from this HTMLAllCollection given name.

+

The item() method must return + null.

+

The item(nameOrIndex) method must return the result of getting the "all"-indexed or named element(s) from this HTMLAllCollection given