Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3db3e376
Commit
3db3e376
authored
Sep 25, 2023
by
Jactry Zeng
Committed by
Alexandre Julliard
Sep 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Add ValidateOnParse support for IXMLDOMDocument3_{get,set}Property().
parent
7995d152
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
domdoc.c
dlls/msxml3/domdoc.c
+22
-0
No files found.
dlls/msxml3/domdoc.c
View file @
3db3e376
...
...
@@ -68,6 +68,7 @@ static const WCHAR PropertyResolveExternalsW[] = {'R','e','s','o','l','v','e','E
static
const
WCHAR
PropertyAllowXsltScriptW
[]
=
{
'A'
,
'l'
,
'l'
,
'o'
,
'w'
,
'X'
,
's'
,
'l'
,
't'
,
'S'
,
'c'
,
'r'
,
'i'
,
'p'
,
't'
,
0
};
static
const
WCHAR
PropertyAllowDocumentFunctionW
[]
=
{
'A'
,
'l'
,
'l'
,
'o'
,
'w'
,
'D'
,
'o'
,
'c'
,
'u'
,
'm'
,
'e'
,
'n'
,
't'
,
'F'
,
'u'
,
'n'
,
'c'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
PropertyNormalizeAttributeValuesW
[]
=
{
'N'
,
'o'
,
'r'
,
'm'
,
'a'
,
'l'
,
'i'
,
'z'
,
'e'
,
'A'
,
't'
,
't'
,
'r'
,
'i'
,
'b'
,
'u'
,
't'
,
'e'
,
'V'
,
'a'
,
'l'
,
'u'
,
'e'
,
's'
,
0
};
static
const
WCHAR
PropertyValidateOnParse
[]
=
L"ValidateOnParse"
;
/* Anything that passes the test_get_ownerDocument()
* tests can go here (data shared between all instances).
...
...
@@ -3189,6 +3190,16 @@ static HRESULT WINAPI domdoc_setProperty(
VariantClear
(
&
varStr
);
return
hr
;
}
else
if
(
lstrcmpiW
(
p
,
PropertyValidateOnParse
)
==
0
)
{
if
(
This
->
properties
->
version
<
MSXML4
)
return
E_FAIL
;
else
{
This
->
properties
->
validating
=
V_BOOL
(
&
value
);
return
S_OK
;
}
}
else
if
(
lstrcmpiW
(
p
,
PropertyProhibitDTDW
)
==
0
||
lstrcmpiW
(
p
,
PropertyNewParserW
)
==
0
||
lstrcmpiW
(
p
,
PropertyResolveExternalsW
)
==
0
||
...
...
@@ -3260,6 +3271,17 @@ static HRESULT WINAPI domdoc_getProperty(
heap_free
(
rebuiltStr
);
return
S_OK
;
}
else
if
(
lstrcmpiW
(
p
,
PropertyValidateOnParse
)
==
0
)
{
if
(
This
->
properties
->
version
<
MSXML4
)
return
E_FAIL
;
else
{
V_VT
(
var
)
=
VT_BOOL
;
V_BOOL
(
var
)
=
This
->
properties
->
validating
;
return
S_OK
;
}
}
FIXME
(
"Unknown property %s
\n
"
,
debugstr_w
(
p
));
return
E_FAIL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment