lewisje / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

svg in tables doesn't show in IE8 #481

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create table.
2. Put SVG graphics in a table row.
3. Watch as graphics doesn't show in IE8, but does show in FF and Opera.

What is the expected output? What do you see instead?
I expected the graphics to show.

What version of the product are you using? On what operating system,
browser, and version of Flash?
svgweb-2010-04-09-dracolisk, Vista64, IE8, Flash 1.0.45.2

Please provide any additional information below. Reduced test cases are
always appreciated!

Moving the graphics outside the table makes it show in IE8.

IE8 debugger gives this error:

Unknown runtime error

while executing this javascript line:

self._replaceMe.outerHTML=flash

at line 1, character 103013

Original issue reported on code.google.com by gal...@gmail.com on 21 Apr 2010 at 10:48

GoogleCodeExporter commented 8 years ago
Are you directly putting the SVG as a child of the <tr> element? Try nesting it 
in a
further <span> or <div> to see if that solves the problem. Internet Explorer 
has lots
of very weird bugs related to outerHTML when it comes to tables unfortunately. 
It's
like they implemented that part in IE 4 then never touched it again.

Original comment by bradneub...@gmail.com on 21 Apr 2010 at 4:59

GoogleCodeExporter commented 8 years ago
I was putting the SVG as a child of TR, but putting DIV around the SVG made it 
show
up. BUT it was then displayed first thing on the page even though it should be 
shown
last on the page. FF shows it placed correctly in the table when encapsulated 
in DIVs.

Original comment by gal...@gmail.com on 22 Apr 2010 at 10:02