Changeset 203529 in webkit
- Timestamp:
- Jul 21, 2016, 2:25:10 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-tabular-expected.txt (modified) (3 diffs)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/HTMLTableElement.idl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r203528 r203529 1 2016-07-21 Chris Dumez <cdumez@apple.com> 2 3 Fix null handling for several HTMLTableElement attributes 4 https://bugs.webkit.org/show_bug.cgi?id=160041 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
r203528 r203529 207 207 208 208 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLTableElement.align] 209 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLTableElement.bgColor]209 TEST SUCCEEDED: The value was the empty string. [tested HTMLTableElement.bgColor] 210 210 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLTableElement.border] 211 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLTableElement.cellPadding]212 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLTableElement.cellSpacing]211 TEST SUCCEEDED: The value was the empty string. [tested HTMLTableElement.cellPadding] 212 TEST SUCCEEDED: The value was the empty string. [tested HTMLTableElement.cellSpacing] 213 213 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLTableElement.frame] 214 214 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLTableElement.rules] -
trunk/LayoutTests/fast/dom/element-attribute-js-null.html
r203528 r203529 512 512 attributes: [ 513 513 {name: 'align', expectedNull: 'null'}, 514 {name: 'bgColor', expectedNull: ' null'},514 {name: 'bgColor', expectedNull: ''}, 515 515 {name: 'border', expectedNull: 'null'}, 516 {name: 'cellPadding', expectedNull: ' null'},517 {name: 'cellSpacing', expectedNull: ' null'},516 {name: 'cellPadding', expectedNull: ''}, 517 {name: 'cellSpacing', expectedNull: ''}, 518 518 {name: 'frame', expectedNull: 'null'}, 519 519 {name: 'rules', expectedNull: 'null'}, -
trunk/LayoutTests/imported/w3c/ChangeLog
r203528 r203529 1 2016-07-21 Chris Dumez <cdumez@apple.com> 2 3 Fix null handling for several HTMLTableElement attributes 4 https://bugs.webkit.org/show_bug.cgi?id=160041 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-tabular-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-tabular-expected.txt
r203527 r203529 1205 1205 PASS table.bgColor: IDL set to "\0" followed by IDL get 1206 1206 PASS table.bgColor: IDL set to null should not throw 1207 FAIL table.bgColor: IDL set to null followed by getAttribute() assert_equals: expected "" but got "null" 1208 FAIL table.bgColor: IDL set to null followed by IDL get assert_equals: expected "" but got "null" 1207 PASS table.bgColor: IDL set to null followed by getAttribute() 1208 PASS table.bgColor: IDL set to null followed by IDL get 1209 1209 PASS table.bgColor: IDL set to object "test-toString" should not throw 1210 1210 PASS table.bgColor: IDL set to object "test-toString" followed by getAttribute() … … 1282 1282 PASS table.cellPadding: IDL set to "\0" followed by IDL get 1283 1283 PASS table.cellPadding: IDL set to null should not throw 1284 FAIL table.cellPadding: IDL set to null followed by getAttribute() assert_equals: expected "" but got "null" 1285 FAIL table.cellPadding: IDL set to null followed by IDL get assert_equals: expected "" but got "null" 1284 PASS table.cellPadding: IDL set to null followed by getAttribute() 1285 PASS table.cellPadding: IDL set to null followed by IDL get 1286 1286 PASS table.cellPadding: IDL set to object "test-toString" should not throw 1287 1287 PASS table.cellPadding: IDL set to object "test-toString" followed by getAttribute() … … 1359 1359 PASS table.cellSpacing: IDL set to "\0" followed by IDL get 1360 1360 PASS table.cellSpacing: IDL set to null should not throw 1361 FAIL table.cellSpacing: IDL set to null followed by getAttribute() assert_equals: expected "" but got "null" 1362 FAIL table.cellSpacing: IDL set to null followed by IDL get assert_equals: expected "" but got "null" 1361 PASS table.cellSpacing: IDL set to null followed by getAttribute() 1362 PASS table.cellSpacing: IDL set to null followed by IDL get 1363 1363 PASS table.cellSpacing: IDL set to object "test-toString" should not throw 1364 1364 PASS table.cellSpacing: IDL set to object "test-toString" followed by getAttribute() -
trunk/Source/WebCore/ChangeLog
r203528 r203529 1 2016-07-21 Chris Dumez <cdumez@apple.com> 2 3 Fix null handling for several HTMLTableElement attributes 4 https://bugs.webkit.org/show_bug.cgi?id=160041 5 6 Reviewed by Ryosuke Niwa. 7 8 Fix null handling for several HTMLTableElement attributes to match the 9 specification: 10 - https://html.spec.whatwg.org/#HTMLTableElement-partial 11 12 The attributes in question are 'bicolor', 'cellSpacing' and 13 'cellPadding'. We are supposed to treat null as the empty string for 14 these attributes. 15 16 Firefox and Chrome both agree with the specification. 17 18 No new tests, rebaselined existing tests. 19 20 * html/HTMLTableElement.idl: 21 1 22 2016-07-21 Chris Dumez <cdumez@apple.com> 2 23 -
trunk/Source/WebCore/html/HTMLTableElement.idl
r200316 r203529 27 27 readonly attribute HTMLCollection tBodies; 28 28 [Reflect] attribute DOMString align; 29 [Reflect ] attribute DOMString bgColor;29 [Reflect, TreatNullAs=EmptyString] attribute DOMString bgColor; 30 30 [Reflect] attribute DOMString border; 31 [Reflect ] attribute DOMString cellPadding;32 [Reflect ] attribute DOMString cellSpacing;31 [Reflect, TreatNullAs=EmptyString] attribute DOMString cellPadding; 32 [Reflect, TreatNullAs=EmptyString] attribute DOMString cellSpacing; 33 33 34 34 [Reflect] attribute DOMString frame;
Note:
See TracChangeset
for help on using the changeset viewer.