Closed marckruzik closed 1 year ago
The behavior change is in VS Code and is outside the scope of the Polyglot Notebooks extension.
As a workaround (at least for my own scripts), I can replace the links by buttons. Before:
<a href="javascript:void(0);" onClick="MyFunction();">text</a>
After:
<button onClick="MyFunction();">text</button>
The behavior change is in VS Code and is outside the scope of the Polyglot Notebooks extension.
Ok. I am closing the issue for now. We will see if the problem arises in some extension.
Describe the bug
Javascript code often uses "void(0)" to have a blank link, with no special behaviour from the browser, usually with an associated onClick event. I just updated Polyglot Notebook (EDIT: and VS Code), and now all my "void(0)" link are producing errors.
Here is how to reproduce the bug. In a html cell, write the following:
Click on the link.
Visual Studio displays an error:
Is that a bug? Or is "void(0)" a bad practice which should no longer be used? If so, how to get the intended behavior?
Please complete the following:
Which version of .NET Interactive are you using? (In a notebook, run the
#!about
magic command. ):EDIT: VS Code v1.75.1