CodeMirror is able to highlight tag attribute names and values separately in HTML mode.
The MediaWiki mode is missing this feature:
Here's what it should probably look like, complete with colors (SyntaxHighlight):
It seems like a backwards step to highlight the entire attribute collection as one node. Splitting it up allows for proper validation against malformed extension tag or HTML attributes.