Caniuse: Notes for IE9-11 on document.readyState are misleading

Created on 23 Jun 2020  Â·  3Comments  Â·  Source: Fyrd/caniuse

The notes for IE9-11 on document.readyState are misleading. The notes are:

  1. Only supports 'complete'.
  2. Internet Explorer 9 and 10 have bugs where the 'interactive' state can be fired too early before the document has finished parsing.

Note 1 is linked to IE8, IE9-10 and IE11 but as far as I can tell only applies to IE8.

Notes 2 is linked to IE9-10 and IE11 but as far as I can tell only applies to IE9-10. This one is less problematic as at least the note clarifies which browsers are affected.

This means that the popover for IE11 suggests that it doesn't support 'complete', and shows the unrelated IE9-10 issue:

Screenshot 2020-06-23 at 17 01 15

The browser compatibility table on MDN makes it clearer:

Screenshot 2020-06-23 at 17 00 44

I'm not sure if this is an issue with the source data in https://github.com/mdn/browser-compat-data or with the way caniuse interprets the notes, so apologies if this is in the wrong place – happy to raise the issue over there or raise a PR if someone can give me a pointer as to how to make the note only apply to IE8.

Most helpful comment

Ah that's ace, thank you! Can't believe that's your first PR on browser-compat-data 😄

I did wonder if that was the way to do it – will keep an eye on that PR and see how it resolves, and in the future if I spot similar things I might be able to help fix it myself!

All 3 comments

Thanks for finding this! I've looked into it a bit and I believe in this case the issue needs to be fixed from the source data side...the Only supports 'complete'. note is accompanied with "version_added": "8" which generally means it applies to that version and above. I'll write up a BCD PR with suggested fixes and see if folks there agree.

Ah that's ace, thank you! Can't believe that's your first PR on browser-compat-data 😄

I did wonder if that was the way to do it – will keep an eye on that PR and see how it resolves, and in the future if I spot similar things I might be able to help fix it myself!

The PR was merged, and the table has now been updated with correct info, so closing this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Malvoz picture Malvoz  Â·  3Comments

valioDOTch picture valioDOTch  Â·  3Comments

Schweinepriester picture Schweinepriester  Â·  3Comments

mirraj2 picture mirraj2  Â·  3Comments

valtido picture valtido  Â·  3Comments