Rewrite some logic in getTagInfo and getTagAttributes apis for the xml mode changes in CodeMirror.
Updates for review feedback.
Merge remote-tracking branch 'origin' into rlim/update-codemirror
update codemirror to the latest
Merge pull request #7545 from adobe/rlim/update-codemirror

Rewrite some logic in getTagInfo and getTagAttributes apis for CodeMirror updates in xml mode.