diff options
Diffstat (limited to 'src/treebuilder/in_foreign_content.c')
-rw-r--r-- | src/treebuilder/in_foreign_content.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/treebuilder/in_foreign_content.c b/src/treebuilder/in_foreign_content.c index fa76a09..d53be1f 100644 --- a/src/treebuilder/in_foreign_content.c +++ b/src/treebuilder/in_foreign_content.c @@ -275,8 +275,9 @@ void adjust_foreign_attributes(hubbub_treebuilder *treebuilder, attr->name.len -= 4; } } else if (hubbub_string_match(name, attr->name.len, - S("xmlns")) || - hubbub_string_match(name, attr->name.len, + S("xmlns"))) { + attr->ns = HUBBUB_NS_XMLNS; + } else if (hubbub_string_match(name, attr->name.len, S("xmlns:xlink"))) { attr->ns = HUBBUB_NS_XMLNS; attr->name.ptr += 6; |