Skip to content
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

Fix attribute value scopes after directives #197

Merged
merged 1 commit into from
Jan 11, 2023
Merged

Fix attribute value scopes after directives #197

merged 1 commit into from
Jan 11, 2023

Conversation

deathaxe
Copy link
Contributor

@deathaxe deathaxe commented Jan 7, 2023

Fixes #196

This commit adds a fallback pattern to generic-attribute-values context in order to correctly scope attribute values, even if no attribute names have been consumed before.

The @click directive is not scoped as attribute name due to a design issue of basic HTML syntax with regards to prototype handling within tags. Hence HTML does not match/consume the value assignment via =.

Fixes #196

This commit adds a fallback pattern to `generic-attribute-values`
context in order to correctly scope attribute values, even if no
attribute names have been consumed before.

The `@click` directive is not scoped as attribute name due to a design
issue of basic HTML syntax with regards to `prototype` handling within
tags. Hence HTML does not match/consume the value assignment via `=`.
@Medalink Medalink merged commit 49e1e0a into Medalink:main Jan 11, 2023
@deathaxe deathaxe deleted the pr/fix-attribute-values branch January 12, 2023 16:51
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.

Doesn't highlight alpinejs properly.
2 participants