[Bug 27650] New: Allow multiple nodes to be inserted to range
| Newsgroups | gmane.comp.web.dom.general |
|---|---|
| Message-ID | <[email protected]/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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected], [email protected]
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.