Closed Bug 957827 Opened 10 years ago Closed 10 years ago

wap.elong.com does not automatically redirect to m.elong.com

Categories

(Web Compatibility :: Site Reports, defect)

Other
Gonk (Firefox OS)
defect
Not set
normal

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
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [mobile-compat-form] → [mobile-compat-form][clientsniff][country-cn][contactready]
(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.
Adding the more general Bug about WAP issues for Chinese Web sites.
Depends on: 997668
Assignee: nobody → yliu
Status: NEW → ASSIGNED
wap.elong.com and m.elong.com receive the same version.
I will close this as fixed.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Is this site dead? Doesn't load for me.
Flags: needinfo?(yliu)
Both sites load for me (with the same content).
Status: RESOLVED → VERIFIED
Assignee: yliu → pcheng
Flags: needinfo?(yliu) → needinfo?(pcheng)
my test result is the same with comment 5.
Flags: needinfo?(pcheng)
Product: Tech Evangelism → Web Compatibility
Component: Mobile → Site Reports
You need to log in before you can comment on or make changes to this bug.