[Webkit-unassigned] [Bug 101495] Web Inspector: styled logs should work with multiple log() arguments
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Nov 7 12:19:28 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=101495
Pavel Feldman <pfeldman at chromium.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Pavel Feldman <pfeldman at chromium.org> 2012-11-07 12:21:01 PST ---
> I would expect these to work:
>
> console.log('%c red text', 'unstyled', 'color:red');
> console.log(window, 'unstyled', '%c red text', 'color:red');
> console.log('unstyled', document.body, '%c red text', 'color:red');
Here is the message formatting logic: when there are multiple arguments, if the first argument is a string, it is considered a "message format". message format string absorbes parameter per %X occurrence. So you should not expect the onces above to work.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list