Opened 11 years ago
Last modified 11 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's No 1"></li> </ul> <p>The UK's No 1</p>
Switch to wysiwyg mode and back to source:
<ul> <li data-title="The UK's No 1"> </li> </ul> <p>The UK's No 1</p>
Result: attribute value is has ' instead of '. 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.