summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/conformance-checkers/xhtml/elements/dl/032-isvalid.xhtml
blob: e943d5e21f98359979616d6b9984b39123fd0c57 (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
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Definition List: &lt;dl&gt; &lt;dt&gt; &lt;dd&gt;</title>
</head>
<body>
  <!-- is block -->
  <dl class="class" id="id" xml:lang="en">
    <dt class="class" id="id2" xml:lang="en">text</dt>
    <dd class="class" id="id3" xml:lang="en">text</dd>
  </dl>

  <!-- can be empty -->
  <dl></dl>
  <dl>
    <dt></dt>
    <dd></dd>
  </dl>

  <!-- multiple groups, but always (dt+,dd+) -->
  <dl>
    <dt>text</dt>
      <dd>more text</dd>
    <dt>text</dt>
      <dd>more text</dd>
      <dd>more text</dd>
    <dt>text</dt>
    <dt>text</dt>
    <dt>text</dt>
      <dd>more text</dd>
  </dl>

  <!-- dd can contain structured inline, dt strictly inline -->
  <dl>
    <dt>some <em>text</em></dt>
	<dd>more <pre>text</pre></dd>
  </dl>

  <!-- dd can contain blocks -->
  <dl>
    <dt>some <em>text</em></dt>
	<dd>
      <p>more</p>
      <p>text</p>
    </dd>
  </dl>

  <!-- can contain interactive -->
  <dl>
    <dt>some <a>text</a></dt>
	<dd>more <a>text</a></dd>
  </dl>
</body>
</html>