ok('control' in document.createElement('label'), "label element should have a control IDL attribute");
checkControl('l1', 'i1', "label control should be the first form element");
checkControl('l2', 'i2', "label control should be the first form element");
checkControl('l3', null, "label control should be null when there is no child");
checkControl('l4a', null, "label control should be null when there is no \
labelable form element child");
checkControl('l4b', 'i3', "label control should be the first labelable element \
in tree order");
checkControl('l4c', 'i3', "label control should be the first labelable element \
in tree order");
checkControl('l4d', 'i3b', "label control should be the first labelable element \
in tree order");
checkControl('l4e', 'i3b', "label control should be the first labelable element \
in tree order");
checkControl('l5', 'i1', "label control should be the id in @for");
checkControl('l6', null, "label control should be null if the id in @for is not valid");
checkControl('l7', null, "label control should be null if the id in @for is not valid");
checkControl('l8', null, "label control should be null if there are more than one id in @for");
checkControl('l9', null, "label control should be null if there are more than one id in @for");
checkControl('l10', null, "label control should be null if the id in @for \
is not an id from a labelable form element");
var inputOutOfDocument = document.createElement('input');
inputOutOfDocument.id = 'i4';
checkControl('l11', null, "label control should be null if the id in @for \
is not an id from an element in the document");
var inputInDocument = document.createElement('input');
inputInDocument.id = 'i5';
document.getElementById('content').appendChild(inputInDocument);
checkControl('l12', 'i5', "label control should be the id in @for");
checkControl('l13', null, "label control should be null if the id in @for \
is empty");
var labelOutOfDocument = document.createElement('label');
labelOutOfDocument.htmlFor = 'i1';
is(labelOutOfDocument.control, null, "out of document label shouldn't \
labelize a form control");
</script>
</pre>
</body>
</html>
Messung V0.5
¤ Dauer der Verarbeitung: 0.0 Sekunden
(vorverarbeitet)
¤
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 und die Messung sind noch experimentell.