[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-8481) HTML 5 support in the source editor and validators

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Fri Jul 8 18:20:24 EDT 2011


    [ https://issues.jboss.org/browse/JBIDE-8481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12613240#comment-12613240 ] 

Alexey Kazakov commented on JBIDE-8481:
---------------------------------------

HTML5 is supported by WTP.
WTP content assistant shows HTML5 tags together with HTML4 (HTML4 are showed in capital letters) if the page doesn't declare HTML4 doc type.
But HTML support in WTP in general has some restrictions for Facelets/JSF2 pages.
For example HTML code completion doesn't work inside not-HTML tags:
{code:html}
<html>

    <!-- HTML code completion works here -->

    <h:body>

        <!-- HTML code completion DOES NOT work here -->

        <table>
             <!-- HTML code completion works here -->
        </table>

    </h:body>
</html>
{code}

In JBT, we provide our own HTML code completion without such limitations (both ours and WTP's code completions works in our editors) but our code completion doesn't support HTML5.

So, what we have right now for XHTML pages which doesn't have HTML4 doc type (so they may use HTML5):
{code:html}
<html>

    <!-- Both HTML4/5 content assistants work here. JBT and WTP. -->

    <h:body>

        <!-- Only our HTML4 content assistant works here. JBT. -->

        <table>
                 <!-- Both HTML4/5 content assistants work here. JBT and WTP. -->
        </table>

    </h:body>
</html>
{code}

What options do we have:
1. Leave it as it is :) and wait until WTP fix that issue with HTML tags in not-HTML tags (probably we should create an issue for WTP).
2. Create a new HTML5 schema for our KB instead of old HTML4. HTML5 doesn't have any DTD or XSD so we have to create our own one. Also we have to distinguish HTML4 doc type not to show HTML5 tags in such pages. So far our KB doesn't do it. But WTP does.
3. Anything else? 


> HTML 5 support in the source editor and validators
> --------------------------------------------------
>
>                 Key: JBIDE-8481
>                 URL: https://issues.jboss.org/browse/JBIDE-8481
>             Project: Tools (JBoss Tools)
>          Issue Type: Sub-task
>          Components: jsp/jsf/xml source editing
>            Reporter: Yahor Radtsevich
>            Assignee: Alexey Kazakov
>             Fix For: 3.3.0.M3
>
>
> Add HTML 5 support to the source editor and validators. See JBIDE-8479 for details.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list