Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/274b4a2d2eb1375f611b846a53e0cf13501574fe
...commit
http://git.netsurf-browser.org/netsurf.git/commit/274b4a2d2eb1375f611b846a53e0cf13501574fe
...tree
http://git.netsurf-browser.org/netsurf.git/tree/274b4a2d2eb1375f611b846a53e0cf13501574fe
The branch, master has been updated
via 274b4a2d2eb1375f611b846a53e0cf13501574fe (commit)
via 2f1526653f107d3feaaec5317d373d2888de2e2d (commit)
from 85a4792280290e7a2ce12ec200032dee1848ad12 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=274b4a2d2eb1375f611b846a53e0cf13501574fe
commit 274b4a2d2eb1375f611b846a53e0cf13501574fe
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>
Support Document::createDocumentFragment
Signed-off-by: Daniel Silverstone <[email protected]>
diff --git a/content/handlers/javascript/duktape/Document.bnd
b/content/handlers/javascript/duktape/Document.bnd
index 8901115..cc8a3a9 100644
--- a/content/handlers/javascript/duktape/Document.bnd
+++ b/content/handlers/javascript/duktape/Document.bnd
@@ -187,6 +187,20 @@ method Document::createElementNS()
return 1;
%}
+method Document::createDocumentFragment()
+%{
+ struct dom_document_fragment *frag = NULL;
+ dom_exception err;
+
+ err = dom_document_create_document_fragment(priv->parent.node, &frag);
+
+ if (err != DOM_NO_ERR) return 0; /* coerced to undefined */
+
+ dukky_push_node(ctx, (dom_node *)frag);
+
+ return 1;
+%}
+
getter Document::head()
%{
struct dom_nodelist *nodes;
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=2f1526653f107d3feaaec5317d373d2888de2e2d
commit 2f1526653f107d3feaaec5317d373d2888de2e2d
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>
Expose Number and Error on Window
Signed-off-by: Daniel Silverstone <[email protected]>
diff --git a/content/handlers/javascript/duktape/Window.bnd
b/content/handlers/javascript/duktape/Window.bnd
index c70ca25..5218167 100644
--- a/content/handlers/javascript/duktape/Window.bnd
+++ b/content/handlers/javascript/duktape/Window.bnd
@@ -213,6 +213,8 @@ prototype Window()
EXPOSE(Function);
EXPOSE(Proxy);
EXPOSE(String);
+ EXPOSE(Number);
+ EXPOSE(Error);
EXPOSE(encodeURI);
EXPOSE(encodeURIComponent);
#undef EXPOSE
-----------------------------------------------------------------------
Summary of changes:
content/handlers/javascript/duktape/Document.bnd | 14 ++++++++++++++
content/handlers/javascript/duktape/Window.bnd | 2 ++
2 files changed, 16 insertions(+)
diff --git a/content/handlers/javascript/duktape/Document.bnd
b/content/handlers/javascript/duktape/Document.bnd
index 8901115..cc8a3a9 100644
--- a/content/handlers/javascript/duktape/Document.bnd
+++ b/content/handlers/javascript/duktape/Document.bnd
@@ -187,6 +187,20 @@ method Document::createElementNS()
return 1;
%}
+method Document::createDocumentFragment()
+%{
+ struct dom_document_fragment *frag = NULL;
+ dom_exception err;
+
+ err = dom_document_create_document_fragment(priv->parent.node, &frag);
+
+ if (err != DOM_NO_ERR) return 0; /* coerced to undefined */
+
+ dukky_push_node(ctx, (dom_node *)frag);
+
+ return 1;
+%}
+
getter Document::head()
%{
struct dom_nodelist *nodes;
diff --git a/content/handlers/javascript/duktape/Window.bnd
b/content/handlers/javascript/duktape/Window.bnd
index c70ca25..5218167 100644
--- a/content/handlers/javascript/duktape/Window.bnd
+++ b/content/handlers/javascript/duktape/Window.bnd
@@ -213,6 +213,8 @@ prototype Window()
EXPOSE(Function);
EXPOSE(Proxy);
EXPOSE(String);
+ EXPOSE(Number);
+ EXPOSE(Error);
EXPOSE(encodeURI);
EXPOSE(encodeURIComponent);
#undef EXPOSE
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org