| Index: Source/core/html/parser/HTMLConstructionSite.cpp
|
| diff --git a/Source/core/html/parser/HTMLConstructionSite.cpp b/Source/core/html/parser/HTMLConstructionSite.cpp
|
| index 71d5b6b14c82d65478b48a1f1bd9994033bc47b0..82b49479d7c3f1c1486828280bf2bcb5e578d7d9 100644
|
| --- a/Source/core/html/parser/HTMLConstructionSite.cpp
|
| +++ b/Source/core/html/parser/HTMLConstructionSite.cpp
|
| @@ -407,7 +407,7 @@ void HTMLConstructionSite::mergeAttributesFromTokenIntoElement(AtomicHTMLToken*
|
|
|
| for (unsigned i = 0; i < token->attributes().size(); ++i) {
|
| const Attribute& tokenAttribute = token->attributes().at(i);
|
| - if (!element->elementData() || !element->findAttributeByName(tokenAttribute.name()))
|
| + if (!element->elementData() || element->attributes().findIndex(tokenAttribute.name()) == kNotFound)
|
| element->setAttribute(tokenAttribute.name(), tokenAttribute.value());
|
| }
|
| }
|
|
|