W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2014

[Bug 27650] New: Allow multiple nodes to be inserted to range

From: <bugzilla@jessica.w3.org>
Date: Thu, 18 Dec 2014 05:55:06 +0000
To: www-dom@w3.org
Message-ID: <bug-27650-4009@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=27650

            Bug ID: 27650
           Summary: Allow multiple nodes to be inserted to range
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DOM
          Assignee: annevk@annevk.nl
          Reporter: hey.hgl@gmail.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, www-dom@w3.org

Since DOM starts to allow multiple nodes to be manipulated in bulk (e.g.,
node.before, node.after), does it make sense to allow multiple nodes to be
inserted into a range as well?
For example, range.insertNodes(nodes).

Also have a quick question on the algorithm of node.before and likes:

The before(nodes) method must run these steps:

1.If the context object does not have a parent, terminate these steps.
2.Run the mutation method macro.
3.Pre-insert node into the context object's parent before the context object.

Shouldn't step 3 be something like "For each node in nodes ...", node was never
defined in the algorithm. But maybe I missed something.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Thursday, 18 December 2014 05:55:10 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:23 UTC