custom element definition

custom element definition

仕様書

意味

[3] カスタム要素定義 (custom element definition) は、 カスタム要素を説明するものです >>2

状態

[4] カスタム要素定義は、次の状態を持ちます。

名前
局所名
構築器
被観察属性群リスト
生活環コールバック群集成
構築スタック

文脈

[17] カスタム要素定義は、 CustomElementsRegistry オブジェクトが保持しています。

[18] define メソッドにより作成されます。

[21] 要素は、カスタム要素定義 (custom element definition) を持ちます >>20

探す

[5] カスタム要素定義を探す (look up a custom element definition) 操作は、 文書名前空間局所名is について、 次のようにします >>2

  1. [6] 名前空間HTML名前空間でないなら、
    1. [7] null を返し、ここで停止します。
  2. [8] 文書閲覧文脈がなければ、
    1. [9] null を返し、ここで停止します。
  3. [10] 登録簿を、文書WindowCustomElementsRegistry に設定します。
  4. [11] 登録簿に、 名前局所名かつ局所名局所名カスタム要素定義があれば、
    1. [12] そのカスタム要素定義を返し、ここで停止します。
  5. [13] 登録簿に、 名前isかつ局所名局所名カスタム要素定義があれば、
    1. [14] そのカスタム要素定義を返し、ここで停止します。
  6. [15] null を返します。

歴史

[1] Add custom elements to HTML · whatwg/html@6e7eaa4 ( 版) <https://github.com/whatwg/html/commit/6e7eaa4bd2912965fd83766f99f984f249531f3a>

[19] Set the stage for new custom element adoption semantics (domenic著, ) <https://github.com/whatwg/dom/commit/674e9343c811b178b5d1821e469682df0aa616f9>

[22] Use new.target.prototype in HTML element constructors (domenic著, ) <https://github.com/whatwg/html/commit/93ce959946249590515a3cf1a4b939a24605fc90>