diff options
author | Patrick Shaughnessy <pshaughn@comcast.net> | 2019-12-13 18:39:11 -0500 |
---|---|---|
committer | Patrick Shaughnessy <pshaughn@comcast.net> | 2019-12-23 19:10:16 -0500 |
commit | 67e9fc8c0ad5dd54a9947a3048f588a8ea55458e (patch) | |
tree | d58cdfb0b8b819c7ab647fd9de470cb076961e03 /components/script/dom/range.rs | |
parent | 3e77a0ae09daf28c0a102add5a198bff08befe31 (diff) | |
download | servo-67e9fc8c0ad5dd54a9947a3048f588a8ea55458e.tar.gz servo-67e9fc8c0ad5dd54a9947a3048f588a8ea55458e.zip |
Attr is a Node, with consequences for many Node methods
Diffstat (limited to 'components/script/dom/range.rs')
-rw-r--r-- | components/script/dom/range.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/dom/range.rs b/components/script/dom/range.rs index 819cc284d63..665469f4884 100644 --- a/components/script/dom/range.rs +++ b/components/script/dom/range.rs @@ -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. |