I used the wxWebView sample from master branch and wrote a little test html, see below.
I noticed different behaviour between wxWebViewBackendEdge vs wxWebViewBackendIE especially with internal anchor links.
Using the backend: wxWebViewBackendIE
All links create a navigationevent.
Title - generates title change event - OK
OnClickIntern - Navigation request event - OK
OnClickExtern - Navigation request event - OK
Anchro - Navigation request event - OK
Link-Anchor - Navigation request event - OK
Simple - Navigation request event - OK
Than switching to the backend: wxWebViewBackendEdge
(Compilation and installation worked - backend message from log: wxWebViewEdge Version: Microsoft Edge WebView2 88.0.705)
Title - generates title change event - OK
OnClickIntern - Nothing
OnClickExtern - generates Navigation request event - OK
Anchro - Nothing
Link-Anchor - Nothing
Simple - Nothing
Internal anchor links do not generate navigation events using the wxWebViewBackendEdge.
Any solution for wxWebViewBackendEdge to make internal anchor links working (creating an event)
Thanks in advance
Rico
Code: Select all
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<script>
function mytitle()
{
document.title = 'test';
}
function myevent(id)
{
var e = document.getElementById(id).firstChild;
window.location = "simple.html#func="+e.data;
}
function extern()
{
window.location = "https://www.wxwidgets.org";
}
</script>
<nav id="head">
<a href="#" id="test1" onclick="mytitle()">Title</a>
<a href="#" id="test" onclick="myevent('test')">OnClickIntern</a>
<a href="#" id="test2" onclick="extern()">OnClickExtern</a>
<a href="#test2" id="test3">Anchor</a>
<a href="simple.html#test4" id="test4">Link-Anchor</a>
<a href="#" id="test">Test5</a>
</nav>
<main>
</main>
</body>
</html>