You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Franchet Nicolas (JIRA)" <ji...@apache.org> on 2006/10/11 11:06:21 UTC
[jira] Commented: (COCOON-1732) Ajax and IE empty textarea bugfix
[ http://issues.apache.org/jira/browse/COCOON-1732?page=comments#action_12441382 ]
Franchet Nicolas commented on COCOON-1732:
------------------------------------------
The patch works fine for textareas, but the problem can occur with other html element. IE seems to not understand the tags with no content.
instead of :
var tmatch = new RegExp('(<textarea.*?)\/>', 'img');
text = text.replace(tmatch, "$1></textarea>");
we'd better do :
var tmatch = new RegExp('<([A-Za-z]*)(.*?)\/>', 'img');
text = text.replace(tmatch, "<$1 $2></$1>");
> Ajax and IE empty textarea bugfix
> ---------------------------------
>
> Key: COCOON-1732
> URL: http://issues.apache.org/jira/browse/COCOON-1732
> Project: Cocoon
> Issue Type: Bug
> Components: Blocks: Ajax
> Affects Versions: 2.1.8
> Reporter: Fabrizio Sitzia
> Priority: Minor
> Fix For: 2.2-dev (Current SVN), 2.1.10-dev (current SVN)
>
> Attachments: empty_textarea_ie.txt, ie_empty_textarea.gif, insertion.js.patch
>
>
> Empty textareas in a repeater are displayed incorrectly by Internet
> Explorer after a round-trip to the server (for example after
> adding/deleting a row, or when a validation error occurs!)
> Instead of being empty, the textareas display a garbled mix of text and
> html-tags occurring in the html document. Submission of the form usually
> won't work afterwards...
> (See attachment for my post to the cocoon dev list, which contains the steps for reproducing the bug, and a possible fix for it)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira