The spec didn't match how other browsers behave, and we dutifully did what the spec said. A spec bug has been filed, so let's fix this locally for now with a FIXME. (cherry picked from commit e3408c4a7f2fe2ce2435d34e816e9b5b7e58f4af)