Bug 46460

Summary: Text under nested link dropped
Product: WebKit Reporter: Michael O'Rourke <mkorourk>
Component: SVGAssignee: Nobody <webkit-unassigned>
Severity: Normal CC: mdelaney7, rwlbuis, zimmermann
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows 7   
Description Flags
Example SVG file with text and links
Simplified example file
First attempt krit: review+

Description Michael O'Rourke 2010-09-24 06:44:07 PDT
The text '5google.com', '6google.com, '7google.com' under a tspan are dropped from the display.

This works fine in both Firefox 3.6.3 and IE 8.0.7600.16385 and the SVG content seems to be legal.

This was seen in Chrome 6.0.472.63.
Comment 1 Michael O'Rourke 2010-09-24 06:44:49 PDT
Created attachment 68671 [details]
Example SVG file with text and links
Comment 2 Michael O'Rourke 2010-09-24 07:02:10 PDT
Created attachment 68675 [details]
Simplified example file
Comment 3 Michael O'Rourke 2010-09-24 07:03:49 PDT
I've attached a simplified example file with only one text span.

If the <a> tag is removed then the text displays fine in webkit browsers.

Note that the existing content still displays fine in IE and Firefox.
Comment 4 Rob Buis 2010-10-16 12:22:47 PDT
Created attachment 70961 [details]
First attempt
Comment 5 Dirk Schulze 2010-10-16 23:49:03 PDT
Comment on attachment 70961 [details]
First attempt

r=me, but please move every case in a new line: 
|| child->hasTagName(SVGNames::trefTag)
|| child->hasTagName(SVGNames::tspanTag)
Comment 6 Rob Buis 2010-10-17 23:52:07 PDT
Landed in r69922.