Closed
Bug 957827
Opened 12 years ago
Closed 11 years ago
wap.elong.com does not automatically redirect to m.elong.com
Categories
(Web Compatibility :: Site Reports, defect)
Tracking
(Not tracked)
VERIFIED
WORKSFORME
People
(Reporter: hsteen, Assigned: angelc04)
References
()
Details
(Whiteboard: [mobile-compat-form][clientsniff][country-cn][contactready])
Site: http://wap.elong.com
wap.elong.com does not automatically redirect to m.elong.com
:: Steps To Reproduce
This script is used for capability detection - good approach, except it seems to detect only -webkit- prefixed background-size support..
<script type="text/javascript">
var ckh5 = 0;
try {
var __css3sup = function () {
var c = [["-webkit-", "Webkit"]];
var h = [["background-size:1px 1px", "backgroundSize"], ["border-bottom-left-radius:1px", "borderBottomLeftRadius"], ["transform: rotate(45deg)", "transform"], ["box-shadow:1px 1px 1px #999", "boxShadow"], ["animation: rotate 1s linear infinite", "animation"]];
var g = document.createElement("i");
var b = g.style; var f, k;
for (var d = 0; d < h.length; d++) {
f = h[d][1]; k = false; for (var a = 0; a < c.length; a++) { b.cssText = c[a][0] + h[d][0]; if (c[a][1]) { f = f.charAt(0).toUpperCase() + f.substr(1) } if (b[c[a][1] + f] !== undefined) { k = true; break } }
if (!k) { return false }
} return true
};
ckh5 = new Date();
ckh5.setTime(ckh5.getTime() + 7 * 24 * 3600 * 1000);
document.cookie = "ckh5=0;path=/;expires=" + ckh5.toGMTString();
if (document.cookie.indexOf("ckh5=0") == -1)
ckh5 = "nocookie";
else if (!window.JSON)
ckh5 = "nojson";
else if (!document.querySelectorAll)
ckh5 = "noselector";
else if (!__css3sup())
ckh5 = "nocss3";
else
ckh5 = null;
if (!ckh5)
window.location.href = "http://m.elong.com/?_isrdt=wappassckh5";
} catch (e) {alert(e); };
</script>
:: Expected Result
prettiness
:: Actual Result
basic site
:: Additional Information
Software Version: 1.1
Reporter's User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0
| Reporter | ||
Updated•12 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [mobile-compat-form] → [mobile-compat-form][clientsniff][country-cn][contactready]
| Reporter | ||
Comment 1•12 years ago
|
||
(Slightly misread that code - it detects only -webkit- prefixed everything. They can just add ['-moz-', 'Moz'] to detect Mozilla prefixes too, and presumably ['', ''] to detect non-prefixed stuff - though that might require a small change to their capitalization logic.
Comment 2•11 years ago
|
||
Adding the more general Bug about WAP issues for Chinese Web sites.
Depends on: 997668
Updated•11 years ago
|
Assignee: nobody → yliu
Status: NEW → ASSIGNED
Comment 3•11 years ago
|
||
wap.elong.com and m.elong.com receive the same version.
I will close this as fixed.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Updated•11 years ago
|
Assignee: yliu → pcheng
Flags: needinfo?(yliu) → needinfo?(pcheng)
| Assignee | ||
Comment 6•11 years ago
|
||
my test result is the same with comment 5.
Flags: needinfo?(pcheng)
Updated•7 years ago
|
Product: Tech Evangelism → Web Compatibility
Updated•2 years ago
|
Component: Mobile → Site Reports
You need to log in
before you can comment on or make changes to this bug.
Description
•