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

[Bug 27623] New: A node.index() method for the ChildNode interface?

From: <bugzilla@jessica.w3.org>
Date: Tue, 16 Dec 2014 06:44:04 +0000
To: www-dom@w3.org
Message-ID: <bug-27623-4009@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=27623

            Bug ID: 27623
           Summary: A node.index() method for the ChildNode interface?
           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

Love the jquery-like ChildNode interface.

I wonder if it makes sense to add a node.index() method that returns the node's
index. This would be very helpful when dealing with DOM ranges:
range.setStart(node.parentNode, node.index())

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Tuesday, 16 December 2014 06:44:06 UTC

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