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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user