A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.

To request an account, ask an autoconfirmed user on IRC (such as one of these permanent autoconfirmed members) or send an e-mail to admin@wiki.whatwg.org with your desired username and an explanation of the first edit you'd like to make. (Do not use this e-mail address for any other inquiries, as they will be ignored or politely declined.)

Validator.nu Textarea Input

From WHATWG Wiki
Jump to: navigation, search

This document is obsolete.

For the current specification, see: https://github.com/validator/validator/wiki/Service-»-Input-»-textarea

To use Validator.nu as a Web service by POSTing a text field:

  • the client issues an HTTP request either to https://validator.nu/ or https://html5.validator.nu/
  • the request uses the POST method with an multipart/form-data entity body (application/x-www-form-urlencoded is not supported)
  • Common parameters are encoded as form fields
  • the document to check is included as the value of a form field called content.
  • the content field must be the last field in the submission.

The request should set the parser parameter explicitly. Content-Type is synthetized by selecting text/html or application/xml depending on the parser value and clamping the charset MIME type parameter to utf-8).

All field values including the document source must decode as UTF-8.

See also