Skip to main content
occulus.nigra
Inspiring
July 4, 2017
Question

Why does inserting a table result in deprecated code (HTML validation)?

  • July 4, 2017
  • 1 reply
  • 1524 views

Exactly as the question says... inserting a table in DW 2017 results in a deprecated code warning as per the HTML validation, Why? And, if so, why is this latest avatar of the 'leading' web authoring programme not able to deliver validated code?

Also, is there anyway to inset a table - or any other element - on the fly without it being deprecated?

TIA...

Cheers,

ON

This topic has been closed for replies.

1 reply

pziecina
Legend
July 4, 2017

It all depends on what the table is being used for, if it includes the required 'other' elements, and if the required aria attributes are included for the use of tables to be valid -

https://www.w3.org/TR/2017/CR-html51-20170620/tabular-data.html#the-table-element

No idea what you mean by, 'the latest avatar'?

As for inserting other elements on the fly, if you mean by using dynamic data insertion replace tables with the article element.

occulus.nigra
Inspiring
July 5, 2017

No, it means simply inserting a table... The code is deprecated.

You can test it... Insert table with x rows and y columns. Run the validator. It'll be deprecated.

Latest avatar means the very latest updated Dreamweaver as of today - and the least it can do is not insert deprecated code.

pziecina
Legend
July 5, 2017

I don't use the built in Dw validator, as it has problems with what is and what is not valid, (i have the same complaint with Dw linting). It should not show tables as being deprecated and if you use the validator in the firefox web developers toolbar it does not.

You could register it as a bug, but as Dw's validator connects to an external validator i doubt if the Dw team could correct the problem.

All i can suggest for now, is that you simply ignore such warnings, as it looks like the validator is simply assuming that any use of tables is for layout and not data.