Skip to content

Commit 37ad191

Browse files
committed
capture unchecked values
1 parent eb1cd45 commit 37ad191

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

playground/index.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,16 @@
3333
}
3434

3535
.css-tree {
36-
3736
list-style: none;
3837
font-size: 14px;
3938

4039
.property {
41-
4240
cursor: pointer;
4341
}
4442

4543
ul {
4644
list-style: none;
47-
padding-left: 15px;
48-
45+
padding-left: 15px;
4946
> li:not(.tree-collapsed) > .tree-more-dots {
5047

5148
display: none;
@@ -532,7 +529,7 @@ <h1>@tbela99/css-parser Playground</h1>
532529
let value;
533530
let name;
534531

535-
for (const option of document.querySelectorAll(':scope :is(input[type=checkbox][name]:checked,input[type=radio][name]:checked,select[name^="parseoptions["],select[name^="renderoptions["])')) {
532+
for (const option of document.querySelectorAll(':scope :is(input[type=checkbox][name],input[type=radio][name]:checked,select[name^="parseoptions["],select[name^="renderoptions["])')) {
536533

537534
name = option.name;
538535
value = option.tagName === 'SELECT' ? option.value : option.checked;

0 commit comments

Comments
 (0)