[php-src] master: Be specific for the namespace of the id attribute (#14060)

From: Date: Sun, 28 Apr 2024 09:41:01 +0000
Subject: [php-src] master: Be specific for the namespace of the id attribute (#14060)
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-128241@lists.php.net to get a copy of this message
Author: Niels Dossche (nielsdos) Committer: GitHub (web-flow) Pusher: nielsdos Date: 2024-04-28T11:40:54+02:00 Commit: https://github.com/php/php-src/commit/b0da6ed6eeec6a659c16369bc33386cc120af732 Raw diff: https://github.com/php/php-src/commit/b0da6ed6eeec6a659c16369bc33386cc120af732.diff Be specific for the namespace of the id attribute (#14060) Changed paths: M ext/dom/html5_parser.c Diff: diff --git a/ext/dom/html5_parser.c b/ext/dom/html5_parser.c index 87e62d6fd88d..13fbbe58149f 100644 --- a/ext/dom/html5_parser.c +++ b/ext/dom/html5_parser.c @@ -226,7 +226,7 @@ static lexbor_libxml2_bridge_status lexbor_libxml2_bridge_convert( last_added_attr = lxml_attr; /* xmlIsID does some other stuff too that is irrelevant here. */ - if (local_name_length == 2 && local_name[0] == 'i' && local_name[1] == 'd') { + if (local_name_length == 2 && local_name[0] == 'i' && local_name[1] == 'd' && attr->node.ns == LXB_NS_HTML) { xmlAddID(NULL, lxml_doc, value, lxml_attr); }

« previous php.cvs (#128241) next »