comparison genshi/output.py @ 1034:e02843c0fecc trunk

Add missing boolean attributes to XHTML and HTML serializers (fixes #570).
author hodgestar
date Wed, 19 Mar 2014 14:22:22 +0000
parents f15334b65cf8
children
comparison
equal deleted inserted replaced
1031:5dccab13ec85 1034:e02843c0fecc
314 _EMPTY_ELEMS = frozenset(['area', 'base', 'basefont', 'br', 'col', 'frame', 314 _EMPTY_ELEMS = frozenset(['area', 'base', 'basefont', 'br', 'col', 'frame',
315 'hr', 'img', 'input', 'isindex', 'link', 'meta', 315 'hr', 'img', 'input', 'isindex', 'link', 'meta',
316 'param']) 316 'param'])
317 _BOOLEAN_ATTRS = frozenset(['selected', 'checked', 'compact', 'declare', 317 _BOOLEAN_ATTRS = frozenset(['selected', 'checked', 'compact', 'declare',
318 'defer', 'disabled', 'ismap', 'multiple', 318 'defer', 'disabled', 'ismap', 'multiple',
319 'nohref', 'noresize', 'noshade', 'nowrap']) 319 'nohref', 'noresize', 'noshade', 'nowrap',
320 'autofocus', 'readonly', 'required',
321 'formnovalidate'])
320 _PRESERVE_SPACE = frozenset([ 322 _PRESERVE_SPACE = frozenset([
321 QName('pre'), QName('http://www.w3.org/1999/xhtml}pre'), 323 QName('pre'), QName('http://www.w3.org/1999/xhtml}pre'),
322 QName('textarea'), QName('http://www.w3.org/1999/xhtml}textarea') 324 QName('textarea'), QName('http://www.w3.org/1999/xhtml}textarea')
323 ]) 325 ])
324 326
Copyright (C) 2012-2017 Edgewall Software