New issue
Advanced search Search tips

Issue 717923 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

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:
 
bug.html
180 bytes View Download
Components: -Blink>Editing Blink>Editing>Content
Status: Untriaged (was: Unconfirmed)
Labels: -Pri-2 -OS-Mac OS-All Pri-3
Status: Available (was: Untriaged)
Thanks for the report!
Project Member

Comment 3 by sheriffbot@chromium.org, May 3 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
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

Comment 4 by yosin@chromium.org, May 28 2018

Status: Available (was: Untriaged)

Sign in to add a comment