diff --git a/htmlparser/src/nsHTMLNullSink.cpp b/htmlparser/src/nsHTMLNullSink.cpp
index 0f0dc8bb4f2d..066a112c0e84 100644
--- a/htmlparser/src/nsHTMLNullSink.cpp
+++ b/htmlparser/src/nsHTMLNullSink.cpp
@@ -68,6 +68,8 @@ public:
NS_IMETHOD CloseFrameset(const nsIParserNode& aNode);
NS_IMETHOD DoFragment(PRBool aFlag);
+ NS_IMETHOD BeginContext(PRInt32 aPosition);
+ NS_IMETHOD EndContext(PRInt32 aPosition);
protected:
PRInt32 mNodeStack[100];
@@ -596,4 +598,29 @@ nsresult nsHTMLNullSink::DoFragment(PRBool aFlag)
return NS_OK;
}
+/**
+ * This gets called when handling illegal contents, especially
+ * in dealing with tables. This method creates a new context.
+ *
+ * @update 04/04/99 harishd
+ * @param aPosition - The position from where the new context begins.
+ */
+NS_IMETHODIMP
+nsHTMLNullSink::BeginContext(PRInt32 aPosition)
+{
+ return NS_OK;
+}
+
+/**
+ * This method terminates any new context that got created by
+ * BeginContext and switches back to the main context.
+ *
+ * @update 04/04/99 harishd
+ * @param aPosition - Validates the end of a context.
+ */
+NS_IMETHODIMP
+nsHTMLNullSink::EndContext(PRInt32 aPosition)
+{
+ return NS_OK;
+}
diff --git a/parser/htmlparser/src/nsHTMLNullSink.cpp b/parser/htmlparser/src/nsHTMLNullSink.cpp
index 0f0dc8bb4f2d..066a112c0e84 100644
--- a/parser/htmlparser/src/nsHTMLNullSink.cpp
+++ b/parser/htmlparser/src/nsHTMLNullSink.cpp
@@ -68,6 +68,8 @@ public:
NS_IMETHOD CloseFrameset(const nsIParserNode& aNode);
NS_IMETHOD DoFragment(PRBool aFlag);
+ NS_IMETHOD BeginContext(PRInt32 aPosition);
+ NS_IMETHOD EndContext(PRInt32 aPosition);
protected:
PRInt32 mNodeStack[100];
@@ -596,4 +598,29 @@ nsresult nsHTMLNullSink::DoFragment(PRBool aFlag)
return NS_OK;
}
+/**
+ * This gets called when handling illegal contents, especially
+ * in dealing with tables. This method creates a new context.
+ *
+ * @update 04/04/99 harishd
+ * @param aPosition - The position from where the new context begins.
+ */
+NS_IMETHODIMP
+nsHTMLNullSink::BeginContext(PRInt32 aPosition)
+{
+ return NS_OK;
+}
+
+/**
+ * This method terminates any new context that got created by
+ * BeginContext and switches back to the main context.
+ *
+ * @update 04/04/99 harishd
+ * @param aPosition - Validates the end of a context.
+ */
+NS_IMETHODIMP
+nsHTMLNullSink::EndContext(PRInt32 aPosition)
+{
+ return NS_OK;
+}