Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » HTML5 attributes in JSPs
HTML5 attributes in JSPs [message #689951] Tue, 28 June 2011 12:21 Go to next message
Konrad Windszus is currently offline Konrad Windszus
Messages: 6
Registered: July 2009
Junior Member
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?
Re: HTML5 attributes in JSPs [message #690107 is a reply to message #689951] Tue, 28 June 2011 22:05 Go to previous message
Nick Sandonato is currently offline Nick Sandonato
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.

[1] https://bugs.eclipse.org/344965
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: Thu Aug 28 07:25:27 EDT 2014

Powered by FUDForum. Page generated in 0.02595 seconds