JavaScriptによるブラウザ上での処理量およびコード量の増加に伴い、 JavaScript上のバグが原因で発生する脆弱性も増加しています。そのような脆弱性の最も代表的なものが、 DOM-based XSSです。今回から数回に分けて、 DOM-based XSSについて説明していきます。
こんにちは、 太田です。前回はHTMLとテキスト操作を解説しました。今回は、 さらにHTMLの操作の実例を中心に解説していきます。 JavaScriptとエスケープ まず、 エスケープについて確認しておきましょう。外部から入力されたデータを画面上に表示する際は ...
When a web page is loaded, the browser creates a Document Object Model of the page. The HTML DOM model is constructed as a tree of Objects: With the object model, JavaScript gets all the power it ...
DOM(Document Object Model)は、Webページの構造をプログラムで操作できるようにしたインターフェースです。JavaScriptを使うことで、ページの内容やスタイルを動的に変更することができます。 DOM要素を取得するためには、以下のメソッドを使用します。 // IDで ...
JavaScriptをつかってアプリなりサービスなりを開発するとき、JavaScriptからHTMLを操作するにはどうすればいいのでしょうか。そこで登場するのが『DOM』です。 実際にはjQueryなどのライブラリを使うことが多いのであまり意識することはないかもしれませんが ...
The Document Object Model (DOM) is a programming interface for web documents. In simpler terms, it's like an organized map that represents the structure and content of a webpage. Think of it as a tree ...
JavaScript (JS) is a fundamental technology used in web development that allows websites to be dynamic and interactive through the manipulation of the Document Object Model (DOM). Developers can ...