jquery - 将 readOnly 更改为 true 会使 MS Chromium Edge 中的站点崩溃
问题描述
我有这个奇怪的错误发生在 MS chromium Edge 中。HTML 部分如下所示
<dl data-toggle="tooltip" title="Formula">
<dt>
<label for="Login_Logout_Time">TimeZone
<b>Early Departure or Late Arrival </b>
<i>ONLY</i>
</label>
</dt>
<dd>
<input name="Login_Logout_Time" class="Login_Logout_Time" id="Login_Logout_Time" data-toggle="popover" data-content="Invalid time entered" type="time" />
<!--calling attendance to clear time for out of shift login logout -->
</dd>
现在,当我尝试更改此字段以使其可编辑或不使用以下脚本时,谁的网站会崩溃。
$("#Login_Logout_Time").prop('readOnly', true)
或者
document.getElementById("Login_Logout_Time").readOnly = true
我不知道为什么会这样。
我认为这是我的环境,但也能够在小提琴中复制它。
https://jsfiddle.net/abilash44/jw26ksbc/5/
在该链接中,如果您可以在控制台中运行上述脚本,则站点会崩溃。知道发生了什么,如何在 MS chromium Edge 中避免这种情况?