Loading ...
Sorry, an error occurred while loading the content.

Re: USE elements in Safari - problems with events

Expand Messages
  • Andreas Neumann
    yes - this really is a restriction on the use element. If you want to get the reference to a use element, you have to use .currentTarget and place the event
    Message 1 of 4 , Oct 1, 2007
    • 0 Attachment
      yes - this really is a restriction on the use element. If you want to
      get the reference to a use element, you have to use .currentTarget
      and place the event handler attribute on the use element directly,
      not on a parent group, as you might be used to do with regular shapes.

      All proper SVG UAs act like you describe.

      Andreas

      --- In svg-developers@yahoogroups.com, "richard_smith_ons"
      <Richard.M.Smith@...> wrote:
      >
      >
      > http://bugs.webkit.org/show_bug.cgi?id=14167
      >
      > Due to the above I get "evt.target.getAttributeNS not an object"
      when
      > trying to process the events on a USE element (Safari 3.0.3 for
      > Windows). The conclusion seems to be it's not a bug (!) Is there a
      > recommended workaround?
      >
      > Thanks
      >
      > Richard
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.