whacko icon indicating copy to clipboard operation
whacko copied to clipboard

XML namespace attributes bug

Open trevordixon opened this issue 10 years ago • 1 comments

$ = 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.

trevordixon avatar Jan 28 '15 23:01 trevordixon

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

inikulin avatar Jan 29 '15 11:01 inikulin