MCPcopy
hub / github.com/jsdom/jsdom / index

Method index

lib/jsdom/living/nodes/HTMLOptionElement-impl.js:94–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92 }
93
94 get index() {
95 const select = closest(this, "select");
96 if (select === null) {
97 return 0;
98 }
99
100 return select.options.indexOf(this);
101 }
102
103 get selected() {
104 return this._selectedness;

Callers 15

splitTextMethod · 0.80
normalizeMethod · 0.80
_insertMethod · 0.80
_removeMethod · 0.80
setStartBeforeMethod · 0.80
setStartAfterMethod · 0.80
setEndBeforeMethod · 0.80
setEndAfterMethod · 0.80
deleteContentsMethod · 0.80
intersectsNodeMethod · 0.80
selectNodeWithinRangeFunction · 0.80

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected