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
134ac92527
commit
37c04db1d6
@ -1597,8 +1597,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