Skip to content

Skip tokenization for text in script tags #21

@ryanhollister

Description

@ryanhollister

I understand simple-html-tokenizer is not going to tokenize script tags, but it seems it should not throw an exception on them. I started in htmlbars repo but was directed here. See:

http://emberjs.jsbin.com/jocafazaxa/1/edit?html,js,console

Expected behavior here would be that the sort function is available on the window object.

Note that changing the operator to a '>' works fine.

If simple-html-tokenizer were to simply recognize it is inside of a script tag and to skip tokenization until a closing script tag is found, this would be sufficient.

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