1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

check_html_form_hierarchy: Old code was buggy.

Old code caused the assertion failure on the shutdownday's page.
This commit is contained in:
Witold Filipczyk 2007-03-23 13:16:39 +01:00 committed by Kalle Olavi Niemitalo
parent 5669a14970
commit 438f039bda

View File

@ -1858,8 +1858,8 @@ check_html_form_hierarchy(struct part *part)
foreachsafe (fc, next, form_controls) {
foreach (form, document->forms) {
if (fc->position < form->form_num
|| form->form_end < fc->position)
if (form->form_num <= fc->position
&& fc->position <= form->form_end)
continue;
fc->form = form;