[Webkit-unassigned] [Bug 151969] New: SVGDocument getElementById return null when svg doc is removed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 7 15:45:32 PST 2015


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

            Bug ID: 151969
           Summary: SVGDocument getElementById return null when svg doc is
                    removed
    Classification: Unclassified
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: kapouer at melix.org
                CC: zimmermann at kde.org

When testing this snippet with chromium 47 / firefox 38, both logged statements are true.
However with epiphany 3.18 / webkitgtk 2.10.4 second statement is false.

<!DOCTYPE html>
<html>
<body>
<svg xmlns="http://www.w3.org/2000/svg">
  <g id="test"></g>
</svg>
<script type="text/javascript">
var svg = document.querySelector('svg');
console.log("is root#test found when root is in document ?", svg.getElementById('test') != null);
svg.remove();
console.log("is root#test found when root is not in document ?", svg.getElementById('test') != null);
</script>
</body>
</html>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151207/9d7dbfd7/attachment.html>


More information about the webkit-unassigned mailing list