Lines Matching refs:_attrs
425 del elem._attrs[self.nodeName]
482 self._attrs = attrs
487 return len(self._attrs)
491 return self[list(self._attrs.keys())[index]]
497 for node in self._attrs.values():
503 for node in self._attrs.values():
509 return key in self._attrs
514 return self._attrs.keys()
520 return self._attrs.values()
523 return self._attrs.get(name, value)
528 if self._attrs is getattr(other, "_attrs", None):
552 return self._attrs[attname_or_tuple]
558 node = self._attrs[attname]
572 return self._attrs[name]
586 del self._attrs[n.nodeName]
599 del self._attrs[n.nodeName]
610 old = self._attrs.get(node.name)
613 self._attrs[node.name] = node
628 return self._attrs, self._attrsNS, self._ownerElement
631 self._attrs, self._attrsNS, self._ownerElement = state
695 self._attrs = None
699 if self._attrs is None:
700 self._attrs = {}
713 if self._attrs is not None:
714 for attr in list(self._attrs.values()):
716 self._attrs = None
721 if self._attrs is None:
724 return self._attrs[attname].value
766 if self._attrs is None:
768 return self._attrs.get(attrname)
779 old1 = self._attrs.get(attr.name, None)
800 attr = self._attrs[name]
818 self._attrs[node.name]
830 if self._attrs is None:
832 return name in self._attrs
878 return NamedNodeMap(self._attrs, self._attrsNS, self)
881 if self._attrs:
916 element._attrs[attr.name] = attr