1 May 2010 dorward   » (Journeyer)

Consumer appliances and custom browsers

I’m having the joy of writing webpages targeted at consumer appliances. Unfortunately, the vendors of many of these devices have not seen the light and thus failed to grab one of the open source browser engines on the market or go to Opera. Either they are rolling their own, or buying browsers which have never seen a desktop computer.

Thanks to a bug in the rendering engine of one major vendor with a name that starts with S, I have to have odd spaces when I make text bold.

      foo <strong>bar </strong> baz

    

However, this causes a bug in the browser used by a different vendor (also with a name starting with S) so I’ve ended up with:

      [% MACRO sfix BLOCK; IF product.browser.someVendor; %] [% END; END; %]

    

and

      foo <strong>bar[% sfix %]</strong> baz

    

Isn’t that just lovely?

Oh, if only I could just target Webkit and Presto!

Syndicated 2010-03-18 10:17:28 from David Dorward

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!