-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 object styles not escaped #4887
Conversation
🦋 Changeset detectedLatest commit: 882c4c8 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, would you mind adding a test? See packages/astro/test/fixture
for examples of what our tests look like.
Also a changeset is needed:
pnpm changeset
Thanks! I've added tests and ran Update: just rebased on to the lastest HEAD on main, looks like the HEAD itself isn't passing checks either, will rebase again once fixed |
3e48e42
to
882c4c8
Compare
@Calvin-LL this is just a flakey test. Will rerun and it will likely pass. Thank you! |
Changes
Before this PR:
would be rendered as
which is invalid HTML, since the quotes in url are not escaped.
After the fix in this PR, the output is:
Also found a bug where
shouldEscape
isn't passed down totoAttributeString
and I fixed it.Testing
Added
astro-object-style
testDocs
Minor fix