On Tue May 30 16:05:12 2023 +0000, Nikolay Sivov wrote:
This could use the same sequence to validate NCName that the reader is using. My understanding is that WriteName() does not accept qualified names, but you don't have such tests.
I'm not sure this is NCName because it accepts colons, just not more than one colon.
Test passes: ``` hr = IXmlWriter_WriteName(writer, L"na:me"); ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); ```
More than one colon gets rejected, test passes: ``` hr = IXmlWriter_WriteName(writer, L"a:a:a"); ok(hr == WC_E_NAMECHARACTER, "Unexpected hr %#lx.\n", hr); ```
This led me to believe a qualified name is expected.