Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
* @since 6.4.0
*
* @access private
* @ignore
*
* @see https://html.spec.whatwg.org/#list-of-active-formatting-elements
* @see WP_HTML_Processor
Expand Down
2 changes: 2 additions & 0 deletions src/wp-includes/html-api/class-wp-html-attribute-token.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* This class is for internal usage of the WP_HTML_Tag_Processor class.
*
* @access private
* @ignore
*
* @since 6.2.0
* @since 6.5.0 Replaced `end` with `length` to more closely match `substr()`.
*
Expand Down
1 change: 1 addition & 0 deletions src/wp-includes/html-api/class-wp-html-open-elements.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* @since 6.4.0
*
* @access private
* @ignore
*
* @see https://html.spec.whatwg.org/#stack-of-open-elements
* @see WP_HTML_Processor
Expand Down
1 change: 1 addition & 0 deletions src/wp-includes/html-api/class-wp-html-processor-state.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* @since 6.4.0
*
* @access private
* @ignore
*
* @see WP_HTML_Processor
*/
Expand Down
42 changes: 40 additions & 2 deletions src/wp-includes/html-api/class-wp-html-processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ private function create_fragment_at_current_node( string $html ) {
* @throws WP_HTML_Unsupported_Exception Halts execution of the parser.
*
* @since 6.7.0
* @ignore
*
* @param string $message Explains support is missing in order to parse the current node.
* @return never
Expand Down Expand Up @@ -790,8 +791,7 @@ public function next_token(): bool {
* calls the {@see WP_HTML_Tag_Processor::base_class_next_token()} method.
*
* @since 6.7.2 Added for internal support.
*
* @access private
* @ignore
*
* @return bool
*/
Expand Down Expand Up @@ -880,6 +880,7 @@ public function is_tag_closer(): bool {
* while processing HTML, rather than a token found in the HTML text itself.
*
* @since 6.6.0
* @ignore
*
* @return bool Whether the current token is virtual.
*/
Expand Down Expand Up @@ -1472,6 +1473,7 @@ public function serialize_token(): string {
* logic for the generalized WP_HTML_Processor::step() function.
*
* @since 6.7.0
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand Down Expand Up @@ -1543,6 +1545,7 @@ private function step_initial(): bool {
* logic for the generalized WP_HTML_Processor::step() function.
*
* @since 6.7.0
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand Down Expand Up @@ -1640,6 +1643,7 @@ private function step_before_html(): bool {
* logic for the generalized WP_HTML_Processor::step() function.
*
* @since 6.7.0 Stub implementation.
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand Down Expand Up @@ -1737,6 +1741,7 @@ private function step_before_head(): bool {
* logic for the generalized WP_HTML_Processor::step() function.
*
* @since 6.7.0
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand Down Expand Up @@ -1959,6 +1964,7 @@ private function step_in_head(): bool {
* logic for the generalized WP_HTML_Processor::step() function.
*
* @since 6.7.0 Stub implementation.
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand Down Expand Up @@ -2062,6 +2068,7 @@ private function step_in_head_noscript(): bool {
* logic for the generalized WP_HTML_Processor::step() function.
*
* @since 6.7.0 Stub implementation.
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand Down Expand Up @@ -2206,6 +2213,7 @@ private function step_after_head(): bool {
* logic for the generalized WP_HTML_Processor::step() function.
*
* @since 6.4.0
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand Down Expand Up @@ -3231,6 +3239,7 @@ private function step_in_body(): bool {
* logic for the generalized WP_HTML_Processor::step() function.
*
* @since 6.7.0
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand Down Expand Up @@ -3487,6 +3496,7 @@ private function step_in_table(): bool {
* logic for the generalized WP_HTML_Processor::step() function.
*
* @since 6.7.0 Stub implementation.
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand All @@ -3506,6 +3516,7 @@ private function step_in_table_text(): bool {
* logic for the generalized WP_HTML_Processor::step() function.
*
* @since 6.7.0
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand Down Expand Up @@ -3590,6 +3601,7 @@ private function step_in_caption(): bool {
* logic for the generalized WP_HTML_Processor::step() function.
*
* @since 6.7.0
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand Down Expand Up @@ -3697,6 +3709,7 @@ private function step_in_column_group(): bool {
* logic for the generalized WP_HTML_Processor::step() function.
*
* @since 6.7.0
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand Down Expand Up @@ -3800,6 +3813,7 @@ private function step_in_table_body(): bool {
* logic for the generalized WP_HTML_Processor::step() function.
*
* @since 6.7.0
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand Down Expand Up @@ -3910,6 +3924,7 @@ private function step_in_row(): bool {
* logic for the generalized WP_HTML_Processor::step() function.
*
* @since 6.7.0
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand Down Expand Up @@ -4014,6 +4029,7 @@ private function step_in_cell(): bool {
* logic for the generalized WP_HTML_Processor::step() function.
*
* @since 6.7.0
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand Down Expand Up @@ -4189,6 +4205,7 @@ private function step_in_select(): bool {
* logic for the generalized WP_HTML_Processor::step() function.
*
* @since 6.7.0
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand Down Expand Up @@ -4253,6 +4270,7 @@ private function step_in_select_in_table(): bool {
* logic for the generalized WP_HTML_Processor::step() function.
*
* @since 6.7.0 Stub implementation.
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand Down Expand Up @@ -4382,6 +4400,7 @@ private function step_in_template(): bool {
* logic for the generalized WP_HTML_Processor::step() function.
*
* @since 6.7.0 Stub implementation.
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand Down Expand Up @@ -4471,6 +4490,7 @@ private function step_after_body(): bool {
* logic for the generalized WP_HTML_Processor::step() function.
*
* @since 6.7.0 Stub implementation.
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand Down Expand Up @@ -4590,6 +4610,7 @@ private function step_in_frameset(): bool {
* logic for the generalized WP_HTML_Processor::step() function.
*
* @since 6.7.0 Stub implementation.
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand Down Expand Up @@ -4675,6 +4696,7 @@ private function step_after_frameset(): bool {
* logic for the generalized WP_HTML_Processor::step() function.
*
* @since 6.7.0 Stub implementation.
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand Down Expand Up @@ -4738,6 +4760,7 @@ private function step_after_after_body(): bool {
* logic for the generalized WP_HTML_Processor::step() function.
*
* @since 6.7.0 Stub implementation.
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand Down Expand Up @@ -4806,6 +4829,7 @@ private function step_after_after_frameset(): bool {
* logic for the generalized WP_HTML_Processor::step() function.
*
* @since 6.7.0 Stub implementation.
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand Down Expand Up @@ -5127,6 +5151,7 @@ private function step_in_foreign_content(): bool {
*
* @since 6.4.0
* @since 6.5.0 Renamed from bookmark_tag() to bookmark_token().
* @ignore
*
* @throws Exception When unable to allocate requested bookmark.
*
Expand Down Expand Up @@ -5780,6 +5805,7 @@ public function has_bookmark( $bookmark_name ): bool {
* Closes a P element.
*
* @since 6.4.0
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand All @@ -5795,6 +5821,7 @@ private function close_a_p_element(): void {
*
* @since 6.4.0
* @since 6.7.0 Full spec support.
* @ignore
*
* @see https://html.spec.whatwg.org/#generate-implied-end-tags
*
Expand Down Expand Up @@ -5832,6 +5859,7 @@ private function generate_implied_end_tags( ?string $except_for_this_element = n
*
* @since 6.4.0
* @since 6.7.0 Full spec support.
* @ignore
*
* @see WP_HTML_Processor::generate_implied_end_tags
* @see https://html.spec.whatwg.org/#generate-implied-end-tags
Expand Down Expand Up @@ -5874,6 +5902,7 @@ private function generate_implied_end_tags_thoroughly(): void {
* @see https://html.spec.whatwg.org/#adjusted-current-node
*
* @since 6.7.0
* @ignore
*
* @return WP_HTML_Token|null The adjusted current node.
*/
Expand All @@ -5893,6 +5922,7 @@ private function get_adjusted_current_node(): ?WP_HTML_Token {
* > been explicitly closed.
*
* @since 6.4.0
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand Down Expand Up @@ -5935,6 +5965,7 @@ private function reconstruct_active_formatting_elements(): bool {
* Runs the reset the insertion mode appropriately algorithm.
*
* @since 6.7.0
* @ignore
*
* @see https://html.spec.whatwg.org/multipage/parsing.html#reset-the-insertion-mode-appropriately
*/
Expand Down Expand Up @@ -6127,6 +6158,7 @@ private function reset_insertion_mode_appropriately(): void {
* Runs the adoption agency algorithm.
*
* @since 6.4.0
* @ignore
*
* @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input.
*
Expand Down Expand Up @@ -6244,6 +6276,7 @@ private function run_adoption_agency_algorithm(): void {
* @see https://html.spec.whatwg.org/multipage/parsing.html#close-the-cell
*
* @since 6.7.0
* @ignore
*/
private function close_cell(): void {
$this->generate_implied_end_tags();
Expand All @@ -6262,6 +6295,7 @@ private function close_cell(): void {
* Inserts an HTML element on the stack of open elements.
*
* @since 6.4.0
* @ignore
*
* @see https://html.spec.whatwg.org/#insert-a-foreign-element
*
Expand All @@ -6275,6 +6309,7 @@ private function insert_html_element( WP_HTML_Token $token ): void {
* Inserts a foreign element on to the stack of open elements.
*
* @since 6.7.0
* @ignore
*
* @see https://html.spec.whatwg.org/#insert-a-foreign-element
*
Expand Down Expand Up @@ -6314,6 +6349,7 @@ private function insert_foreign_element( WP_HTML_Token $token, bool $only_add_to
* Inserts a virtual element on the stack of open elements.
*
* @since 6.7.0
* @ignore
*
* @param string $token_name Name of token to create and insert into the stack of open elements.
* @param string|null $bookmark_name Optional. Name to give bookmark for created virtual node.
Expand All @@ -6339,6 +6375,7 @@ private function insert_virtual_node( $token_name, $bookmark_name = null ): WP_H
* Indicates if the current token is a MathML integration point.
*
* @since 6.7.0
* @ignore
*
* @see https://html.spec.whatwg.org/#mathml-text-integration-point
*
Expand Down Expand Up @@ -6375,6 +6412,7 @@ private function is_mathml_integration_point(): bool {
* no other accounting is overlooked.
*
* @since 6.7.0
* @ignore
*
* @see https://html.spec.whatwg.org/#html-integration-point
*
Expand Down
2 changes: 2 additions & 0 deletions src/wp-includes/html-api/class-wp-html-stack-event.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* This class is for internal usage of the WP_HTML_Processor class.
*
* @access private
* @ignore
*
* @since 6.6.0
*
* @see WP_HTML_Processor
Expand Down
Loading
Loading