Work in progress

--HG--
branch : svgmathml
rename : python/README => python3/README
rename : python/html5-tests.patch => python3/html5-tests.patch
rename : python/parse.py => python3/parse.py
rename : python/setup.py => python3/setup.py
rename : python/setup_base.py => python3/setup_base.py
rename : python/src/html5lib/__init__.py => python3/src/html5lib/__init__.py
rename : python/src/html5lib/constants.py => python3/src/html5lib/constants.py
rename : python/src/html5lib/filters/__init__.py => python3/src/html5lib/filters/__init__.py
rename : python/src/html5lib/filters/_base.py => python3/src/html5lib/filters/_base.py
rename : python/src/html5lib/filters/formfiller.py => python3/src/html5lib/filters/formfiller.py
rename : python/src/html5lib/filters/inject_meta_charset.py => python3/src/html5lib/filters/inject_meta_charset.py
rename : python/src/html5lib/filters/iso639codes.py => python3/src/html5lib/filters/iso639codes.py
rename : python/src/html5lib/filters/lint.py => python3/src/html5lib/filters/lint.py
rename : python/src/html5lib/filters/optionaltags.py => python3/src/html5lib/filters/optionaltags.py
rename : python/src/html5lib/filters/rfc2046.py => python3/src/html5lib/filters/rfc2046.py
rename : python/src/html5lib/filters/rfc3987.py => python3/src/html5lib/filters/rfc3987.py
rename : python/src/html5lib/filters/sanitizer.py => python3/src/html5lib/filters/sanitizer.py
rename : python/src/html5lib/filters/validator.py => python3/src/html5lib/filters/validator.py
rename : python/src/html5lib/filters/whitespace.py => python3/src/html5lib/filters/whitespace.py
rename : python/src/html5lib/html5parser.py => python3/src/html5lib/html5parser.py
rename : python/src/html5lib/ihatexml.py => python3/src/html5lib/ihatexml.py
rename : python/src/html5lib/inputstream.py => python3/src/html5lib/inputstream.py
rename : python/src/html5lib/liberalxmlparser.py => python3/src/html5lib/liberalxmlparser.py
rename : python/src/html5lib/sanitizer.py => python3/src/html5lib/sanitizer.py
rename : python/src/html5lib/serializer/__init__.py => python3/src/html5lib/serializer/__init__.py
rename : python/src/html5lib/serializer/htmlserializer.py => python3/src/html5lib/serializer/htmlserializer.py
rename : python/src/html5lib/serializer/xhtmlserializer.py => python3/src/html5lib/serializer/xhtmlserializer.py
rename : python/src/html5lib/tokenizer.py => python3/src/html5lib/tokenizer.py
rename : python/src/html5lib/treebuilders/__init__.py => python3/src/html5lib/treebuilders/__init__.py
rename : python/src/html5lib/treebuilders/_base.py => python3/src/html5lib/treebuilders/_base.py
rename : python/src/html5lib/treebuilders/dom.py => python3/src/html5lib/treebuilders/dom.py
rename : python/src/html5lib/treebuilders/etree.py => python3/src/html5lib/treebuilders/etree.py
rename : python/src/html5lib/treebuilders/etree_lxml.py => python3/src/html5lib/treebuilders/etree_lxml.py
rename : python/src/html5lib/treebuilders/simpletree.py => python3/src/html5lib/treebuilders/simpletree.py
rename : python/src/html5lib/treebuilders/soup.py => python3/src/html5lib/treebuilders/soup.py
rename : python/src/html5lib/treewalkers/__init__.py => python3/src/html5lib/treewalkers/__init__.py
rename : python/src/html5lib/treewalkers/_base.py => python3/src/html5lib/treewalkers/_base.py
rename : python/src/html5lib/treewalkers/dom.py => python3/src/html5lib/treewalkers/dom.py
rename : python/src/html5lib/treewalkers/etree.py => python3/src/html5lib/treewalkers/etree.py
rename : python/src/html5lib/treewalkers/genshistream.py => python3/src/html5lib/treewalkers/genshistream.py
rename : python/src/html5lib/treewalkers/lxmletree.py => python3/src/html5lib/treewalkers/lxmletree.py
rename : python/src/html5lib/treewalkers/pulldom.py => python3/src/html5lib/treewalkers/pulldom.py
rename : python/src/html5lib/treewalkers/simpletree.py => python3/src/html5lib/treewalkers/simpletree.py
rename : python/src/html5lib/treewalkers/soup.py => python3/src/html5lib/treewalkers/soup.py
rename : python/src/html5lib/utils.py => python3/src/html5lib/utils.py
rename : python/tests/README => python3/tests/README
rename : python/tests/__init__.py => python3/tests/__init__.py
rename : python/tests/mockParser.py => python3/tests/mockParser.py
rename : python/tests/performance/concatenation.py => python3/tests/performance/concatenation.py
rename : python/tests/runparsertests.py => python3/tests/runparsertests.py
rename : python/tests/runtests.py => python3/tests/runtests.py
rename : python/tests/support.py => python3/tests/support.py
rename : python/tests/test_encoding.py => python3/tests/test_encoding.py
rename : python/tests/test_formfiller.py => python3/tests/test_formfiller.py
rename : python/tests/test_lxp.py => python3/tests/test_lxp.py
rename : python/tests/test_parser.py => python3/tests/test_parser.py
rename : python/tests/test_parser2.py => python3/tests/test_parser2.py
rename : python/tests/test_sanitizer.py => python3/tests/test_sanitizer.py
rename : python/tests/test_sax.py => python3/tests/test_sax.py
rename : python/tests/test_serializer.py => python3/tests/test_serializer.py
rename : python/tests/test_stream.py => python3/tests/test_stream.py
rename : python/tests/test_tokenizer.py => python3/tests/test_tokenizer.py
rename : python/tests/test_treewalkers.py => python3/tests/test_treewalkers.py
rename : python/tests/test_validator.py => python3/tests/test_validator.py
rename : python/tests/test_whitespace_filter.py => python3/tests/test_whitespace_filter.py
rename : python/tests/us-ascii.html => python3/tests/us-ascii.html
rename : python/tests/utf-8-bom.html => python3/tests/utf-8-bom.html
rename : python/utils/encodings.py => python3/utils/encodings.py
rename : python/utils/extract-entities.py => python3/utils/extract-entities.py
rename : python/utils/iana_parse.py => python3/utils/iana_parse.py
rename : python/utils/package.py => python3/utils/package.py
rename : python/utils/spider.py => python3/utils/spider.py
rename : python/validate.py => python3/validate.py
extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/branches/svgmathml%401265
More stuff orking including treewalkers, parts of parse.py dom, (c)ElementTree

--HG--
branch : svgmathml
extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/branches/svgmathml%401266
Attempt at merging svgmathml branch to the default branch

--HG--
branch : svgmathml
rename : python/parse.py => python3/parse.py
rename : python/src/html5lib/__init__.py => python3/src/html5lib/__init__.py
rename : python/src/html5lib/constants.py => python3/src/html5lib/constants.py
rename : python/src/html5lib/filters/optionaltags.py => python3/src/html5lib/filters/optionaltags.py
rename : python/src/html5lib/html5parser.py => python3/src/html5lib/html5parser.py
rename : python/src/html5lib/inputstream.py => python3/src/html5lib/inputstream.py
rename : python/src/html5lib/sanitizer.py => python3/src/html5lib/sanitizer.py
rename : python/src/html5lib/serializer/__init__.py => python3/src/html5lib/serializer/__init__.py
rename : python/src/html5lib/tokenizer.py => python3/src/html5lib/tokenizer.py
rename : python/src/html5lib/treebuilders/etree_lxml.py => python3/src/html5lib/treebuilders/etree_lxml.py
rename : python/src/html5lib/treebuilders/simpletree.py => python3/src/html5lib/treebuilders/simpletree.py
rename : python/tests/test_encoding.py => python3/tests/test_encoding.py
rename : python/tests/test_parser.py => python3/tests/test_parser.py
rename : python/tests/test_tokenizer.py => python3/tests/test_tokenizer.py
Merge again

--HG--
rename : python/src/html5lib/html5parser.py => python3/src/html5lib/html5parser.py
Serializer test fixes
EncodingBytes.__new__ needs to call bytes.__new__, not str.__new__
fix 'NameError: global name 'nameLower' is not defined' in processDoctype
fix 'object of type 'type' is not iterable' in codecName
various fixes to make lxml treebuilder actually work in python 3
Add "poster" as an acceptable attribute of <video>

This commit adds support for the "poster" attribute, marking its value
as being a URI.
Add support for <video preload=...>, <audio preload=...>

This commit adds "preload" to the set of acceptable attributes on video
and audio elements.
Welcome to Python 3.

We now fail the same three tests on both Py2 and Py3. I'm fairly certain the
meta-preparser among other things is broken on Py3, but we have no tests for
it. (We should fix that.)
Merge.
Rebuild Py3
Update Python 3, now passes identical number of tests as Python 2.
Fix CDATA state when it ends with more than two square brackets.
Just print a unicode string directly
Remove needless print calls
Make code DRYer, and make it possible for this to work under Py2 and Py3.
Get warnings properly paid attention to in the tests.