Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » HTML5 attributes in JSPs
HTML5 attributes in JSPs [message #689951] Tue, 28 June 2011 16:21 Go to next message
Konrad Windszus is currently offline Konrad WindszusFriend
Messages: 37
Registered: July 2009
Although in general HTML5 is supported in WTP 3.3.0 (compare with Bug 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?
Re: HTML5 attributes in JSPs [message #690107 is a reply to message #689951] Wed, 29 June 2011 02:05 Go to previous message
Nick Sandonato is currently offline Nick SandonatoFriend
Messages: 126
Registered: July 2009
Senior Member
Hi, Konrad. While HTML5 support was added, ARIA support has not [1]. 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.

Previous Topic:Eclipse WTP Web Service, Axis2, and JAR project dependencies
Next Topic:Hyperlinking in jsp files not working any more in Indigo
Goto Forum:

Current Time: Wed Jan 27 17:22:38 GMT 2021

Powered by FUDForum. Page generated in 0.02901 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top