Index: Source/core/html/HTMLFormElement.cpp |
diff --git a/Source/core/html/HTMLFormElement.cpp b/Source/core/html/HTMLFormElement.cpp |
index e76d8d7bdcc5703f5dcfc578475251afa9639f3a..ce3447afc5c4c1675fb06d5c66dcbc679e4ab430 100644 |
--- a/Source/core/html/HTMLFormElement.cpp |
+++ b/Source/core/html/HTMLFormElement.cpp |
@@ -41,6 +41,7 @@ |
#include "core/html/HTMLCollection.h" |
#include "core/html/HTMLImageElement.h" |
#include "core/html/HTMLInputElement.h" |
+#include "core/html/HTMLTableElement.h" |
#include "core/loader/FormState.h" |
#include "core/loader/FrameLoader.h" |
#include "core/loader/FrameLoaderClient.h" |
@@ -104,7 +105,7 @@ bool HTMLFormElement::rendererIsNeeded(const NodeRenderingContext& context) |
ContainerNode* node = parentNode(); |
RenderObject* parentRenderer = node->renderer(); |
// FIXME: Shouldn't we also check for table caption (see |formIsTablePart| below). |
- bool parentIsTableElementPart = (parentRenderer->isTable() && node->hasTagName(tableTag)) |
+ bool parentIsTableElementPart = (parentRenderer->isTable() && isHTMLTableElement(node)) |
|| (parentRenderer->isTableRow() && node->hasTagName(trTag)) |
|| (parentRenderer->isTableSection() && node->hasTagName(tbodyTag)) |
|| (parentRenderer->isRenderTableCol() && node->hasTagName(colTag)) |