зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
6dbd307e68
Коммит
91914faed5
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче