happy-dom-without-node
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.
22 lines • 479 B
JavaScript
import NodeList from '../node/NodeList.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) {
if (node.checked) {
return node.value;
}
}
return null;
}
}
//# sourceMappingURL=RadioNodeList.js.map