I was just looking at the actual definition there. It does not actually use the word “capable”. It uses the word “designed”.
Your point is partially correct in that the classification of the rifle or the shotgun is influenced by the kind of magazine it's designed to accept, but the use of the word “capable” is somewhat broader than that.