This method is called to convert HTML into an NSAttributedString in several methods of the NSTextInput protocol. The conversion currently fails to handle the underline style, causing problems with the Inspector Bar in Mail on Mac.
<rdar://problem/9325183>
Created attachment 123040 [details] Patch
Comment on attachment 123040 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=123040&action=review > Tools/TestWebKitAPI/Tests/mac/InspectorBar.mm:68 > + NSDictionary *attributes = [attrString attributesAtIndex:0 effectiveRange:nil]; I think the effectiveRange parameter is a pointer to an NSRange, so you should write 0, not nil.
> I think the effectiveRange parameter is a pointer to an NSRange, so you should write 0, not nil. Thanks for the review! I will fix this.
http://trac.webkit.org/changeset/105416
This could be tested with a regular layout test - we expose attributedSubstringFromRange in DumpRenderTree.