Other questions similar to this one have been raised, but they do not cover a straightforward example of the problem. When looking at the code snippet below, you will notice that a line break is inserted after the closing span tag if Bootstrap 5 is utilized. This behavior does not occur with vanilla HTML, HTML5, or in earlier versions of Bootstrap. Can anyone explain what specific change in Bootstrap 5 is causing this to happen?
I can solve this issue by wrapping the span and following text within a paragraph with the style attribute set to "display:inline", but I am genuinely interested in understanding the root cause of the problem.
<!-- Bootstrap 5 -->
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4f2d20203b3c3b3d2e3f0f7a617f617e">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
<!-- HTML -->
<div class="container" style="width: 100%; height: 100%; border-style: none;">
<div class="row" style="border-style: solid;">
<span style="font-weight: bold">Editing User #</span>2, david
</div>
</div>