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

JCBrand jc at upfrontsystems.co.za
Tue Mar 6 11:53:20 CET 2007


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



More information about the Kss-devel mailing list