Ticket #3581 (closed Bug: fixed)
name attribute on anchors is duplicated
| Reported by: | alfonsoml | Owned by: | arczi |
|---|---|---|---|
| Priority: | Normal | Milestone: | CKEditor 3.0 |
| Component: | General | Version: | SVN (CKEditor) - OLD |
| Keywords: | Confirmed Review+ | Cc: |
Description (last modified by alfonsoml) (diff)
Load CKEditor and insert an anchor. Put any name on it.
Switch to source mode, everything looks OK.
<p> This<a name="test"></a> is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">CKEditor</a>.</p>
Switch to design and back to source, the anchor now has two name attributes
<p> This<a name="test" name="test"></a> is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">CKEditor</a>.</p>
Attachments
Change History
comment:5 follow-up: ↓ 6 Changed 3 years ago by alfonsoml
- Keywords Review- added; Review? removed
The fix for links is ok, but I don't see how it's possible to add a name attribute to the images.
I don't even remember if it's valid or people should use only IDs for images, and use name only for form elements and anchors as legacy (they should be IDs for compatibility with xhtml 1.1)
comment:6 in reply to: ↑ 5 Changed 3 years ago by arczi
I have found "name" on http://www.w3.org/TR/REC-html40/struct/objects.html
Please insert in source mode:
<p> <img name="test" /> </p>
Switch do WYSIWYG and back to Source. Result:
<p> <img name="test" name="test" /> </p>
It is not the expected behavior.
Note: See
TracTickets for help on using
tickets.

