-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Checker html/w3: Add support for SVG and XHTML #2246
Conversation
I'm afraid I don't understand what are you trying to achieve here. Your patch is either too much or too little to check SVG files. If you're trying to duplicate the functionality of https://validator.w3.org/ just setting Unrelated: a feature that isn't documented can be used (and maintained) only by its author. shrug |
b34b535
to
075ce93
Compare
You are right. Good catch. I expected it to detect SVG without a DTD in the same way it detects HTML and XHTML without a DTD, but currently it validates SVG without a DTD as generic XML.
You can do this by setting the I could add code to detect the version from the
Ha. That was an oversight on my part. Good catch. Docs updated. |
Leaving this to the user (i.e. reading |
075ce93
to
303a045
Compare
I agree. PR updated. Let me know what you think. |
One more thing: please don't attribute to other people the new files you added. 😄 |
Haha. Indeed. Are you referencing the |
Only in the new checkers |
303a045
to
83a7a2a
Compare
Gotcha. That makes sense to me. Thanks! PR updated. |
Apply the same changes that were applied to html/validator in vim-syntastic#2241 to w3/html so that it can be used to validate SVG and XHTML as well. Add support for `g:syntastic_{type}_w3_doctype` to control the doctype POST parameter sent to the validator. This is necessary for SVG without a DTD (which would otherwise be validated as generic XML) and useful for all the types to control validation. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
83a7a2a
to
fca2caf
Compare
Thank you. Merged with this patch on top: 8c76c04. |
Great! Thanks for all of the feedback and for merging it @lcd047! |
This PR applies the same changes that were applied to
html/validator
in #2241 tow3/html
so that it can be used to validate SVG and XHTML as well. It makeshtml/w3
nearly identical tohtml/validator
, except forerrorformat
, and forw3
lacking some ofvalidator
's options.Thanks for considering,
Kevin