/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
if (!changedStates.IsEmpty()) {
ToggleStates(changedStates, aNotify);
// Descendant options have their :disabled state depending on our // disabled attribute. Walk descendants, skipping boundary elements // whose children are not affected by this optgroup's disabled state.
for (nsIContent* node = GetFirstChild(); node;) {
if (auto* opt = HTMLOptionElement::FromNode(node)) {
opt->OptGroupDisabledChanged(true);
node = node->GetNextNonChildNode(this); continue;
}
if (HTMLOptionElement::IsOptionListBoundary(*node) ||
node->IsHTMLElement(nsGkAtoms::optgroup)) {
node = node->GetNextNonChildNode(this); continue;
}
node = node->GetNextNode(this);
}
}
}
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.