HTML DOM Document strictErrorChecking 属性

定義と使用法

推奨されません strictErrorChecking 属性。使用しないでください。

strictErrorChecking 属性はすべての新しいブラウザで返却されます undefined

注釈:strictErrorChecking 属性は DOM Core Level 3 (2004) 特性です。

これにより、ブラウザが DOM 操作に対してエラーオブジェクトを投げるべきかどうかを制御するべきです。

代替案:

JavaScript "use strict"

返却するドキュメントの DOM エラーチェック設定:

document.strictErrorChecking;

自分で試してみてください

文法

返却 strictErrorChecking:

document.strictErrorChecking

設定 strictErrorChecking:

document.strictErrorChecking = true|false

返り値

タイプ 説明
ブール値

strictErrorChecking が有効になっている場合、true が返されます。

すべての新しいブラウザでは undefined が返されます。