For IE, do not use salt for tofu detection
Adding salt won't work for IE since it uses a tofu with small width for unassigned code points. From tests, algorithm without salt should be enough for IE. Change-Id: If39e6c49d272fa67f60c19f1af64f1fb71856bcd
This commit is contained in:
committed by
Nemo bis
parent
dc24784190
commit
89892f7f0e
@@ -73,7 +73,10 @@
|
|||||||
length = Math.min( 4, text.length ),
|
length = Math.min( 4, text.length ),
|
||||||
detected = false;
|
detected = false;
|
||||||
|
|
||||||
|
if ( $.client.test( { msie: false } ) ) {
|
||||||
|
// IE shows a different tofu for unassigned code points!
|
||||||
text = tofuSalt + text;
|
text = tofuSalt + text;
|
||||||
|
}
|
||||||
$fixture = $( '<span>' )
|
$fixture = $( '<span>' )
|
||||||
.css( {
|
.css( {
|
||||||
fontSize: '72px',
|
fontSize: '72px',
|
||||||
|
|||||||
Reference in New Issue
Block a user