Skip to content

Commit

Permalink
Merge branch 'PHP-8.4'
Browse files Browse the repository at this point in the history
* PHP-8.4:
  Update HTML5 serializer comments
  • Loading branch information
nielsdos committed Dec 11, 2024
2 parents 44a2a5d + 901ebd1 commit 4ef1c5f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ext/dom/html5_serializer.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <lexbor/encoding/encoding.h>

/* This file implements the HTML 5 serialization algorithm.
* https://html.spec.whatwg.org/multipage/parsing.html#serialising-html-fragments (Date 2023-12-14)
* https://html.spec.whatwg.org/multipage/parsing.html#serialising-html-fragments (Date 2024-12-11)
*/

#define TRY(x) do { if (UNEXPECTED((x) != SUCCESS)) { return FAILURE; } } while (0)
Expand Down Expand Up @@ -371,7 +371,9 @@ zend_result dom_html5_serialize(dom_html5_serialize_context *ctx, const xmlNode
children = node->children;
}

/* Step 4 */
/* Step 4 concerns shadow roots, but we don't have these, so skip. */

/* Step 5 */
return dom_html5_serialize_node(ctx, children, node);
}

Expand Down

0 comments on commit 4ef1c5f

Please sign in to comment.