[jbosstools-issues] [JBoss JIRA] (JBIDE-18033) Wrong html tag insertion from Palette into empty html file
Alexey Kazakov (JIRA)
issues at jboss.org
Tue Aug 12 14:42:29 EDT 2014
[ https://issues.jboss.org/browse/JBIDE-18033?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Kazakov updated JBIDE-18033:
-----------------------------------
Description:
1. Create an empty html file (no doctype)
2. DnD a popup from JQuery Mobile 1.4 Palette
3. See the wrong result:
{code}
<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>
{code}
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.
was:
1. Create an empty html file.
*OR* some simple one w/o doctype and html root, for example:
{code}
<div>
</div>
{code}
2. DnD a popup from JQuery Mobile 1.4 Palette
3. See the wrong result:
{code}
<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>
{code}
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.
> Wrong html tag insertion from Palette into empty html file
> ----------------------------------------------------------
>
> Key: JBIDE-18033
> URL: https://issues.jboss.org/browse/JBIDE-18033
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: jsp/jsf/xml/html source editing
> Affects Versions: 4.2.0.CR1
> Reporter: Alexey Kazakov
> Assignee: Viacheslav Kabanovich
> Priority: Critical
> Fix For: 4.2.0.CR1
>
>
> 1. Create an empty html file (no doctype)
> 2. DnD a popup from JQuery Mobile 1.4 Palette
> 3. See the wrong result:
> {code}
> <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>
> {code}
> 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.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the jbosstools-issues
mailing list