It is really very simple. I have the following code .. and it works in any other html5 compatible browser (Safari 5, Chrome 9, FireFox), but in IE9 (RC) I get the following errors.
jquery.min.js
Line: 16 Error: the object does not support the property or method 'getElementsByTagName'
Jquery-ui.min.js
Line: 40 Error: Object does not support property or method tabs
<!DOCTYPE html> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=9" /> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js"></script> <script type="text/javascript"> $(function () { $("#ribbon").tabs(); }); </script> </head> <body> <header> <span id="branding"></span> <div id="ribbon-navigation"> <div id="ribbon"> <ul> <li><a href="#ribbon-1">1</a></li> <li><a href="#ribbon-2">2</a></li> <li><a href="#ribbon-3">3</a></li> <li><a href="#ribbon-4">4</a></li> </ul> <div id="ribbon-1" class="ribbon-strip"> @Html.Partial("Menus/Ribbons/__H1") </div> <div id="ribbon-2" class="ribbon-strip"> @Html.Partial("Menus/Ribbons/__2") </div> <div id="ribbon-3" class="ribbon-strip"> @Html.Partial("Menus/Ribbons/__3") </div> <div id="ribbon-4" class="ribbon-strip"> @Html.Partial("Menus/Ribbons/__4") </div> </div> </div> </header> </body> </html>
I could understand that my CSS just didn't create the right styles, but it looks like it completely ignores $("#ribbon").tabs(); together. Any ideas?
jquery html5 jquery-ui internet-explorer-9
Ciel
source share