mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Add is_connected flag to node and use it to replace most uses of is_in_doc
This commit is contained in:
parent
640fc04743
commit
441357b74e
29 changed files with 111 additions and 96 deletions
|
@ -1100,7 +1100,7 @@ pub trait FormControl: DomObject {
|
|||
let form_id = elem.get_string_attribute(&local_name!("form"));
|
||||
let node = elem.upcast::<Node>();
|
||||
|
||||
if self.is_listed() && !form_id.is_empty() && node.is_in_doc() {
|
||||
if self.is_listed() && !form_id.is_empty() && node.is_connected() {
|
||||
let doc = document_from_node(node);
|
||||
doc.register_form_id_listener(form_id, self);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue