Live data from Hacker News

No-Bullshit Guide to Detecting Everything in HTML5

diveintohtml5.org

11–20 of 37 posts

Re: No-Bullshit Guide to Detecting Everything in HTML5

#12

Excuse my ignorance, what's the !! for?

It's to magnify the emotion expressed. In the olden days, before emoticons, people used a larger vocabulary to express themselves, but often times that failed to express the magnitude of their feelings. They used !! for that purpose. Of course, today we see the abuse of the !! quite rampant. I LOVE YOUR HTML5!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! is an example of this. Note that this is a post-fix operator.

Re: No-Bullshit Guide to Detecting Everything in HTML5

#13
post #9

I'm constantly confused by 'HTML5', because many of these examples look more like Javascript than a markup language. I've used HTML5 a bit here and there, but just as the next version of XHTML, using things like the tag.

The examples are all JavaScript code to detect support for new html5 tags/features. If the client doesn't support one, for example , you can fail gracefully and maybe offer an alternative piece of content eg Flash.

Re: No-Bullshit Guide to Detecting Everything in HTML5

#14
post #9

I'm constantly confused by 'HTML5', because many of these examples look more like Javascript than a markup language. I've used HTML5 a bit here and there, but just as the next version of XHTML, using things like the tag.

HTML5 is a set of enhancements to HTML and to the JavaScript DOM API. This page is actually a great summary of HTML5 features that developers are likely to care about. For instance:

- The and elements

- The element

- Form validation (without JavaScript!)

- New s for data like dates, times, numbers, ranges, and colors, for which the UA can provide OS-native controls

- An API for cross-domain communication between windows

- An API for providing and accepting drag and drop within, between, into, and out of browser windows

- Web Workers for computation in the background

- Web Sockets for efficient communication with your server

- A persistent local database

...and much more!

This page focuses on detecting support for many HTML5 features in JavaScript, so that a developer could, say, swap in their own datepicker if the browser doesn't offer one.

Re: No-Bullshit Guide to Detecting Everything in HTML5

#19
post #10

Useful. Sadly, I don't see detection for @font-face -- perhaps because it's not very simple? http://paulirish.com/2009/font-face-feature-detection/

But if it's not supported, the browser will just try the next font in the CSS declaration. Is there something cooler you can do with detection?

Re: No-Bullshit Guide to Detecting Everything in HTML5

#20
post #12

Excuse my ignorance, what's the !! for?

It's to magnify the emotion expressed. In the olden days, before emoticons, people used a larger vocabulary to express themselves, but often times that failed to express the magnitude of their feelings. They used !! for that purpose. Of course, today we see the abuse of the !! quite rampant. I LOVE YOUR HTML5!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! is an example of this. Note that this is a post-fix operator.

Hah! I am guilty of over using exclamation marks in posts/texts. I eventually found myself re-reading messages and stripping them out! Unfortunately, nowadays, it's emoticons I overuse. :)
Post reply on HN