Web Standards

Duplicate id attributes for submit buttons in Drupal 5.x

Drupal 5 doesn't generate unique id attributes for form submit buttons. This means that if there's both a login form and a search box on the same page they will both use the same edit-submit id causing the page to fail validation.

Spruce up your Drupal search box for Safari users

My favourite browser Safari has support for a snazzy custom input field type called "search". This gives the field a rounded look and the ability to remember search history (amongst other things). The major drawback is of course that the HTML will no longer validate since this feature isn't part of the official spec.

In order get around this problem I whipped up a jQuery snippet that dynamically changes the Drupal search input field to a Safari search field if the visitor uses Safari.

XStandard module version 1.0 released

I've finally decided to roll out version 1.0 of my XStandard module for Drupal.

So why choose XStandard over FCKeditor or TinyMCE? Simply put, it produces valid markup. The pro version can actually filter material pasted from Word into semantic XHTML while retaining structure. Here's a full feature list.