Bug 13376 - Horizontal rule pushed into a list item appears before the list marker in the render tree
Summary: Horizontal rule pushed into a list item appears before the list marker in the...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-17 13:42 PDT by Justin Garcia
Modified: 2022-06-27 20:11 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Garcia 2007-04-17 13:42:37 PDT
Run editing/execCommand/create-list-with-hr.html

In the DOM you'll see ul > li > hr, but the hr doesn't appear in the same position that it does if you load ul > li > hr in a static document, and the horizontal rule appears before the list marker in the render tree.
Comment 1 Ahmad Saleem 2022-06-27 16:42:40 PDT
It is reproducible in Safari 15.5 on macOS 12.4 and it matches with Chrome Canary 105 behavior.

I took the test from Chrome repo and changed it to following JSFiddle:

Link - https://jsfiddle.net/q0gveod3/show

Firefox display "horizontal line" after unordered list while Chrome and Safari do it before. I am not clear on web-spec here as well, might be topic of InterOp 2022 (of execCommand). Thanks!