Fix JS DOM selector placeholders

This commit is contained in:
Louis Pilfold 2014-10-13 13:41:52 +01:00
parent e2bd41af02
commit 0373b8400e

View File

@ -212,22 +212,22 @@ snippet jsons
# Get elements # Get elements
snippet get snippet get
getElementsBy${1:TagName}('${2}') getElementsBy${1:TagName}('${0}')
# Get element # Get element
snippet gett snippet gett
getElementBy${1:Id}('${2}') getElementBy${1:Id}('${0}')
# Elements by class # Elements by class
snippet by. snippet by.
${document}.getElementsByClassName('${class name}) ${1:document}.getElementsByClassName('${0:class})
# Element by ID # Element by ID
snippet by# snippet by#
${document}.getElementById('${element ID}) ${1:document}.getElementById('${0:element ID})
# Query selector # Query selector
snippet qs snippet qs
${document}.querySelector('${selectors}) ${1:document}.querySelector('${0:CSS selector})
# Query selector all # Query selector all
snippet qsa snippet qsa
${document}.querySelectorAll('${selectors}) ${1:document}.querySelectorAll('${0:CSS selector})
# Debugging # Debugging