[Webkit-unassigned] [Bug 99893] New: When there are two elements with the same ID, xlink:href should refer to the first.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Oct 19 17:24:41 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=99893
Summary: When there are two elements with the same ID,
xlink:href should refer to the first.
Product: WebKit
Version: 420+
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: SVG
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: pdr at google.com
CC: zimmermann at kde.org
Created an attachment (id=169732)
--> (https://bugs.webkit.org/attachment.cgi?id=169732&action=review)
Testcase
When there are two elements with the same ID, xlink:href should refer to the first, even if they are added to the document out of order.
Our current resource tracking implementation in SVGDocumentExtensions.cpp does not handle the case when a duplicate ID is added after (in document time) but before (in document order). See the attached testcase for an example.
<tref xlink:href="abcd"/>
<text id="abcd"> </text> <-- tref should point to the first text, even if it is dynamically added after the other duplicated id.
<text id="abcd"> </text>
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list