| Index: Source/WebCore/html/HTMLCollection.cpp
 | 
| ===================================================================
 | 
| --- Source/WebCore/html/HTMLCollection.cpp	(revision 116139)
 | 
| +++ Source/WebCore/html/HTMLCollection.cpp	(working copy)
 | 
| @@ -100,6 +100,9 @@
 | 
|  
 | 
|  inline bool HTMLCollection::isAcceptableElement(Element* element) const
 | 
|  {
 | 
| +    if (!element->isHTMLElement() && !(m_type == DocAll || m_type == NodeChildren))
 | 
| +        return false;
 | 
| +
 | 
|      switch (m_type) {
 | 
|      case DocImages:
 | 
|          return element->hasLocalName(imgTag);
 | 
| @@ -146,7 +149,7 @@
 | 
|          return true;
 | 
|  #if ENABLE(MICRODATA)
 | 
|      case ItemProperties:
 | 
| -        return element->isHTMLElement() && element->fastHasAttribute(itempropAttr);
 | 
| +        return element->fastHasAttribute(itempropAttr);
 | 
|  #endif
 | 
|      case DocumentNamedItems:
 | 
|      case OtherCollection:
 | 
| 
 |