Changes to DOM - xiechao00/node-webkit GitHub Wiki
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
setting value of file input element (node only)
var f = new File('/path/to/file', 'name');
var files = new FileList();
files.append(f);
document.getElementById('input0').files = files;
script can emulate user gestures
JavaScripts can emulate user gestures while in browsers they can't. e.g. Triggering click
event on file input. See File-dialogs
nwUserAgent
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.
nwdisable
since v0.5.0
See Mini-browser-in-iframe
nwfaketop
since v0.5.1
See Mini-browser-in-iframe