Bug Tracker

Modify

Ticket #4271 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

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:
Blocking: Blocked by:

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

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

Change History

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

error when using # for document

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

code using #

comment:1 Changed 4 years ago by dmethvin

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

comment:2 Changed 4 years ago by john

  • Status changed from new to closed
  • Resolution set to invalid
  • Component changed from unfilled to selector

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.