mirror of
https://github.com/danbulant/node-html-parser
synced 2026-05-19 04:18:52 +00:00
improve comments
This commit is contained in:
parent
a73bf56d39
commit
7e15438af2
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
* @param {string|number} value The value to set, or null / undefined to remove an attribute
|
||||||
*/
|
*/
|
||||||
setAttribute(key: string, value: string | number) {
|
setAttribute(key: string, value: string | number) {
|
||||||
// Update the this.attributes
|
// Invalidate current this.attributes
|
||||||
if (this._attrs) {
|
if (this._attrs) {
|
||||||
delete this._attrs;
|
delete this._attrs;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue