Although in general HTML5 is supported in WTP 3.3.0 (compare with Bug 292415, bugs.eclipse.org/bugs/show_bug.cgi?id=292415), it does not work within JSP files. Usually those files don't specify a doctype, since often multiple JSPs forms a complete page. Unfortunately in those JSP files the attribute "role" in a statement like <div role="test"> is annotated with a warning, that role is not a known attribute.
Can I somehow set the default HTML attribute sets in JSPs to HTML5?
Hi, Konrad. While HTML5 support was added, ARIA support has not . So the role attribute will still generate a warning. But, in the case of JSPs that may not have a DOCTYPE you can configure the Web Content Settings to specify the default DOCTYPE to use. This can either be configured for the project (by right clicking on the project) or for a specific file (by right clicking on the file). After right clicking on the appropriate resource, choose Web Content Settings from the tree. In the combo box for Document type, select HTML5. For Indigo, however, HTML5 should be the default document type when none is specified.