Talk:DOM:range
From MDC
Migrated the lists of properties and methods for the range object and created links to new pages. --Jonnyq 09:11, 13 September 2005 (PDT)
Two issues:
-
You're missing info on Gecko extensions to Range, especially the createContextualFragment. http://www.mozilla.org/docs/dom/domref/dom_range_ref26.html#1003785 - createRange() is not a method of Range. Move it to DOM:document.
--Maian 09:27, 5 October 2005 (PDT)
Agreed - moved createRange to Document object. DOM:document probably needs a link there, but this page needs a link as well for completeness.
- Some more nitpicks:
- The set* methods aren't "creation methods". They are more like "positioning methods".
- I wouldn't even have a creation method section, and just mention in the introduction/description that it can be created by document.createRange. --Maian 20:08, 17 October 2005 (PDT)
- "Creation" is now "Positioning". Clarified the meaning of "Positioning" and "Editing". It might be nice to note that range objects can be retrieved from selection objects. There is currently nothing written about the selection object. Since the selection object is non-standard and is mainly used within, documentation has been kept at a minimum. Since the selection object and the range object are closely related, there probably should be something here about it.--Jonnyq 08:17, 18 October 2005 (PDT)
- Selection interface is at DOM:Selection, though documentation is indeed sparse. At a minimum, it's getRangeAt method needs to be documented. --Maian 08:14, 18 October 2005 (PDT)
- "Creation" is now "Positioning". Clarified the meaning of "Positioning" and "Editing". It might be nice to note that range objects can be retrieved from selection objects. There is currently nothing written about the selection object. Since the selection object is non-standard and is mainly used within, documentation has been kept at a minimum. Since the selection object and the range object are closely related, there probably should be something here about it.--Jonnyq 08:17, 18 October 2005 (PDT)
[edit] Range.collapsed
"collapsed - returns a boolean indicating whether the range is collapsed" sounds silly (using a word to define that word). Does this sound better: "collapsed - returns a boolean indicating whether the range's stard and end points are the same"? --Jonnyq 15:04, 17 October 2005 (PDT)
- How about "returns a boolean indicating whether the range's start and end points are at the same position" --Maian 20:08, 17 October 2005 (PDT)
- Better to me. --Jonnyq
[edit] Gecko methods
Summaries need some work... --Maian 09:40, 18 October 2005 (PDT)