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 15523 - Define "tab" command
Summary: Define "tab" command
Status: NEW
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - HTML Editing APIs (show other bugs)
Version: unspecified
Hardware: All Windows 3.1
: P2 enhancement
Target Milestone: ---
Assignee: Aryeh Gregor
QA Contact: HTML Editing APIs spec bugbot
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-11 16:14 UTC by Aryeh Gregor
Modified: 2013-02-20 19:35 UTC (History)
5 users (show)

See Also:


Attachments

Description Aryeh Gregor 2012-01-11 16:14:58 UTC
Ojan points out there's a need for a "tab" command, since "indent" doesn't match the behavior of tabbing: http://lists.w3.org/Archives/Public/public-webapps/2012JanMar/0090.html

This needs to behave like indent for lists, but in regular text probably needs to insert something like <span style="white-space:pre-wrap">&#9;</span>, and in tables should tab between cells.

Do we also want an "untab" command that behaves like Shift-Tab?  Presumably yes, for table cells at least.  How should it behave in regular text?  Or lists?  LibreOffice Writer behaves oddly.
Comment 1 Tab Atkins Jr. 2012-01-11 17:24:11 UTC
For the regular text case, matching the behavior of most decent text editors would be *awesome*.  Specifically, when the selection covers multiple explicit lines, put a tab at the beginning of each line.

Untab then does the same thing, removing tabs from the beginning of each line that has one.