Issue 664 in svgweb: IE11 is not recognized as IE in svgweb code

8 views
Skip to first unread message

svg...@googlecode.com

unread,
Dec 10, 2013, 11:52:44 AM12/10/13
to svg-w...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Low

New issue 664 by craftbee...@gmail.com: IE11 is not recognized as IE in
svgweb code
http://code.google.com/p/svgweb/issues/detail?id=664

What steps will reproduce the problem?
1.Run website in IE11 that utilizes the svgweb .js library
2.Notice that isIE is always false
3.

What is the expected output? What do you see instead?
Expect to be able to interact with svg objects through javascript (eg.
getElementById('id') should return a dom element)
Instead we are getting an error that says object doesn't support property
or method 'setAttributeNS'

What version of the product are you using? On what operating system,
browser, and version of Flash?
Version is from here: svgweb-2011-02-03-Lurker-Above.zip
OS is Windows7
Broswer is IE11
Flash version is 11.9.900.117

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


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

svg...@googlecode.com

unread,
Dec 10, 2013, 12:01:16 PM12/10/13
to svg-w...@googlegroups.com

Comment #1 on issue 664 by craftbee...@gmail.com: IE11 is not recognized as
I've updated the browser detection code to recognize IE11 as IE, however
that created several issues where methods like attachEvent etc... are being
used. I added an isIE11 check in these places to use attachEventListener
etc... Finally I'm to the point where it the code erros here:
// This code is for crashing exception in Opera
// that occurs with scripts running in relation
// to an object that is unloaded.
console.log("Call to flash but flash is not present! " +
invoke + ": " + this.debugMsg(message) + ": "+exp);

svg...@googlecode.com

unread,
Dec 10, 2013, 4:22:23 PM12/10/13
to svg-w...@googlegroups.com

Comment #2 on issue 664 by craftbee...@gmail.com: IE11 is not recognized as
It seems leaving the isIE property alone and creating a separate isIE11
property was the key. Most places where there is an isIE check it is good
that IE11 isn't recognized. However in the instances where there is some
sort of setAttributeNS, getAttributeNS or etc... if the IE path isn't
followed IE11 will throw an error. So in these situations I've added an
isIE11 check. So for example there will be:
if(isIE || isIE11){code}
or
if (!isIE && !isIE11){code}

I'm attaching an updated version of the uncompressed svg.js file.

Attachments:
svg-uncompressed.js 421 KB
Reply all
Reply to author
Forward
0 new messages