Skip to content

Instantly share code, notes, and snippets.

@Reinmar
Last active Aug 29, 2015
Embed
What would you like to do?

See: http://dev.ckeditor.com/ticket/13105

Tested with: https://gist.github.com/Reinmar/e3a947705ff8a3697cca

Chrome

Testing with String.fromCodePoint()
ERROR HTML - code: 0, char: , actual:  <>
ERROR HTML - code: 13, char: 
, actual: 
 <10>
ERROR HTML - code: 38, char: &, actual: &amp; <38,97,109,112,59>
ERROR HTML - code: 60, char: <, actual: &lt; <38,108,116,59>
ERROR HTML - code: 62, char: >, actual: &gt; <38,103,116,59>
ERROR HTML - code: 160, char:  , actual: &nbsp; <38,110,98,115,112,59>
Done text. Finished at 1114111.
ERROR ATTR - code: 34, char: ", actual: &quot; <38,113,117,111,116,59>
ERROR ATTR - code: 38, char: &, actual: &amp; <38,97,109,112,59>
ERROR ATTR - code: 160, char:  , actual: &nbsp; <38,110,98,115,112,59>
Done attributes. Finished at 1114111.

Safari

Testing with String.fromCharCode()
ERROR HTML - code: 0, char: , actual:  <>
ERROR HTML - code: 13, char: 
, actual: 
 <10>
ERROR HTML - code: 38, char: &, actual: &amp; <38,97,109,112,59>
ERROR HTML - code: 60, char: <, actual: &lt; <38,108,116,59>
ERROR HTML - code: 62, char: >, actual: &gt; <38,103,116,59>
ERROR HTML - code: 160, char:  , actual: &nbsp; <38,110,98,115,112,59>
Done text. Finished at 65535.
ERROR ATTR - code: 34, char: ", actual: &quot; <38,113,117,111,116,59>
ERROR ATTR - code: 38, char: &, actual: &amp; <38,97,109,112,59>
ERROR ATTR - code: 60, char: <, actual: &lt; <38,108,116,59>
ERROR ATTR - code: 62, char: >, actual: &gt; <38,103,116,59>
ERROR ATTR - code: 160, char:  , actual: &nbsp; <38,110,98,115,112,59>
Done attributes. Finished at 65535.

Firefox

Testing with String.fromCodePoint()
ERROR HTML - code: 0, char: �, actual:  <>
ERROR HTML - code: 13, char: 
, actual: 
 <10>
ERROR HTML - code: 38, char: &, actual: &amp; <38,97,109,112,59>
ERROR HTML - code: 60, char: <, actual: &lt; <38,108,116,59>
ERROR HTML - code: 62, char: >, actual: &gt; <38,103,116,59>
ERROR HTML - code: 160, char:  , actual: &nbsp; <38,110,98,115,112,59>
Done text. Finished at 1114111.
ERROR ATTR - code: 34, char: ", actual: &quot; <38,113,117,111,116,59>
ERROR ATTR - code: 38, char: &, actual: &amp; <38,97,109,112,59>
ERROR ATTR - code: 160, char:  , actual: &nbsp; <38,110,98,115,112,59>
Done attributes. Finished at 1114111.

IE8

Testing with String.fromCharCode()
ERROR HTML - code: 0, char: ERROR HTML - code: 9, char: 	, actual:  <>
ERROR HTML - code: 10, char: 
, actual:  <>
ERROR HTML - code: 11, char: �, actual:  <>
ERROR HTML - code: 12, char: , actual:  <>
ERROR HTML - code: 13, char: 
, actual:  <>
ERROR HTML - code: 32, char:  , actual:  <>
ERROR HTML - code: 38, char: &, actual:  <>
ERROR HTML - code: 60, char: <, actual:  <>
ERROR HTML - code: 62, char: >, actual: &gt; <38,103,116,59>
ERROR HTML - code: 160, char:  , actual: &nbsp; <38,110,98,115,112,59>
ERROR HTML - code: 173, char: ­, actual: &shy; <38,115,104,121,59>
ERROR HTML - code: 64976, char: �, actual: � <65533>
ERROR HTML - code: 64977, char: �, actual: � <65533>
ERROR HTML - code: 64978, char: �, actual: � <65533>
ERROR HTML - code: 64979, char: �, actual: � <65533>
ERROR HTML - code: 64980, char: �, actual: � <65533>
ERROR HTML - code: 64981, char: �, actual: � <65533>
ERROR HTML - code: 64982, char: �, actual: � <65533>
ERROR HTML - code: 64983, char: �, actual: � <65533>
ERROR HTML - code: 64984, char: �, actual: � <65533>
ERROR HTML - code: 64985, char: �, actual: � <65533>
ERROR HTML - code: 64986, char: �, actual: � <65533>
ERROR HTML - code: 64987, char: �, actual: � <65533>
ERROR HTML - code: 64988, char: �, actual: � <65533>
ERROR HTML - code: 64989, char: �, actual: � <65533>
ERROR HTML - code: 64990, char: �, actual: � <65533>
ERROR HTML - code: 64991, char: �, actual: � <65533>
ERROR HTML - code: 64992, char: �, actual: � <65533>
ERROR HTML - code: 64993, char: �, actual: � <65533>
ERROR HTML - code: 64994, char: �, actual: � <65533>
ERROR HTML - code: 64995, char: �, actual: � <65533>
ERROR HTML - code: 64996, char: �, actual: � <65533>
ERROR HTML - code: 64997, char: �, actual: � <65533>
ERROR HTML - code: 64998, char: �, actual: � <65533>
ERROR HTML - code: 64999, char: �, actual: � <65533>
ERROR HTML - code: 65000, char: �, actual: � <65533>
ERROR HTML - code: 65001, char: �, actual: � <65533>
ERROR HTML - code: 65002, char: �, actual: � <65533>
ERROR HTML - code: 65003, char: �, actual: � <65533>
ERROR HTML - code: 65004, char: �, actual: � <65533>
ERROR HTML - code: 65005, char: �, actual: � <65533>
ERROR HTML - code: 65006, char: �, actual: � <65533>
ERROR HTML - code: 65007, char: �, actual: � <65533>
ERROR HTML - code: 65520, char: �, actual: � <65533>
ERROR HTML - code: 65521, char: �, actual: � <65533>
ERROR HTML - code: 65522, char: �, actual: � <65533>
ERROR HTML - code: 65523, char: �, actual: � <65533>
ERROR HTML - code: 65524, char: �, actual: � <65533>
ERROR HTML - code: 65525, char: �, actual: � <65533>
ERROR HTML - code: 65526, char: �, actual: � <65533>
ERROR HTML - code: 65527, char: �, actual: � <65533>
ERROR HTML - code: 65528, char: �, actual: � <65533>
ERROR HTML - code: 65534, char: �, actual: � <65533>
Done text. Finished at 65535.
ERROR ATTR - code: 0, char: ERROR ATTR - code: 1, char: �, actual: &#1; <38,35,49,59>
ERROR ATTR - code: 2, char: �, actual: &#2; <38,35,50,59>
ERROR ATTR - code: 3, char: �, actual: &#3; <38,35,51,59>
ERROR ATTR - code: 4, char: �, actual: &#4; <38,35,52,59>
ERROR ATTR - code: 5, char: �, actual: &#5; <38,35,53,59>
ERROR ATTR - code: 6, char: �, actual: &#6; <38,35,54,59>
ERROR ATTR - code: 7, char: �, actual: &#7; <38,35,55,59>
ERROR ATTR - code: 8, char: �, actual: &#8; <38,35,56,59>
ERROR ATTR - code: 9, char: 	, actual: &#9; <38,35,57,59>
ERROR ATTR - code: 10, char: 
, actual: &#10; <38,35,49,48,59>
ERROR ATTR - code: 11, char: �, actual: &#11; <38,35,49,49,59>
ERROR ATTR - code: 12, char: , actual: &#12; <38,35,49,50,59>
ERROR ATTR - code: 13, char: 
, actual: &#13; <38,35,49,51,59>
ERROR ATTR - code: 14, char: �, actual: &#14; <38,35,49,52,59>
ERROR ATTR - code: 15, char: �, actual: &#15; <38,35,49,53,59>
ERROR ATTR - code: 16, char: �, actual: &#16; <38,35,49,54,59>
ERROR ATTR - code: 17, char: �, actual: &#17; <38,35,49,55,59>
ERROR ATTR - code: 18, char: �, actual: &#18; <38,35,49,56,59>
ERROR ATTR - code: 19, char: �, actual: &#19; <38,35,49,57,59>
ERROR ATTR - code: 20, char: �, actual: &#20; <38,35,50,48,59>
ERROR ATTR - code: 21, char: �, actual: &#21; <38,35,50,49,59>
ERROR ATTR - code: 22, char: �, actual: &#22; <38,35,50,50,59>
ERROR ATTR - code: 23, char: �, actual: &#23; <38,35,50,51,59>
ERROR ATTR - code: 24, char: �, actual: &#24; <38,35,50,52,59>
ERROR ATTR - code: 25, char: �, actual: &#25; <38,35,50,53,59>
ERROR ATTR - code: 26, char: �, actual: &#26; <38,35,50,54,59>
ERROR ATTR - code: 27, char: �, actual: &#27; <38,35,50,55,59>
ERROR ATTR - code: 28, char: �, actual: &#28; <38,35,50,56,59>
ERROR ATTR - code: 29, char: �, actual: &#29; <38,35,50,57,59>
ERROR ATTR - code: 30, char: �, actual: &#30; <38,35,51,48,59>
ERROR ATTR - code: 31, char: �, actual: &#31; <38,35,51,49,59>
ERROR ATTR - code: 38, char: &, actual: &amp; <38,97,109,112,59>
ERROR ATTR - code: 160, char:  , actual: &nbsp; <38,110,98,115,112,59>
ERROR ATTR - code: 173, char: ­, actual: &shy; <38,115,104,121,59>
Done attributes. Finished at 65535.

IE11

Testing with String.fromCharCode()
ERROR HTML - code: 0, char: ERROR HTML - code: 13, char: 
, actual: 
 <10>
ERROR HTML - code: 38, char: &, actual: &amp; <38,97,109,112,59>
ERROR HTML - code: 60, char: <, actual: &lt; <38,108,116,59>
ERROR HTML - code: 62, char: >, actual: &gt; <38,103,116,59>
ERROR HTML - code: 160, char:  , actual: &nbsp; <38,110,98,115,112,59>
ERROR HTML - code: 173, char: ­, actual: &shy; <38,115,104,121,59>
ERROR HTML - code: 64976, char: �, actual: � <65533>
ERROR HTML - code: 64977, char: �, actual: � <65533>
ERROR HTML - code: 64978, char: �, actual: � <65533>
ERROR HTML - code: 64979, char: �, actual: � <65533>
ERROR HTML - code: 64980, char: �, actual: � <65533>
ERROR HTML - code: 64981, char: �, actual: � <65533>
ERROR HTML - code: 64982, char: �, actual: � <65533>
ERROR HTML - code: 64983, char: �, actual: � <65533>
ERROR HTML - code: 64984, char: �, actual: � <65533>
ERROR HTML - code: 64985, char: �, actual: � <65533>
ERROR HTML - code: 64986, char: �, actual: � <65533>
ERROR HTML - code: 64987, char: �, actual: � <65533>
ERROR HTML - code: 64988, char: �, actual: � <65533>
ERROR HTML - code: 64989, char: �, actual: � <65533>
ERROR HTML - code: 64990, char: �, actual: � <65533>
ERROR HTML - code: 64991, char: �, actual: � <65533>
ERROR HTML - code: 64992, char: �, actual: � <65533>
ERROR HTML - code: 64993, char: �, actual: � <65533>
ERROR HTML - code: 64994, char: �, actual: � <65533>
ERROR HTML - code: 64995, char: �, actual: � <65533>
ERROR HTML - code: 64996, char: �, actual: � <65533>
ERROR HTML - code: 64997, char: �, actual: � <65533>
ERROR HTML - code: 64998, char: �, actual: � <65533>
ERROR HTML - code: 64999, char: �, actual: � <65533>
ERROR HTML - code: 65000, char: �, actual: � <65533>
ERROR HTML - code: 65001, char: �, actual: � <65533>
ERROR HTML - code: 65002, char: �, actual: � <65533>
ERROR HTML - code: 65003, char: �, actual: � <65533>
ERROR HTML - code: 65004, char: �, actual: � <65533>
ERROR HTML - code: 65005, char: �, actual: � <65533>
ERROR HTML - code: 65006, char: �, actual: � <65533>
ERROR HTML - code: 65007, char: �, actual: � <65533>
ERROR HTML - code: 65520, char: �, actual: � <65533>
ERROR HTML - code: 65521, char: �, actual: � <65533>
ERROR HTML - code: 65522, char: �, actual: � <65533>
ERROR HTML - code: 65523, char: �, actual: � <65533>
ERROR HTML - code: 65524, char: �, actual: � <65533>
ERROR HTML - code: 65525, char: �, actual: � <65533>
ERROR HTML - code: 65526, char: �, actual: � <65533>
ERROR HTML - code: 65527, char: �, actual: � <65533>
ERROR HTML - code: 65528, char: �, actual: � <65533>
ERROR HTML - code: 65534, char: �, actual: � <65533>
Done text. Finished at 65535.
ERROR ATTR - code: 0, char: ERROR ATTR - code: 1, char: �, actual: &#1; <38,35,49,59>
ERROR ATTR - code: 2, char: �, actual: &#2; <38,35,50,59>
ERROR ATTR - code: 3, char: �, actual: &#3; <38,35,51,59>
ERROR ATTR - code: 4, char: �, actual: &#4; <38,35,52,59>
ERROR ATTR - code: 5, char: �, actual: &#5; <38,35,53,59>
ERROR ATTR - code: 6, char: �, actual: &#6; <38,35,54,59>
ERROR ATTR - code: 7, char: �, actual: &#7; <38,35,55,59>
ERROR ATTR - code: 8, char: �, actual: &#8; <38,35,56,59>
ERROR ATTR - code: 9, char: 	, actual: &#9; <38,35,57,59>
ERROR ATTR - code: 10, char: 
, actual: &#10; <38,35,49,48,59>
ERROR ATTR - code: 11, char: �, actual: &#11; <38,35,49,49,59>
ERROR ATTR - code: 12, char: , actual: &#12; <38,35,49,50,59>
ERROR ATTR - code: 13, char: 
, actual: &#13; <38,35,49,51,59>
ERROR ATTR - code: 14, char: �, actual: &#14; <38,35,49,52,59>
ERROR ATTR - code: 15, char: �, actual: &#15; <38,35,49,53,59>
ERROR ATTR - code: 16, char: �, actual: &#16; <38,35,49,54,59>
ERROR ATTR - code: 17, char: �, actual: &#17; <38,35,49,55,59>
ERROR ATTR - code: 18, char: �, actual: &#18; <38,35,49,56,59>
ERROR ATTR - code: 19, char: �, actual: &#19; <38,35,49,57,59>
ERROR ATTR - code: 20, char: �, actual: &#20; <38,35,50,48,59>
ERROR ATTR - code: 21, char: �, actual: &#21; <38,35,50,49,59>
ERROR ATTR - code: 22, char: �, actual: &#22; <38,35,50,50,59>
ERROR ATTR - code: 23, char: �, actual: &#23; <38,35,50,51,59>
ERROR ATTR - code: 24, char: �, actual: &#24; <38,35,50,52,59>
ERROR ATTR - code: 25, char: �, actual: &#25; <38,35,50,53,59>
ERROR ATTR - code: 26, char: �, actual: &#26; <38,35,50,54,59>
ERROR ATTR - code: 27, char: �, actual: &#27; <38,35,50,55,59>
ERROR ATTR - code: 28, char: �, actual: &#28; <38,35,50,56,59>
ERROR ATTR - code: 29, char: �, actual: &#29; <38,35,50,57,59>
ERROR ATTR - code: 30, char: �, actual: &#30; <38,35,51,48,59>
ERROR ATTR - code: 31, char: �, actual: &#31; <38,35,51,49,59>
ERROR ATTR - code: 38, char: &, actual: &amp; <38,97,109,112,59>
ERROR ATTR - code: 160, char:  , actual: &nbsp; <38,110,98,115,112,59>
ERROR ATTR - code: 173, char: ­, actual: &shy; <38,115,104,121,59>
Done attributes. Finished at 65535.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment