You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An attribute value is currently replaced with named HTML entities if it has both an apostrophe and a double quote:
%div{"data-props" => "someJsValue: 'has a \"something quoted\" in it'"}
becomes: <div data-props="someJsValue: 'has a "something quoted" in it'"></div>
This is fine for sane browsers, but IE deems it is a syntax error. All browsers, however, can handle using key character codes: <div data-props="someJsValue: 'has a "something quoted" in it'"></div>
Other than punishing those who must support IE, is there any reason for not changing this?
The text was updated successfully, but these errors were encountered:
When attribute values contain both an apostrophe and a double quote,
we should substitute the character being used to wrap the value with
its key code instead of named/keyword entities (for IE support).
Fixeshaml#418.
When attribute values contain both an apostrophe and a double quote,
we should substitute the character being used to wrap the value with
its key code instead of named/keyword entities (for IE support).
Fixeshaml#418.
Signed-off-by: Norman Clarke <norman@njclarke.com>
An attribute value is currently replaced with named HTML entities if it has both an apostrophe and a double quote:
%div{"data-props" => "someJsValue: 'has a \"something quoted\" in it'"}
becomes:
<div data-props="someJsValue: 'has a "something quoted" in it'"></div>
This is fine for sane browsers, but IE deems it is a syntax error. All browsers, however, can handle using key character codes:
<div data-props="someJsValue: 'has a "something quoted" in it'"></div>
Other than punishing those who must support IE, is there any reason for not changing this?
The text was updated successfully, but these errors were encountered: