Applied a change necessary for JAWS.

The Flexible Web component of JAWS needs Arabica to be more forgiving of
invalid XML since it generates XML from HTML.
This commit is contained in:
Ben Key 2016-04-03 04:32:27 -05:00 committed by BenKeyFSI
parent 99fd2cf41a
commit 33d52bf39b

View file

@ -173,7 +173,8 @@ int prefix_mapper(std::basic_ostream<charT, traitsT>& stream,
{
//DOM::Node<stringT, string_adaptorT> attr = attrs.getNamedItem(*a);
const DOM::Node<stringT, string_adaptorT> attr = attrNodes[a];
if(isXmlns<stringT, string_adaptorT, charT>(attr.getNodeName()) ||
if(attr.getNodeName().empty() ||
isXmlns<stringT, string_adaptorT, charT>(attr.getNodeName()) ||
isXmlns<stringT, string_adaptorT, charT>(attr.getPrefix()))
continue;
stream << UnicodeT::SPACE;