cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Kinard (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-6848) console.log() on Android uses only the first argument
Date Mon, 02 Jun 2014 21:37:02 GMT

     [ https://issues.apache.org/jira/browse/CB-6848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Marcel Kinard updated CB-6848:
------------------------------

    Description: 
On Android, doing
{code}
    console.log("1", "2", "3", "4", "5");
{code}
results in
{code}
    D/CordovaLog( 2749): file:///android_asset/www/index.html: Line 29 : 1
    I/chromium( 2749): [INFO:CONSOLE(29)] "1", source: file:///android_asset/www/index.html
(29)
{code}
This is different that other implementations of console.log such as described on https://developer.mozilla.org/en-US/docs/Web/API/console.log
that takes multiple args. This appears to be a limitation of http://developer.android.com/reference/android/webkit/WebChromeClient.html#onConsoleMessage(android.webkit.ConsoleMessage)
which can receive only one message containing one string on each invocation.

So since it can't accept multiple args, this should be documented as a platform quirk somewhere.

  was:
On Android, doing

    console.log("1", "2", "3", "4", "5");

results in

    D/CordovaLog( 2749): file:///android_asset/www/index.html: Line 29 : 1
    I/chromium( 2749): [INFO:CONSOLE(29)] "1", source: file:///android_asset/www/index.html
(29)

This is different that other implementations of console.log such as described on https://developer.mozilla.org/en-US/docs/Web/API/console.log
that takes multiple args. This appears to be a limitation of http://developer.android.com/reference/android/webkit/WebChromeClient.html#onConsoleMessage(android.webkit.ConsoleMessage)
which can receive only one message containing one string on each invocation.

So since it can't accept multiple args, this should be documented as a platform quirk somewhere.


> console.log() on Android uses only the first argument
> -----------------------------------------------------
>
>                 Key: CB-6848
>                 URL: https://issues.apache.org/jira/browse/CB-6848
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Docs
>            Reporter: Marcel Kinard
>            Assignee: Marcel Kinard
>            Priority: Minor
>
> On Android, doing
> {code}
>     console.log("1", "2", "3", "4", "5");
> {code}
> results in
> {code}
>     D/CordovaLog( 2749): file:///android_asset/www/index.html: Line 29 : 1
>     I/chromium( 2749): [INFO:CONSOLE(29)] "1", source: file:///android_asset/www/index.html
(29)
> {code}
> This is different that other implementations of console.log such as described on https://developer.mozilla.org/en-US/docs/Web/API/console.log
that takes multiple args. This appears to be a limitation of http://developer.android.com/reference/android/webkit/WebChromeClient.html#onConsoleMessage(android.webkit.ConsoleMessage)
which can receive only one message containing one string on each invocation.
> So since it can't accept multiple args, this should be documented as a platform quirk
somewhere.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message