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

HTML5 Validation Error #198

Open
9mido opened this issue May 16, 2020 · 0 comments
Open

HTML5 Validation Error #198

9mido opened this issue May 16, 2020 · 0 comments

Comments

@9mido
Copy link

9mido commented May 16, 2020

When placing the {% ratings object %} tag inside of another div in a template, HTML5 validator gives this error:

Error: Element style not allowed as child of element div in this context.

<div>

{% ratings object %}

</div>
<div>

<style>
    #dsr955ab1338c9b4de792faa379ccd96d42 .star-ratings-rating-full, #dsr955ab1338c9b4de792faa379ccd96d42 .star-ratings-rating-empty {
        width: 40px;
        height: 40px;
        background: url(/static/star-ratings/images/stars.png) no-repeat;
        background-size: 120px;
    }

    #dsr955ab1338c9b4de792faa379ccd96d42 .star-ratings-rating-empty {
        background-position: -40px 0;
    }

</style>

</div>
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

1 participant