Changed default text handling. Text containing only whitespace is now output, where previously it was suppressed.

All Modes tests now pass.
This commit is contained in:
jez 2008-08-01 19:33:52 +01:00
parent 6a2101d6cb
commit 53c647c1a1

View file

@ -233,6 +233,8 @@ private:
case DOM::Node<std::string>::ATTRIBUTE_NODE:
case DOM::Node<std::string>::TEXT_NODE:
case DOM::Node<std::string>::CDATA_SECTION_NODE:
context.sink().characters(node.getNodeValue());
/*
{
const std::string& ch = node.getNodeValue();
for(std::string::const_iterator i = ch.begin(), e = ch.end(); i != e; ++i)
@ -242,6 +244,7 @@ private:
return;
} // if ...
}
*/
break;
default:
;// nothing!