html5

HTML5: HTML VS XHTML spec question regarding comments

In the W3C working draft for HTML5 here's a line I find confusing: http://www.w3.org/TR/html5/introduction.html#html-vs-xhtml Comments that contain the string "-->" can be represented in the DOM but not in the HTML syntax or in XML. I can interpret this in two different ways: Comments that contain the string "-->" can be rep...

Will HTML5 support the access of offline cached audio?

We want to make an audio based web based app that will have many sound snippets. We want to cache these files so that performance is good and not dependent on network speed. Can HTML5 cache audio for offline mode? ...

Will html5 and Javascript replace native applications?

I recently attended a conference on future of the web and web development and it was a lot of focus on HTML5 and how it will impact the way we look at the web and how we will use it. The majority of the speakers meant that it will replace native application on your desktop as well as in your mobile phone. I agree that you will be able ...

What reasons could justify apple's HTML5 demos use of HTML4 doctypes?

Some of Apple's HTML 5 demos use an html4 loose doctype: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; What reasons could they have for not using the HTML5 doctype?: <!DOCTYPE html> EDIT: I am really looking for technical answers here not political, perhaps I should of rew...

Struggling to create SVG shape using JavaScript

Hi, I have already read the other questions relating to SVG creation using JavaScript and followed any links, but I can't seem to get this to work. Maybe somebody here can spot where I'm going wrong. EDIT: I currently have a div with the ID 'svgbasics' in the body of the document, and I'm trying to create an SVG shape using values I ha...

What are the iphone/android specific Web features?

I'm trying to list Web features (HTML, CSS, Javascript, APIs) that can be used for mobile web pages, things we don't usually use on Desktop browsers. So far, I have: geolocation orientation viewport (width, scale) touch-events tap-highlight-color map and youtube links open in a dedicated app tel: links support specific keyboard layout...

HTML5 Gaussian blur effect

How is apple able to achieve the (apparent) Gaussian blur effect for the photos in the background in this demo: http://www.apple.com/html5/showcase/gallery/ ...

How do you detect the clearing of a "search" HTML5 input?

In HTML5, the search input type appears with a little X on the right that will clear the textbox (at least in Chrome, maybe others). Is there a way to detect when this X is clicked in javascript or jQuery other than, say, detecting when the box is clicked at all or doing some sort of location click-detecting (x-position/y-position)? Tha...

Is it legal to use IE specific metatags in HTML5?

Ive been trying to validate an html5 document with the following 2 lines in the header: <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <meta http-equiv="imagetoolbar" content="no" /> The entire document validates very nicely, but these 2 lines, which are IE specific, render the page invalid. My question: is there a leg...

HTML5 Multiplayer Game Security Solutions

Now that there are a couple of neat canvas demo's of both classic platform and even 3D fps games in HTML5, the next step might be to try developing a multiplayer HTML5 game. HTML5 socket support makes this relatively straight-forward, but with client-side source being viewable by anyone in the browser, what are some solutions for basic g...

Is there a way to style HTML5's range control?

Is there a way to style HTML5's range control? Is it possible to change the color of the line the slider slides on? ...

html5 video player with simplest controls (only play and paus)

hi guys, somehow there are really little tutorials out there for html5 video and audio playback. I simply want to embed video and audio files with customized controls. However the controls should be farely simple. I only need a play-button. If clicked, play gets replaced by pause. that's all! however i even don't know how to embed/disp...

HTML5 svg not working

Hi, I'm using Chrome version 5.0.375.55 and Firefox version 3.5.9 but I can't get the HTML5 code below to display a box. <!DOCTYPE html> <!-- this tells browser, this is HTML5 --> <html> <body> <svg width="200" height="200"> <rect x="0" y="0" width="100" height="100" fill="blue" stroke="red" stroke-width="5px" rx="8" ry="8...

step attribute not working with HTML5 <input type="range"> on Safari

Are there known issues with range inputs not working fully on Safari? I have the following input element: <input type=​"range" min=​"0" max=​"360" step=​"0.0001" value=​"0">​ On Chrome, the input goes according to the step variable. On Safari, it only goes by integer values. Even setting the step to 10 still makes it go by increments ...

What are alternatives to Asterisq's Constellation Framework for actionscript?

i would like to present data in something like Constellation Framework... but without flash what other options are out there? python, html5, javascript would be great, but i have no preference other than no flash (i don't own CS) EDIT: i have found a handful of html5 examples without much source code and infoVis. ...

HTML5 javascript libraries

I'm looking for javascript libraries that helps with HTML5 development. Please only post one library per answer, and don't forget to describe it. ...

Good online HTML5 tutorials

Are there any good tutorials or resources online for learning HTML5? I already know HTML I am just looking to learn about the other things in HTML5. Thanks in advance! ...

Is there a way to use DRM on HTML5 video?

Since Flash is losing ground I would like to know if there are ways to protect html5 videos with DRM (H264, .ogg and WebM). Update Found out that safari supports HTML5 drm hinting with .mov files. Which stops users from directly saving the files. Still leaves all other browsers. http://www.apple.com/html5/showcase/video/ ...

Caching pictures from Picasa

Hello all, I'm creating an offline-capable IPhone app for showing pictures on picasa. It was pretty simple to use JQTouch and Google Data API (via JSONP), so I was able to show the albums and thumbnails in 3 hours, however I want that data to be cached, and for that I'm going to use the HTML 5 Application Cache (via xxx.manifest file). ...

Is canvas security model ignoring access-control-allow-origin headers?

It seems that even if you set the access-control-allow-origin header to allow access from mydomain.org to an image hosted on domain example.org, the canvas' origin-clean flag gets set to false, and trying to manipulate that image's pixel data will trigger a security exception. Shouldn't canvas' obey the access-control-allow-origin heade...