idScript = srs.mapLegacyTagId(scriptReporter, id, _state.id);
}
// map the tagId to the real id
if (TagConfig.isDefaultJavaScript()) {
String script = srs.mapTagId(scriptReporter, id, _state.id, _state.name);
// if we wrote out script in legacy mode, we need to make sure we preserve it.
if (idScript != null) {
idScript = idScript + script;
}