Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/rentals.picotech.app/public_html/node_modules/jsdom/lib/jsdom/living/nodes/ drwxr-xr-x | |
| Viewing file: Select action/file-type: "use strict";
const NodeListImpl = require("./NodeList-impl").implementation;
class RadioNodeListImpl extends NodeListImpl {
// https://html.spec.whatwg.org/multipage/common-dom-interfaces.html#dom-radionodelist-value
// Note in general the spec says to manipulate/consult checkedness, but we use `checked` instead
// because the spec isn't very good here: https://github.com/whatwg/html/issues/7612.
get value() {
this._update();
const element = this._list.find(e => e._localName === "input" && e.type === "radio" && e.checked);
if (element === undefined) {
return "";
}
if (!element.hasAttributeNS(null, "value")) {
return "on";
}
return element.getAttributeNS(null, "value");
}
set value(value) {
let element;
if (value === "on") {
element = this._list.find(
e => e._localName === "input" &&
e.type === "radio" &&
(!e.hasAttributeNS(null, "value") || e.getAttributeNS(null, "value") === value)
);
} else {
element = this._list.find(
e => e._localName === "input" &&
e.type === "radio" &&
(e.hasAttributeNS(null, "value") && e.getAttributeNS(null, "value") === value)
);
}
if (element) {
element.checked = true;
}
}
}
module.exports = {
implementation: RadioNodeListImpl
};
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0043 ]-- |