Page 1 of 1

Validating HTML5 non-XML syntax

Posted: Tue Oct 25, 2016 7:03 am
by maglid
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

Re: Validating HTML5 non-XML syntax

Posted: Tue Oct 25, 2016 7:47 am
by adrian
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

Re: Validating HTML5 non-XML syntax

Posted: Wed Oct 26, 2016 8:09 pm
by maglid
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

Re: Validating HTML5 non-XML syntax

Posted: Tue Oct 29, 2019 8:49 pm
by Oleksii
Hi, have been added a validation option in the meantime?
(oXygen version 20.1)

Re: Validating HTML5 non-XML syntax

Posted: Wed Oct 30, 2019 12:31 pm
by adrian
Hi,

HTML 5 validation based on the W3C HTML Validator has been implemented since v21.1.
What's New in Oxygen XML Editor 21.1
Oxygen includes a built-in validator used for validating HTML documents. It is based upon the W3C HTML Validator and the HTML documents are validated against the W3C HTML5 specification.
Regards,
Adrian