mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-17 18:12:04 +01:00
If node doesn't belong to this element, complain
This commit is contained in:
parent
90156036c0
commit
e4fd3c8239
1 changed files with 2 additions and 1 deletions
|
@ -92,8 +92,9 @@ class AttrMap : public NamedNodeMapImpl<stringT, string_adaptorT>
|
|||
|
||||
DOMAttr_implT* removeAttributeNode(DOMAttr_implT* oldAttr)
|
||||
{
|
||||
if(removeNamedItem(oldAttr->getNodeName()) == 0)
|
||||
if(oldAttr->getOwnerElement() != ownerElement_)
|
||||
throw DOM::DOMException(DOM::DOMException::NOT_FOUND_ERR);
|
||||
removeNamedItem(oldAttr->getNodeName());
|
||||
return oldAttr;
|
||||
} // removeAttributeNode
|
||||
|
||||
|
|
Loading…
Reference in a new issue