Mercurial > genshi > genshi-test
diff genshi/filters/html.py @ 908:5fd4a1e28351
Fix for bug with the `HTMLFormFiller` in the handling of textareas. Thanks to Trevor Morgan for pointing this out on the mailing list.
author | cmlenz |
---|---|
date | Mon, 10 May 2010 14:02:55 +0000 |
parents | 1e2be9fb3348 |
children | 585fdbd30e05 |
line wrap: on
line diff
--- a/genshi/filters/html.py +++ b/genshi/filters/html.py @@ -183,9 +183,10 @@ no_option_value = False option_start = option_value = None option_text = [] - elif tagname == 'textarea': + elif in_textarea and tagname == 'textarea': if textarea_value: yield TEXT, unicode(textarea_value), pos + textarea_value = None in_textarea = False yield kind, data, pos