Commit 492ba229 authored by Jonathon Duerig's avatar Jonathon Duerig
Browse files

Workaround for library bug. Adding an attribute with a namespace causes the...

Workaround for library bug. Adding an attribute with a namespace causes the wrong prefix in some circumstances.
parent 560f3cce
......@@ -215,7 +215,9 @@ sub SetText($$$)
} elsif ($node->nodeType() == XML_ELEMENT_NODE) {
my $ns = $node->namespaceURI();
if (defined($ns)) {
$node->setAttributeNS($ns, "rs:$name", $text);
# TODO: Submit bug report for the library. This call is bugged.
# $node->setAttributeNS($ns, "rs:$name", $text);
$node->setAttribute($name, $text);
} else {
$node->setAttribute($name, $text);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment