-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Empty string passed to getElementById() in dropdown.js #10044
Comments
Regression of #7318. |
can we expect that this will be also fixed in 2.x branch ? |
@zba Negatory. v2.x.x is no longer actively developed or supported. |
Hi, it seems that this bug appears in Bootstrap 2 and 3, If you want to (temporarily, waiting for the bug to be fixed) hide the warnings in your FF console you can simply overwrite the
Hope this helps, Baptiste |
/ / - Https://github.com/twbs/bootstrap/pull/7692 |
@bgaillard, this seems like a very bad idea; This will only cover the problem and possibly others as well! You can patch bs3 the same way it was done in bs2: |
@devsnd, you are absolutly right, my trick is not elegant an a little "risky". This trick perfectly works on one of our project and we do not want to upgrade our Twitter Bootstrap lib because we consider that the risk to break other peace of codes by upgrading Twitter Bootstrap is more important that applying this trick. But you're right my proposition is far from perfect and I should have mention it in my comment. When I had time to do it I'll proprose a pull request like yours. It seems to be very simple, perhaps just copying your modifications and applying them at line 112 here https://github.com/bgaillard/bootstrap/blob/master/js/dropdown.js ? Thanks. |
Fix issue 10044 title : Empty string passed to getElementById() in dropdown.js url : twbs#10044
I am Using Firefox 22.
Reproduce:
I could track down the error to the
clearMenus
call, which in turn callsgetParents
where the error finally happens.In
getParents
theselector
variable is set to'#'
. This character is stripped away inside jQuery.The text was updated successfully, but these errors were encountered: