How to create HTML5 valid Javadoc?

I created HTML5 JavaDoc in Eclipse Luna, pressing Project

โ†’Generate Javadoc...

The output is a well-formed standard Javadoc HTML file, however it is not HTML5 compliant. For example, I find this to be inappropriate as I would like to upload all the documentation to the website.

I have checked the generated files with W3 Validator .

How to get the generator to generate a valid HTML5 file including <!DOCTYPE html>

at the start of the page and avoid obsolete elements like frameset

or incomplete elements altogether.

+3


source to share


1 answer


As far as I can tell, this will be available in jdk-9 via jep-224 . In java 8, the current type is html4

.



+5


source







All Articles