mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-30 08:38:15 +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)
|
DOMAttr_implT* removeAttributeNode(DOMAttr_implT* oldAttr)
|
||||||
{
|
{
|
||||||
if(removeNamedItem(oldAttr->getNodeName()) == 0)
|
if(oldAttr->getOwnerElement() != ownerElement_)
|
||||||
throw DOM::DOMException(DOM::DOMException::NOT_FOUND_ERR);
|
throw DOM::DOMException(DOM::DOMException::NOT_FOUND_ERR);
|
||||||
|
removeNamedItem(oldAttr->getNodeName());
|
||||||
return oldAttr;
|
return oldAttr;
|
||||||
} // removeAttributeNode
|
} // removeAttributeNode
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue