commit | 5fbacbec06e07f8f6d91efeb6b394eb07aa71ddd | [log] [tgz] |
---|---|---|
author | Lee Thomason (grinliz) <leethomason@gmail.com> | Sat Sep 08 21:40:53 2012 -0700 |
committer | Lee Thomason (grinliz) <leethomason@gmail.com> | Sat Sep 08 21:40:53 2012 -0700 |
tree | 3c5028a4680cd2e83c170fbdd214aa02054bb20f | |
parent | 4dbe869cd7e650bfba4588aefb879556668e8c52 [diff] [blame] |
fix name parsing to accept additional lead characters
diff --git a/xmltest.cpp b/xmltest.cpp index 5077c25..17642f5 100644 --- a/xmltest.cpp +++ b/xmltest.cpp
@@ -940,6 +940,12 @@ XMLTest( "QueryBoolText", boolValue, true, false ); } + { + const char* xml = "<element><_sub/><:sub/><sub:sub/><sub-sub/></element>"; + XMLDocument doc; + doc.Parse( xml ); + XMLTest( "Non-alpha element lead letter parses.", doc.Error(), false ); + } // ----------- Performance tracking -------------- {