Skip to main content

Bug Tracker

Side navigation

#4271 closed bug (invalid)

Opened February 28, 2009 05:18PM UTC

Closed February 28, 2009 08:29PM UTC

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 February 28, 2009 05:19PM UTC.

    error when using # for document

  • jquery_bug.jpg (253.2 KB) - added by Trường Sơn February 28, 2009 05:20PM UTC.

    code using #

Change History (2)

Changed February 28, 2009 07:10PM UTC by dmethvin comment:1

Is there jQuery documentation that says

$('#')
is equal to
$(document)
?

Changed February 28, 2009 08:29PM UTC by john comment:2

component: unfilledselector
resolution: → invalid
status: newclosed