Skip to content

Conversation

@carloguli
Copy link

The hasAttribute method requires IE8 Standards mode, while getAttribute is supported also in IE8 compatibility mode. In the limited context of a named attribute expecting to return an integer, checking for null and empty string on getAttribute would be largely equivalent to the result of hasAttribute. This seems to me the only way to extend support to IE8 in compatibility mode since hasAttribute cannot be shimmed. However, I'm not sure this is the only place where changes are needed to support IE8 in compatibility mode.

The hasAttribute method requires IE8 Standards mode, while getAttribute is supported also in IE8 compatibility mode. In the limited context of a named attribute expecting to return an integer, checking for null and empty string on getAttribute would be largely equivalent to the result of hasAttribute. This seems to me the only way to extend support to IE8 in compatibility mode since hasAttribute cannot be shimmed. However, I'm not sure this is the only place where changes are needed to support IE8 in compatibility mode.
@facebook-github-bot
Copy link
Contributor

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks!

@syranide
Copy link
Contributor

syranide commented Dec 9, 2014

See #2169 (comment)

@sophiebits
Copy link
Collaborator

Sorry, we don't support quirks mode and don't have plans to as it's sort of like supporting IE 5.5.

(Note that jQuery also doesn't support quirks mode: http://contribute.jquery.org/wont-fix/#quirks-mode)

@sophiebits sophiebits closed this Dec 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants