Skip to content

Bad context for <script type="text/html"> #24

@glubo

Description

@glubo

Latte guesses Javascript context instead of html context inside <script type="text/html">. E.g.

        {$foo}

        <script id="template1" type="text/html">
                {$foo}
        </script>
        <script>
                document.write(document.getElementById('template1').text);
        </script>

Similar construct is used in Knockout JS for templates (see http://knockoutjs.com/documentation/template-binding.html).

I've created a simple demo of this bug: https://github.com/glubo/latte_text_html .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions