Status: New
Owner: ----

New issue 107 by matburnham: TypeError: insertDoctype() takes exactly 4  
arguments (2 given)
http://code.google.com/p/html5lib/issues/detail?id=107

Running Python 2.5.2 with revision b7f2a61b8b4b of html5lib, the following
test case causes the exception which follows:

import html5lib
import urllib2

url = 'http://www.google.com'
opener = urllib2.build_opener()
page = opener.open(url)
parser =
html5lib.HTMLParser(tree=html5lib.treebuilders.getTreeBuilder("beautifulsoup"))
soup = parser.parse(page.read())


Traceback (most recent call last):
   File "test.py", line 12, in <module>
     soup = parser.parse(page.read())
   File "build/bdist.linux-x86_64/egg/html5lib/html5parser.py", line 196, in
parse
   File "build/bdist.linux-x86_64/egg/html5lib/html5parser.py", line 94, in
_parse
   File "build/bdist.linux-x86_64/egg/html5lib/html5parser.py", line 174, in
mainLoop
   File "build/bdist.linux-x86_64/egg/html5lib/html5parser.py", line 473, in
processDoctype
TypeError: insertDoctype() takes exactly 4 arguments (2 given)

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"html5lib-discuss" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to 
[email protected]
 For more options, visit this group at 
http://groups.google.com/group/html5lib-discuss?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to