We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31c6b2d commit 31053faCopy full SHA for 31053fa
html5lib/treebuilders/simpletree.py
@@ -83,9 +83,12 @@ class Document(Node):
83
def __init__(self):
84
Node.__init__(self, None)
85
86
- def __unicode__(self):
+ def __str__(self):
87
return "#document"
88
89
+ def __unicode__(self):
90
+ return str(self)
91
+
92
def appendChild(self, child):
93
Node.appendChild(self, child)
94
@@ -112,9 +115,12 @@ def cloneNode(self):
112
115
113
116
class DocumentFragment(Document):
114
117
type = 2
118
119
return "#document-fragment"
120
121
122
123
124
def cloneNode(self):
125
return DocumentFragment()
126
0 commit comments