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: 39
Registered: July 2009
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] 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.

[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 Apr 25 19:37:50 GMT 2024

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

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

Back to the top