Ticket #6045 (closed bug: invalid)
$('<p>some text</p>').get() doesn't return a dom-node anymore
| Reported by: | dwt | Owned by: | john |
|---|---|---|---|
| Priority: | Milestone: | 1.4.2 | |
| Component: | manipulation | Version: | 1.4.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
I'm trying to migrate my testsuite to jquery 1.4.1 from 1.3.2 and this is one of the biggest roadblocks I've hit so far.
Running "$('<p>some text</p>').get()" in one of the browser debugger js shells should return that dome node.
This works with jQuery 1.3.1
Tested in WebKit Nightly as of 6.2.10
Change History
comment:1 Changed 3 years ago by john
- Owner set to john
- Status changed from new to assigned
- Component changed from core to manipulation
comment:2 Changed 3 years ago by john
(I can confirm that it works in Safari 4 and breaks in the nightlies.)
comment:3 Changed 3 years ago by john
Ok, wait, this seems to only be a problem with the debugger shell. The content is actually there (doing .get()[0].nodeName gives the paragraph) so it's just a display problem, it seems - but the array does appear to be empty, even though it's not.
comment:4 Changed 3 years ago by john
- Status changed from assigned to closed
- Resolution set to invalid
Filed at WebKit: https://bugs.webkit.org/show_bug.cgi?id=34680
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Sounds like a serious problem with the WebKit nightlies!