It works perfectly fine. However, MenuSpy tries to use the string "#Maybe<A>" as a selector. This gives the following error:
Uncaught DOMException: Failed to execute 'querySelector' on 'Document': '#Maybe<A>' is not a valid selector.
This PR fixes the issue by not using the href attribute directly as a query selector but instead stripping the leading # from it and looking for an element with that id.
I have the following in my HTML
It works perfectly fine. However, MenuSpy tries to use the string
"#Maybe<A>"
as a selector. This gives the following error:This PR fixes the issue by not using the
href
attribute directly as a query selector but instead stripping the leading#
from it and looking for an element with that id.