| Index: Source/core/dom/Element.cpp
|
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
|
| index 47c62a809afdd5c88b0cf10b0e9bf2bcc220baaa..f3316e29e58bfa019d6780d96364be73f2372462 100644
|
| --- a/Source/core/dom/Element.cpp
|
| +++ b/Source/core/dom/Element.cpp
|
| @@ -2743,7 +2743,9 @@ inline void Element::updateId(const AtomicString& oldId, const AtomicString& new
|
|
|
| inline void Element::updateId(TreeScope& scope, const AtomicString& oldId, const AtomicString& newId)
|
| {
|
| - ASSERT(isInTreeScope());
|
| + if (!isInTreeScope())
|
| + return;
|
| +
|
| ASSERT(oldId != newId);
|
|
|
| if (!oldId.isEmpty())
|
|
|