Opened 14 years ago
Last modified 13 years ago
#7960 confirmed Bug
Improper html5 block tag handling
Reported by: | Garry Yao | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : DTD | Version: | 3.6.1 |
Keywords: | HTML5 | Cc: |
Description
- Load the editor with the following content:
<article>article</article>
- Put cursor inside the article block;
- Actual Result: New paragraph established.
Change History (5)
comment:1 Changed 14 years ago by
Component: | Core : HTML5 → Core : DTD |
---|---|
Status: | new → confirmed |
comment:2 Changed 14 years ago by
Summary: | In-proper html5 block tag handling → Improper html5 block tag handling |
---|
comment:3 Changed 14 years ago by
comment:4 Changed 14 years ago by
Load the editor with the following content:
<article> <h2>Some Title</h2> <p>some text</p> <h3>Some Other Title</h3> <p>some other text</p> </article>
Save... go back into editor and look at source:
<p> </p> <article> </article> <p> </p> <h2>Some Title</h2> <p>some text</p> <h3>Some Other Title</h3> <p>some other text</p> <p> </p>
comment:5 Changed 13 years ago by
Keywords: | HTML5 added |
---|
In fact, I not even know if, and how, we should change this.
IMO treat them as block level elements
This issue is somewhat similar to #7961
Not a big issue. Even if <article> accepts inline nodes, it's common usage is to hold block elements. The current behavior is very similar to what we do for <body>, fixing it's contents.
Note that <article> is not a "block" element... it's one if the new "sectioning" elements introduced by HTML5.
In fact, I not even know if, and how, we should change this. I would wait for people coming with issues from the real world first.