Bug 1242450 - Do not display hidden <option> elements in e10s r=mconley

This commit is contained in:
George Wright 2016-01-26 18:12:17 -05:00
parent 4ccc9836fa
commit 9a97cf1418

View File

@ -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;