Opened 10 years ago

Last modified 10 years ago

#12450 confirmed Bug

Entities in attribute values are not encoded

Reported by: Jakub Ś Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: Cc:

Description

Paste below code in source mode:

<ul>
    <li data-title="The UK&#39;s No 1"></li>
</ul>
<p>The UK&#39;s No 1</p>

Switch to wysiwyg mode and back to source:

<ul>
 <li data-title="The UK's No 1">&nbsp;</li>
</ul>
<p>The UK&#39;s No 1</p>

Result: attribute value is has ' instead of &#39;. It seems that entities in attribute values are not encoded.

http://www.w3.org/TR/html-markup/syntax.html#attr-value-unquoted
http://www.w3.org/TR/html-markup/syntax.html#syntax-attribute-value
http://www.w3.org/TR/html-markup/syntax.html#syntax-charref

Problem can be reproduced in every browser from CKEditor 3.0.

Change History (1)

comment:1 Changed 10 years ago by Jakub Ś

Status: newconfirmed
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