Name |
HTML5 Variant 1 |
Description |
HTML 5 does not explicitly define the HTML version or any Document Type Definition (DTD) within the DOCTYPE tag. An HTML5 DOCTYPE tag may contain an obsolete permitted DOCTYPE string, however this is discouraged. As such the present signature does not cover identification of an HTML5 document that includes this obsolete permitted DOCTYPE string. This signature may be subject to further revision as, at the time of writing, development on the HTML5 standard is still ongoing.
Variant 1: <!(DOCTYPE|doctype){0-4}(HTML|html)> |
Byte sequences |
Position type |
Absolute from BOF |
Offset |
0 |
Maximum Offset |
1024 |
Byte order |
|
Value |
3C21(444F4354595045|646F6374797065){0-4}(48544D4C|68746D6C)3E |
|
Name |
HTML5 Variant 2 |
Description |
BOF: <!(DOCTYPE|doctype){0-4}(HTML|html){0-4}{SYSTEM|system){0-4}('|")about:legacy-compat('|")> |
Byte sequences |
Position type |
Absolute from BOF |
Offset |
0 |
Maximum Offset |
1024 |
Byte order |
|
Value |
3C21(444F4354595045|646F6374797065){0-4}(48544D4C|68746D6C){0-4}(53595354454D|73797374656D){0-4}(27|22)61626F75743A6C65676163792D636F6D706174(27|22)3E |
|