1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 12:08:14 +00:00

LibWeb: Add spec comments to DOMImplementation

This commit is contained in:
Shannon Booth 2023-08-12 21:30:16 +12:00 committed by Andreas Kling
parent d3d67857b2
commit d8ae02ef59
2 changed files with 35 additions and 5 deletions

View file

@ -25,7 +25,11 @@ public:
WebIDL::ExceptionOr<JS::NonnullGCPtr<DocumentType>> create_document_type(DeprecatedString const& qualified_name, DeprecatedString const& public_id, DeprecatedString const& system_id);
// https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
bool has_feature() const { return true; }
bool has_feature() const
{
// The hasFeature() method steps are to return true.
return true;
}
private:
explicit DOMImplementation(Document&);