Skip to content

Commit 231152e

Browse files
mdn-botJosh-Cena
andauthored
fix: auto-cleanup by bot (mdn#41516)
* chore: auto-fix Markdownlint, Prettier, and front-matter issues * More fixes * More * Update files/en-us/glossary/origin/index.md --------- Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
1 parent 2c538b4 commit 231152e

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

files/en-us/glossary/origin/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Common cases where opaque origins are used include:
2121

2222
- A document within an iframe that has the [sandbox](/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/sandbox) attribute set, and does not include the `allow-same-origin` flag.
2323
- `file:` URLs are usually treated as opaque origins so that files on they file system cannot read each other.
24-
- Documents created programatically using APIs like https://developer.mozilla.org/en-US/docs/Web/API/ {{domxref("DOMImplementation.createDocument()")}}.
24+
- Documents created programatically using APIs like {{domxref("DOMImplementation.createDocument()")}}.
2525

2626
## Examples
2727

files/en-us/learn_web_development/core/styling_basics/getting_started/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,8 +583,8 @@ In the example below, each declaration (and rule start/end) has its own line. Th
583583
```css
584584
body {
585585
font:
586-
1em/150% Helvetica,
587-
Arial,
586+
1em/150% "Helvetica",
587+
"Arial",
588588
sans-serif;
589589
padding: 1em;
590590
margin: 0 auto;

files/en-us/learn_web_development/getting_started/your_first_website/adding_interactivity/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Try clicking the list items a few times and note how the "done" styles are toggl
9292
To start you off with writing some JavaScript, we'll walk you through adding a _Hello world!_ example to your sample website. ([_Hello world!_](https://en.wikipedia.org/wiki/%22Hello,_World!%22_program) is the standard introductory programming example.)
9393

9494
> [!WARNING]
95-
> If you haven't been following along with the rest of our course, [download this example code](https://codeload.github.com/mdn/beginner-html-site-styled/zip/refs/heads/gh-pages) and use it as a starting point.
95+
> If you haven't been following along with the rest of our course, [download this example code](https://github.com/mdn/beginner-html-site-styled/archive/refs/heads/main.zip) and use it as a starting point.
9696
9797
1. Inside your `first-website` folder or the example folder you have just downloaded, create a new folder named `scripts`.
9898
2. Within the `scripts` folder, create a new text document called `main.js`, and save it.

files/en-us/learn_web_development/getting_started/your_first_website/styling_the_content/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ If you followed all the instructions in this article, you should have a page tha
308308

309309
![A Mozilla logo, centered, and a header and paragraphs. It now looks nicely styled, with a blue background for the whole page and orange background for the centered main content strip.](website-screenshot-final.png)
310310

311-
You can [view our version here](https://mdn.github.io/beginner-html-site-styled/). If you get stuck, you can always compare your work with our [finished example code on GitHub](https://github.com/mdn/beginner-html-site-styled/blob/gh-pages/styles/style.css).
311+
You can [view our version here](https://mdn.github.io/beginner-html-site-styled/). If you get stuck, you can always compare your work with our [finished example code on GitHub](https://github.com/mdn/beginner-html-site-styled/blob/main/styles/style.css).
312312

313313
In this article, we've only scratched the surface of CSS. You'll learn a lot more in our [CSS styling basics](/en-US/docs/Learn_web_development/Core/Styling_basics) Core module later in the course.
314314

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ _This interface inherits the methods of its parent, {{domxref("CSSStyleDeclarati
2727
## Description
2828

2929
An object of this type has dash-named properties for **all** [CSS properties](/en-US/docs/Web/CSS/Properties) supported by the browser, including both [shorthand](/en-US/docs/Web/CSS/CSS_cascade/Shorthand_properties) and longhand properties, and those with `-moz` and `-webkit` prefixes.
30-
These can accessed using methods inherited from the {{DOMxRef("CSSStyleProperties")}} base class, such as {{DOMxRef("CSSStyleDeclaration/getPropertyPriority", "getPropertyValue()")}} and {{DOMxRef("CSSStyleDeclaration/getPropertyPriority", "setPropertyValue()")}}.
30+
These can accessed using methods inherited from the {{DOMxRef("CSSStyleDeclaration")}} base class, such as {{DOMxRef("CSSStyleDeclaration/getPropertyPriority", "getPropertyValue()")}} and {{DOMxRef("CSSStyleDeclaration/getPropertyPriority", "setPropertyValue()")}}.
3131

3232
In addition, each dash-cased property has a corresponding {{glossary("camel case")}}-named property, where the name is generated by removing the dashes and capitalizing each word after the first one.
3333
This allows you to, for example, access the `margin-top` CSS property using the syntax `style.marginTop` (where `style` is a `CSSStyleProperties`), instead of the more cumbersome `style.getPropertyValue("margin-top")` or `style["margin-top"]`.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ _Inherits methods from its ancestors {{domxref("CSSGroupingRule")}} and {{domxre
3030

3131
### Getting a style rule
3232

33-
The CSS below defines the style rule for the `h1` selector, which is represented in code by a {{domxref("CSSStyleRule")}} instance.
33+
The CSS below defines the style rule for the `h1` selector, which is represented in code by a `CSSStyleRule` instance.
3434

3535
```css
3636
h1 {

files/en-us/web/api/cssstylerule/style/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ A {{domxref("CSSStyleProperties")}}.
2626
### Getting the styles for a style rule
2727

2828
The CSS below defines the style rule for the `h1` selector, which is represented in code by a {{domxref("CSSStyleRule")}} instance.
29-
The declaration block is that part of the style rule that appears within the braces and that actually provides the style definitions (for the selector, the part that comes before the braces), which is represented in code by the {{domxref("CSSStyleRule.style")}} property.
29+
The declaration block is that part of the style rule that appears within the braces and that actually provides the style definitions (for the selector, the part that comes before the braces), which is represented in code by the `style` property.
3030

3131
```css
3232
h1 {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ alert(paragraphs[0].nodeName);
3434
All of the properties, methods, and events available for manipulating and creating web pages are organized into objects. For example, the `document` object that represents the document itself, any `table` objects that implement the {{domxref("HTMLTableElement")}} DOM interface for accessing HTML tables, and so forth, are all objects.
3535

3636
The DOM is built using multiple APIs that work together.
37-
The core [DOM](/en-US/docs/Web/API/Document_Object_Model) defines the entities
37+
The core DOM defines the entities
3838
describing any document and the objects within it.
3939
This is expanded upon as needed by other APIs that add new features and capabilities to the DOM.
4040
For example, the [HTML DOM API](/en-US/docs/Web/API/HTML_DOM_API) adds support for representing HTML documents to the core DOM,

files/en-us/web/api/domparser/parsefromstring/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ console.log(doc2.contentType); // "image/svg+xml"
150150

151151
const htmlString = "<strong>Beware of the leopard</strong>";
152152
const doc3 = parser.parseFromString(htmlString, "text/html");
153-
console.log(doc\32.contentType); // "text/html"
153+
console.log(doc3.contentType); // "text/html"
154154

155155
console.log(doc1.documentElement.textContent);
156156
// "Beware of the tiger"

files/en-us/web/css/css_positioned_layout/stacking_context/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Every container element has an {{cssxref("opacity")}} of less than `1` and a {{c
113113
html {
114114
padding: 20px;
115115
font:
116-
12px/20px Arial,
116+
12px/20px "Arial",
117117
sans-serif;
118118
}
119119
h1 {

0 commit comments

Comments
 (0)