1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Be specific for the namespace of the id attribute (#14060)

This commit is contained in:
Niels Dossche
2024-04-28 11:40:54 +02:00
committed by GitHub
parent a86e668764
commit b0da6ed6ee

View File

@@ -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);
}