Commit 682d4f14 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

xmllite: Allow prefixed element names.

parent 9b98d69e
...@@ -2233,9 +2233,7 @@ static HRESULT reader_parse_element(xmlreader *reader) ...@@ -2233,9 +2233,7 @@ static HRESULT reader_parse_element(xmlreader *reader)
hr = reader_parse_stag(reader, &prefix, &local, &qname, &empty); hr = reader_parse_stag(reader, &prefix, &local, &qname, &empty);
if (FAILED(hr)) return hr; if (FAILED(hr)) return hr;
/* FIXME: need to check for defined namespace to reject invalid prefix, /* FIXME: need to check for defined namespace to reject invalid prefix */
currently reject all prefixes */
if (prefix.len) return NC_E_UNDECLAREDPREFIX;
/* if we got empty element and stack is empty go straight to Misc */ /* if we got empty element and stack is empty go straight to Misc */
if (empty && list_empty(&reader->elements)) if (empty && list_empty(&reader->elements))
......
...@@ -1362,6 +1362,7 @@ static void test_read_element(void) ...@@ -1362,6 +1362,7 @@ static void test_read_element(void)
if (test->hr_broken) if (test->hr_broken)
ok(hr == test->hr || broken(hr == test->hr_broken), "got %08x for %s\n", hr, test->xml); ok(hr == test->hr || broken(hr == test->hr_broken), "got %08x for %s\n", hr, test->xml);
else else
todo_wine_if(test->hr == NC_E_UNDECLAREDPREFIX)
ok(hr == test->hr, "got %08x for %s\n", hr, test->xml); ok(hr == test->hr, "got %08x for %s\n", hr, test->xml);
if (hr == S_OK) if (hr == S_OK)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment