On reflection I'm not sure that it would be worth trying to make them context-sensitive:
There are 160-ish completions, 20+ of which are deprecated;
30+ are HTML5 and subject to change/re-interpretation;
Where attributes are only applicable to one or two elements, this is noted in the completions' description;
Many of the remaining completions are global (apply to all elements).
The two of most interest are name
. It would be nice
if these were only available in the right context. Then again, if someone is using XML/XHTML or a custom DTD, then it is possible that they should still display. (Although, I don't think they display in XML anyway
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.