Skip to content

Commit bf3f496

Browse files
authored
Remove HTMLAttrDef macro (#24773)
1 parent e861ca9 commit bf3f496

File tree

14 files changed

+85
-85
lines changed

14 files changed

+85
-85
lines changed

files/en-us/learn/common_questions/design_and_accessibility/html_features_for_accessibility/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ To aid tabbing, you can supply a [skip link](/en-US/docs/Web/HTML/Element/a#skip
6464

6565
## Alt attribute for image
6666

67-
Every image should have an [`alt`](/en-US/docs/Web/HTML/Element/img#attr-alt) attribute. If the image is purely decoration and adds no meaning to the content or context of the document, the `alt` attribute should be present, but empty. You can optionally also add [`role="presentation"`](/en-US/docs/Web/Accessibility/ARIA/Roles/presentation_role). All other images should include an `alt` attribute providing [alternative text describing the image](/en-US/docs/Web/API/HTMLImageElement/alt#usage_notes) in a way that is helpful to users who can read the rest of the content but can't see the image. Think about how you would describe the image to someone who can't load your image: that's the information you should include as the value of the `alt` attribute.
67+
Every image should have an [`alt`](/en-US/docs/Web/HTML/Element/img#alt) attribute. If the image is purely decoration and adds no meaning to the content or context of the document, the `alt` attribute should be present, but empty. You can optionally also add [`role="presentation"`](/en-US/docs/Web/Accessibility/ARIA/Roles/presentation_role). All other images should include an `alt` attribute providing [alternative text describing the image](/en-US/docs/Web/API/HTMLImageElement/alt#usage_notes) in a way that is helpful to users who can read the rest of the content but can't see the image. Think about how you would describe the image to someone who can't load your image: that's the information you should include as the value of the `alt` attribute.
6868

6969
```html
7070
<!-- decorative image -->

files/en-us/web/accessibility/aria/attributes/aria-label/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ In cases where an interactive element has no accessible name, or an accessible n
3838
3939
Most content has an accessible name generated from its immediate wrapping element's text content. Accessible names can also be created by certain attributes or associated elements.
4040

41-
By default, a button's accessible name is the content between the opening and closing {{HTMLElement('button')}} tags, an image's accessible name is the content of its [`alt`](/en-US/docs/Web/HTML/Element/img#attr-alt) attribute, and a form input's accessible name is the content of the associated {{HTMLElement('label')}} element.
41+
By default, a button's accessible name is the content between the opening and closing {{HTMLElement('button')}} tags, an image's accessible name is the content of its [`alt`](/en-US/docs/Web/HTML/Element/img#alt) attribute, and a form input's accessible name is the content of the associated {{HTMLElement('label')}} element.
4242

4343
If none of these options are available, or if the default accessible name is not appropriate, use the `aria-label` attribute to define the accessible name of an element.
4444

files/en-us/web/api/storage_access_api/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ These cookie blocking policies are known to break embedded cross-origin content
2323

2424
The Storage Access API is intended to solve this problem; embedded cross-origin content can request unrestricted access to its first-party storage on a site-by-site basis via the {{domxref("Document.requestStorageAccess()")}} method, and check whether it already has access via the {{domxref("Document.hasStorageAccess()")}} method.
2525

26-
In addition, sandboxed {{htmlelement("iframe")}}s cannot be granted storage access by default for security reasons. The API therefore also adds the `allow-storage-access-by-user-activation` [sandbox token](/en-US/docs/Web/HTML/Element/iframe#attr-sandbox). The embedding website needs to add this to allow storage access requests to be successful, along with `allow-scripts` and `allow-same-origin` to allow it to call the API, and execute in an origin that can have cookies:
26+
In addition, sandboxed {{htmlelement("iframe")}}s cannot be granted storage access by default for security reasons. The API therefore also adds the `allow-storage-access-by-user-activation` [sandbox token](/en-US/docs/Web/HTML/Element/iframe#sandbox). The embedding website needs to add this to allow storage access requests to be successful, along with `allow-scripts` and `allow-same-origin` to allow it to call the API, and execute in an origin that can have cookies:
2727

2828
```html
2929
<iframe

files/en-us/web/api/storage_access_api/using/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The Storage Access API is designed to allow embedded content to request access t
1616

1717
In this example we show how an embedded cross-origin {{htmlelement("iframe")}} can access a user's cookies under a storage access policy that blocks third-party cookies.
1818

19-
First of all, if the `<iframe>` is sandboxed, the embedding website needs to add the `allow-storage-access-by-user-activation` [sandbox token](/en-US/docs/Web/HTML/Element/iframe#attr-sandbox) to allow storage access requests to be successful, along with `allow-scripts` and `allow-same-origin` to allow it to call the API, and execute in an origin that can have cookies:
19+
First of all, if the `<iframe>` is sandboxed, the embedding website needs to add the `allow-storage-access-by-user-activation` [sandbox token](/en-US/docs/Web/HTML/Element/iframe#sandbox) to allow storage access requests to be successful, along with `allow-scripts` and `allow-same-origin` to allow it to call the API, and execute in an origin that can have cookies:
2020

2121
```html
2222
<iframe

files/en-us/web/api/taskattributiontiming/containername/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ attribute. A container is the iframe, embed or object etc. that is being implica
1414

1515
## Value
1616

17-
A string containing the container's `name` HTML content attribute (e.g. [`<iframe name="myIframe"`](/en-US/docs/Web/HTML/Element/iframe#attr-name) or [`<object name="myObject"`](/en-US/docs/Web/HTML/Element/object#attr-name)).
17+
A string containing the container's `name` HTML content attribute (e.g. [`<iframe name="myIframe"`](/en-US/docs/Web/HTML/Element/iframe#name) or [`<object name="myObject"`](/en-US/docs/Web/HTML/Element/object#attr-name)).
1818

1919
## Specifications
2020

files/en-us/web/api/taskattributiontiming/containersrc/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ attribute. A container is the iframe, embed or object etc. that is being implica
1414

1515
## Value
1616

17-
A string containing the container's `src` attribute (e.g. [`<iframe src="url.html"`](/en-US/docs/Web/HTML/Element/iframe#attr-src)).
17+
A string containing the container's `src` attribute (e.g. [`<iframe src="url.html"`](/en-US/docs/Web/HTML/Element/iframe#src)).
1818

1919
## Specifications
2020

files/en-us/web/css/-moz-force-broken-image-icon/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The **`-moz-force-broken-image-icon`** extended CSS property can be used to forc
1717
### Values
1818

1919
- {{cssxref("&lt;integer&gt;")}}
20-
- : A value of `1` means that the broken image icon is shown even if the image has an [`alt`](/en-US/docs/Web/HTML/Element/img#attr-alt) attribute. When the value `0` is used, the image will act as usual and only display the `alt` attribute.
20+
- : A value of `1` means that the broken image icon is shown even if the image has an [`alt`](/en-US/docs/Web/HTML/Element/img#alt) attribute. When the value `0` is used, the image will act as usual and only display the `alt` attribute.
2121

2222
> **Note:** Even if the value is set to `1` the `alt` attribute will still be displayed, alongside the broken image icon.
2323

files/en-us/web/html/attributes/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Elements in HTML have **attributes**; these are additional values that configure
8383
</tr>
8484
<tr>
8585
<td>
86-
<code><a href="/en-US/docs/Web/HTML/Element/iframe#attr-allow">allow</a></code>
86+
<code><a href="/en-US/docs/Web/HTML/Element/iframe#allow">allow</a></code>
8787
</td>
8888
<td>{{ HTMLElement("iframe") }}</td>
8989
<td>Specifies a feature-policy for the iframe.</td>
@@ -431,7 +431,7 @@ Elements in HTML have **attributes**; these are additional values that configure
431431
</tr>
432432
<tr>
433433
<td>
434-
<code><a href="/en-US/docs/Web/HTML/Element/img#attr-decoding">decoding</a></code>
434+
<code><a href="/en-US/docs/Web/HTML/Element/img#decoding">decoding</a></code>
435435
</td>
436436
<td>{{ HTMLElement("img") }}</td>
437437
<td>Indicates the preferred method to decode the image.</td>
@@ -758,7 +758,7 @@ Elements in HTML have **attributes**; these are additional values that configure
758758
</tr>
759759
<tr>
760760
<td>
761-
<a href="/en-US/docs/Web/HTML/Element/img#attr-intrinsicsize"><code>intrinsicsize</code></a>
761+
<a href="/en-US/docs/Web/HTML/Element/img#intrinsicsize"><code>intrinsicsize</code></a>
762762
{{deprecated_inline}}
763763
</td>
764764
<td>{{ HTMLElement("img") }}</td>
@@ -785,7 +785,7 @@ Elements in HTML have **attributes**; these are additional values that configure
785785
</tr>
786786
<tr>
787787
<td>
788-
<code><a href="/en-US/docs/Web/HTML/Element/img#attr-ismap">ismap</a></code>
788+
<code><a href="/en-US/docs/Web/HTML/Element/img#ismap">ismap</a></code>
789789
</td>
790790
<td>{{ HTMLElement("img") }}</td>
791791
<td>Indicates that the image is part of a server-side image map.</td>
@@ -1183,7 +1183,7 @@ Elements in HTML have **attributes**; these are additional values that configure
11831183
</tr>
11841184
<tr>
11851185
<td>
1186-
<code><a href="/en-US/docs/Web/HTML/Element/iframe#attr-sandbox">sandbox</a></code>
1186+
<code><a href="/en-US/docs/Web/HTML/Element/iframe#sandbox">sandbox</a></code>
11871187
</td>
11881188
<td>{{ HTMLElement("iframe") }}</td>
11891189
<td>
@@ -1293,7 +1293,7 @@ Elements in HTML have **attributes**; these are additional values that configure
12931293
</tr>
12941294
<tr>
12951295
<td>
1296-
<code><a href="/en-US/docs/Web/HTML/Element/iframe#attr-srcdoc">srcdoc</a></code>
1296+
<code><a href="/en-US/docs/Web/HTML/Element/iframe#srcdoc">srcdoc</a></code>
12971297
</td>
12981298
<td>{{ HTMLElement("iframe") }}</td>
12991299
<td></td>

files/en-us/web/html/element/body/index.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -92,70 +92,70 @@ The **`<body>`** [HTML](/en-US/docs/Web/HTML) element represents the content of
9292

9393
This element includes the [global attributes](/en-US/docs/Web/HTML/Global_attributes).
9494

95-
- {{htmlattrdef("alink")}} {{deprecated_inline}}
95+
- `alink` {{deprecated_inline}}
9696
- : Color of text for hyperlinks when selected.
9797
**Do not use this attribute! Use the CSS {{cssxref("color")}} property in conjunction with the {{cssxref(":active")}} pseudo-class instead.**
98-
- {{htmlattrdef("background")}} {{deprecated_inline}}
98+
- `background` {{deprecated_inline}}
9999
- : URI of an image to use as a background.
100100
**Do not use this attribute! Use the CSS {{cssxref("background")}} property on the element instead.**
101-
- {{htmlattrdef("bgcolor")}} {{deprecated_inline}}
101+
- `bgcolor` {{deprecated_inline}}
102102
- : Background color for the document.
103103
**Do not use this attribute! Use the CSS {{cssxref("background-color")}} property on the element instead.**
104-
- {{htmlattrdef("bottommargin")}} {{deprecated_inline}}
104+
- `bottommargin` {{deprecated_inline}}
105105
- : The margin of the bottom of the body.
106106
**Do not use this attribute! Use the CSS {{cssxref("margin-bottom")}} property on the element instead.**
107-
- {{htmlattrdef("leftmargin")}} {{deprecated_inline}}
107+
- `leftmargin` {{deprecated_inline}}
108108
- : The margin of the left of the body.
109109
**Do not use this attribute! Use the CSS {{cssxref("margin-left")}} property on the element instead.**
110-
- {{htmlattrdef("link")}} {{deprecated_inline}}
110+
- `link` {{deprecated_inline}}
111111
- : Color of text for unvisited hypertext links.
112112
**Do not use this attribute! Use the CSS {{cssxref("color")}} property in conjunction with the {{cssxref(":link")}} pseudo-class instead.**
113-
- {{htmlattrdef("onafterprint")}}
113+
- `onafterprint`
114114
- : Function to call after the user has printed the document.
115-
- {{htmlattrdef("onbeforeprint")}}
115+
- `onbeforeprint`
116116
- : Function to call when the user requests printing of the document.
117-
- {{htmlattrdef("onbeforeunload")}}
117+
- `onbeforeunload`
118118
- : Function to call when the document is about to be unloaded.
119-
- {{htmlattrdef("onblur")}}
119+
- `onblur`
120120
- : Function to call when the document loses focus.
121-
- {{htmlattrdef("onerror")}}
121+
- `onerror`
122122
- : Function to call when the document fails to load properly.
123-
- {{htmlattrdef("onfocus")}}
123+
- `onfocus`
124124
- : Function to call when the document receives focus.
125-
- {{htmlattrdef("onhashchange")}}
125+
- `onhashchange`
126126
- : Function to call when the fragment identifier part (starting with the hash (`'#'`) character) of the document's current address has changed.
127-
- {{htmlattrdef("onlanguagechange")}}
127+
- `onlanguagechange`
128128
- : Function to call when the preferred languages changed.
129-
- {{htmlattrdef("onload")}}
129+
- `onload`
130130
- : Function to call when the document has finished loading.
131-
- {{htmlattrdef("onmessage")}}
131+
- `onmessage`
132132
- : Function to call when the document has received a message.
133-
- {{htmlattrdef("onoffline")}}
133+
- `onoffline`
134134
- : Function to call when network communication has failed.
135-
- {{htmlattrdef("ononline")}}
135+
- `ononline`
136136
- : Function to call when network communication has been restored.
137-
- {{htmlattrdef("onpopstate")}}
137+
- `onpopstate`
138138
- : Function to call when the user has navigated session history.
139-
- {{htmlattrdef("onredo")}}
139+
- `onredo`
140140
- : Function to call when the user has moved forward in undo transaction history.
141-
- {{htmlattrdef("onresize")}}
141+
- `onresize`
142142
- : Function to call when the document has been resized.
143-
- {{htmlattrdef("onstorage")}}
143+
- `onstorage`
144144
- : Function to call when the storage area has changed.
145-
- {{htmlattrdef("onundo")}}
145+
- `onundo`
146146
- : Function to call when the user has moved backward in undo transaction history.
147-
- {{htmlattrdef("onunload")}}
147+
- `onunload`
148148
- : Function to call when the document is going away.
149-
- {{htmlattrdef("rightmargin")}} {{deprecated_inline}}
149+
- `rightmargin` {{deprecated_inline}}
150150
- : The margin of the right of the body.
151151
**Do not use this attribute! Use the CSS {{cssxref("margin-right")}} property on the element instead.**
152-
- {{htmlattrdef("text")}} {{deprecated_inline}}
152+
- `text` {{deprecated_inline}}
153153
- : Foreground color of text.
154154
**Do not use this attribute! Use CSS {{cssxref("color")}} property on the element instead.**
155-
- {{htmlattrdef("topmargin")}} {{deprecated_inline}}
155+
- `topmargin` {{deprecated_inline}}
156156
- : The margin of the top of the body.
157157
**Do not use this attribute! Use the CSS {{cssxref("margin-top")}} property on the element instead.**
158-
- {{htmlattrdef("vlink")}} {{deprecated_inline}}
158+
- `vlink` {{deprecated_inline}}
159159
- : Color of text for visited hypertext links.
160160
**Do not use this attribute! Use the CSS {{cssxref("color")}} property in conjunction with the {{cssxref(":visited")}} pseudo-class instead.**
161161

0 commit comments

Comments
 (0)