Skip to content

Commit

Permalink
Remove the xmlns:prefix attributes we might add for IDE validation bu…
Browse files Browse the repository at this point in the history
…t should not be exposed in the web browsers.
  • Loading branch information
Hazze Molin authored and theborakompanioni committed Mar 12, 2020
1 parent 52aa1bd commit 7dca999
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -5,6 +5,8 @@
import org.thymeleaf.dialect.AbstractProcessorDialect;
import org.thymeleaf.processor.IProcessor;
import org.thymeleaf.standard.StandardDialect;
import org.thymeleaf.standard.processor.StandardXmlNsTagProcessor;
import org.thymeleaf.templatemode.TemplateMode;

import java.util.LinkedHashSet;
import java.util.Set;
Expand Down Expand Up @@ -63,6 +65,9 @@ private static Set<IProcessor> createStandardProcessorsSet(String dialectPrefix)
processors.add(new UserAttrProcessor(dialectPrefix));
processors.add(new UserElementProcessor(dialectPrefix));

// Remove the xmlns:prefix attributes we might add for IDE validation but should not be exposed in the web browsers.
processors.add(new StandardXmlNsTagProcessor(TemplateMode.HTML, dialectPrefix));

return processors;
}
}

0 comments on commit 7dca999

Please sign in to comment.