Let's say I have a block markup of:
<div class="block">
<a href="/">
<div class="divInside"></div>
<img src="/bla" />
<p>Parargraph</p>
</a>
</div>
HTML5: states that the <a>
element "may be wrapped around entire paragraphs, lists, tables, and so forth, even entire sections, so long as there is no interactive content within (e.g. buttons or other links)".
So what I have here is perfectly valid is it not ? Why does ckeditor keep reformatting my source, example, the above, once I change beween the rich editor and source mode does the following:
<div class="block">
<div class="divInside">
</div>
<a href="/"><img src="/bla" /> </a>
<p>
<a href="/">Parargraph</a>
</p>
<a href="/"> </a>
</div>
I have no problem with what it does to the empty div, but what's doing with the anchors is very annoying.
Is there a way to disable this?