#7451 closed bug (fixed)
$(document) cannot fetch attributes on document object
Reported by: | Owned by: | snover | |
---|---|---|---|
Priority: | blocker | Milestone: | 1.4.4 |
Component: | attributes | Version: | 1.4.4rc |
Keywords: | regression | Cc: | john |
Blocked by: | Blocking: |
Description
I think this is a regression (1.4.2 is ok)
$(document)[0].nodeName; // Returns "#document" $(document).attr("nodeName"); // (Now) Returns undefined
Tested on chromium 7.0.517.44 and firefox 3.6 - 4b6
Change History (5)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Cc: | john added |
---|---|
Component: | unfiled → attributes |
Keywords: | regression added |
Milestone: | 1.5 → 1.4.4 |
Owner: | set to snover |
Priority: | undecided → blocker |
Status: | new → assigned |
Version: | 1.4.3 → 1.4.4rc |
comment:3 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Remove conditional that prevents attr from working on non-Element nodes. Fixes #7451.
Changeset: 56b505c60dd73fbe8f3dbe4eb2f42de1e7a68681
comment:4 Changed 13 years ago by
Remove conditional that prevents attr from working on non-Element nodes. Fixes #7451.
Changeset: a64dc0405064d68c7b7cd0f0fc8ea60086cbcd21
comment:5 Changed 13 years ago by
There were problems with this fix, resolved here: https://github.com/jquery/jquery/pull/92
Note: See
TracTickets for help on using
tickets.
Here is a fiddle for this http://jsfiddle.net/boushley/ySMGF/ As mentioned in the bug, it works fine in 1.4.2 but in all newer versions there are issues (1.4.3, 1.4.4R2, and GIT 0).