Validating HTML5 non-XML syntax

Oxygen general issues.
maglid
Posts: 75
Joined: Mon Sep 28, 2009 8:10 am

Validating HTML5 non-XML syntax

Post 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
adrian
Posts: 2850
Joined: Tue May 17, 2005 4:01 pm

Re: Validating HTML5 non-XML syntax

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
maglid
Posts: 75
Joined: Mon Sep 28, 2009 8:10 am

Re: Validating HTML5 non-XML syntax

Post 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
Oleksii
Posts: 81
Joined: Wed Jul 19, 2017 6:04 pm
Location: Austria
Contact:

Re: Validating HTML5 non-XML syntax

Post by Oleksii »

Hi, have been added a validation option in the meantime?
(oXygen version 20.1)
Kind regards,
Oleksii Sapov-Erlinger
adrian
Posts: 2850
Joined: Tue May 17, 2005 4:01 pm

Re: Validating HTML5 non-XML syntax

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply