html/syntax/charset/after-bogus-after-1kb.html asserts that a <meta charset> in <head> after a <bogus> element is ignored.
That does not seem conformant with what the specification dictates:
- The
<bogus> tag is processed in the in head insertion mode. It reaches the "anything else" branch and is reprocessed in the after head insertion mode
- The
<bogus> tag is processed in the after head insertion mode where it is reprocessed in the in body insertion mode. In there an appropriate html element is inserted.
- The
<meta charset> tag is processed in the in body insertion mode, which dictates that it should be processed according to the rules of the in head insertion mode. In other words, the <meta charset> tag should be respected by the agent.