Project

Profile

Help

Bug #1456

closed

Events from elements referenced using xlink:href from svg:use element not raised within Saxon-CE

Added by Philip Fearon over 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Low
Assignee:
Sprint/Milestone:
Start date:
2012-03-22
Due date:
% Done:

100%

Estimated time:
Platforms:

Description

There's an issue with UI events on an HTML page with an svg:use element like:

   <svg xmlns="http://www.w3.org/2000/svg" xmlns:href="www.w3.org/1999/xlink">
      <def id="hrefA">
         <rect>...</rect>
      </def>
   <svg:use xlink:href="#rectA"/>
  </svg>

When the user clicks on the referenced rectangle, Saxon-CE logs an error indicating that the event target is outside the DOM. Instead, the target event should de-referenced to the SVG rectangle. This will allow SVG events to be handles using XSLT templates, even if the SVG itself is referenced by svg:use.

Actions #1

Updated by Philip Fearon over 12 years ago

  • Status changed from New to Resolved

Fixed. When Saxon-CE encounters an SVG element outside the DOM it uses the same method as the JavaScript equivalent: getCorrespondingSVGElement to ensure an event with a DOM target node can be raised legally.

Actions #2

Updated by Philip Fearon over 12 years ago

  • Fixed in version set to Beta 0.2
Actions #3

Updated by Philip Fearon over 12 years ago

  • Sprint/Milestone set to Beta 0.2
  • Found in version set to Beta 0.1
Actions #4

Updated by O'Neil Delpratt almost 12 years ago

  • Status changed from Resolved to Closed
  • Fixed in version changed from Beta 0.2 to 1.0

Fixed in Saxon-CE version 1.0

Actions #5

Updated by O'Neil Delpratt almost 12 years ago

  • Sprint/Milestone changed from Beta 0.2 to Release 1.0
  • % Done changed from 0 to 100

Please register to edit this issue

Also available in: Atom PDF