This PR uses the well-supported1user-select: none CSS property on the line number gutter in syntaxhighlighter code blocks, to prevent accidental inclusion when copy-pasting the contained code.
Notes
while user-select: none has broad browser support, both Safari versions do require its use as the vendor-prefixed -webkit-user-select (also included in the PR changes).
(CLA Note: As I mentioned in jquery/contribute.jquery.org#149, the CLA links across the documentation are currently linking to an OpenJSF page with no CLA in evidence. I have not signed the CLA simply because I can't find any way to sign it.) Never mind, the bot's link worked.
This PR uses the well-supported1
user-select: none
CSS property on the line number gutter in syntaxhighlighter code blocks, to prevent accidental inclusion when copy-pasting the contained code.Notes
user-select: none
has broad browser support, both Safari versions do require its use as the vendor-prefixed-webkit-user-select
(also included in the PR changes).(CLA Note: As I mentioned in jquery/contribute.jquery.org#149, the CLA links across the documentation are currently linking to an OpenJSF page with no CLA in evidence. I have not signed the CLA simply because I can't find any way to sign it.)Never mind, the bot's link worked.