HTML5 で導入
註: この頁では HTML5 標準仕様で定義されている HTMLEmbedElement インタフェースについて説明しています。HTML5 以前の仕様はこのインタフェースに対応していません。
DOM の embed 要素は、その特別なプロパティを操作する為の HTMLEmbedElement インタフェースを公開します。 embed 要素は通常の HTMLElement オブジェクトインタフェースからも継承により操作可能となっています。
HTMLElement インタフェースから継承するものの他にいくつかの固有プロパティを持ちます。
プロパティ
Inherits properties from its parent, HTMLElement.
| 名称 | 型 | 説明 |
|---|---|---|
align |
DOMString |
Enumerated property indicating alignment of the element's contents with respect to the surrounding context. The possible values are "left", "right", "center", and "justify". |
height |
DOMString |
height HTML 属性を反映。リソースの高さ(※内部的な数値でない、実際に表示されているリソースの高さ)を含む |
name |
DOMString |
The name of the embedded object. |
src |
DOMString |
src HTML 属性を反映。リソースのアドレスを含む |
type |
DOMString |
type HTML 属性を反映。リソースの型を含む |
width |
DOMString |
width HTML 属性を反映。リソースの幅(※内部的な数値でない、実際に表示されているリソースの幅)を含む |
仕様
| 仕様書 | 策定状況 | コメント |
|---|---|---|
| WHATWG HTML Living Standard The definition of 'HTMLEmbedElement' in that specification. |
Living Standard | No change from HTML5, but it formally adds two obsolete properties, name and align, to help with compatibility with old Web sites. |
| HTML5 The definition of 'HTMLEmbedElement' in that specification. |
勧告案 | Initial definition. |
ブラウザ実装状況
| 機能 | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|
| 基本サポート | (有) | 1.0 (1.7 or earlier) | (有) | (有) | (有) |
| 機能 | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| 基本サポート | (有) | 1.0 (1.0) | (有) | (有) | (有) |
関連情報
<embed>要素 - HTMLEmbedElement インタフェースを持つ HTML 要素