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 |
matthewp
left a comment
There was a problem hiding this comment.
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
shouldEscapeisn't passed down totoAttributeStringand I fixed it.Testing
Added
astro-object-styletestDocs
Minor fix