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.
found bug in chromium this: http://code.google.com/p/chromium/issues/detail?id=70969
Comments
Post a Comment