comparison 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
comparison
equal deleted inserted replaced
904:2772fa7c10a3 908:5fd4a1e28351
181 yield event 181 yield event
182 in_option = False 182 in_option = False
183 no_option_value = False 183 no_option_value = False
184 option_start = option_value = None 184 option_start = option_value = None
185 option_text = [] 185 option_text = []
186 elif tagname == 'textarea': 186 elif in_textarea and tagname == 'textarea':
187 if textarea_value: 187 if textarea_value:
188 yield TEXT, unicode(textarea_value), pos 188 yield TEXT, unicode(textarea_value), pos
189 textarea_value = None
189 in_textarea = False 190 in_textarea = False
190 yield kind, data, pos 191 yield kind, data, pos
191 192
192 else: 193 else:
193 yield kind, data, pos 194 yield kind, data, pos
Copyright (C) 2012-2017 Edgewall Software