Skip to content

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