Winternet

Serendipity Lameness

Filed under: — jwinter on 12/18/2004 at 3:29 pm

Serendipity, a blog tool written in PHP has some pretty overengineered HTML and Javascript.

Let’s take a look at this:

<a href="http://example.com" title="http://example.com"
onmouseover="window.status=’http://example.com’;return true;”
onmouseout="window.status='’;return true;">
An example link</a>

First of all, using the URL in the title attribute is silly. But apart from that, why have the totally unnecessary Javasript to provide the URL in the status bar? This is the default behavior in any browser where the user actually wants it.

The saddest thing about this code: It actually prevents the URL from showing up in the status bar in Firefox.

Serendipity developers, here’s the HTML that you want to generate:

<a href="http://example.com" >An Example</a>

or at most:

<a href="http://example.com" title="An Exemplary Example" >An Example</a>

0.085 || Powered by WordPress