forked from nwjs/nw.js
-
Notifications
You must be signed in to change notification settings - Fork 2
Changes to DOM
Roger Wang edited this page Feb 8, 2014
·
4 revisions
The following changes to DOM is made to support native applications better:
Features marked with node only means that only Node frames can do this. Normal frames still follow the W3C standard. For definition of Node frames and Normal frames, see Security
var f = new File('/path/to/file', 'name');
var files = new FileList();
files.append(f);
document.getElementById('input0').files = files;JavaScripts can emulate user gestures while in browsers they can't. e.g. Triggering click event on file input. See File-dialogs
since v0.9.0-rc1
A new attribute nwUserAgent is added to the iframe element. The value is used as the User-Agent header from HTTP requests from that iframe, or its descendants.
since v0.5.0
See Mini-browser-in-iframe
since v0.5.1
See Mini-browser-in-iframe