内容取扱器

内容取扱器

[12] NavigatorContentUtils インターフェイスregisterContentHandler メソッドは、 内容取扱器利用者に提示するものです。

仕様書

処理

[27] registerContentHandler メソッドは、 次のようにしなければなりません >>11

  1. [30] MIME型を、必須の第1引数を DOMString として解釈した結果に設定します。
  2. [31] URL を、必須の第2引数を USVString として解釈した結果に設定します。
  3. [32] 題名を、必須の第3引数を DOMString として解釈した結果に設定します。
  4. [37] 絶対URL を、URL文脈オブジェクト設定群オブジェクトに対して構文解析した結果に設定します。
  5. [33]
    ... のいずれかを満たすなら、
    1. [34] SyntaxError投げ、ここで停止します。
  6. [39] 絶対URL起源文脈オブジェクト設定群オブジェクト起源同じ起源でなければ、
    1. [40] SecurityError投げ、ここで停止します。
  7. [42] 取扱器を、取扱器に設定します。
    取扱器
    種別
    内容取扱器
    proto-URL
    絶対URL
    題名
    題名
  8. [43] 取扱器について、取扱器の登録をします。

歴史

[1] Adding feed readers to Firefox - MDC (2006-10-23 11:17:20 +09:00 版) <http://developer.mozilla.org/ja/docs/Adding_feed_readers_to_Firefox>

[2] Web Applications 1.0 r6670 Allow sites to register RSS and Atom handlers, and handlers for specific XML types. ( ( 版)) <http://html5.org/tools/web-apps-tracker?from=6669&to=6670>

[3] Web Applications 1.0 r6523 registerProtocolHandler() and registerContentHandler() security updates ( ( 版)) <http://html5.org/tools/web-apps-tracker?from=6522&to=6523>

[4] Fix #124: make more types follow text/plain navigate logic · whatwg/html@f94f3c4 ( 版) <https://github.com/whatwg/html/commit/f94f3c4595fbc5fecb747ef52f46cdc5f2b3feec>

[5] Fixes #265: Change whitelist/blacklist to safelist/blocklist · whatwg/html@cb3316d ( 版) <https://github.com/whatwg/html/commit/cb3316db45e369ba31d97c5ee2dcd9c353a3cb5d>

[6] 26876 – Title argument for both registerProtoclHandler() and registerContentHandler() should be removed as i [...] ( 版) <https://www.w3.org/Bugs/Public/show_bug.cgi?id=26876>

[7] Fate of registerProtocolHandler() / registerContentHandler() and friends? · Issue #630 · whatwg/html ( 版) <https://github.com/whatwg/html/issues/630>

[8] URLs are parsed and produce records · whatwg/html@30bc255 ( 版) <https://github.com/whatwg/html/commit/30bc2557105ad62881ec9670f253febbc9761b44>

[9] Use USVString for all URLs ( (domenic著, )) <https://github.com/whatwg/html/commit/018b983b77b2cd908f6d00100e7e0abe893dd2c3>

[10] Use relevant settings object in protocol handlers (domenic著, ) <https://github.com/whatwg/html/commit/413c1ccc43c9b16ff5c73585092f8721dea305c7>

[13] Remove registerContentHandler() and several friends (annevk著, ) <https://github.com/whatwg/html/commit/b143dbc2d16f3473fcadee377d838070718549d3>

[14] Fate of registerProtocolHandler() / registerContentHandler() and friends? · Issue #630 · whatwg/html () <https://github.com/whatwg/html/issues/630>

[15] Remove registerContentHandler() and several friends by annevk · Pull Request #3027 · whatwg/html () <https://github.com/whatwg/html/pull/3027>