diff options
-rw-r--r-- | javascript/duktape/HTMLElement.bnd | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/javascript/duktape/HTMLElement.bnd b/javascript/duktape/HTMLElement.bnd index d2b913a6e..b3de9c8fe 100644 --- a/javascript/duktape/HTMLElement.bnd +++ b/javascript/duktape/HTMLElement.bnd @@ -151,3 +151,12 @@ getter HTMLElement::onwaiting(); setter HTMLElement::onwaiting(); getter HTMLElement::onwheel(); setter HTMLElement::onwheel(); + +getter HTMLElement::style() +%{ + /* Minimal implementation to avoid infinite-loop in Modernizr (c.f. #2413) */ + if (dukky_create_object(ctx, PROTO_NAME(CSSSTYLEDECLARATION), 0) != DUK_EXEC_SUCCESS) { + return 0; + } + return 1; +%} |