-
- Mark_Kimsal

-
Total Posts: 186
Joined: 2007-09-12
Michigan, USA
|
Self closing anchor tags are not legal in HTML, only in XHTML. But I can guarantee you that you are not using XHTML. Just because you write your HTML as XHTML does not trigger any browser to render your work as XHTML. I thought everybody knew this…
The only way to get firefox to turn on xhtml rendering is to send a “Content-Type xhtml+xml” header. But, this doesn’t work in any other browser (konq, IE, safari, opera). For those you need to send “Content-Type: application/xml”. Plus, for IE you need to include an XSL sheet that converts your true XML (application/xml) into XHTML locally on the browser. Another reason why I’m pretty sure you’re not using XHTML. If ever there is any error anywhere in the entire document (like a bad product description, malicious, malformed user reviews) the entire page fails to render and you’re left with 1 giant error pointing you to the line and column that is incorrect. You’d probably be locked out of the page that would even allow you to fix such “bad” input from the admin screen.
XHTML is a joke and it doesn’t work. I seriously thought I was the last person to figure this out.
|