a4: data-title attribute not working

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?


  1. <!DOCTYPE html> 
  2. <html> <head> 
  3. <title>Page Title 0</title> 
  4. <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4/jquery.mobile-1.0a4.min.css" />
  5. <script type="text/javascript" src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
  6. <script type="text/javascript" src="http://code.jquery.com/mobile/1.0a4/jquery.mobile-1.0a4.min.js"></script>
  7. </head><body>

  8. <div data-role="page" id="page1" data-title="Manual Page Title 1">
  9. <div data-role="header" data-title="Manual Header Title 1">
  10. <h1>Page Title 1</h1>
  11. </div>
  12. <div data-role="content">
  13. <p>Page content goes here 1. go to <a href="#page2">page 2</a></p>
  14. </div>
  15. <div data-role="footer">
  16. <h4>Page Footer 1</h4>
  17. </div>
  18. </div>

  19. <div data-role="page" id="page2" data-title="Manual Page Title 2">
  20. <div data-role="header" data-title="Manual Header Title 2">
  21. <h1>Page Title 2</h1>
  22. </div>
  23. <div data-role="content">
  24. <p>Page content goes here 2. go to <a href="#page1">page 1</a></p>
  25. </div>
  26. <div data-role="footer">
  27. <h4>Page Footer 2</h4>
  28. </div>
  29. </div>

  30. </body></html>