summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/dom/elements-obsolete.js
blob: 3b6ae363bba9c4d29581b8daac01e4a4331b6d0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Up-to-date as of 2013-04-13.
var obsoleteElements = {
  // https://html.spec.whatwg.org/multipage/#the-applet-element
  applet: {
    align: "string",
    alt: "string",
    archive: "string",
    code: "string",
    codeBase: "url",
    height: "string",
    hspace: "unsigned long",
    name: "string",
    object: "url",
    vspace: "unsigned long",
    width: "string",
  },
  // https://html.spec.whatwg.org/multipage/#the-marquee-element-2
  marquee: {
    behavior: "string",
    bgColor: "string",
    direction: "string",
    height: "string",
    hspace: "unsigned long",
    scrollAmount: {type: "unsigned long", defaultVal: 6},
    scrollDelay: {type: "unsigned long", defaultVal: 85},
    trueSpeed: "boolean",
    vspace: "unsigned long",
    width: "string",
  },
  // https://html.spec.whatwg.org/multipage/#frameset
  frameset: {
    cols: "string",
    rows: "string",
  },
  // https://html.spec.whatwg.org/multipage/#frame
  frame: {
    name: "string",
    scrolling: "string",
    src: "url",
    frameBorder: "string",
    longDesc: "url",
    noResize: "boolean",
    marginHeight: {type: "string", treatNullAsEmptyString: true},
    marginWidth: {type: "string", treatNullAsEmptyString: true},
  },
  // https://html.spec.whatwg.org/multipage/#htmldirectoryelement
  dir: {
    compact: "boolean",
  },
  // https://html.spec.whatwg.org/multipage/#htmlfontelement
  font: {
    color: {type: "string", treatNullAsEmptyString: true},
    face: "string",
    size: "string",
  },
};

mergeElements(obsoleteElements);