Skip to content

Commit

Permalink
Update packages/rrdom/src/document.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Juice10 authored Aug 2, 2024
1 parent 30c7780 commit 9f2a27c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/rrdom/src/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,8 @@ export class BaseRRElement extends BaseRRNode implements IRRElement {
}

public getAttribute(name: string): string | null {
return this.attributes[name] ?? null;
if (this.attributes[name] === undefined) return null;
return this.attributes[name];
}

public setAttribute(name: string, attribute: string) {
Expand Down

0 comments on commit 9f2a27c

Please sign in to comment.