MCPcopy
hub / github.com/jsdom/jsdom / constructor

Method constructor

lib/jsdom/living/nodes/HTMLCollection-impl.js:7–16  ·  view source on GitHub ↗
(globalObject, args, privateData)

Source from the content-addressed store, hash-verified

5
6exports.implementation = class HTMLCollectionImpl {
7 constructor(globalObject, args, privateData) {
8 this._list = [];
9 this._version = -1;
10 this._element = privateData.element;
11 this._query = privateData.query;
12
13 this._globalObject = globalObject;
14
15 this._update();
16 }
17 get length() {
18 this._update();
19 return this._list.length;

Callers

nothing calls this directly

Calls 1

_updateMethod · 0.95

Tested by

no test coverage detected