Lines Matching refs:_attrs
409 del elem._attrs[self.nodeName]
466 self._attrs = attrs
471 return len(self._attrs)
475 return self[self._attrs.keys()[index]]
481 for node in self._attrs.values():
487 for node in self._attrs.values():
493 return key in self._attrs
498 return self._attrs.keys()
504 return self._attrs.values()
507 return self._attrs.get(name, value)
513 if self._attrs is getattr(other, "_attrs", None):
522 return self._attrs[attname_or_tuple]
528 node = self._attrs[attname]
542 return self._attrs[name]
556 del self._attrs[n.nodeName]
569 del self._attrs[n.nodeName]
580 old = self._attrs.get(node.name)
583 self._attrs[node.name] = node
598 return self._attrs, self._attrsNS, self._ownerElement
601 self._attrs, self._attrsNS, self._ownerElement = state
651 self._attrs = {} # attributes are double-indexed:
666 for attr in self._attrs.values():
668 self._attrs = None
674 return self._attrs[attname].value
722 return self._attrs.get(attrname)
730 old1 = self._attrs.get(attr.name, None)
749 attr = self._attrs[name]
765 self._attrs[node.name]
777 return name in self._attrs
821 return NamedNodeMap(self._attrs, self._attrsNS, self)
824 if self._attrs:
858 element._attrs[attr.name] = attr