diff options
| author | kennytm <kennytm@gmail.com> | 2018-10-18 10:47:38 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2018-10-18 12:55:19 +0800 |
| commit | 7d2125238302d490a14be5805a45bd5762a4b64e (patch) | |
| tree | 93e65a249ca5b8fcff4e5325cdb44cbc0025d14e | |
| parent | 919f434136a00228fa293c47791fee7a6c6df547 (diff) | |
| parent | c55e1e69e32686b5d10fb5df650ec8cbee8b19fb (diff) | |
| download | rust-7d2125238302d490a14be5805a45bd5762a4b64e.tar.gz rust-7d2125238302d490a14be5805a45bd5762a4b64e.zip | |
Rollup merge of #55161 - akxcv:rustdoc/disable-spellcheck, r=QuietMisdreavus,GuillaumeGomez
[librustdoc] Disable spellcheck for search field This disables spellchecking for the search field in the rustdoc web interface. As someone who uses Safari to browse through Rust docs, spellchecking gets really annoying.
| -rw-r--r-- | src/librustdoc/html/layout.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustdoc/html/layout.rs b/src/librustdoc/html/layout.rs index 582f31ce7c7..6868c7707ad 100644 --- a/src/librustdoc/html/layout.rs +++ b/src/librustdoc/html/layout.rs @@ -83,6 +83,7 @@ pub fn render<T: fmt::Display, S: fmt::Display>( <div class=\"search-container\">\ <input class=\"search-input\" name=\"search\" \ autocomplete=\"off\" \ + spellcheck=\"false\" \ placeholder=\"Click or press ‘S’ to search, ‘?’ for more options…\" \ type=\"search\">\ <a id=\"settings-menu\" href=\"{root_path}settings.html\">\ |
