Bug 515255 - Comment out assertion until <keygen> and <output> are supported as form-associated elements. r=bnewman.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user