I'm using the LinkedIn share button in one website. In the head section of the website I included a linkedin script like that
<script src="//platform.linkedin.com/in.js" type="text/javascript">
lang: it_IT
</script>
Inside the body I have a button tag
<script type="IN/Share" data-url="some-data"></script>
When I try to validate my page with https://validator.w3.org/ I get the following error
The text content of element script was not in the required format: Expected space, tab, newline, or slash but found l instead.
The LinkedIn button does appear and it works as well, however I was wondering if there was another way to include a LinkedIn share button which is valid according to W3C. I got my code from the official LinkedIn documentation: https://developer.linkedin.com/docs/getting-started-js-sdk
Why did LinkedIn build a component which is not compliant with HTML specs?