summaryrefslogtreecommitdiffstats
path: root/tests/syntax-tests/source/HTML/test.html
blob: ccddb7972a3abdd964d97835dae21e6ce815bc20 (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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html SYSTEM "about:legacy-compat">
<html>
  <!-- Behold my erudite commentary -->
  <head>
    <title>Bat Syntax Test</title>
    <meta charset="utf-8"> 
    <script>
      const x = 'world';
      function logGreeting() {
        console.log(`Hello, ${x}`);
      }
    </script>
  </head>
  <body>
    <div>
      <h1>Here find some simple tags</h1>
      <br />
      <p center style="color: rebeccapurple;">
        Lorem <strong>ipsum</strong> dolor sit amet consectetur adipisicing
        elit. A quo, autem quaerat explicabo impedit mollitia amet molestiae
        nulla cum architecto ducimus itaque sit blanditiis quasi animi optio ab
        facilis nihil?
      </p>
      <p>
        Here are some escaped characters: &amp; (ampersand), &agrave; (a with grave), &#8470; (numero sign).
      </p>
    </div>
    <div>
      <h1>This is a form that demonstrates loose attribute formatting</h1>
      <form action="POST">
        <input
          disabled
          type="text"
          name="text input"
          id="specificTextInput"
          value="yes"
        />
      </form>
    </div>
    <div>
      <h1>A table with normal closing tags</h1>
      <table>
        <caption>
          Pet Features
        </caption>
        <colgroup>
          <col />
          <col />
          <col />
        </colgroup>
        <thead>
          <tr>
            <th>Feature</th>
            <th>Cat</th>
            <th>Dog</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>Tail</td>
            <td></td>
            <td></td>
          </tr>
          <tr>
            <td>Eyes</td>
            <td></td>
            <td></td>
          </tr>
          <tr>
            <td>Ears</td>
            <td></td>
            <td></td>
          </tr>
          <tr>
            <td>Barking</td>
            <td></td>
            <td></td>
          </tr>
          <tr>
            <td>Litter Box</td>
            <td></td>
            <td></td>
          </tr>
        </tbody>
      </table>
    </div>
    <div>
      <h1>A table without closing tags</h1>
      <table>
        <caption>Pet Features
        <colgroup><col><col><col>
        <thead>
          <tr> <th>Feature    <th>Cat <th>Dog
        <tbody>
          <tr> <td>Tail       <td><td><tr> <td>Eyes       <td><td><tr> <td>Ears       <td><td><tr> <td>Barking    <td>    <td><tr> <td>Litter Box <td><td>
        </tbody>
      </table>
    </div>
    <div>
      <h1>A math section with CDATA</h1>
      <p>You can add a string to a number, but this stringifies the number:</p>
      <math>
        <ms><![CDATA[a / b]]></ms>
        <mo>-</mo>
        <mn>7</mn>
        <mo>=</mo>
        <ms><![CDATA[a / b - 7]]></ms>
      </math>
    </div>
  </body>
</html>