| @@ -462,7 +462,7 @@ class DOM: | |||||
| return default | return default | ||||
| raise KeyError(name) | raise KeyError(name) | ||||
| def getElementById(self, node, id, default=join): | |||||
| def getElementById(self, node, id, default=''.join): | |||||
| """Return the first child of node matching an id reference.""" | """Return the first child of node matching an id reference.""" | ||||
| attrget = self.getAttr | attrget = self.getAttr | ||||
| ELEMENT_NODE = node.ELEMENT_NODE | ELEMENT_NODE = node.ELEMENT_NODE | ||||
| @@ -516,7 +516,7 @@ class DOM: | |||||
| return False | return False | ||||
| return node.hasAttributeNS(nsuri, name) | return node.hasAttributeNS(nsuri, name) | ||||
| def getAttr(self, node, name, nsuri=None, default=join): | |||||
| def getAttr(self, node, name, nsuri=None, default=''.join): | |||||
| """Return the value of the attribute named 'name' with the | """Return the value of the attribute named 'name' with the | ||||
| optional nsuri, or the default if one is specified. If | optional nsuri, or the default if one is specified. If | ||||
| nsuri is not specified, an attribute that matches the | nsuri is not specified, an attribute that matches the | ||||