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

Removing "strip for ie7" code from JavaScript #10858

Closed
wants to merge 7 commits into from

Conversation

dan-silver
Copy link
Contributor

I have removed all cases where selectors or targets are being "stripped for ie7" since ie7 is no longer supported.

This resolves #10441.

@cvrebert
Copy link
Collaborator

@dan-silver Could you enable Travis CI for your repo?

@dan-silver
Copy link
Contributor Author

Sure, I've added it.

@@ -106,7 +106,7 @@

if (!selector) {
selector = $this.attr('href')
selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
selector = /#/.test(selector) && selector
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe this line should just be eliminated entirely.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When I removed this line, it fails the test "should test if element has a # before assuming it's a selector". Should I remove the test as well or leave both of them as is?

@zlatanvasovic
Copy link
Contributor

Could you rebase the commits? Help: https://help.github.com/articles/interactive-rebase

@fat
Copy link
Member

fat commented Dec 24, 2013

i dont think we should do this… it completely breaks the declarative api for ie7 (and other browsers which return full urls in href's).

Also it's such an easy thing to add and doesn't really hurt anything. No real benefit in removing it.

@fat
Copy link
Member

fat commented Dec 24, 2013

I'm going to close this for now. As long as we have Bootstrap should look and behave well enough… in ie7, i dont think we should remove this.

@fat fat closed this Dec 24, 2013
@mdo
Copy link
Member

mdo commented Dec 27, 2013

Sounds like a fair enough v4 thing <3.

@zlatanvasovic
Copy link
Contributor

So, save it for v4! :D

2013/12/27 Mark Otto [email protected]

Sounds like a fair enough v4 thing <3.


Reply to this email directly or view it on GitHubhttps://github.com//pull/10858#issuecomment-31245389
.

Zlatan Vasović - ZDroid

@mdo mdo mentioned this pull request Aug 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove "strip for ie7" code from JavaScript
6 participants