Skip to content

Add glossary page for interface#44746

Open
hanu-14 wants to merge 2 commits into
mdn:mainfrom
hanu-14:fix/glossary-interface-page
Open

Add glossary page for interface#44746
hanu-14 wants to merge 2 commits into
mdn:mainfrom
hanu-14:fix/glossary-interface-page

Conversation

@hanu-14

@hanu-14 hanu-14 commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Description

Adds a new glossary page for interface, similar to the existing class glossary page. The interface term is referenced from the mixin glossary page via {{Glossary("interface")}} but had no corresponding page.

Changes

  • files/en-us/glossary/interface/index.md - New glossary definition for interface, covering both OOP and Web API contexts

Closes #44091

@hanu-14
hanu-14 requested a review from a team as a code owner July 16, 2026 15:09
@hanu-14
hanu-14 requested review from chrisdavidmills and removed request for a team July 16, 2026 15:09
@github-actions github-actions Bot added Content:Glossary Glossary entries size/s [PR only] 6-50 LoC changed labels Jul 16, 2026
Comment thread files/en-us/glossary/interface/index.md Outdated
@github-actions

github-actions Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Preview URLs (1 page)

Flaws (1)

Found an unexpected or unresolvable flaw? Please report it here.

URL: /en-US/docs/Glossary/Interface
Title: Interface
Flaw count: 1

  • macros:
    • Macro glossary produces link /en-US/docs/Glossary/WebAPI which doesn't resolve
External URLs (2)

URL: /en-US/docs/Glossary/Interface
Title: Interface

(comment last updated: 2026-07-16 15:18:44)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

@chrisdavidmills chrisdavidmills left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hanu-14 sounds reasonable. Here's a suggestion to fix one link and add another.


In {{glossary("OOP","object-oriented programming")}}, an **interface** defines a set of {{glossary("method","methods")}} and {{glossary("property","properties")}} that an {{glossary("object")}} must implement. Unlike a {{glossary("class")}}, an interface does not contain any implementation details; it only describes the structure that implementing objects must follow.

In the context of {{glossary("WebAPI","Web APIs")}}, an interface is a type that describes the {{glossary("method","methods")}}, {{glossary("property","properties")}}, and {{glossary("event","events")}} that a web API object exposes. These interfaces are defined in Web IDL (Interface Definition Language) and are implemented by {{glossary("browser","browsers")}}.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
In the context of {{glossary("WebAPI","Web APIs")}}, an interface is a type that describes the {{glossary("method","methods")}}, {{glossary("property","properties")}}, and {{glossary("event","events")}} that a web API object exposes. These interfaces are defined in Web IDL (Interface Definition Language) and are implemented by {{glossary("browser","browsers")}}.
In the context of [Web APIs](/en-US/docs/Web/API), an interface is a type that describes the {{glossary("method","methods")}}, {{glossary("property","properties")}}, and {{glossary("event","events")}} that a Web API object exposes. These interfaces are defined in [Web IDL](/en-US/docs/MDN/Writing_guidelines/Howto/Write_an_api_reference/Information_contained_in_a_WebIDL_file) (Interface Definition Language) and are implemented by {{glossary("browser","browsers")}}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:Glossary Glossary entries size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Write a glossary page for "interface"

2 participants