https://bugzilla.wikimedia.org/show_bug.cgi?id=57773

       Web browser: ---
            Bug ID: 57773
           Summary: mw.Uri.test: Internet Explorer treats optional
                    capturing groups not as undefined
           Product: MediaWiki
           Version: 1.23-git
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Unit tests
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: umherirrender_de...@web.de
                CC: has...@free.fr, krinklem...@gmail.com,
                    m...@everybody.org
    Classification: Unclassified
   Mobile Platform: ---

There is a mw.uri test which fails in Internet Explorer 8:

Testname: basic object properties
Expected:  {
  "fragment": undefined,
  "host": "www.ietf.org",
  "path": "/rfc/rfc2396.txt",
  "port": undefined,
  "protocol": "http",
  "query": {}
}
Result:  {
  "fragment": "",
  "host": "www.ietf.org",
  "path": "/rfc/rfc2396.txt",
  "port": "",
  "protocol": "http",
  "query": {}
}

Testname: Parse an ftp URI correctly with user and password
Expected:  {
  "fragment": undefined,
  "host": "192.0.2.16",
  "password": "pwd",
  "path": "/",
  "port": undefined,
  "protocol": "ftp",
  "query": {},
  "user": "usr"
}
Result:  {
  "fragment": "",
  "host": "192.0.2.16",
  "password": "pwd",
  "path": "/",
  "port": "",
  "protocol": "ftp",
  "query": {},
  "user": "usr"
} 

and some more (6 failures)


Looks like InternetExplorer init all capturing groups with a empty string and
when the group not matched the empty string is the value.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to