Skip to content

Commit

Permalink
2023/04/07 時点の英語版に基づき更新
Browse files Browse the repository at this point in the history
  • Loading branch information
mfuji09 committed Jun 19, 2024
1 parent 385808b commit 6bbec82
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 16 deletions.
25 changes: 17 additions & 8 deletions files/ja/web/api/document/clear/index.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
---
title: Document.clear()
title: "Document: clear() メソッド"
short-title: clear()
slug: Web/API/Document/clear
l10n:
sourceCommit: 41a8b9c9832359d445d136b6d7a8a28737badc6b
---

{{APIRef("DOM")}}{{ Deprecated_header() }}
{{APIRef("DOM")}}{{Deprecated_Header}}

**`Document.clear()`** メソッドは指定された文書全体を消去するもので、初期 (1.0 以前) の Mozilla アプリケーションにありました。

近年のバージョンの Mozilla ベースアプリケーションでも、 Internet Explorer や Netscape 4 でも、このメソッドは何も行いません。
**`Document.clear()`** メソッドは何も行わず、何もエラーを発生しません。

## 構文

```js-nolint
clear()
```
document.clear();
```

### 引数

なし。

### 返値

なし ({{jsxref("undefined")}})。

## 仕様書

- [HTML5](https://www.whatwg.org/html/#dom-document-clear)
{{Specifications}}

## ブラウザーの互換性

Expand Down
19 changes: 15 additions & 4 deletions files/ja/web/api/document/close/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
title: Document.close()
title: "Document: close() メソッド"
short-title: close()
slug: Web/API/Document/close
l10n:
sourceCommit: 41a8b9c9832359d445d136b6d7a8a28737badc6b
---

{{APIRef("DOM")}}
Expand All @@ -9,13 +12,21 @@ slug: Web/API/Document/close

## 構文

```js-nolint
close()
```
document.close();
```

### 引数

なし。

### 返値

なし ({{jsxref("undefined")}})。

##

```
```js
// 書きこむ文書を開きます。
document.open();

Expand Down
11 changes: 7 additions & 4 deletions files/ja/web/api/document/createattribute/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
title: Document.createAttribute()
title: "Document: createAttribute() メソッド"
short-title: createAttribute()
slug: Web/API/Document/createAttribute
l10n:
sourceCommit: 41a8b9c9832359d445d136b6d7a8a28737badc6b
---

{{ ApiRef("DOM") }}
Expand All @@ -11,8 +14,8 @@ slug: Web/API/Document/createAttribute
## 構文

```js
createAttribute(name);
```js-nolint
createAttribute(name)
```

### 引数
Expand All @@ -26,7 +29,7 @@ createAttribute(name);
### 例外

- `InvalidCharacterError` {{domxref("DOMException")}}
- : [`name`](#name) が無効な [XML name](https://www.w3.org/TR/REC-xml/#dt-name) である場合例えば、数字・ハイフン・ピリオドで始まっている場合や、英数字・アンダースコア・ハイフン・ピリオド以外の文字を含む場合)に発生します。
- : [`name`](#name) が無効な [XML name](https://www.w3.org/TR/REC-xml/#dt-name) である場合例えば、数字・ハイフン・ピリオドで始まっている場合や、英数字・アンダースコア・ハイフン・ピリオド以外の文字を含む場合)に発生します。

##

Expand Down

0 comments on commit 6bbec82

Please sign in to comment.