Files
sanderling/internal/driver/chrome/testdata/element-state.html
T
pj 05c8523762 fix(chrome): emit every markup attribute and read checked and selected off the property
the dump emitted a fixed standard attribute set, so a spec reading data-cents or data-account-id saw undefined on the goja host and nothing at all in the trace. it now keys every attribute by the name the markup writes, derived keys overwriting. checked and selected come from the dom property rather than whatever a component left on the object, which is also what the page-side element handle now reports, so a ticked box reads as ticked instead of reporting its starting state forever.
2026-08-16 17:44:04 +05:30

28 lines
999 B
HTML

<!doctype html>
<html id="page">
<head id="page-head">
<meta id="page-charset" charset="utf-8" />
<title id="page-title">element state</title>
</head>
<body id="page-body">
<!-- toggle-all starts unchecked in the markup and toggle-done starts
checked, so a reader of the `checked` ATTRIBUTE reports each one's
starting value forever and disagrees with both after one click. -->
<input id="toggle-all" type="checkbox" />
<input id="toggle-done" type="checkbox" checked />
<input id="editing" type="text" value="buy milk" />
<button id="save">save</button>
<button id="cancel" disabled>cancel</button>
<select id="filter">
<option id="filter-all">all</option>
<option id="filter-active" selected>active</option>
</select>
<script id="page-script">
window.__keys__ = [];
document.addEventListener('keydown', function (event) {
window.__keys__.push(event.key);
});
</script>
</body>
</html>