Project

Profile

Help

SVG fill attribute is created as FILL attribute in Microsoft Edge

Added by Martin Honnen over 7 years ago

http://datenverdrahten.de/xslt2/saxon-js/studis/ has an Saxon-JS XSLT created SVG graphics, unfortunately in Microsoft Edge (Microsoft Edge 38.14393.0.0, Microsoft EdgeHTML 14.14393) all SVG elements are painted black as somehow the @fill@ attribute ends up as a @FILL@ attribute.

I have tried to write a simple test case https://martin-honnen.github.io/xslt/2017/test2017030201.html which does nothing but create a literal SVG result element with a @fill@ attribute, even there the problem occurs that the element is black as it doesn't end up having a @fill@ attribute but a @FILL@ attribute in the DOM.



	
	
		
			 
				

SVG test

Is this a known issue with Edge and Saxon-JS?


Replies (1)

RE: SVG fill attribute is created as FILL attribute in Microsoft Edge - Added by John Lumley over 7 years ago

It appears to be something deeper in Edge and the SVG DOM, not perhaps specific to Saxon-JS. If you look at http://www.saxonica.com/saxon-js/demos/clocks/index.xhtml you see the same thing for SVG properties that are directly in the HTML. This appears to be a known issue (https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/5579311/)

Not sure how we can approach this yet.

    (1-1/1)

    Please register to reply