Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of a .fromDom constructor. #1054

Open
NamanShergill opened this issue Oct 15, 2023 · 1 comment
Open

Addition of a .fromDom constructor. #1054

NamanShergill opened this issue Oct 15, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@NamanShergill
Copy link

Use case

Currently, the library only takes the HTML input as string, and parses it as a document internally. This adds unnecessary overhead if you already parse the document in your app to perform operations on it, so it has to be converted into a string again to be passed to the widget, and then the widget parses it back into a document. By adding a HtmlWidget.fromDom(Document document), this overhead could be eliminated.

@NamanShergill NamanShergill added the enhancement New feature or request label Oct 15, 2023
@daohoangson
Copy link
Owner

I think this would be a great enhancement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants