This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 12509 - W3C Markup Validator shows wrong Content-Type
Summary: W3C Markup Validator shows wrong Content-Type
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: 1.2
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL: http://jasonsmath.com/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-15 20:11 UTC by WebAdmin John
Modified: 2011-08-23 19:31 UTC (History)
1 user (show)

See Also:


Attachments
Two Screen Shots Showing W3C Markup Validator and Firefox Page Info Output as an ODF Text Document (.odt) (309.83 KB, application/vnd.oasis.opendocument.text)
2011-04-15 20:13 UTC, WebAdmin John
Details

Description WebAdmin John 2011-04-15 20:11:06 UTC
W3C Markup Validator v1.2 with Verbose Output reports the Content-Type for web page <http://jasonsmath.com/> as "text/html"; whereas Mozilla Firefox Version 3.6.16 (via right-click anywhere in the web page [context menu] -> View Page Info) shows the Type to be "application/xhtml+xml".  Using other debugging/display tools, I believe Firefox to be correct and the W3C Markup Validator to be wrong.  The anomaly shows up on MS Windows 7 and Fedora 14 Linux, hence "All" OS was selected.
Comment 1 WebAdmin John 2011-04-15 20:13:39 UTC
Created attachment 977 [details]
Two Screen Shots Showing W3C Markup Validator and Firefox Page Info Output as an ODF Text Document (.odt)
Comment 2 Ville Skyttä 2011-08-23 19:31:06 UTC
That server seems to deliver different content types to different user agents.  Firefox gets application/xhtml+xml indeed, but for example wget, HEAD (from libwww-perl) and the validator get text/html from it:

$ wget -S --spider http://jasonsmath.com/ 2>&1 | grep Content-Type
  Content-Type: text/html
$ HEAD http://jasonsmath.com/ | grep Content-Type
Content-Type: text/html