OSDN Git Service

Add a comment to the object
authordhrname <dhrname@users.sourceforge.jp>
Thu, 30 Apr 2015 13:48:15 +0000 (22:48 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Thu, 30 Apr 2015 13:48:15 +0000 (22:48 +0900)
org/w3c/dom/smil.js

index fe81475..96cb377 100644 (file)
@@ -732,6 +732,10 @@ base("$calcMode").up("$attribute").mix( {
     }\r
     /*属性を取得するためのインライン関数*/\r
     function getAttr(name) {\r
+      /*DOM Level2やIE11では、getAttributeNSメソッドは空文字を返す。他のブラウザではnullを返すことが多い\r
+       * \r
+       * >the empty string if that attribute does not have a specified or default value\r
+       * http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-ElGetAttrNS*/\r
       return (ele.getAttributeNS(null, name) || null);\r
     };\r
     getAttr = begin = ele = void 0;\r