Open
Bug 1462565
Opened 7 years ago
Updated 3 years ago
Editor does not aware of current HTML list structure
Categories
(Core :: DOM: Editor, enhancement, P3)
Core
DOM: Editor
Tracking
()
NEW
Tracking | Status | |
---|---|---|
firefox62 | --- | affected |
People
(Reporter: masayuki, Unassigned)
Details
<ol> and <ul> can have <li> and script-supporting elements (<script> and <template>).
https://html.spec.whatwg.org/multipage/grouping-content.html#the-ol-element
https://html.spec.whatwg.org/multipage/grouping-content.html#the-ul-element
<dl> can have <dt>, <dd> and script-supporting elements. Additionally, can have <div> elements to group some <dt> and <dd> elements.
https://html.spec.whatwg.org/multipage/grouping-content.html#the-dl-element
However, our editor does not expect that they can have <script>, <template> nor <div>. For example, HTMLEditRules::ConvertListType() meets sub-list, it tries to convert the sub-list's types but stops handling if it meets <div>.
https://searchfox.org/mozilla-central/source/editor/libeditor/HTMLEditRules.cpp#5097,5105,5109,5116,5124
Reporter | ||
Comment 1•7 years ago
|
||
Updated•7 years ago
|
Priority: -- → P3
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•