Bug 515255 - Comment out assertion until <keygen> and <output> are supported as form-associated elements. r=bnewman.

This commit is contained in:
Henri Sivonen
2009-10-21 15:28:18 +03:00
parent 2dd50c65c8
commit e2fe9959fb

View File

@@ -255,10 +255,11 @@ nsHtml5TreeOperation::Perform(nsHtml5TreeOpExecutor* aBuilder)
nsIContent* node = *(mOne.node);
nsIContent* parent = *(mTwo.node);
nsCOMPtr<nsIFormControl> formControl(do_QueryInterface(node));
NS_ASSERTION(formControl, "Form-associated element did not implement nsIFormControl.");
// NS_ASSERTION(formControl, "Form-associated element did not implement nsIFormControl.");
// TODO: uncomment the above line when <output> (bug 346485) and <keygen> (bug 101019) are supported by Gecko
nsCOMPtr<nsIDOMHTMLFormElement> formElement(do_QueryInterface(parent));
NS_ASSERTION(formElement, "The form element doesn't implement nsIDOMHTMLFormElement.");
if (formControl) { // avoid crashing on <output>
if (formControl) { // avoid crashing on <output> and <keygen>
formControl->SetForm(formElement);
}
return rv;