File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -54809,12 +54809,50 @@ interface <dfn interface>HTMLSelectElement</dfn> : <span>HTMLElement</span> {
54809
54809
…</code></pre>
54810
54810
</div>
54811
54811
54812
+ <div class="example" id="example-customizable-select">
54813
+ <p>Here is an example which uses <code>div</code>, <code>legend</code>,
54814
+ <code>img</code>, <code>button</code>, and <code>selectedcontent</code> elements:</p>
54815
+
54816
+ <pre><code class="html"><select>
54817
+ <button>
54818
+ <selectedcontent></selectedcontent>
54819
+ </button>
54820
+ <div class="border">
54821
+ <optgroup>
54822
+ <legend>WHATWG Specifications</legend>
54823
+ <option>
54824
+ <img src="html.jpg" alt="">
54825
+ HTML
54826
+ </option>
54827
+ <option>
54828
+ <img src="dom.jpg" alt="">
54829
+ DOM
54830
+ </option>
54831
+ </optgroup>
54832
+ </div>
54833
+ <div class="border">
54834
+ <optgroup>
54835
+ <legend>W3C Specifications</legend>
54836
+ <option>
54837
+ <img src="forms.jpg" alt="">
54838
+ CSS Form Control Styling
54839
+ </option>
54840
+ <option>
54841
+ <img src="pseudo.jpg" alt="">
54842
+ CSS Pseudo-Elements
54843
+ </option>
54844
+ <optgroup>
54845
+ </div>
54846
+ </select></code></pre>
54847
+ </div>
54848
+
54812
54849
<p class="note" id="note-first-button-in-select-not-submit">The first child <code>button</code>
54813
54850
element as allowed by the content model of <code>select</code> is not a submit button. It is used
54814
54851
to replace the in-page rendering of the <code>select</code> element. Its form submission behavior
54815
54852
is prevented because it is <span>inert</span>.</p>
54816
54853
54817
54854
54855
+
54818
54856
<h4>The <dfn element><code>datalist</code></dfn> element</h4>
54819
54857
54820
54858
<dl class="element">
You can’t perform that action at this time.
0 commit comments