Index: Source/core/html/HTMLOptionElement.cpp |
diff --git a/Source/core/html/HTMLOptionElement.cpp b/Source/core/html/HTMLOptionElement.cpp |
index 7b5bc1ff0043e6e5f1a0c07259eb15684654972e..8f699ec1833d8a225fd49f3fee63da715b7c5ed5 100644 |
--- a/Source/core/html/HTMLOptionElement.cpp |
+++ b/Source/core/html/HTMLOptionElement.cpp |
@@ -327,9 +327,13 @@ bool HTMLOptionElement::isDisabledFormControl() const |
{ |
if (ownElementDisabled()) |
return true; |
+ bool status = false; |
+ ContainerNode* select = parentNode(); |
if (Element* parent = parentElement()) |
- return parent->hasTagName(optgroupTag) && parent->isDisabledFormControl(); |
- return false; |
+ status = parent->hasTagName(optgroupTag) && parent->isDisabledFormControl(); |
+ if (!status && select && select->hasTagName(selectTag)) |
+ status = ownerSelectElement()->isDisabledOrReadOnly(); |
tkent
2014/02/12 08:15:43
We can't do this change. This function should mat
|
+ return status; |
} |
Node::InsertionNotificationRequest HTMLOptionElement::insertedInto(ContainerNode* insertionPoint) |