Opened 14 years ago

Last modified 10 years ago

#6915 confirmed New Feature

Avoid ID duplications

Reported by: Sa'ar Zac Elias Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Discusssion Cc:

Description

We could have an editor feature that resolves ID duplications in the contents, e.g. while pasting. It should not be a core feature, unless it is configurable.
Advantages: XHTML will be more valid, JS will operate correctly. Disadvantages: Styles might get broken.

Change History (5)

comment:1 Changed 13 years ago by Jakub Ś

Status: newconfirmed

IMO having an duplicate id is never a good thing, so it's worth considering.

comment:2 Changed 10 years ago by bnw

Hi, I was wondering if there are any plans for implementing this? I have noticed that when pasting from google docs, there are a ton of duplicate ids and it is impractical to sort them out manually.

comment:3 Changed 10 years ago by Jakub Ś

We don't plan to work on this features, because there's no solution to this problem. Neither we can strip ids, nor we can automatically resolve duplicates.

comment:4 Changed 10 years ago by bnw

As a start: for pasted content, repeated ids could be stripped altogether. They clearly have a meaning that is different from the meaning of HTML-ids and thus they cannot be translated to html automatically.

But I do see that this is only the tip of the iceberg. What about copy&pasting an element with an id inside the document. This is often used to move content around the document (copy, past at a different position, delete original). Of course, the id of the moved element should remain the same, but there should also be no point in time where the id is present twice.

comment:5 Changed 10 years ago by Jakub Ś

#13006 is related to this issue.

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