0

This is a part of the code I found for a new tab page for firefox.

<input class="searchBar search_google"
       type="text" name="q" 
       placeholder="Google" search_/>

I don't understand the last part search_/> of the code. Can anyone explain me?

Bibek Shah
  • 419
  • 4
  • 19

1 Answers1

1

the search_/> is equivalent to search_="" /> where the /> is simply closing the input element and the search_="" is declaring an attribute search_ that has no value set.

I assume that the coder originally had a search attribute to request that the server carry out a search operation (of some kind or other) then later on they added an underscore to "comment it out" thus leaving a visible reminder search_ ready if they want to reverse their decision.

GavinBrelstaff
  • 3,016
  • 2
  • 21
  • 39