OSDN Git Service

Modify the hasFeature method problem for the Edge
authordhrname <dhrname@users.sourceforge.jp>
Mon, 25 Jul 2016 14:16:03 +0000 (23:16 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Mon, 25 Jul 2016 14:16:03 +0000 (23:16 +0900)
org/w3c/dom/smil.js

index a752272..9f58e03 100644 (file)
@@ -1941,7 +1941,9 @@ function getDocument()
 window.addEventListener && window.addEventListener("load", getDocument);\r
 \r
 function __step() {\r
-if (!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Animation", "1.1")) {\r
+/*EdgeはhasFeatureメソッドでtrueを返す*/\r
+if (!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Animation", "1.1")\r
+    || window.navigator.userAgent.toLowerCase().indexOf("edge")) {\r
   if (window.requestAnimationFrame && requestAnimationFrame) {\r
     /*IE11などSMILアニメーションに対応していないブラウザ用*/\r
     /*cancelはアニメーションの中止ハンドル*/\r