Changeset 190674 in webkit
- Timestamp:
- Oct 7, 2015, 11:17:56 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r190667 r190674 1 2015-10-07 Nan Wang <n_wang@apple.com> 2 3 AX: ARIA 1.1 @aria-placeholder 4 https://bugs.webkit.org/show_bug.cgi?id=148970 5 6 Reviewed by Chris Fleizach. 7 8 * accessibility/placeholder-expected.txt: 9 * accessibility/placeholder.html: 10 1 11 2015-10-06 Simon Fraser <simon.fraser@apple.com> 2 12 -
trunk/LayoutTests/accessibility/placeholder-expected.txt
r95906 r190674 1 1 Birthday: 2 03-14-1879 2 3 This test makes sure that the placeholder is returned as the correct attribute 3 4 … … 7 8 PASS fieldElement.stringAttributeValue('AXPlaceholderValue') is 'search' 8 9 PASS pass.stringAttributeValue('AXPlaceholderValue') is 'Password' 10 PASS search.stringAttributeValue('AXPlaceholderValue') is 'MM-DD-YYYY' 9 11 PASS successfullyParsed is true 10 12 -
trunk/LayoutTests/accessibility/placeholder.html
r155274 r190674 9 9 10 10 <input id="password" class="field" type="password" name="sc1798" value="" placeholder="Password" spellcheck="true" maxlength="5096"> 11 12 <span id="label">Birthday:</span> 13 <div id="search" role="searchbox" aria-labelledby="label" aria-placeholder="MM-DD-YYYY">03-14-1879</div> 11 14 12 15 <p id="description"></p> … … 24 27 var pass = accessibilityController.focusedElement; 25 28 shouldBe("pass.stringAttributeValue('AXPlaceholderValue')", "'Password'"); 29 30 var search = accessibilityController.accessibleElementById("search"); 31 shouldBe("search.stringAttributeValue('AXPlaceholderValue')", "'MM-DD-YYYY'"); 26 32 27 33 } -
trunk/Source/WebCore/ChangeLog
r190668 r190674 1 2015-10-07 Nan Wang <n_wang@apple.com> 2 3 AX: ARIA 1.1 @aria-placeholder 4 https://bugs.webkit.org/show_bug.cgi?id=148970 5 6 Reviewed by Chris Fleizach. 7 8 Added support for aria-placeholder attribute. 9 10 Modified accessibility/placeholder.html test. 11 12 * accessibility/AccessibilityObject.cpp: 13 (WebCore::AccessibilityObject::placeholderValue): 14 * html/HTMLAttributeNames.in: 15 1 16 2015-10-07 Commit Queue <commit-queue@webkit.org> 2 17 -
trunk/Source/WebCore/accessibility/AccessibilityObject.cpp
r190648 r190674 2121 2121 const AtomicString& AccessibilityObject::placeholderValue() const 2122 2122 { 2123 const AtomicString& ariaPlaceholder = getAttribute(aria_placeholderAttr); 2124 if (!ariaPlaceholder.isEmpty()) 2125 return ariaPlaceholder; 2126 2123 2127 const AtomicString& placeholder = getAttribute(placeholderAttr); 2124 2128 if (!placeholder.isEmpty()) -
trunk/Source/WebCore/html/HTMLAttributeNames.in
r189950 r190674 39 39 aria-orientation 40 40 aria-owns 41 aria-placeholder 41 42 aria-posinset 42 43 aria-pressed
Note:
See TracChangeset
for help on using the changeset viewer.