Opened 13 years ago
Closed 13 years ago
#8838 closed Bug (duplicate)
Breaking Markup
Reported by: | Mathias Aeschlimann | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.6.2 |
Keywords: | Cc: |
Description
I have a markup structure set up like this:
<a href=""> <div> <h2> Header</h2> <img alt="" src="" /> </div> </a>
CKEditor breaks this valid markup and outputs:
<div> <a href=""> <h2> Header</h2></a> <a href=""> <img alt="" src="" /> </a> </div>
Change History (2)
comment:2 Changed 13 years ago by
Keywords: | html removed |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
Yes this is valid code for HTML5. It is not yet implemented in v3 of the editor (it should be in v4 by default).
Anyway it has already been reported here #7961
Closing this one as duplicate.
I guess the intend here was to produce valid html 4 mark-up. If so, it should at least check the doctype.
Update: I was told at http://wordpress.org/support/topic/plugin-ckeditor-for-wordpress-how-to-stop-ckeditor-from-breaking-my-markup?replies=3#post-2717286 that this behavior is by design. This is very unfortunate, as there is nothing wrong with my mark-up within the doctype I use, so I'd still consider it a bug.