Sha256: edd531d033f1f846b2da45dfc8fe731bd3992f8490e754e0763a993b66955add
Contents?: true
Size: 1.03 KB
Versions: 26
Compression:
Stored size: 1.03 KB
Contents
"use strict"; class ElementInternalsImpl { constructor(globalObject, args, { targetElement }) { this._targetElement = targetElement; } get shadowRoot() { const shadow = this._targetElement._shadowRoot; if (!shadow || !shadow._availableToElementInternals) { return null; } return shadow; } // https://html.spec.whatwg.org/#reflecting-content-attributes-in-idl-attributes _reflectGetTheElement() { return this._targetElement; } _reflectGetTheContentAttribute(reflectedContentAttributeName) { return this._targetElement._internalContentAttributeMap.get(reflectedContentAttributeName) ?? null; } _reflectSetTheContentAttribute(reflectedContentAttributeName, value) { this._targetElement._internalContentAttributeMap.set(reflectedContentAttributeName, value); } _reflectDeleteTheContentAttribute(reflectedContentAttributeName) { this._targetElement._internalContentAttributeMap.delete(reflectedContentAttributeName); } } module.exports = { implementation: ElementInternalsImpl };
Version data entries
26 entries across 26 versions & 1 rubygems