hfmanson
hfmanson
Indeed, CanvasRenderingContext2D.drawImage() does not render the image, but its bitmap which is a bit confusing (better name drawBitmap?). So passing a SVGSVGElement is not appropriate for drawImage(). [bitmap only](https://jsfiddle.net/hfmanson/m27h4zL6/latest) is...
having read @Kaiido's comment I think the semantics of `drawImage()` having a SVGSVGElement as parameter should be as if it would be rendered through an `` element.
I still think it can be empty, see the useful post of Martin Gudgin on https://lists.w3.org/Archives/Public/xml-dist-app/2003Mar/thread.html#msg76
It is not a size or performance issue. The advantage of using a browser DOM is being able to manipulate the live DOM tree using XQuery's update facility which is...
Indeed ``` let $x := 4 return if ($x eq 4) then ( let $y := 5 return $y ) else 7 ``` returns ``` 15:10:37 - xs:integer('5') ```