File: nwmatcher.html

package info (click to toggle)
node-css-select 5.1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 856 kB
  • sloc: makefile: 6; xml: 1
file content (165 lines) | stat: -rw-r--r-- 6,550 bytes parent folder | download | duplicates (3)
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>NWMatcher Tests</title>
        <link
            rel="stylesheet"
            type="text/css"
            href="assets/style.css"
            media="screen"
        />
        <script type="text/javascript" src="../../src/nwmatcher.js"></script>
        <script type="text/javascript" src="scotch.js"></script>
        <script type="text/javascript" src="test.js"></script>
    </head>
    <body>
        <div id="container">
            <div id="testlog" class="log"></div>
            <!-- Test elements -->
            <div id="fixtures" style="display: none">
                <h1 class="title">Some title <span>here</span></h1>
                <p id="p" class="first summary">
                    <strong id="strong">This</strong> is a short blurb
                    <a
                        id="link_1"
                        class="first internal"
                        rel="external nofollow"
                        href="#"
                        >with a <em id="em2">link</em></a
                    >
                    or
                    <a id="link_2" class="internal highlight" href="#"
                        ><em id="em">two</em></a
                    >. Or
                    <cite id="with_title" title="hello world!">a citation</cite
                    >.
                </p>
                <ul id="list">
                    <li id="item_1" class="first">
                        <a id="link_3" href="#" class="external"
                            ><span id="span">Another link</span></a
                        >
                    </li>
                    <li id="item_2">Some text</li>
                    <li id="item_3" xml:lang="es-us" class="">Otra cosa</li>
                </ul>

                <!-- This form has a field with the name "id"; its "ID" property won't be "troubleForm" -->
                <form id="troubleForm" action="">
                    <p>
                        <input type="hidden" name="id" id="hidden" />
                        <input
                            type="text"
                            name="disabled_text_field"
                            id="disabled_text_field"
                            disabled="disabled"
                        />
                        <input
                            type="text"
                            name="enabled_text_field"
                            id="enabled_text_field"
                        />
                        <input
                            type="checkbox"
                            name="checkboxes"
                            id="checked_box"
                            checked="checked"
                            value="Checked"
                        />
                        <input
                            type="checkbox"
                            name="checkboxes"
                            id="unchecked_box"
                            value="Unchecked"
                        />
                        <input
                            type="radio"
                            name="radiobuttons"
                            id="checked_radio"
                            checked="checked"
                            value="Checked"
                        />
                        <input
                            type="radio"
                            name="radiobuttons"
                            id="unchecked_radio"
                            value="Unchecked"
                        />
                    </p>
                </form>

                <form id="troubleForm2" action="">
                    <p>
                        <input
                            type="checkbox"
                            name="brackets[5][]"
                            id="chk_1"
                            checked="checked"
                            value="1"
                        />
                        <input
                            type="checkbox"
                            name="brackets[5][]"
                            id="chk_2"
                            value="2"
                        />
                    </p>
                </form>

                <div id="level1">
                    <span id="level2_1">
                        <span id="level3_1"></span>
                        <!-- This comment should be ignored by the adjacent selector -->
                        <span id="level3_2"></span>
                    </span>
                    <span id="level2_2">
                        <em id="level_only_child"> </em>
                    </span>
                    <div id="level2_3"></div>
                </div>
                <!-- #level1 -->

                <div id="dupContainer">
                    <span id="dupL1" class="span_foo span_bar">
                        <span id="dupL2">
                            <span id="dupL3">
                                <span id="dupL4">
                                    <span id="dupL5"></span>
                                </span>
                            </span>
                        </span>
                    </span>
                </div>
                <!-- #dupContainer -->

                <div id="grandfather">
                    grandfather
                    <div id="father" class="brothers men">
                        father
                        <div id="son">son</div>
                    </div>
                    <div id="uncle" class="brothers men">uncle</div>
                </div>

                <form id="commaParent" title="commas,are,good" action="">
                    <p>
                        <input
                            type="hidden"
                            id="commaChild"
                            name="foo"
                            value="#commaOne,#commaTwo"
                        />
                        <input
                            type="hidden"
                            id="commaTwo"
                            name="foo2"
                            value="oops"
                        />
                    </p>
                </form>
                <div id="counted_container"><div class="is_counted"></div></div>
            </div>
        </div>
    </body>
</html>