| Index: Source/core/html/DocumentNameCollection.cpp
|
| diff --git a/Source/core/html/DocumentNameCollection.cpp b/Source/core/html/DocumentNameCollection.cpp
|
| index 2bf70b238e8622d41862543d376e22800bbd35f0..664b0f1d0802c17985607acd19e11b55f1dd602c 100644
|
| --- a/Source/core/html/DocumentNameCollection.cpp
|
| +++ b/Source/core/html/DocumentNameCollection.cpp
|
| @@ -17,12 +17,12 @@ DocumentNameCollection::DocumentNameCollection(ContainerNode& document, const At
|
|
|
| bool DocumentNameCollection::elementMatches(const HTMLElement& element) const
|
| {
|
| - // Match images, forms, applets, embeds, objects and iframes by name,
|
| - // applets and object by id, and images by id but only if they have
|
| + // Match images, forms, embeds, objects and iframes by name,
|
| + // object by id, and images by id but only if they have
|
| // a name attribute (this very strange rule matches IE)
|
| if (isHTMLFormElement(element) || isHTMLIFrameElement(element) || (isHTMLEmbedElement(element) && toHTMLEmbedElement(element).isExposed()))
|
| return element.getNameAttribute() == m_name;
|
| - if (isHTMLAppletElement(element) || (isHTMLObjectElement(element) && toHTMLObjectElement(element).isExposed()))
|
| + if (isHTMLObjectElement(element) && toHTMLObjectElement(element).isExposed())
|
| return element.getNameAttribute() == m_name || element.getIdAttribute() == m_name;
|
| if (isHTMLImageElement(element))
|
| return element.getNameAttribute() == m_name || (element.getIdAttribute() == m_name && element.hasName());
|
|
|