diff options
author | Zachary Newman <znewman01@gmail.com> | 2014-11-17 20:09:19 -0500 |
---|---|---|
committer | Zachary Newman <znewman01@gmail.com> | 2014-11-18 09:00:45 -0500 |
commit | 2399a1449d345c32b0509da5ee6bd17c334b5788 (patch) | |
tree | 90b3acf010bca6da6cc24d2f193c326d043b1cb9 /components/script/dom/domimplementation.rs | |
parent | 64cc9ec6881add395b93341a32e90546b2f7211f (diff) | |
download | servo-2399a1449d345c32b0509da5ee6bd17c334b5788.tar.gz servo-2399a1449d345c32b0509da5ee6bd17c334b5788.zip |
Implement DOMImplementation.hasFeature
Fixes #4010.
Diffstat (limited to 'components/script/dom/domimplementation.rs')
-rw-r--r-- | components/script/dom/domimplementation.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/script/dom/domimplementation.rs b/components/script/dom/domimplementation.rs index 6530a728004..69478e0321f 100644 --- a/components/script/dom/domimplementation.rs +++ b/components/script/dom/domimplementation.rs @@ -165,4 +165,9 @@ impl<'a> DOMImplementationMethods for JSRef<'a, DOMImplementation> { // Step 9. Temporary::from_rooted(*doc) } + + // https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature + fn HasFeature(self, _feature: DOMString, _version: DOMString) -> bool { + true + } } |