Ticket #99 (closed defect: fixed)

Opened 4 years ago

Last modified 2 years ago

table attribute cellspacing being stripped out

Reported by: pixelwiz Owned by: jf.hovinne
Priority: minor Milestone: 0.5
Component: editor Version: trunk
Keywords: Cc:

Description

Ok, this is an odd one.

I am trying to insert some HTML using the HTML view of the WYMedotor.

I paste in some code where one of the lines is: <table cellspacing="0" cellpadding="5" class="basic">

BUT after the form is submitted, the code comes out with the same line looking like: <table class="basic" cellpadding="5">

Now can you please explain to me why are these tags in different order, and more importantly, where is the cellspacing attribute?

Thanks, -Roman

Change History

comment:1 Changed 4 years ago by pixelwiz

If I paste in JavaScript code, it also gets stripped out...

comment:2 Changed 4 years ago by jf.hovinne

  • Priority changed from critical to minor
  • Status changed from new to assigned
  • Milestone set to 0.5

If you test with cellspacing="10" for example, you'll see that the attribute remains. I'm not sure yet why it is removed by the XHTML parser - needs more testing. Patch welcome if required.

BTW please note that the cellspacing attribute is deprecated in XHTML strict (but remains valid).

Finally, the attributes order has no importance.

comment:3 Changed 2 years ago by mr_lundis

  • Status changed from assigned to closed
  • Resolution set to fixed

Fixed in r653.

Note: See TracTickets for help on using tickets.