-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* detect HTML with utf8 BOM signature; closes #267 * make BOM have priority over HTML meta in charset detection: #268 (comment) Co-authored-by: Gabriel Vasile <gabriel.vasile@email.com>
- Loading branch information
1 parent
7322b53
commit 6e3aeb1
Showing
7 changed files
with
196 additions
and
80 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<!-- | ||
Some comment | ||
--> | ||
<html dir="ltr" mozdisallowselectionprint> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | ||
<meta name="some name" content="notranslate"> | ||
<title>test</title> | ||
|
||
|
||
<link rel="stylesheet" href="html.utf8bom.css"> | ||
|
||
|
||
|
||
</head> | ||
|
||
<body tabindex="1"> | ||
<div id="printContainer"></div> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
| ||
<!DOCTYPE html> | ||
<!-- | ||
Some comment | ||
--> | ||
<html dir="ltr" mozdisallowselectionprint> | ||
<head> | ||
<meta charset="ISO-8859-16"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | ||
<meta name="some name" content="notranslate"> | ||
<title>test</title> | ||
|
||
|
||
<link rel="stylesheet" href="html.utf8bom.css"> | ||
|
||
|
||
|
||
</head> | ||
|
||
<body tabindex="1"> | ||
<div id="printContainer"></div> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
| ||
<!DOCTYPE html> | ||
<!-- | ||
Some comment | ||
--> | ||
<html dir="ltr" mozdisallowselectionprint> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | ||
<meta name="some name" content="notranslate"> | ||
<title>test</title> | ||
|
||
|
||
<link rel="stylesheet" href="html.utf8bom.css"> | ||
|
||
|
||
|
||
</head> | ||
|
||
<body tabindex="1"> | ||
<div id="printContainer"></div> | ||
</body> | ||
</html> |