[Webkit-unassigned] [Bug 46026] New: createFragmentFromText should not clone the block surrounding its context parameter to wrap paragraphs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 17 18:51:16 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=46026

           Summary: createFragmentFromText should not clone the block
                    surrounding its context parameter to wrap paragraphs
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Keywords: InRadar
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: justin.garcia at apple.com
                CC: rniwa at webkit.org, enrica at apple.com


createFragmentFromText uses its Range* parameter to determine the kind of block that will be used to wrap paragraphs of text.  This is bad because the cloned blocks have the same id as the original and because there is no straightforward way to get it to use a particular kind of block/style.

We should write a new function, possibly:

PassRefPtr<DocumentFragment> createFragmentFromText(Document* document, CSSStyleDeclaration* style, const QualifiedName& tagName, const String& text)

that requires callers to be specific about the kind of block they want to use.

<rdar://problem/8446956>

-- 
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