semantic-forms 5.3.5 → 5.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/CONTRIBUTING.md +39 -7
- package/dist/semantic-forms.cjs +119 -52
- package/dist/semantic-forms.cjs.map +1 -1
- package/dist/semantic-forms.css +498 -178
- package/dist/semantic-forms.css.map +1 -1
- package/dist/semantic-forms.js +153 -80
- package/dist/semantic-forms.js.map +1 -1
- package/dist/semantic-forms.min.js +1 -1
- package/dist/semantic-forms.min.js.map +1 -1
- package/dist/semantic-forms.min.mjs +1 -1
- package/dist/semantic-forms.min.mjs.map +1 -1
- package/dist/semantic-forms.mjs +120 -53
- package/dist/semantic-forms.mjs.map +1 -1
- package/docs/statics/css/semantic-forms-styles.scss +14 -1
- package/docs/statics/js/semantic-forms-demo.js +16 -0
- package/docs/statics/js/semantic-forms-main.js +3 -2
- package/docs/statics/pages/buttons.html +98 -0
- package/docs/statics/pages/checkboxes.html +130 -0
- package/docs/statics/pages/fullDemo.html +1078 -821
- package/docs/statics/pages/inputs.html +384 -0
- package/docs/statics/pages/layout.html +521 -0
- package/docs/statics/pages/layouts/main.html +9 -1
- package/docs/statics/pages/theming.html +39 -0
- package/docs/statics/pages/usage.html +17 -799
- package/package.json +27 -13
- package/semanticForms.js +33 -8
- package/semanticForms.scss +15 -5
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
<include src="layouts/main">
|
|
2
|
+
<arg pageTitle>Semantic Forms — Inputs</arg>
|
|
3
|
+
<arg pageContent>
|
|
4
|
+
<article>
|
|
5
|
+
<p><a href="/usage.html">← Usage</a></p>
|
|
6
|
+
|
|
7
|
+
<h2 id="floatlabel">Float label inputs</h2>
|
|
8
|
+
|
|
9
|
+
<p>The float label input pattern is notoriously difficult to implement in a fashion that doesn't degrade HTML semantics or accessibility. This pattern library implements a solution that solves that problem. Your label doesn't need to be a sibling of your input like with other implementations. This implementation also has a custom clear button for each input.</p>
|
|
10
|
+
|
|
11
|
+
<h3 id="floatlabelex">Example</h3>
|
|
12
|
+
|
|
13
|
+
<pre><code class='language-html' lang='html'><escape>
|
|
14
|
+
<form class="semanticForms">
|
|
15
|
+
<dl>
|
|
16
|
+
<div>
|
|
17
|
+
<dt><label for="name">Name</label></dt>
|
|
18
|
+
<dd><input id="name" name="name" type="text" placeholder="e.g. John Smith"></dd>
|
|
19
|
+
</div>
|
|
20
|
+
</dl>
|
|
21
|
+
</form>
|
|
22
|
+
</escape></code></pre>
|
|
23
|
+
|
|
24
|
+
<form class="semanticForms">
|
|
25
|
+
<dl>
|
|
26
|
+
<div>
|
|
27
|
+
<dt><label for="name">Name</label></dt>
|
|
28
|
+
<dd><input id="name" name="name" type="text" placeholder="e.g. John Smith"></dd>
|
|
29
|
+
</div>
|
|
30
|
+
</dl>
|
|
31
|
+
</form>
|
|
32
|
+
|
|
33
|
+
<aside><p><em>Note: Although wrapping the input and label elements in a <code><!--#<div>--></code> is not required, it is highly recommended as it reduces <a href="https://en.wikipedia.org/wiki/Flash_of_unstyled_content"><abbr>FOUC</abbr></a>. This is because the <code><!--#<div>--></code> is required for proper styling. If you omit it, it will be added with JavaScript, which is what causes the FOUC. Notably, we considered using a <code><!--#<dfn>--></code> element for this instead for grouping the <code><!--#<dt>--></code> and <code><!--#<dd>--></code>, since <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dfn">semantically it would seem to be a natural fit for this purpose</a>, but HTML validation fails if you do that because <code><!--#<dfn>--></code> is not allowed as a child of <code><!--#<dl>--></code>, which is unfortunate. Hence, why we must unavoidably contribute to <a href="https://curly-braces-merch.printify.me/product/11918091/div-soup-t-shirt-dark">div soup.</a> But hey, it <a href="https://curly-braces-merch.printify.me/product/11808761/divs-and-spans-t-shirt-dark">could be worse</a>!</em></p></aside>
|
|
34
|
+
|
|
35
|
+
<h3 id="floatlabelextextarea">Or with a <code><!--#<textarea>--></code></h3>
|
|
36
|
+
|
|
37
|
+
<pre><code class='language-html' lang='html'><escape>
|
|
38
|
+
<form class="semanticForms">
|
|
39
|
+
<dl>
|
|
40
|
+
<div>
|
|
41
|
+
<dt><label for="textarea">Textarea</label></dt>
|
|
42
|
+
<dd><textarea id="textarea" name="textarea" rows="5" cols="50" placeholder="e.g. Long string of text"></textarea></dd>
|
|
43
|
+
</div>
|
|
44
|
+
</dl>
|
|
45
|
+
</form>
|
|
46
|
+
</escape></code></pre>
|
|
47
|
+
|
|
48
|
+
<form class="semanticForms">
|
|
49
|
+
<dl>
|
|
50
|
+
<div>
|
|
51
|
+
<dt><label for="textarea">Textarea</label></dt>
|
|
52
|
+
<dd><textarea id="textarea" name="textarea" rows="5" cols="50" placeholder="e.g. Long string of text"></textarea></dd>
|
|
53
|
+
</div>
|
|
54
|
+
</dl>
|
|
55
|
+
</form>
|
|
56
|
+
|
|
57
|
+
<aside><p><em>Note: <code><!--#<textarea>--></code> elements autosize when you type in them. This can be disabled with the <code>data-disable-autosize</code> attribute. The row count can also be limited with the <code>data-max-rows</code> attribute.</em></p></aside>
|
|
58
|
+
|
|
59
|
+
<h3 id="addhelptext">Add help text</h3>
|
|
60
|
+
|
|
61
|
+
<p>Include a label in the <code><!--#<dd>--></code> element with a matching <code>for</code> attribute to place help text beneath the input:</p>
|
|
62
|
+
|
|
63
|
+
<pre><code class='language-html' lang='html'><escape>
|
|
64
|
+
<form class="semanticForms" method="post">
|
|
65
|
+
<dl>
|
|
66
|
+
<div>
|
|
67
|
+
<dt><label for="password">Password</label></dt>
|
|
68
|
+
<dd>
|
|
69
|
+
<input id="password" name="password" type="password" placeholder="Enter a password" minlength="8" required autocomplete="off">
|
|
70
|
+
<label for="password">Must be at least 8 characters long.</label>
|
|
71
|
+
</dd>
|
|
72
|
+
</div>
|
|
73
|
+
</dl>
|
|
74
|
+
</form>
|
|
75
|
+
</escape></code></pre>
|
|
76
|
+
|
|
77
|
+
<form class="semanticForms" method="post">
|
|
78
|
+
<dl>
|
|
79
|
+
<div>
|
|
80
|
+
<dt><label for="password">Password</label></dt>
|
|
81
|
+
<dd>
|
|
82
|
+
<input id="password" name="password" type="password" placeholder="Enter a password" minlength="8" required autocomplete="off">
|
|
83
|
+
<label for="password">Must be at least 8 characters long.</label>
|
|
84
|
+
</dd>
|
|
85
|
+
</div>
|
|
86
|
+
</dl>
|
|
87
|
+
</form>
|
|
88
|
+
|
|
89
|
+
<h3 id="inlinebuttons">Add inline buttons</h3>
|
|
90
|
+
|
|
91
|
+
<p>Include a button or input with the type "submit" in the <code><!--#<dd>--></code> element to place it next to the input:</p>
|
|
92
|
+
|
|
93
|
+
<pre><code class='language-html' lang='html'><escape>
|
|
94
|
+
<form class="semanticForms" method="post">
|
|
95
|
+
<dl>
|
|
96
|
+
<div>
|
|
97
|
+
<dt><label for="email">Email address</label></dt>
|
|
98
|
+
<dd>
|
|
99
|
+
<input id="email" name="email" type="email" placeholder="Enter an email address" autocomplete="off">
|
|
100
|
+
<button type="submit">Sign up</button>
|
|
101
|
+
</dd>
|
|
102
|
+
</div>
|
|
103
|
+
</dl>
|
|
104
|
+
</form>
|
|
105
|
+
</escape></code></pre>
|
|
106
|
+
|
|
107
|
+
<form class="semanticForms" method="post">
|
|
108
|
+
<dl>
|
|
109
|
+
<div>
|
|
110
|
+
<dt><label for="email">Email address</label></dt>
|
|
111
|
+
<dd>
|
|
112
|
+
<input id="email" name="email" type="email" placeholder="Enter an email address" autocomplete="off">
|
|
113
|
+
<button type="submit">Sign up!</button>
|
|
114
|
+
</dd>
|
|
115
|
+
</div>
|
|
116
|
+
</dl>
|
|
117
|
+
</form>
|
|
118
|
+
|
|
119
|
+
<h3 id="keyboardshortcuts">Add custom keyboard shortcuts</h3>
|
|
120
|
+
|
|
121
|
+
<p>Add keyboard shortcuts on specific inputs to focus them by adding a <code>data-focus-key</code> attribute and optional <code>data-focus-modifier</code> attribute.</p>
|
|
122
|
+
|
|
123
|
+
<pre><code class='language-html' lang='html'><escape>
|
|
124
|
+
<form class="semanticForms" method="post">
|
|
125
|
+
<dl>
|
|
126
|
+
<div>
|
|
127
|
+
<dt><label for="focus-1">Focus me!</label></dt>
|
|
128
|
+
<dd><input id="focus-1" name="focus-1" type="text" data-focus-key="Y"></dd>
|
|
129
|
+
</div>
|
|
130
|
+
|
|
131
|
+
<!-- change the modifier -->
|
|
132
|
+
<div>
|
|
133
|
+
<dt><label for="focus-2">Focus me!</label></dt>
|
|
134
|
+
<dd><input id="focus-2" name="focus-2" type="text" data-focus-key="Y" data-focus-modifier="alt"></dd>
|
|
135
|
+
</div>
|
|
136
|
+
|
|
137
|
+
<!-- specify modifier by OS -->
|
|
138
|
+
<div>
|
|
139
|
+
<dt><label for="focus-2">Focus me!</label></dt>
|
|
140
|
+
<dd><input id="focus-2" name="focus-2" type="text" data-focus-key="Z" data-focus-modifier-win="alt" data-focus-modifier-linux="meta" data-focus-modifier-mac="cmd"></dd>
|
|
141
|
+
</div>
|
|
142
|
+
</dl>
|
|
143
|
+
</form>
|
|
144
|
+
</escape></code></pre>
|
|
145
|
+
|
|
146
|
+
<form class="semanticForms" method="post">
|
|
147
|
+
<dl>
|
|
148
|
+
<div>
|
|
149
|
+
<dt><label for="focus-1">Focus me!</label></dt>
|
|
150
|
+
<dd><input id="focus-1" name="focus-1" type="text" data-focus-key="Y"></dd>
|
|
151
|
+
</div>
|
|
152
|
+
|
|
153
|
+
<!-- change the modifier -->
|
|
154
|
+
<div>
|
|
155
|
+
<dt><label for="focus-2">Focus me!</label></dt>
|
|
156
|
+
<dd><input id="focus-2" name="focus-2" type="text" data-focus-key="Y" data-focus-modifier="alt"></dd>
|
|
157
|
+
</div>
|
|
158
|
+
|
|
159
|
+
<!-- specify modifier by OS -->
|
|
160
|
+
<div>
|
|
161
|
+
<dt><label for="focus-3">Focus me!</label></dt>
|
|
162
|
+
<dd><input id="focus-3" name="focus-3" type="text" data-focus-key="Z" data-focus-modifier-win="alt" data-focus-modifier-linux="meta" data-focus-modifier-max="cmd"></dd>
|
|
163
|
+
</div>
|
|
164
|
+
</dl>
|
|
165
|
+
</form>
|
|
166
|
+
|
|
167
|
+
<ul>
|
|
168
|
+
<li><p>The focus key should be a single character, and is not case-sensitive. If multiple characters are detected, only the first one will be used. Special characters (!, @, #, etc.) will require <kbd>Shift</kbd> to be pressed with the keyboard shortcut.</p></li>
|
|
169
|
+
<li>
|
|
170
|
+
<p>The modifier key value may be "metactrl," "ctrl," "cmd," "meta," or "alt." The default value is "metactrl" and will automatically be applied if the <code>data-focus-modifier</code> attribute is not present.</p>
|
|
171
|
+
<ul>
|
|
172
|
+
<li>Some combinations are unable to be used due to conflicts with browser and OS keyboard shortcuts. See <a href="https://rooseveltframework.org/docs/semantic-forms/latest/reservedKeyboardShortcuts">reserved keyboard shortcuts</a> for a full overview.</li>
|
|
173
|
+
<li><p>OS-specific modifier keys can be set with <code>data-focus-modifier-win</code> (Windows), <code>data-focus-modifier-linux</code> (Linux) and <code>data-focus-modifier-mac</code> (Mac).</p></li>
|
|
174
|
+
<li><p>Due to a limited range of available shortcuts, the "Start" (win) key on Windows will be replaced with "Ctrl."</p></li>
|
|
175
|
+
</ul>
|
|
176
|
+
</li>
|
|
177
|
+
</ul>
|
|
178
|
+
|
|
179
|
+
<h3 id="custominputfields">Customizing input fields</h3>
|
|
180
|
+
|
|
181
|
+
<p>By default, input fields will display an X icon to clear the text and password fields will also display a show/hide toggle for displaying the password in plain text. You can customize this behavior as follows:</p>
|
|
182
|
+
|
|
183
|
+
<ul>
|
|
184
|
+
<li><p>Customize the hover text of the clear field button by applying a <code>data-clear-field-text="your text"</code> attribute to the input.</p></li>
|
|
185
|
+
<li><p>Customize the hover text of the show password button by applying a <code>data-show-password-text="your text"</code> attribute to the input.</p></li>
|
|
186
|
+
<li><p>Customize the hover text of the hide password button by applying a <code>data-hide-password-text="your text"</code> attribute to the input.</p></li>
|
|
187
|
+
<li><p>Prevent the show/hide toggle from appearing on password fields by applying a <code>data-no-reveal</code> attribute to the input.</p></li>
|
|
188
|
+
<li>
|
|
189
|
+
<p>Show a help text icon next to labels of inputs that contain a <code>title</code> attribute by applying a <code>data-show-help-icon</code> attribute to the label.</p>
|
|
190
|
+
<ul>
|
|
191
|
+
<li>Note that checkboxes and radios should have a <code>title</code> attribute on the label instead of the inputs.</li>
|
|
192
|
+
</ul>
|
|
193
|
+
</li>
|
|
194
|
+
<li><p>Allow fixed-width inputs to grow/shrink to their longest content by applying a <code>data-max-content</code> attribute to the input.</p></li>
|
|
195
|
+
<li>
|
|
196
|
+
<p>Create a one-line text input that grows in height by applying a <code>data-auto-grow</code> attribute to a <code>textarea</code> or <code>input</code> (with type "text") element.</p>
|
|
197
|
+
<ul>
|
|
198
|
+
<li>Note that pressing <kbd>Enter</kbd> with this attribute will attempt to submit the form. Use <kbd>Shift + Enter</kbd> to add new lines.</li>
|
|
199
|
+
</ul>
|
|
200
|
+
</li>
|
|
201
|
+
</ul>
|
|
202
|
+
|
|
203
|
+
<p>You can also disable float labels on a per-field basis with the <code>no-float-label</code> class:</p>
|
|
204
|
+
|
|
205
|
+
<pre><code class='language-html' lang='html'><escape>
|
|
206
|
+
<form class="semanticForms">
|
|
207
|
+
<dl>
|
|
208
|
+
<div>
|
|
209
|
+
<dt><label for="search-field">Search</label></dt>
|
|
210
|
+
<dd><input id="search-field" name="search-field" type="search" placeholder="e.g. cool stuff" class="no-float-label"></dd>
|
|
211
|
+
</div>
|
|
212
|
+
</dl>
|
|
213
|
+
</form>
|
|
214
|
+
</escape></code></pre>
|
|
215
|
+
|
|
216
|
+
<form class="semanticForms">
|
|
217
|
+
<dl>
|
|
218
|
+
<div>
|
|
219
|
+
<dt><label for="search-field">Search</label></dt>
|
|
220
|
+
<dd><input id="search-field" name="search-field" type="search" placeholder="e.g. cool stuff" class="no-float-label"></dd>
|
|
221
|
+
</div>
|
|
222
|
+
</dl>
|
|
223
|
+
</form>
|
|
224
|
+
|
|
225
|
+
<aside><p><em>Note: fields with the <code>readonly</code> or <code>disabled</code> attribute do not get a clear button, since it would empty a field the visitor is not meant to be able to change.</em></p></aside>
|
|
226
|
+
|
|
227
|
+
<h2 id="selects">Selects</h2>
|
|
228
|
+
|
|
229
|
+
<p>A <code><!--#<select>--></code> takes the same markup as any other field and is styled to match, with the browser's dropdown arrow replaced by the graphic in the <code>--semanticFormsSelectIcon</code> variable. A <code>multiple</code> select is styled as a scrolling list instead, and keeps its label above it rather than floating.</p>
|
|
230
|
+
|
|
231
|
+
<pre><code class='language-html' lang='html'><escape>
|
|
232
|
+
<form class="semanticForms">
|
|
233
|
+
<dl>
|
|
234
|
+
<div>
|
|
235
|
+
<dt><label for="select-ex-single">Select box</label></dt>
|
|
236
|
+
<dd>
|
|
237
|
+
<select id="select-ex-single" name="select-ex-single">
|
|
238
|
+
<option>One</option>
|
|
239
|
+
<option>Two</option>
|
|
240
|
+
</select>
|
|
241
|
+
</dd>
|
|
242
|
+
</div>
|
|
243
|
+
|
|
244
|
+
<div>
|
|
245
|
+
<dt><label for="select-ex-multiple">Multiple select</label></dt>
|
|
246
|
+
<dd>
|
|
247
|
+
<select id="select-ex-multiple" name="select-ex-multiple" multiple>
|
|
248
|
+
<option>One</option>
|
|
249
|
+
<option>Two</option>
|
|
250
|
+
<option>Three</option>
|
|
251
|
+
</select>
|
|
252
|
+
</dd>
|
|
253
|
+
</div>
|
|
254
|
+
</dl>
|
|
255
|
+
</form>
|
|
256
|
+
</escape></code></pre>
|
|
257
|
+
|
|
258
|
+
<form class="semanticForms">
|
|
259
|
+
<dl>
|
|
260
|
+
<div>
|
|
261
|
+
<dt><label for="select-ex-single">Select box</label></dt>
|
|
262
|
+
<dd>
|
|
263
|
+
<select id="select-ex-single" name="select-ex-single">
|
|
264
|
+
<option>One</option>
|
|
265
|
+
<option>Two</option>
|
|
266
|
+
</select>
|
|
267
|
+
</dd>
|
|
268
|
+
</div>
|
|
269
|
+
|
|
270
|
+
<div>
|
|
271
|
+
<dt><label for="select-ex-multiple">Multiple select</label></dt>
|
|
272
|
+
<dd>
|
|
273
|
+
<select id="select-ex-multiple" name="select-ex-multiple" multiple>
|
|
274
|
+
<option>One</option>
|
|
275
|
+
<option>Two</option>
|
|
276
|
+
<option>Three</option>
|
|
277
|
+
</select>
|
|
278
|
+
</dd>
|
|
279
|
+
</div>
|
|
280
|
+
</dl>
|
|
281
|
+
</form>
|
|
282
|
+
|
|
283
|
+
<h2 id="validationstyles">Validation styles</h2>
|
|
284
|
+
|
|
285
|
+
<p>Inputs with the <code>required</code> attribute will result in a visual indicator (*) being added to its label. You can disable this indicator with the <code>data-no-asterisk</code> attribute on the label element:</p>
|
|
286
|
+
|
|
287
|
+
<pre><code class='language-html' lang='html'><escape>
|
|
288
|
+
<form class="semanticForms">
|
|
289
|
+
<dl>
|
|
290
|
+
<div>
|
|
291
|
+
<dt><label for="input" data-no-asterisk>Input label</label></dt>
|
|
292
|
+
<dd><input type="text" name="input" id="input" required>
|
|
293
|
+
</div>
|
|
294
|
+
</dl>
|
|
295
|
+
</form>
|
|
296
|
+
</escape></code></pre>
|
|
297
|
+
|
|
298
|
+
<form class="semanticForms">
|
|
299
|
+
<dl>
|
|
300
|
+
<div>
|
|
301
|
+
<dt><label for="input" data-no-asterisk>Input label</label></dt>
|
|
302
|
+
<dd><input type="text" name="input" id="input" required>
|
|
303
|
+
</div>
|
|
304
|
+
</dl>
|
|
305
|
+
</form>
|
|
306
|
+
|
|
307
|
+
<p>You can set a paragraph of text below a field to only appear when a field is invalid with the <code>data-invalid-text</code> attribute:</p>
|
|
308
|
+
|
|
309
|
+
<pre><code class='language-html' lang='html'><escape>
|
|
310
|
+
<form class="semanticForms" method="post">
|
|
311
|
+
<dl>
|
|
312
|
+
<div>
|
|
313
|
+
<dt><label for="password_validation">Password label</label></dt>
|
|
314
|
+
<dd>
|
|
315
|
+
<input type="password" name="password" id="password_validation" minlength="8" autocomplete="off">
|
|
316
|
+
<p data-invalid-text>Password must be at least 8 characters long.</p>
|
|
317
|
+
</dd>
|
|
318
|
+
</div>
|
|
319
|
+
</dl>
|
|
320
|
+
</form>
|
|
321
|
+
</escape></code></pre>
|
|
322
|
+
|
|
323
|
+
<form class="semanticForms" method="post">
|
|
324
|
+
<dl>
|
|
325
|
+
<div>
|
|
326
|
+
<dt><label for="password_validation">Password label</label></dt>
|
|
327
|
+
<dd>
|
|
328
|
+
<input type="password" name="password" id="password_validation" minlength="8" autocomplete="off">
|
|
329
|
+
<p data-invalid-text>Password must be at least 8 characters long.</p>
|
|
330
|
+
</dd>
|
|
331
|
+
</div>
|
|
332
|
+
</dl>
|
|
333
|
+
</form>
|
|
334
|
+
|
|
335
|
+
<p>You can adjust the tooltip text of the asterisk with the <code>data-asterisk-text</code> attribute:</p>
|
|
336
|
+
|
|
337
|
+
<pre><code class='language-html' lang='html'><escape>
|
|
338
|
+
<form class="semanticForms">
|
|
339
|
+
<dl>
|
|
340
|
+
<div>
|
|
341
|
+
<dt><label for="input_validation" data-asterisk-text="This is a custom tooltip.">Input label</label></dt>
|
|
342
|
+
<dd><input type="text" name="input" id="input_validation" required>
|
|
343
|
+
</div>
|
|
344
|
+
</dl>
|
|
345
|
+
</form>
|
|
346
|
+
</escape></code></pre>
|
|
347
|
+
|
|
348
|
+
<form class="semanticForms">
|
|
349
|
+
<dl>
|
|
350
|
+
<div>
|
|
351
|
+
<dt><label for="input_validation" data-asterisk-text="This is a custom tooltip.">Input label</label></dt>
|
|
352
|
+
<dd><input type="text" name="input" id="input_validation" required>
|
|
353
|
+
</div>
|
|
354
|
+
</dl>
|
|
355
|
+
</form>
|
|
356
|
+
|
|
357
|
+
<h2 id="rangeInputsThatDisplayValues">Range inputs that display values</h2>
|
|
358
|
+
|
|
359
|
+
<p>Add a <code>data-display-value</code> attribute to any <code><!--#<input type="range">--></code> element to make its value display on the label:</p>
|
|
360
|
+
|
|
361
|
+
<pre><code class='language-html' lang='html'><escape>
|
|
362
|
+
<form class="semanticForms">
|
|
363
|
+
<dl>
|
|
364
|
+
<div>
|
|
365
|
+
<dt><label for="rangeValue">Range value</label></dt>
|
|
366
|
+
<dd><input id="rangeValue" name="rangeValue" type="range" data-display-value></dd>
|
|
367
|
+
</div>
|
|
368
|
+
</dl>
|
|
369
|
+
</form>
|
|
370
|
+
</escape></code></pre>
|
|
371
|
+
|
|
372
|
+
<form class="semanticForms">
|
|
373
|
+
<dl>
|
|
374
|
+
<div>
|
|
375
|
+
<dt><label for="rangeValue">Range value</label></dt>
|
|
376
|
+
<dd><input id="rangeValue" name="rangeValue" type="range" data-display-value></dd>
|
|
377
|
+
</div>
|
|
378
|
+
</dl>
|
|
379
|
+
</form>
|
|
380
|
+
|
|
381
|
+
<p>Earlier versions asked for this with a class of <code>displayValue</code>, which still works.</p>
|
|
382
|
+
</article>
|
|
383
|
+
</arg>
|
|
384
|
+
</include>
|