Changeset 203524 in webkit
- Timestamp:
- Jul 21, 2016, 2:10:35 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) (2 diffs)
-
LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt (modified) (2 diffs)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/HTMLIFrameElement.idl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r203523 r203524 1 2016-07-21 Chris Dumez <cdumez@apple.com> 2 3 Fix null handling for HTMLIFrameElement.marginWidth / marginHeight 4 https://bugs.webkit.org/show_bug.cgi?id=160037 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 Chris Dumez <cdumez@apple.com> 2 14 -
trunk/LayoutTests/fast/dom/element-attribute-js-null-expected.txt
r203523 r203524 98 98 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLIFrameElement.frameBorder] 99 99 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLIFrameElement.height] 100 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLIFrameElement.marginHeight]101 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLIFrameElement.marginWidth]100 TEST SUCCEEDED: The value was the empty string. [tested HTMLIFrameElement.marginHeight] 101 TEST SUCCEEDED: The value was the empty string. [tested HTMLIFrameElement.marginWidth] 102 102 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLIFrameElement.name] 103 103 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLIFrameElement.scrolling] -
trunk/LayoutTests/fast/dom/element-attribute-js-null.html
r203523 r203524 280 280 {name: 'frameBorder', expectedNull: 'null'}, 281 281 {name: 'height', expectedNull: 'null'}, 282 {name: 'marginHeight', expectedNull: ' null'},283 {name: 'marginWidth', expectedNull: ' null'},282 {name: 'marginHeight', expectedNull: ''}, 283 {name: 'marginWidth', expectedNull: ''}, 284 284 {name: 'name', expectedNull: 'null'}, 285 285 {name: 'scrolling', expectedNull: 'null'}, -
trunk/LayoutTests/imported/w3c/ChangeLog
r203523 r203524 1 2016-07-21 Chris Dumez <cdumez@apple.com> 2 3 Fix null handling for HTMLIFrameElement.marginWidth / marginHeight 4 https://bugs.webkit.org/show_bug.cgi?id=160037 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
r203523 r203524 3400 3400 PASS iframe.marginHeight: IDL set to "\0" followed by IDL get 3401 3401 PASS iframe.marginHeight: IDL set to null should not throw 3402 FAIL iframe.marginHeight: IDL set to null followed by getAttribute() assert_equals: expected "" but got "null" 3403 FAIL iframe.marginHeight: IDL set to null followed by IDL get assert_equals: expected "" but got "null" 3402 PASS iframe.marginHeight: IDL set to null followed by getAttribute() 3403 PASS iframe.marginHeight: IDL set to null followed by IDL get 3404 3404 PASS iframe.marginHeight: IDL set to object "test-toString" should not throw 3405 3405 PASS iframe.marginHeight: IDL set to object "test-toString" followed by getAttribute() … … 3477 3477 PASS iframe.marginWidth: IDL set to "\0" followed by IDL get 3478 3478 PASS iframe.marginWidth: IDL set to null should not throw 3479 FAIL iframe.marginWidth: IDL set to null followed by getAttribute() assert_equals: expected "" but got "null" 3480 FAIL iframe.marginWidth: IDL set to null followed by IDL get assert_equals: expected "" but got "null" 3479 PASS iframe.marginWidth: IDL set to null followed by getAttribute() 3480 PASS iframe.marginWidth: IDL set to null followed by IDL get 3481 3481 PASS iframe.marginWidth: IDL set to object "test-toString" should not throw 3482 3482 PASS iframe.marginWidth: 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
r203523 r203524 3400 3400 PASS iframe.marginHeight: IDL set to "\0" followed by IDL get 3401 3401 PASS iframe.marginHeight: IDL set to null should not throw 3402 FAIL iframe.marginHeight: IDL set to null followed by getAttribute() assert_equals: expected "" but got "null" 3403 FAIL iframe.marginHeight: IDL set to null followed by IDL get assert_equals: expected "" but got "null" 3402 PASS iframe.marginHeight: IDL set to null followed by getAttribute() 3403 PASS iframe.marginHeight: IDL set to null followed by IDL get 3404 3404 PASS iframe.marginHeight: IDL set to object "test-toString" should not throw 3405 3405 PASS iframe.marginHeight: IDL set to object "test-toString" followed by getAttribute() … … 3477 3477 PASS iframe.marginWidth: IDL set to "\0" followed by IDL get 3478 3478 PASS iframe.marginWidth: IDL set to null should not throw 3479 FAIL iframe.marginWidth: IDL set to null followed by getAttribute() assert_equals: expected "" but got "null" 3480 FAIL iframe.marginWidth: IDL set to null followed by IDL get assert_equals: expected "" but got "null" 3479 PASS iframe.marginWidth: IDL set to null followed by getAttribute() 3480 PASS iframe.marginWidth: IDL set to null followed by IDL get 3481 3481 PASS iframe.marginWidth: IDL set to object "test-toString" should not throw 3482 3482 PASS iframe.marginWidth: IDL set to object "test-toString" followed by getAttribute() -
trunk/Source/WebCore/ChangeLog
r203523 r203524 1 2016-07-21 Chris Dumez <cdumez@apple.com> 2 3 Fix null handling for HTMLIFrameElement.marginWidth / marginHeight 4 https://bugs.webkit.org/show_bug.cgi?id=160037 5 6 Reviewed by Ryosuke Niwa. 7 8 Fix null handling for HTMLIFrameElement.marginWidth / marginHeight to 9 match the specification: 10 - https://html.spec.whatwg.org/#HTMLIFrameElement-partial 11 12 We are supposed to treat null as the empty string. Both Firefox and 13 Chrome agree with the specification. 14 15 No new tests, rebaselined existing tests. 16 17 * html/HTMLIFrameElement.idl: 18 1 19 2016-07-21 Chris Dumez <cdumez@apple.com> 2 20 -
trunk/Source/WebCore/html/HTMLIFrameElement.idl
r196123 r203524 24 24 [Reflect] attribute DOMString height; 25 25 [Reflect] attribute DOMString longDesc; 26 [Reflect ] attribute DOMString marginHeight;27 [Reflect ] attribute DOMString marginWidth;26 [Reflect, TreatNullAs=EmptyString] attribute DOMString marginHeight; 27 [Reflect, TreatNullAs=EmptyString] attribute DOMString marginWidth; 28 28 [Reflect] attribute DOMString name; 29 29
Note:
See TracChangeset
for help on using the changeset viewer.