happy-dom
Version:
Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.
23 lines • 560 B
JavaScript
import NodeList from '../node/NodeList.js';
import * as PropertySymbol from '../../PropertySymbol.js';
/**
* RadioNodeList
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/RadioNodeList
*/
export default class RadioNodeList extends NodeList {
/**
* Returns value.
*
* @returns Value.
*/
get value() {
for (const node of this[PropertySymbol.items]) {
if (node.checked) {
return node.value;
}
}
return null;
}
}
//# sourceMappingURL=RadioNodeList.js.map