LiTiang / js-test-driver

Automatically exported from code.google.com/p/js-test-driver
0 stars 0 forks source link

Insertion into DOM via :DOC is not namespace aware in Safari #242

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. /*:DOC += <svg id="svg" xmlns="http://www.w3.org/2000/svg"></svg> */
2. Run the test

What is the expected output? What do you see instead?

Chrome and Firefox create a SVG element (Javascript class is SVGSVGElement). 
Safari seems to ignore the xmlns attribute and creates a HTML element 
(Javascript class is HTMLElement) instead. 

What version of the product are you using? On what operating system?

JSTestDriver 1.3.2
Mac OS X, Snow Leopard
Safari 5.0.4
Chrome 11.0.696.65
Firefox 4.0.1

Please provide any additional information below.

I guess that the problem is that the runner HTML document is served with the 
HTTP response content type "text/html". Changing the response content type to 
"application/xhtml+xml" (or making this configurable) should solve the problem.

Original issue reported on code.google.com by vofiju...@gmail.com on 11 May 2011 at 12:54

GoogleCodeExporter commented 9 years ago
I'll handle this one.

Original comment by corbinrs...@gmail.com on 8 Oct 2011 at 6:57

GoogleCodeExporter commented 9 years ago

Original comment by corbinrs...@gmail.com on 8 Oct 2011 at 6:57