Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown bug #1 #97

Open
ddv88 opened this issue Feb 4, 2022 · 3 comments
Open

Unknown bug #1 #97

ddv88 opened this issue Feb 4, 2022 · 3 comments

Comments

@ddv88
Copy link

ddv88 commented Feb 4, 2022

[error] Error: ERROR: Expected element start
[error]   20 |                         </ul>
[error]   21 |                     {% endif %}
[error] > 22 |                 </div>
[error]      |                  ^
[error]   23 |             {% endfor %}
[error]   24 |         </div>
[error]   25 |     </div>
[error]
[error] Unexpected closing "div" tag. Seems like your DOM is out of control.
<footer class="footer">
    <div class="container">
        <div class="row position-absolute w-100 pt-3 pb-3">
            {% for item in links %}
                <div class="col-md-4 col-lg-4">
                    {% if item.child %}
                    <div>{{ t(item.text|upper) }}</div>
                    <ul class="list-unstyled">
                        {% for child in item.child %}
                            <li class="nav-item">
                                <a class="nav-link {{ child.class }}" href="{{ href(child.link) }}">
                                    {{ t(child.text) }}
                                </a>
                            </li>
                        {% endfor %}
                        {% else %}
                            <div>{{ t(item.text) }}</div>
                       </ul>
                 {% endif %}
                </div>
            {% endfor %}
        </div>
    </div>
</footer>
@jamiematrix
Copy link

jamiematrix commented Feb 21, 2022

Not sure if it's related but your closing </ul> is outside of the {% endif %} but the opening <ul> is inside the {% if %}

@ddv88
Copy link
Author

ddv88 commented Feb 21, 2022

Not sure if it's related but your closing </ul> is outside of the {% endif %} but the opening <ul> is inside the {% if %}

It's just my copy/paste mistake.

@karlschwaier
Copy link

I can't reproduce this bug. Formatting worked with your example code.
Anyway you should move up your into the first part of the if to get valid HTML.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants