We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f01a18 commit bed1185Copy full SHA for bed1185
3 files changed
lib/Element.ts
@@ -56,7 +56,7 @@ export class Element extends Node {
56
57
// overwrites super
58
get preserveSpace (): boolean {
59
- if (this.attr && this.attr['xml:space'] === 'preserve') {
+ if (this.attr?.['xml:space'] === 'preserve') {
60
return true;
61
}
62
if (this.parentNode) {
0 commit comments