IE - 使用NVDA时表单和内部所有元素丢失id

时间:2018-02-13 09:49:14

标签: javascript html wordpress internet-explorer nvda

screen

当我打开NVDA时,我的一个表单会丢失ID(以及表单中的元素)。 它只发生在IE中(当我在浏览器中关闭JS时)。

<form name="frm239983213" class="comment-form" id="frm239983213"
  action="javascript:cs_contact_frm_submit(239983213)">
<div class="input-filed-contact"><label>Your Name</label> <i class="icon-user9"></i><input
        name="contact_name" class="  vsmall" id="contact_name" required="required" type="text"
        placeholder="Name" value=""></div>
<div class="input-filed-contact"><label>Email Address*</label><i class="icon-envelope4"></i><input
        name="contact_email" class="   vsmall" id="contact_email" required="" type="email"
        placeholder="Enter your email address" value=""></div>
<div class="input-filed-contact"><label>Subject</label><i class="icon-mobile4"></i><input
        name="contact_subject" class="form-control   vsmall" id="contact_subject" required="required"
        type="text" placeholder="Subject" value=""></div>
<div class="input-filed-contact"><label>Message</label> <textarea name="contact_msg"
                                                                  class="commenttextarea form-control  "
                                                                  id="contact_msg" required="required"
                                                                  placeholder="Message" rows="4" cols="39">Message</textarea>
</div>
<input id="hidden_239983213" type="hidden" value="239983213"><input id="suc_239983213" type="hidden"
                                                                    value="Success"><input
    id="err_239983213" type="hidden" value="Error"><input id="sendto_239983213" type="hidden"
                                                          value="x@y.com">
<div class="input-filed-contact">
    <div class="profile-contact-btn"><input name="submit" class="cs-bgcolor acc-submit"
                                            id="submit_btn239983213" type="submit" value="Submit Now"></div>
</div>
<div id="loading_div239983213" style="margin: 19px 0px 0px 100px; float: left;"></div>

一段HTML代码。当我在运行NVDA后复制代码时,在剪贴板中会保留这些ID,但浏览器会隐藏ID。开发人员工具:

screen

0 个答案:

没有答案