-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further refinements to checking of HTML5 documents
Tested and found to be working as expected. This causes all validation requests for HTML5 documents to just get re-posted as-is to https://validator.w3.org/nu/ using an HTTP 307 "Temporary Redirect".* —with the exception of any requests that have `output=soap12` or `output=ucn` parameters. The reason for making temporary exceptions for those soap12/ucn cases is that some existing tools such as Dreamweaver apparently have integrated support for HTML checking that relies on calling https://validator.w3.org/ to do the validation, and that expects the results in the `output=soap12` format. Other than those exceptions, this change properly 307-redirects all requests for checking of HTML5 documents to https://validator.w3.org/nu/ (that includes file-upload requests as well direct-input requests and URL-input GET requests, and any `output=json` requests regardless of method). *Note: Using a 307 gives the meaning "I'm redirecting this particular request to https://validator.w3.org/nu/ but that doesn't imply you should necessarily use https://validator.w3.org/nu/ for any further requests", which seems like the right meaning for this particular case.
- Loading branch information
1 parent
4a5a0bd
commit 1b12fe4
Showing
4 changed files
with
141 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters