I don't actually quite understand what was going wrong, I may have some error in my page, but the following line in child.js was breaking jquery at all:

if (href.length <= 0 || href.charAt(0) == '#') {

Seems like some of the <a> tags on the page don't have href. This shouldn't happen on my page but I realized that can happen generally, with <a name="">.

Attaching a patch to check if href is correct object.

CommentFileSizeAuthor
modalframehref_patch.js.txt351 bytesmeba

Comments

markus_petrux’s picture

Title: child.js breaks javascript » javascript error in child frames for anchors that do not have href
Status: Needs review » Fixed

Committed to CVS. Thanks :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.