<main> tags being removed

stulk's Avatar

stulk

14 Sep, 2015 08:44 PM

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.

  1. stulk closed this discussion on 14 Sep, 2015 08:49 PM.

  2. stulk re-opened this discussion on 14 Sep, 2015 08:56 PM

  3. 1 Posted by Ryan Griffith on 15 Sep, 2015 01:21 PM

    Ryan Griffith's Avatar

    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!

  4. 2 Posted by stulk on 15 Sep, 2015 01:33 PM

    stulk's Avatar

    Thanks, I've attached the template.

  5. 3 Posted by Ryan Griffith on 15 Sep, 2015 02:23 PM

    Ryan Griffith's Avatar

    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:

    • You are missing an </div> for <div class="wrapper">
    • The following is missing a space between the class and id attributes:
      <ul class="secondary nav collapse "id="current">
      
      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!

  6. 4 Posted by stulk on 15 Sep, 2015 02:33 PM

    stulk's Avatar

    Aaarghh! Thank you very much for your second set of eyes!

  7. stulk closed this discussion on 15 Sep, 2015 02:33 PM.

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

 

26 Aug, 2016 01:19 PM
25 Aug, 2016 03:02 PM
25 Aug, 2016 12:50 PM
24 Aug, 2016 08:43 PM
24 Aug, 2016 07:20 PM
21 Aug, 2016 01:20 PM