Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 14.0-rc-1
-
Fix Version/s: 14.0-rc-1
-
Component/s: Syntax - annotatedhtml/5.0
-
Labels:None
-
Tests:Unit
-
Difficulty:Unknown
-
Documentation:N/A
-
Documentation in Release Notes:N/A
-
Pull Request Status:Pull Request accepted
-
Similar issues:
Description
Currently, the annotated HTML5 parser always renders <figcaption>-tags when handling the beginFigureCaption-event. However, after fixing XRENDERING-630 they will be nested in a <div> from CKEditor for the widget and also the editable content div after fixing XRENDERING-629 (that's why this bug concerns 14.0-rc1 as it only becomes an issue after fixing these two bugs, however it is still a separate issue). Unfortunately, in HTML5, <figcaption>-tags can only be the direct children of a <figure>-tag so this creates invalid HTML5 that is corrected by CKEditor by moving the <figcaption> with its content outside the wrapping macro directly below the wrapping <figure>-tag. To fix this, I propose to instead render something like a <div class="figcaption"> so the caption can still be targeted using CSS, see also XRENDERING-625.
Attachments
Issue Links
- relates to
-
XRENDERING-625 Make the figure and figure caption identifiable in edit mode
-
- Open
-