Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

External Link detection is case sensitive #2446

Closed
sergioharo opened this issue Sep 14, 2011 · 4 comments
Closed

External Link detection is case sensitive #2446

sergioharo opened this issue Sep 14, 2011 · 4 comments
Assignees
Milestone

Comments

@sergioharo
Copy link

The logic that determines whether to change a page via AJAX or via a page load is not case insensitive.

Say that I'm on http://jquerymobile.com/demos/1.0b3/

The following links open via AJAX (as expected):

<a href="docs/pages/index.html" class="ui-link-inherit">Pages &amp; dialogs</a>

<a href="http://jquerymobile.com/demos/1.0b3/docs/pages/index.html" class="ui-link-inherit">Pages &amp; dialogs</a>

The following opens as an external link:

<a href="http://jqueryMOBILE.com/demos/1.0b3/docs/pages/index.html" class="ui-link-inherit">Pages &amp; dialogs</a>

@jblas
Copy link
Contributor

jblas commented Sep 14, 2011

Yeah, apparently only the hostname part of a URL should be considered case-insensitive. Everything else should be case-sensitive.

http://www.w3.org/TR/WD-html40-970708/htmlweb.html

@johnbender
Copy link
Contributor

@sergioharo

The relevant information from the document:

URLs in general are case-sensitive (with the exception of machine names). There may be URLs, or parts of URLs, where case doesn't matter, but identifying these may not be easy. Users should always consider that URLs are case-sensitive.

@johnbender
Copy link
Contributor

Hasty in my closing of the issue. Re-opening to address in the future.

@gabrielschulhof
Copy link

Reproduced on jsfiddle with latest and greatest: http://jsfiddle.net/5E2V4/1/show/light/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants