Opened 6 years ago

Last modified 6 years ago

#11481 confirmed Bug

Multiple Link insert cause missing ID

Reported by: hgdien Owned by:
Priority: Normal Milestone:
Component: General Version: 4.0
Keywords: Cc:

Description

Steps to reproduce:

  • Insert 3 links on the page, which URL "www.google.com" and Id: 1,3,3.
  • Double click on the inserted links to check the Ids, only the first link Id is retained, all other links after that have empty Id.

Browser and OS: Window Firefox 26.0 & Chrome 32.0.1

Change History (5)

comment:1 Changed 6 years ago by Jakub Ś

Resolution: invalid
Status: newclosed
Version: 4.3.2

Element id has to be unique in HTML document http://www.w3schools.com/tags/att_global_id.asp.

This editor behaviour is correct.

comment:2 Changed 6 years ago by hgdien

The same bug happened even if element id for each link is unique. Tested with CKEditor full demo.

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

Resolution: invalid
Status: closedreopened

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

Status: reopenedconfirmed

I confirm this issue with the exact step described. Only the first link has id. The other don't, even though ids are unique.

comment:5 Changed 6 years ago by Jakub Ś

Version: 4.0

Sorry for not checking this the way it should be checked.

  1. Problem can be reproduced from CKEditor 4.0 (in every browser)
  2. In CKEditor 4.0 beta and 3.x there was no id filtering users were allowed to insert multiple elements with same id.

Should editor prevent such practices (sounds like an idea for plugin or ACF or HTML data filter or Advanced Dialog Tab extension) or should we leave it to the users?

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