-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comparing node names should be case insensitive #32
Comments
It appears that Chrome, Firefox and Opera use lower-case, IE/Edge and Safari use uppercase. |
Weird, it should already be lower casing before comparing when it's an HTML document. Maybe that detection code ( @gertsonderby Could you check what that comes out as in the browsers that exhibit the problem? |
In IE11 and Safari 8 both, |
https://developer.mozilla.org/en-US/docs/Web/API/Document/contentType Apparently the feature is non-standard. Not too sure how then to solve it. |
@gertsonderby Aha! Could you check what |
Falling back to |
That yields |
In Safari:
|
@gertsonderby Interesting. How about |
That yields |
Different platforms variously use upper- or lower-case names for nodes, for the purpose of comparison. An example:
The above is used as
subject
, below:In Chrome, the above will work. In IE, it will fail, as it does not recognize that
'div'
as equal to'DIV'
.The text was updated successfully, but these errors were encountered: