Opened 13 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

  1. Load the editor with the following content:
    <article>article</article>
    
  2. Put cursor inside the article block;
  • Actual Result: New paragraph established.

Change History (5)

comment:1 Changed 13 years ago by Garry Yao

Component: Core : HTML5Core : DTD
Status: newconfirmed

comment:2 Changed 13 years ago by Garry Yao

Summary: In-proper html5 block tag handlingImproper html5 block tag handling

comment:3 Changed 13 years ago by Frederico Caldeira Knabben

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.

comment:4 Changed 13 years ago by JohnDoranNY

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>&nbsp;</p>
<article>&nbsp;</article>
<p>&nbsp;</p>
<h2>Some Title</h2>
<p>some text</p>
<h3>Some Other Title</h3>
<p>some other text</p>
<p>&nbsp;</p>
Last edited 13 years ago by JohnDoranNY (previous) (diff)

comment:5 Changed 13 years ago by Jakub Ś

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

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy