From 901ebd1c1a6884f6a87a9664b901137054d7c21a Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Wed, 11 Dec 2024 19:48:24 +0100 Subject: [PATCH] Update HTML5 serializer comments --- ext/dom/html5_serializer.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/dom/html5_serializer.c b/ext/dom/html5_serializer.c index f0048aa4aae89..26eef9d5f968c 100644 --- a/ext/dom/html5_serializer.c +++ b/ext/dom/html5_serializer.c @@ -27,7 +27,7 @@ #include /* 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) @@ -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); }