<div dir="ltr">Hi,<div><br></div><div>I've noticed that selecting enclosing typing pairs is broken for HTML when an open tag spans several lines. ie:</div><div><br></div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><font face="monospace, monospace"><div>*</font></div><div><font face="monospace, monospace">    <p id="paragraph"</font></div><div><font face="monospace, monospace">       class="content"></font></div><div><font face="monospace, monospace">    </p></font></div><div><font face="monospace, monospace"></div></font></div></div></blockquote><br></div><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><div><br></div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><font face="monospace, monospace"><div></font></div><div><font face="monospace, monospace">    <input id="field"</font></div><div><font face="monospace, monospace">           class="form-field"/></font></div><div><font face="monospace, monospace"></div></font></div></div></blockquote><br></div><div>I've looked into the HTML bundle but I'm not sure the typing pairs references there are the culprit for this.</div><div><br></div><div>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.</div><div><br></div><div>Thanks!</div></div>