All pastes #571747 Raw Edit

kfish

public text v1 · immutable
·published 2007-06-17 09:20 UTC
rendered paste body
Jun 04 21:37:25 <kfish> how can i tell (from a web app) if the user agent supports html5?
Jun 04 21:37:45 <annevk>        you can't
Jun 04 21:37:48 <zcorpan>       kfish: for what purpose?
Jun 04 21:37:56 <annevk>        "supporting html5" is kind of broad too
Jun 04 21:37:59 *       KevinMarks has quit ("The computer fell asleep")
Jun 04 21:38:07 <hsivonen>      kfish: you should check for the features you need
Jun 04 21:38:15 <kfish> sure ... i want to offer an html5 page, with <video>, if the browser supports that
Jun 04 21:38:33 <zcorpan>       then just place the fallback inside the <video> element
Jun 04 21:38:39 <annevk>        var v = document.createElement("video"); if (v.play) { // prolly some support }
Jun 04 21:39:06 <annevk>        zcorpan, "create an element" should do the namespace stuff
Jun 04 21:39:19 *       hendry has quit ("leaving")
Jun 04 21:39:22 <zcorpan>       annevk: ok
Jun 04 21:39:24 <annevk>        zcorpan, with a similar algorithm that's already in the XML spec
Jun 04 21:39:32 <annevk>        zcorpan, I've yet to implement it though
Jun 04 21:39:36 <kfish> zcorpan, thanks
Jun 04 21:40:13 <kfish> annevk, thanks
Jun 04 21:41:09 <annevk>        basically just going up the open elements array and going through the attributes for xmlns: and xmlns= magic
Jun 04 21:42:18 *       csarven (n=nevrasc@modemcable081.152-201-24.mc.videotron.ca) has joined #whatwg
Jun 04 21:43:51 <zcorpan>       http://simon.html5.org/sandbox/html/simply-complex
Jun 04 21:47:20 *       MikeSmith has quit (Read error: 110 (Connection timed out))
Jun 04 21:52:35 <annevk>        hmm
Jun 04 21:52:38 *       MikeSmith (n=MikeSmit@58.157.21.204) has joined #whatwg
Jun 04 21:52:55 *       annevk doesn't really understand that table to begin with