summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/conformance-checkers/html/elements/iframe/model-novalid.html
blob: c2db35294bb1d61bc7741da00ec754b60dd0af81 (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
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html>
<head>
  <meta charset=utf-8>
  <title>&lt;iframe&gt;</title>
</head>
<body>
  <!-- is structured inline -->
  <p><iframe
      name="frame1"
      src="uri"
      width="2"
      height="90"
      frameborder="0"
      scrolling="yes"
      class="class"
      lang="en"></iframe></p>

  <!-- is strictly inline -->
  <p><dfn><iframe
      name="frame1"
      src="uri"
      width="2"
      height="90"
      frameborder="1"
      scrolling="no"
      class="class"
      lang="en"></iframe></dfn></p>

  <!-- is block -->
  <iframe
      name="frame1"
      src="uri"
      width="2"
      height="90"
      frameborder="0"
      scrolling="auto"
      class="class"
      lang="en"></iframe>

  <!-- can contain inline while in inline context -->
  <p>paragraph
    <iframe>
        <em>some</em> <ul><li>inline</li></ul> content
    </iframe>
  </p>
  <!-- can contain strictly inline while in strictly inline context -->
  <p><dfn>strictly inline
    <iframe>
        <em>text</em>
    </iframe>
  </dfn></p>

  <!-- can contain blocks while in block context -->
  <iframe>
    <p>text</p>
  </iframe>

  <!-- can contain interactive if ancestor does not forbid it -->
  <p>paragraph
    <iframe>
      <a>link</a>
    </iframe>
  </p>
  <p><dfn>strictly inline
    <iframe>
      <a>link</a>
    </iframe>
  </dfn></p>
  <iframe>
    <p><a>link</a></p>
  </iframe>
</body>
</html>