HTML5 attributes in JSPs [message #689951] |
Tue, 28 June 2011 12:21  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.23161 seconds