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 13233 - TITLE: Suggestion for a new feature. The tags "br" and "&nbsp" are most frequently used. The suggestion is to reduce and simplify the code while using the tags "br" and "&nbsp" multiple times. Current code for three tabs:     Suggested Code
Summary: TITLE: Suggestion for a new feature. The tags "br" and "&nbsp" are most frequ...
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-13 18:17 UTC by contributor
Modified: 2011-08-04 05:15 UTC (History)
5 users (show)

See Also:


Attachments

Description contributor 2011-07-13 18:17:17 UTC
Specification: http://www.w3.org/TR/html5/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
TITLE: Suggestion for a new feature.

The tags "br" and "&nbsp" are most frequently used.

The suggestion is to reduce and simplify the code while using the tags "br"
and "&nbsp" multiple times.

Current code for three tabs:     Suggested Code: &3nbsp;

Current code for three newlines:  <br/><br/><br/> Suggested Code: <3br/>

Similarly, the user can use any integer(in place of 3) for the number of times
the tags needs to be repeated.


Posted from: 123.236.10.186
User agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20100101 Firefox/6.0
Comment 1 Tab Atkins Jr. 2011-07-13 18:45:17 UTC
What's wrong with copy/paste?

Second, repeated use of &nbsp; and <br> is almost certainly indicative of bad code.  Use CSS instead.
Comment 2 Aryeh Gregor 2011-07-13 22:18:37 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are
satisfied with this response, please change the state of this bug to CLOSED. If
you have additional information and would like the Editor to reconsider, please
reopen this bug. If you would like to escalate the issue to the full HTML
Working Group, please add the TrackerRequest keyword to this bug, and suggest
title and text for the Tracker Issue; or you may create a Tracker Issue
yourself, if you are able to do so. For more details, see this document:

   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: The change you suggest would require significant architectural changes to HTML, such as introducing an infinite number of new entities/elements or adding additional magic to the parser (so one entity/tag creates many characters/elements in the DOM).  Moreover, as comment 1 points out, using many &nbsp; or <br> in a row almost certainly indicates you're using them to create a precise amount of spacing, and you should really be using CSS instead.  Thus there's very little reason we'd want to support this, and it would be difficult to support it even if we wanted to.
Comment 3 Michael[tm] Smith 2011-08-04 05:15:32 UTC
mass-move component to LC1