mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Update Rust to 1.11.0-nightly (ec872dc8a 2016-06-07)
This commit is contained in:
parent
a80767993b
commit
b7f5e8d013
11 changed files with 183 additions and 189 deletions
|
@ -2675,7 +2675,7 @@ impl DocumentMethods for Document {
|
|||
.filter(|node| filter_by_name(&name, node.r()))
|
||||
.peekable();
|
||||
if let Some(first) = elements.next() {
|
||||
if elements.is_empty() {
|
||||
if elements.peek().is_none() {
|
||||
*found = true;
|
||||
// TODO: Step 2.
|
||||
// Step 3.
|
||||
|
|
|
@ -1452,7 +1452,7 @@ impl Node {
|
|||
0 => (),
|
||||
// Step 6.1.2
|
||||
1 => {
|
||||
if !parent.child_elements().is_empty() {
|
||||
if !parent.child_elements().peek().is_none() {
|
||||
return Err(Error::HierarchyRequest);
|
||||
}
|
||||
if let Some(child) = child {
|
||||
|
@ -1468,7 +1468,7 @@ impl Node {
|
|||
},
|
||||
// Step 6.2
|
||||
NodeTypeId::Element(_) => {
|
||||
if !parent.child_elements().is_empty() {
|
||||
if !parent.child_elements().peek().is_none() {
|
||||
return Err(Error::HierarchyRequest);
|
||||
}
|
||||
if let Some(ref child) = child {
|
||||
|
@ -1495,7 +1495,7 @@ impl Node {
|
|||
}
|
||||
},
|
||||
None => {
|
||||
if !parent.child_elements().is_empty() {
|
||||
if !parent.child_elements().peek().is_none() {
|
||||
return Err(Error::HierarchyRequest);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue