|
Lines 1-3
a/Source/WebCore/ChangeLog_sec1
|
|
|
1 |
2015-11-17 Keith Rollin <krollin@apple.com> |
| 2 |
|
| 3 |
[Win] fast/forms/HTMLOptionElement_label03.html failing on win7 |
| 4 |
https://bugs.webkit.org/show_bug.cgi?id=150909 |
| 5 |
rdar://problem/23539673 |
| 6 |
|
| 7 |
Reviewed by Darin Adler. |
| 8 |
|
| 9 |
When returning text to be displayed, an <option> element will return |
| 10 |
the value of a label attribute if it exists, or the text content as a |
| 11 |
fallback. The failing test concerned the display of a <select> |
| 12 |
element when it contained a sole <option> element that had a label |
| 13 |
attribute set to a single space. When displayed, various |
| 14 |
platform-specific bits of code will strip off the leading and trailing |
| 15 |
whitespace. However, when WebKit would use this text to measure how |
| 16 |
wide the <select> popup menu button should be, it would not strip off |
| 17 |
spaces, leading to the calculated width being wider than necessary. |
| 18 |
The approach taken to fix this is to strip whitespace in the label |
| 19 |
attribute before it is returned from the <option> element. |
| 20 |
|
| 21 |
No new tests. fast/forms/HTMLOptionElement_label03.html had been |
| 22 |
marked as being expected to fail in TestExpectations; that test now |
| 23 |
succeeds. |
| 24 |
|
| 25 |
* html/HTMLOptionElement.cpp: |
| 26 |
(WebCore::HTMLOptionElement::label): |
| 27 |
|
| 1 |
2015-11-13 Jiewen Tan <jiewen_tan@apple.com> |
28 |
2015-11-13 Jiewen Tan <jiewen_tan@apple.com> |
| 2 |
|
29 |
|
| 3 |
Element::focus() should acquire the ownership of Frame. |
30 |
Element::focus() should acquire the ownership of Frame. |