Hi,

I've noticed that selecting enclosing typing pairs is broken for HTML when an open tag spans several lines. ie:

<div>*
    <p id="paragraph"
       class="content">
    </p>
</div>

If you place the caret at * and select the enclosing typing pairs, the selection closes at </p> rather than </div>. It doesn't happen however for self closing tags:

<div>
    <input id="field"
           class="form-field"/>
</div>

I've looked into the HTML bundle but I'm not sure the typing pairs references there are the culprit for this.

Could someone point me in the right direction to fix this issue? I'd be glad to open a PR once I get it working.

Thanks!