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
cb219a0d3a
commit
a73bf56d39
1 changed files with 2 additions and 2 deletions
|
|
@ -471,11 +471,11 @@ export default class HTMLElement extends Node {
|
|||
* @param {Attributes} attributes the new attribute set
|
||||
*/
|
||||
setAttributes(attributes: Attributes) {
|
||||
// Update the this.attributes
|
||||
// Invalidate current this.attributes
|
||||
if (this._attrs) {
|
||||
delete this._attrs;
|
||||
}
|
||||
// Update the raw attributes map
|
||||
// Invalidate current this.rawAttributes
|
||||
if (this._rawAttrs) {
|
||||
delete this._rawAttrs;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue