Skip to main content

Bug Tracker

Side navigation

#8199 closed bug (invalid)

Opened February 07, 2011 04:40PM UTC

Closed February 07, 2011 06:19PM UTC

Last modified February 08, 2011 07:42AM UTC

Including jQuery breaks Indico

Reported by: gundlach.business@gmail.com Owned by:
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.5
Keywords: Cc:
Blocked by: Blocking:
Description

Repro:

1. Visit http://cheops.php-4.info/~adrian/indico-jquery/materialsShow-no-jquery.html in Google Chrome.

2. Click "Add Material".

3. Notice that a popup window appears.

4. Visit http://cheops.php-4.info/~adrian/indico-jquery/materialsShow.html in a new tab in Google Chrome.

5. Click "Add Material".

6. Notice that no popup window appears.

The only difference between the two links is that the latter has the line:

<script src="http://code.jquery.com/jquery-1.5.js">

This test case is a copy of an internal page at CERN (that is breaking for Chrome users who have the AdBlock extension) -- so fixing this will make the Large Hadron Collider work better! :)

Attachments (0)
Change History (4)

Changed February 07, 2011 06:19PM UTC by snover comment:1

resolution: → invalid
status: newclosed

Thanks for the report, but this is not a jQuery bug. You have written invalid markup. You must close script tags.

Changed February 07, 2011 07:29PM UTC by adrian.moennich@cern.ch comment:2

I've just closed the script tag in the testcase. The missing closing tag was NOT the reason for the issue (I simply forgot it when adding the jquery script tag to the testcase).

Changed February 07, 2011 11:33PM UTC by jitter comment:3

Replying to [comment:2 adrian.moennich@…]:

I've just closed the script tag in the testcase. The missing closing tag was NOT the reason for the issue (I simply forgot it when adding the jquery script tag to the testcase).

We would love to investigate this issue further, but with the "test-page" links you provided it's near to impossible to find out what might be cause for the problems you have. They both include lots and lots of javascript code in paritally minified/compressed form.

If you can provide a minimal test case, reproducing the problem and showing this is indeed a bug in jQuery, following the procedure in: How to report bugs we might be able to help you.


P.S. What I noticed is that the pop up seems to be there - on the jQuery included page - after clicking the link but for some reason isn't visible.

Executing $("div.exclusivePopup").css("position", "absolute") after clicking the link (e.g. in the url field or js-console) for some reason makes the pop up visible in Chrome.

Changed February 08, 2011 07:42AM UTC by anonymous comment:4

Apparently this line of jQuery causes the bug to occur:

body.removeChild( div ).style.display = "none";