mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1242450 - Do not display hidden <option> elements in e10s r=mconley
This commit is contained in:
parent
4ccc9836fa
commit
9a97cf1418
@ -99,6 +99,10 @@ function buildOptionListForChildren(node) {
|
||||
let tagName = child.tagName.toUpperCase();
|
||||
|
||||
if (tagName == 'OPTION' || tagName == 'OPTGROUP') {
|
||||
if (child.hidden) {
|
||||
continue;
|
||||
}
|
||||
|
||||
let textContent =
|
||||
tagName == 'OPTGROUP' ? child.getAttribute("label")
|
||||
: child.text;
|
||||
|
Loading…
Reference in New Issue
Block a user