Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
14.1-rc-1
-
Unit
-
Unknown
-
N/A
-
N/A
-
Description
Steps to reproduce:
In an HTML macro with cleaning enabled, use any of the tags math, embed, img, data, object, picture, video, iframe, template or q inside, e.g., a strong tag.
Expected result:
The tag is preserved.
Actual result:
The tag is moved outside the strong-tag. The template tag is even completely removed.
This is because the definition of phrasing content for HTML 5 in HtmlCleaner is incomplete and misses the mentioned tags. Further, while the template tag is included in the list of phrasing tags, it misses a proper definition so it is removed as unknown tag.
This is a regression introduced with the switch to the HTML 5 tag definitions. This also affects parsing of HTML to XWiki syntax, in particular in combination with images (the other tags shouldn't affect XWiki syntax).
Attachments
Issue Links
- blocks
-
XRENDERING-717 Unexpected link generated by bolded image
- Closed