You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by jk...@apache.org on 2007/06/09 22:12:37 UTC

svn commit: r545792 - /tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js

Author: jkuhnert
Date: Sat Jun  9 13:12:37 2007
New Revision: 545792

URL: http://svn.apache.org/viewvc?view=rev&rev=545792
Log:
Fixes TAPESTRY-1552.  Same old mozilla quirckyness where xml input containing an empty tag is rendered as a single element but really needs to be rendered as two tags.

Modified:
    tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js

Modified: tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js?view=diff&rev=545792&r1=545791&r2=545792
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js (original)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js Sat Jun  9 13:12:37 2007
@@ -445,8 +445,8 @@
  */
 tapestry.html={
 
-    TextareaRegexp:new RegExp('<textarea(.*?)/>'), // regexp for compact textarea elements
-    TextareaReplacer:'<textarea$1></textarea>', // replace pattern for compact textareas
+    TextareaRegexp:new RegExp('<([a-zA-Z]?)\\s(.*?)/>'), // regexp for compact textarea elements
+    TextareaReplacer:'<$1 $2></$1>', // replace pattern for compact textareas
 	
     /**
 	 * Function: getContentAsString