Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web/API/HTMLFormElement 以下を md に一括変換 #7844

Merged
merged 2 commits into from
Aug 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions files/ja/web/api/htmlformelement/acceptcharset/index.html

This file was deleted.

29 changes: 29 additions & 0 deletions files/ja/web/api/htmlformelement/acceptcharset/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: HTMLFormElement.acceptCharset
slug: Web/API/HTMLFormElement/acceptCharset
tags:
- DOM
- Gecko
- Gecko DOM Reference
translation_of: Web/API/HTMLFormElement/acceptCharset
---
{{APIRef}}概要

`acceptCharset` は対象フォームでサポートされる文字エンコーディングのリストを返します。リストの各アイテムは、カンマか半角スペースで区切られます。

## 構文

```
string = form.acceptCharset;
```

## 例

```js
inputs = document.forms["myform"].acceptCharset
```

## 仕様書

- [HTML 5, Section 4.10.3: The Form Element](http://www.w3.org/TR/html5/forms.html#dom-form-acceptcharset)
- [DOM Level 2 HTML: acceptCharset](http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-19661795)
30 changes: 0 additions & 30 deletions files/ja/web/api/htmlformelement/action/index.html

This file was deleted.

34 changes: 34 additions & 0 deletions files/ja/web/api/htmlformelement/action/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
title: HTMLFormElement.action
slug: Web/API/HTMLFormElement/action
tags:
- DOM
- Forms
- Reference
translation_of: Web/API/HTMLFormElement/action
---
## 概要

{{HTMLElement("form")}} 要素の action を取得 / 設定します。

## 構文

```
string = form.action; //取得
form.action = string; //設定
```

## 例

```js
form.action = "/cgi-bin/publish";
```

## 注記

フォームの action はフォームが投稿されたときサーバ上で実行されるプログラムです。このプロパティは読み書きともに可能です。

## 仕様

- [HTML 5, Section 4.10.19.6, Form submission](http://www.w3.org/TR/html5/association-of-controls-and-forms.html#dom-fs-method)
- [DOM Level 2 HTML: action](http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-74049184)
25 changes: 0 additions & 25 deletions files/ja/web/api/htmlformelement/elements/index.html

This file was deleted.

35 changes: 35 additions & 0 deletions files/ja/web/api/htmlformelement/elements/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
title: HTMLFormElement.elements
slug: Web/API/HTMLFormElement/elements
tags:
- DOM
- Gecko
- Gecko DOM Reference
translation_of: Web/API/HTMLFormElement/elements
---
{{ApiRef()}}

## 概要

**elements** は、form 要素に含まれるすべてのフォームコントロールを含む [`HTMLCollection`](http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-75708506) を返します。

index 、または要素の [name](/ja/docs/DOM/element.name) か [id](/ja/docs/DOM/element.id) の何れかを使って個々の要素にアクセスすることができます。

## 構文

```
nodeList =HTMLFormElement.elements
```

## 例

```js
var inputs = document.getElementById("form1").elements;
var inputByIndex = inputs[2];
var inputByName = inputs["login"];
```

## 仕様書

- [HTML5, Section 4.10.3, The form Element](http://www.w3.org/TR/html5/forms.html#dom-form-elements)
- [DOM Level 2 HTML: elements](http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-76728479)
12 changes: 0 additions & 12 deletions files/ja/web/api/htmlformelement/encoding/index.html

This file was deleted.

12 changes: 12 additions & 0 deletions files/ja/web/api/htmlformelement/encoding/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: HTMLFormElement.encoding
slug: Web/API/HTMLFormElement/encoding
tags:
- DOM
- Gecko
- Gecko DOM Reference
translation_of: Web/API/HTMLFormElement/encoding
---
{{ApiRef}}

`encoding` は、 DOM {{domxref("HTMLFormElement")}} オブジェクトの {{domxref("form.enctype","enctype")}} プロパティの別名です。
28 changes: 0 additions & 28 deletions files/ja/web/api/htmlformelement/enctype/index.html

This file was deleted.

37 changes: 37 additions & 0 deletions files/ja/web/api/htmlformelement/enctype/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
title: HTMLFormElement.enctype
slug: Web/API/HTMLFormElement/enctype
tags:
- Reference
- form
translation_of: Web/API/HTMLFormElement/enctype
---
## 概要

`enctype` は form 要素のコンテンツタイプの取得 / 設定に用います。

## 構文

```
string = form.enctype // 取得

form.enctype = string // 設定
```

## 例

```js
var firstForm = document.getElementsByTagName("form")[0]; // 文書中の最初の form 要素を取得

firstForm.enctype = "application/x-www-form-urlencoded"; // 設定
alert( firstForm.enctype ); // 確認
```

## 注記

エンコーディングタイプは一般的に "application/x-www-form-urlencoded" となります。

## 仕様書

- [HTML 5, Section 4.10.19.6, Form submission](http://www.w3.org/TR/html5/association-of-controls-and-forms.html#dom-fs-method)
- [DOM Level 2 HTML: enctype](http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-84227810)
102 changes: 0 additions & 102 deletions files/ja/web/api/htmlformelement/formdata_event/index.html

This file was deleted.

Loading