jQuery in Chrome Console (8.0.552.237) -


it appears jquery selectors not functioning in chrome console. type of selector returns "null". scripts run javascript, however.

has else noticed change or know of fix.

thanks.

i uncovered cause of in my own question.

the console injects own function (just shorthand) document.getelementbyid(), aliased $, which shadows jquery's $. easy way check this: when you're @ breakpoint, , jquery seems broken, compare following in console:

  • jquery
  • $
  • window.$

the first , last jquery proper, local $ like:

function () {     return document.getelementbyid.apply(document, arguments) } 

this because code run console wrapped in with statement:

with (window ? window.console._commandlineapi : {}) { (window) {     // actual code typed in here }    } 

and window._commandlineapi.$ function shadows jquery.

stupid chrome


found bug in chromium this: http://code.google.com/p/chromium/issues/detail?id=70969


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -