Opened 8 years ago

Last modified 8 years ago

#14879 closed Bug

<aside> tag is incorrectly parsed and duplicated when pasted in the Source view of CK Editor — at Initial Version

Reported by: Randy Leiker Owned by:
Priority: Normal Milestone:
Component: Core : Parser Version:
Keywords: Cc: randy@…

Description

Steps to reproduce

  1. Click the Source button in CK Editor, then paste in the following code:

This is a brief test, which I will delete shortly. This is a brief test, which I will delete shortly. This is a brief test, which I will delete shortly. This is a brief test, which I will delete shortly. This is a brief test, which I will delete shortly. This is

<aside style="float: left; width: 10em; height: auto; border-top: solid #000000 0.3em; border-bottom: solid #000000 0.3em; margin: 0.5em 0.5em 0.5em 0.5em;">The quick brown fox jumped over the four score and seven years ago our fathers brought forth upon this continent half a league half a league half a league onward</aside>

a brief test, which I will delete shortly. This is a brief test, which I will delete shortly. This is a brief test, which I will delete shortly. This is a brief test, which

  1. Click the Source button in CK Editor again. The first word of the <aside> content will be moved to its own <aside> object.
  1. Click the Source button in CK Editor again to switch to code view, then without making any changes, click the Source button in CK Editor to toggle back.
  1. The first two words of the original <aside> content now appear within their own <aside> elements, in addition to the remainder of the original <aside> element.

Expected result

CK Editor should display a single paragraph of text with a single left aligned floating <aside> element.

Actual result

CK Editor displays a single paragraph of text with two left aligned floating <aside> elements. The first <aside> element contains the first visible word of the <aside> content "The", and the second <aside> elements contains the remainder of the <aside> content starting with "quick brown fox...". Clicking the Source button repeatedly will continue to successively strip the first word of the original <aside> element & likewise place them into their own <aside> elements.

Other details (browser, OS, CKEditor version, installed plugins)

Browser: Firefox 49.0.1 OS: Windows 10, build 14393.187 CK Editor: 4.5.11 (also appears in 4.5.10) CK Editor configured with the default set of 72 plug-ins selected by default when using http://ckeditor.com/builder to create a Custom build of CK Editor.

Change History (1)

Changed 8 years ago by Randy Leiker

Attachment: bug-report.gif added

Illustration of the duplication of <aside> tags when the Source button is clicked repeatedly in CK Editor

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