move element types, update permitted attrs