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

--HG--
extra : rebase_source : c5595bca53a47b4b2617a803b989247340ee9cdf
This commit is contained in:
Henri Sivonen 2009-10-21 15:28:18 +03:00
Родитель 6dbd307e68
Коммит 91914faed5
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

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