Opened 14 years ago
Closed 14 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 14 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. In HTML5, and possible