Bug Tracker

Modify

Ticket #8408 (closed bug: invalid)

Opened 2 years ago

Last modified 2 years ago

DOM element as selector inconsistency

Reported by: brad.robert.crawford@… Owned by: brad.robert.crawford@…
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.5.1
Keywords: Cc:
Blocking: Blocked by:

Description

Creating a jquery object from DOM element via $() fails but succeeds when using jQuery()

For example: $( document.getElementById( "id") ) => null jQuery( document.getElementById( "id") ) => $.init[1]

Change History

comment:1 Changed 2 years ago by ajpiano

  • Owner set to brad.robert.crawford@…
  • Status changed from new to pending

Thank you for your time and interest in helping the jQuery project, but we require that all bugs have a working testcase on jsfiddle or another live test case we can audit. What's likely going on here is that some other framework has taken control of the $ variable and so it no longer points to jQuery. You can use jQuery.noConflict to work around this.

comment:2 Changed 2 years ago by anonymous

Please discard this bug, I rushed to report it without investigating fully.

comment:3 Changed 2 years ago by ajpiano

  • Status changed from pending to closed
  • Resolution set to invalid

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.