We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With defsnippet and a selector like [:div#content :> :*], nth-of-type should still work for elements that are now without parent.
The text was updated successfully, but these errors were encountered:
Test case for this bug:
(html/sniptest "<h1></h1><h1></h1>" [[:h1 (html/nth-of-type 1)]] (html/content "foo"))
Expected: "<h1>foo</h1><h1></h1>" Actual: "<h1>foo</h1><h1>foo</h1>"
"<h1>foo</h1><h1></h1>"
"<h1>foo</h1><h1>foo</h1>"
With parent, it works:
> (html/sniptest "<body><h1></h1><h1></h1></body>" [[:h1 (html/nth-of-type 1)]] (html/content "foo")) "<body><h1>foo</h1><h1></h1></body>"
Sorry, something went wrong.
@JustinIAC this could be fixed by making xml-zip to consider (and update) collections of nodes as document fragments (to speak in DOM parlance).
xml-zip
fdserr
No branches or pull requests
With defsnippet and a selector like [:div#content :> :*], nth-of-type should still work for elements that are now without parent.
The text was updated successfully, but these errors were encountered: