<hr> align="center" is omitted

RESOLVED INVALID

Status

SeaMonkey
Composer
RESOLVED INVALID
15 years ago
13 years ago

People

(Reporter: Henning Weber, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

15 years ago
User-Agent:       Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.4a) Gecko/20030401
Build Identifier: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.4a) Gecko/20030401

when entering a <hr> with central alignment, the attribute align="center" is
omitted because it is the default for mozilla.  But the html-reference gives
align="left" as default and IE behaves like this.  

My suggestion: give 4 options for the alignment: left, center, right, default.
When center is selected, it should be written to html independently from the
default behaviour of the browser.

Reproducible: Always

Steps to Reproduce:
1. open composer
2. insert horizontal line
3. enter Horizontal Line Properties
4. enter Advanced Edit ...
5. select Attribute: align = center
6. view the HTML Source

Actual Results:  
In the HTML-Source

<hr width="100%" size="2">

Expected Results:  

<hr width="100%" size="2" align="center">

Updated

15 years ago
OS: Windows NT → All
Hardware: PC → All
HTML 4.01 spec says in section 15.3 :

  <!ELEMENT HR - O EMPTY -- horizontal rule -->
  <!ATTLIST HR
      %attrs; -- %coreattrs, %i18n, %events --
  >

  Start tag: required, End tag: forbidden

  Attribute definitions
    align = left|center|right [CI] [p.49]
      Deprecated. This attribute specifies the horizontal alignment
      of the rule with respect to the surrounding context.
      Possible values:
         left: the rule is rendered flush left.
         center: the rule is centered.
         right: the rule is rendered flush right.
     The default is align=center.

Default is not only Mozilla Composer's default. It's HTML's default. IE and youe
"HTML reference" are wrong. Marking INVALID.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 15 years ago
Resolution: --- → INVALID
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.