| Index: Source/core/html/HTMLElement.cpp
|
| diff --git a/Source/core/html/HTMLElement.cpp b/Source/core/html/HTMLElement.cpp
|
| index 782fe00503477feeb3e081c6adf645978849b80d..e7ae5b4e4d0de69e9275df70e413f895c87f0b67 100644
|
| --- a/Source/core/html/HTMLElement.cpp
|
| +++ b/Source/core/html/HTMLElement.cpp
|
| @@ -935,9 +935,8 @@ bool HTMLElement::matchesReadOnlyPseudoClass() const
|
|
|
| bool HTMLElement::matchesReadWritePseudoClass() const
|
| {
|
| - if (fastHasAttribute(contenteditableAttr)) {
|
| - const AtomicString& value = fastGetAttribute(contenteditableAttr);
|
| -
|
| + const AtomicString& value = fastGetAttribute(contenteditableAttr);
|
| + if (!value.isNull()) {
|
| if (value.isEmpty() || equalIgnoringCase(value, "true") || equalIgnoringCase(value, "plaintext-only"))
|
| return true;
|
| if (equalIgnoringCase(value, "false"))
|
|
|