diff options
| author | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2021-09-14 11:07:46 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-14 11:07:46 +0900 |
| commit | 03385cc9f4f157cec2e5fd05f35e6af646055908 (patch) | |
| tree | 445fcb3a7d033d4ef35c4d4238b28b9630e3dc5b /files/ja/web/api/element/getattributens | |
| parent | b8899e350326af3e53dfad89747761c1c13a3915 (diff) | |
| download | translated-content-03385cc9f4f157cec2e5fd05f35e6af646055908.tar.gz translated-content-03385cc9f4f157cec2e5fd05f35e6af646055908.tar.bz2 translated-content-03385cc9f4f157cec2e5fd05f35e6af646055908.zip | |
Web/API以下の文書内のリンクURLを正規化 (#2360)
- /en-US へのリンクを /ja へのリンクに修正
- /ja が付いていないものに /ja を付加
- MDN内のリンクが完全URLの場合、 /ja/docs からのURLに修正
Diffstat (limited to 'files/ja/web/api/element/getattributens')
| -rw-r--r-- | files/ja/web/api/element/getattributens/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/ja/web/api/element/getattributens/index.html b/files/ja/web/api/element/getattributens/index.html index 974483920a..ee03de1cab 100644 --- a/files/ja/web/api/element/getattributens/index.html +++ b/files/ja/web/api/element/getattributens/index.html @@ -36,7 +36,7 @@ alert(a); // div の align 属性の値を表示します。 <h3 id=".E6.B3.A8.E8.A8.98" name=".E6.B3.A8.E8.A8.98">注記</h3> -<p><code>getAttributeNS</code> は <a href="ja/DOM/element.getAttribute">getAttribute</a> と異なります。<code>getAttributeNS</code> は特定の名前空間に属している要求された属性をより深く特定することができます。上記の例では、属性は mozilla の架空の "specialspace" 名前空間に属しています。</p> +<p><code>getAttributeNS</code> は <a href="/ja/DOM/element.getAttribute">getAttribute</a> と異なります。<code>getAttributeNS</code> は特定の名前空間に属している要求された属性をより深く特定することができます。上記の例では、属性は mozilla の架空の "specialspace" 名前空間に属しています。</p> <p>DOM4 より前の仕様では、このメソッドは属性が存在しない場合に <code>null</code> ではなく空文字列を返すように指定されていました。しかし、ほとんどのウェブ・ブラウザは <code>null</code> を返していました。DOM4 以降は、仕様でも <code>null</code> を返すように指定されました。しかしながら、いくつかの古いウェブ・ブラウザは空文字列を返します。そのため、指定の要素に指定の属性が存在しない可能性があるなら <code>getAttributeNS</code> を呼ぶ前に <a href="/ja/docs/Web/API/Element/hasAttributeNS"><code>hasAttributeNS</code></a> を使用して属性の存在を確かめる必要があります。</p> |
