From 523eff163c6fd82c146a887a9a708df8897ea15d Mon Sep 17 00:00:00 2001 From: dhrname Date: Tue, 3 Dec 2013 22:19:29 +0900 Subject: [PATCH] =?utf8?q?substringData=E3=83=A1=E3=82=BD=E3=83=83?= =?utf8?q?=E3=83=89replaceData=E3=83=A1=E3=82=BD=E3=83=83=E3=83=89?= =?utf8?q?=E3=81=AE=E8=BB=BD=E9=87=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- org/w3c/core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org/w3c/core.js b/org/w3c/core.js index 7578fcc..a78a926 100644 --- a/org/w3c/core.js +++ b/org/w3c/core.js @@ -530,7 +530,7 @@ CharacterData.prototype = Object._create(Node); //ノード */ /*string*/ cproto.substringData = function(/*long*/ offset, /*long*/ count) { if (offset < 0 || count < 0 || offset > this.length) { //値が負か、データの長さよりoffsetが長いとき、サイズエラーを起こす - throw (new DOMException(/*INDEX_SIZE_ERR*/ 1)); + throw new DOMException(/*INDEX_SIZE_ERR*/ 1); } if (offset + count > this.length) { //offsetとcountの和が文字全体の長さを超える場合、offsetから最後までのを取り出す count = this.length - offset; @@ -559,7 +559,7 @@ CharacterData.prototype = Object._create(Node); //ノード }; /*void*/ cproto.replaceData = function( /*long*/ offset, /*long*/ count, /*string*/ arg) { if (offset < 0 || count < 0 || offset > this.length) { //値が負か、データの長さよりoffsetが長いとき、サイズエラーを起こす - throw (new DOMException(/*INDEX_SIZE_ERR*/ 1)); + throw new DOMException(/*INDEX_SIZE_ERR*/ 1); } this.deleteData(offset, count); this.insertData(offset, arg); -- 2.11.0