Steps to reproduce
- Put attached file on server and open it in Edge browser.
- Click on horizontal line.
- The cursor should be blinking in the middle of the editable area right below the horizontal line. Type few characters there.
- Open developer tools and inspect newly typed text
5 It turns out text is typed inside the HR tag what violates the HTML5 spec as this element should be empty and have no end tag -https://www.w3.org/TR/html5/single-page.html#the-hr-element.
Comments and activity
- Microsoft Edge Team
Changed Assigned To to “James M.”
Changed Assigned To to “Grisha L.”
Changed Status to “Confirmed”
Changed Assigned To from “Grisha L.” to “Adam D.”
This also applies to Chrome browser Version 66.0.3359.181
Same behaviour occurs if the HR is set
contenteditable=false, but its parent is.
It still reproduces at Edge 44.17763.1.0.
As far as I know, specifying contenteditable = “false” style = “pointer-events: none” for hr seems to be able to suppress this problem.