Bug 119898
| Summary: | '' + obj and obj.toString() behave differently on objects returned by attributedString.getAttributeValueAtIndex | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
| Component: | Bindings | Assignee: | 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 | ||
Ryosuke Niwa
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]
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/18807818>