Be more flexible in identifying HTML files
Some tests in WebKit have no <html> and no <head>... * Allow "<style", "<script", and "<a href" to identify HTML * Scan up to 256 characters instead of 64 * Also remove the rule identifying "<!--", because this really isn't html specific.
This commit is contained in:
parent
607a620b1c
commit
34828f7346
|
@ -4,9 +4,9 @@ resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
|
||||||
resource(1, "META:TYPE") "text/html";
|
resource(1, "META:TYPE") "text/html";
|
||||||
|
|
||||||
resource(2, "META:SNIFF_RULE") #'CSTR' array {
|
resource(2, "META:SNIFF_RULE") #'CSTR' array {
|
||||||
"0.40 [0:64]( -i \"<HTML\" | \"<HEAD\" | \"<TITLE\" | \""
|
"0.40 [0:256]( -i \"<HTML\" | \"<HEAD\" | \"<TITLE\" | \"<BODY\" | "
|
||||||
"<BODY\" | \"<TABLE\" | \"<!--\" | \"<META\" | \"<CENTER\" | \""
|
"\"<TABLE\" | \"<META\" | \"<CENTER\" | \"<!DOCTYPE HTML\" | \"<SCRIPT\" | "
|
||||||
"<!DOCTYPE HTML\")"
|
"\"<STYLE\" | \"<A HREF\" )"
|
||||||
};
|
};
|
||||||
|
|
||||||
resource(3, "META:S:DESC") #'MSDC' "HTML file";
|
resource(3, "META:S:DESC") #'MSDC' "HTML file";
|
||||||
|
|
Loading…
Reference in New Issue