Skip to content

Commit

Permalink
Open all *but deprecated* CSS props and JS props/objects/methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
csant committed Oct 17, 2023
1 parent a9782a1 commit 753fdd8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions docs/js-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,10 @@ var id = 'toggle-' + t;
var a = document.getElementById(id);
if ( a.hasAttribute('open') == false ) {
for (i=0; i < d.length; i++) {
d[i].setAttribute('open','');
a.setAttribute('open','');
if ( d[i].classList.contains('dep') == false ) {
d[i].setAttribute('open','');
a.setAttribute('open','');
}
}}
else if ( a.hasAttribute('open') == true ) {
for (i=0; i < d.length; i++) {
Expand Down
6 changes: 4 additions & 2 deletions website/properties/script
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ var id = 'toggle-' + t;
var a = document.getElementById(id);
if ( a.hasAttribute('open') == false ) {
for (i=0; i < d.length; i++) {
d[i].setAttribute('open','');
a.setAttribute('open','');
if ( d[i].querySelector('.dep') == null ) {
d[i].setAttribute('open','');
a.setAttribute('open','');
}
}}
else if ( a.hasAttribute('open') == true ) {
for (i=0; i < d.length; i++) {
Expand Down

0 comments on commit 753fdd8

Please sign in to comment.