mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Implement concept of shadow including tree order
This commit is contained in:
parent
f6ba165882
commit
2e5c058463
15 changed files with 69 additions and 43 deletions
|
@ -582,7 +582,7 @@ impl HTMLFormElement {
|
|||
// form, refactor this when html5ever's form owner PR lands
|
||||
// Step 1-3
|
||||
let invalid_controls = node
|
||||
.traverse_preorder()
|
||||
.traverse_preorder(/* shadow including */ false)
|
||||
.filter_map(|field| {
|
||||
if let Some(el) = field.downcast::<Element>() {
|
||||
if el.disabled_state() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue