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:
parent
5669a14970
commit
438f039bda
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user