Ticket #99 (assigned defect)

Opened 9 months ago

Last modified 9 months ago

table attribute cellspacing being stripped out

Reported by: pixelwiz Assigned to: jf.hovinne (accepted)
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

03/07/08 16:02:51 changed by pixelwiz

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

03/10/08 22:39:52 changed 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.