html5lib/html5lib-python — pull request #136 by SimonSapin (2013-12-31 09:29:33+00:00)
Title: WIP More general fix for #127 with addinfourl

**Do not merge yet**, this is incomplete.

As discussed in #134 I changed this to avoid `.read(0)` entirely and pass a first chunk to `HTMLUnicodeInputStream` and `HTMLBinaryInputStream`, but then I get lost in their implementation and I don’t know what to do with that first chunk.

Surprisingly, most tests still passed because `.seek(0)` is used in some places. I added a failing test with a non-seekable input.