-
Bug
-
Resolution: Done
-
Critical
-
4.2.0.CR1
-
None
1. Create an empty html file (no doctype)
2. DnD a popup from JQuery Mobile 1.4 Palette
3. See the wrong result:
<a href="#popup-1" data-rel="popup" class="ui-btn ui-corner-all ui-alt-icon ui-shadow ui-btn-inline" title="Popup">Popup</a> <div data-role="popup" id="popup-1" class="ui-content"> <p>This is a popup</p> </div> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.css" /> <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script> <script src="http://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.js"></script> </head> <body> </body> </html>
The tag should be inserted into the generated body.
We also should insert <!DOCTYPE html> if we generate <html> tag and there is no doctype on the page.