msxml3: Apostrophe is never escaped by writer.

This commit is contained in:
Nikolay Sivov 2013-08-20 12:49:54 +04:00 committed by Alexandre Julliard
parent f725c989e9
commit 610320864b
1 changed files with 9 additions and 9 deletions

View File

@ -1553,8 +1553,8 @@ static HRESULT WINAPI isaxattributes_getValue(ISAXAttributes* iface, int index,
{ {
static const WCHAR attrvaluesW[][10] = {{'a','1','j','u','n','k',0}, static const WCHAR attrvaluesW[][10] = {{'a','1','j','u','n','k',0},
{'a','2','j','u','n','k',0}, {'a','2','j','u','n','k',0},
{'<','&','"','>',0}}; {'<','&','"','>','\'',0}};
static const int attrvalueslen[] = {2, 2, 4}; static const int attrvalueslen[] = {2, 2, 5};
ok(index >= 0 && index <= 2, "invalid index received %d\n", index); ok(index >= 0 && index <= 2, "invalid index received %d\n", index);
@ -3331,9 +3331,9 @@ struct writer_startendelement_t {
ISAXAttributes *attr; ISAXAttributes *attr;
}; };
static const char startelement_xml[] = "<uri:local a:attr1=\"a1\" attr2=\"a2\" attr3=\"&lt;&amp;&quot;&gt;\">"; static const char startelement_xml[] = "<uri:local a:attr1=\"a1\" attr2=\"a2\" attr3=\"&lt;&amp;&quot;&gt;\'\">";
static const char startendelement_xml[] = "<uri:local a:attr1=\"a1\" attr2=\"a2\" attr3=\"&lt;&amp;&quot;&gt;\"/>"; static const char startendelement_xml[] = "<uri:local a:attr1=\"a1\" attr2=\"a2\" attr3=\"&lt;&amp;&quot;&gt;\'\"/>";
static const char startendelement_noescape_xml[] = "<uri:local a:attr1=\"a1\" attr2=\"a2\" attr3=\"<&\">\"/>"; static const char startendelement_noescape_xml[] = "<uri:local a:attr1=\"a1\" attr2=\"a2\" attr3=\"<&\">\'\"/>";
static const struct writer_startendelement_t writer_startendelement[] = { static const struct writer_startendelement_t writer_startendelement[] = {
/* 0 */ /* 0 */
@ -3751,10 +3751,10 @@ struct writer_characters_t {
}; };
static const struct writer_characters_t writer_characters[] = { static const struct writer_characters_t writer_characters[] = {
{ &CLSID_MXXMLWriter, "< > & \"", "&lt; &gt; &amp; \"" }, { &CLSID_MXXMLWriter, "< > & \" \'", "&lt; &gt; &amp; \" \'" },
{ &CLSID_MXXMLWriter30, "< > & \"", "&lt; &gt; &amp; \"" }, { &CLSID_MXXMLWriter30, "< > & \" \'", "&lt; &gt; &amp; \" \'" },
{ &CLSID_MXXMLWriter40, "< > & \"", "&lt; &gt; &amp; \"" }, { &CLSID_MXXMLWriter40, "< > & \" \'", "&lt; &gt; &amp; \" \'" },
{ &CLSID_MXXMLWriter60, "< > & \"", "&lt; &gt; &amp; \"" }, { &CLSID_MXXMLWriter60, "< > & \" \'", "&lt; &gt; &amp; \" \'" },
{ NULL } { NULL }
}; };