summaryrefslogtreecommitdiff
path: root/devdocs/html/global_attributes%2Fspellcheck.html
diff options
context:
space:
mode:
Diffstat (limited to 'devdocs/html/global_attributes%2Fspellcheck.html')
-rw-r--r--devdocs/html/global_attributes%2Fspellcheck.html62
1 files changed, 62 insertions, 0 deletions
diff --git a/devdocs/html/global_attributes%2Fspellcheck.html b/devdocs/html/global_attributes%2Fspellcheck.html
new file mode 100644
index 00000000..43756684
--- /dev/null
+++ b/devdocs/html/global_attributes%2Fspellcheck.html
@@ -0,0 +1,62 @@
+<header><h1>spellcheck</h1></header><div class="section-content"><p>The <code>spellcheck</code> <a href="../global_attributes">global attribute</a> is an <a href="https://developer.mozilla.org/en-US/docs/Glossary/Enumerated">enumerated</a> attribute that defines whether the element may be checked for spelling errors.</p></div>
+<h2 id="try_it">Try it</h2>
+<div class="section-content">
+<iframe class="interactive is-tabbed-shorter-height" height="200" src="https://interactive-examples.mdn.mozilla.net/pages/tabbed/attribute-spellcheck.html" title="MDN Web Docs Interactive Example" loading="lazy"></iframe> <p>It may have the following values:</p> <ul> <li>empty string or <code>true</code>, which indicates that the element should be, if possible, checked for spelling errors;</li> <li>
+<code>false</code>, which indicates that the element should not be checked for spelling errors.</li> </ul> <p>If this attribute is not set, its default value is element-type and browser-defined. This default value may also be <em>inherited</em>, which means that the element content will be checked for spelling errors only if its nearest ancestor has a <em>spellcheck</em> state of <code>true</code>.</p> <p>This attribute is merely a hint for the browser: browsers are not required to check for spelling errors. Typically non-editable elements are not checked for spelling errors, even if the <code>spellcheck</code> attribute is set to <code>true</code> and the browser supports spellchecking.</p>
+</div>
+<h2 id="security_and_privacy_concerns">Security and privacy concerns</h2>
+<div class="section-content">
+<p> Using spellchecking can have consequences for users' security and privacy. The specification does not regulate <em>how</em> spellchecking is done and the content of the element may be sent to a third party for spellchecking results (see <a href="https://www.otto-js.com/news/article/chrome-and-edge-enhanced-spellcheck-features-expose-pii-even-your-passwords" target="_blank">enhanced spellchecking and "spell-jacking"</a>). </p> <p>You should consider setting <code>spellcheck</code> to <code>false</code> for elements that can contain sensitive information.</p>
+</div>
+<h2 id="specifications">Specifications</h2>
+<div class="_table"><table class="standard-table">
+<thead><tr><th scope="col">Specification</th></tr></thead>
+<tbody><tr><td><a href="https://html.spec.whatwg.org/multipage/interaction.html#attr-spellcheck">HTML Standard <br><small># attr-spellcheck</small></a></td></tr></tbody>
+</table></div>
+<h2 id="browser_compatibility">Browser compatibility</h2>
+<div class="_table"><table>
+<thead>
+<tr id="bct-browser-type">
+<th></th>
+<th colspan="6">Desktop</th>
+<th colspan="6">Mobile</th>
+</tr>
+<tr id="bct-browsers">
+<th></th>
+<th>Chrome</th>
+<th>Edge</th>
+<th>Firefox</th>
+<th>Internet Explorer</th>
+<th>Opera</th>
+<th>Safari</th>
+<th>WebView Android</th>
+<th>Chrome Android</th>
+<th>Firefox for Android</th>
+<th>Opera Android</th>
+<th>Safari on IOS</th>
+<th>Samsung Internet</th>
+</tr>
+</thead>
+<tbody><tr>
+<th><code>spellcheck</code></th>
+<td class="bc-supports-yes">9</td>
+<td class="bc-supports-yes">12</td>
+<td class="bc-supports-yes">Yes</td>
+<td class="bc-supports-yes">11</td>
+<td class="bc-supports-yes">Yes</td>
+<td class="bc-supports-yes">Yes</td>
+<td class="bc-supports-yes">47</td>
+<td class="bc-supports-yes">47</td>
+<td class="bc-supports-yes">57</td>
+<td class="bc-supports-yes">37</td>
+<td class="bc-supports-yes">9.3</td>
+<td class="bc-supports-yes">5.0</td>
+</tr></tbody>
+</table></div>
+<h2 id="see_also">See also</h2>
+<div class="section-content"><ul> <li>All <a href="../global_attributes">global attributes</a>.</li> </ul></div><div class="_attribution">
+ <p class="_attribution-p">
+ &copy; 2005&ndash;2023 MDN contributors.<br>Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.<br>
+ <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck" class="_attribution-link">https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck</a>
+ </p>
+</div>