Opened 9 years ago
Last modified 9 years ago
#14455 confirmed New Feature
Control id attribute when pasting html to editor.
Reported by: | kkrzton | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: | Marek Lewandowski |
Description
When pasting html to editor, it may contain some elements with id attributes. Pasting such content may result in invalid html with more than one element with identical id values.
While pasting, pasted and existing (in editor) content should be checked for identical ids. Such conflicts should be solved. There are few possibilities:
- Remove id attributes from pasted content.
- Remove id attributes from content in editor.
- Rename id attributes in pasted content (may be tricky in some cases).
- Rename id attributes in editor content (may be tricky in some cases).
- Do nothing, so the user should be aware that he can generate invalid html.
I think solutions 1 and 3 seems most reasonable.