Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve documentNotUTF8 check in ToolsError for HTML support #2

Merged
merged 1 commit into from Jan 22, 2014

Conversation

DaveRandom
Copy link
Contributor

Improve documentNotUTF8 check to allow character set declarations in HTML documents:

  • Considers <meta http-equiv="content-type" content="text/html; charset=UTF-8"> to be a valid charset declaration
  • Considers <meta charset="UTF-8"> to be a valid charset declaration
  • Permits the encoding attribute of the relevant tag to appear anywhere within the tag (currently in the <?xml variant it must be the last attribute)
  • Permits the HTML variants to specify UTF8 as well as UTF-8 (all browsers forgive this mistake and understand it). The XML variant remains strict on this point.

@minktee
Copy link

minktee commented Jan 11, 2014

Improve documentNotUTF8 check in ToolsError for HTML support

bjori added a commit that referenced this pull request Jan 22, 2014
Improve documentNotUTF8 check in ToolsError for HTML support

* DaveRandom/documentNotUTF8-improvements:
  Improve documentNotUTF8 check in ToolsError for HTML support
@php-pulls php-pulls merged commit de3eaf1 into php:master Jan 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants