Implement Element.prefix (Fixes #1737)