MRchildNEO / svgweb

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

document firstChild reverts attached status on root element #580

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. extract the attached test_case zip file and host it on a web server
2. open the test_case.html in a flash-enabled browser
3. nothing is visible

What is the expected output? What do you see instead?
I expect to see a red square -- this is what appears when the forceflash meta 
tag is commented out.

What version of the product are you using? On what operating system,
browser, and version of Flash?
rev 1250 of SVGWeb, Mac OS X 10.5, Chrome 7.0.517.44, Flash  10.1.103.19 

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

Original issue reported on code.google.com by dewilh...@gmail.com on 24 Nov 2010 at 5:04

Attachments:

GoogleCodeExporter commented 8 years ago
The problem was that the use element was never added to the document root 
element. The reason the use element was not added was because SVG Web thought 
the root element was not attached to the document. The reason SVG Web thought 
the root element was not attached was because of a bug: the fake object 
document never had its attached flag set to true and when the root element was 
retrieved, it copied the bad flag from the document.

Fixed in r1256.

There is still a problem with the file related to the dynamic sizing behavior. 
If the width and height on the SVG file is set statically instead of 
dynamically, it works. Problems in that area have previously been reported and 
remain open. See Issue 427, Issue 451, and Issue 512.

Original comment by grick23@gmail.com on 27 Nov 2010 at 9:34