Closed Bug 54912 Opened 24 years ago Closed 23 years ago

table cell right align is assigned incorrectly

Categories

(Core :: DOM: Editor, defect, P3)

defect

Tracking

()

VERIFIED DUPLICATE of bug 102135
mozilla1.0

People

(Reporter: rubydoo123, Assigned: mozeditor)

References

Details

(Whiteboard: [html] EDITORBASE)

using comm bits from 2000093020 on win98
1. open composer
2. insert table, with several rows and columns, enter text in cells
3. select a cell, select right alignment
4. view source -- the right align is done through the div element. We are 
exporting 4.0 transitional, the align attribute should be used on the cell.
--------------------------------------------------------------------------------
<!-- TH is for headers, TD for data, but for cells acting as both use TD -->
<!ATTLIST (TH|TD)                  -- header or data cell --
   %attrs;                         -- %coreattrs, %i18n, %events --
   abbr        %Text;    #IMPLIED  -- abbreviation for header cell --
   axis        CDATA     #IMPLIED  -- comma-separated list of related headers--
   headers     IDREFS    #IMPLIED  -- list of id's for header cells --
   scope       %Scope;   #IMPLIED  -- scope covered by header cells --
   rowspan     NUMBER    1         -- number of rows spanned by cell --
   colspan     NUMBER    1         -- number of cols spanned by cell --
   %cellhalign;                    -- horizontal alignment in cells --
   %cellvalign;                    -- vertical alignment in cells --
   nowrap      (nowrap)  #IMPLIED  -- suppress word wrap --
   bgcolor     %Color;   #IMPLIED  -- cell background color --
   width       %Length;  #IMPLIED  -- width for cell --
   height      %Length;  #IMPLIED  -- height for cell --
   >

<!ENTITY % cellhalign
   "align      (left|center|right|justify|char) #IMPLIED
   char       %Character;    #IMPLIED  -- alignment char, e.g. char=':' --
   charoff    %Length;       #IMPLIED  -- offset for alignment char --"
   >

<!ENTITY % cellvalign
   "valign     (top|middle|bottom|baseline) #IMPLIED"
   >
actually, this should go to cmanske, he will be back to work on post rtm bugs, 
this can wait till then
Assignee: brade → cmanske
Target Milestone: --- → Future
If you set the alignment in the Table Properties dialog, it is correct.
We should make the Alignment commands smart enough to detect when cells are
selected so the attribute is set on TD instead of always using the DIV.
Fairly easy to fix.
Status: NEW → ASSIGNED
Target Milestone: Future → mozilla0.9
This may be a dup. The HTML rules code needs to check for selected cells and
set attribute there instead of a div.
Assignee: cmanske → jfrancis
Status: ASSIGNED → NEW
moving a bunch of 0.9 bugs to 0.9.1
Target Milestone: mozilla0.9 → mozilla0.9.1
Status: NEW → ASSIGNED
Target Milestone: mozilla0.9.1 → mozilla0.9.2
moving to 1.0
Keywords: correctness
Whiteboard: [html]
Target Milestone: mozilla0.9.2 → mozilla1.0
*** Bug 96444 has been marked as a duplicate of this bug. ***
OS: Windows 98 → All
Hardware: PC → All
Whiteboard: [html] → [html] EDITORBASE
Daniel, is this fixed by your patch?

*** This bug has been marked as a duplicate of 102135 ***
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Verified
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.