double-enter on a nested list item creates non-standard HTML
Reported by
75po...@gmail.com,
May 3 2017
|
||||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3087.0 Safari/537.36
Steps to reproduce the problem:
First, notice that the embedded <ol> is a child of "listitem 2".
1. Double-enter at the end of "listitem 2.2".
What is the expected behavior?
"listitem 3" is created in the top-level list and the nested list remains a child of "listitem 2".
What went wrong?
"listitem 3" is created in the top-level list as expected BUT the nested list was moved up a level - it is now a child of the top-level list. The resulting HTML:
<ol>
<li>listitem 1</li>
<li>listitem 2</li>
<ol>
<li>listitem 2.1</li>
<li>listitem 2.2</li>
</ol>
<li><br></li>
</ol>
This is invalid HTML as only <li> elements can be children of a <ol> or <ul>. See: https://html.spec.whatwg.org/multipage/semantics.html#the-ol-element
Did this work before? N/A
Does this work in other browsers? Yes
Chrome version: 60.0.3087.0 Channel: n/a
OS Version: OS X 10.12.4
Flash Version:
,
May 3 2017
Thanks for the report!
,
May 3 2018
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
May 28 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by phistuck@chromium.org
, May 3 2017Status: Untriaged (was: Unconfirmed)