Core Class
View Source on Trac ↗
Core Class
WP_HTML_Active_Formatting_Elements
class WP_HTML_Active_Formatting_Elements
// Constructor: function Object() { [native code] } Core class used by the HTML processor during HTML parsing
Methods 9 methods
| Method / Return | Description |
|---|---|
| contains_node() bool | Reports if a specific node is in the stack of active formatting elements.
Parameters: $token: WP_HTML_Token |
| count() int | Returns how many nodes are currently in the stack of active formatting elements. |
| current_node() (WP_HTML_Token | Returns the node at the end of the stack of active formatting elements, |
| insert_marker() void | Inserts a "marker" at the end of the list of active formatting elements. |
| push() void | Pushes a node onto the stack of active formatting elements.
Parameters: $token: WP_HTML_Token |
| remove_node() bool | Removes a node from the stack of active formatting elements.
Parameters: $token: WP_HTML_Token |
| walk_down() void | Steps through the stack of active formatting elements, starting with the |
| walk_up() void | Steps through the stack of active formatting elements, starting with the |
| clear_up_to_last_marker() void | Clears the list of active formatting elements up to the last marker. |
Properties
| Property / Type | Description |
|---|---|
| $stack mixed public | No description available. |
Class Information
Since Version
6.4.0
Source File
wp-includes/html-api/class-wp-html-active-formatting-elements.php
Advertisement