improve comments

This commit is contained in:
Minas Keshishyan 2020-02-03 15:57:17 +04:00
parent a73bf56d39
commit 7e15438af2

View file

@ -445,7 +445,7 @@ export default class HTMLElement extends Node {
* @param {string|number} value The value to set, or null / undefined to remove an attribute
*/
setAttribute(key: string, value: string | number) {
// Update the this.attributes
// Invalidate current this.attributes
if (this._attrs) {
delete this._attrs;
}