Skip to content

Commit

Permalink
Generated by b32cc421cf23b69f6e30c84b244081267833ccb0
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 15, 2023
1 parent 2cef5f9 commit ebfd2e9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 36 deletions.
47 changes: 13 additions & 34 deletions common/script/aria.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,8 @@ function ariaAttributeReferences() {
var subRoles = [];
var roleIndex = '';
var fromAuthor = '';
var fromHeading = "";
var fromContent = '';
var fromEncapsulation = '';
var fromLegend = '';
var fromProhibited = '';

Array.prototype.slice
Expand Down Expand Up @@ -358,8 +357,8 @@ function ariaAttributeReferences() {
req +
'</li>';
}
if (!isAbstract && node.textContent.indexOf('content') !== -1) {
fromContent +=
if (node.textContent.indexOf('heading') !== -1) {
fromHeading +=
'<li><a href="#' +
pnID +
'" class="role-reference"><code>' +
Expand All @@ -368,18 +367,8 @@ function ariaAttributeReferences() {
req +
'</li>';
}
if (node.textContent.indexOf('prohibited') !== -1) {
fromProhibited +=
'<li><a href="#' +
pnID +
'" class="role-reference"><code>' +
content +
'</code></a>' +
req +
'</li>';
}
if (node.textContent.indexOf('encapsulation') !== -1) {
fromEncapsulation +=
if (!isAbstract && node.textContent.indexOf('content') !== -1) {
fromContent +=
'<li><a href="#' +
pnID +
'" class="role-reference"><code>' +
Expand All @@ -388,8 +377,8 @@ function ariaAttributeReferences() {
req +
'</li>';
}
if (node.textContent.indexOf('legend') !== -1) {
fromLegend +=
if (node.textContent.indexOf('prohibited') !== -1) {
fromProhibited +=
'<li><a href="#' +
pnID +
'" class="role-reference"><code>' +
Expand Down Expand Up @@ -677,33 +666,23 @@ function ariaAttributeReferences() {
parentNode.replaceChild(list, node);
}

node = document.getElementById('index_fromcontent');
if (node) {
parentNode = node.parentNode;
list = document.createElement('ul');
list.id = 'index_fromcontent';
list.className = 'compact';
list.innerHTML = fromContent;
parentNode.replaceChild(list, node);
}

node = document.getElementById('index_fromencapsulation');
node = document.getElementById('index_fromheading');
if (node) {
parentNode = node.parentNode;
list = document.createElement('ul');
list.id = 'index_fromencapsulation';
list.id = 'index_fromheading';
list.className = 'compact';
list.innerHTML = fromEncapsulation;
list.innerHTML = fromHeading;
parentNode.replaceChild(list, node);
}

node = document.getElementById('index_fromlegend');
node = document.getElementById('index_fromcontent');
if (node) {
parentNode = node.parentNode;
list = document.createElement('ul');
list.id = 'index_fromlegend';
list.id = 'index_fromcontent';
list.className = 'compact';
list.innerHTML = fromLegend;
list.innerHTML = fromContent;
parentNode.replaceChild(list, node);
}

Expand Down
4 changes: 2 additions & 2 deletions common/script/mapping-tables.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ document.addEventListener("DOMContentLoaded", () => {

document.querySelectorAll('button.expand').forEach(function (b){
b.addEventListener('click', function () {
detailsContainer = b.parentElement.querySelector('.details');
detailsContainer = b.parentElement;
expandCollapseDetails(detailsContainer, 'expand');
b.disabled = true;
b.parentElement
Expand All @@ -260,7 +260,7 @@ document.addEventListener("DOMContentLoaded", () => {

document.querySelectorAll('button.collapse').forEach(function (b){
b.addEventListener('click', function () {
detailsContainer = b.parentElement.querySelector('.details');
detailsContainer = b.parentElement;
expandCollapseDetails(detailsContainer, 'collapse');
b.disabled = true;
b.parentElement
Expand Down

0 comments on commit ebfd2e9

Please sign in to comment.