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: using special characters in attribute static strings #139

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

eddyloewen
Copy link
Contributor

closes #134

@eddyloewen eddyloewen requested a review from quarkus November 12, 2024 14:01
<div foo1="bar" class="before:block before:content-['Festivus']">no interpolation</div>
<div foo2="${'bar'}">single attribute interpolation</div>
<div foo3="${'bar'}" bar="${'baz'}">multiple attribute interpolations</div>
<div foo4="${'bar'} baz ${'foo'} before:content-['Festivus']">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about the unquoted case ?
https://arc.net/l/quote/neouemuc

do we still test this somewhere ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And what exatly is this.
baz ${'foo'}
Just having a single/static interpolation somewhere through ${'foo'} ?

I mean .. it's cool but isn't it the same as conditional attributes ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just an example element for debugging things in the browser through the dev server. The unquoted case is tested somewhere else.
baz ${'foo'} is showing what it looks like when attributes have interpolations inside static parts of the attribute value.

@eddyloewen eddyloewen merged commit 68ffeb2 into main Nov 14, 2024
1 check passed
@eddyloewen eddyloewen deleted the feature/134-fix-attribute-part-escaping branch November 14, 2024 09:15
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.

[RENDERER] "=" sign in attribute will cause generating parts errors
2 participants