Symptom
You have enabled the JavaScript capability on the WebControl using my previous artcile (read now). However, the JavaScript version stays with, for example, version 13 instead of version 17, that's standard on IE 9.
Root Cause
This appears to be due to some extra stuff in !DOCTYPE attribute of a page. By default Visual Studio 2010 new Web Forms page will add the following
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
It is most likely that xhtml1-transitional.dtd is affecting the browser behavior but I am not going to verify that (you can.)
Fix
If you keep the !DOCTYPE only to just to say , in other words remove the rest of the junk in the DOCTYPE, then the JavaScript version will go up to the latest version.
The HTML5 standard requires that the DOCTYPE to only have html as its attribute.
No comments:
Post a Comment