Skip to content

issue #4 (don't try to parse plain text or html responses) discussion | IE9 support #13

@nyndesigns

Description

@nyndesigns

On line 101 of the library, it performs a test on the data element (which has been determined to be a string) to "decide" whether or not to process the string - or ignore it.

if ( /taconite/.test(data) )
$.taconite(data);

The issue I'm facing (only present in IE9 at this point) is in the case that the string contains html & javascript which contain the word taconite.

When I load my image gallery tool into the DOM - it contains html with additional javascript in it. When one of the javascrpt functions within the code runs - it performs an ajax request and processes the results through $.taconite().

Once the html is loaded into the DOM - the test checks the new string - sees the text "taconite" and so it attempts to process the string. I can see why this needs to be included, but are there any thoughts or ideas on a more robust test (perhaps check the "context" of where the word taconite appears - is it pure javascipt / or html with javascript with it <some_tag></some_tag><script>...taconite...</script>).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions