-
-
Notifications
You must be signed in to change notification settings - Fork 25
Home
The Document Object Model (DOM) is an object oriented interface for interacting with HTML webpages and other XML documents. It's been made extremely popular by its use in JavaScript within the browser.
The DOM represents a document with a logical tree. Each branch of the tree ends in a node, and each node contains objects. DOM methods allow programmatic access to the tree. With them, you can change the document's structure, style, or content.
This project provides access to a DOM within your PHP scripts on the server, for use with HTML or XML Documents, allowing developers to take advantage of the well known web standards and widely understood DOM technologies to produce dynamic pages alongside, or instead of, a template engine.
Navigate to a particular section of this guide using the menu, or read through each section by clicking through the links at the bottom of each page.
Sections of the guide:
- Introduction
- Working with DOM
- JavaScript in the browser
- Behind the scenes
Use Stack Overflow to get help with technical issues. Tag your question with php.gt
and dom
, and a developer will be alerted to provide you an answer as quick as possible.
Report bugs on the Github issue tracker.
If you are interested in contributing to this project, a concise overview of how to contribute to the project is available on the Contribution guide page.
- An introduction to the Document Object Model - general overview of DOM and outline of where this project fits.
- Using traits - how traits are utilised within the hierarchy.
-
Live properties - to provide classes with live properties, DOM classes should use
prop_*
methods instead of using__get
and__set
.
PHP.Gt/Dom is a separately maintained component of PHP.Gt/WebEngine.