mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-17 18:12:04 +01:00
Updated NodeTest to match CDATA sections as well as text nodes.
This commit is contained in:
parent
5e1868b525
commit
bc233d68ca
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ public:
|
|||
|
||||
virtual bool operator()(const DOM::Node<string_type, string_adaptor>& node) const
|
||||
{
|
||||
return node.getNodeType() == DOM::Node<string_type, string_adaptor>::TEXT_NODE;
|
||||
return (node.getNodeType() == DOM::Node<string_type, string_adaptor>::TEXT_NODE) || (node.getNodeType() == DOM::Node<string_type, string_adaptor>::CDATA_SECTION_NODE);
|
||||
} // test
|
||||
}; // class TextNodeTest
|
||||
|
||||
|
|
Loading…
Reference in a new issue