我有一个文本区域,更新它。通常显示的文本出现在该文本区域标记的内容中(使用 firebug 查看当前 html 中的内容)。我刚刚遇到了文本区域中显示的文本没有出现在内容中的情况(至少根据萤火虫)。我也无法通过 jquery 找到文本,所以 jquery 说那里也没有任何东西。但是,浏览器在该文本区域中显示某些内容。
这可能发生的方式是什么?
这是萤火虫的标记:
<textarea id="HotlineComment" class="text autogrow valid" rows="2" name="HotlineComment" cols="20" style="overflow: hidden; resize: none; height: 30px;" title="Enter the reason for this change"></textarea>
<span class="authError" for="HotlineComment" generated="true"></span>
这是 Firefox 呈现的视觉效果: