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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Bugzilla from bugzilla@jessica.w3.org
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: [hidden email]
          Reporter: [hidden email]
        QA Contact: [hidden email]
                CC: [hidden email], [hidden email]

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.

Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 27650] Add range.insert(nodes...)

Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=27650

Anne <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WONTFIX
             Status|ASSIGNED                    |RESOLVED

--- Comment #7 from Anne <[hidden email]> ---
FWIW, https://github.com/whatwg/dom/issues/new is the new place.

--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...