mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 04:40:09 +01:00
Use W3C compliant textContent
instead of `innerText
This commit is contained in:
parent
dacdbfb8bb
commit
64ab849aeb
@ -90,11 +90,11 @@ class Choosealicense
|
|||||||
|
|
||||||
# Callback to restore the clipboard button's original text
|
# Callback to restore the clipboard button's original text
|
||||||
clipboardMouseout: (client, args) ->
|
clipboardMouseout: (client, args) ->
|
||||||
@innerText = $(this).data("clipboard-prompt")
|
@textContent = $(this).data("clipboard-prompt")
|
||||||
|
|
||||||
# Post-copy user feedback callback
|
# Post-copy user feedback callback
|
||||||
clipboardComplete: (client, args) ->
|
clipboardComplete: (client, args) ->
|
||||||
@innerText = "Copied!"
|
@textContent = "Copied!"
|
||||||
|
|
||||||
# Initializes pill navigation for license variations
|
# Initializes pill navigation for license variations
|
||||||
initLicenseVariationNav: ->
|
initLicenseVariationNav: ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user