Skip to content

Commit

Permalink
Merge edd5f8e into f7572ae
Browse files Browse the repository at this point in the history
  • Loading branch information
rodfersou committed Jul 11, 2016
2 parents f7572ae + edd5f8e commit 7fa104a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Changelog
1.0b3 (unreleased)
------------------

- Nothing changed yet.
- Ignore iframes explicitly.
[rodfersou]


1.0b2 (2016-07-08)
Expand Down
4 changes: 4 additions & 0 deletions src/collective/texttospeech/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ var MainView = (function() {
return false;
};
MainView.prototype.is_valid_element = function(el) {
// Explicity ignore iframes
if (el.tagName === 'IFRAME') {
return false;
}
// check if element is a text or any container (ex.: <div> <p>)
// https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType#Node_type_constants
var valid_types = [
Expand Down

0 comments on commit 7fa104a

Please sign in to comment.