Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use partial definitions for monkey-patched Web IDL #21

Merged
merged 1 commit into from
Dec 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 6 additions & 16 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -576,35 +576,25 @@ It is exposed to the Javascript [=HTMLIFrameElement=] interface:

<div class="monkey-patch">
<pre class="idl" highlight="idl">
[Exposed=Window]
interface <a>HTMLIFrameElement</a> : <a>HTMLElement</a> {
// [...]
attribute boolean <a lt="dom-iframe-credentialless">credentialless</a>;
// [...]
partial interface HTMLIFrameElement {
attribute boolean credentialless;
};
</pre>

<p>The IDL attributes <dfn export lt="dom-iframe-credentialless">credentialless</dfn>,
<p>The IDL attributes <dfn attribute for="HTMLIFrameElement">credentialless</dfn>,
must <a>reflect</a> the respective content attributes of the same name.</p>

</div>

### The Window attribute ### {#spec-window-attribute}

Add a read-only constant {{Window/credentialless}} attribute
Add a read-only constant <dfn attribute for="Window">credentialless</dfn> attribute
to the [=Window=] object.

<div class="monkey-patch">
<pre class="idl" highlight="idl">
[
Global=<a>Window</a>,
Exposed=<a>Window</a>,
<a>LegacyUnenumerableNamedProperties</a>
]
interface <a>Window</a> : <a>EventTarget</a> {
// ...
readonly attribute boolean <a>credentialless</a>;
// ...
partial interface Window {
readonly attribute boolean credentialless;
};
</pre>
</div>
Expand Down
Loading