-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add validator.nu checkers for XHTML and SVG #2241
Conversation
Refactor SyntaxCheckers_html_validator_GetLocList into SyntaxCheckers_html_validator_GetLocListForType which takes the escaped executable and type as arguments and call it from a new SyntaxCheckers_html_validator_GetLocList. This will allow sharing the validator.nu logic between checkers for multiple types. Signed-off-by: Kevin Locke <[email protected]>
This checker shares most of its logic with html/validator which it loads via :runtime! (using the same convention as checkers based on pyflakes). Signed-off-by: Kevin Locke <[email protected]>
This checker shares most of its logic with html/validator which it loads via :runtime! (using the same convention as checkers based on pyflakes). Update syntastic-checkers.txt based on html/validator docs. Signed-off-by: Kevin Locke <[email protected]>
I like to change things in a single place, so please see f6ec8a4 + f011aa8 instead. The interface is horrendous (mainly because the API of |
That works for me. Thanks @lcd047!
That's news to me. Thanks for mentioning it. Could you elaborate? |
People have been asking for asynchronous checking for a long time. Syntastic is unlikely to get asynchronous checking, mainly because of my health condition, and my vanishing interest in Vim development these days. So many former syntastic users have migrated to ALE. |
Good to know. Sorry to hear about your health condition. Thanks again for adding SVG+XHTML and for the information! |
Due to a typo in vim-syntastic#2241 the Content-Type was not being set correctly for XHTML files. Fix it. Signed-off-by: Kevin Locke <[email protected]>
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. Signed-off-by: Kevin Locke <[email protected]>
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. Signed-off-by: Kevin Locke <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
The validator.nu service supports XHTML and SVG in addition to HTML. This pull request refactors html/validator so that the API calling logic can be shared, then adds checkers for XHTML and SVG by calling the shared function. Let me know what you think.
Thanks for considering,
Kevin