Skip to main content

JS_SetIsHTMLDDA

Function JS_SetIsHTMLDDA 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_SetIsHTMLDDA( _ctx: *mut JsContext, _obj: JsValue, )
Expand description

JS_SetIsHTMLDDA: mark the object as document.all-like.

No engine here produces such an object — it exists for a browser’s fault-tolerance requirements — and pretending otherwise would need a [[IsHTMLDDA]] slot in the engine. The function exists so a module referencing it links; it reports success and does nothing, which is visible only to a script that tests if (obj), and no such script can exist here without the object that has the slot.

§Safety

obj must be a live JSValue.