summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/dom/elements-text.js
blob: f71df48ee3c86afd9f7b634f3c390a9ccc9d4933 (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
59
60
61
62
63
// Up-to-date as of 2013-04-19.
var textElements = {
  a: {
    // Conforming
    target: "string",
    download: "string",
    ping: "string",
    rel: "string",
    relList: {type: "tokenlist", domAttrName: "rel"},
    hreflang: "string",
    type: "string",
    referrerPolicy: {type: "enum", keywords: ["", "no-referrer", "no-referrer-when-downgrade", "same-origin", "origin", "strict-origin", "origin-when-cross-origin", "strict-origin-when-cross-origin", "unsafe-url"]},

    // HTMLHyperlinkElementUtils
    href: "url",

    // Obsolete
    coords: "string",
    charset: "string",
    name: "string",
    rev: "string",
    shape: "string",
  },
  em: {},
  strong: {},
  small: {},
  s: {},
  cite: {},
  q: {
    cite: "url",
  },
  dfn: {},
  abbr: {},
  ruby: {},
  rt: {},
  rp: {},
  data: {
    value: "string",
  },
  time: {
    dateTime: "string",
  },
  code: {},
  var: {},
  samp: {},
  kbd: {},
  sub: {},
  sup: {},
  i: {},
  b: {},
  u: {},
  mark: {},
  bdi: {},
  bdo: {},
  span: {},
  br: {
    // Obsolete
    clear: "string",
  },
  wbr: {},
};

mergeElements(textElements);