我正在尝试使用Java Thymeleaf模板引擎实现基于Polymer的材料设计。我通过本教程开始学习,并遇到以下异常:
Caused by: org.xml.sax.SAXParseException; Attribute name "unresolved" associated with an element type "body" must be followed by the ' = ' character.
据我了解Thymeleaf,默认情况下无法处理Web组件/自定义组件。在Thymeleaf模板引擎的上下文中可以使用Polymer吗?
如果您有类似的东西:
<body unresolved touch-action="auto">
它不会与Thymeleaf一起使用,因为Thymeleaf期望标记是有效的XHTML,而单独的标记unresolved
是无效的XHTML标记。但是,以下方法应该起作用:
<body unresolved="" touch-action="auto">
<body unresolved="unresolved" touch-action="auto">
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句