Works on alternative DOM definition.