Open Witoso opened 1 year ago
It is worth nothing that the editor behavior is technically correct, because the HTML spec only permits “phrasing content” inside the h1
-h6
elements [1]. “Phrasing content” is a subset of “flow content” which div
belongs to [2].
[1] https://html.spec.whatwg.org/multipage/sections.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements [2] https://html.spec.whatwg.org/multipage/dom.html#flow-content
Drupal issue: https://www.drupal.org/project/drupal/issues/3362002 Rel: #13803
✔️ Expected result
The html stays the same.
❌ Actual result
The html changes to the following, stripping the h2
A bit different behavior for for
p
If you'd like to see this fixed sooner, add a 👍 reaction to this post.