div inside an anchor will break the back transition effect from the target page
Hi all,
I started to use jQM for a few days for my mobile web application, and encountered the following issue...
a.html
- <html>
- <head>...</head>
- <body>
- <div id="abc" data-role="page>
- <div class="myheader">...</div>
- <a href="b.html">
- <div>abc</div>
- </a>
- </div>
- </body>
- </html>
b.html
- <html>
- <head>...</head>
- <body>
- <div data-role="page">
- <a href=href="#" data-rel="back" data-direction="reverse" data-transition="slide">Back</a>
- </div>
- </body>
- </html>
So I suppose when I click the "abc" link in a.html, b.html will be fetched and be added to the DOM with slide transition effect, that's ok and it's work. BUT if I click the "Back" link from b.html, while I suppose a.html will be shown with slide transition effect, the a.html just be shown on the screen without transition effect instead.
I tried to amend a.html as below and it's work as it should be,
a-amend.html
- <html>
- <head>...</head>
- <body>
- <div id="abc" data-role="page>
- <div class="myheader">...</div>
- <a href="b.html">
- abc
- </a>
- </div>
- </body>
- </html>
So my observation is that the issue only happen if there is a div inside an anchor...
So far the problem only happen on my Android phone (Nexus One 2.3.3) but not on my Chrome 10 browse (Mac).
Any idea on this? Thanks!