(self, attname, value)
| 756 | return "" |
| 757 | |
| 758 | def setAttribute(self, attname, value): |
| 759 | attr = self.getAttributeNode(attname) |
| 760 | if attr is None: |
| 761 | attr = Attr(attname) |
| 762 | attr.value = value # also sets nodeValue |
| 763 | attr.ownerDocument = self.ownerDocument |
| 764 | self.setAttributeNode(attr) |
| 765 | elif value != attr.value: |
| 766 | attr.value = value |
| 767 | if attr.isId: |
| 768 | _clear_id_cache(self) |
| 769 | |
| 770 | def setAttributeNS(self, namespaceURI, qualifiedName, value): |
| 771 | prefix, localname = _nssplit(qualifiedName) |