diff options
author | Florian Merz <me@fiji-flo.de> | 2021-02-11 12:07:59 +0100 |
---|---|---|
committer | Florian Merz <me@fiji-flo.de> | 2021-02-11 12:07:59 +0100 |
commit | 6ef1fa4618e08426b874529619a66adbd3d1fcf0 (patch) | |
tree | 890e3e27131be010d82ef957fa68db495006cb0e /files/ja/conflicting/web/html/global_attributes | |
parent | 8260a606c143e6b55a467edf017a56bdcd6cba7e (diff) | |
download | translated-content-6ef1fa4618e08426b874529619a66adbd3d1fcf0.tar.gz translated-content-6ef1fa4618e08426b874529619a66adbd3d1fcf0.tar.bz2 translated-content-6ef1fa4618e08426b874529619a66adbd3d1fcf0.zip |
unslug ja: move
Diffstat (limited to 'files/ja/conflicting/web/html/global_attributes')
-rw-r--r-- | files/ja/conflicting/web/html/global_attributes/index.html | 27 | ||||
-rw-r--r-- | files/ja/conflicting/web/html/global_attributes/spellcheck/index.html | 32 |
2 files changed, 59 insertions, 0 deletions
diff --git a/files/ja/conflicting/web/html/global_attributes/index.html b/files/ja/conflicting/web/html/global_attributes/index.html new file mode 100644 index 0000000000..aee67a75d0 --- /dev/null +++ b/files/ja/conflicting/web/html/global_attributes/index.html @@ -0,0 +1,27 @@ +--- +title: Global attribute (グローバル属性) +slug: Glossary/Global_attribute +tags: + - Attribute + - CodingScripting + - Glossary + - HTML +translation_of: Web/HTML/Global_attributes +translation_of_original: Glossary/Global_attribute +--- +<p>グローバル属性は、すべての{{glossary("element","要素")}}で使用できる{{glossary("attribute","属性")}}です(ただし、一部の要素には影響を与えないこともあります)。</p> + +<p>HTML 要素には、次のいくつかの属性を使用できます。</p> + +<ul> + <li><a href="/ja/docs/Web/HTML/Global_attributes/dir"><strong>dir</strong></a>, <a href="/ja/docs/Web/HTML/Global_attributes/lang"><strong>lang</strong></a>, <a href="/ja/docs/Web/HTML/Global_attributes/style"><strong>style</strong></a>, <a href="/ja/docs/Web/HTML/Global_attributes/id"><strong>id</strong></a>, <a href="/ja/docs/Web/HTML/Global_attributes/class"><strong>class</strong></a>, <a href="/ja/docs/Web/HTML/Global_attributes/tabindex"><strong>tabindex</strong></a>, <a href="/ja/docs/Web/HTML/Global_attributes/accesskey"><strong>accesskey</strong></a>, <a href="/ja/docs/Web/HTML/Global_attributes/title"><strong>title</strong></a>, <a href="/ja/docs/Web/HTML/Global_attributes/hidden"><strong>hidden</strong></a>, <a href="/ja/docs/Web/HTML/Global_attributes/data-*"><strong>data-*</strong></a>, <a href="/ja/docs/Web/HTML/Global_attributes/contextmenu"><strong>contextmenu</strong></a>, <a href="/ja/docs/Web/HTML/Global_attributes/contenteditable"><strong>contenteditable</strong></a>, <a href="/ja/docs/Web/HTML/Global_attributes/translate"><strong>translate</strong></a>, <a href="/ja/docs/Web/HTML/Global_attributes/spellcheck"><strong>spellcheck</strong></a>, <a href="/ja/docs/Web/HTML/Global_attributes/draggable"><strong>draggable</strong></a>, <a href="/ja/docs/Web/HTML/Global_attributes/dropzone"><strong>dropzone</strong></a>, <a href="/ja/docs/Web/HTML/Global_attributes/itemid"><strong>itemid</strong></a>, <a href="/ja/docs/Web/HTML/Global_attributes/itemprop"><strong>itemprop</strong></a>, <a href="/ja/docs/Web/HTML/Global_attributes/itemref"><strong>itemref</strong></a>, <a href="/ja/docs/Web/HTML/Global_attributes/itemscope"><strong>itemscope</strong></a>, <a href="/ja/docs/Web/HTML/Global_attributes/itemtype"><strong>itemtype</strong></a>.</li> + <li><strong>xml:lang </strong>と <strong>xml:base</strong> の両方が {{glossary("XHTML")}} 仕様から継承され、非推奨ですが互換性のために保持されています。</li> + <li>アクセシビリティを向上させるための複数の <strong><a href="/ja/docs/Web/Accessibility/ARIA">aria-*</a></strong> 属性。</li> + <li>イベントハンドラー属性: <strong>onabort</strong>, <strong>onautocomplete</strong>, <strong>onautocompleteerror</strong>, <strong>onblur</strong>, <strong>oncancel</strong>, <strong>oncanplay</strong>, <strong>oncanplaythrough</strong>, <strong>onchange</strong>, <strong>onclick</strong>, <strong>onclose</strong>, <strong>oncontextmenu</strong>, <strong>oncuechange</strong>, <strong>ondblclick</strong>, <strong>ondrag</strong>, <strong>ondragend</strong>, <strong>ondragenter</strong>, <strong>ondragexit</strong>, <strong>ondragleave</strong>, <strong>ondragover</strong>, <strong>ondragstart</strong>, <strong>ondrop</strong>, <strong>ondurationchange</strong>, <strong>onemptied</strong>, <strong>onended</strong>, <strong>onerror</strong>, <strong>onfocus</strong>, <strong>oninput</strong>, <strong>oninvalid</strong>, <strong>onkeydown</strong>, <strong>onkeypress</strong>, <strong>onkeyup</strong>, <strong>onload</strong>, <strong>onloadeddata</strong>, <strong>onloadedmetadata</strong>, <strong>onloadstart</strong>, <strong>onmousedown</strong>, <strong>onmouseenter</strong>, <strong>onmouseleave</strong>, <strong>onmousemove</strong>, <strong>onmouseout</strong>, <strong>onmouseover</strong>, <strong>onmouseup</strong>, <strong>onmousewheel</strong>, <strong>onpause</strong>, <strong>onplay</strong>, <strong>onplaying</strong>, <strong>onprogress</strong>, <strong>onratechange</strong>, <strong>onreset</strong>, <strong>onresize</strong>, <strong>onscroll</strong>, <strong>onseeked</strong>, <strong>onseeking</strong>, <strong>onselect</strong>, <strong>onshow</strong>, <strong>onsort</strong>, <strong>onstalled</strong>, <strong>onsubmit</strong>, <strong>onsuspend</strong>, <strong>ontimeupdate</strong>, <strong>ontoggle</strong>, <strong>onvolumechange</strong>, <strong>onwaiting</strong>.</li> +</ul> + +<h2 id="Learn_more" name="Learn_more">より詳しく知る</h2> + +<ul> + <li>HTML の<a href="/ja/docs/Web/HTML/Global_attributes">グローバル属性</a></li> +</ul> diff --git a/files/ja/conflicting/web/html/global_attributes/spellcheck/index.html b/files/ja/conflicting/web/html/global_attributes/spellcheck/index.html new file mode 100644 index 0000000000..07cdb135ef --- /dev/null +++ b/files/ja/conflicting/web/html/global_attributes/spellcheck/index.html @@ -0,0 +1,32 @@ +--- +title: HTML フォームのスペルチェックを制御する +slug: Controlling_spell_checking_in_HTML_forms +tags: + - Configuration management + - HTML +--- +<p>{{ Fx_minversion_header(2) }} Firefox 2 はウェブフォームのテキストエリア{{ 訳注("複数行のテキスト入力欄") }}とテキストフィールド{{ 訳注("一行のテキスト入力欄") }}のスペルチェックのサポートを導入します。ユーザーは about:config インターフェースを使って、スペルチェックを有効にするか、テキストエリアとテキストフィールドの両方でチェックするかを設定することができます。</p> +<p>標準では、テキストエリアと <code>designMode</code> ドキュメントではスペルチェックが行われますが、一行の入力ボックスでは行われません。なぜなら、Firefox が ユーザ ID や E メールアドレスを誤ってマークしてしまうと、ユーザの気を散らしてしまうからです。</p> +<p>しかし、この動作が必ずしも適切でない状況があるでしょう。例えば、HTML や他の非散文データを編集するためにテキストエリアの使用が意図されているなら、スペルチェッカは助けよりむしろ妨害でしょう。 同じようにウェブサイトが特定のテキストフィールドでスペルチェック可能にすることを Firefox に勧めたい場合があるかもしれません。例えば、検索ボックスや E メールの件名フィールドなど。</p> +<p>ウェブサイトが特定の <code><input></code> 要素にスペルチェックを使わせたい、あるいは使わせたくない場合は、<code>spellcheck</code> 属性を使うことができます。スペルチェックを勧めるには <code>true</code> を、使わせたくないときには <code>false</code> を設定します。</p> +<p>もしユーザが <code>layout.spellcheckDefault</code> を 0 に設定してスペルチェックを完全に無効化しているなら、サイトからの勧めは無視されることを覚えておいてください。もし <code>layout.spellcheckDefault</code> が他の値なら勧めは考慮に入れられるでしょう。</p> +<p>一行のテキストフィールド(HTML の <code><input></code> 要素) でスペルチェックを有効化するには、HTML で次のようにコードを書きます:</p> +<pre class="eval"><span class="nowiki"><input type="text" size="50" spellcheck="true"></span> +</pre> +<p>同様にテキストエリアでスペルチェックを無効にするには、HTML で次のようにコードを書きます:</p> +<pre class="eval"><span class="nowiki"><textarea spellcheck="false"></textarea></span> +</pre> +<p><code>spellcheck</code> 属性をドキュメントの <code><body></code> 要素に設定することによって、ドキュメントの <code>designMode</code> (一般的に、リッチテキスト編集の実装に使用されます) を制御することができます。</p> +<p>あなたは <code>spellcheck</code> 属性を <code><span></code> と <code><div></code> のような他の要素にも同じように適用ですます。それらに含まれた全ての <code><input></code> 要素は親によって設定されたスペルチェックの設定が継承されます。もし祖先の要素で何も設定されていない場合、ユーザの標準設定が使われます。</p> +<p>例えば</p> +<pre><div spellcheck="true"> + <label>文章を入力してください: </label><input type="text" size="50"> + <br /> + <label>さらに入力してください: </label><input type="text" size="50"> +</div> +<br /> +<label>3 番目を入力してください: </label><input type="text" size="50"> +</pre> +<p>この HTML の断片では、最初の 2 つのテキストフィールドはスペルチェックされるのに対して 3 番目はスペルチェックされません。</p> +<div class="noinclude"> + </div> |