[Webkit-unassigned] [Bug 24160] Setting innerHTML to a table element causes table contents to jump out
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Aug 12 09:32:40 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=24160
Ahmad Saleem <zlip.792 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zlip.792 at gmail.com
--- Comment #6 from Ahmad Saleem <zlip.792 at gmail.com> ---
Created attachment 461563
--> https://bugs.webkit.org/attachment.cgi?id=461563&action=review
Safari 15.6 differs from other browsers
For first test case:
*** Safari Technical Preview 151 ***
Mismatch when setting contents of 'tbody':
Expected: '<tr><td><div></div></td></tr>'
Actual: '<tr></tr><div></div>'
Mismatch when setting contents of 'table':
Expected: '<tr><td><div></div></td></tr>'
Actual: '<tbody><tr></tr></tbody><div></div>'
Mismatch when setting contents of 'div':
Expected: '<table><tbody><tr><div></div></tr></tbody></table>'
Actual: '<div></div><table><tbody><tr></tr></tbody></table>'
*** Firefox Nightly 105 ***
Mismatch when setting contents of 'tbody':
Expected: '<tr><td><div></div></td></tr>'
Actual: '<tr></tr><div></div>'
Mismatch when setting contents of 'table':
Expected: '<tr><td><div></div></td></tr>'
Actual: '<tbody><tr></tr></tbody><div></div>'
Mismatch when setting contents of 'div':
Expected: '<table><tbody><tr><div></div></tr></tbody></table>'
Actual: '<div></div><table><tbody><tr></tr></tbody></table>'
*** Chrome Canary 106 ***
Mismatch when setting contents of 'tbody':
Expected: '<tr><td><div></div></td></tr>'
Actual: '<tr></tr><div></div>'
Mismatch when setting contents of 'table':
Expected: '<tr><td><div></div></td></tr>'
Actual: '<tbody><tr></tr></tbody><div></div>'
Mismatch when setting contents of 'div':
Expected: '<table><tbody><tr><div></div></tr></tbody></table>'
Actual: '<div></div><table><tbody><tr></tr></tbody></table>'
_________
All browsers match in the first test case.
For second, as can be seen from attached, there is space between buttons in Safari while not in other browsers. So there seems to be an issue. I think it is less to do with DOM but more about Layout and Rendering. I am changing status to New for others to decide and update details accordingly. Thanks!
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220812/1f196d47/attachment-0001.htm>
More information about the webkit-unassigned
mailing list