From 22368db2325bf25d597023f34399b51c59cdfc2e Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 17 Aug 2012 11:52:59 +0100 Subject: add js property (dom attribute) support to the document/element objects --- javascript/jsapi/htmldocument.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'javascript/jsapi/htmldocument.c') diff --git a/javascript/jsapi/htmldocument.c b/javascript/jsapi/htmldocument.c index aa9efbcd1..1a58e4e19 100644 --- a/javascript/jsapi/htmldocument.c +++ b/javascript/jsapi/htmldocument.c @@ -209,6 +209,12 @@ static JSFunctionSpec jsfunctions_document[] = { JSAPI_FS_END }; +static JSPropertySpec jsproperties_document[] = +{ + JSAPI_PS_DOCUMENT, + JSAPI_PS_END +}; + static void jsfinalize_document(JSContext *cx, JSObject *obj) { struct jsclass_document_priv *document; @@ -238,7 +244,7 @@ JSObject *jsapi_new_document(JSContext *cx, JSObject *parent, struct html_conten &JSCLASS_OBJECT, NULL, 0, - NULL, + jsproperties_document, jsfunctions_document, NULL, NULL); -- cgit v1.2.3