Index: core/html/HTMLCollection.idl |
diff --git a/core/html/HTMLCollection.idl b/core/html/HTMLCollection.idl |
index cab83cd617795259afefce1767726d3deb9e7266..85c2d5acb74e618a2c899948fed011e55cac5c1a 100644 |
--- a/core/html/HTMLCollection.idl |
+++ b/core/html/HTMLCollection.idl |
@@ -19,14 +19,15 @@ |
* Boston, MA 02110-1301, USA. |
*/ |
+// https://dom.spec.whatwg.org/#interface-htmlcollection |
+ |
[ |
- Custom=Wrap, |
DependentLifetime, |
SetWrapperReferenceFrom=ownerNode, |
WillBeGarbageCollected, |
] interface HTMLCollection { |
readonly attribute unsigned long length; |
- getter Element item([Default=Undefined] optional unsigned long index); |
- getter Element namedItem(DOMString name); |
+ // FIXME: The index argument should not be optional. |
+ getter Element? item([Default=Undefined] optional unsigned long index); |
+ getter Element? namedItem(DOMString name); |
}; |
- |