<html xmlns="http://www.w3.org/1999/xhtml"> <head> <script> function boom() { document.getElementById("path").pathSegList.pathSegTypeAsLetter; } </script> </head> <body onload="boom()"> <svg xmlns="http://www.w3.org/2000/svg" height="400px" width="400px"> <path id="path" style="stroke: blue" d="M 200.50000,387.89713 L 201.19970,12.500000" /> </svg> </body> </html>