-
Notifications
You must be signed in to change notification settings - Fork 16
Description
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>).