Implement attribute value hinting in attribute selectors.
Replace the incorrect use of substr() calls with slice() calls.
Improve the logic in hasHints() so that we don't claim to have hints when the current context is not the selector context.