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

Use Node.contains to check if a document contains a node #8637

Closed
wants to merge 2 commits into from

Conversation

dhoko
Copy link

@dhoko dhoko commented Aug 25, 2015

@dhoko
Copy link
Author

dhoko commented Aug 26, 2015

It works since IE5 :)

@mattab
Copy link
Member

mattab commented Sep 11, 2015

Hi @dhoko - thanks for the pull request.

I noticed that the JavaScript tests are failing: https://travis-ci.org/piwik/piwik/jobs/79610460

could you take a look and try to fix the build?

Cheers!

@dhoko
Copy link
Author

dhoko commented Sep 11, 2015

Fixed, tests are ok with both Phantomjs and Chrome,

@dhoko
Copy link
Author

dhoko commented Sep 11, 2015

But the test suite is buggy, sometimes it doesn't work sometimes it works.

Ex 5min ago:

  1. test 32 HS, 33 OK
  2. F5 32 is ok, but 33 HS Wazzuf ?
  3. F5 32,33 ok.

I

element = element.parentNode;
}
return false;
return documentAlias.documentElement.contains(element);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By which browsers it is supported? We need to support down to IE6 ideally older and all kinda stuff :)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works since IE5 :) cf mdn

But we need to validate it with e2e tests. (cannot run a VM :/)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx! It's also supported since Firefox 9.0. @mattab do we need to support older versions? I'm not sure re our policy here.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested with IE6, it works.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IE5 sounds good, even IE6 support and greater is/ would be enough for JavaScript tracker

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant re Firefox 9+. 2012 there were still > 2% using it, I think 2015 it's still > 1.5% according to http://www.w3schools.com/browsers/browsers_firefox.asp . I personally do not see a problem there but just wanna be sure. Maybe we should mention somewhere which versions we try to support as we often had this topic

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok so let's add a polyfill.

@mattab
Copy link
Member

mattab commented Feb 1, 2016

Hi @dhoko maybe we could merge this PR in Piwik 3.0.0?

@mattab mattab added the Pull Request WIP Indicates the current pull request is still work in progress and not ready yet for a review. label Feb 1, 2016
@mattab mattab added this to the 3.0.0 milestone Feb 1, 2016
@dhoko
Copy link
Author

dhoko commented Feb 2, 2016

I wanted to upgrade this PR, but since the beginning I have this #9492 It's hard to work with it :/

PS: Yes copy/paste this message

@tsteur tsteur changed the base branch from master to 2.x-dev September 1, 2016 06:40
@mattab mattab modified the milestones: 3.0.0-b2, 3.0.0 Sep 23, 2016
@mattab
Copy link
Member

mattab commented Sep 23, 2016

Moved to 3.0.0-b2 - @tsteur maybe you could review/maybe-merge this one?

@tsteur
Copy link
Member

tsteur commented Sep 26, 2016

@dhoko if you are still interested in this can you issue PR again against 3.x-dev branch? 2.X is in LTS mode so we don't merge any possibly breaking changes

@tsteur tsteur closed this Sep 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pull Request WIP Indicates the current pull request is still work in progress and not ready yet for a review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants