TIDY vs W3C validator

View: New views
1 Messages — Rating Filter:   Alert me  

TIDY vs W3C validator

by PJM :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>TEST</title>
</head>
<body>
<div>
 <italic>T<sub>c</sub> <italic>m</italic></italic>K and</div>
</body>
</html>

The above (note had to change i tags in order to post message) validates fine in W3C validator.

However, Tidy, returns this:
tidy -asxhtml -wrap 0 -numeric

line 8 column 2 - Warning:  is probably intended as
line 8 column 39 - Warning: discarding unexpected
line 8 column 44 - Warning: discarding unexpected

Why the difference?
P.S. Are nested italic tags valid xhtml strict?