A lighter clone()
The clone()
function currently copy all CSS properties of the original element. This is a brutal solution and can be improved: For instance clone()
could copy only the active / necessary properties. It could also avoid using inline CSS that makes the HTML less easy to browse and understand.