There is a ticket http://bugs.jquery.com/ticket/11166
Alternatively, you can add the hook attribute (with a lowercase name) in jQuery to use the desired setter method. For example:
$.attrHooks['viewbox'] = { set: function(elem, value, name) { elem.setAttributeNS(null, 'viewBox', value + ''); return value; } };
You can then set the case-sensitive attribute with .attr ():
$('svg').attr('viewBox', '0 0 100 100');
Evgeniy generalov
source share