Skip to content
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

XML namespace attributes bug #8

Open
trevordixon opened this issue Jan 28, 2015 · 1 comment
Open

XML namespace attributes bug #8

trevordixon opened this issue Jan 28, 2015 · 1 comment

Comments

@trevordixon
Copy link

$ = whacko.load('<svg><use xlink:href="#abcd"></use></svg>')
$('use').attr('href') === '#abcd' // should be undefined
$('use').attr('xlink:href') === undefined // should be '#abcd'

This isn't an issue in Cheerio, but http://stackoverflow.com/questions/22081551/svg-image-turns-black-after-updating-his-path-via-jquery makes me think it might have been at some point.

@inikulin
Copy link
Owner

Yes, this is not the way it supposed to work according to DOM spec. Thank you for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants