creativecommons/legaldb

[Bug] Missing Form Method on <form> Element in _search.html

Closed this issue · 0 comments

Description

The method attribute is incorrectly placed on a div instead of the form element in the search functionality. This can lead to unexpected behavior during form submission.

Reproduction

  1. Navigate to the _search.html file.
  2. Inspect the HTML structure of the search form.
  3. Notice that the method="get" attribute is present on a <div> element:
  4. Attempt to submit the search form.

Expectation

The method attribute should be on the <form> element, allowing proper submission behavior as per HTML standards.

Environment

  • Device: (eg. iPhone Xs; laptop)
  • OS: (eg. iOS 13.5; Fedora 32)
  • Browser: (eg. Safari; Firefox)
  • Version: (eg. 13; 73)
  • Other info: (eg. display resolution, ease-of-access settings)

Additional context

This issue may cause validation errors and affect user experience when submitting the form.

  • method - Attributes for form submission - <form>: The Form element - HTML: HyperText Markup Language | MDN

Resolution

  • I would be interested in resolving this bug.