mirror of
https://github.com/php/web-doc-editor.git
synced 2026-03-24 09:12:07 +01:00
[PR #2] Improve documentNotUTF8 check in ToolsError for HTML support #7
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/php/web-doc-editor/pull/2
State: closed
Merged: Yes
Improve documentNotUTF8 check to allow character set declarations in HTML documents:
<meta http-equiv="content-type" content="text/html; charset=UTF-8">to be a valid charset declaration<meta charset="UTF-8">to be a valid charset declaration<?xmlvariant it must be the last attribute)UTF8as well asUTF-8(all browsers forgive this mistake and understand it). The XML variant remains strict on this point.