RusKnyaz / Optimus

Optimus is headless Web Browser fully implemented on .net.
MIT License
81 stars 8 forks source link

Calling of 'click' on the 'a' with javascript in 'href' has to lead to script execution. #32

Closed RusKnyaz closed 4 years ago

RusKnyaz commented 4 years ago

Say you have the

<a id=a href="JavaScript:console.log('asd')">Click me</a>

execution of the code

document.getElementById('a').click(); 

should write 'asd' to the console.