mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -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) {
|
foreachsafe (fc, next, form_controls) {
|
||||||
|
|
||||||
foreach (form, document->forms) {
|
foreach (form, document->forms) {
|
||||||
if (fc->position < form->form_num
|
if (form->form_num <= fc->position
|
||||||
|| form->form_end < fc->position)
|
&& fc->position <= form->form_end)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
fc->form = form;
|
fc->form = form;
|
||||||
|
Loading…
Reference in New Issue
Block a user