1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

HTML5 validation

Discussion in 'XenForo Pre-Sales Questions' started by Puntocom, Aug 28, 2010.

Thread Status:
Not open for further replies.
  1. Puntocom

    Puntocom Well-Known Member

  2. Kier

    Kier XenForo Developer Staff Member

    All related to Facebook HTML. At this point it a case of accept the minor validation errors, or lose Facebook integration.
  3. Luke F

    Luke F Well-Known Member

    Surely you can fix these?

  4. Kier

    Kier XenForo Developer Staff Member

    The transparency on frameborder thing is part of Facebook's iframe, AFAIK there's nothing we can do about that.

    The date format thing is saying that our <input type="date" /> does not have a date entered. This is ridiculous, and I'm confident that the spec and or the validator will be updated to allow empty values at a time in the near future.
  5. David Thomas

    David Thomas Active Member

  6. Kier

    Kier XenForo Developer Staff Member

    Funny you should mention that, Scott will be at my place on Wednesday, I'll see if I can convince him to get it changed by plying him with chinese food and southern comfort :)
    feldon30, Alfa1, Erik and 3 others like this.
  7. Peggy

    Peggy Well-Known Member

    hahaha. You can do it, I know you can.
  8. David Thomas

    David Thomas Active Member

    Hehehe, see if he can figure out why I can't use my $50 Ads credits. The system goes in a loop.
  9. Shamil

    Shamil Well-Known Member

    It's now 5 errors, and 2 are that meta tag:

    <meta property="og:site_name" content="XenForo Community" />

    Damn OpenGraph.
  10. feldon30

    feldon30 Well-Known Member

    I realize people are trying to be helpful, but realize that it is humans that read websites, using web browsers, not HTML validator scripts. I guess there might be a few people browsing XenForo with lynx. ;)
  11. David Thomas

    David Thomas Active Member

    Validation, unlike SEO, does matter for the humans reading it. I agree that some errors are pretty pointless and don't matter (like these damn OpenGraph meta tags), but making sure you're valid ensures that all [standards-compliant] web browsers view your site the same, and also makes it accessible for those who have disabilities.
  12. Forsaken

    Forsaken Well-Known Member

    All of the invalid code shown won't do anything for humans reading it, sorry.
  13. Kier

    Kier XenForo Developer Staff Member

    Show me any browser that renders the pages differently after dealing with these particular validation errors described.
    feldon30, Luke F and Forsaken like this.
  14. James

    James Well-Known Member

    Browser-specific CSS (such as border-radius) don't validate in the CSS validation, but we know that the CSS is valid.

    Validation is good for checking for errors that you do not know about. Things like these properties I'm sure Kier/Mike were aware of and it doesn't affect the way the page is displayed AFAIK.
    feldon30 likes this.
  15. David Thomas

    David Thomas Active Member

    I'm not saying THESE error codes will change rendering. From what I understand, his post was bashing validating HTML in general, which is what I was referring to. My post did mention that these errors are pointless.

    Should start typing in big bold letters from now on.
  16. Kier

    Kier XenForo Developer Staff Member

    Fair enough. I agree with you, standards compliance is important.

    Of course, sometimes the W3C just gets it plain wrong. The CSS box model is a prime example. Whoever came up with the the idea that 'width' should not include padding, border and outline was a bumbling fool, and their error has crippled the development of the web. It's not encouraging to see new idiotic errors creeping into specs either, such as the input:date requirement to contain a value. It's just plain wrong and lacks foresight.
    feldon30, Erik, Luke F and 2 others like this.
  17. David Thomas

    David Thomas Active Member

    I guess I agree. I recently got that "input:date" error and was going insane figuring out why it was an error. While some validation is important to the growth of the web, a lot of what we have now is just a hindrance.

    For example, take a look at a lot of major corporation sites that you may visit on a frequent basis. Online stores, communities, anything. Almost none of them are 100% W3C certified (at least in HTML/XHTML). I just checked Wal-Mart for the heck of it. 318 errors, 30 warnings. Site works fine in major browsers, probably works with screen readers and magnifiers, and they even have an auto-detecting mobile site. Works fine from every angle, but doesn't have W3C's seal of approval.

    I guess the important thing is to build your site right, and not worry about the validation.
  18. Tigratrus

    Tigratrus Well-Known Member

    No... Checking for validation is actually quite important, it's just that there are *some* errors that you may have to simply live with. But getting as close as possible to complete validation can make your life a LOT easier, it has a tendency to eliminate a lot of the display quirks that make life hell when you get into cross browser support (with the exception of the pile of POO that is IE6, that's just a black hole of wasted time).

    As Kier said, there's a few standards that just don't make sense, but for the most part the validator is a major help if you use it *frequently*.
  19. Shadab

    Shadab Well-Known Member

    Sometimes I do think that IE5 got the box-model right. Including the padding and borders into calculating the width of an element makes so much more sense than W3C's way of not including it by default.
    Darkimmortal likes this.
  20. Anthony Parsons

    Anthony Parsons Well-Known Member

    Validation is not the be all, end all for SEO, as some think it is. Validation is only useful to exact HTML tag specifics, correct nesting, etc. As long as you validate the actual HTML, then in essence validation is true. If you left tags out, incorrectly nested, etc... sure, you will get browser issues.

    If you want to live in the 90's with boring to non-existent features, then sure... rely on 100% validation, as you're certainly not going to have anything cool and new within your site.
    David Thomas likes this.
Thread Status:
Not open for further replies.

Share This Page