Implement RadioNodeList

This commit is contained in:
Keith Yeung 2016-01-22 03:24:28 -05:00
parent e93a460db4
commit 9e3af70941
6 changed files with 175 additions and 11 deletions

View file

@ -8,9 +8,3 @@ interface HTMLFormControlsCollection : HTMLCollection {
// inherits length and item()
// getter (RadioNodeList or Element)? namedItem(DOMString name); // shadows inherited namedItem()
};
/*
interface RadioNodeList : NodeList {
attribute DOMString value;
};
*/

View file

@ -8,8 +8,9 @@
*/
interface NodeList {
[Pure]
readonly attribute unsigned long length;
[Pure]
getter Node? item(unsigned long index);
[Pure]
readonly attribute unsigned long length;
// iterable<Node>;
};

View file

@ -0,0 +1,9 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#radionodelist
interface RadioNodeList : NodeList {
attribute DOMString value;
};