Content model query for empty elements seems to be wrong [was #7872]
In certain situations the element completion query seems to query the wrong element when the cursor is inside an empty element.
E.g., in the following document: {code:xml}
{code} with the cursor between the _div_ elements, the list both in the Insert menu as in the completion system via < in the source view the list includes _closer_, which isn't allowed there. After text editing like deleting the < via backspace we get the correct list. I guess the list we get offered in the first place comes from the content model of the _body_ element.