Re:More HTML5 APIs
by MatthewPhillips on Thursday November 08, 2012 @12:12PM
(#4758693)
I hope they start to provide, when appropriate, non-JavaScript APIs for some of these things. Full screen is one that could be useful.
[ Parent
| on HN ]
Non-JavaScript? Like what?
Say, <a href="foo" fullscreen="true">, I'd guess.
Re:More HTML5 APIs
by MatthewPhillips on Thursday November 08, 2012 @12:58PM
(#4758929)
Probably something new would have to be invented as there is no mechanism to send messages to the browser in plain html. Something equivalent of a form element but without the action attribute. It would be nice to have something like (spitballing)
<some-new-form>
<input type="hidden" value="fullscreen" />
<input type="submit" value="Go fullscreen" />
</some-new-form>> Probably something new would have to be invented as there is no mechanism to send messages to the browser in plain html.
Web components. At least their usage is plain HTML and could do what you want internally with the JS API.
Re:More HTML5 APIs
by cbrandolino_ on Friday November 09, 2012 @04:56AM
(#4762087)
Oh please no, we barely got rid of the target attribute /: