Created
June 4, 2021 12:40
-
-
Save peterbe/83e4b9d767e9a5d16d97ff6e1651512a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="header-search"> | |
<form | |
action="/en-US/search" | |
class="search-widget" | |
role="search" | |
aria-haspopup="listbox" | |
aria-owns="downshift-0-menu" | |
aria-expanded="false" | |
id="nav-main-search" | |
> | |
<label for="main-q" class="visually-hidden">Search MDN</label | |
><input | |
id="main-q" | |
aria-autocomplete="list" | |
aria-controls="downshift-0-menu" | |
aria-labelledby="downshift-0-label" | |
autocomplete="off" | |
type="search" | |
class="search-input-field" | |
name="q" | |
placeholder='Site search... (Press "/" to focus)' | |
value="" | |
/><input | |
type="submit" | |
class="ghost search-button" | |
aria-label="Search" | |
value="" | |
/> | |
<div | |
id="downshift-0-menu" | |
role="listbox" | |
aria-labelledby="downshift-0-label" | |
></div> | |
</form> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="header-search"> | |
<form action="/en-US/search" class="search-form" role="search"> | |
<label for="main-q" class="visually-hidden">Search MDN</label | |
><input | |
type="search" | |
name="q" | |
id="main-q" | |
class="search-input-field" | |
placeholder='Site search... (Press "/" to focus)' | |
pattern="(.|\s)*\S(.|\s)*" | |
required="" | |
value="" | |
/><input | |
type="submit" | |
class="ghost search-button" | |
aria-label="Search" | |
value="" | |
/> | |
</form> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment