PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.7.0
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.7.0
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
wp-optimize / vendor / simplehtmldom / simplehtmldom / docs / HtmlDocument / index.md

index.md in WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance 4.7.0, at vendor/simplehtmldom/simplehtmldom/docs/HtmlDocument/index.md

30 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 Represents the [](https://en.wikipedia.org/wiki/Document_Object_ModelDOM](https://en.wikipedia.org/wiki/Document_Object_Model](https://en.wikipedia.org/wiki/Document_Object_Model) in memory. Provides functions to parse documents and access individual elements (see [](../HtmlNode/index.md`HtmlNode`](../HtmlNode/index.md](../HtmlNode/index.md)).
2
3 ## Public Properties
4
5 | Property | Description |
6 |---------------------|-----------------------------------------------------------------------------------------|
7 | `root` | Root node of the document. |
8 | `nodes` | List of top-level nodes in the document. |
9 | `callback` | Callback function that is called for each element in the DOM when generating outertext. |
10 | `lowercase` | If enabled, all tag names are converted to lowercase when parsing documents. |
11 | `original_size` | Original document size in bytes. |
12 | `size` | Current document size in bytes. |
13 | `_charset` | Charset of the original document. |
14 | `_target_charset` | Target charset for the current document. |
15 | `default_br_text` | Text to return for `<br>` elements. |
16 | `default_span_text` | Text to return for `<span>` elements. |
17
18 ## Protected Properties
19
20 | Property | Description |
21 |-------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|
22 | `pos` | Current parsing position within `doc`. |
23 | `doc` | The original document. |
24 | `char` | Character at position `pos` in `doc`. |
25 | `cursor` | Current element cursor in the document. |
26 | `parent` | Parent element node. |
27 | `noise` | Noise from the original document (i.e. scripts, comments, etc...). |
28 | `token_blank` | Tokens that are considered whitespace in HTML. |
29 | `block_tags` | A list of tag names where remaining unclosed tags are forcibly closed. |
30 | `optional_closing_tags` | A list of tag names where the closing tag can be omitted. |