also html5lib auf windoofs geht nicht:
Code: Alles auswählen
doc = html5lib.parse("<script>alert('hi');</script>", treebuilder="lxml")
Traceback (most recent call last):
File "<pyshell#7>", line 1, in <module>
doc = html5lib.parse("<script>alert('hi');</script>", treebuilder="lxml")
File "C:\Python26\lib\site-packages\html5lib\html5parser.py", line 37, in parse
p = HTMLParser(tb, namespaceHTMLElements=namespaceHTMLElements)
File "C:\Python26\lib\site-packages\html5lib\html5parser.py", line 68, in __init__
self.tree = tree(namespaceHTMLElements)
File "C:\Python26\lib\site-packages\html5lib\treebuilders\etree_lxml.py", line 176, in __init__
builder = etree_builders.getETreeModule(etree, fullTree=fullTree)
NameError: global name 'etree' is not defined
>>> doc.nameTuple
Traceback (most recent call last):
File "<pyshell#14>", line 1, in <module>
doc.nameTuple
File "C:\Python26\lib\site-packages\html5lib\treebuilders\simpletree.py", line 72, in getNameTuple
if self.namespace == None:
AttributeError: 'Document' object has no attribute 'namespace'
Obwohl das in der Doku so angegeben ist.
lxml gibt es nicht für python2.6 und windoofs
Edit: oh, doch gerade gefunden
[b][i]ein kleines game für die die lust haben http://konaminut.mybrute.com[/i][/b]
;-)