Closed Bug 45281 Opened 24 years ago Closed 24 years ago

Cannot insert a table caption

Categories

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

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: sujay, Assigned: mozeditor)

References

Details

(Whiteboard: [nsbeta3+])

Attachments

(1 file)

using 7/12 build of netscape

1) launch netscape
2) launch composer
3) insert default table
4) go into Table Props
5) click on caption

try entering a caption either above/below the table(as you chose in props)

it doesn't work

all platforms.
The node insertion code isn't allowing use to insert a <caption> element.
Status: NEW → ASSIGNED
Target Milestone: --- → M17
Keywords: nsbeta3
Target Milestone: M17 → M18
setting to nsbeta3+
Charley, can you please add the level of priority -- thanks
Keywords: correctness
Whiteboard: [nsbeta3+]
The problem is in the rules code. Since we create a new caption element with
no content, the rules code is automatically remove it. Joe needs to treat 
<caption> like table cells and automatically insert <br> and not delete the
element.
Assignee: cmanske → jfrancis
Status: ASSIGNED → NEW
Summary: table caption doesn't work → Cannot insert a table caption
Blocks: 47691
charlie, i'll try to get you a patch for this today.
Status: NEW → ASSIGNED
attached a diff; charlie, give this a try
ok, my diffs stank.  i sent charlie some new ones.
fixed.  there is a different bug now: you cant click in the caption.  I filed 
48861 on this issue. 

sujay: to test create a table, then use the table dialog to create a caption.  
Look at the html source after that and you'll see an empty caption (with a <br> 
in it) in place.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
still not fixed in 8/15 build....Charley and I just saw this one together...
I can't click inside a caption and enter text. 

this could be dependent on a bug that Joe filed to Mike....I don't
have that bug number.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Sujay, please reread my earlier comment.  To verify this bug, look at the html 
source after inserting the caption and see that the caption is there, and has a <
br> in it.  This bug is fixed.

Not being able to click in it is a seperate bug against mike: 48861.
Status: REOPENED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → FIXED
verified in 8/22 build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: