HTML Validator that is extensible
Asked Answered
B

2

7

Several validators, such as the one by the W3C, can validate an HTML (or XHTML) page against the W3C spec. Are there any validators that are extensible? That is, I'd like to not only validate against the spec, but I'd like to also validate against additional elements and/or attributes. I'd like to be able to specify these additions without programming if possible; adding them to a database or XML file or a config file would be fine.

Thanks for any suggestions.

Bellarmine answered 31/5, 2011 at 17:41 Comment(2)
+1 Good Question, I've often found myself in a spot where I would like to validate my code based on some of my own rules and criteria.Kiloton
Follow-up question: Is anyone extending the W3C's validator? Lessons learned would be helpful.Bellarmine
C
1

There isn't anything like it that I know

Calendre answered 31/5, 2011 at 17:42 Comment(1)
Until I find something, I am regretfully accepting this answer as reality.Bellarmine
D
0

If you can specify what you want as an XML schema, then you should be able to use a normal XML validator

Downthrow answered 31/5, 2011 at 17:45 Comment(1)
I agree with @delnan. If I were only going to validate against XHTML, this would work. But I want to be able to validate against HTML 4 and HTML5 as well.Bellarmine

© 2022 - 2024 — McMap. All rights reserved.