Fix querying by ID parsing by updating DOM class names.