Skip to content

Commit

Permalink
fix: MD012 multiple blank lines (#12181)
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Jan 19, 2022
1 parent 66576e8 commit e752a8f
Show file tree
Hide file tree
Showing 340 changed files with 0 additions and 613 deletions.
1 change: 0 additions & 1 deletion files/en-us/glossary/advance_measure/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ For a horizontal inline axis, this will be the width of the character.
## See also

- {{cssxref("<length>")}}

5 changes: 0 additions & 5 deletions files/en-us/glossary/hoisting/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Note that doing so can lead to unexpected errors, and is not generally recommend
> **Note:** The term hoisting is not used in any normative specification prose prior to [ECMAScript® 2015 Language Specification](https://www.ecma-international.org/ecma-262/6.0/index.html).
> Hoisting was thought up as a general way of thinking about how execution contexts (specifically the creation and execution phases) work in JavaScript.

## Function hoisting

One of the advantages of hoisting is that it lets you use a function before you declare it in your code.
Expand Down Expand Up @@ -45,7 +44,6 @@ The result of the code above is the same: "My cat's name is Tiger"
*/
```


## Variable hoisting

Hoisting works with variables too, so you can use a variable in code before it is declared and/or initialized.
Expand Down Expand Up @@ -112,13 +110,11 @@ The code will succeed provided the line that initializes the variable is execute

For information and examples see [`let` > temporal dead zone](/en-US/docs/Web/JavaScript/Reference/Statements/let#temporal_dead_zone_tdz).


## `class` hoisting

Classes defined using a [class declaration](/en-US/docs/Web/JavaScript/Reference/Classes#class_declarations) are hoisted, which means that JavaScript has a reference to the class.
However the class is not initialized by default, so any code that uses it before the line in which it is initialized is executed will throw a `ReferenceError`.


## Function and class expression hoisting

[Function expressions](/en-US/docs/Web/JavaScript/Reference/Operators/function) and [class expressions](/en-US/docs/Web/JavaScript/Reference/Classes#class_expressions) are not hoisted.
Expand All @@ -127,7 +123,6 @@ The expressions evaluate to a function or class (respectively), which are typica
In this case the variable declaration is hoisted and the expression is its initialization.
Therefore the expressions are not evaluated until the relevant line is executed.


## See also

- [`var` statement](/en-US/docs/Web/JavaScript/Reference/Statements/var) — MDN
Expand Down
1 change: 0 additions & 1 deletion files/en-us/glossary/parameter/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const argument = 'foo';
example(argument);
```


Note the difference between _parameters_ and _arguments_:

- Function parameters are the names listed in the function's definition.
Expand Down
2 changes: 0 additions & 2 deletions files/en-us/glossary/transferable_objects/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ console.log(uInt8Array.byteLength); // 0
> However their underlying buffer is an {{jsxref("ArrayBuffer")}}, which is a transferable object.
> We could have sent `uInt8Array.buffer` in the data parameter, but not `uInt8Array` in the transfer array.

### Transferring during a cloning operation

The code below shows a {{domxref("structuredClone()")}} operation where the underlying buffer is copied from the original object to the clone.
Expand Down Expand Up @@ -87,7 +86,6 @@ The items that can be _transferred_ are:
- {{domxref("VideoFrame")}}
- {{domxref("OffscreenCanvas")}}


> **Note:** Transferrable objects are marked up in [Web IDL files](https://github.com/w3c/webref/tree/main/ed/idl) with the attribute `Transferrable`.
## See also
Expand Down
2 changes: 0 additions & 2 deletions files/en-us/glossary/transient_activation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,3 @@ Examples of APIs that require _transient activation_ are:

- {{domxref("MediaDevices.selectAudioOutput()")}}
- [HTML Living Standard > Transient activation](https://html.spec.whatwg.org/multipage/interaction.html#transient-activation)


Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,6 @@ The output is as follows:

> **Note:** for the full source code, see [preventdefault-validation.html](https://github.com/mdn/learning-area/blob/master/javascript/building-blocks/events/preventdefault-validation.html) (also see it [running live](https://mdn.github.io/learning-area/javascript/building-blocks/events/preventdefault-validation.html) here.)

## Event bubbling and capture

Event bubbling and capture are terms that describe phases in how the browser handles events targeted at nested elements.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ button {

Here's the JavaScript code that implements this example:


```js
const btn = document.querySelector('button');
const canvas = document.querySelector('canvas');
Expand Down Expand Up @@ -932,7 +931,6 @@ for (const item of array) {
}
```


`for`:

```
Expand Down
2 changes: 0 additions & 2 deletions files/en-us/learn/performance/video/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ Offering more modest bandwidth savings, setting `preload="metadata"` may downloa

Changing the setting to `auto` tells the browser to automatically download the entire video. Do this only when playback is very likely. Otherwise, it wastes a lot of bandwidth.



### Consider streaming

[Video streaming allows the proper video size and bandwidth](https://www.smashingmagazine.com/2018/10/video-playback-on-the-web-part-2/) (based on network speed) to be delivered to the end user. Similar to responsive images, the correct size video is delivered to the browser, ensuring fast video startup, low buffering, and optimized playback.
Expand Down
3 changes: 0 additions & 3 deletions files/en-us/learn/server-side/django/generic_views/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,9 @@ You might also use the `{% empty %}` template tag to define what happens if the
</ul>
```


While not used here, within the loop Django will also create other variables that you can use to track the iteration.
For example, you can test the `forloop.last` variable to perform conditional processing the last time that the loop is run.



#### Accessing variables

The code inside the loop creates a list item for each book that shows both the title (as a link to the yet-to-be-created detail view) and the author.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ And/or include a list of links to useful code samples that live elsewhere:

{{Compat("path.to.feature.Interface_1")}}


{{Compat("path.to.feature.Interface_2")}}

## See also
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ browser-compat: css.selectors.NameOfTheSelector
>
> _Remember to remove this whole explanatory note before publishing_

{{CSSRef}}{{SeeCompatTable}}{{Deprecated_Header}}

The summary paragraph — start by naming the selector and saying what it does. This should ideally be 1 or 2 short sentences.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ tags:
> ---
> _Remember to remove this whole explanatory note before publishing_

The **TermBeingDefined** is ... (include concise definition of the term being defined).

Include further supporting information as required, but not much — no more than 2 more small paragraphs. Any further detailed information, code examples, tutorials, etc. should go in separate articles.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ browser-compat: path.to.feature.NameOfTheHeader
>
> _Remember to remove this whole explanatory note before publishing_

{{SeeCompatTable}}{{deprecated_header}}{{httpsidebar}}

The summary paragraph — start by naming the http header and saying what it does.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ Now:
- visit "`about:addons`" to open the settings and click the Preferences button next to the extension's entry and change the border color.
- reload the web page to see the difference.


## Learn more

- [`options_ui`](/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/options_ui) key of `manifest.json` reference documentation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,4 +399,3 @@ Then, for each locale supported in the extension you want to test, follow the in
Once Firefox is running in your test language, [install the extension temporarily](https://extensionworkshop.com/documentation/develop/temporary-installation-in-firefox). After installing your extension, in `about:debugging`, if you've set up your extension correctly, you see the extension listed with its icon, name, and description in the chosen language. You can also see the localized extension details in `about:addons`. Now exercise the extension's features to ensure the translations you need are in place.

If you'd like to try this process out, you can use the [notify-link-clicks-i18n](https://github.com/mdn/webextensions-examples/tree/master/notify-link-clicks-i18n) extension. Set up Firefox to display one of the languages supported in this example (German, Dutch, or Japanese). Load the extension and go to a website. Click a link to see the translated version of the notification reporting the link's URL.

Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ browser-compat: webextensions.manifest.chrome_settings_overrides

Use the `chrome_settings_overrides` key to override the browser's home page and add a new search engine.


## Syntax

The `chrome_settings_overrides` key is an object that may have the following properties:
Expand Down Expand Up @@ -173,7 +172,6 @@ The `chrome_settings_overrides` key is an object that may have the following pro

This example shows how to set a search provider.


```json
"chrome_settings_overrides": {
"search_provider": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ Keep the rest of the policy, but also require that images should be packaged wit
"content_security_policy": "script-src 'self'; object-src 'self'; img-src 'self'"
```


### Invalid examples

Policy that omits the `"object-src"` directive:
Expand Down
5 changes: 0 additions & 5 deletions files/en-us/mozilla/firefox/experimental_features/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ The current implementation is a little inelegant but is basically functional. (S
</tbody>
</table>


### inert attribute

The {{domxref("HTMLElement")}} property {{DOMxRef("HTMLElement.inert")}} is a {{jsxref("Boolean")}}, when present, may make the browser "ignore" the element from assistive technologies, page search and text selection. For more details on the status of this feature see {{bug(1655722)}}.
Expand Down Expand Up @@ -553,7 +552,6 @@ The [`@layer`](en-US/docs/Web/CSS/@layer) rule declares a cascade layer, which a
</tbody>
</table>


### Property: hyphenate-character

The {{cssxref("hyphenate-character")}} property can be used to set a string that is used instead of a hyphen character (`-`) at the end of a hyphenation line break.
Expand Down Expand Up @@ -596,7 +594,6 @@ It can also be used to specify that the character is selected to be appropriate
</tbody>
</table>


## SVG

### SVGPathSeg APIs
Expand Down Expand Up @@ -1355,7 +1352,6 @@ See these bugs for details: {{bug(1556362)}}, {{bug(1556373)}}, {{bug(1556365)}}
</tbody>
</table>


### Payment Request API

#### Primary payment handling
Expand Down Expand Up @@ -1708,7 +1704,6 @@ This also changes the console warning; if the upgrade succeeds, the message indi
</tbody>
</table>


### Clear-Site-Data "cache" directive

The [`Clear-Site-Data`](/en-US/docs/Web/HTTP/Headers/Clear-Site-Data) HTTP response header `cache` directive clears the browser cache for the requesting website.
Expand Down
1 change: 0 additions & 1 deletion files/en-us/mozilla/firefox/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ Learn how to create add-ons for [Firefox](https://www.mozilla.org/firefox/), how
- Developer release notes
- : [Developer-focused release notes](/en-US/docs/Mozilla/Firefox/Releases); learn what new capabilities for both Web sites and add-ons arrive in each version of Firefox.


## Firefox channels

Firefox is available in five **channels**.
Expand Down
1 change: 0 additions & 1 deletion files/en-us/mozilla/firefox/releases/95/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ No notable changes

- {{domxref("SpeechSynthesisEvent.elapsedTime")}} now returns the elapsed time in seconds rather than milliseconds, matching an update to the specification (see {{bug(1732498)}}).


### WebDriver conformance (Marionette)

- The `port` used by Marionette is now written to the `MarionetteActivePort` file in the profile directory. This can be used to easily retrieve the `port`, which before was only possible by parsing the `prefs.js` file of the profile. ({{bug(1735162)}}).
Expand Down
3 changes: 0 additions & 3 deletions files/en-us/mozilla/firefox/releases/96/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,12 @@ No notable changes.
({{bug(1666203)}}).
- The [Web Locks API](/en-US/docs/Web/API/Web_Locks_API) is enabled by default, allowing web apps running in multiple tabs or workers to coordinate the use of resources. ({{bug(1740044)}}).


#### Canvas

- Image encoder support has been added for the [WebP](/en-US/docs/Web/Media/Formats/Image_types#webp_image) image format.
This allows canvas elements to export their content as webp data when using the methods: {{domxref("HTMLCanvasElement.toDataURL()")}}, {{domxref("HTMLCanvasElement.toBlob()")}}, and {{domxref("OffscreenCanvas.convertToBlob", "OffscreenCanvas.toBlob")}}.
({{bug(1511670)}}).


#### DOM

- The {{domxref("IntersectionObserver.IntersectionObserver()","IntersectionObserver()")}} constructor now sets the default `rootMargin` if an empty string is passed in the associated parameter option, instead of throwing an exception ({{bug(1738791)}}).
Expand All @@ -70,7 +68,6 @@ No notable changes.

## Changes for add-on developers


## Older versions

{{Firefox_for_developers(95)}}
1 change: 0 additions & 1 deletion files/en-us/mozilla/firefox/releases/98/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ This article provides information about the changes in Firefox 98 that will affe

## Changes for add-on developers


#### Removals

### Other
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ CSS Transition events are supported. Examples include:
- `transitionend`
- `transitioncancel`


### Safari 10.1 and above (Desktop)

Do not enable Auto-Play (does not work for gifs)
Expand Down Expand Up @@ -94,7 +93,6 @@ Most Operating Systems have a way to let the user make an adjustment on the work
- [Color vision simulation](/en-US/docs/Tools/Accessibility_inspector/Simulation)
- Discussion: "[What is the “grayscale” setting for in accessibility options?](https://ask.metafilter.com/312049/What-is-the-grayscale-setting-for-in-accessibility-options)"


### Contributors

Many, many thanks to Eric Eggert from [Knowbility;](https://knowbility.org/) for his discussions and huge help on this topic.
4 changes: 0 additions & 4 deletions files/en-us/web/accessibility/aria/aria_techniques/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ The techniques below describe each composite role as well as their required and
- [`alertdialog`](/en-US/docs/Web/Accessibility/ARIA/Roles/alertdialog_role)
- [`dialog`](/en-US/docs/Web/Accessibility/ARIA/Roles/dialog_role)



## States and properties

### Widget attributes
Expand Down Expand Up @@ -134,15 +132,13 @@ The techniques below describe each composite role as well as their required and
- [`aria-valuenow`](/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-valuenow)
- [`aria-valuetext`](/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-valuetext)


### Live region attributes

- [`aria-live`](/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-live)
- [`aria-relevant`](/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-relevant)
- [`aria-atomic`](/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-atomic)
- [`aria-busy`](/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-busy)


### Drag &amp; drop attributes

- [`aria-dropeffect`](/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-dropeffect) {{deprecated_inline}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,3 @@ myHTMLElement.ariaChecked = true;
{{ListSubpagesForSidebar("/en-US/docs/Web/Accessibility/ARIA/Attributes")}}

</section>

Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ The first rule of ARIA use is "if you can use a native feature with the semantic
</table>
```



## Values

- `<integer>`
Expand All @@ -91,7 +89,6 @@ Inherits into roles:
| ------------- | ------ |
| {{SpecName("ARIA","#aria-colcount","ARIA: aria-colcount Attribute")}} | {{Spec2('ARIA')}} |


## See Also

- [`aria-colindex`](/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-colindex)
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ A parent row is a row that can be expanded or collapsed to show or hide a set of
- `undefined` (default)
- : The element does not own or control a grouping element that is expandable.


## ARIAMixin API

- {{domxref("Element.ariaExpanded")}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,3 @@ Used in **ALL** roles.
<strong><a href="/en-US/docs/Web/Accessibility/ARIA/Attributes">WAI-ARIA states and properties</a></strong>
{{ListSubpagesForSidebar("/en-US/docs/Web/Accessibility/aria/Attributes")}}
</section>

Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ In this example, the accessible name is "read more 13 ARIA attributes you need t

4. The `aria-labelledby` property ignores repeated `id`s in its value. If an element is referenced more than one time, only the first reference is processed. `aria-labelledby="attr attr rm13 rm13">` is treated as `aria-labelledby="attr rm13">`


5. The `aria-labelledby` property value can include content from elements that aren't even visible. While you should provide assistive technology users with the same content and all other users, you can include content from elements with the HTML {{htmlattrxref('hidden')}} attribute, CSS [`display: none`](/en-US/docs/Web/CSS/display), and CSS [`visibility: hidden`](/en-US/docs/Web/CSS/visibility) in the calculated name string.

6. The `aria-labelledby` property incorporates the value of input elements. If the value references an `<input>`, the current value of the form control is included in the calculated name string, changing if the value is updated.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,3 @@ Used in roles:
<strong><a href="/en-US/docs/Web/Accessibility/ARIA/Attributes">WAI-ARIA states and properties</a></strong>
{{ListSubpagesForSidebar("/en-US/docs/Web/Accessibility/aria/Attributes")}}
</section>

Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,3 @@ Inherited into roles:
<strong><a href="/en-US/docs/Web/Accessibility/ARIA/Attributes">WAI-ARIA states and properties</a></strong>
{{ListSubpagesForSidebar("/en-US/docs/Web/Accessibility/aria/Attributes")}}
</section>

Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,3 @@ Supported by all roles and by all base markup elements except for `role="generic
<strong><a href="/en-US/docs/Web/Accessibility/ARIA/Attributes">WAI-ARIA states and properties</a></strong>
{{ListSubpagesForSidebar("/en-US/docs/Web/Accessibility/aria/Attributes")}}
</section>

Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ Inherited into roles:
- [`gridcell`](/en-US/docs/Web/Accessibility/ARIA/Roles/gridcell_role)
- [`rowheader`](/en-US/docs/Web/Accessibility/ARIA/Roles/rowheader_role)


## Specifications

| Specification | Status |
Expand All @@ -112,4 +111,3 @@ Inherited into roles:
<strong><a href="/en-US/docs/Web/Accessibility/ARIA/Attributes">WAI-ARIA states and properties</a></strong>
{{ListSubpagesForSidebar("/en-US/docs/Web/Accessibility/aria/Attributes")}}
</section>

Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ Inherited into roles:
- [`columnheader`](/en-US/docs/Web/Accessibility/ARIA/Roles/columnheader_role)
- [`rowheader`](/en-US/docs/Web/Accessibility/ARIA/Roles/rowheader_role)


## Specifications

| Specification | Status |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,3 @@ Inherited into roles:
<strong><a href="/en-US/docs/Web/Accessibility/ARIA/Attributes">WAI-ARIA states and properties</a></strong>
{{ListSubpagesForSidebar("/en-US/docs/Web/Accessibility/aria/Attributes")}}
</section>

Loading

0 comments on commit e752a8f

Please sign in to comment.