jquery-archive / jquery-mobile

jQuery Mobile Framework
https://jquerymobile.com
Other
9.7k stars 2.41k forks source link

Potential issue with edge jQuery 1.4.4pre #309

Closed alexisabril closed 13 years ago

alexisabril commented 13 years ago

elem.getAttribute, within Sizzle is causing an error in Chrome v7.0.517.41(OS X), Android 2.2 and iOS 4.0.2. jQuery Mobile fails to load after the following error has occurred.

Response: jquery.js:3647Uncaught TypeError: Object # has no method 'getAttribute'

Markup: <!DOCTYPE html>

<head>
  <title></title>
  <link href="/stylesheets/default.css?1288114835" media="screen" rel="stylesheet" type="text/css" />
  <script src="/javascripts/jquery.js?1288114863" type="text/javascript"></script>

</head>
<body>
  <div data-role='page'>

    <div data-role='header'>
      <h1>Title</h1>
      <a class='ui-btn-right'>Search</a>
    </div>
    <div data-role='content'>
      <ul data-role='listview'>
        <li><a href="/somelist">A</a></li>
        <li><a href="/somelist">B</a></li>
      </ul>
    </div>
    <div class='center' data-position='fixed' data-role='footer' data-theme='c'>

      <div data-role='controlgroup' data-type='horizontal'>
        <a data-role='button' data-theme='c' href='tel:+1-555-555-5555'>Call Us</a>
        <a data-role='button' data-theme='c' href='mailto:me@mydomain.com'>Email Us</a>
      </div>
    </div>
  </div>
</body>
alexisabril commented 13 years ago

This seems to have been resolved in one of the later builds.