Adjust nsParser to implement the HTML5 ParseFragment stub
authorHenri Sivonen <hsivonen@iki.fi>
Thu, 23 Apr 2009 13:18:19 +0300
changeset 26760 6cde8eebfed4
parent 26759 435227e1a5a9
child 26761 24889d8af1cd
push id50
push userhsivonen@iki.fi
push dateThu, 23 Apr 2009 12:21:11 +0000
milestone1.9.2a1pre
Adjust nsParser to implement the HTML5 ParseFragment stub
parser/htmlparser/src/nsParser.cpp
parser/htmlparser/src/nsParser.h
--- a/parser/htmlparser/src/nsParser.cpp
+++ b/parser/htmlparser/src/nsParser.cpp
@@ -2053,17 +2053,18 @@ nsParser::Parse(const nsAString& aSource
 
   return result;
 }
 
 NS_IMETHODIMP
 nsParser::ParseFragment(const nsAString& aSourceBuffer,
                         nsISupports* aTargetNode,
                         nsIAtom* aContextLocalName,
-                        PRInt32 aContextNamespace)
+                        PRInt32 aContextNamespace,
+                        PRBool aQuirks)
 {
   return NS_ERROR_NOT_IMPLEMENTED;
 }
 
 NS_IMETHODIMP
 nsParser::ParseFragment(const nsAString& aSourceBuffer,
                         void* aKey,
                         nsTArray<nsString>& aTagStack,
--- a/parser/htmlparser/src/nsParser.h
+++ b/parser/htmlparser/src/nsParser.h
@@ -222,17 +222,18 @@ class nsParser : public nsIParser,
                              nsTArray<nsString>& aTagStack,
                              PRBool aXMLMode,
                              const nsACString& aContentType,
                              nsDTDMode aMode = eDTDMode_autodetect);
 
     NS_IMETHOD ParseFragment(const nsAString& aSourceBuffer,
                              nsISupports* aTargetNode,
                              nsIAtom* aContextLocalName,
-                             PRInt32 aContextNamespace);
+                             PRInt32 aContextNamespace,
+                             PRBool aQuirks);
                              
     /**
      * This method gets called when the tokens have been consumed, and it's time
      * to build the model via the content sink.
      * @update	gess5/11/98
      * @return  YES if model building went well -- NO otherwise.
      */
     NS_IMETHOD BuildModel(void);