From 76d7a44c4855badc22ce1b8be394c5669abfa1aa Mon Sep 17 00:00:00 2001
From: Ryosuke Niwa Every document ([[!DOM4]]) with
a browsing context ([[!HTML5]])
- has a unique Definition
Selection
object associated with it.
- Selection objects are known as selections.
This is a requirement of the HTML spec. IE9 and Opera Next 12.00 alpha seem to follow it, while Firefox 12.0a1 and Chrome 17 dev seem not to. @@ -202,11 +201,20 @@
Selections also have an anchor and a focus. +
Each selections also have an anchor and a focus. If the selection's range is null, its anchor and focus are both null. If the selection's range is not null and its direction is forwards, its anchor is the range's start, and its focus is the end. Otherwise, its focus is the start and its anchor is the end.
+ + +Selection
interface
+ Selection
interface provides a way to interact with the selection
+ associated with each document.
+