mirror of
https://github.com/servo/servo
synced 2026-05-12 01:46:28 +02:00
Fix the bug from 6 years ago https://github.com/servo/servo/pull/24090. According to [spec](https://w3c.github.io/webdriver/#dfn-container), we should search ancestor instead of preceding nodes (which is reverse order of pre-order DFS and can end up weird places) when computing container for `option`&`optgroup`. Testing: Update WPT. Fixes: https://github.com/servo/servo/pull/36467#discussion_r2255834497. --------- Signed-off-by: Euclid Ye <euclid.ye@huawei.com>