Ticket #369 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

Empty cells once a table has been created

Reported by: PeteBest Owned by: gogo
Priority: normal Milestone:
Component: Xinha Core Version: trunk
Severity: normal Keywords:
Cc:

Description

Not sure if there's a better way to do this, but with IE the output from XINHA if you just create a table doesn't have anything inside the cells. Both IE and Mozilla don't like it, the current code includes a fix for Mozilla, but IE a similar fix as well

I've just edited it to include a non-breaking space inside each of the cells, and this seems a bit better. To be honest though, the best solution is probably a 1x1 pixel transparent image, so it won't break any formatting. By default with Mozilla XINHA already adds a <br /> inside the cells, I think that a nonbreaking space is a better idea than that as the formatting *should* be retained a bit better this way

Find around line 3373 -> 3374

// Mozilla likes to see something inside the cell.
(HTMLArea.is_gecko) && td.appendChild(doc.createElement("br"));

Replace with:

// Browsers like to see something inside the cell.
td.appendChild(doc.createTextNode('\u00a0'));

Change History

Changed 8 years ago by gogo

  • status changed from new to closed
  • resolution set to fixed

Applied in changeset:414

Note: See TracTickets for help on using tickets.