Ahem, now everything works correctly. Also added support for a placeholder attribute for input tags and the like