Bug 119898 - '' + obj and obj.toString() behave differently on objects returned by attributedString.getAttributeValueAtIndex
Summary: '' + obj and obj.toString() behave differently on objects returned by attribu...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Bindings (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2013-08-16 10:19 PDT by Ryosuke Niwa
Modified: 2014-10-28 23:52 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2013-08-16 10:19:40 PDT
While
var value = '' + attributedString.getAttributeValueAtIndex(attributeNames[j], location);
results in value containing useful description string like:
"Times-Roman 16.00 pt. P [] (0x7f889c3225e0) fobj=0x7f889c322240, spc=4.00"

var value = attributedString.getAttributeValueAtIndex(attributeNames[j], location).toString()
results in value containing:
[object ObjCRuntimeObject]
Comment 1 Radar WebKit Bug Importer 2014-10-28 23:52:46 PDT
<rdar://problem/18807818>