8000 Make BudouX Web Components work without setInnerHtml by tushuhei · Pull Request #813 · google/budoux · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Make BudouX Web Components work without setInnerHtml #813

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

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

tushuhei
Copy link
Member

Fix #811

Using setInnerHtml, which modifies the DOM tree dynamically, prevents BudouX Web Component from working correctly with Lit.
Following the guidance from lit/lit#4834 (comment), this change allows BudouX Web Component to update its content with BudouX parser's applyToElement, which only modifies textContent.

@tushuhei tushuhei requested a review from kojiishi November 17, 2024 23:52
Copy link
Collaborator
@kojiishi kojiishi left a comment

Choose a reason for hiding this comment

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

lgtm

@tushuhei tushuhei merged commit ae672a0 into main Nov 18, 2024
27 checks passed
@tushuhei tushuhei deleted the webcomponents-without-innerhtml branch November 21, 2024 07:47
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.

Make BudouX Web Components work with Lit
2 participants
0