Open GoogleCodeExporter opened 9 years ago
[deleted comment]
I think this is a highly critical bug. svgweb brokes the most of javascript
apps with IE9.
Code to reprocuce, with IE9 in standard mode:
{{{
<html>
<head>
<script src="js/svgweb/src/svg.js" data-path="js/svgweb/src" data-debug="false"></script>
<script type="text/javascript">
go = function() { alert(document.getElementById('Idontexist')); }
window.onsvgload = go ;
</script>
</head>
<body >
</body>
</html>
}}}
Original comment by emmanuel...@gmail.com
on 22 Aug 2011 at 2:16
I modified the compressed and uncompressed version to make this error go away.
I didn't document it too well, but you can run a diff.
Works for me!
Files attached.
Original comment by joshua.p...@gmail.com
on 22 Aug 2011 at 2:52
Attachments:
Hello,
I have tried your patch, unfortunately it doesn't fix the code example above.
The script still dies at getElementById call ( instead of popup "null" ).
The error console shows (sorry it's in french ):
Journal : Error while firing onload: L’objet ne gère pas la propriété ou
la méthode « setProperty » svg-uncompressed.js, Ligne 443 Caractère 5
Original comment by emmanuel...@gmail.com
on 22 Aug 2011 at 3:19
Oh, but the compiled version seems to solve the issue...
Original comment by emmanuel...@gmail.com
on 22 Aug 2011 at 3:26
I believe the compiled patch also fixes issue 617. It's funny how deep the ID
problem was. Maybe the maintainers are listening to this thread and can gain
more insight form my hack-fix than I did.
Original comment by joshua.p...@gmail.com
on 22 Aug 2011 at 3:30
I would be very curious to have the clear patch and some explanations ! I've
tried to debug myself but I must admit it is hard for me. Thanks for saving my
app at short term . I hope mainteners will solve this problem for a more long
term consideration.
Original comment by emmanuel...@gmail.com
on 22 Aug 2011 at 4:01
@Joshua: I downloaded your patched svg.js,
and it solved this issue and issue 617 as well. Thanks!
(svg.js linked in your comment
http://code.google.com/p/svgweb/issues/detail?id=616#c3 )
Original comment by kajmagnu...@gmail.com
on 5 Feb 2012 at 2:52
More anecdotal evidence, Joshua's patch solved issue 617 for me as well.
Original comment by alx...@gmail.com
on 22 Feb 2012 at 12:18
@joshua.p...@gmail.com . Can you please run a diff? Only the compressed version
seem to works. Thanks a lot.
Original comment by s...@antistatique.biz
on 1 Feb 2013 at 4:10
Yeah in fact svg-uncompressed.js is the original one without modification..
Original comment by s...@antistatique.biz
on 1 Feb 2013 at 4:16
I took the compressed version and indent it automatically with my IDE. Now I
get this diff and it should be quiet easy to rebuild the modification
http://www.diffchecker.com/5Ck5gv91
Original comment by s...@antistatique.biz
on 1 Feb 2013 at 4:21
This working for me.
Original comment by s...@antistatique.biz
on 4 Feb 2013 at 4:56
Attachments:
Are there any updated releases to the project fixing this, and presumably other
issues in the works? The last one was from 2011.
Is this project dead?
Original comment by AdamRac...@gmail.com
on 12 Oct 2013 at 10:47
Original issue reported on code.google.com by
joshua.p...@gmail.com
on 24 May 2011 at 8:49