[Sie-announce] SIEコード [2028] CharacterDataのlengthプロパティを実装

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 9月 29日 (水) 23:13:27 JST


Revision: 2028
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2028
Author:   dhrname
Date:     2010-09-29 23:13:27 +0900 (Wed, 29 Sep 2010)

Log Message:
-----------
CharacterDataのlengthプロパティを実装

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-09-29 13:54:09 UTC (rev 2027)
+++ branches/06x/061/org/w3c/core.js	2010-09-29 14:13:27 UTC (rev 2028)
@@ -797,6 +797,7 @@
 /*Text*/               Document.prototype.createTextNode = function( /*string*/ data) {
   var s = new Text();
   s.data = s.nodeValue = data;
+  s.length = data.length;
   s.ownerDocument = this;
   return s;
 };
@@ -806,6 +807,7 @@
 /*Comment*/            Document.prototype.createComment = function( /*string*/ data) {
   var s = new Comment();
   s.data = s.nodeValue = data;
+  s.length = data.length;
   s.ownerDocument = this;
   return s;
 };
@@ -815,6 +817,7 @@
 /*CDATASection*/       Document.prototype.createCDATASection = function( /*string*/ data) {
   var s = new CDATASection();
   s.data = s.nodeValue = data;
+  s.length = data.length;
   s.ownerDocument = this;
   return s;
 };




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