Index: Source/modules/accessibility/AXNodeObject.cpp |
diff --git a/Source/modules/accessibility/AXNodeObject.cpp b/Source/modules/accessibility/AXNodeObject.cpp |
index e9445935c010a82c94d42c682a509a8d913ff829..f60bf63eb7f89e91d50400f4fcd0b0aaa64cd718 100644 |
--- a/Source/modules/accessibility/AXNodeObject.cpp |
+++ b/Source/modules/accessibility/AXNodeObject.cpp |
@@ -967,6 +967,21 @@ String AXNodeObject::ariaAutoComplete() const |
return String(); |
} |
+String AXNodeObject::placeholder() const |
+{ |
+ String placeholder; |
+ if (node()) { |
+ if (isHTMLInputElement(*node())) { |
+ HTMLInputElement* inputElement = toHTMLInputElement(node()); |
+ placeholder = inputElement->strippedPlaceholder(); |
+ } else if (isHTMLTextAreaElement(*node())) { |
+ HTMLTextAreaElement* textAreaElement = toHTMLTextAreaElement(node()); |
+ placeholder = textAreaElement->strippedPlaceholder(); |
+ } |
+ } |
+ return placeholder; |
+} |
+ |
String AXNodeObject::text() const |
{ |
// If this is a user defined static text, use the accessible name computation. |