Skip to content
Browse files

nodeValue modification (html decode)

  • Loading branch information...
1 parent 9f347f0 commit d408a0ba58bc83228e3a9bf2cd557011780fe965 @Ayms committed Dec 15, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/browser/index.js
View
3 lib/browser/index.js
@@ -85,6 +85,7 @@ var canon=function(attr){ //border-color --> borderColor
var __cc=function(node,regexp) {
var str = node.__data.toString().replace(/^\s+/g,'').replace(/\s+$/g,'') ;
if (regexp.test(str)){
+ console.log(str);
return true;
};
return false;
@@ -653,7 +654,7 @@ core.Node.prototype={
DOCUMENT_FRAGMENT_NODE : 11,
NOTATION_NODE : 12, //not used
get document() {return this._document},
- get nodeValue() {return this.__data},
+ get nodeValue() {return HTMLDecode(this.__data)},
get parentNode() {return this._parentNode},
get parentElement() {return this._parentNode},
get nodeName() {return this.__name.indexOf('#')==-1?this.__name.toUpperCase():this.__name},

0 comments on commit d408a0b

Please sign in to comment.
Something went wrong with that request. Please try again.