mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
parent
f5e97ef1b5
commit
9c11781880
20 changed files with 25 additions and 29 deletions
|
@ -2135,7 +2135,7 @@ impl<'a> NodeMethods for &'a Node {
|
|||
NodeTypeId::DocumentFragment |
|
||||
NodeTypeId::Element(..) => {
|
||||
// Step 1-2.
|
||||
let node = if value.len() == 0 {
|
||||
let node = if value.is_empty() {
|
||||
None
|
||||
} else {
|
||||
let document = self.owner_doc();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue