Opened 6 years ago

Closed 6 years ago

#10532 closed Bug (invalid)

Enterkey in table caption

Reported by: Satya Minnekanti Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: IBM Cc: Teresa Monahan, Irina

Description

Enter key should NOT use paragraph as line break inside table caption.

Load the following content with enter set to paragraph mode;

<table border="1" cellpadding="1" cellspacing="1" >
    <caption>table caption</caption>
    <tbody><tr><td>cell</td></tr></tbody>
</table>

Put cursor in caption and press enter;

Expected Result: a BR line break is created;

Actual Result: Paragraphs are instead created;

This was fixed in 3.6.1 but we can reproduce this issue again in 4.x builds

Change History (2)

comment:1 Changed 6 years ago by Piotrek Koszuliński

According to HTML5 spec (http://www.w3.org/TR/html-markup/caption.html) captions can contain paragraphs, so I guess that this is why enter acts this way.

I'd advice to modify DTD to not allow block elements inside caption. Is it a sufficient solution?

comment:2 Changed 6 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

Here is another link that confirms captions can contain flow content - http://www.whatwg.org/specs/web-apps/current-work/multipage/tabular-data.html#the-caption-element.

I'd advice to modify DTD to not allow block elements inside caption.

or simply allow them to be in accordance with specification.

@satya I'm closing the ticket as I don't think we will change editor to block elements other than phrasing (inline).

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy