Hunsu / gwt-graphics

Automatically exported from code.google.com/p/gwt-graphics
Apache License 2.0
0 stars 0 forks source link

$doc.namespaces[ns] fails in IE9 with SCRIPT16389 #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Create instance of DrawingArea of any width and height
2.Add to DOM using RootPanel.get().add(drawing_area_instance);

What is the expected output? What do you see instead?
Instead of showing canvas, IE9 fail with "Unspecified error" on line:
if ( !($doc.namespaces[ns]){....

What version of the product are you using? On what operating system?
0.9.7, IE9, W7 Pro

Please provide any additional information below.
It seems that $doc doesn't have member "namespaces" thus resulting in 
SCRIPT16389: Unspecified error. Also, if I understand correctly IE9 supports 
SVG pretty decently, do why not use it instead of VML? 
Script fails inside the following function:
org_vaadin_gwtgraphics_client_impl_VMLImpl_$addNamespaceAndStyle__Lorg_vaadin_gw
tgraphics_client_impl_VMLImpl_2Ljava_lang_String_2Ljava_lang_String_2V(ns, 
classname)

Original issue reported on code.google.com by j.perovi...@gmail.com on 28 Mar 2011 at 8:15

GoogleCodeExporter commented 8 years ago
The problem is that IE9 supports SVG instead of VML. I should enable SVG for 
IE9 and test if it works.

Original comment by he...@kerola.net on 28 Mar 2011 at 8:38

GoogleCodeExporter commented 8 years ago
Thanks :)

Original comment by j.perovi...@gmail.com on 28 Mar 2011 at 9:11

GoogleCodeExporter commented 8 years ago
Hey, thanks for pushing release fix for IE9!
I tried it yesterday but it didn't work for me and same error is beign raised. 
:(
The only change is in .gwt.xml file, right?

Do you have any idea on how to fix this?

Thanks!

Original comment by j.perovi...@gmail.com on 11 Aug 2011 at 8:27

GoogleCodeExporter commented 8 years ago
Haven't yet released a new version that contains the fix. The change in 
.gwt.xml is the only change and in my quick tests it worked and SVG mode was in 
use in IE9.

Original comment by he...@kerola.net on 11 Aug 2011 at 1:44

GoogleCodeExporter commented 8 years ago
1.0.0 has been released that contains support for SVG rendering in IE9

Original comment by he...@kerola.net on 31 Aug 2011 at 10:25

GoogleCodeExporter commented 8 years ago
Hey, I've finally got around to try out this release and it works great! 
Thanks! :)

Original comment by j.perovi...@gmail.com on 3 Oct 2011 at 8:44