mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
Attr is a Node, with consequences for many Node methods
This commit is contained in:
parent
3e77a0ae09
commit
67e9fc8c0a
9 changed files with 229 additions and 306 deletions
|
@ -986,6 +986,7 @@ impl RangeMethods for Range {
|
|||
NodeTypeId::CharacterData(CharacterDataTypeId::Text(_)) => node.GetParentElement(),
|
||||
NodeTypeId::CharacterData(CharacterDataTypeId::ProcessingInstruction) |
|
||||
NodeTypeId::DocumentType => unreachable!(),
|
||||
NodeTypeId::Attr => unreachable!(),
|
||||
};
|
||||
|
||||
// Step 2.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue