Added XML display support. Creation of XML elements through the DOM

This commit is contained in:
vidur%netscape.com 1998-11-11 22:03:59 +00:00
parent 21b75c4ff3
commit e0004fcce5
2 changed files with 22 additions and 0 deletions

View File

@ -73,6 +73,12 @@ public:
nsISupports *aParent,
void **aReturn)=0;
NS_IMETHOD NewScriptXMLElement(const nsString &aTagName,
nsIScriptContext *aContext,
nsISupports *aElement,
nsISupports *aParent,
void **aReturn)=0;
NS_IMETHOD NewScriptHTMLCollection(nsIScriptContext *aContext,
nsISupports *aCollection,
nsISupports *aParent,

View File

@ -237,6 +237,12 @@ public:
nsISupports *aElement,
nsISupports *aParent,
void **aReturn);
NS_IMETHOD NewScriptXMLElement(const nsString &aTagName,
nsIScriptContext *aContext,
nsISupports *aElement,
nsISupports *aParent,
void **aReturn);
NS_IMETHOD NewScriptHTMLCollection(nsIScriptContext *aContext,
nsISupports *aCollection,
@ -483,6 +489,16 @@ nsDOMScriptObjectFactory::NewScriptElement(const nsString &aTagName,
}
}
NS_IMETHODIMP
nsDOMScriptObjectFactory::NewScriptXMLElement(const nsString &aTagName,
nsIScriptContext *aContext,
nsISupports *aElement,
nsISupports *aParent,
void **aReturn)
{
return NS_NewScriptElement(aContext, aElement, aParent, aReturn);
}
NS_IMETHODIMP
nsDOMScriptObjectFactory::NewScriptHTMLCollection(nsIScriptContext *aContext,
nsISupports *aCollection,