[Webkit-unassigned] [Bug 41655] Implement SVGSVGElement.getElementById

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 7 14:17:41 PDT 2010


--- Comment #14 from Eric Seidel <eric at webkit.org>  2010-07-07 14:17:40 PST ---
The point of my test was duplicates *outside* of the <svg>, which should not be undefined for your case.

But you're right.  You also need to test duplicates *inside* the <svg>.

1. <div id="foo"><svg><rect id="foo"></svg><div id="foo">

As well as:

2. <div id="foo"><svg><rect id="foo"><rect id="foo"></svg><div id="foo">

Ideally that would behave the same as:

3. <svg><rect id="foo"><rect id="foo"></svg>

But if it's truly undefined, then the correlation between the last two tests is not required.

1. Will use the fallback walk-the-tree behavior, but will only find the one element.
2.  Will use fallack behavior, but which element will it find?  (probably the first)
3.  Will use document.getElementById() default behavior, but which element will it find?  Hopefully the same as #2 would.

I don't think it's important to use the IE test cases.  I think we can make our own which are less gnarly.

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