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
6614df04
Commit
6614df04
authored
Jul 05, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Set compatibility mode based on doctype.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
73bdf9d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
mutation.c
dlls/mshtml/mutation.c
+11
-0
nsiface.idl
dlls/mshtml/nsiface.idl
+14
-1
No files found.
dlls/mshtml/mutation.c
View file @
6614df04
...
@@ -729,6 +729,17 @@ static void NSAPI nsDocumentObserver_BindToDocument(nsIDocumentObserver *iface,
...
@@ -729,6 +729,17 @@ static void NSAPI nsDocumentObserver_BindToDocument(nsIDocumentObserver *iface,
return
;
return
;
}
}
if
(
This
->
document_mode
==
COMPAT_MODE_QUIRKS
)
{
nsIDOMDocumentType
*
nsdoctype
;
nsres
=
nsIContent_QueryInterface
(
aContent
,
&
IID_nsIDOMDocumentType
,
(
void
**
)
&
nsdoctype
);
if
(
NS_SUCCEEDED
(
nsres
))
{
TRACE
(
"doctype node
\n
"
);
/* FIXME: We should set it to something higher for internet zone. */
set_document_mode
(
This
,
COMPAT_MODE_IE7
);
nsIDOMDocumentType_Release
(
nsdoctype
);
}
}
nsres
=
nsIContent_QueryInterface
(
aContent
,
&
IID_nsIDOMHTMLElement
,
(
void
**
)
&
nselem
);
nsres
=
nsIContent_QueryInterface
(
aContent
,
&
IID_nsIDOMHTMLElement
,
(
void
**
)
&
nselem
);
if
(
NS_FAILED
(
nsres
))
if
(
NS_FAILED
(
nsres
))
return
;
return
;
...
...
dlls/mshtml/nsiface.idl
View file @
6614df04
...
@@ -134,7 +134,6 @@ typedef nsISupports nsISHistory;
...
@@ -134,7 +134,6 @@ typedef nsISupports nsISHistory;
typedef nsISupports nsIWidget;
typedef nsISupports nsIWidget;
typedef nsISupports nsIPrompt;
typedef nsISupports nsIPrompt;
typedef nsISupports nsIAuthPrompt;
typedef nsISupports nsIAuthPrompt;
typedef nsISupports nsIDOMDocumentType;
typedef nsISupports nsIDOMDOMImplementation;
typedef nsISupports nsIDOMDOMImplementation;
typedef nsISupports nsIDOMCDATASection;
typedef nsISupports nsIDOMCDATASection;
typedef nsISupports nsIDOMProcessingInstruction;
typedef nsISupports nsIDOMProcessingInstruction;
...
@@ -1201,6 +1200,20 @@ interface nsIDOMComment : nsIDOMCharacterData
...
@@ -1201,6 +1200,20 @@ interface nsIDOMComment : nsIDOMCharacterData
[
[
object,
object,
uuid(cd7467b9-0f26-4787-a359-66e80ba8db92),
local
]
interface nsIDOMDocumentType : nsIDOMNode
{
nsresult GetName(nsAString *aName);
nsresult GetPublicId(nsAString *aPublicId);
nsresult GetSystemId(nsAString *aSystemId);
nsresult GetInternalSubset(nsAString *aInternalSubset);
nsresult MozRemove();
}
[
object,
uuid(48eb8d72-95bb-402e-a8fc-f2b187abcbdb),
uuid(48eb8d72-95bb-402e-a8fc-f2b187abcbdb),
local
local
]
]
...
...
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