OSDN Git Service
(root)
/
sie
/
sie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75a0011
)
SVGTextPositioningElementインターフェースの軽量化
author
dhrname
<dhrname@users.sourceforge.jp>
Sun, 24 Mar 2013 11:35:33 +0000
(20:35 +0900)
committer
dhrname
<dhrname@users.sourceforge.jp>
Sun, 24 Mar 2013 11:35:33 +0000
(20:35 +0900)
org/w3c/dom/svg.js
patch
|
blob
|
history
diff --git
a/org/w3c/dom/svg.js
b/org/w3c/dom/svg.js
index
9e5a0e8
..
8839920
100644
(file)
--- a/
org/w3c/dom/svg.js
+++ b/
org/w3c/dom/svg.js
@@
-3810,7
+3810,9
@@
function SVGTextContentElement(_doc) {
if ((eph === /*Event.CAPTURING_PHASE*/ 1) && (tar.nodeType === /*Node.TEXT_NODE*/ 3) && !!!tar._tars) {
\r
/*Textノードにdiv要素を格納したリストをプロパティとして蓄えておく*/
\r
tar._tars = [];
\r
- var data = tar.data.replace(/^\s+/, "").replace(/\s+$/, "");
\r
+ console.log(tar.data);
\r
+ var data = tar.data.replace(/^[\r\n\s]+|[\r\n\s]+$/g, "");
\r
+ console.log(data);
\r
tar.data = data;
\r
tar.length = data.length;
\r
data = data.split('');
\r