Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOM.normalize() not working properly in IE #22

Open
PawelMaj opened this issue Dec 8, 2015 · 0 comments
Open

DOM.normalize() not working properly in IE #22

PawelMaj opened this issue Dec 8, 2015 · 0 comments

Comments

@PawelMaj
Copy link

PawelMaj commented Dec 8, 2015

On Line 419, thisParentNode.normalize(); is called in order to combine and clean up all child nodes. On certain versions/certain settings in IE, the normalize(); function does not work correctly. It does not combine the child nodes, which in turn leads to faulty results.

For example:

  1. Searching for "pm" in [email protected]
  2. The child nodes could be "cs.p", "[email protected]".
  3. blast.js will search for "pm" in "cs.p"
  4. blast.js will search for "pm" in ""[email protected]"

Both will return no matches. The correct functionality should be:

  1. Searching for "pm" in "[email protected]"
  2. The child nodes should just be "[email protected]".
  3. blast.js will search for "pm" in "[email protected]"
    A match is found.

I know this is mostly a bug in IE, but maybe changing the code to not use this function, and instead doing it manually might be the better choice. Another solution might be to combine all child nodes into one, before searching through them. Although this is not necessary a bug with blast, it does affect it.

Here is more information: http://stackoverflow.com/questions/12972090/ie-9-standards-mode-normalize-method-does-not-work

@PawelMaj PawelMaj changed the title Dom.normalize() not working properly in IE DOM.normalize() not working properly in IE Dec 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant