Boozerker reported on English Wikipedia VPT that Facebook was displaying JavaScript code as a snippet when people share a fundraising page (https://donate.wikimedia.org/wiki/Special:FundraiserLandingPage?uselang=en&appeal=Appeal-Sengai). I saw in the source that the script element was inside a paragraph:
<p>
<script type="text/javascript">
$( document ).ready( function () {
// Disable submitting form with return key $( 'form' ).bind( 'keypress', function(e) { var code = ( e.keyCode ? e.keyCode : e.which ); if ( code == 13 ) return false; } );
} );
</script>
I don't know for sure if this is causing the incorrect Facebook snippet. But it might be, and this could cause other issues.
Version: unspecified
Severity: normal