Add mapAttributes and fix "style" attributes