Mercurial > genshi > mirror
comparison genshi/output.py @ 1036:26d6ac224d3b stable-0.6.x
Merge r1260 from trunk (add missing boolean attributes to XHTML and HTML serializers).
author | hodgestar |
---|---|
date | Wed, 19 Mar 2014 14:24:01 +0000 |
parents | 303af96ec546 |
children |
comparison
equal
deleted
inserted
replaced
1033:348ba73df25c | 1036:26d6ac224d3b |
---|---|
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 |