HTMLElement: stub .style getter. For #2413.
This commit is contained in:
parent
720a8fec0e
commit
bf4382e3ec
|
@ -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;
|
||||
%}
|
||||
|
|
Loading…
Reference in New Issue