Bug 119898

Summary: '' + obj and obj.toString() behave differently on objects returned by attributedString.getAttributeValueAtIndex
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: BindingsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, darin, ggaren, mhahnenberg, sam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=137287

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>