%span{data: {name: 'ほげ'}, onclick: 'copySomething(this)'} facebook
function copySomething(name){
var selection = window.getSelection(), range = document.createRange();
range.selectNodeContents(name);
selection.removeAllRanges();
selection.addRange(range);
document.execCommand('copy');
}
DATA属性が持ってる「ほげ」をクリップボードに格納したいが挫折w
とりあえずここまで!