|
| 1 | +import { Doctypes, Doctype } from '../types/doctypes'; |
| 2 | + |
| 3 | +export { Doctypes, Doctype }; |
| 4 | + |
| 5 | +export const doctypes: Doctypes = { |
| 6 | + 'HTML 5': { |
| 7 | + description: |
| 8 | + 'A doctype declaration which is very short, due to its lack of references to a Document Type Definition (DTD) in the form of a URL or FPI. All it contains is the tag name of the root element of the document, HTML.', |
| 9 | + element: 'html', |
| 10 | + keyword: null, |
| 11 | + publicIdentifier: null, |
| 12 | + systemIdentifier: null, |
| 13 | + }, |
| 14 | + 'HTML 4.01 Strict': { |
| 15 | + description: |
| 16 | + 'A strict doctype declaration which validates against the HTML 4.01 spec, although it doesn\'t allow any presentational markup or deprecated elements (such as `<font>` elements) or framesets to be used. It validates loose HTML style markup, such as minimized attributes and non-quoted attributes (eg required, rather than required="required")', |
| 17 | + element: 'HTML', |
| 18 | + keyword: 'PUBLIC', |
| 19 | + publicIdentifier: '-//W3C//DTD HTML 4.01//EN', |
| 20 | + systemIdentifier: 'http://www.w3.org/TR/html4/strict.dtd', |
| 21 | + }, |
| 22 | + 'HTML 4.01 Transitional': { |
| 23 | + description: |
| 24 | + 'A transitional doctype declaration which validates against the HTML 4.01 spec. It allows some presentational markup and deprecated elements (such as <font> elements) but not framesets. It validates loose HTML style markup, such as minimized attributes and non-quoted attributes (eg required, rather than required="required")', |
| 25 | + element: 'HTML', |
| 26 | + keyword: 'PUBLIC', |
| 27 | + publicIdentifier: '-//W3C//DTD HTML 4.01 Transitional//EN', |
| 28 | + systemIdentifier: 'http://www.w3.org/TR/html4/loose.dtd', |
| 29 | + }, |
| 30 | + 'XHTML 1.1': { |
| 31 | + description: '', |
| 32 | + element: 'html', |
| 33 | + keyword: 'PUBLIC', |
| 34 | + publicIdentifier: '-//W3C//DTD XHTML 1.1//EN', |
| 35 | + systemIdentifier: 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd', |
| 36 | + }, |
| 37 | + 'XHTML 1.0 Strict': { |
| 38 | + description: |
| 39 | + "A strict doctype declaration which validates against the HTML 4.01 spec, although it doesn't allow any presentational markup or deprecated elements (such as `<font>` elements) or framesets to be used. Unlike the `HTML 4.01 Strict` doctype, it does not validate loose HTML style markup.", |
| 40 | + element: 'html', |
| 41 | + keyword: 'PUBLIC', |
| 42 | + publicIdentifier: '-//W3C//DTD XHTML 1.0 Strict//EN', |
| 43 | + systemIdentifier: 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd', |
| 44 | + }, |
| 45 | + 'XHTML 1.0 Transitional': { |
| 46 | + description: |
| 47 | + 'A transitional doctype declaration which validates against the HTML 4.01 spec. It allows some presentational markup and deprecated elements (such as <font> elements) but not framesets. Unlike the `HTML 4.01 Transitional` doctype, it does not validate loose HTML style markup.', |
| 48 | + element: 'html', |
| 49 | + keyword: 'PUBLIC', |
| 50 | + publicIdentifier: '-//W3C//DTD XHTML 1.0 Transitional//EN', |
| 51 | + systemIdentifier: 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd', |
| 52 | + }, |
| 53 | +}; |
0 commit comments