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
The [CEReactions] extended attribute must take no arguments, and must not appear on anything other than an operation, attribute, setter, or deleter. Additionally, it must not appear on readonly attributes.
When attribute applies in IDL it often means the both get and set functions for potential property. But get can't affect to DOM (for the same reason why attribute getter is never used with [CEReactions])
First question: When [CEReactions] is applied to attribute, does it mean that get function will be decorated with [CEReactions] decorator? Sure I don't speak when attribute has readonly, it's obvious.
The second one:
To ensure custom element reactions are triggered appropriately, we introduce the [CEReactions] IDL extended attribute. It indicates that the relevant algorithm is to be supplemented with additional steps in order to appropriately track and invoke custom element reactions.
So [CEReactions] need for correct tracking mutation of custom elements.
Well let's take data element and its value attribute. This attribute decorated with [CEReactions].
Second question: How does value attribute affect on our custom element, if we just change value via js?
The text was updated successfully, but these errors were encountered:
In the spec we have the following:
When attribute applies in IDL it often means the both
get
andset
functions for potential property. Butget
can't affect to DOM (for the same reason why attribute getter is never used with [CEReactions])First question: When [CEReactions] is applied to attribute, does it mean that
get
function will be decorated with [CEReactions] decorator? Sure I don't speak when attribute has readonly, it's obvious.The second one:
So [CEReactions] need for correct tracking mutation of custom elements.
Well let's take data element and its
value
attribute. This attribute decorated with [CEReactions].Second question: How does
value
attribute affect on our custom element, if we just changevalue
via js?The text was updated successfully, but these errors were encountered: