X-Git-Url: https://juplo.de/gitweb/?p=juplo-dialect;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fde%2Fjuplo%2Fthymeleaf%2FAbstractSubstituteAttrProcessor.java;h=6274016d1a22ba459c641b2ab225797666f6a4fb;hp=0348aea52e3e2c2cb9a8af8b35319a0caffdd0e7;hb=472c3d082ae6d6bebf44815c76871502eae88f02;hpb=570d4491daed7c6f632774a130032b88de9ea81c diff --git a/src/main/java/de/juplo/thymeleaf/AbstractSubstituteAttrProcessor.java b/src/main/java/de/juplo/thymeleaf/AbstractSubstituteAttrProcessor.java index 0348aea..6274016 100644 --- a/src/main/java/de/juplo/thymeleaf/AbstractSubstituteAttrProcessor.java +++ b/src/main/java/de/juplo/thymeleaf/AbstractSubstituteAttrProcessor.java @@ -49,6 +49,7 @@ public abstract class AbstractSubstituteAttrProcessor extends AbstractAttrProces // We must not clone the processors, because we remove attributes Element substituteElement = element.cloneElementNodeWithNewName(element, substituteName, false); + // Remove attributes, that are not allowed for or substituteElement.removeAttribute("charset"); substituteElement.removeAttribute("th:charset"); substituteElement.removeAttribute("coords"); @@ -69,6 +70,10 @@ public abstract class AbstractSubstituteAttrProcessor extends AbstractAttrProces substituteElement.removeAttribute("th:target"); substituteElement.removeAttribute("type"); substituteElement.removeAttribute("th:type"); + // Also remove the title-attribute, because the mouse-over is confusing + substituteElement.removeAttribute("title"); + substituteElement.removeAttribute("th:title"); + // Replace the element element.clearChildren(); element.addChild(substituteElement); element.getParent().extractChild(element);