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

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