Hi Krzysztof,
It's best practice for internal links to have href attributes. My understanding is although Google will be able to find internal links dependant on JavaScript, they're not treated the same, and that the passing of page rank will be negatively impacted.