Bug Tracker

Opened 10 years ago

Closed 10 years ago

#4271 closed bug (invalid)

can not use # for document

Reported by: Trường Sơn Owned by:
Priority: major Milestone: 1.4
Component: selector Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:

Description

when i use $('#').ready(...), it's say uncaught exception: Syntax error, unrecognized expression: #,

but when i replace # with document : $('document'),it's ok.

Attachments (2)

jquery_1.3.2 _ajax _error.jpg (98.2 KB) - added by Trường Sơn 10 years ago.
error when using # for document
jquery_bug.jpg (253.2 KB) - added by Trường Sơn 10 years ago.
code using #

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by Trường Sơn

error when using # for document

Changed 10 years ago by Trường Sơn

Attachment: jquery_bug.jpg added

code using #

comment:1 Changed 10 years ago by dmethvin

Is there jQuery documentation that says $('#') is equal to $(document)?

comment:2 Changed 10 years ago by john

Component: unfilledselector
Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.