-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
type="anything"
is parsed as child instead of property
#8
type="anything"
is parsed as child instead of property
#8
Comments
Update, after more investigation, it looks like I filed this under the wrong package again: syntax-tree/hast-util-from-parse5@main...albinekb:hast-util-from-parse5:unknown-attribute-test
Update: Found the line:https://github.com/syntax-tree/hastscript/blob/2a7451dc1eb2adc6b07af6efed8a8bdcc8f13758/lib/create-h.js#L166 Seems to be fixed in hastscript 9.0.0? syntax-tree/hastscript@8a5f97e |
Closes GH-14. Closes syntax-tree/hast-util-from-html#8 Reviewed-by: Titus Wormer <tituswormer@gmail.com>
This comment has been minimized.
This comment has been minimized.
This comment was marked as resolved.
This comment was marked as resolved.
Released in |
Initial checklist
Affected packages and versions
hast-util-from-html@2.0.3
Link to runnable example
https://github.com/albinekb/hast-unknown-node-repro/blob/main/index.ts
Steps to reproduce
Expected behavior
Parses like any other property:
Actual behavior
Putting anything else than "submit", "reset", "button" in type="", moves the property from the properties to being a child:
If i put more attributes on the button:
The other attributes gets added to the erroneous child:
Affected runtime and version
node@20.12.2
Affected package manager and version
pnpm@9.13.2
Affected OS and version
No response
Build and bundle tools
esbuild
The text was updated successfully, but these errors were encountered: