E84D [css-text] Forgot check for checked status in JS demo. · w3c/csswg-drafts@a0c509a · GitHub
Skip to content

Commit a0c509a

Browse files
committed
[css-text] Forgot check for checked status in JS demo.
1 parent 9923814 commit a0c509a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

css-text/justify.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ <h1>Universal Default Justification Experiment</h1>
175175
var fields = document.getElementsByTagName('input');
176176
for (var i = 0; i < fields.length; i++) {
177177
if (fields[i].type == 'checkbox') {
178-
pairs.push(fields[i].id + '=' + fields[i].id);
178+
if (fields[i].checked)
179+
pairs.push(fields[i].id + '=' + fields[i].id);
179180
}
180181
else {
181182
pairs.push(fields[i].id + '=' + fields[i].value);

0 commit comments

Comments
 (0)