This avoids tripping on the shadow tree mutation. Move the NodeNeedsTextChange check earlier since it is cheaper. Differential Revision: https://phabricator.services.mozilla.com/D281933
10 lines
308 B
HTML
10 lines
308 B
HTML
<!doctype html>
|
|
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=2014615">
|
|
<script>
|
|
document.addEventListener("DOMContentLoaded", () => {
|
|
a.outerText = String.fromCharCode(35, 85)
|
|
})
|
|
</script>
|
|
<select autofocus="autofocus" contenteditable="true">
|
|
<option case="capture" id="a"></option>
|