Sha256: 9eef5294a30687a62b8bcea13b38de238148916c578d11df4405ec0107158409
Contents?: true
Size: 1.22 KB
Versions: 46
Compression:
Stored size: 1.22 KB
Contents
"use strict"; const { mixin } = require("../../utils"); const DOMTokenList = require("../generated/DOMTokenList"); const HTMLElementImpl = require("./HTMLElement-impl").implementation; const HTMLHyperlinkElementUtilsImpl = require("./HTMLHyperlinkElementUtils-impl").implementation; class HTMLAnchorElementImpl extends HTMLElementImpl { constructor(globalObject, args, privateData) { super(globalObject, args, privateData); this._htmlHyperlinkElementUtilsSetup(); this._hasActivationBehavior = true; } _activationBehavior() { this._followAHyperlink(); } get relList() { if (this._relList === undefined) { this._relList = DOMTokenList.createImpl(this._globalObject, [], { element: this, attributeLocalName: "rel" }); } return this._relList; } get text() { return this.textContent; } set text(v) { this.textContent = v; } _attrModified(name, value, oldValue) { super._attrModified(name, value, oldValue); if (name === "rel" && this._relList !== undefined) { this._relList.attrModified(); } } } mixin(HTMLAnchorElementImpl.prototype, HTMLHyperlinkElementUtilsImpl.prototype); module.exports = { implementation: HTMLAnchorElementImpl };
Version data entries
46 entries across 46 versions & 2 rubygems