Rendering HTML to WebGL textures would be big, which I think this could do - though probably not as performantly as the browser could. It's currently not possible, partially due to security concerns if I remember right.
At some point, it won't matter whether your browser supports a particular feature of the web. Any site could just embed a copy of WebKit for browsers that are too old (i.e.: when the latest version of Firefox is a few dozen versions behind) and render the page using the latest rendering engine.
Neat. Getting some good use out of HTML2Canvas as well. But always wondering why there is no way to get a bitmap from screen... something like window.getPixels(x, y, width, height).
I've written GUI builders that really could have used this for icons of views. Instead I had to render on the server. It'd be nice if it got more broadly adopted.
Yes! This would open a huge number of possibilities. Simple things like a colour picker, to transitions based on the content of the window would be made possible. I would love to see this happen.
It's a little contrived, but a "practical" use of this might be for an online HTML editor to embed the document (or display a preview) without any interference from the parent document.
Anyway to get this to run in node with the output going to say Cairo? It'd be a fun little project to see if you could build a simple but working browser in nothing but JS.
Yes, there's a software rendering version, it actually uses Cairo. Software rendering just bitblts up (out of a webworker or as a SDL_UpdateRect) callback in javascript as a RGBA array.
What exactly are iOS users missing in Safari, in your opinion, that they would get from Firefox? I can see that Chrome has some cool sync features if you're into that sort of thing. But it still uses WebKit. And from what I've observed, people seem happy with the "Chrome" app in the app store, even though it uses a handicapped renderer. (Although in iOS 8, it won't be handicapped anymore, and will be as powerful as native Safari)
(Also WebGL support is new in iOS). Are people really clamoring for the Firefox engine to be supported in iOS?
Very nice and with JS support it would be perfect! I wonder if this is a solution to potential XSS attacks with embeded iframes or embeded user-generated html+css+js.
Doing this in the browser might be a little silly, or at least I can't immediately think of a good use, but I think using this in a node.js program as an easy way to template something out and render an image/pdf locally could be useful.
Is this a big needed feature? It's actually really easy to pull of, cairo's backend can be switched from using images to svg, to pdf's. It's just switching the backend and once the renderer is done just spit out the results.
Add it as a feature request on github and i'll add it to the api.
I remember when for some reason people started writing SVG and HTML engines for Flash. Because, I don't know. They wanted to put a browser in your browser, so you can browse while you browse.
The engines worked, but where are they now? Nowhere. Just like Flash.
No matter how much effort you put into something, no matter how functional it is, now matter how much geek cred you'll get for it, if it doesn't have some sensible use, at least superficially, it'll linger and die. Wasted effort.
this is pretty cool but network requests and javascript support would make it even more crazier.
I viewed the html source for this page and pasted it. I was quite impressed. It looks like this is supposed to be a browser engine written in Javascript?
So essentially we would have a sandbox browser within a browser? That would be awesome.
> javascript support would make it even more crazier
There's interesting research being done in the area of meta-circular interpreters. There's techniques for speeding them up; they're not as slow as I'd expect. For example, one interpreter can do type analysis and rewrite chunks of code.
[+] [-] wildpeaks|11 years ago|reply
https://www.destroyallsoftware.com/talks/the-birth-and-death...
[+] [-] shayief|11 years ago|reply
[+] [-] dag11|11 years ago|reply
Impressive. I can't say I see the practical implementations of this, but I'm sure there's some. But it's impressive nonetheless.
[+] [-] pfraze|11 years ago|reply
[+] [-] bastawhiz|11 years ago|reply
[+] [-] elwell|11 years ago|reply
[+] [-] bjeanes|11 years ago|reply
[+] [-] jstsch|11 years ago|reply
[+] [-] jevinskie|11 years ago|reply
[+] [-] spankalee|11 years ago|reply
https://developer.mozilla.org/en-US/docs/Web/CSS/element
I've written GUI builders that really could have used this for icons of views. Instead I had to render on the server. It'd be nice if it got more broadly adopted.
[+] [-] theallan|11 years ago|reply
[+] [-] heydenberk|11 years ago|reply
[+] [-] schrodinger|11 years ago|reply
[+] [-] PLenz|11 years ago|reply
[+] [-] msvan|11 years ago|reply
[+] [-] Excavator|11 years ago|reply
http://s-macke.github.io/jor1k/
[+] [-] tlinton|11 years ago|reply
[+] [-] i_am_ralpht|11 years ago|reply
GMail, a webapp email reader, is currently taking 368MB of RAM. Insane!
[+] [-] reubenmorais|11 years ago|reply
[+] [-] grimtrigger|11 years ago|reply
Maybe someday we'll code apps in Objective-C/Java that run in the browser, all inside a canvas.
[+] [-] emilsedgh|11 years ago|reply
Please make it easier. More simple.
[+] [-] wtracy|11 years ago|reply
https://developer.gnome.org/gtk3/stable/gtk-broadway.html http://www.youtube.com/watch?v=fr8eo4RlPw4
[+] [-] ozten|11 years ago|reply
Open FTW.
[+] [-] atonse|11 years ago|reply
(Also WebGL support is new in iOS). Are people really clamoring for the Firefox engine to be supported in iOS?
[+] [-] LukeB_UK|11 years ago|reply
56 on line 34 in webkit.api.js
Uncaught #<error> on line 15633 in webkit.bin.js
[+] [-] tlinton|11 years ago|reply
[+] [-] Yoric|11 years ago|reply
[+] [-] Rinum|11 years ago|reply
[+] [-] m1sta_|11 years ago|reply
[+] [-] dingdingdang|11 years ago|reply
[+] [-] gol706|11 years ago|reply
[+] [-] _random_|11 years ago|reply
http://en.wikipedia.org/wiki/Brainfuck
so the reasons all the same.
[+] [-] bluetidepro|11 years ago|reply
[+] [-] atomical|11 years ago|reply
[+] [-] qhoc|11 years ago|reply
[+] [-] tlinton|11 years ago|reply
Add it as a feature request on github and i'll add it to the api.
[+] [-] kevingadd|11 years ago|reply
[+] [-] atomical|11 years ago|reply
[+] [-] mantraxC|11 years ago|reply
The engines worked, but where are they now? Nowhere. Just like Flash.
No matter how much effort you put into something, no matter how functional it is, now matter how much geek cred you'll get for it, if it doesn't have some sensible use, at least superficially, it'll linger and die. Wasted effort.
Just because you can do something...
[+] [-] notastartup|11 years ago|reply
I viewed the html source for this page and pasted it. I was quite impressed. It looks like this is supposed to be a browser engine written in Javascript?
So essentially we would have a sandbox browser within a browser? That would be awesome.
[+] [-] ndesaulniers|11 years ago|reply
There's interesting research being done in the area of meta-circular interpreters. There's techniques for speeding them up; they're not as slow as I'd expect. For example, one interpreter can do type analysis and rewrite chunks of code.
[+] [-] userbinator|11 years ago|reply
The first thought that comes to mind would be to try to nest the things... a browser inside a browser inside a browser.
[+] [-] copremesis|11 years ago|reply