Skip to main content

Bug Tracker

Side navigation

#7505 closed bug (duplicate)

Opened November 13, 2010 11:09PM UTC

Closed November 15, 2010 12:44AM UTC

Last modified November 15, 2010 12:44AM UTC

document.bind('selectstart') and attr() problem

Reported by: dmifedorenko@gmail.com Owned by:
Priority: undecided Milestone: 1.5
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:
Description

Test case http://jsfiddle.net/Z3bkE/ return empty string on 1.4.4, but on <=1.4.3 it returns 1.

Because of this bug popular jQuery.event.drag library dont work with 1.4.4.

Any way to fix it?

Attachments (0)
Change History (3)

Changed November 14, 2010 04:34AM UTC by jitter comment:1

Potential duplicate of #7500

Changed November 15, 2010 12:44AM UTC by SlexAxton comment:2

resolution: → duplicate
status: newclosed

Correct, jitter, it seems to be a symptom of a regression on attr on non-dom nodes.

A workaround for people doing this now would be to use the 'body' element instead of document: http://jsfiddle.net/Z3bkE/1/

I'll mark this as a dupe though. thanks Jitter for the catch.

Changed November 15, 2010 12:44AM UTC by SlexAxton comment:3

Duplicate of #7500.