From 7e15438af25b25b29889fe8229db6594ea074e96 Mon Sep 17 00:00:00 2001 From: Minas Keshishyan Date: Mon, 3 Feb 2020 15:57:17 +0400 Subject: [PATCH] improve comments --- src/nodes/html.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nodes/html.ts b/src/nodes/html.ts index 9c2edac..2972f35 100644 --- a/src/nodes/html.ts +++ b/src/nodes/html.ts @@ -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; }