Changeset 203525 in webkit
- Timestamp:
- Jul 21, 2016, 2:11:06 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 7 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-sections-expected.txt (modified) (5 diffs)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/HTMLBodyElement.idl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r203524 r203525 1 2016-07-21 Chris Dumez <cdumez@apple.com> 2 3 Fix null handling for several HTMLBodyElement attributes 4 https://bugs.webkit.org/show_bug.cgi?id=160044 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
r203524 r203525 46 46 47 47 48 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLBodyElement.aLink]48 TEST SUCCEEDED: The value was the empty string. [tested HTMLBodyElement.aLink] 49 49 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLBodyElement.background] 50 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLBodyElement.bgColor]51 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLBodyElement.link]52 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLBodyElement.text]53 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLBodyElement.vLink]50 TEST SUCCEEDED: The value was the empty string. [tested HTMLBodyElement.bgColor] 51 TEST SUCCEEDED: The value was the empty string. [tested HTMLBodyElement.link] 52 TEST SUCCEEDED: The value was the empty string. [tested HTMLBodyElement.text] 53 TEST SUCCEEDED: The value was the empty string. [tested HTMLBodyElement.vLink] 54 54 55 55 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLBRElement.clear] -
trunk/LayoutTests/fast/dom/element-attribute-js-null.html
r203524 r203525 154 154 elementToUse: document.createElement('body'), 155 155 attributes: [ 156 {name: 'aLink', expectedNull: ' null'},156 {name: 'aLink', expectedNull: ''}, 157 157 {name: 'background', expectedNull: 'null'}, 158 {name: 'bgColor', expectedNull: ' null'},159 {name: 'link', expectedNull: ' null'},160 {name: 'text', expectedNull: ' null'},161 {name: 'vLink', expectedNull: ' null'}158 {name: 'bgColor', expectedNull: ''}, 159 {name: 'link', expectedNull: ''}, 160 {name: 'text', expectedNull: ''}, 161 {name: 'vLink', expectedNull: ''} 162 162 ] 163 163 }, -
trunk/LayoutTests/imported/w3c/ChangeLog
r203524 r203525 1 2016-07-21 Chris Dumez <cdumez@apple.com> 2 3 Fix null handling for several HTMLBodyElement attributes 4 https://bugs.webkit.org/show_bug.cgi?id=160044 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-sections-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-sections-expected.txt
r203443 r203525 664 664 PASS body.text: IDL set to "\0" followed by IDL get 665 665 PASS body.text: IDL set to null should not throw 666 FAIL body.text: IDL set to null followed by getAttribute() assert_equals: expected "" but got "null" 667 FAIL body.text: IDL set to null followed by IDL get assert_equals: expected "" but got "null" 666 PASS body.text: IDL set to null followed by getAttribute() 667 PASS body.text: IDL set to null followed by IDL get 668 668 PASS body.text: IDL set to object "test-toString" should not throw 669 669 PASS body.text: IDL set to object "test-toString" followed by getAttribute() … … 741 741 PASS body.link: IDL set to "\0" followed by IDL get 742 742 PASS body.link: IDL set to null should not throw 743 FAIL body.link: IDL set to null followed by getAttribute() assert_equals: expected "" but got "null" 744 FAIL body.link: IDL set to null followed by IDL get assert_equals: expected "" but got "null" 743 PASS body.link: IDL set to null followed by getAttribute() 744 PASS body.link: IDL set to null followed by IDL get 745 745 PASS body.link: IDL set to object "test-toString" should not throw 746 746 PASS body.link: IDL set to object "test-toString" followed by getAttribute() … … 818 818 PASS body.vLink: IDL set to "\0" followed by IDL get 819 819 PASS body.vLink: IDL set to null should not throw 820 FAIL body.vLink: IDL set to null followed by getAttribute() assert_equals: expected "" but got "null" 821 FAIL body.vLink: IDL set to null followed by IDL get assert_equals: expected "" but got "null" 820 PASS body.vLink: IDL set to null followed by getAttribute() 821 PASS body.vLink: IDL set to null followed by IDL get 822 822 PASS body.vLink: IDL set to object "test-toString" should not throw 823 823 PASS body.vLink: IDL set to object "test-toString" followed by getAttribute() … … 895 895 PASS body.aLink: IDL set to "\0" followed by IDL get 896 896 PASS body.aLink: IDL set to null should not throw 897 FAIL body.aLink: IDL set to null followed by getAttribute() assert_equals: expected "" but got "null" 898 FAIL body.aLink: IDL set to null followed by IDL get assert_equals: expected "" but got "null" 897 PASS body.aLink: IDL set to null followed by getAttribute() 898 PASS body.aLink: IDL set to null followed by IDL get 899 899 PASS body.aLink: IDL set to object "test-toString" should not throw 900 900 PASS body.aLink: IDL set to object "test-toString" followed by getAttribute() … … 972 972 PASS body.bgColor: IDL set to "\0" followed by IDL get 973 973 PASS body.bgColor: IDL set to null should not throw 974 FAIL body.bgColor: IDL set to null followed by getAttribute() assert_equals: expected "" but got "null" 975 FAIL body.bgColor: IDL set to null followed by IDL get assert_equals: expected "" but got "null" 974 PASS body.bgColor: IDL set to null followed by getAttribute() 975 PASS body.bgColor: IDL set to null followed by IDL get 976 976 PASS body.bgColor: IDL set to object "test-toString" should not throw 977 977 PASS body.bgColor: IDL set to object "test-toString" followed by getAttribute() -
trunk/Source/WebCore/ChangeLog
r203524 r203525 1 2016-07-21 Chris Dumez <cdumez@apple.com> 2 3 Fix null handling for several HTMLBodyElement attributes 4 https://bugs.webkit.org/show_bug.cgi?id=160044 5 6 Reviewed by Ryosuke Niwa. 7 8 Fix null handling for several HTMLBodyElement attributes to match the 9 specification: 10 - https://html.spec.whatwg.org/#HTMLBodyElement-partial 11 12 The attributes in question are: 'text', 'link', 'vlink', 'alink' and 13 'bgcolor'. 14 15 We are supposed to treat null as the empty string for these attributes. 16 17 Firefox and Chrome both agree with the specification. 18 19 No new tests, rebaselined existing tests. 20 21 * html/HTMLBodyElement.idl: 22 1 23 2016-07-21 Chris Dumez <cdumez@apple.com> 2 24 -
trunk/Source/WebCore/html/HTMLBodyElement.idl
r184616 r203525 20 20 21 21 interface HTMLBodyElement : HTMLElement { 22 [Reflect ] attribute DOMString aLink;22 [Reflect, TreatNullAs=EmptyString] attribute DOMString aLink; 23 23 [Reflect] attribute DOMString background; 24 [Reflect ] attribute DOMString bgColor;25 [Reflect ] attribute DOMString link;26 [Reflect ] attribute DOMString text;27 [Reflect ] attribute DOMString vLink;24 [Reflect, TreatNullAs=EmptyString] attribute DOMString bgColor; 25 [Reflect, TreatNullAs=EmptyString] attribute DOMString link; 26 [Reflect, TreatNullAs=EmptyString] attribute DOMString text; 27 [Reflect, TreatNullAs=EmptyString] attribute DOMString vLink; 28 28 29 29 [NotEnumerable, WindowEventHandler] attribute EventHandler onblur;
Note:
See TracChangeset
for help on using the changeset viewer.