HTML5Test ïŒä»¥äžh5t ïŒãžã®åç §ã®å€§éšåããå€æãããšããã®ãã¹ãã®ã»ãšãã©ã®ãŠãŒã¶ãŒã¯ãçµæã®å éšã®æ¬è³ªã§ã¯ãªããåç §ããã³æ¯èŒã«äœ¿çšã§ããææšãšããŠãæçµçµæïŒãã€ã³ãã®åèšïŒã«é¢å¿ããããŸãã
äžè¬ã®äººã ã§ã¯ãããã¯puzomerkiãšåŒã°ããçŽ1幎åã«Lenta.ruïŒäžèšåç §ïŒã§é©åã«æ°ã¥ããããã«-ãHTML5ã®æ¹ãé·ããã
äŸ
Lenta.ruããå§ããŸãããã 1幎åã«æåã«ç»å Žãããã¹ããžã®åç §ã§ãã
ææ°ã®Webæšæºãšã®äºææ§ã«ã€ããŠãã©ãŠã¶ããã¹ãããŸãã ã
Webãµã€ãhtml5test.comã3æã«Webã«ç»å ŽããŸãããååã瀺ãããã«ãç¹å®ã®ãã©ãŠã¶ãŒãéåžžã«ææãªæ°ããHTML5 Webæšæºã§ã©ã®ããã«åäœãããã確èªããŸãã
ç§ã®ç®ã®åã«ã¯ããã³ã³ãã¥ãŒã¿ãŒãã«ãïŒ02ïŒ125ïŒ/ 2011 ããšããçªå·ããããŸãã ã倧èŠæš¡ãªããã©ãŠã¶ãã¹ããé 眮ãããŠããŸãïŒã18ããŒãžã®ã¡ã¬ãã¹ããïŒã
ã»ãšãã©ã®WebããŒãžã¯ãHTMLãã€ããŒããã¹ãããŒã¯ã¢ããèšèªã§èšè¿°ãããŠããŸãã ããŒãžãæ£ãã衚瀺ããã«ã¯ããã©ãŠã¶ããœãŒã¹ã³ãŒãã«å«ãŸãããã¹ãŠã®ã¿ã°ãèªã¿åãå¿ èŠããããŸãã ãã®è¡ã¯ããã©ãŠã¶ããšã©ãŒãªãã§è¡šç€ºãã384ããŒãžã®æ°ã瀺ããŸãã
384ããŒãžã®ãã¡300ããŒãžãHTML5ãã¹ãã®çµæã§ãããæ®ãã®84ããŒãžã¯æå®ãããŠããŸããã :)
Computerra ãMozilla Fennecã«ã€ããŠèªã£ãŠããŸãïŒ
HTML5ãµããŒããã¹ãã¯Fennecã«åæ Œãã207ãã€ã³ããšããè¯ãçµæãåŸãŸããããiOSã®Safariã¯185ãã€ã³ãããåŸãããŸããã
æ²ããããšã«ãHabrããã¹ãã«é¢ããŠåªããåæãè¡ã£ãŠããŸãã 以äžã¯ãOperaã®æ°ãã解æãšã³ãžã³ã«é¢ããæçš¿ã®æè¿ã®ãªã³ã¯ã®1ã€ã§ãã
ã©ã°ããã¯ã¯ãããäžå®å šãªïŒãããã£ãŠèª€è§£ãæãïŒhtml5test.comã§11ç¹äž11ç¹ïŒãã©ã¹2ããŒãã¹ãã€ã³ãïŒãç²åŸããŠããŸã ïŒ HTML5ã®åã蟌ã¿SVGããã³MathMLã«ã¯2ããŒãã¹ãã€ã³ã ïŒ
åé¡ã¯ãOperaããã£ãšåã«SVGããµããŒãããŠããããšã ãã§ãªããOperaã§ãã€ãã£ãMathMLããµããŒããããŠããªãããšã ãã§ãïŒMathMLãããã¡ã€ã«ã®CSSã«ããéšåçãªãµããŒãããããŸãïŒã
ãã©ãã¯ããã¯ã¹
å®éã h5tã¯ããçš®ã®ãã©ãã¯ããã¯ã¹ãšããŠäœ¿çšããããHTML5æšæºã®1ã€ãŸãã¯å¥ã®ãã©ãŠã¶ã®ãµããŒãã確èªããããããéåžžã«å€ããåç §ããå®å šã«ä¿¡é ŒãããŠããŸãã
ãã¡ãããäžè¬ã®ãŠãŒã¶ãŒãã»ãšãã©ã®ãžã£ãŒããªã¹ããããWebéçºã«æ²¡é ããŠãã人ã¯ããã¹ããæ°åãäžããã ãã§ãªãããããã¯ã«åå²ãããŠããããšãç解ããŠããŸã-ãã¹ãããŒãžã§ã¯ããã€ã³ããäžãããããã€ã³ãã远跡ã§ããŸãã ã€ãŸãããã¹ãã«ããã°ãæ£ç¢ºã«æ©èœãããã®ãšæ©èœããªããã®ã§ãã æãããªäŸãã¯ãçããŠããé»çã®æ°ãèšç®ããããšã§ãïŒ
ãããŠãããã§æãèå³æ·±ãéšåãå§ãŸããŸãïŒåé»çã®æå³ããªãããã€ãã®é»çã¯å€§ãããä»ã®é»çã¯å°ããããªããã¹ãŠã®é»çãç¹ç¯ããªãã®ãããããŠçµå±ã®ãšãããé»çã¯HTML5ãµããŒãããã¹ããããšããç®çãã©ãã ãæºãããŠããŸããïŒ
泚é ïŒãã¹ãã¯åžžã«é²åããŠããããšã«æ³šæããŠãã ããã1幎åã«ãã¹ããžã®åç §ãåç §ãããšããã€ã³ãã®åèšæ°ãšãã¹ãã®ã»ãããç°ãªã£ãŠããããšãããããŸãã çŸåšã®400ãã€ã³ãã®ããŒã¯ãå°æ¥å€æŽãããå¯èœæ§ããããŸãã
äžè¬çã«ããã¹ãŠãé çªã«åŠçããŸãããã
誰ãh5tãçºæããã®ã§ããïŒ
HTML5Testã®äœæè ã¯Niels Leenheerã§ãã ããã°ã®Nielsã«ãããš ã圌ã¯ã°ã©ãã£ãã¯ãã¶ã€ããŒããã³Webããã°ã©ããŒãšããŠãGeeklogãNucleus CMSãZenphotoãMozillaãKHTMLãWebKitãªã©ãããŸããŸãªãªãŒãã³ãœãŒã¹ãããžã§ã¯ãã«å®æçã«è²¢ç®ããŠããŸããåãããžã§ã¯ããžã®è²¢ç®ã«ã€ããŠã¯ã httpïŒ//rakaz.nl/codeãã芧ãã ããïŒãããã«èå³æ·±ã詳现ãšããŠïŒ
- ä»æ¥ã¯ãã¡ãã·ã§ããã«ïŒãããŠãããã䟿å©ïŒã§ããããããã®ãã¹ãã¯Githubã®ç¹å¥ãªãããžã§ã¯ãã®äžéšãšããŠéçºãããŠããŸãã ããã§ããã¹ãã®æªè§£æ±ºã®ãã°ãæ¢ã«ä¿®æ£ããããã°ãåé¡ã®ãããã€ã³ãã«é¢ããæ å ±ãèŠã€ããããšãã§ããŸãã
- ãã¹ãããŒãžã§ãNielsã¯ãHenri SivonenãHTML5解æãã¹ããšä»ã®è²¢ç®è ã䜿çšããæ©äŒãäžããŠãããããšã«æè¬ããŸãã
Webæšæºåå£äœãšã®é£æº
Acid3ãšã¯ç°ãªããh5tã¯WebæšæºãéçºãŸãã¯ä¿é²ããçµç¹ã«é¢é£ä»ããããŠããŸããã ãã¹ãäœæè ãæžãããã®ã¯æ¬¡ã®ãšããã§ãã
HTML5ãã¹ãã¯W3CãŸãã¯HTML5ã¯ãŒã¯ã°ã«ãŒããšã¯é¢ä¿ããªãããšã«æ³šæããŠãã ããã
ç§ã®ç¥ãéããå ¬åŒã®éä¿¡ã§HTML5ãµããŒãã®åºæºãšããŠh5tãåç §ããŠãããã©ãŠã¶ã¡ãŒã«ãŒã¯1瀟ããããŸããã ïŒOKããšãã³ãžã§ãªã¹ãã®Mozilla Paul Rougetããã®IE9ãšFx4.0ã«ã€ããŠã®æåãªããããã®æçš¿ãé€ããŸããïŒ
h5tã¯ã©ã®ããã«æ©èœããŸããïŒ
ãã¹ãã®å éšæ§é ã¯ãããŒãžã®ã³ãŒããšgithubã®ãœãŒã¹ã³ãŒãã®äž¡æ¹ã§çŽæ¥ãã¬ãŒã¹ã§ããŸãã Acid3ãšã¯ç°ãªããh5tã¯çŸããç»åã®çæãæå³ããŸããããã¹ãã®ãã€ã³ãæ°ãšè©³çŽ°ã®åœ¢åŒã§ã®äžè¬çãªçµæã®ã¿ã§ãããã¹ãã®æ§æïŒ
- ãã¹ãããŒãžïŒã¬ã€ã¢ãŠããšã¹ã¿ã€ã«ïŒ
- ãã¹ããçµæã®åéãããŒãžã§ã®è¡šç€ºã®ããã®ãšã³ãžã³
- çŽæ¥ãã¹ãã®ã»ãããšãããã®å éšã®ãã¹ãã
ãã¹ããšã³ãžã³
ãã¹ããšã³ãžã³ã¯ãããã€ãã®éèŠãªæ©èœïŒãªããžã§ã¯ãïŒã§æ§æãããŠããŸãã
- startTest-ãã¹ãããã»ã¹ãéå§ããŸãã
èå³æ·±ã詳现ïŒçµ±èšãååŸããããã«ãhtml5testã¯BrowserScope APIãä»ããŠãŠãŒã¶ãŒããã¹ãã«åæ Œããçµæãèç©ããŸãã - test-ãã¹ãã»ããã®ãªã¹ããå«ãŸããåã»ãããå埩åŠçããŠçµæãåéããŸã
ç°¡ç¥åãããšããã¹ãã®éå§ã¯æ¬¡ã®ãšããã§ãã
test.prototype = {
suites: [ { title: null , sections: [
testParsing, testCanvas, testVideo, testAudio, testElements,
testForm, testInteraction, testMicrodata, testOffline, testSecurity ]
},
{ title: 'Related specifications' , sections: [
testGeolocation, testWebGL, testCommunication, testFiles, testStorage,
testWorkers, testDevice, testOther ] }
],
initialize: function (e, t, c) {
var r = new results(e, t);
for (g in this .suites) {
r.createSuite( this .suites[g].title);
for (s in this .suites[g].sections) {
new ( this .suites[g].sections[s])( r );
}
}
c( r );
}
}
* This source code was highlighted with Source Code Highlighter .
ãã¹ãã¹ã€ãŒããåããåé¢æ°ã¯ãçµæãå«ããªããžã§ã¯ããžã®ãªã³ã¯ãåãåããŸãããã®ãªã³ã¯ã«ã¯ããã¹ãçµæãå ¥åããå¿ èŠããããŸãã - çµæ-çµæã«åºã¥ããŠå€éšè¡šçŸã圢æããŸã
- ã»ã¯ã·ã§ã³ãã°ã«ãŒããããã³ã¢ã€ãã -ãã¹ãã°ã«ãŒãã®è«çè¡šçŸïŒçµæã®åœ¢æãšåºåã«äœ¿çšïŒ
- è£å©ããŒã¿ãšæ©èœïŒ
- iOSããã³Android-ãã¹ãã®1ã€ã§å¿ èŠïŒä»¥äžãåç §ïŒ
- isEventSupported-ãã©ãŠã¶ãŒã察å¿ããã€ãã³ãããµããŒãããŠãããã©ããã確èªããŸã
- getRenderedStyle-èŠçŽ ããçµæã®ã¹ã¿ã€ã«ãååŸããŸã
ãã¹ãã¹ã€ãŒã
åãã¹ãã¹ã€ãŒãã¯ããã¹ãã®æ°ãã¹ã€ãŒãã®ååãããã³ãã¹ãèªäœãæ ŒçŽããåå¥ã®é¢æ°ã«ãã£ãŠè¡šãããŸãã
ãã¹ãã®å éšæ§é ã¯ããŸããŸã§ãããã»ããã®äžè¬çãªæ§é ã¯æ¬¡ã®äŸã§æ確ã«èŠãããšãã§ããŸãã
function testFiles (results) { this .initialize(results) }
testFiles.prototype = {
name: 'Files' ,
count: 2,
initialize: function (results) {
this .section = results.getSection( this .name);
for ( var i = 1; i <= this .count; i++) { this [ 't' + i](); }
},
t1: function () {
this .section.setItem({
title: 'FileReader API' ,
url: 'http://dev.w3.org/2006/webapi/FileAPI/#filereader-interface' ,
passed: 'FileReader' in window,
value: 10
});
},
t2: function () {
this .section.setItem({
title: 'FileWriter API' ,
url: 'http://www.w3.org/TR/file-writer-api/' ,
passed: 'FileWriter' in window,
value: 10
});
}
};
* This source code was highlighted with Source Code Highlighter .
ãã¹ãŠã®ãã¹ãã¯åå¥ã®é¢æ°t iãšããŠå®è¡ããããã¹ãããã»ã¹äžã«ã»ãããåæåããããšããã©ãŠã¶ãŒã¯ã»ããå ã§èª¬æãããŠãããã¹ãŠã®ã¡ãœãããå®è¡ããŸãã
åã¡ãœããèªäœãããã¹ãã®åæ ŒãŸãã¯äžåæ Œã«é¢ããæ å ±ããã®ãã¹ãã«äŸåãããã€ã³ãæ°ãããã³è¿œå ã®ã¡ã¿æ å ±ïŒä»æ§ãžã®åç §ãããã¹ãã®éšåçãŸãã¯å®å šæ§ã«é¢ããå®åŒåãŸã§ïŒãåéçµæã«è¿œå ããŸãïŒçµæãªããžã§ã¯ãã¯ãã¹ããšã³ãžã³ããæž¡ãããŸãïŒ ã
ããè€éãªãã¹ãïŒWebãã©ãŒã ãªã©ïŒã§ã¯ãçµæãã°ã«ãŒãåããããã«ããè€éãªæ§é ã䜿çšããŸãããæ¬è³ªã¯å€ãããŸããã
ãã¹ãã®åäœã®ã¡ã«ããºã ãäžè¬çãªçšèªã§ç解ãããã®ã§ããã¹ãèªäœã®å éšãããã³ã®è©³çŽ°ã«ç§»ããŸãããã
h5tã¯äœããã§ãã¯ããŸããïŒ
h5tãä»æ§ãŸãã¯ä»æ§ã®äžéšãžã®åç §ïŒåžžã«æ£ãããšã¯éããªãïŒã§å ·äœçã«ãã§ãã¯ãããã®ã®ãªã¹ãã¯ããã¹ãããŒãžã§çŽæ¥èŠã€ããããšãã§ãããããããã§è€è£œããæå³ã¯ããŸããããŸããã å éšã§äœãèµ·ãã£ãŠããã®ããåãã¹ãæ©èœã®èåŸã«äœãããã®ãââãç解ããããšã¯ãã¯ããã«éèŠã§ãããŸãããã¹ã察象ã®åã ã®ãããã¯ããã¹ãã«åŸã£ãŠåæ£ããããã€ã³ãã«å€æãããæ¹æ³ãããã³ããããã¹ãŠHTML5æšæºãšçžäºæ¥ç¶ãããæ¹æ³ãèŠãŠã¿ãŸãããã
æ§æ
æåã«ç®ãåŒãã®ã¯ãä»æ¥ã®ããã§ãã¯æžã¿ãèŠçŽ ã®å€§éšåãHTML5ä»æ§ã«å«ãŸããŠããªãããšã§ãã
ãããã®èŠçŽ ã®äžéšã¯HTML5ä»æ§ããé€å€ãããå¥ã®æšæºïŒHTML Microdataãªã©ïŒã«å²ãåœãŠãããŸããããäžéšã¯ãã®ä»æ§ã«å«ãŸããŠããŸããïŒFileAPIãªã©ïŒã
Webæšæºã«çŽæ¥é¢ä¿ããªããã®ããããŸãïŒã³ãŒããã¯âãµããŒãã®ããã«è¿œå ã®ããŒãã¹ãã€ã³ããæäŸãããŸãïŒã
æåŸã«ãWebGLã¯HTML5ã«çŽæ¥é¢é£ããªããµãŒãããŒãã£ä»æ§ã§ãïŒCanvasã䜿çšããŠã¬ã³ããªã³ã°çµæã衚瀺ããŸãïŒã
å²å
ééããªã泚æãã¹ã2çªç®ã®éèŠãªç¹ã¯ãç°ãªãä»æ§éããã³HTML5ä»æ§å ã§ã®ã¹ã³ã¢ã®ååžã§ãã
ãããã£ãŠãèšå€§ãªæ°ã®ãã€ã³ãïŒ400ã®ãã¡90ïŒããã©ãŒã ã®æ°ããèŠçŽ ã«å²ãåœãŠãããŸã-åèšéé¡ã®ã»ãŒ4åã®1ãŸãã¯HTML5ã«çŽæ¥å²ãåœãŠããããã€ã³ãã®3åã®1ã ãã¡ãããWebãã©ãŒã ã¯æ°ããä»æ§ã®éèŠãªã³ã³ããŒãã³ãã§ãããä»æ¥ã§ã¯ããã®ã³ã³ããŒãã³ããéèŠã§æ¯é çãšåŒã°ããããšã¯ã»ãšãã©ãããŸããïŒè©³çŽ°ã«ã€ããŠã¯ä»¥äžãåç §ïŒã
ãã¹ãŠã®æ°ããHTML5ã»ãã³ãã£ãã¯èŠçŽ ãšåããããå€ãã®ãã€ã³ãããããªã®æäœã«å²ãåœãŠãããŸãã Canvasã§ã¯ãAudioãããã¯ããã«å°ãªãéãå²ãåœãŠãããŸãã
ããã€ãã®ãã¹ããšãã§ãã¯ã®éãã¯1ãã€ã³ããããã€ãã¯10ã§ããå®éããã¹ããšãã§ãã¯ã®éã®ãã€ã³ãã®ååžã¯ããã¹ãã®äœæè ã®å®å šãªææãšæ³åã§ãã
ã¹ããŒã¿ã¹
念é ã«çœ®ããªããã°ãªããªãåé¡ã®ç¬¬3ã®åŽé¢ã¯ãã©ã®ä»æ§ãçŸåšã®ç¶æ ã§ã©ã®ãããªæ¡ä»¶ã§ãã§ãã¯ãããŠãããã«é¢ãããã®ã§ãã
å åŽã«æãå§ãããšãè¡šé¢ã«æåã«çŸããã®ã¯ãã»ãšãã©ã®ä»æ§ã®çŸåšã®ãã©ããã¹ããŒã¿ã¹ã§ãã
- HTML5-ã¯ãŒãã³ã°ãã©ããã5æã«äºå®ãããŠããWD LC
- HTML MicroData-WD
- ãžãªãã±ãŒã·ã§ã³-æšå¥šåè£ïŒã¯ãªããå šäœã®å¯äžã®äŸå€ïŒ
- Webã¡ãã»ãŒãžã³ã°ããã³ãµãŒããŒéä¿¡ã€ãã³ã-WD LC
- Web Sockets API-WDïŒãããã³ã«ã®å€åæ§ãç¯å²å€ã«ããïŒ
- ãã¡ã€ã«API-WDãæè¿ãæåã®ãã©ããããŒãžã§ã³ã®ã©ã€ã³ãèžã¿è¶ããã ã
- Webã¹ãã¬ãŒãž-WD
- ã€ã³ããã¯ã¹ä»ãDB-WD
- Web SQL Database-äœæ¥ã¯åæ¢ããŸãããäœæè ã¯ã€ã³ããã¯ã¹ä»ãDBããµããŒãããŠããªã人ã®ãã€ã³ããç²åŸã§ããŸã
- Web Workers-WD LC
- ããŒã«ã«ããã€ã¹-1 ãæååã®W3Cã®ä»æ§ã§ã¯ãªããWHATWGã®ä»æ§ããé€å€ãããAPIã«çœ®ãæããããŸãã
- DOMç¯å²/ããã¹ãéžæ-å¥ã®ä»æ§ã®åå¥ã®ããããã£
- CSSOM View Module / Scrolling-å¥ã®ä»æ§ã«è»¢éãããåå¥ã®ããããã£ïŒç·šéçïŒ
2çªç®ã«éèŠãªã®ã¯ãå€ãã®ä»æ§ã®åæã®ç¶æ ãšå€åæ§ã§ããäžã®å³ã§ã¯ãéå»3幎éã®åæšæºã®ä»æ§æŽæ°ã®é »åºŠã確èªã§ããŸãã äžèšã®ããã«ãå Žæã«ãã£ãŠã¯ããã¹ããWebæšæºã®åéã«ãããå®éã®ç¶æ³ã«å¯Ÿå¿ããªããªããããªå€åæ§ããããŸã ã
ãã¹ãäœæè ãæžãããã®ã¯æ¬¡ã®ãšããã§ãã
ãã¹ã察象ã®ä»æ§ã¯ãŸã éçºäžã§ãããå ¬åŒã«ãªããŸã§å€æŽãããå¯èœæ§ãããããšã«æ³šæããŠãã ããã
åãã¹ãã®å 容ã詳ããèŠãŠã¿ãŸãããã
HTML5ãããã¯
äžå¿ãšãªããã¹ãå šäœã§æ倧ã®ãããã¯ã ããããŸãã¯ãããã®èŠçŽ ããã¹ãããããã€ãã®å éšéšåã§æ§æãããŠããŸãã
5ã€ã®ãã¹ãã®è§£æ| 11ãã€ã³ã| 2ããŒãã¹ãã€ã³ã
ãã®ãã¹ããããã¯ã¯ãããã¥ã¡ã³ãã®è§£æãç¹ã«HTML5ä»æ§ã«æºæ ããããŸããŸãªãšããŸããã¯ã§äžæ£ãªããŒã¯ã¢ãããªãã·ã§ã³ã®è§£æã«é¢ããããã€ãã®ã«ãŒã«ããã§ãã¯ããŸãã
1. <ïŒDoctype html> 1ãã€ã³ãã®ãµããŒã
ãdoctypeãã€ã³ã¹ããŒã«ãããŠããå Žåããã©ãŠã¶ã¯ã¹ããªã¯ãã¢ãŒãã§åäœãããããšã確èªããŸãã å éšã§ã¯ãdocument.compatMode == "CSS1Compat"ã®ãã§ãã¯ãè¡ãããŸãã ãã®ããããã£ã¯ããã©ãŠã¶ãçŸåšåäœããŠããã¢ãŒããç¹åŸŽã¥ããŸãïŒQuirks vs. StrictïŒã
å®éãæå¹ãªDoctypeãããå Žåããã©ãŠã¶ã¯ã¹ããªã¯ãã¢ãŒãã§åäœããã¯ãã§ããã€ãŸãããã®ãã§ãã¯ã¯HTML5ã«çŽæ¥é¢é£ããŠããŸããã IE6ã§ã<ïŒDoctype html>ã®å³æ Œãªã¢ãŒããå«ãŸããŸãããããã¯æããã«HTML5ããµããŒãããŠããŸããã
2. HTML5ããŒã¯ãã€ã¶ãŒ5ãã€ã³ã
èŠçŽ ã®ååãå±æ§ãããã³ã³ã³ãã³ããå²ãåœãŠãããŸããŸãªãšããŸããã¯ãªã±ãŒã¹ããã§ãã¯ãããŸã-htmlèŠçŽ ã®å éšã³ã³ãã³ããæ£ãã解æããããã«åèš19ã®ãã§ãã¯ããããŸãã
- "<div <div>";
- ã<div foo <bar = ''>ã
- "<div foo =` bar`> "
- "<div \" foo = ''> "
- ã<a href='\nbar'> </a>ã
- ã<ïŒDOCTYPE html>ã
- ã\ u000Dã
- ãïŒlang;ïŒé³Žã£ã;ã
- ãïŒapos;ã
- ãïŒImaginaryI;ã
- ãïŒKopf;ã
- ãïŒnotinva;ã
- '<ïŒimport namespace = "foo" implementation = "ïŒbar">'
- '<ïŒ-foo-bar->'
- '<ïŒ[CDATA [x]]>'
- ã<textarea> <ïŒ-</ textarea>-> </ textarea>ã
- ã<textarea> <ïŒ-</ textarea>->ã
- ã<style> <ïŒ-</ style>-> </ style>ã
- ã<style> <ïŒ-</ style>->ã
人çã§ãããã®ã±ãŒã¹ã®ã»ãšãã©ã«çŽé¢ããå¿ èŠã¯ã»ãšãã©ãããŸããããHTML5ä»æ§ã¯ããã¥ã¡ã³ãã®è§£æãšãã®ãããªäŸã®é©åãªåŠçã«æ¬åœã«æ³šæãæã£ãŠããããšã«æ³šæããããšãéèŠã§ãã
ïŒå®éãã»ãŒæåéãããããã®ãã¹ãã¯Mozilla HTML解æãã¹ãã«åºã¥ããŠããŸãïŒ http : //hsivonen.iki.fi/test/moz/detect-html5-parser.html ïŒ
3. 5ãã€ã³ãã® HTML5ããªãŒæ§ç¯
ããã¥ã¡ã³ãã®è§£æã®ãããã¯ã®ç¶ãã¯ãåãå ã®ãã¹ããœãŒã¹ã§ããŸããŸãªèŠçŽ ãåçã«äœæããããšã§ãã
- ã¿ã°æšè«/ã¿ã°ã®èªåäœæïŒãã®å Žåãåçã«äœæãããhtmlèŠçŽ ã®å éšã«headèŠçŽ ãšbodyèŠçŽ ãããããšã確èªãããŸãïŒã
- æé»ã®<colgroup> /ããŒãã«å ã®æåŸ ãããcolèŠçŽ
- ãªã¹ãã®è§£æ
- è²å æ¯æŽã®ä¿é²
- é€åçžçµã¢ã«ãŽãªãºã / ã<i> A <b> B <p> </ i> C </ b> Dããªã©ã®èª€ã£ãæ·»ä»ãã¡ã€ã«ã®è§£æ
- HTMLåå空é
泚 ïŒç¹å®ã®æ©èœã®å®è£ ã®è©³çŽ°ã確èªããããã¥ã¡ã³ã解æã®çžäºéçšæ§ãæ€èšŒããh5tã®ãã¹ãã¯ããããšä»¥åã®ãã¹ãã®ã¿ã§ãã
ïŒä»ã®ãã¹ããšã¯ç°ãªãã解æãã¹ãã¯ãFirefox 4ã®HTML5ããŒãµãŒã®éçºã«éåžžã«é¢äžããŠããããšã§ãç¥ãããŠããHenri Sivonenããåçšããããšãç¹°ãè¿ããŸããã€ãŸãããããã¯å®éã«çºæããããã¹ãã§ããã®ãããªã³ã¬ã¯ã·ã§ã³ã®éèŠãªç¹åŸŽã¯ãããããæ£ãããŸãŸã§ãã£ãŠãããã¹ããããæ©èœã®100ïŒ ãŸãã¯å¯æ¥ãªã«ãã¬ããžã䞻匵ã§ããªãããšã§ããèšãæããã°ãããã¯èè ã«ãšã£ãŠèå³æ·±ãã³ãŒãããªãšãŒã·ã§ã³ã®éžæçãã¹ãã§ãã
4.ããã¹ã/ htmlã®SVG | 1ããŒãã¹ãã€ã³ã | ãã©ãŠã¶ãŒãã察å¿ããããŒã ã¹ããŒã¹ã«ãã£ãŠããã¥ã¡ã³ãã«æ¿å ¥ãããSVGã³ã³ãã³ããèªèã§ããããšã確èªããŸãã |
5.ããã¹ã/ htmlã®MathML | 1ããŒãã¹ãã€ã³ã | 察å¿ããåå空éã«ãã£ãŠããã¥ã¡ã³ãã«æ¿å ¥ãããMathMLã³ã³ãã³ãããã©ãŠã¶ãèªèã§ããããšã確èªããŸãã |
äºæ³å€ã«ããã¹ãã¯Operaã«å€±æããŸããOperaã¯æŽå²çã«æé«ã®SVGãµããŒãã®1ã€ãæã£ãŠããŸãã çã®MathMLãµããŒãã¯Firefoxã§ã®ã¿å©çšå¯èœã§ãã Chromeã¯MathMLèªäœã®ãµããŒãããªããŠããã®ãã¹ãã«åæ ŒããŸãïŒ Mozillaãã¹ãã±ãŒã¹ã§ç¢ºèªã§ããŸãïŒã
泚 ïŒæ£åŒã«ã¯ãsvgããã³mathèŠçŽ ã®å éšã³ã³ãã³ããšè§£æ/ãããã³ã°ã«ãŒã«ã¯åå¥ã®ä»æ§ã§èšè¿°ãããŸãã HTML5ä»æ§ã§ã¯ãããã¥ã¡ã³ãã¯<svg>ã¿ã°ããã³ç¹å¥ãª<math>ã¿ã°ã䜿çšããMathMLã³ã³ãã³ããä»ããSVGã³ã³ãã³ãã®æ¿å ¥ããµããŒãããå¿ èŠããããšãããŠããŸãã
Canvas 3ãã¹ã| 20ãã€ã³ã
ãã®ãã¹ããããã¯ã¯CanvasãµããŒãããã§ãã¯ããŸãã å®éã以äžã®èª¬æãããããããã«ããã©ãŠã¶ãŒãcanvasã¿ã°ããµããŒãããJavaScriptããæäœããããã®æ£ããã³ã³ããã¹ããè¿ããšããäºå®ã®ã¿ããã§ãã¯ãããŸãã
1. <canvas>èŠçŽ
| 5ãã€ã³ã
| äœæããããã£ã³ãã¹èŠçŽ ã«getContextã¡ãœãããããããšã確èªããŸãã
|
2.2dã³ã³ããã¹ã
| 10ãã€ã³ã
| CanvasRenderingContext2Dãªããžã§ã¯ãããµããŒããããŠããããšã確èªããgetContextïŒã2dãïŒã¡ãœãããåŒã³åºããšããã®ãªããžã§ã¯ãã®ã€ã³ã¹ã¿ã³ã¹ãè¿ãããŸãã
|
3.ããã¹ãã®ãµããŒã
| 5ãã€ã³ã
| çµæã®ã³ã³ããã¹ãã«fillTextã¡ãœãããããããšã確èªããŸãã
|
ãããª7ãã¹ã| 31ãã€ã³ã| 8ããŒãã¹ãã€ã³ã
ãã®ãããã¯ã¯ãæ°ãã<video>ã¿ã°ã®ãã©ãŠã¶ãŒãµããŒãã確èªããããã«èšèšãããŠããŸãã ããã«ãããŸããŸãªã³ãŒããã¯ã®ãµããŒãããã§ãã¯ããŸããããã¯ãHTML5ä»æ§ãšã¯é¢ä¿ãããŸããããèå³æ·±ããã®ã§ãã
1. <video>èŠçŽ
| 20ãã€ã³ã
| äœæããããããªèŠçŽ ãcanPlayTypeã¡ãœããããµããŒãããŠããããšã確èªããŸãã
|
2.远跡ãµããŒã
| 10ãã€ã³ã
| ãã©ãŠã¶ãtrackèŠçŽ ãèªèããããšã確èªããŸãã
|
3.ãã¹ã¿ãŒãµããŒã
| 1ç¹
| åç»èŠçŽ ããã¹ã¿ãŒããµããŒãããŠããããšã確èªããŸãã
|
4. MPEG-4ããµããŒã
| 2ããŒãã¹ãã€ã³ã
| ãã©ãŠã¶ãé©åãªã³ãŒããã¯ã§ãããªãåçã§ãããšèšã£ãŠããããšã確èªããŸãã
|
5. H.264ããµããŒã
| 2ããŒãã¹ãã€ã³ã
| ãã©ãŠã¶ãé©åãªã³ãŒããã¯ã§ãããªãåçã§ãããšèšã£ãŠããããšã確èªããŸãã
|
6. Ogg Theoraã®ãµããŒã
| 2ããŒãã¹ãã€ã³ã
| ãã©ãŠã¶ãé©åãªã³ãŒããã¯ã§ãããªãåçã§ãããšèšã£ãŠããããšã確èªããŸãã
|
7. WebMãµããŒã
| 2ããŒãã¹ãã€ã³ã
| ãã©ãŠã¶ãé©åãªã³ãŒããã¯ã§ãããªãåçã§ãããšèšã£ãŠããããšã確èªããŸãã
|
ãªãŒãã£ãª6ãã¹ã| 20ãã€ã³ã| 5ããŒãã¹ãã€ã³ã
ãããªãµããŒããã§ãã¯ãããã¯ãšåæ§ã«ããã®ãããã¯ã¯æ°ãã<audio>ã¿ã°ã®ãµããŒãããã§ãã¯ããŸãã ããã«ãããŸããŸãªãªãŒãã£ãªã³ãŒããã¯ã®ãµããŒãã確èªããŸãã
1. <audio>èŠçŽ
| 20ãã€ã³ã
| äœæããããªãŒãã£ãªèŠçŽ ãcanPlayTypeã¡ãœããããµããŒãããŠããããšã確èªããŸãã
|
2. PCMãµããŒã
| 1ããŒãã¹ãã€ã³ã
| ãã©ãŠã¶ãé©åãªã³ãŒããã¯ã§ãªãŒãã£ãªãåçã§ãããšèšã£ãŠããããšã確èªããŸãã
|
3. MP3ãµããŒã
| 1ããŒãã¹ãã€ã³ã
| ãã©ãŠã¶ãé©åãªã³ãŒããã¯ã§ãªãŒãã£ãªãåçã§ãããšèšã£ãŠããããšã確èªããŸãã
|
4. AACã®ãµããŒã
| 1ããŒãã¹ãã€ã³ã
| ãã©ãŠã¶ãé©åãªã³ãŒããã¯ã§ãªãŒãã£ãªãåçã§ãããšèšã£ãŠããããšã確èªããŸãã
|
5. Ogg Vorbisã®ãµããŒã
| 1ããŒãã¹ãã€ã³ã
| ãã©ãŠã¶ãé©åãªã³ãŒããã¯ã§ãªãŒãã£ãªãåçã§ãããšèšã£ãŠããããšã確èªããŸãã
|
6. WebMãµããŒã
| 1ããŒãã¹ãã€ã³ã
| ãã©ãŠã¶ãé©åãªã³ãŒããã¯ã§ãªãŒãã£ãªãåçã§ãããšèšã£ãŠããããšã確èªããŸãã
|
泚 ïŒãã®ãããªãã¹ãã§ã®ã³ãŒããã¯æ€èšŒã®äžæ£ç¢ºãã¯ãç¹å®ã®ã³ãŒããã¯ããµããŒãããããã®èŠä»¶ãââHTML5ä»æ§ã§å®çŸ©ãããŠããªããšããäºå®ã ãã§ãªãããããåžžã«ïŒæ°žç¶çãªïŒãã©ãŠã¶ãŒç¹æ§ã§ã¯ãªããšããäºå®ã«ãã£ãŠã決å®ãããŸãã ããšãã°ãGoogleããWebMã³ãŒããã¯ãã€ã³ã¹ããŒã«ãããIE9ã¯ãããã«3ã€ã®ããŒãã¹ãã€ã³ããåãåããŸãã
Elements 8ãã¹ã| 38ãã€ã³ã
ãã®ãããã¯ã¯ãããŸããŸãªæ°ããèŠçŽ ãšå±æ§ã®ãµããŒãããã§ãã¯ããŸãã
1.äžå¯èŠããŒã¿ãæ¿å
¥ãã
| 4ãã€ã³ã
| èŠçŽ ã®ããŒã¿ã»ããããããã£ããã§ãã¯ããŸãã
|
2.ã»ã¯ã·ã§ã³èŠçŽ
| 7ãã€ã³ã
ïŒåã¢ã€ãã ã®ã¹ã³ã¢ïŒ | ãã©ãŠã¶ãã»ã¯ã·ã§ã³ãããã²ãŒã·ã§ã³ãèšäºãèãhgroupãããããŒãããã¿ãŒã®ãããã¯èŠçŽ ãäœæã§ããããšã確èªããŸãã
|
3.泚éä»ããããã¯ã®ãµããŒã ïŒäœããã®çç±ã§ã°ã«ãŒãåãšåŒã°ããïŒ
| 2ç¹
ïŒåã¢ã€ãã ã®ã¹ã³ã¢ïŒ | ãã©ãŠã¶ããããã¯èŠçŽ figureãšfigcaptureãäœæã§ããããšã確èªããŸãã
|
4.ããã¹ãã®ã»ãã³ãã£ã¯ã¹
| 6ãã€ã³ã
ïŒåã¢ã€ãã ã®ã¹ã³ã¢ïŒ | ãã©ãŠã¶ãããã¹ãã»ãã³ãã£ã¯ã¹ã®èª¬æèŠçŽ ãäœæã§ããããšã確èªããŸãã
|
- ããŒã¯ã®å Žåãèæ¯è²ãšããã¹ãã®ããã©ã«ãå€ã¯æšæºãšããŠä»æ§ã«èšè¿°ãããŠããŸãïŒUAããšã«åççã«ç°ãªãå ŽåããããŸãïŒ
- ruby / rt / rpã®å Žåããã§ãã¯ãããå€ã¯éçºäžã®CSS3 Rubyã¢ãžã¥ãŒã«ã§èšå®ãããŸãããHTML5ä»æ§ã§ã¯èšå®ãããŸããã
5.ã€ã³ã¿ã©ã¯ãã£ããªèŠçŽ
| 6ãã€ã³ã
ïŒè©³çŽ°ãšèŠçŽã®ã¹ã³ã¢ãããã³ã³ãã³ããšã¡ãã¥ãŒã«ãã2ïŒ | ãã©ãŠã¶ãé©åãªèŠçŽ ïŒè©³çŽ°ãæŠèŠãã³ãã³ããã¡ãã¥ãŒïŒãäœæã§ããããšã確èªããŸãã
|
6.é ãå±æ§
| 1ç¹
| èŠçŽ ã«é衚瀺å±æ§ãããããšã確èªããŸãã
|
7. contentEditable
| 10ãã€ã³ã
| èŠçŽ ã«contentEditableå±æ§ãããããšã確èªããŸãã
|
8.ããã¥ã¡ã³ãã®API ïŒäœããã®çç±ã§åçæ¿å
¥ãšåŒã°ããïŒ
| 2ç¹
ïŒåã¢ã€ãã ã®ãã€ã³ãïŒ | èŠçŽ ã«outerHTMLããããã£ãšinsertAdjacentHTMLã¡ãœãããããããšã確èªããŸãã
|
ãã©ãŒã 3ãã¹ã| 90ãã€ã³ã
泚 ïŒWebãã©ãŒã ã¯ããŸããŸãªèŠ³ç¹ããéåžžã«èå³æ·±ããªããžã§ã¯ãã§ããããã®ãã¹ãã§ã®ããããžã®æ³šæã¯äžè¬çã«å€§ããããŠè¡šé¢çãããä»ã®HTML5èŠçŽ ãšæ¯èŒããŠèããæ·±ããç¹ã«å®éã®åçã
ãã§ã«è¿°ã¹ãããã«ãWebãã©ãŒã ã¯HTML5ã®éèŠãªéšåã§ãã æŽå²çãªåŽé¢ã§ã¯ãHTML5ã¯Web Applications 1.0ãããžã§ã¯ãããçºå±ãããã®åŸãæ°ãããã©ãŒã èŠçŽ ãšæ¢åã®èŠçŽ ãžã®è¿œå ãèšè¿°ããWeb Forms 2.0ä»æ§ã®äžéšãšããŠå«ãŸããŸããã ãããã£ãŠããã¡ãããä»ã®èŠçŽ ããµããããã®ã§ãWebãã©ãŒã ã¯å€ãã®æ³šç®ã«å€ããŸãããããšãã°ããã£ã³ãã¹ãã¡ãã£ã¢èŠçŽ ãã»ãã³ãã£ãã¯æ§é ã¿ã°ãããã³ããŸããŸãªAPIãšã¯ç°ãªããHTML5ã®è©±é¡ã®çŠç¹ã«ã¯ãªããŸããã§ããã
Webãã©ãŒã ãç¹ã«æ°ããå ¥åèŠçŽ ã«é¢ããŠã¯ããŸã æŽçãå¿ èŠãªãããŸããªç¹ãå€ããããŸãããŸã第äžã«ãããã¯å€èŠ³ãšãŠãŒã¶ãŒã€ã³ã¿ã©ã¯ã·ã§ã³ã«é¢ä¿ããŸãã
- èŠçŽ ã®å€èŠ³ã¯ä»æ§ã§ã¯èª¬æãããŠããªããããå®éã«ã¯ãã©ãŠã¶éçºè ã«ä»»ãããŠããŸãã ïŒA / Vã³ã³ãããŒã«ã«ã¯ããã¹ãŠã®ãã©ãŠã¶ãŒã§ç°ãªãåæ§ã®åé¡ããããŸããïŒå€èŠ³ãä»æ§ã§è©³çŽ°ã«èª¬æãããŠããªããšããäºå®ã¯ãããã€ã¹ã®æ©èœã«å¿ããŠãå ¥åèŠçŽ ããŠãŒã¶ãŒã®UIããã³UXããŸããŸã§ãïŒã¢ãã€ã«ããã€ã¹ãªã©ïŒã ãããåæã«ããã¹ã¯ãããäžã§ãããã®åé¡ã®çµ¶å¯Ÿçãªåäžæ§ã¯ãŸã 芳å¯ãããŠããŸããã
- ã¹ã¿ã€ã«èšå®-ã³ã³ãããŒã«ãç¹ã«æ°ããã¹ã¿ã€ã«ã®ã¹ã¿ã€ã«ããã©ãŠã¶ã³ãŒãã§ä¿è·ããããã«ãã³ã³ãããŒã«ã«çµ±äžããã¹ã¿ã€ã«ãèšå®ããŠãã ããã
- ããŒã«ãªãŒãŒã·ã§ã³ïŒããšãã°ãæå»ãŸãã¯æ¥ä»ã®éžæã®å¶åŸ¡ãåç §ïŒã¯ååã®åé¡ã§ãããä»æ¥ã§ã¯æ確ãªè§£æ±ºçã¯ãããŸããã ã¯ããããã¯ãã©ãŠã¶ã¡ãŒã«ãŒã®ä»äºã§ãããä»æ¥ã§ã¯è§£æ±ºãããŠããŸããã
1.å ¥åèŠçŽ ã®çš®é¡58ç¹
ç¹å®ã®ã¿ã€ãã®å ¥åèŠçŽ ãæ€èšŒãããã³å Žåã«ãã£ãŠã¯è¿œå æ©èœãèšå®ããæ©èœãæ€èšŒããäžé£ã®ãã¹ãã
æ€çŽ¢ãã
| 2ç¹
| åãµããŒã
|
tel
| 2ç¹
| åãµããŒã
|
url
| 2ç¹
| ãµããŒãã¿ã€ãïŒãã€ã³ãïŒãæ€èšŒ
|
ã¡ãŒã«
| 2ç¹
| ãµããŒãã¿ã€ãïŒãã€ã³ãïŒãæ€èšŒ
|
æ¥æ
| 24ãã€ã³ã
ïŒã¿ã€ãããšã«4ãã€ã³ãïŒ | æ¥æãæ¥ä»ãæãé±ãæå»ãæ¥æããŒã«ã«ã®ç¢ºèªïŒ
|
æ°ãç¯å²
| 8ãã€ã³ã
ïŒã¿ã€ãããšã«4ãã€ã³ãïŒ | ãã§ãã¯æžã¿
|
color
| 4 points
|
|
checkbox
| 1 point
| indeterminate .
|
select
| 1 point
| required-.
|
fieldset
| 2 points
| , fieldset elements disabled.
|
datalist
| 2 points
| , datalist input list-.
|
keygen
| 2 points
| , keygen () challenge keytype.
|
output
| 2 points
| , output-.
|
progress
| 2 points
| , progress-.
|
meter
| 2 points
| , meter-.
|
2. 20 points
pattern, required
| 2 points
( ) | pattern required input.
|
| 8 points
|
|
| 4 points
| autocomplete, autofocus, placeholder multiple input.
|
CSS-
| 4 points
( ) | : valid, invalid, optional required.
|
| 2 points
( ) | input change.
|
| 8 points
| å
¥åã«checkValidityã¡ãœãããååšãããã©ããã確èªããŸãã
|
ã€ãã³ã
| 2ãã€ã³ã
ïŒåã€ãã³ãã®ãã€ã³ãïŒ | forminputããã³formchangeã€ãã³ãã®ãµããŒãã確èªããŸãã
|
ã€ãã³ããã£ã¹ããã
| 2ãã€ã³ã
ïŒåã€ãã³ãã®ãã€ã³ãïŒ | dispatchFormInputããã³dispatchFormChangeã¡ãœããã®ãµããŒãã確èªããŸãã
|
ãŠãŒã¶ãŒã€ã³ã¿ã©ã¯ã·ã§ã³2ãã¹ã| 15ãã€ã³ã
ãã®ãããã¯ã«ã¯ããã©ãã°ã¢ã³ããããããšå±¥æŽAPIã®2ã€ã®å¯èœæ§ã®ãã§ãã¯ãå«ãŸããŸãã
1.ãã©ãã°ã¢ã³ããããã10ãã€ã³ã
èŠçŽ ã®ãã©ãã°å¯èœãªå±æ§ã®ãµããŒãã確èªããŸãã
泚ïŒDïŒDãµããŒããNetscapeããã³Internet Explorerã®4ã€ã®ããŒãžã§ã³ã«ãŸã ãã£ãããšã¯èå³æ·±ãã§ãã IE5ã§ã¯å€§å¹ ã«æ¡åŒµããããã®åŸSafariã«ãå®è£ ãããŸãããåŸã«ãHTML5ã§ã®äœæ¥äžã«ããã®DïŒDå®è£ ã¯Ian Hicksonã«ãã£ãŠãªããŒã¹ãšã³ãžãã¢ãªã³ã°ãããæ°ããæšæºã§èª¬æãããŸããã
ãã©ãã°ã¢ã³ãããããã®äž»ãªæ¬è³ªã¯ãèŠçŽ ã転éããç¹å¥ãªãªããžã§ã¯ããä»ããŠèŠçŽ ãšäžç·ã«ããŒã¿ã転éããããã»ã¹ã®åã ã®æ®µéãããŒã¯ããç¹å¥ãªã€ãã³ãã§ããäžè¬ã«ãIE5 +ã«ã¯DïŒDããããŸãããh5tã¯ïŒModernizrãšã¯ç°ãªãïŒããã«ã€ããŠã¯ç¥ããŸãããIEã§ãµããŒããããŠããªãç¹å®ã®æ°ããå±æ§ã§ã®ã¿å€å®ãã¬ã³ããªã³ã°ããŸãã
2.ã»ãã·ã§ã³å±¥æŽ5ãã€ã³ã
å±¥æŽããããã£ãšãã®äžã®pushStateã¡ãœããã®ååšã確èªããŸãã
Webã¢ããªã±ãŒã·ã§ã³3ãã¹ã| 19ãã€ã³ã
Application CacheïŒãªãã©ã€ã³ã¢ããªã±ãŒã·ã§ã³çšïŒããã³Navigatorã®ç¹å¥ãªã¡ãœããïŒåä¿¡ããŒã¿ã«é¢ããæ å ±ãåä¿¡ããããïŒã®ãµããŒãã確èªããŸãã
1.ã¢ããªã±ãŒã·ã§ã³ãã£ãã·ã¥
| 15ãã€ã³ã
| ãŠã£ã³ããŠå
ã®applicationCacheããããã£ã®ååšã確èªããŸãã
|
2. ProtocolHandler
| 2ç¹
| ããã²ãŒã¿ãŒã®registerProtocolHandlerã¡ãœããã®ååšã確èªããŸãã
|
3. ContentHandler
| 2ç¹
| ããã²ãŒã¿ãŒã®registerContentHandlerã¡ãœããã®ååšã確èªããŸãã
|
ã»ãã¥ãªãã£2ãã¹ã| 10ãã€ã³ã
iframeã®åäœã確èªããŸãã
1.ãµã³ãããã¯ã¹
| 5ãã€ã³ã
| iframeã®ãµã³ãããã¯ã¹å±æ§ããã§ãã¯ããŸãã
|
2.ã·ãŒã ã¬ã¹
| 5ãã€ã³ã
| iframeã®ã·ãŒã ã¬ã¹ãªå±æ§ããã§ãã¯ããŸãã
|
MicroDataãããã¯1ãã¹ã| 15ãã€ã³ã
HTML Microdataä»æ§ã®ãµããŒããè©äŸ¡ãããŸããããã¹ãã«ã¯ã次ã®ããšãæ€èšŒãããã¹ãã1ã€å«ãŸããŠããŸãã
- itemValueããã³ããããã£å±æ§ã®ãµããŒã
- getItemsã¡ãœããã®ãµããŒã
ãããã¯ãžãªãã±ãŒã·ã§ã³1ãã¹ã| 15ãã€ã³ã
ãžãªãã±ãŒã·ã§ã³ã®ãµããŒãã確èªããŸããããã®ãã¹ãã«ã¯ãããã²ãŒã¿ãŒå ã®äœçœ®æ å ±ããããã£ãŒã®ååšã調ã¹ã1ã€ã®ãã¹ããå«ãŸããŠããŸãã
WebGLãããã¯1ãã¹ã| 15ãã€ã³ã
WebGLãµããŒãã¯è©äŸ¡äžã§ãããã¹ãã«ã¯ãcanvasèŠçŽ ã®å€ãã®ã³ã³ããã¹ãã®å°ãªããšã1ã€ã®ãµããŒãããã§ãã¯ãã1ã€ã®ãã¹ããå«ãŸããŸãïŒ 'webgl'ã 'ms-webgl'ã 'experimental-webgl'ã 'moz-webgl'ã 'opera-3d'ã 'webkit-3d' ããms-3dããã3dãã :)
éä¿¡3ãã¹ããããã¯| 25ãã€ã³ã
ãããã¯ãŒã¯æ¥ç¶ã説æããå€ãã®ä»æ§ã®ãµããŒããæ€èšŒããŸãã
1.ã¯ãã¹ããã¥ã¡ã³ãã¡ãã»ãŒãžã³ã°
| 5ãã€ã³ã
| ãŠã£ã³ããŠå
ã®postMessageã¡ãœããã®ååšã確èªããŸãã
|
2.ãµãŒããŒéä¿¡ã€ãã³ã
| 10ãã€ã³ã
| ãŠã£ã³ããŠå
ã®ãEventSourceããªããžã§ã¯ãã®ååšã確èªããŸãã
|
3. Webãœã±ãã
| 10ãã€ã³ã
| ãŠã£ã³ããŠå
ã®ãWebSocketããªããžã§ã¯ãã®ååšã確èªããŸãã
|
ãããã¯ãã¡ã€ã«2ãã¹ã| 20ãã€ã³ã
File APIã®ãµããŒãããã§ãã¯ããŸãïŒãã§ãã¯ããããã¹ãŠã®äžã§æãçã®ïŒææ°ã®ïŒä»æ§ã®1ã€ïŒã
1. FileReader API
| 10ãã€ã³ã
| ãŠã£ã³ããŠå
ã®ãFileReaderããªããžã§ã¯ãã®ååšã確èªããŸãã
|
2. FileWriter API
| 10ãã€ã³ã
| ãŠã£ã³ããŠå
ã®ãFileWriterããªããžã§ã¯ãã®ååšã確èªããŸãã
|
ã¹ãã¬ãŒãž4ãã¹ããããã¯| 20ãã€ã³ã
ã¯ã©ã€ã¢ã³ãã«ããŒã¿ãä¿åããããã®å€ãã®ä»æ§ã®ãµããŒãã確èªããŸãã
1.ã»ãã·ã§ã³ã¹ãã¬ãŒãž
| 5ãã€ã³ã
| ãŠã£ã³ããŠå
ã®sessionStorageã確èªããŸãã
|
2.ããŒã«ã«ã¹ãã¬ãŒãž
| 5ãã€ã³ã
| ãŠã£ã³ããŠã§localStorageã確èªããŸãã
|
3. IndexedDB
| 10ãã€ã³ã
| ãŠã£ã³ããŠå
ã®indexedDBãªããžã§ã¯ãïŒãŸãã¯webkitIndexedDBãmozIndexedDBããŸãã¯moz_indexedDBïŒã®ååšã確èªããŸãã
|
4. WebSQLããŒã¿ããŒã¹
| 0ïŒ5ïŒãã€ã³ã
| ãŠã£ã³ããŠå
ã®openDatabaseã¡ãœããã確èªããŸãã
|
Web Workers Block 1ãã¹ã| 10ãã€ã³ã
Web WorkersãµããŒãã®ç¢ºèª-ããã¯ããŠã£ã³ããŠå ã®Workerãªããžã§ã¯ãã®ååšã確èªããããšã«ãªããŸãã
ããŒã«ã«ããã€ã¹ã®ãããã¯1ãã¹ã| 20ãã€ã³ã
<device>èŠçŽ ãäœæã§ãããã©ãããããã³typeããããã£ãååšãããã©ããã確èªããŸãã
泚ïŒ1ãæååããã®ã¿ã°ã¯W3Cä»æ§ãšèè ãåç §ããWHATWGä»æ§ã®äž¡æ¹ããåãåãããŸããã察å¿ããæ©èœã®å®è£ ã¯ãç¹å¥ãªAPIãä»ããŠå®è£ ããå¿ èŠããããŸãã
ãããã¯2ãã®ä»ã®ãã¹ã| 6ãã€ã³ã
ããã€ãã®ç°ãªãããããã£ããã§ãã¯ãããŸããïŒãã¹ãã®ã©ãŠã³ãã¹ã³ã¢ã«ã€ããŠã¯çãããããŸããïŒ
1.ããã¹ãéžæ
| 5ãã€ã³ã
| ãŠã£ã³ããŠã®getSelectionã¡ãœããã確èªããŸã
|
2.ã¹ã¯ããŒã«
| 1ç¹
| èŠçŽ ã®scrollIntoViewã¡ãœããã®ååšã確èªããŸãã
|
ãã¹ãã®å 容ã«é¢ããçµè«
ãã¹ãã®ã¹ãã£ã³ãšèª¬æãèŠããšãã«æåã«æãæµ®ãã¶ã®ã¯ãè¡šé¢çãªããšã§ããããŸããŸãªãã©ãŠã¶ãŒã§HTML5ã®ãµããŒãã¬ãã«ããã§ãã¯ãããšãã倧ããªã¿ã¹ã¯ãèšå®ãããã¹ãïŒãããã«ããŠãããããã©ã®ããã«èªèããããïŒã¯ãç¹å®ã®ããããã£ãšã¡ãœããã®ååšã®æ£åŒãªãã§ãã¯ã«éå®ãããŸãã
ãã€ã³ãã®åé ã®ææ§ -ç§ã¯ãã§ã«ã¬ãã¥ãŒã®æåã«ããã«ã€ããŠæžããŸããããç¹°ãè¿ããŸããããŸããŸãªãææãã«å¯Ÿãããã€ã³ãã®åé ã¯ãèè ã®è£éã§æ æã®æ±ºå®ã«ãã£ãŠè¡ãããŸãããã®çµæãè¡šé¢çãªãã§ãã¯ã®å Žåã¯15ãã€ã³ããããããã£ã®ååšã®å Žåã¯1ã2ãã€ã³ãã解æã¢ã«ãŽãªãºã ã®19ãã§ãã¯ã§ã¯5ãã€ã³ããåãã§ãã¯ã§ã¯0.26ãã€ã³ãããã³ã°ããŸãã
ä»»æïŒãã€ã¢ã¹ã¢ã¯ã»ã³ããåé ã§è¿°ã¹ãããã«ãWebãã©ãŒã ã«ã¯éåžžã«å€§ããªéç¹ã眮ããïŒè¡šé¢çãªã¢ãããŒãã§ãïŒãCanvasãVideoãŸãã¯Audioãããã³ããŸããŸãªAPIã®è©³çŽ°ã®ç¢ºèªã«å°ããªéç¹ã眮ãããŸããå€ãã®ãã§ãã¯ã解æã¢ã«ãŽãªãºã ã®åäœãè©äŸ¡ããåäžã®ãã§ãã¯ã¯50ãè¶ ããã¡ãœãããšããããã£ïŒãã£ã³ãã¹ïŒããã³å€ãã®ç°ãªããã¥ã¢ã³ã¹ãå«ãAPIã®åäœãè©äŸ¡ããŸãã
ãã°ãããã¯ååšããŸã-æ€æ»ãšæ€èšŒå¯èœãªæšæºãŸãã¯ãããã®éšåã®äž¡æ¹ã«é¢ããŠããããã®ããã€ãã¯ãã¯ããµããŒããããªããããã¹ãã«å«ãŸãããã§ãã¯ãé¢é£ããªãããã«å€æãããŸãã
ãã®ãã¹ãã«ã¯ãWebæšæºã«çŽæ¥é¢é£ããªããã®ãã€ãŸãã³ãŒããã¯ãããã³ãµãŒãããŒãã£ïŒéW3CïŒæšæºã§ããWebGLãå«ãŸããŸãã
ãã¹ããããæšæºã®éžææ§ïŒçŸåšç¢ºèªãããŠãããã®ã®3çªç®ïŒãã€ã³ãåäœïŒãHTML5æšæºã«å«ãŸããŠããªããšããäºå®ã«å ããŠãçŸå®ã«ã¯ãHTML5ä»æ§ã®åéã§ããWeb Appsã®æ°ããä»æ§ã®ã»ããã§ãã100ïŒ ã®ã«ãã¬ããžããããŸãïŒå¶æ°è¡šé¢çïŒã
èšãæããã°ãHTML5Testããã§ãã¯ããªãããšã¯ãããããããŸã...
h5tããã¹ãããªãã®ã¯äœã§ããïŒ
èè ã圌ã®çºæ¡ã«ã€ããŠèšã£ãŠããããšãèŠãŠã¿ãŸãããïŒ
HTML5ã®ãã¹ãçµæã¯ããã©ãŠã¶ãŒãä»åŸã®HTML5æšæºããã³é¢é£ããä»æ§ãã©ãã ããµããŒãããŠãããã瀺ãåãªãææšã§ãã圌ã¯HTML5ã®ãã¹ãŠã®æ°æ©èœããã¹ãããããšã¯ããŠããŸããããŸããæ€åºå¯èœãªãã¹ãŠã®æ©èœã®æ©èœããã¹ãããŠããŸããã
ãã®ãããHTML5ãã¹ãã§ã¯ãã§ãã¯ããŸããã
- æ€åºãããæ©èœã®æ©èœãã»ãšãã©ã®å Žåãç®çã®ãªããžã§ã¯ããããããã£ããŸãã¯ã¡ãœããã®ååšã®ç¢ºèªã«éå®ãããŸãã
- æ©èœã«å ããŠããã¹ãŠã®æ°ããHTML5æ©èœã¯ç¡èŠãããŸãã
- ã¹ã³ãŒããæ¡åŒµãŸãã¯å€æŽããå€ãã®æ°ããå±æ§ïŒããšãã°ãroleããã³aria- *ïŒããã³å€ãå±æ§ã
- å€ãã®ã€ãã³ãã®ç¯å²ãæ¡å€§
- ãããŠãå€ãã®èŠçŽ ã®å€æŽãããåäœã«é¢ããä»ã®å€ãã®ãã¥ã¢ã³ã¹ã
- SVG MathML, namespace;
- , «HTML5», , , . , HTML5, :
- Navigation Timing
- Progress Events
- RDFa API
- System Information API
- MediaCapture API
- Calendar API
- Clipboard API
- :)
çµè«
çµè«ã¯ããã€ãã®ããã«ãããªãã®ç®æšãšããªããçããã質åã«äŸåããŸãããHTML5ãã¹ãã«åºã¥ããŠããã©ãŠã¶ãŒã§ã®HTML5ãµããŒãã®ã¬ãã«ãå€æããããšã¯å¯èœã§ããããšãã質åãããå Žåãçãã¯ãããããã¯ããã«ãããŸãããããã«ã¯å€ãã®çç±ãããããã®ãã¡ã®3ã€ãéèŠã§ãïŒè¡šé¢æ§ãäžåè¡¡ãããã³å€æ°ã®äžçŽç©ã
ãHTML5ãã¹ãã¯ããã©ãŠã¶ãŒã§ã®HTML5ãµããŒãã®æ¹åã®ãã€ããã¯ã¹ã瀺ããŸãã- ãããã«ç°ãªãèŠç¹ã§è³ªåããããšãã»ãšãã©ã®ãã¹ãã®å éšçãªæ£ç¢ºããèãããšãçãã¯ããã§ã¯ãããŸããããã ããããã¯ããµããŒããïŒããæ¹åãŸãã¯å¥ã®æ¹åã«ïŒæ¹åã§ããå¯èœæ§ããã©ã¡ãŒã¿ãŒãé€å€ããŸããããéžææ§ã®ããã«ãã¹ãã¯ããã«æ°ä»ããŸããã
æè¡çãªé¢ã§ã¯ãHTML5ãã¹ãã¯ããã©ãŠã¶ããã¹ãããããã®ååã«æ§ç¯ãããã¢ãŒããã¯ãã£ã®äŸãšããŠãéåžžã«èå³æ·±ããã®ã§ãã