Created attachment 8732481 [details] testcase Clicking the first button makes the invalid-markup disappear. This seems weird. Clicking the second button makes it reappear. This almost certainly means there's a bug, because it only forces re-layout of the same elements.
You need to log in before you can comment on or make changes to this bug.