Add test for lead non-alpha characters in attribute names.

This commit is contained in:
Martinsh Shaiters 2013-01-26 20:15:44 +02:00
parent 980e535aae
commit 23e7ae6085
1 changed files with 7 additions and 0 deletions

View File

@ -1033,6 +1033,13 @@ int main( int /*argc*/, const char ** /*argv*/ )
doc.Parse( xml );
XMLTest( "Non-alpha element lead letter parses.", doc.Error(), false );
}
{
const char* xml = "<element _attr1=\"foo\" :attr2=\"bar\"></element>";
XMLDocument doc;
doc.Parse(xml);
XMLTest("Non-alpha attribute lead character parses.", doc.Error(), false);
}
{
const char* xml = "<element/>WOA THIS ISN'T GOING TO PARSE";