Debutify theme HTML Broken

Topic summary

A user installed the Debutify-Pets-8.3 theme and encountered a “Corrupted HTML” error in the sections/cart-details.liquid file without making any modifications. The error stems from Shopify flagging the non-standard <cart-details> HTML tag, which isn’t recognized as valid HTML unless defined as a custom element in JavaScript.

Attempted Solutions:

  • Multiple suggestions were made to replace <cart-details> with standard <div> tags or wrap it in valid HTML
  • Each code replacement eliminated the error message but broke the cart page functionality, causing it to endlessly load without displaying content

Current Resolution:
The final recommendation is to revert to the original code with the <cart-details> tag intact and ignore Shopify’s “corrupt HTML” warning, as it’s a false positive. The custom tag is required for the theme’s JavaScript to function properly. If issues persist, contacting Debutify support directly is advised.

Status: The discussion remains open with the user needing to implement the reversion and verify the cart works correctly.

Summarized with AI on October 27. AI used: claude-sonnet-4-5-20250929.

I downloaded a Debutify-Pets-8.3 template to my shop from Debutify’s website. When I edit the page template for the shopping cart, I get a prompt: there is corrupt HTML in the template file sections/cart-details.liquid. I have not modified the code. Why does this prompt appear?

Here is the whole message:

Corrupted HTML has been detected in the sections/cart-details.liquid file of your template. check for missing or redundant HTML tags.

1 Like

Hi @Soldaypet ,

“Corrupted HTML has been detected in the sections/cart-details.liquid file…”
even though you haven’t edited the code. This happens because Shopify scans the file and flags any non-standard or invalid HTML tags. In your case, the issue is caused by the tag , which is not a standard HTML tag unless it’s specifically defined as a custom element in JavaScript (which most Shopify themes don’t do by default).

Here is the problematic code:


Since is not recognized HTML, Shopify assumes the file is corrupted or malformed. Even though it might render fine in some browsers, Shopify’s theme editor flags it.

To fix this error, you should replace the unknown tag with a valid one like

. Here’s the corrected version of the code:


  {% render 'loading-spinner', class: '' %}

This change will stop Shopify from showing the “corrupt HTML” warning, and your cart page will still work the same way. Nothing else in the file seems broken — this tag is the main reason for the alert.

If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Use our Big Bulk Discount app to boost your sales! :rocket: (https://apps.shopify.com/big-bulk-discount). Easy to set up and perfect for attracting more customers with bulk discounts. Try it now and watch your revenue grow!

Hi, @Soldaypet

I can figure out it for you. But it needs to check the theme code. If you need my help, please let me know.

Hello @Soldaypet Thanks for sharing the screenshot. Based on what I can see from your cart-details.liquid file, the error message you’re getting — “Corrupted HTML has been detected” — is likely triggered by one or more of these issues:

  1. Liquid render syntax used improperly
    The very first line in your file:
{% render 'section-padding', section: section %}

This assumes section-padding is a snippet. However, if this snippet is missing, or if it contains HTML that isn’t properly closed, it can trigger HTML corruption errors.

Check that the file snippets/section-padding.liquid exists and is valid HTML/Liquid.

  1. Improper or missing div closing tags
    You have:

    
  

Make sure:

. cart-details is a custom web component or valid custom element.

. There’s no missing closing tag — which doesn’t seem to be the case here — but if cart-details is not self-closing and not defined as a component, this might be invalid.

  1. Tag is Suspect
    If is not recognized by the Shopify theme system or not a custom element defined via JavaScript, it will be treated as invalid HTML, especially since it doesn’t close in the normal way ( is used, but its opening looks like a self-closing tag).

Try replacing it temporarily with standard HTML to test if the warning goes away:


  {% render 'loading-spinner', class: '' %}

If this removes the error, then the issue is with Shopify not recognizing cart-details as a valid tag.

To Fix the Error

  1. Verify that all custom tags like are supported and defined properly in JS.

  2. Ensure all HTML tags are correctly opened and closed.

  3. Make sure all included snippets (section-padding, loading-spinner) exist and are not broken.

Additional Tip
If you’re unsure where the issue lies, copy your cart-details.liquid file contents and paste it into a HTML validator — or temporarily comment out blocks line by line to isolate which one causes the alert.

Thank you :blush:

I replaced it with the code you gave me, but the shopping cart page now looks like this and won’t load. Here is a screenshot of the complete code:

what should I do?

  • Keep the tag so the JS works, but

  • Prevent Shopify’s warning, or make it safe without breaking the cart.

Here’s what to do:

Instead of replacing , wrap it inside a

so Shopify sees a valid outer structure, but you keep the original component inside.

Replace this:


With this:


  

Can you please send me your collaborator code and store link? I will check it for you.

I replaced it with the code you gave and it still suggests corrupt HTML:

Replace this block:


  

With this:

{% comment %} Shopify may flag

Still show the mistake:

Replace with this :


{% render 'loading-spinner', class: '' %}

Hi, The template no longer prompts this issue, but the cart page keeps loading and won’t display. What’s happening? What to do?

The cart page is stuck loading because replacing with

broke the JavaScript tied to the cart in your Debutify theme.

Fix**:** Revert to the original code:


Ignore the “corrupt HTML” warning—it’s a false positive. The cart should work now. If not, check with Debutify support for requirements.

If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Use our Big Bulk Discount app to boost your sales! :rocket: (https://apps.shopify.com/big-bulk-discount). Easy to set up and perfect for attracting more customers with bulk discounts. Try it now and watch your revenue grow!