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
Raptor template compiler should be more restrictive with attribute selector. When compiling the template, the compiler decides if an attribute will be will be passed as attribute or a property. Because of this attributes present in the template is not guaranteed to be reflected on the DOM.
Proposal
CSS compiler should throw when transforming if an attribute selector is not part of the Global HTML Attribute list
## Details
This PR restricts the usage of attributes in the stylesheet:
* global HTML attributes are permitted
* known attributes selectors are permitted on known elements selectors
* attribute selectors are banned for custom elements
Fix#261
## Does this PR introduce a breaking change?
* [X] Yes
* [ ] No
If yes, please describe the impact and migration path for existing applications:
Components won't compile if they already use attribute selectors in their stylesheet.
SOMA#852
Migrated issue
notes:
Raptor template compiler should be more restrictive with attribute selector. When compiling the template, the compiler decides if an attribute will be will be passed as attribute or a property. Because of this attributes present in the template is not guaranteed to be reflected on the DOM.
Proposal
The text was updated successfully, but these errors were encountered: