-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Changes to DOM
NOTE: some content in this wiki applies only to 0.12 and earlier versions. For official documentation on 0.13 and later, see http://docs.nwjs.io
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
// This behaviour is currently broken. See https://github.com/nwjs/nw.js/issues/7958
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