it's been solved by specifying that as correct behaviour. (Not the choice I'd have made) In particular, the element is not empty.
<br/> parses as <br> and both are conforming.
<div/> is not conforming, but similarly parses as <div>
so the above parses asand bar is inside the div, so styled.
foo<div style="font-weigh:bold">bar