[Kss-devel] Anchor tag with an image and no text is ignored by kss.

Godefroid Chapelle gotcha at bubblenet.be
Tue Mar 6 12:00:51 CET 2007


JCBrand wrote:
> Hi all,
> 
> I'm using Azax for plone.   http://plone.org/products/PloneAzax
> 
> I have the following kss declaration in my *.kss file:
> 
> a.remove-buddy:click {
>     evt-click-preventdefault: True;
>     action-client: alert;
> }
> 
> and in my page template I have the following:
> 
> <a  class="remove-buddy"  tal:attributes="href here/absolute_url">
>           <font color="white">.</font> <!-- Hack to make kss work -->
>           <img tal:replace="structure here/12-em-cross.png" alt="Contact" />
> </a>
> 
> My problem is that if I don't have any text in the anchor tag, then
> kukit/kss doesn't replace the default event
> with the action-client alert event as specified in my kss file. What I
> think is happening is that the anchor isn't registered or parsed
> correctly by the kss parser. I'm guessing that this is a bug, since I
> would expect kss
> to work on an anchor if it contains just an image and not any text.
> 
> My javascript skills aren't that great but I would be happy to try and
> fix this. Can anyone direct me to a file and/or
> function that is responsible for making this work? I'm guessing it's one
> of the javascript files in Products/azax/kukit/kukit/ .
> 
> Thanks in advance for any help.
> JC Brand
> 

Is this happening in all browsers ?

It feels like a browser bug at first sight...
-- 
Godefroid Chapelle (aka __gotcha)- BubbleNet  http://bubblenet.be



More information about the Kss-devel mailing list