blob: fbdee9b7f1c6ba85bbf8dc6c81ff15e607fa1bf3 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<p>This tests mutating autocorrect and autocapitalize IDL attributes inside a connected callback.<br>
WebKit should not hit a release assertion.</p>
<div id="result">FAIL</div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
customElements.define('editor-element', class extends HTMLElement {
connectedCallback() {
this.autocorrect = true;
this.autocapitalize = true;
document.getElementById('result').textContent = 'PASS';
}
})
</script>
<editor-element></editor-element>
</body>
</html>