NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 985 - Disable default text/html doctype sniffing & move it to only being an option the REST API
Disable default text/html doctype sniffing & move it to only being an option ...
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: General
HEAD
All All
: P2 normal
Assigned To: Michael[tm] Smith
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-29 07:33 CET by Michael[tm] Smith
Modified: 2014-01-29 08:06 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael[tm] Smith 2014-01-29 07:33:04 CET
1. Change the servlet logic so that by default we no longer do doctype sniffing of text/html documents to determine what schema to check them against. e.g., for documents with an HTML4 doctype, we have by default been validating them checking them against the old schema for HTML4. But now, instead, we'll just validate all text/html documents against the latest HTML schema (aka "HTML5").

2. Provide a new "sniffdoctype" option in the REST API to allow maintainers of third-party services or custom front-ends to opt back into the old doctype-sniffing behavior if they need to -- to preserve the possibility of backward compatibility in case the lack of that option would break expectations the providers of those services may have already set for their existing users.