[jbosstools-issues] [JBoss JIRA] (JBIDE-17242) HTML validation should allow the 'role' attribute.

Victor Rubezhny (JIRA) issues at jboss.org
Thu May 15 16:49:56 EDT 2014


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

Victor Rubezhny commented on JBIDE-17242:
-----------------------------------------

The upstream issue ([Bug 434381 - HTML5 validation should allow the 'role' and 'aria-*' attributes|https://bugs.eclipse.org/bugs/show_bug.cgi?id=434381]) is resolved as fixed for 3.6 RC1.

> HTML validation should allow the 'role' attribute.
> --------------------------------------------------
>
>                 Key: JBIDE-17242
>                 URL: https://issues.jboss.org/browse/JBIDE-17242
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: jsp/jsf/xml/html source editing, upstream
>            Reporter: Joshua Wilson
>            Assignee: Victor Rubezhny
>            Priority: Minor
>             Fix For: 4.2.0.Beta2
>
>
> I found this out when trying to implement jQuery Mobile 1.4.2. There is over 20 different docs where they use the attribute 'role'.  After looking into it, this is something that should be allowed by the HTML validator. The validator produces this warning, "Undefined attribute name (role)."
> http://www.w3.org/TR/html5/dom.html#global-attributes states "To enable assistive technology products to expose a more fine-grained interface than is otherwise possible with HTML elements and attributes, a set of http://www.w3.org/TR/html5/dom.html#wai-aria can be specified (the ARIA http://www.w3.org/TR/html5/infrastructure.html#attr-aria-role and aria-* attributes). http://www.w3.org/TR/html5/references.html#refsARIA"
> this is how it is linked to HTML5 : http://www.w3.org/TR/html5/dom.html#sec-implicit-aria-semantics
> also see: http://www.w3.org/WAI/PF/aria/usage#usage_intro
> A working example can be found in [contacts-mobile-basic|https://github.com/joshuawilson/jboss-wfk-quickstarts/blob/JDF-702/contacts-mobile-basic/src/main/webapp/index.html#L83]



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the jbosstools-issues mailing list