A quick search turns up that it is indeed a Firefox bug and not a bug in the spec[0]. Honestly it is very disappointing that such an obvious issue has been left open for so long. This is part of a very old spec and that any browser doesn't have compliance with this is surprising.
[0] https://bugzilla.mozilla.org/show_bug.cgi?id=266122