added DTD mode

git-svn-id: svn://10.0.0.236/trunk@9092 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterl%netscape.com
1998-09-02 02:07:42 +00:00
parent 60f33a4ff1
commit c1e4733c3b
4 changed files with 40 additions and 2 deletions

View File

@@ -26,6 +26,7 @@
#include "plhash.h"
class nsIHTMLStyleSheet;
class nsIHTMLCSSStyleSheet;
class nsContentList;
class nsIContentViewerContainer;
class nsIParser;
@@ -64,6 +65,9 @@ public:
NS_IMETHOD GetAttributeStyleSheet(nsIHTMLStyleSheet** aStyleSheet);
NS_IMETHOD GetDTDMode(nsDTDMode& aMode);
NS_IMETHOD SetDTDMode(nsDTDMode aMode);
// nsIDOMDocument interface
NS_IMETHOD GetMasterDoc(nsIDOMDocument **aDocument)
{ return nsDocument::GetMasterDoc(aDocument); }
@@ -150,7 +154,9 @@ protected:
static PRBool MatchLinks(nsIContent *aContent);
static PRBool MatchAnchors(nsIContent *aContent);
nsIHTMLStyleSheet* mAttrStyleSheet;
nsIHTMLStyleSheet* mAttrStyleSheet;
nsIHTMLCSSStyleSheet* mStyleAttrStyleSheet;
nsDTDMode mDTDMode;
nsVoidArray mImageMaps;
nsVoidArray mTempForms; // XXX Temporary

View File

@@ -28,6 +28,12 @@ class nsIHTMLStyleSheet;
#define NS_IHTMLDOCUMENT_IID \
{0xb2a848b0, 0xd0a9, 0x11d1, {0x89, 0xb1, 0x00, 0x60, 0x08, 0x91, 0x1b, 0x81}}
enum nsDTDMode {
eDTDMode_NoQuirks = 0,
eDTDMode_Nav = 1,
eDTDMode_Other = 2
};
/**
* HTML document extensions to nsIDocument.
*/
@@ -51,6 +57,13 @@ public:
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
NS_IMETHOD GetAttributeStyleSheet(nsIHTMLStyleSheet** aStyleSheet) = 0;
/**
* Access DTD compatibility mode for this document
*/
NS_IMETHOD GetDTDMode(nsDTDMode& aMode) = 0;
NS_IMETHOD SetDTDMode(nsDTDMode aMode) = 0;
};
#endif /* nsIHTMLDocument_h___ */

View File

@@ -26,6 +26,7 @@
#include "plhash.h"
class nsIHTMLStyleSheet;
class nsIHTMLCSSStyleSheet;
class nsContentList;
class nsIContentViewerContainer;
class nsIParser;
@@ -64,6 +65,9 @@ public:
NS_IMETHOD GetAttributeStyleSheet(nsIHTMLStyleSheet** aStyleSheet);
NS_IMETHOD GetDTDMode(nsDTDMode& aMode);
NS_IMETHOD SetDTDMode(nsDTDMode aMode);
// nsIDOMDocument interface
NS_IMETHOD GetMasterDoc(nsIDOMDocument **aDocument)
{ return nsDocument::GetMasterDoc(aDocument); }
@@ -150,7 +154,9 @@ protected:
static PRBool MatchLinks(nsIContent *aContent);
static PRBool MatchAnchors(nsIContent *aContent);
nsIHTMLStyleSheet* mAttrStyleSheet;
nsIHTMLStyleSheet* mAttrStyleSheet;
nsIHTMLCSSStyleSheet* mStyleAttrStyleSheet;
nsDTDMode mDTDMode;
nsVoidArray mImageMaps;
nsVoidArray mTempForms; // XXX Temporary

View File

@@ -28,6 +28,12 @@ class nsIHTMLStyleSheet;
#define NS_IHTMLDOCUMENT_IID \
{0xb2a848b0, 0xd0a9, 0x11d1, {0x89, 0xb1, 0x00, 0x60, 0x08, 0x91, 0x1b, 0x81}}
enum nsDTDMode {
eDTDMode_NoQuirks = 0,
eDTDMode_Nav = 1,
eDTDMode_Other = 2
};
/**
* HTML document extensions to nsIDocument.
*/
@@ -51,6 +57,13 @@ public:
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
NS_IMETHOD GetAttributeStyleSheet(nsIHTMLStyleSheet** aStyleSheet) = 0;
/**
* Access DTD compatibility mode for this document
*/
NS_IMETHOD GetDTDMode(nsDTDMode& aMode) = 0;
NS_IMETHOD SetDTDMode(nsDTDMode aMode) = 0;
};
#endif /* nsIHTMLDocument_h___ */