-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
find() convert xlink:href
to href
#1101
Comments
some background to this issue: enzymejs/enzyme#1297 (comment) |
parse5 parses It seems like Cheerio needs some additional work to support namespaced attributes in parse5 AST. |
Kk, so this is a dom-serializer shot-coming. What was the reasoning why we didn't use parse5 as a serialiser? |
Is this something that will have a fix in some near future? |
The serialization part should be fixed with the latest release. |
@fb55 thanks, confirmed fixed in rc 5 in enzyme's tests! |
@fb55 hmm, the tests passed locally but are failing in CI in node 4: https://travis-ci.com/github/enzymejs/enzyme/builds/210326410 Specifically, |
Filed #1585 for this. |
cheerio@^1.0.0-rc.2
automatically convertsxlink:href
tohref
when usingfind()
.Since, Safari doesn't support
href
without the "xlink" prefix in svg yet. Maybe, leavexlink:href
as it was incheerio@^0.22.0
is better?The text was updated successfully, but these errors were encountered: