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:
bryner%brianryner.com
2004-10-01 01:21:25 +00:00
parent 5a39d0c1f2
commit c3ff6e10b1
4 changed files with 249 additions and 0 deletions

View File

@@ -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);