a4: data-title attribute not working
Per the release notes of Auto-updating page titles for Ajax navigatio
n, there's a new attribute that should one to manually define a title. Either the attribute doesn't work, or I am missing something obvious. Also, I tried the attribute on different spots, just to verify. Correct me if I am wrong, but it should go with the DIV that has the data-role="page" attribute.
What am I missing to have the data-title attribute work correctly?
- <!DOCTYPE html>
- <html> <head>
- <title>Page Title 0</title>
- <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4/jquery.mobile-1.0a4.min.css" />
- <script type="text/javascript" src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
- <script type="text/javascript" src="http://code.jquery.com/mobile/1.0a4/jquery.mobile-1.0a4.min.js"></script>
- </head><body>
- <div data-role="page" id="page1" data-title="Manual Page Title 1">
- <div data-role="header" data-title="Manual Header Title 1">
- <h1>Page Title 1</h1>
- </div>
- <div data-role="content">
- <p>Page content goes here 1. go to <a href="#page2">page 2</a></p>
- </div>
- <div data-role="footer">
- <h4>Page Footer 1</h4>
- </div>
- </div>
- <div data-role="page" id="page2" data-title="Manual Page Title 2">
- <div data-role="header" data-title="Manual Header Title 2">
- <h1>Page Title 2</h1>
- </div>
- <div data-role="content">
- <p>Page content goes here 2. go to <a href="#page1">page 1</a></p>
- </div>
- <div data-role="footer">
- <h4>Page Footer 2</h4>
- </div>
- </div>
- </body></html>