javascript - jquery '[target]' mean anything special? -


i'm looking @ snippet of jquery code , wondered what, if anything, special [target] means in brackets below:

  try {         $.each($('a:not([target])'), function(index, value) {             resettoparent($(value));         });     } catch (e) {     } 

that try block defined in 375 line(!) function , not part of click or other handler, otherwise use of target make more sense. it's being called 100 or lines down function part of normal flow.

that selector telling jquery find <a> tags don't have target attribute.

so match:

<a href="someurl.com">a link</a> 

but not:

<a href="someurl.com" target="_blank">a link</a> 

Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -