For those of you using the search functionality in MT 2.51 and are trying to make your pages XHTML 1.0/1.1 compliant, consider this a heads up.
MT::App::Search.pm kindly sets the check boxes and select boxes for us before it returns the results. Unfortunately, it sets them using HTML. :-(
That means the search output checkboxes will have the checked attribute set and the select lists will have selected set. These of course are not XHTML compliant and this is in the core modules and cannot be fixed in the search templates them selves.

Here is a patch to remove that functionality from MT::App:Search.pm. I have opted to emove the function entirely as this should really funciton like the comments form does, where this stuff is set via javascript. If you would like a patch the change checked to checked="checked" and selected to selected="selected" let me know and I’ll put on up.


See more posts about: perl | All Categories