DOM Inspector

DOM Inspector(-インスペクタ)はMozilla Application SuiteやMozilla Firefoxなどに同梱される開発者向けツールである。HTMLやXMLで書…

DOM Inspector

DOM Inspector(-インスペクタ)はMozilla Application SuiteやMozilla Firefoxなどに同梱される開発者向けツールである。HTMLXMLで書かれた文書のDOMを解析することを主な目的とする。

DOMノードは解析対象を選択してからツリー構造を展開したりブラウザペインの特定部分をクリックしたりすることで特定部分を選択できる。DOMノードの他にBoxモデル(位置関係の解析)やXBLバインディング、CSSセレクタ・プロパティ・値の解析、Geckoが解析対象に対して定義済みのスタイル、JavaScriptオブジェクトなどの解析結果も表示できるようになっている。CSSとJavaScriptオブジェクトはツリーから選択することが可能で、アクティブなエレメントは赤い枠で点滅表示されるためCSSのデバッグを行うのに有効な手段となっている。

DOM Inspectorを使用するソフトウェア

プリインストール

インストーラ同梱。インストール時の設定でDOM Inspectorをインストールするかしないか選択できるようになっており、必要がなければインストールしないこともできる。

追加インストール

ThunderbirdはMozilla Add-onsにて提供されている専用のDOM Inspectorをインストールすることで利用可能になる。

使用例

HTML構造の解析
ツリー構造の展開によりどの要素の中にどの要素が包括されているか、どの要素にどんな属性が割り当てられているかなどを参照できる。
ブラウザのカスタマイズ
メニュー項目やセパレータなどに割り当てられたコマンドやidなどを解析する。解析したidはuserChrome.cssから参照することでメニュー項目を非表示にしたり装飾を変更したるすることが可能。また、アクションは拡張機能のkeyconfigを用いることでキーボードショートカットを新規に割り当てることが可能となる。

関連項目

外部リンク

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.