I have the following short code to create a div when button is clicked, inside the div is a span tag with contenteditable="false". When span is doubled clicked, it should set and change the contenteditable attribute from false to true, so text can be made editable on dblclick. Check the example at jsfiddle.net/dtxhe/3 .This is working in firefox, chrome and ie8, but not IE7 or quirks mode. Is this a bug. I couldn't find anything on the web relating to this. Any ideas.