XHTML sniffing rule: handle utf-16 documents.

This commit is contained in:
Adrien Destugues 2014-04-09 08:28:28 +02:00
parent a68efa7326
commit 41a807ec64

View File

@ -4,7 +4,7 @@ resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
resource(1, "META:TYPE") "application/xhtml+xml";
resource(2, "META:SNIFF_RULE") #'CSTR' array {
"0.60 [0]( \"<?xml\" ) [0:128](\"-//W3C//DTD XHTML\")"
"0.60 [0](\"<?xml\"|\"\\376\\377\\000<\\000?\\000x\\000m\\000l\") [0:128](\"<!DOCTYPE html\"|\"\\000<\\000!\\000D\\000O\\000C\\000T\\000Y\\000P\\000E\\000 \\000h\\000t\\000m\\000l\")"
};
resource(3, "META:S:DESC") #'MSDC' "XHTML file";