[Webkit-unassigned] [Bug 22500] New: hyperlinked text parts aren't rendered

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 25 15:26:19 PST 2008


https://bugs.webkit.org/show_bug.cgi?id=22500

           Summary: hyperlinked text parts aren't rendered
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
               URL: http://kaioa.com/svg/webkit_linktest.svg
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: SVG
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: webkit at kaioa.com


The example file contains the text "foo link foo" where "link" is wrapped with
an <a> element whose "xlink:href" attribute has the value "http://example.com".
It basically looks like this:

<text [...]>
  <tspan>foo <a xlink:href="http://example.com">link</a> foo</tspan>
</text>

--

WebKit-r38708 only renders "foo foo". The same goes for current versions of
Chrome and Safari.

--

Hyperlinking a whole <text> element does work fine though.

E.g. the following works as it should:
<a [...]><text [...]><tspan [...]>foo</tspan></text></a>

While the specs don't allow a <tspan> as a child of <a>, #PCDATA is valid. See:
http://www.w3.org/TR/SVG/linking.html#Links (#PCDATA is listed first in
SVG.a.content)

So something like the following should work:
<text [...]><tspan [...]><a [...]>foo</a></tspan></text>

And indeed it's valid and other browsers such as Firefox or Opera display it
correctly and the link is also clickable (<tspan> as child of <a> also works
there - even if it isn't valid).


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list