Can,t Get Scripts useing xpath expression
Crypt00o opened this issue · 0 comments
Crypt00o commented
i can,t parse scripts from document , using xpath query
for example :
document:
<html>
<head>
<script src="https//example.com/example1.js"></script>
</head>
<body>
<script src="https//example.com/example2.js"></script>
</body>
</html>
nodes,_:=html.QueryAll(doc,"//script[@src]")
fmt.Println(nodes) // will ouput [] empty *html.Node slice