[Webkit-unassigned] [Bug 15276] setAttribute fails to respect SVG attribute case

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 26 11:10:19 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=15276





------- Comment #17 from eric at webkit.org  2007-09-26 11:10 PDT -------
Yes, so I believe this is now a dojo bug (relating to the improper use of the
svg namespace on attributes.  The fix from the feature branch will be rolled
into trunk sometime mid november I expect.  (SVG work has been done on the
feature branch since may, due to leopard stabilization concerns.)

Again, this is how I diagnosed the bug:

var svgNs = "http://www.w3.org/2000/svg"
var gradient = document.createElementNS(svgNs, "linearGradient");
var gradientClass = gradient.__proto__;
gradientClass.oldSetAttribute = gradientClass.setAttribute;
gradientClass.oldSetAttributeNS = gradientClass.setAttributeNS;

// this override fixes the case sensitivity problem (already fixed on the
feature branch)
gradientClass.setAttribute = function(a, b, c) { alert("setAttribute: " + a + "
" + b); this.oldSetAttributeNS(null, a, b) }
// this override fixes the dojo "use svg namespace for certain attributes" bug
gradientClass.setAttributeNS = function(a, b, c) { alert("setAttributeNS: " + a
+ " " + b + " " + c); this.oldSetAttributeNS(null, b, c) }

Do you agree?


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list