bundles/org.eclipse.orion.client.webtools/web/webtools/htmlContentAssist.js
function(node, source, params) {
			// TODO We can do better with the new parser, handle no quotes cases too
			if(node && node.type === 'attr') {
				if (node.valueRange) {
					var range = node.valueRange;
					return range[0] <= params.offset && range[1] >= params.offset;
				}
				return this.within('"', '"', source, params.offset, node.range) || //$NON-NLS-1$ //$NON-NLS-2$
						this.within("'", "'", source, params.offset, node.range); //$NON-NLS-1$ //$NON-NLS-2$
			}
			return false;
		}
function(node, source, params) {
			// TODO We can do better with the new parser, handle no quotes cases too
			if(node && node.type === 'attr') {
				if (node.valueRange) {
					var range = node.valueRange;
					return range[0] <= params.offset && range[1] >= params.offset;
				}
				return this.within('"', '"', source, params.offset, node.range) || //$NON-NLS-1$ //$NON-NLS-2$
						this.within("'", "'", source, params.offset, node.range); //$NON-NLS-1$ //$NON-NLS-2$
			}
			return false;
		}
function ( node , source , params ) { // TODO We can do better with the new parser, handle no quotes cases too if ( node && node . type === 'attr' ) { if ( node . valueRange ) { var range = node . valueRange ; return range [ 0 ] <= params . offset && range [ 1 ] >= params . offset ; } return this . within ( '"' , '"' , source , params . offset , node . range ) || //$NON-NLS-1$ //$NON-NLS-2$ this . within ( "'" , "'" , source , params . offset , node . range ) ; //$NON-NLS-1$ //$NON-NLS-2$ } return false ; }
Computes if we are trying to complete attributes
@param {Object} node The AST node to check with the offset
@param {String} source The backing source
@param {Object} params The parameters
@returns {Boolean} True if we are completing the attributes of a tag, false otherwise
@since 10.0
Computes if we are trying to complete attributes