You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2009/06/15 02:23:35 UTC
svn commit: r784638 -
/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/inputHtml/resource/kupucontentfilters.js
Author: lu4242
Date: Mon Jun 15 00:23:35 2009
New Revision: 784638
URL: http://svn.apache.org/viewvc?rev=784638&view=rev
Log:
TOMAHAWK-1307 #000000 is displayed in inputHtml (Thanks to Paul Rivera)
Modified:
myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/inputHtml/resource/kupucontentfilters.js
Modified: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/inputHtml/resource/kupucontentfilters.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/inputHtml/resource/kupucontentfilters.js?rev=784638&r1=784637&r2=784638&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/inputHtml/resource/kupucontentfilters.js (original)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/inputHtml/resource/kupucontentfilters.js Mon Jun 15 00:23:35 2009
@@ -601,9 +601,11 @@
var permittedChildren = this.States[parentnode.tagName] || permitted;
if (kids.length == 0) {
- if (htmlnode.text && htmlnode.text != "" &&
+ // TOMAHAWK-1307 #000000 is displayed in inputHtml
+ // changed htmlnode.text to htmlnode.textContent
+ if (htmlnode.textContent && htmlnode.textContent != "" &&
(nostructure || permittedChildren['#PCDATA'])) {
- var text = htmlnode.text;
+ var text = htmlnode.textContent;
var tnode = ownerdoc.createTextNode(text);
parentnode.appendChild(tnode);
}