Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 4c2e2b6

Browse files
committed
[FIX] Attributes: remove the set value in a getter method.
1 parent 775b8df commit 4c2e2b6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/plugin-xml/src/Attributes.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,11 @@ export class Attributes extends Modifier {
9999
})
100100
: [];
101101
if (this.classList.length && !keys.includes('class')) {
102-
// The node was not parsed with a class attribute, add it in place.
103-
// Use `get` for its value but record its position in the record.
104-
this._record.class = null;
102+
// The node was not parsed with a class attribute.
105103
keys.push('class');
106104
}
107105
if (this.style.length && !keys.includes('style')) {
108-
// The node was not parsed with a style attribute, keep it always at
109-
// the end of the attributes list.
106+
// The node was not parsed with a style attribute.
110107
keys.push('style');
111108
}
112109
return keys;

0 commit comments

Comments
 (0)