Skip to content

Commit bed1185

Browse files
committed
Update deps and fix a lint warning
1 parent 7f01a18 commit bed1185

3 files changed

Lines changed: 363 additions & 907 deletions

File tree

lib/Element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class Element extends Node {
5656

5757
// overwrites super
5858
get preserveSpace (): boolean {
59-
if (this.attr && this.attr['xml:space'] === 'preserve') {
59+
if (this.attr?.['xml:space'] === 'preserve') {
6060
return true;
6161
}
6262
if (this.parentNode) {

0 commit comments

Comments
 (0)