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
9a5da56f
Commit
9a5da56f
authored
Apr 17, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Set namespace-prefixes on by default.
parent
8dcd01bb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
saxreader.c
dlls/msxml3/saxreader.c
+9
-1
saxreader.c
dlls/msxml3/tests/saxreader.c
+4
-0
No files found.
dlls/msxml3/saxreader.c
View file @
9a5da56f
...
...
@@ -241,6 +241,11 @@ static const WCHAR FeatureNamespacesW[] = {
'/'
,
'n'
,
'a'
,
'm'
,
'e'
,
's'
,
'p'
,
'a'
,
'c'
,
'e'
,
's'
,
0
};
static
const
WCHAR
FeatureNamespacePrefixesW
[]
=
{
'h'
,
't'
,
't'
,
'p'
,
':'
,
'/'
,
'/'
,
'x'
,
'm'
,
'l'
,
'.'
,
'o'
,
'r'
,
'g'
,
'/'
,
's'
,
'a'
,
'x'
,
'/'
,
'f'
,
'e'
,
'a'
,
't'
,
'u'
,
'r'
,
'e'
,
's'
,
'/'
,
'n'
,
'a'
,
'm'
,
'e'
,
's'
,
'p'
,
'a'
,
'c'
,
'e'
,
'-'
,
'p'
,
'r'
,
'e'
,
'f'
,
'i'
,
'x'
,
'e'
,
's'
,
0
};
static
inline
HRESULT
set_feature_value
(
saxreader
*
reader
,
saxreader_features
feature
,
VARIANT_BOOL
value
)
{
if
(
value
==
VARIANT_TRUE
)
...
...
@@ -2752,6 +2757,9 @@ static HRESULT WINAPI saxxmlreader_getFeature(
if
(
!
strcmpW
(
FeatureNamespacesW
,
feature
))
return
get_feature_value
(
This
,
Namespaces
,
value
);
if
(
!
strcmpW
(
FeatureNamespacePrefixesW
,
feature
))
return
get_feature_value
(
This
,
NamespacePrefixes
,
value
);
FIXME
(
"(%p)->(%s %p) stub
\n
"
,
This
,
debugstr_w
(
feature
),
value
);
return
E_NOTIMPL
;
}
...
...
@@ -3188,7 +3196,7 @@ HRESULT SAXXMLReader_create(MSXML_VERSION version, IUnknown *outer, LPVOID *ppOb
reader
->
pool
.
pool
=
NULL
;
reader
->
pool
.
index
=
0
;
reader
->
pool
.
len
=
0
;
reader
->
features
=
Namespaces
;
reader
->
features
=
Namespaces
|
NamespacePrefixes
;
reader
->
version
=
version
;
init_dispex
(
&
reader
->
dispex
,
(
IUnknown
*
)
&
reader
->
IVBSAXXMLReader_iface
,
&
saxreader_dispex
);
...
...
dlls/msxml3/tests/saxreader.c
View file @
9a5da56f
...
...
@@ -2109,7 +2109,11 @@ static void test_saxreader_features(void)
value
=
0xc
;
hr
=
ISAXXMLReader_getFeature
(
reader
,
_bstr_
(
"http://xml.org/sax/features/namespaces"
),
&
value
);
EXPECT_HR
(
hr
,
S_OK
);
ok
(
entry
->
value
==
value
,
"%s: got wrong default value %x, expected %x
\n
"
,
entry
->
clsid
,
value
,
entry
->
value
);
value
=
0xc
;
hr
=
ISAXXMLReader_getFeature
(
reader
,
_bstr_
(
"http://xml.org/sax/features/namespace-prefixes"
),
&
value
);
EXPECT_HR
(
hr
,
S_OK
);
ok
(
entry
->
value
==
value
,
"%s: got wrong default value %x, expected %x
\n
"
,
entry
->
clsid
,
value
,
entry
->
value
);
ISAXXMLReader_Release
(
reader
);
...
...
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