summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore')
-rw-r--r--WebCore/html/HTMLOptionElement.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/WebCore/html/HTMLOptionElement.cpp b/WebCore/html/HTMLOptionElement.cpp
index 085019f..63f818e 100644
--- a/WebCore/html/HTMLOptionElement.cpp
+++ b/WebCore/html/HTMLOptionElement.cpp
@@ -176,7 +176,11 @@ void HTMLOptionElement::childrenChanged(bool changedByParser, Node* beforeChange
HTMLSelectElement* HTMLOptionElement::ownerSelectElement() const
{
Node* select = parentNode();
+#ifdef ANDROID_FIX
+ while (select && !(select->hasTagName(selectTag) || select->hasTagName(keygenTag)))
+#else
while (select && !select->hasTagName(selectTag))
+#endif
select = select->parentNode();
if (!select)