Index: Source/core/html/parser/HTMLElementStack.cpp |
diff --git a/Source/core/html/parser/HTMLElementStack.cpp b/Source/core/html/parser/HTMLElementStack.cpp |
index affc1a3a4dd1ea541a665aa116c3d1499ec4ebcf..ed7cccc23df1d7cac3225f51eade1ab28aca69e2 100644 |
--- a/Source/core/html/parser/HTMLElementStack.cpp |
+++ b/Source/core/html/parser/HTMLElementStack.cpp |
@@ -31,6 +31,7 @@ |
#include "MathMLNames.h" |
#include "SVGNames.h" |
#include "core/dom/Element.h" |
+#include "core/html/HTMLOptGroupElement.h" |
#include <wtf/PassOwnPtr.h> |
namespace WebCore { |
@@ -113,7 +114,7 @@ inline bool isButtonScopeMarker(HTMLStackItem* item) |
inline bool isSelectScopeMarker(HTMLStackItem* item) |
{ |
- return !item->hasTagName(optgroupTag) |
+ return !isHTMLOptGroupElement(item->node()) |
&& !item->hasTagName(optionTag); |
} |