-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Parser incorrectly reads image srcset when containing commas in image URL #79
Labels
💪 phase/solved
Post is done
Comments
See related discussion: #78 |
github-actions
bot
added
👋 phase/new
Post is being triaged automatically
🤞 phase/open
Post is being triaged manually
and removed
👋 phase/new
Post is being triaged automatically
labels
Nov 12, 2021
wooorm
added a commit
to syntax-tree/hast-util-to-estree
that referenced
this issue
Nov 12, 2021
Related to: <rehypejs/rehype#78> Related to: <rehypejs/rehype#79>
wooorm
added a commit
to rehypejs/rehype-picture
that referenced
this issue
Nov 12, 2021
Related to: <rehypejs/rehype#78> Related to: <rehypejs/rehype#79>
This comment has been minimized.
This comment has been minimized.
Solved, thanks! :) |
wooorm
added a commit
to syntax-tree/hast-util-to-dom
that referenced
this issue
Nov 12, 2021
Related to: <rehypejs/rehype#78> Related to: <rehypejs/rehype#79>
and thank you!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Initial checklist
Affected packages and versions
8.0.3
Link to runnable example
No response
Steps to reproduce
The issue occurs when there is a comma included in the image URLs of the srcset field
My current flow of data:
Example raw HTML:
Expected behavior
Parsed srcset property should include a way to distinguish the value that relates multiple values of an image URL to a size
What the parsed values may look like if still following a similar comma delimited pattern:
Actual behavior
When a comma is included in the URL of images, the srcset sees that as a delimiting character and incorrectly parses the values
Example when parsed:
Runtime
Node v14
Package manager
yarn v1
OS
macOS
Build and bundle tools
Next.js
The text was updated successfully, but these errors were encountered: