I have noticed that the assignment "javascript:void()" within the link:
<a href="javascript:void()" id="link_id">My link</a>
is caused an error in Chrome Dev console like this:
Uncaught SyntaxError: Unexpected token )
But why? Is this code is incorrect? If it is correct how to avoid such an ugly issue?