Skip to content

feat: add document.createAttribute#169

Open
lowlighter wants to merge 1 commit intob-fuze:masterfrom
lowlighter:feat-doc-create-attr
Open

feat: add document.createAttribute#169
lowlighter wants to merge 1 commit intob-fuze:masterfrom
lowlighter:feat-doc-create-attr

Conversation

@lowlighter
Copy link
Copy Markdown
Contributor

@lowlighter lowlighter commented Jul 1, 2024

Comment thread src/dom/document.ts
}

createAttribute(attribute: string): Attr {
return new Attr(null, attribute, "", CTOR_KEY);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to set the ownerDocument via the _setOwnerDocument method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing document.createAttribute() method

2 participants