[Sie-announce] SIEコード [2057] setAttributeNSメソッドにnumber型を許容させるようにした

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 10月 14日 (木) 20:31:46 JST


Revision: 2057
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2057
Author:   dhrname
Date:     2010-10-14 20:31:46 +0900 (Thu, 14 Oct 2010)

Log Message:
-----------
setAttributeNSメソッドにnumber型を許容させるようにした

Modified Paths:
--------------
    branches/06x/061/org/w3c/core.js

Modified: branches/06x/061/org/w3c/core.js
===================================================================
--- branches/06x/061/org/w3c/core.js	2010-10-14 11:31:12 UTC (rev 2056)
+++ branches/06x/061/org/w3c/core.js	2010-10-14 11:31:46 UTC (rev 2057)
@@ -581,8 +581,8 @@
 };
 /*void*/ Element.prototype.setAttributeNS = function( /*string*/ namespaceURI, /*string*/ qualifiedName, /*string*/ value) {
   var atn = this.ownerDocument.createAttributeNS(namespaceURI, qualifiedName);
-  atn.nodeValue = value;
-  atn.value = value;
+  atn.nodeValue = value+"";
+  atn.value = value+"";
   this.setAttributeNodeNS(atn);
 };
 /*void*/ Element.prototype.removeAttributeNS = function( /*string*/ namespaceURI, /*string*/ localName) {




Sie-announce メーリングリストの案内
Back to archive index