   [web] Firebug not closing meta tags?
  Part of my meta tag declaration looks like this:HTML Code:<meta http-equiv='Content-Type' content='text/html;charset=utf-8'/>but when I go to Copy HTML with firebug, I get:HTML Code:<meta http-equiv='Content-Type' content='text/html;charset=utf-8'>without the end tag, and this goes for all the self closing tags "/>".In view source in firefox it shows correctly, but when I try to validate the code with Copy HTML (I need to do this since I'm building a website using AJAX) and then paste it in the W3C Validator I get the error:end tag for "meta" omitted, but OMITTAG NO was specifiedIs this just a bug that I should not worry about, or is my HMTL really bad? Maybe becouse I'm using UTF-8 and the "/>" gets discarded somehow and trasforms in ">"?   
  It's a quirk in the way most Firefox extensions work. The (X)HTML you see in Firebug is created from the DOM -- not the W3C's specs or the actual code the browser received. Your server is probably sending a text/html MIME instead of the text/xhtml+xml (or whatever that one is), so Firefox/Firebug is using its HTML DOM, which will ignore the shorthand closing tags.You can fix it by changing the Content-type configuration on the server or (probably) by writing the full ending tag. I don't know for sure that the Firefox DOM will include the unnecessary closing tags and I don't remember the specs for HTML4, but they usually remain intact for JS purposes.Basically, you can ignore it. Maybe try installing some of the validating extensions to check your code, or put your initial page into the validator and swap  out the sections your AJAX rewrites if the intermittent errors are bugging you.   ;  Found the solution, the problem was that the server was still getting the code as text/html , not as true XHTML which is application/xhtml+xml, even though I have specified in the meta tag that it is an application/xhtml+xml.The solution is to first send a header to the server with (if using PHP):header("content-type: application/xhtml+xml");;Quote:Original post by arc4nisThe solution is to first send a header to the server with (if using PHP):header("content-type: application/xhtml+xml");Bear in mind that this will break the site in IE (IE will prompt to download/save the file to disk rather than rendering it in the browser). Does your document have a doctype declaring itself as XHTML? I'd be surprised if Firebug ignored that.   ;  Forcing that header will likely break older browsers as well, but you can fix that by removing it before publishing the page or by checking the requesting browser and  then sending the appropriate header.Benryves: That was bothering me too, so I looked into it. Gecko renders XHTML via XML and that causes a fair number of odd behaviors from an XHTML-as-HTML standpoint. Essentially it renders all XHTML doctyped pages in "Almost Standards" mode, which will generally be most compatible with other browsers. Since Firebug works (AFAIK) from Firefox's DOM (generated from Gecko), that'd explain the mismatched code.   