Clicking "Add [table] Column After" can break XHTML structure

<oXygen/> general issues.
RBVanDyke
Posts: 37
Location: San Francisco, California USA

Clicking "Add [table] Column After" can break XHTML structure

Thu May 12, 2016 2:02 am

For oXygen XML Editor 18, Windows 7 64-bit.

IF I use oXygen to create a new XHTML file, AND insert a table into that file, AND in Author mode, in the table's rightmost column, I click Insert a new table column after..., THEN the inserted column inserts a misplaced <col /> tag into the XHTML. This results in oXygen's XHTML validator reporting an error.

I have screenshots but can't figure out how to upload them to illustrate the problem. So I'll try with text only.

1. I begin in Author mode with a new XHTML file. I add a table to that file. Part of that XHTML must be a ColGroup structure as follows:

Code: Select all

<colgroup>
  <col class="col01" />
  <col class="col02" />
  <col class="col03" />
</colgroup>

--> At this point the entire XHTML file validates with zero errors.

2. In Author mode and Tags display mode == Full Tags, I place the insertion point in the rightmost column of the table to enable the table authoring icons in the toolbar, then in the toolbar click Insert a new table column after the current one.

--> oXygen adds a column to the right side of the table at which point the the Author mode editing window includes red error indicators -- the XHTML no longer validates without error.

3. I return to Text mode. The XHTML now contains the following:

Code: Select all

<colgroup>
  <col class="col01" />
  <col class="col02" />
  <col class="col03" />
</colgroup>
<col />

--> Clicking Insert a new table column after... added a new table column to the right side of the table BUT inserted the associated <col /> tag outside of the ColGroup structure. The XHMTL no longer validates without error.

NOTE:
  • If I click Insert a new table column... in the RIGHTMOST column of a table, this immediately breaks the structure of the XHTML.
  • If I click in a column that is NOT rightmost, the tag is still inserted but because it's inserted within the ColGroup structure no error occurs.
Cheers & thanks for your help,
Riley
mihaela
Posts: 183

Re: Clicking "Add [table] Column After" can break XHTML structure

Thu May 12, 2016 12:38 pm

Hi Riley,

Thank you for reporting this issue. Indeed, there are some problems with table related operations in XHTML 5 documents.
We will solve this and we will let you know when the fix will be available.

Best regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
sorin_carbunaru
Site Admin
Posts: 139

Re: Clicking "Add [table] Column After" can break XHTML structure

Fri Oct 21, 2016 9:28 am

Hello,

I am glad to let you know that the problem related to the insertion of a new table column from the rightmost existing one in XHTML has been fixed in the newly released oXygen 18.1.

All the best wishes,
Sorin Carbunaru
oXygen XML
RBVanDyke
Posts: 37
Location: San Francisco, California USA

Re: Clicking "Add [table] Column After" can break XHTML structure

Fri Oct 21, 2016 9:18 pm

sorin_carbunaru wrote:...the problem related to the insertion of a new table column from the rightmost existing one in XHTML has been fixed in the newly released oXygen 18.1.

Yep -- just verified that it now works as expected.

Cheers & thanks,
Riley
SFO

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 2 guests