diff --git a/lib/legacy/legacy-element-mixin.js b/lib/legacy/legacy-element-mixin.js index 8e38e62940..cfa17c6f0d 100644 --- a/lib/legacy/legacy-element-mixin.js +++ b/lib/legacy/legacy-element-mixin.js @@ -143,7 +143,12 @@ export const LegacyElementMixin = dedupingMixin((base) => { } } - /** @override */ + /** + * Sets the value of an attribute. + * @override + * @param {string} name The name of the attribute to change. + * @param {string} value The new attribute value. + */ setAttribute(name, value) { if (legacyNoObservedAttributes && !this._legacyForceObservedAttributes) { const oldValue = this.getAttribute(name); @@ -155,7 +160,11 @@ export const LegacyElementMixin = dedupingMixin((base) => { } } - /** @override */ + /** + * Removes an attribute. + * @override + * @param {string} name The name of the attribute to remove. + */ removeAttribute(name) { if (legacyNoObservedAttributes && !this._legacyForceObservedAttributes) { const oldValue = this.getAttribute(name);