mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
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.
28 lines
999 B
HTML
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>
|