I would like to be able to add some custom HTML to specific web pages.
For example - a form to sign up to a 3rd party event
<form action="//papercraft.list-manage.com/subscribe/post?u=dca1e124858ea9&id=3407b9b1ce" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
When I try to add this with the HTML Editor, I get this error.
Malformed XML document:
This page contains the following errors:error on line 25 at column 159: Specification mandate value for attribute novalidate Below is a rendering of the page up to the first error.
Anyone know how to make this work?
@Tim,
Odoo works in strict XHTML. This means your HTML needs to be reformatted so that it is properly nested according to XML/XHTML standards.
XHTML is also unforgiving in that if you forget to close a tag (for example the form tag above) you'll get this kind of error.
I've run into similar issues before due to attributes that work in html (eg. custom-attribute), but are not written according to XML/XHTML standards (eg. above example could be fixed by changing 'novalidate' to something like 'novalidate="False"'), as @John has pointed out below.