JQuery :visible 不是对每个元素都可见,除了头部?

JQuery :visible is not visible to every element except from head?

我参加了一个测试,这个断言被认为是错误的: $(':visible') 可以访问文档中的所有可见元素,除了 head 标签中的元素,如样式、元、脚本、标题等

哪里出错了?提前致谢

快速阅读 the documentation 后:

Visible elements have a width or height that is greater than zero.

(...)

All option elements are considered hidden, regardless of their selected state.

因此,这是为什么该陈述不正确的两个快速答案(它无法访问 width/height 等于零的元素和所有选项元素)。

我想这不是唯一的原因,但这是我的第一个猜测。