DTD(DTD)のコレクション
| Ver. | プロパティ名 | R/O | 値 | 説明 |
|---|---|---|---|---|
| length | ○ | 数値 | オブジェクト数 |
| Ver. | メソッドの書式 | 戻り値 | メソッドの説明 | ||
|---|---|---|---|---|---|
| パラメータ | 値 | パラメータの説明 | |||
| anyItem() | DTD | どれかのオブジェクトを返す | |||
| count() | 数値 | 要素数を返す | |||
| everyItem() | DTD (Array) | 全てのオブジェクトを返す | |||
| firstItem() | DTD | 最初のオブジェクトを返す | |||
| item(index) | DTD | インデックスまたは名前で指定したオブジェクトを返す | |||
| index | 数値, 文字列値 | インデックスまたは名前 | |||
| itemByID(id) | DTD | IDで指定したオブジェクトを返す | |||
| id | 数値 | ||||
| itemByRange(from, to) | DTD (Array) | 範囲で指定したオブジェクトを返す | |||
| from | DTD, 数値, 文字列値 | 範囲の開始 | |||
| to | DTD, 数値, 文字列値 | 範囲の終了 | |||
| lastItem() | DTD | 最後のオブジェクトを返す | |||
| middleItem() | DTD | 真ん中のオブジェクトを返す | |||
| nextItem(obj) | DTD | 一つ後のオブジェクトを返す | |||
| obj | DTD | 位置の基準になるオブジェクト | |||
| previousItem(obj) | DTD | 一つ前のオブジェクトを返す | |||
| obj | DTD | 位置の基準になるオブジェクト | |||
| toSource() | 文字列値 | ソースコードを表す文字列を返す | |||
DTD
| Ver. | プロパティ | R/O | 値 |
|---|---|---|---|
| parent | ○ | Document | |
| eventListeners | ○ | EventListeners | |
| events | ○ | Events | |
| Ver. | プロパティ名 | R/O | 値 | 説明 |
|---|---|---|---|---|
| contents | ○ | 文字列値, SpecialCharacters | 内容(テキスト) | |
| id | ○ | 数値 | オブジェクトのID | |
| index | ○ | 数値 | インデックス | |
| isValid | ○ | 真偽値 | オブジェクトが有効かどうか | |
| properties | Object | |||
| publicId | ○ | 文字列値 | The public ID of the DOCTYPE declaration. Note: Valid only when the DTD is an external subset. | |
| rootTag | XMLTag | The tag of the root object. | ||
| systemId | ○ | 文字列値 | The system ID of the DOCTYPE declaration. Note: Valid only when the DTD is an external subset. |
| Ver. | メソッドの書式 | 戻り値 | メソッドの説明 | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| パラメータ | 値 | パラメータの説明 | |||||||||||||||||||||||||||
| addEventListener(eventType, handler, [captures]) | EventListener | EventListenerを作成 | |||||||||||||||||||||||||||
| eventType | 文字列値 | ||||||||||||||||||||||||||||
| handler | ファイル, JavaScript関数 | ||||||||||||||||||||||||||||
| [captures] | 真偽値 | (廃止) | |||||||||||||||||||||||||||
| getElements() | Array( DTD ) | オブジェクト参照を返す | |||||||||||||||||||||||||||
| remove() | なし | 削除 | |||||||||||||||||||||||||||
| removeEventListener(eventType, handler, [captures]) | 真偽値 | EventListenerを削除 | |||||||||||||||||||||||||||
| eventType | 文字列値 | ||||||||||||||||||||||||||||
| handler | ファイル, JavaScript関数 | ||||||||||||||||||||||||||||
| [captures] | 真偽値 | (廃止) | |||||||||||||||||||||||||||
| select([existingSelection]) | なし | 選択状態にする | |||||||||||||||||||||||||||
| [existingSelection] |
SelectionOptions
| 既に選択されているものがあった場合 (既定値=SelectionOptions.REPLACE_WITH) | |||||||||||||||||||||||||||
| toSource() | 文字列値 | ソースコードを表す文字列を返す | |||||||||||||||||||||||||||
| toSpecifier() | 文字列値 | Retrieves the object specifier. | |||||||||||||||||||||||||||