Copy title attribute from original element

Fixes #642