[Webkit-unassigned] [Bug 227978] New: Node Insertion failure in webkitGTK while insert node by using innerHTML.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 14 20:55:45 PDT 2021


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

            Bug ID: 227978
           Summary: Node Insertion failure in webkitGTK while insert node
                    by using innerHTML.
           Product: WebKit
           Version: WebKit Local Build
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sssqa007 at gmail.com

Issue : DOM Node Insertion failure in webkitGTK while insert node by using innerHTML.

Google Chrome behaviour:

In Chrome successfully element displayed while get the by id('clip').
Output : Check Id[object SVGRectElement]*****.
But in webkit null instance returned.
Output : Check Idnull*****.

WebkitGTK Revision : 2.30 and we validated the safari 14 version we have faced the same output. Please advice for node insertion failure.

JS TestCode;

<html>
<head>
<script type = "text/javascript">
function Html2Element(element)
{
   var _div = document['createElement']("div");
   _div.innerHTML = element;

   return _div['firstChild'];
}
function CheckId()
{
   var _div = Html2Element("<svg width='10' height='10'>"+"<clippath><rect id='clip' /></clippath>"+"</svg>");
   document.writeln("Check Id"+_div['getElementById']('clip')+"*****");
}
</script>
</head>
<body onload="CheckId()">
</body>
</html>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210715/7bbdd07b/attachment-0001.htm>


More information about the webkit-unassigned mailing list