mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
auto merge of #4027 : znewman01/servo/issue4010, r=Ms2ger
Fixes #4010. This is my first Servo contribution, so let me know if I missed anything!
This commit is contained in:
commit
efb4fe4a4a
4 changed files with 7 additions and 376 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
*/
|
||||
|
||||
interface DOMImplementation {
|
||||
/*boolean hasFeature(DOMString feature,
|
||||
[TreatNullAs=EmptyString] DOMString version);*/
|
||||
boolean hasFeature(DOMString feature,
|
||||
[TreatNullAs=EmptyString] DOMString version);
|
||||
[Throws]
|
||||
DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId,
|
||||
DOMString systemId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue