diff --git a/src/types/YXmlElement.js b/src/types/YXmlElement.js index c16e7abb..c9599de8 100644 --- a/src/types/YXmlElement.js +++ b/src/types/YXmlElement.js @@ -89,6 +89,7 @@ export class YXmlElement extends YXmlFragment { * Removes an attribute from this YXmlElement. * * @param {String} attributeName The attribute name that is to be removed. + * @return {YXmlElement} Instance of the YXmlElement. * * @public */ @@ -100,6 +101,7 @@ export class YXmlElement extends YXmlFragment { } else { /** @type {Map} */ (this._prelimAttrs).delete(attributeName) } + return this } /** @@ -107,6 +109,7 @@ export class YXmlElement extends YXmlFragment { * * @param {String} attributeName The attribute name that is to be set. * @param {String} attributeValue The attribute value that is to be set. + * @return {YXmlElement} Instance of the YXmlElement. * * @public */ @@ -118,6 +121,7 @@ export class YXmlElement extends YXmlFragment { } else { /** @type {Map} */ (this._prelimAttrs).set(attributeName, attributeValue) } + return this } /**