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 14249 - Define some type of selection normalization
Summary: Define some type of selection normalization
Status: NEW
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - HTML Editing APIs (show other bugs)
Version: unspecified
Hardware: All Windows 3.1
: P2 normal
Target Milestone: ---
Assignee: Aryeh Gregor
QA Contact: HTML Editing APIs spec bugbot
URL:
Whiteboard:
Keywords:
Depends on: 14248
Blocks: 14250
  Show dependency treegraph
 
Reported: 2011-09-22 18:47 UTC by Aryeh Gregor
Modified: 2012-12-04 00:51 UTC (History)
2 users (show)

See Also:


Attachments

Description Aryeh Gregor 2011-09-22 18:47:56 UTC
As discussed at various points in the WHATWG, the user shouldn't be allowed to create arbitrary selections.  I have to define exactly what selections are allowed, and say when the selection needs to be normalized accordingly.
Comment 1 Aryeh Gregor 2012-05-23 08:04:01 UTC
Example raised by John Bilicki III (http://www.jabcreations.com/) in private e-mail: if you have something like <span>foo</span><span>bar</span>, it should never be possible for the start of a selection to be at (foo, 3), nor the end to be at (bar, 0), except if the selection is collapsed.