Closed Bug 333058 Opened 18 years ago Closed 18 years ago

search.php produces non valid html

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: cameron, Assigned: clouserw)

References

()

Details

Attachments

(1 file)

<input type="hidden" name="app" value="firefox"/> has to be inside a <div> (or something else) inside <form>
Blocks: 332987
I don't understand.  form is a block level item and input is an inline item.  Why would it have to be inside of the div?  I just noticed that this line is in there twice.  Could that do it?

# <div class="key-point">
#
# <form action="/search.php" method="get" class="amo-form">
# <input type="hidden" name="app" value="firefox"/>
#
# <div>

# <!-- end search-options -->
# </div>
#
# <input type="hidden" name="app" value="firefox"/>
# </form>
Do we even need this hidden field?  search has <select id="appfilter" name="appfilter"> which will have a value of whatever we're trying to show.
In the HTML 4.01 specs they always have another block level element inside the form tag.  It's weird tidy doesn't catch this though (in the html validator extension).  Anyway, here is a patch that fixes it, and it's in cvs now.
Assignee: morgamic → clouserw
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Target Milestone: 2.1 → ---
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: