This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 24084 - Specify Selection.containsNode
Summary: Specify Selection.containsNode
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Selection API (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Ryosuke Niwa
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-13 01:48 UTC by Ehsan Akhgari [:ehsan]
Modified: 2014-09-16 15:44 UTC (History)
4 users (show)

See Also:


Attachments

Description Ehsan Akhgari [:ehsan] 2013-12-13 01:48:14 UTC
Gecko and Blink both implement it.
Comment 1 Aryeh Gregor 2014-04-03 12:25:14 UTC
Ugh, boolean parameter.  Could we change the API here instead of speccing it as-is?  Range already has intersectsNode(), so if this functionality is desired, I would like to copy the intersectsNode() method to Selection, then add containsNode() to both Range and Selection with no second parameter (only returns true if fully contained).

CCing Ryosuke because he was interested in taking over Selection.
Comment 2 Ben Peters 2014-04-21 21:15:30 UTC
Moving to Selection API component.
Comment 4 Ehsan Akhgari [:ehsan] 2014-09-16 15:44:35 UTC
Thanks, Ryosuke.  I submitted a small IDL fix: https://github.com/w3c/selection-api/pull/10