<main> tags being removed
I have a template with the following tags:
<div class="content-wrapper">
<system-region name="HEADER_POST"/>
<main>
<system-region name="DEFAULT"/>
<div class="container-fluid">
<div class="row" id="homelist">
<system-region name="homelist1"/>
<system-region name="homelist2"/>
<system-region name="homelist3"/>
<system-region name="homelist4"/>
<system-region name="homelist5"/>
</div>
</div>
</main>
<system-region name="FOOTER"/>
<system-region name="SKIP2"/>
</div>
but the 'main' tags are being removed upon submission. Is there any simple way to avoid this? I'm using version 6.10.7.
TIA.
Discussions are closed to public comments.
If you need help with Cascade CMS please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
stulk closed this discussion on 14 Sep, 2015 08:49 PM.
stulk re-opened this discussion on 14 Sep, 2015 08:56 PM
1 Posted by Ryan Griffith on 15 Sep, 2015 01:21 PM
Hi,
After you submit, are you seeing tabbing and/or spacing being removed? If so, this could be the result of the XML validation/tidy routine trying to fix some invalid XML.
When you have a moment, please attach the full source of your template so I can take a closer look.
Please let me know if you have any questions.
Thanks!
2 Posted by stulk on 15 Sep, 2015 01:33 PM
Thanks, I've attached the template.
3 Posted by Ryan Griffith on 15 Sep, 2015 02:23 PM
Thank you for attaching your Template HTML.
As I suspected, there are a couple of items within the HTML that is triggering an XML cleanup routine to run to ensure the Template's contents are valid XML. Generally, you can tell if this occurs when tabbing and spacing is removed from the content after submission.
I was able to find the following two issues which were triggering the XML cleanup:
</div>
for<div class="wrapper">
class
andid
attributes: This is the second nav within the HTML.When you have a moment, try making these minor adjustments and let me know how things work out.
Please let me know if you have any questions.
Thanks!
4 Posted by stulk on 15 Sep, 2015 02:33 PM
Aaarghh! Thank you very much for your second set of eyes!
stulk closed this discussion on 15 Sep, 2015 02:33 PM.