Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.7.10
-
None
-
Linux 2.6.35.13-91.fc14.i686
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Firefox 3.6.17
Description
Groovy's HTMLBuilder creates an empty "textarea" element (i.e. inserts the string "<textarea />" instead of "<textarea></textarea>") if no text has been specified for the textarea builder.
The HTML spec is not fully clear on whether an empty element is allowed for "textarea":
http://www.w3.org/TR/html401/interact/forms.html#h-17.7
But one might want to read this about empty elements in HTML:
http://www.cs.tut.fi/~jkorpela/html/empty.html
Firefox 3.6.17 deals badly with this (all the stuff following "<textarea />" is interpreted as the text of the textarea)
Workaround:
Instead of
textarea(cols: 40, rows:5, name:'message') --> <textarea />
Used
textarea(cols: 40, rows:5, name:'message', "") --> <textarea></textarea>