Skip to main content

Bug Tracker

Side navigation

#11572 closed bug (duplicate)

Opened April 10, 2012 03:47AM UTC

Closed April 10, 2012 04:40AM UTC

Last modified April 10, 2012 04:40AM UTC

attr's argument's length may be changed

Reported by: lining041038@163.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
Description

when some other js code override attr function, it may be always send arguments more the one, then code's behind:

return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 );

will go not correctly,

i view this problem when i use tinymce fulltext components

and when i use like $("a").attr("class"), it will be deal as chainable.

the other auguments will be undefined.

it has no problem in jquery version 1.6.2.

i don't know if it should let other changing their code or change the jquery core.

Attachments (0)
Change History (2)

Changed April 10, 2012 04:40AM UTC by rwaldron comment:1

resolution: → duplicate
status: newclosed

Changed April 10, 2012 04:40AM UTC by rwaldron comment:2

Duplicate of #11527.