Changeset 203443 in webkit
- Timestamp:
- Jul 19, 2016, 10:09:51 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/dom/HTMLDocument/null-handling-expected.txt (added)
-
LayoutTests/fast/dom/HTMLDocument/null-handling.html (added)
-
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/HTMLDocument.idl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r203441 r203443 1 2016-07-19 Chris Dumez <cdumez@apple.com> 2 3 Fix null handling of several HTMLDocument attributes 4 https://bugs.webkit.org/show_bug.cgi?id=159923 5 6 Reviewed by Benjamin Poulain. 7 8 Add layout test coverage. I have verified that this test is passing in 9 both Firefox and Chrome. 10 11 * fast/dom/HTMLDocument/null-handling-expected.txt: Added. 12 * fast/dom/HTMLDocument/null-handling.html: Added. 13 1 14 2016-07-19 Chris Dumez <cdumez@apple.com> 2 15 -
trunk/LayoutTests/imported/w3c/ChangeLog
r203441 r203443 1 2016-07-19 Chris Dumez <cdumez@apple.com> 2 3 Fix null handling of several HTMLDocument attributes 4 https://bugs.webkit.org/show_bug.cgi?id=159923 5 6 Reviewed by Benjamin Poulain. 7 8 Rebaseline now that more checks are passing. 9 10 * web-platform-tests/html/dom/reflection-sections-expected.txt: 11 1 12 2016-07-19 Chris Dumez <cdumez@apple.com> 2 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-sections-expected.txt
r202471 r203443 10013 10013 PASS #document.fgColor (<body text>): IDL set to "\0" followed by IDL get 10014 10014 PASS #document.fgColor (<body text>): IDL set to null should not throw 10015 FAIL #document.fgColor (<body text>): IDL set to null followed by getAttribute() assert_equals: expected (string) "" but got (object) null 10015 PASS #document.fgColor (<body text>): IDL set to null followed by getAttribute() 10016 10016 PASS #document.fgColor (<body text>): IDL set to null followed by IDL get 10017 10017 PASS #document.fgColor (<body text>): IDL set to object "test-toString" should not throw … … 10090 10090 PASS #document.linkColor (<body link>): IDL set to "\0" followed by IDL get 10091 10091 PASS #document.linkColor (<body link>): IDL set to null should not throw 10092 FAIL #document.linkColor (<body link>): IDL set to null followed by getAttribute() assert_equals: expected (string) "" but got (object) null 10092 PASS #document.linkColor (<body link>): IDL set to null followed by getAttribute() 10093 10093 PASS #document.linkColor (<body link>): IDL set to null followed by IDL get 10094 10094 PASS #document.linkColor (<body link>): IDL set to object "test-toString" should not throw … … 10167 10167 PASS #document.vlinkColor (<body vlink>): IDL set to "\0" followed by IDL get 10168 10168 PASS #document.vlinkColor (<body vlink>): IDL set to null should not throw 10169 FAIL #document.vlinkColor (<body vlink>): IDL set to null followed by getAttribute() assert_equals: expected (string) "" but got (object) null 10169 PASS #document.vlinkColor (<body vlink>): IDL set to null followed by getAttribute() 10170 10170 PASS #document.vlinkColor (<body vlink>): IDL set to null followed by IDL get 10171 10171 PASS #document.vlinkColor (<body vlink>): IDL set to object "test-toString" should not throw … … 10244 10244 PASS #document.alinkColor (<body alink>): IDL set to "\0" followed by IDL get 10245 10245 PASS #document.alinkColor (<body alink>): IDL set to null should not throw 10246 FAIL #document.alinkColor (<body alink>): IDL set to null followed by getAttribute() assert_equals: expected (string) "" but got (object) null 10246 PASS #document.alinkColor (<body alink>): IDL set to null followed by getAttribute() 10247 10247 PASS #document.alinkColor (<body alink>): IDL set to null followed by IDL get 10248 10248 PASS #document.alinkColor (<body alink>): IDL set to object "test-toString" should not throw … … 10321 10321 PASS #document.bgColor (<body bgcolor>): IDL set to "\0" followed by IDL get 10322 10322 PASS #document.bgColor (<body bgcolor>): IDL set to null should not throw 10323 FAIL #document.bgColor (<body bgcolor>): IDL set to null followed by getAttribute() assert_equals: expected (string) "" but got (object) null 10323 PASS #document.bgColor (<body bgcolor>): IDL set to null followed by getAttribute() 10324 10324 PASS #document.bgColor (<body bgcolor>): IDL set to null followed by IDL get 10325 10325 PASS #document.bgColor (<body bgcolor>): IDL set to object "test-toString" should not throw -
trunk/Source/WebCore/ChangeLog
r203441 r203443 1 2016-07-19 Chris Dumez <cdumez@apple.com> 2 3 Fix null handling of several HTMLDocument attributes 4 https://bugs.webkit.org/show_bug.cgi?id=159923 5 6 Reviewed by Benjamin Poulain. 7 8 Fix null handling of several HTMLDocument attributes: 9 - https://html.spec.whatwg.org/multipage/dom.html#document 10 - https://html.spec.whatwg.org/multipage/obsolete.html#document-partial 11 12 In particular, null handling was incorrect in WebKit for 'dir', 13 'bgColor', 'fgColor', 'alinkColor', 'linkColor' and 'vlinkColor'. 14 15 Firefox and Chrome match the specification. 16 17 Test: fast/dom/HTMLDocument/null-handling.html 18 19 * html/HTMLDocument.idl: 20 1 21 2016-07-19 Chris Dumez <cdumez@apple.com> 2 22 -
trunk/Source/WebCore/html/HTMLDocument.idl
r200934 r203443 52 52 #endif 53 53 54 // FIXME: This should not have [TreatNullAs=LegacyNullString]. 55 [TreatNullAs=LegacyNullString] attribute DOMString dir; 54 attribute DOMString dir; 56 55 57 56 attribute DOMString designMode; … … 59 58 60 59 // Deprecated attributes. 61 // FIXME: These should not have [TreatNullAs=LegacyNullString]. 62 [TreatNullAs=LegacyNullString] attribute DOMString bgColor; 63 [TreatNullAs=LegacyNullString] attribute DOMString fgColor; 64 [TreatNullAs=LegacyNullString] attribute DOMString alinkColor; 65 [TreatNullAs=LegacyNullString] attribute DOMString linkColor; 66 [TreatNullAs=LegacyNullString] attribute DOMString vlinkColor; 60 [TreatNullAs=EmptyString] attribute DOMString bgColor; 61 [TreatNullAs=EmptyString] attribute DOMString fgColor; 62 [TreatNullAs=EmptyString] attribute DOMString alinkColor; 63 [TreatNullAs=EmptyString] attribute DOMString linkColor; 64 [TreatNullAs=EmptyString] attribute DOMString vlinkColor; 67 65 }; 68 66
Note:
See TracChangeset
for help on using the changeset viewer.