WP_HTML_Open_Elements
class WP_HTML_Open_Elements
// Constructor: function Object() { [native code] } Core class used by the HTML processor during HTML parsing
Methods 27 methods
| Method / Return | Description |
|---|---|
| set_pop_handler() void | Sets a pop handler that will be called when an item is popped off the stack of
Parameters: $handler: Closure |
| set_push_handler() void | Sets a push handler that will be called when an item is pushed onto the stack of
Parameters: $handler: Closure |
| at() (WP_HTML_Token | Returns the name of the node at the nth position on the stack
Parameters: $nth: int |
| contains() bool | Reports if a node of a given name is in the stack of open elements.
Parameters: $node_name: string |
| contains_node() bool | Reports if a specific node is in the stack of open elements.
Parameters: $token: WP_HTML_Token |
| count() int | Returns how many nodes are currently in the stack of open elements. |
| current_node() (WP_HTML_Token | Returns the node at the end of the stack of open elements, |
| current_node_is() bool | Indicates if the current node is of a given type or name.
Parameters: $identity: string |
| has_element_in_specific_scope() bool | Returns whether an element is in a specific scope.
Parameters: $tag_name: string, $termination_list: mixed |
| has_element_in_scope() bool | Returns whether a particular element is in scope.
Parameters: $tag_name: string |
| has_element_in_list_item_scope() bool | Returns whether a particular element is in list item scope.
Parameters: $tag_name: string |
| has_element_in_button_scope() bool | Returns whether a particular element is in button scope.
Parameters: $tag_name: string |
| has_element_in_table_scope() bool | Returns whether a particular element is in table scope.
Parameters: $tag_name: string |
| has_element_in_select_scope() bool | Returns whether a particular element is in select scope.
Parameters: $tag_name: string |
| has_p_in_button_scope() bool | Returns whether a P is in BUTTON scope. |
| pop() bool | Pops a node off of the stack of open elements. |
| pop_until() bool | Pops nodes off of the stack of open elements until an HTML tag with the given name has been popped.
Parameters: $html_tag_name: string |
| push() void | Pushes a node onto the stack of open elements.
Parameters: $stack_item: WP_HTML_Token |
| remove_node() bool | Removes a specific node from the stack of open elements.
Parameters: $token: WP_HTML_Token |
| walk_down() void | Steps through the stack of open elements, starting with the top element |
| walk_up() void | Steps through the stack of open elements, starting with the bottom element
Parameters: $above_this_node: ?WP_HTML_Token |
| after_element_push() void | Updates internal flags after adding an element.
Parameters: $item: WP_HTML_Token |
| after_element_pop() void | Updates internal flags after removing an element.
Parameters: $item: WP_HTML_Token |
| clear_to_table_context() void | Clear the stack back to a table context. |
| clear_to_table_body_context() void | Clear the stack back to a table body context. |
| clear_to_table_row_context() void | Clear the stack back to a table row context. |
| __wakeup() void | Wakeup magic method. |
Properties
| Property / Type | Description |
|---|---|
| $stack mixed public | No description available. |
| $has_p_in_button_scope mixed public | No description available. |
| $pop_handler mixed public | No description available. |
| $push_handler mixed public | No description available. |