Opened 10 years ago

Closed 10 years ago

#11834 closed Bug (invalid)

Bad behaviour when transforming autoclosed tags

Reported by: sergio0904 Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

If you have a source with XML format (autoclosed tags), CKEditor is not transforming them right to HTML.

Steps to reproduce: 1 - Go to the editor demo http://ckeditor.com/demo 2 - Click on source 3 - After "</h1>" write "<a id="tips"/>" 4 - Click on source again

You will see that a link is created until the next <a> tag. I think the right behaviour should be transforming <a id="tips"/> to just <a id="tips"></a>

Change History (1)

comment:1 Changed 10 years ago by Piotrek Koszuliński

Keywords: autoclosed tags removed
Resolution: invalid
Status: newclosed
Version: 4.3.4

<a> isn't a self closing tag. Validation error from http://html5.validator.nu/

Error: Self-closing syntax (/>) used on a non-void HTML element. Ignoring the slash and treating as a start tag.
From line 7, column 4; to line 7, column 17
<body>↩<p><a id="tips"/></p>↩<

Besides that, I don't even know if that's CKEditor fixing that anchor or browser, because before parsing HTML CKEditor uses browser engine to fix it.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy