What’s below is not True ! How to Use MacMini
Sep 12

At my office, i had some HTML things to work with .It was about dropdown combo box with more than 1 visible items ( this means HTML Select tag with size more than 1 like <select name=”macphobia” size=”2″> ) I was playing around with the w3cschools’ tryit editor in different browsers . It was working fine with expected results in IE , Mozilla firefox in my office Windows XP machine but i did the same thing in Safari in Windows the result was not what expected. Safari was not showing the number of visible items in Dropdown to what i had defined the HTML select tag rather it was showing all the elements in the drop down options. This was weird and surprising to me . Below are different results of my tries . It seems that whatever the number of size you give as visible items Safari will always show 4 itmes . If there are more than 4 items in the options of the dropdown or combobox then only Safari is showing Scroll bar buttons. I tried the same thing at my home computer which is Mac Leopard with Safari default browser . Safari in my Mac gave the same result as Safari did in WIndows platform but to another surprise Firefox in Mac didn’t also give me the expecetd result . It was able to show the visible items as configured in size attribute of Select HTML tag but there was no Scrolling buttons . Scrolling buttons not being present may be is a fault from Mac’s perspective and not from Firefox ?. But i tried the same in Opera browser in Mac and it was alright - Scroll bars were at right places. Opera resulted perfect in Mac in this experiment . You can also try the same in your different browser by going to this W3C tryit editor link

1. Safari in Windows and Mac producing same unexpected results

Select with multiple visible item

2. Internet Explorer in Windows producing as expected result

3. Firefox 3 in Mac also not producing exact expected result - No scroll buttons

4. Opera in Mac produced perfect and expected result

Related entries you may like to read !

41 Responses to “Safari fails to obey the HTML tag”

  1. niraj priya INDIA Says:

    i know that dhtml having browser dependencies but html tag too having browser dependencies… intresting to know..

  2. MacPhobia INDIA Says:

    A very good comment about this post is here . Seems convincing to me.. http://www.aquataskforce.com/view/147#comment

  3. Duncan UNITED KINGDOM Says:

    Size is deprecated for HTML. You would use the drop down menu styled with CSS if required.

    For a list of HTML elements supported by Safari see…

    http://developer.apple.com/documentation/AppleApplications/Reference/SafariHTMLRef/Introduction.html#//apple_ref/doc/uid/30001261

  4. MacPhobia INDIA Says:

    @Duncan Thanks for your comment but can you please also share a link where it says that size for Select HTML tag is deprecated .

  5. chris UNITED STATES Says:

    It might be good form to use CSS but it doesn’t look like SIZE is deprecated. See link to W3’s HTML 4.01 reference for the SELECT tag which states that the SIZE attribute is still supported.

    http://www.w3.org/TR/html401/interact/forms.html#h-17.6

    I don’t suspect this will change in the next revision of the HTML specification. W3’s currrent HTML 5.0 draft is incomplete for the Web Forms definition but it currently says:

    “This section will be a rewrite of the HTML4 Forms and Web Forms 2.0 specifications, with hopefully no normative changes.”

    http://www.w3.org/TR/html5/tabular.html#the-select

  6. seo blog UNITED KINGDOM Says:

    This is an interesting article, your a very good writer,keep it up.

  7. Dhiraj NEPAL Says:

    Good one

  8. Paul UNITED STATES Says:

    Actually, safari will display correctly the size of rows if it is 4 or greater. Firefox also has a similar issue, where it needs to fit the scroll top/bottom arrow, depending on the font size could be 2 or more

  9. Kaamajakaaya INDIA Says:

    I keep listening to the news speak about getting free online grant applications so I have been looking around for the best site to get one.

  10. Christal Rascon AUSTRALIA Says:

    Hi nice post, i read your blog from time to time but i was wondering something. I also run a blog on a similar topic, but i get 1,000’s of spam comments and emails every day does that happen to you.. Any ideas to stop it? I currently have commenting disabled but i want to turn it back on.. Thanks!

  11. MacPhobia INDIA Says:

    @Above . you can use Akismet Plugin

  12. imehesz UNITED STATES Says:

    great post!

    this is clearly a bug (to me at least) that I can’t click with my mouse in a simple html SELECT form element :( it works on ie6, FF and Chrome. (if the size is bigger than 2)

    has anybody else noticed this?

    a
    b c

    thanks,
    –iM

  13. Evie Nott 174.36.200.58 not found Says:

    amazing stuff thanx :)

  14. Lee Haslam UNITED KINGDOM Says:

    Great read, nice post :)

  15. cFreed FRANCE Says:

    I just got the same problem and more: with size=”1″, displayed size is the number of options!
    And dynamically changing from szie=”…” to size=”1″ simply keeps previously displayed size unchanged, whatever it was.
    I don’t agree with comment #2 above: yes, UA is not required to present as a list box, but it doesn’t mean UA may ignore size.

  16. Nate CANADA Says:

    have you tried it with not just the tryit editor? Just with notepad?

  17. Summer Camps 99.56.238.48 not found Says:

    Best you could change the page subject Safari Bug - Select HTML tag is not interpreted correctly by Safari | MacPhobia to something more specific for your webpage you create. I liked the post yet.

  18. Kaden COLOMBIA Says:

    Anybody know if I wanted to bookmark this post do I have to join Sphinn first?

  19. Jamal Obama PARAGUAY Says:

    Spot on with this write-up, I truly suppose this website needs way more consideration. Iíll most likely be again to learn much more, thanks for that info.

  20. food sealer bags BRAZIL Says:

    Thanks, I have been recently searching for data about this topic for ages and yours is the very best I have discovered so far.

  21. Scrapebox Guide NETHERLANDS Says:

    I have been browsing online more than 3 hours today, yet I never found any interesting article like yours. It’s pretty worth enough for me. In my view, if all website owners and bloggers made good content as you did, the web will be much more useful than ever before.

  22. Janett Waas 182.48.23.77 not found Says:

    Just wanted to say your blog is kinda awesome. I always like to hear something new about this because I have the similar blog in my Country on this subject so this help´s me a lot. I did a search on the matter and found a good number of blogs but nothing like this.Thanks for writing so much in your blog.. Greets, Fran

  23. Arcelia Hawley 190.109.200.194 not found Says:

    The following time I read a weblog, I hope that it doesnt disappoint me as a lot as this one. I mean, I know it was my choice to read, but I actually thought youd have something interesting to say. All I hear is a bunch of whining about something that you may fix in case you werent too busy searching for attention.

  24. Wheels 109.230.222.108 not found Says:

    Hi there! Quick question that’s totally off topic. Do you know how to make your site mobile friendly? My website looks weird when viewing from my iphone 4. I’m trying to find a theme or plugin that might be able to resolve this problem. If you have any recommendations, please share. Thanks!

  25. Rims 109.230.223.42 not found Says:

    Please let me know if you’re looking for a writer for your weblog. You have some really good posts and I feel I would be a good asset. If you ever want to take some of the load off, I’d absolutely love to write some content for your blog in exchange for a link back to mine. Please blast me an e-mail if interested. Regards!

  26. gas heizer BRAZIL Says:

    I have been browsing on-line more than three hours nowadays, but I by no means found any interesting article like yours. ItЎ¦s beautiful worth enough for me. Personally, if all website owners and bloggers made excellent content material as you did, the web might be a lot more useful than ever before.

  27. polo shirts 187.72.167.59 not found Says:

    It’s a shame you don’t have a donate button! I’d certainly donate to this excellent blog! I guess for now i’ll settle for book-marking and adding your RSS feed to my Google account. I look forward to fresh updates and will talk about this site with my Facebook group. Talk soon!

  28. 1blackjackstrategy BRAZIL Says:

    Wonderful website you have here but I was curious if you knew of any community forums that cover the same topics talked about here? I’d really love to be a part of group where I can get suggestions from other experienced individuals that share the same interest. If you have any recommendations, please let me know. Kudos!

  29. gamesatlasvegasguide THAILAND Says:

    My programmer is trying to convince me to move to .net from PHP. I have always disliked the idea because of the costs. But he’s tryiong none the less. I’ve been using Movable-type on several websites for about a year and am anxious about switching to another platform. I have heard excellent things about blogengine.net. Is there a way I can transfer all my wordpress content into it? Any help would be greatly appreciated!

  30. 1gamesandpoker INDONESIA Says:

    Thanks for your marvelous posting! I definitely enjoyed reading it, you will be a great author.I will make sure to bookmark your blog and may come back someday. I want to encourage yourself to continue your great job, have a nice afternoon!

  31. casinoandpoker4u VIET NAM Says:

    Thanks on your marvelous posting! I seriously enjoyed reading it, you are a great author.I will be sure to bookmark your blog and definitely will come back very soon. I want to encourage that you continue your great work, have a nice holiday weekend!

  32. 908guidecasino 173.203.110.205 not found Says:

    Amazing blog! Do you have any recommendations for aspiring writers? I’m planning to start my own blog soon but I’m a little lost on everything. Would you advise starting with a free platform like Wordpress or go for a paid option? There are so many options out there that I’m totally confused .. Any ideas? Kudos!

  33. 123casinolistings BRAZIL Says:

    I know this if off topic but I’m looking into starting my own blog and was curious what all is needed to get setup? I’m assuming having a blog like yours would cost a pretty penny? I’m not very web smart so I’m not 100% positive. Any recommendations or advice would be greatly appreciated. Thank you

  34. Almeda Daft UNITED STATES Says:

    You got a very fantastic website, Gladiolus I observed it through yahoo.

  35. custom kooszie 64.120.171.104 not found Says:

    I couldn’t have asked for a better blog. You are available to present excellent assistance, going right to the point for quick understanding of your subscribers. You’re undoubtedly a terrific pro in this field. Many thanks for being there human beings like me.

  36. Michael Gronitz 173.208.71.68 not found Says:

    toonsy,is your bear ass,better than the photo of you yestaday

  37. Shanda Scivally 204.45.44.45 not found Says:

    Nice post. I was checking continuously this blog and I am impressed! Very helpful information particularly the last part :) I care for such information a lot. I was seeking this particular information for a very long time. Thank you and best of luck.

  38. Dominick Wendy 46.61.145.2 not found Says:

    Hey! I know this is kinda off topic however , I’d figured I’d ask. Would you be interested in trading links or maybe guest authoring a blog post or vice-versa? My website covers a lot of the same topics as yours and I believe we could greatly benefit from each other. If you happen to be interested feel free to send me an email. I look forward to hearing from you! Fantastic blog by the way!

  39. Inocencia Cos 46.61.145.2 not found Says:

    Hi there! Quick question that’s totally off topic. Do you know how to make your site mobile friendly? My site looks weird when viewing from my iphone. I’m trying to find a theme or plugin that might be able to correct this issue. If you have any suggestions, please share. Thanks!

  40. Williams Burbage POLAND Says:

    Hello there! I know this is kinda off topic however , I’d figured I’d ask. Would you be interested in trading links or maybe guest authoring a blog post or vice-versa? My site addresses a lot of the same subjects as yours and I think we could greatly benefit from each other. If you might be interested feel free to send me an e-mail. I look forward to hearing from you! Wonderful blog by the way!

  41. white cowhide rug 74.221.208.139 not found Says:

    Is there a service available that geotags blog posts while on the go and is able to post to map with others?

Leave a Reply