Bug Tracker

Modify

Ticket #4149 (closed bug: duplicate)

Opened 4 years ago

Last modified 4 years ago

css(property, value) has a problem??

Reported by: Jumann Owned by:
Priority: major Milestone: 1.3.2
Component: core Version: 1.3.1
Keywords: Cc:
Blocking: Blocked by:

Description

javascript:(function(){window.t=document.createElement('script');window.t.src='http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.js';window.document.body.appendChild(window.t);setTimeout(function(){jQuery('body').css('padding-top',30);},2000)})();

You can copy the sentence above here. Then link to  http://help.cc.tw.yahoo.com/index.html?product=news and paste it to address bar. It raised exception which is name.replace is not a function at line 1043 in jquery 1.3.1

Change History

comment:1 Changed 4 years ago by Rwhitbeck

You're injecting jQuery onto a page it wasn't built for. I think the .replace function is getting overloaded in a way it wasn't meant to by the page author.

I don't think this is a jQuery problem.

comment:2 Changed 4 years ago by john

  • Status changed from new to closed
  • Resolution set to duplicate
  • Component changed from unfilled to core

That page uses Object.prototype, which is breaking things. Thus I'm marking this as a duplicate of #2721.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.