cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Franchet Nicolas (JIRA)" <>
Subject [jira] Commented: (COCOON-1732) Ajax and IE empty textarea bugfix
Date Wed, 11 Oct 2006 09:06:21 GMT
    [ ] 
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:
>             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:
For more information on JIRA, see:


View raw message