The only violation of generic HTML syntax is the comma in <TABLE width=400, height=300>
. The comma will probably be taken as part of the attribute value and then ignored. The cost of this error processing is ignorable.
Performance is not an issue here. Basic rendering is.
The height
attribute for table
is not allowed by HTML specs; though widely supported by browsers, the support is not required (even in HTML5 drafts, which generally require continued support to legacy features) and may be removed in future browsers.
The color
attribute for td
is not allowed by HTML specs. It is not supported by any browser I know of. So if the intent was to make the text red, it will fail.
The conclusions depend on what you need and can do with the markup. If you cannot adequately change the markup but can inject CSS rules, then you could even fix the non-working non-standard attributes, using e.g.
<style>
[color=Red] { color: red; }
</style>
This would get tedious since you would need e.g. separate rule for each color, and this would not work on some old browsers.