[Webkit-unassigned] [Bug 227978] Failed to get-node by using getElementById in webkitGTK while insert node by using inner HTML(Document-fragment Element).

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 15 21:16:21 PDT 2021


--- Comment #2 from sssdev <sssqa007 at gmail.com> ---
We have checked In DOM tree node properly maintained by using below HTML TestCode.

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

   return _div['firstChild'];
function checkChildNodes(_div)
   var svgElementChildes = _div.childNodes;
   for ( var childnodeindex = 0; childnodeindex < svgElementChildes.length; childnodeindex++ )
           document.writeln("Node ***"+svgElementChildes[childnodeindex]+"<br>");
function CheckId()
   var _div = Html2Element("<svg width='10' height='10'>"+"<clippath><rect id='clip' /></clippath>"+"</svg>");
   document.writeln("Check Id"+_div['getElementById']('clip')+"*****<br>");
<body onload="CheckId()">

Output of HTML TestPage while run in webkit 2.30:

Check Idnull*****
Node ***[object SVGClipPathElement]
Node ***[object SVGRectElement]

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/20210716/0cdb11d6/attachment.htm>

More information about the webkit-unassigned mailing list