dom/element/data: fix some wrong variable names