Implement a stub xtf element for bind, so that id attribute mapping works without special hacks in the document.
git-svn-id: svn://10.0.0.236/branches/FORMS_20040722_BRANCH@163068 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
|
||||
#include "nsXFormsElementFactory.h"
|
||||
#include "nsXFormsModelElement.h"
|
||||
#include "nsXFormsStubElement.h"
|
||||
#include "nsString.h"
|
||||
|
||||
NS_HIDDEN_(nsresult) NS_NewXFormsInputElement(nsIXTFElement **aElement);
|
||||
@@ -50,6 +51,8 @@ nsXFormsElementFactory::CreateElement(const nsAString& aTagName,
|
||||
{
|
||||
if (aTagName.Equals(NS_LITERAL_STRING("model")))
|
||||
return NS_NewXFormsModelElement(aElement);
|
||||
else if (aTagName.Equals(NS_LITERAL_STRING("bind")))
|
||||
return NS_NewXFormsStubElement(aElement);
|
||||
else if (aTagName.Equals(NS_LITERAL_STRING("input")))
|
||||
return NS_NewXFormsInputElement(aElement);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user