[Wmlbrowser] <anchor> rendering

Matthew Wilson matthew at mjwilson.demon.co.uk
Sat Feb 11 08:22:59 EST 2006


Sam wrote:
> Hello,
>  
> I've only started using wmlbrowser recently and have few complaints, 
> however when I first installed I wondered why some links looked 
> different to others. After investigation it seemed to be dependant on 
> whether the link was created using the <a> tag or the <anchor> tag (the 
> <a> tag creates a normal looking link, <anchor> creates a button).
>  
> So I come to my question, why are the two rendered differently? My 
> feeling is that both tags are rendered the same on a phone (and on any 
> WAP emulator I've ever used), so why does wmlbrowser show them 
> differently? Is there any chance of this being changed? If not, perhaps 
> someone could direct me to where I could change it myself in the source?

Good question.

The simple answer is that wmlbrowser is based on attachments to a bug 
raised on Mozilla, and I copied those attachments to use in the 
extension. Those attachments presented <anchor> as a button - therefore 
so does wmlbrowser.

I tried a couple of examples in Opera, and <anchor> did seem to work 
like an <a>.

If you want to make the change, you probably need to look at wml.xsl 
(which transforms the WML to XHTML using XSLT) and possibly wml.css 
(styling for the page).

If you come up with a working page, you'd be welcome to send it to the 
list for inclusion in wmlbrowser.

Matthew



More information about the Wmlbrowser mailing list