mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Update HTML5 serializer comments
This commit is contained in:
parent
ab47c189f3
commit
901ebd1c1a
1 changed files with 4 additions and 2 deletions
|
@ -27,7 +27,7 @@
|
||||||
#include <lexbor/encoding/encoding.h>
|
#include <lexbor/encoding/encoding.h>
|
||||||
|
|
||||||
/* This file implements the HTML 5 serialization algorithm.
|
/* 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)
|
#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;
|
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);
|
return dom_html5_serialize_node(ctx, children, node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue