commit | 08b6a8d9f034badfb1853b51e52787f8932fdea0 | [log] [tgz] |
---|---|---|
author | zhoupeng <zhoupeng.1996@bytedance.com> | Sun Mar 03 21:12:24 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sun Mar 03 21:12:24 2024 |
tree | e292301a5192663f064ef97a46fe5d6a6ce5f252 | |
parent | 161ad888b4e9eefe9e652b4f5db96c8d657dabc6 [diff] |
Make sure that the inert element and its subtree cannot be searchable As per the HTML spec: Content in an inert element and its subtree will not be perceivable by all users, or interactive. Consider this test case: <body> <div inert>Do not find me please</div> </body> The return value of `window.find('me')` is true, but `div` is non-interactive due to the inert attribute being assigned to it. `ShouldIgnoreContents` should assess the inert attribute of the element. The reason why some cases in `inert/inert-and-find.html` cannot be passed is also attributed to this factor. Bug: 327017912 Change-Id: I5b4b15859c9e9c31f57b1d5cfc44509dc37105aa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5319168 Reviewed-by: Kent Tamura <tkent@chromium.org> Reviewed-by: Koji Ishii <kojii@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Auto-Submit: Peng Zhou <zhoupeng.1996@bytedance.com> Cr-Commit-Position: refs/heads/main@{#1267634}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.