Validating HTML5 non-XML syntax

<oXygen/> general issues.
maglid
Posts: 38

Validating HTML5 non-XML syntax

Tue Oct 25, 2016 7:03 am

Using Oxygen 18.0.

I work with a lot of HTML5 documents these days and I want to be able to validate them in oxygen, or at least pretty-print them. But pretty-print fails because it does not like the non-XML HTML5 syntax. I don't want to have to XML-ize all the HTML5 I work with. Is there some way to do this? I found several topics on this from past years, and they all seem to say "use XML syntax."

I believe the W3C has a validator for HTML5, I know the guy who wrote it, and I think it's in Java.

Thanks,
Mark
adrian
Posts: 2391

Re: Validating HTML5 non-XML syntax

Tue Oct 25, 2016 7:47 am

Hi,

There is no way to pretty print or validate HTML5 (non-XML) in Oxygen as of v18.1, if that's what you are asking.
If you have a third party validator, you can configure it in Oxygen, either as an external tool or as a custom validation engine.

I've submitted a request on our issue tracking tool for HTML5 validation.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
maglid
Posts: 38

Re: Validating HTML5 non-XML syntax

Wed Oct 26, 2016 8:09 pm

Thanks for the information, Adrian. I might try setting up the W3C validator with Oxygen. For reference, the code for this validator is here:

https://validator.w3.org/source/
https://github.com/w3c/markup-validator

Regards,
Mark

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 2 guests