www.webdeveloper.com
Results 1 to 4 of 4

Thread: Please, why that "blank"?

  1. #1
    Join Date
    Oct 2008
    Posts
    2

    Please, why that "blank"?

    Please, is there a REAL reason to have a "blank" right before "<![endif]-->"???

    For example:
    HTML Code:
    <!doctype html>
    <!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
    <!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
    <!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
    <!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
    <head>
    I see it at almost all Websites.
    Thanks,
    Eduardo

  2. #2
    Join Date
    Aug 2006
    Posts
    1,898
    I suspect the code you're looking at comes from a CMS, and real people aren't typing it in. So they're just leaving it as it was given to them. The space is not needed.

    I doubt "almost all websites" have this, many folks are not writing code for ancient browsers anymore...

  3. #3
    Join Date
    Oct 2008
    Posts
    2
    Hi tracknut,

    Thanks for the answer. I will take it as true: "The space is not needed."
    I see no reason for the "blank" and can't imagine why people are using it.

    No... I am not looking "only" at a "one" CMS. I dare to say 90% of responsive templates (using that conditionals) have the "blank". Just as example:

    Shopify:
    - http://fresh-squared-up.myshopify.com/
    - http://fresh-fresh.myshopify.com/

    Unknown:
    - http://www.indochino.com/
    - http://skinnyties.com/
    - http://www.nixon.com/ca/en/
    (taken from: http://www.mobify.com/blog/70-stunni...r-inspiration/)

    Could list "a hundred" more.

    Sorry, but I can't agree with you when you say "many folks are not writing code for ancient browsers anymore".
    A LOT of people are still coding for ancient browsers! More than 20% of people at China are still using IE6!!!
    I am still supporting IE6 not because I like it (I don't!!!) but because the target of my clients are using it.

    []s
    Eduardo

  4. #4
    Join Date
    Dec 2013
    Posts
    193
    Quote Originally Posted by ebmarques View Post
    Sorry, but I can't agree with you when you say "many folks are not writing code for ancient browsers anymore".
    A LOT of people are still coding for ancient browsers! More than 20% of people at China are still using IE6!!!
    I am still supporting IE6 not because I like it (I don't!!!) but because the target of my clients are using it.

    []s
    Eduardo

    I would say, yeah, it's true, hmmm, actually if were going to think of it, it is just going to be a waste of time, but since compatibility is important to make a good user experience, most of the developers are still coding for ancient browsers, since there are still some that are not that updated with their browsers..
    I can never gain something without losing everything I had before.
    ― Nadia Scrieva, Fathoms of Forgiveness | 12BET

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles