diff --git a/script/aria.js b/script/aria.js index 38c02a0..c4df7c1 100644 --- a/script/aria.js +++ b/script/aria.js @@ -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 @@ -358,8 +357,8 @@ function ariaAttributeReferences() { req + ''; } - if (!isAbstract && node.textContent.indexOf('content') !== -1) { - fromContent += + if (node.textContent.indexOf('heading') !== -1) { + fromHeading += '
' +
@@ -368,18 +367,8 @@ function ariaAttributeReferences() {
req +
'' +
- content +
- '' +
- req +
- '' +
@@ -388,8 +377,8 @@ function ariaAttributeReferences() {
req +
'' +
@@ -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);
}