You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
web component may render differently than its origin html snippet (eager attributes).
in such cases authors might want source to freeze
this programmatic mutation of dom tree is probably an anti-pattern but still can be an interim and causes confusion in docs.
The text was updated successfully, but these errors were encountered:
Hi, thanks for the issue. Could you please elaborate a bit with some concrete example of what you would expect?
web component may render differently than its origin html snippet
If you mean some "state" attributes (e.g. in Vaadin components we use has-value, has-label etc based on presence of a certain property), then it's out of scope for now. If CEM analyzer supports states, we can add those of course.
Thanks, so my assumption above was correct. I will try some Vaadin components and see how to handle these "state" attributes that the component owns and distinguish them from "props" that the consumer typically provides.
web-padawan
changed the title
[live-playground] pre-rendered source
Exclude attributes managed by the component itself from the demo snippet
Nov 3, 2021
web component may render differently than its origin html snippet (eager attributes).
in such cases authors might want source to freeze
this programmatic mutation of dom tree is probably an anti-pattern but still can be an interim and causes confusion in docs.
The text was updated successfully, but these errors were encountered: