This commit is contained in:
Kovid Goyal 2013-10-25 15:31:49 +05:30
parent fe32a39f0f
commit 62ebb5e3f6

View File

@ -30,6 +30,7 @@ class NamespacedHTMLPresent(ValueError):
ValueError.__init__(self, prefix) ValueError.__init__(self, prefix)
self.prefix = prefix self.prefix = prefix
# Nodes {{{
def create_lxml_context(): def create_lxml_context():
parser = XMLParser(no_network=True) parser = XMLParser(no_network=True)
parser.set_element_class_lookup(ElementDefaultClassLookup(element=Element, comment=Comment)) parser.set_element_class_lookup(ElementDefaultClassLookup(element=Element, comment=Comment))
@ -212,6 +213,7 @@ class DocType(object):
def __init__(self, name, public_id, system_id): def __init__(self, name, public_id, system_id):
self.text = self.name = name self.text = self.name = name
self.public_id, self.system_id = public_id, system_id self.public_id, self.system_id = public_id, system_id
# }}}
def process_attribs(attrs, nsmap): def process_attribs(attrs, nsmap):
attribs = {} attribs = {}