Commit 32dfba3a authored by Jonathon Duerig's avatar Jonathon Duerig
Browse files

BUGFIX: GetText wasn't handling elements with text properly.

parent 21537b2e
......@@ -232,10 +232,11 @@ sub GetText($$)
if (! defined($child)) {
$child = FindFirst('@'.$name, $node);
}
if (! defined($child)) {
$child = FindFirst('n:'.$name, $node);
}
if (defined($child)) {
$result = $child->textContent();
} else {
$child = FindFirst('n:'.$name, $node);
}
return $result;
}
......
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