Changeset 203523 in webkit
- Timestamp:
- Jul 21, 2016, 2:09:44 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/dom/element-attribute-js-null-expected.txt (modified) (1 diff)
-
LayoutTests/fast/dom/element-attribute-js-null.html (modified) (1 diff)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt (modified) (1 diff)
-
LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/HTMLImageElement.idl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r203522 r203523 1 2016-07-21 Chris Dumez <cdumez@apple.com> 2 3 Fix null handling for HTMLImageElement.border 4 https://bugs.webkit.org/show_bug.cgi?id=160039 5 6 Reviewed by Ryosuke Niwa. 7 8 Update existing test to reflect the behavior change. 9 10 * fast/dom/element-attribute-js-null-expected.txt: 11 * fast/dom/element-attribute-js-null.html: 12 1 13 2016-07-21 Daniel Bates <dabates@apple.com> 2 14 -
trunk/LayoutTests/fast/dom/element-attribute-js-null-expected.txt
r203474 r203523 107 107 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLImageElement.align] 108 108 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLImageElement.alt] 109 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLImageElement.border]109 TEST SUCCEEDED: The value was the empty string. [tested HTMLImageElement.border] 110 110 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLImageElement.useMap] 111 111 -
trunk/LayoutTests/fast/dom/element-attribute-js-null.html
r203474 r203523 294 294 {name: 'align', expectedNull: 'null'}, 295 295 {name: 'alt', expectedNull: 'null'}, 296 {name: 'border', expectedNull: ' null'},296 {name: 'border', expectedNull: ''}, 297 297 {name: 'useMap', expectedNull: 'null'}, 298 298 ] -
trunk/LayoutTests/imported/w3c/ChangeLog
r203517 r203523 1 2016-07-21 Chris Dumez <cdumez@apple.com> 2 3 Fix null handling for HTMLImageElement.border 4 https://bugs.webkit.org/show_bug.cgi?id=160039 5 6 Reviewed by Ryosuke Niwa. 7 8 Rebaseline W3C test now that more checks are passing. 9 10 * web-platform-tests/html/dom/reflection-embedded-expected.txt: 11 1 12 2016-07-21 Chris Dumez <cdumez@apple.com> 2 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt
r203463 r203523 1851 1851 PASS img.border: IDL set to "\0" followed by IDL get 1852 1852 PASS img.border: IDL set to null should not throw 1853 FAIL img.border: IDL set to null followed by getAttribute() assert_equals: expected "" but got "null" 1854 FAIL img.border: IDL set to null followed by IDL get assert_equals: expected "" but got "null" 1853 PASS img.border: IDL set to null followed by getAttribute() 1854 PASS img.border: IDL set to null followed by IDL get 1855 1855 PASS img.border: IDL set to object "test-toString" should not throw 1856 1856 PASS img.border: IDL set to object "test-toString" followed by getAttribute() -
trunk/LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt
r203463 r203523 1851 1851 PASS img.border: IDL set to "\0" followed by IDL get 1852 1852 PASS img.border: IDL set to null should not throw 1853 FAIL img.border: IDL set to null followed by getAttribute() assert_equals: expected "" but got "null" 1854 FAIL img.border: IDL set to null followed by IDL get assert_equals: expected "" but got "null" 1853 PASS img.border: IDL set to null followed by getAttribute() 1854 PASS img.border: IDL set to null followed by IDL get 1855 1855 PASS img.border: IDL set to object "test-toString" should not throw 1856 1856 PASS img.border: IDL set to object "test-toString" followed by getAttribute() -
trunk/Source/WebCore/ChangeLog
r203522 r203523 1 2016-07-21 Chris Dumez <cdumez@apple.com> 2 3 Fix null handling for HTMLImageElement.border 4 https://bugs.webkit.org/show_bug.cgi?id=160039 5 6 Reviewed by Ryosuke Niwa. 7 8 Fix null handling for HTMLImageElement.border to match the specification: 9 - https://html.spec.whatwg.org/#HTMLImageElement-partial 10 11 We are supposed to treat null as the empty string. 12 13 Both Firefox and Chrome agree with the specification. 14 15 No new tests, rebaselined existing tests. 16 17 * html/HTMLImageElement.idl: 18 1 19 2016-07-21 Daniel Bates <dabates@apple.com> 2 20 -
trunk/Source/WebCore/html/HTMLImageElement.idl
r199539 r203523 26 26 [Reflect] attribute DOMString align; 27 27 [Reflect] attribute DOMString alt; 28 [Reflect ] attribute DOMString border;28 [Reflect, TreatNullAs=EmptyString] attribute DOMString border; 29 29 attribute DOMString? crossOrigin; 30 30 attribute long height;
Note:
See TracChangeset
for help on using the changeset viewer.