mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -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
55c00e0a12
commit
00037979d2
@ -1837,8 +1837,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…
x
Reference in New Issue
Block a user