[Webkit-unassigned] [Bug 74648] New: DOM4: prepend, append, before, after & replace
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Dec 15 14:04:48 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=74648
Summary: DOM4: prepend, append, before, after & replace
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
URL: http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.ht
ml#interface-element
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: arv at chromium.org
CC: sam at webkit.org, ojan at chromium.org, adamk at chromium.org
DOM4 has these methods which all takes var args of union types
// NEW (using experimental IDL)
void prepend(Node | DOMString... nodes);
void append(Node | DOMString... nodes);
void before(Node | DOMString... nodes);
void after(Node | DOMString... nodes);
void replace(Node | DOMString... nodes);
The way I was envisioning implementing these was to add methods to Node.h that takes a WTF::Vector<WebCore::NodeOrString>. The class NodeOrString would have isNode/toNode and isString/toString methods and there would be one constructor per type. The binding code would check the type and call the right constructor.
Does this seem reasonable?
Is it worth adding support for this in the code generators at this point?
--
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