Index: Source/web/DOMUtilitiesPrivate.cpp |
diff --git a/Source/web/DOMUtilitiesPrivate.cpp b/Source/web/DOMUtilitiesPrivate.cpp |
index 2e8c3f4b7f17bf341e8dc3f0b92147496d6a4811..3c8c112417d018a4f588625d669fcd69c5c21c93 100644 |
--- a/Source/web/DOMUtilitiesPrivate.cpp |
+++ b/Source/web/DOMUtilitiesPrivate.cpp |
@@ -35,6 +35,7 @@ |
#include "core/dom/Element.h" |
#include "core/html/HTMLAreaElement.h" |
#include "core/html/HTMLInputElement.h" |
+#include "core/html/HTMLTableElement.h" |
using namespace WebCore; |
using namespace WebCore::HTMLNames; |
@@ -50,7 +51,7 @@ bool elementHasLegalLinkAttribute(const Element* element, const QualifiedName& a |
if (attrName == actionAttr) |
return element->hasTagName(formTag); |
if (attrName == backgroundAttr) |
- return element->hasTagName(bodyTag) || element->hasTagName(tableTag) || element->hasTagName(trTag) || element->hasTagName(tdTag); |
+ return element->hasTagName(bodyTag) || isHTMLTableElement(element) || element->hasTagName(trTag) || element->hasTagName(tdTag); |
if (attrName == citeAttr) |
return element->hasTagName(blockquoteTag) || element->hasTagName(qTag) || element->hasTagName(delTag) || element->hasTagName(insTag); |
if (attrName == classidAttr || attrName == dataAttr) |