Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-18033

Wrong html tag insertion from Palette into empty html file

XMLWordPrintable

      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.

            dazarov_jira Daniel Azarov (Inactive)
            alexeykazakov Alexey Kazakov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: