/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ "use strict";
// Component that is responsible for rendering accessible audit data in the a11y panel // sidebar. class Checks extends Component { static get propTypes() { return {
audit: PropTypes.object,
labelledby: PropTypes.string.isRequired,
};
}
const items = []; for (const name in audit) { // There are going to be various audit reports for this object, sent by the server. // Iterate over them and delegate rendering to the method with the corresponding // name. if (audit[name] && this[name]) {
items.push({
component: this[name](audit[name]),
className: name,
key: name,
});
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.