Skip to content

Commit

Permalink
Set code languages for various files (part 4) (#28160)
Browse files Browse the repository at this point in the history
  • Loading branch information
queengooborg authored Jul 24, 2023
1 parent 5fe8495 commit 4a6dacf
Show file tree
Hide file tree
Showing 57 changed files with 68 additions and 69 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ page-type: guide

Firefox:

```
```plain
CookieBlockedForeign=Request to access cookies or storage on "X" was blocked because we are blocking all third-party storage access requests and content blocking is enabled.
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ page-type: guide

Firefox:

```
```plain
CookieBlockedTracker=Request to access cookies or storage on "X" was blocked because it came from a tracker and content blocking is enabled.
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ page-type: guide

Firefox:

```
```plain
CookiePartitionedForeign=Partitioned cookie
or storage access was provided to "<URL>" because it is loaded in the
third-party context and storage partitioning is enabled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,10 @@ You can choose a different port number. Entering `npx http-server /user/yourName

This non-configurable static HTTP server suffices for our basic app. Apps served via `localhost` and `127.0.0.1` are exempt from https and always considered secure. Browser insecure warnings, if given, can be bypassed. While not necessary, to configurable your local web server to be served over HTTPs, you can [add a built-in SSL certificate](https://github.com/lwsjs/local-web-server/wiki/How-to-get-the-%22green-padlock%22-using-the-built-in-certificate). With the certificate, you will be able to install and run [local-web-server](<https://github.com/lwsjs/local-web-server/wiki/How-to-launch-a-secure-local-web-server-(HTTPS)>) from the command line to serve your project locally over `https`, preventing any security warning.

```
$ npm install -g local-web-server
$ cd ~/user/yourName/CycleTracker/
$ ws --https
Listening on https://YourComputerName.local:8000, https://127.0.0.1:8000, https://192.168.1.7:8000
```bash
npm install -g local-web-server
cd ~/user/yourName/CycleTracker/
ws --https
```

In the above, you may need to prefix the install with `sudo`.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/security/subresource_integrity/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ An `integrity` value begins with at least one string, with each string including
Example `integrity` string with base64-encoded sha384 hash:

```
```plain
sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/svg/attribute/preserveaspectratio/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ rect:active {
## Syntax
```
```plain
preserveAspectRatio="<align> [<meetOrSlice>]"
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/svg/element/fecolormatrix/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The **`<feColorMatrix>`** SVG filter element changes colors based on a transform

In simplified terms, below is how each color channel in the new pixel is calculated. The last row is ignored because its values are constant.

```
```plain
R' = r1*R + r2*G + r3*B + r4*A + r5
G' = g1*R + g2*G + g3*B + g4*A + g5
B' = b1*R + b2*G + b3*B + b4*A + b5
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/text_fragments/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ If the ID is changed or removed, the document fragment is ignored, and the link

In a similar manner to document fragments, text fragments are appended onto a URL after a hash symbol (`#`). The syntax however is a bit different:

```
```url
https://example.com#:~:text=[prefix-,]textStart[,textEnd][,-suffix]
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ print(session.current_url)

Output:

```
```url
https://self-signed.badssl.com/
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ print(text_box.get_property("value"))

Output:

```
```plain
foo
bar
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ print(search_box.tag_name)

Output:

```
```plain
INPUT
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ except exceptions.InsecureCertificateException as e:

Output:

```
```plain
Hit an insecure cert on https://self-signed.badssl.com/
```

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/webdriver/errors/invalidcookiedomain/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ except exceptions.InvalidCookieDomainException as e:

Output:

```
```plain
InvalidCookieDomainException: https://example.org/
```

Expand All @@ -58,7 +58,7 @@ except exceptions.InvalidCookieDomainException as e:

Output:

```
```plain
InvalidCookieDomainException: Document is cookie-averse
```

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/webdriver/errors/invalidsessionid/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ except exceptions.InvalidSessionIdException as e:

Output:

```
```plain
Current session is 46197c16-8373-469b-bc56-4c4d9e4132b4
No active session with ID 46197c16-8373-469b-bc56-4c4d9e4132b4
```
Expand All @@ -57,7 +57,7 @@ except exceptions.InvalidSessionIdException as e:

Output:

```
```plain
Current session is 46197c16-8373-469b-bc56-4c4d9e4132b4
No active session with ID 46197c16-8373-469b-bc56-4c4d9e4132b4
```
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/webdriver/errors/javascripterror/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ except exceptions.JavascriptException as e:

Output:

```
```plain
JavascriptException: ReferenceError: foo is not defined
```

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/webdriver/errors/scripttimeout/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ except exceptions.ScriptTimeoutException as e:

Output:

```
```plain
ScriptTimeoutException: Timed out after 35000 ms
```

Expand All @@ -52,7 +52,7 @@ print("finished successfully")

Output:

```
```plain
finished successfully
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ except exceptions.StaleElementReferenceException as e:

Output:

```
```plain
StaleElementReferenceException: The element reference of e75a1764-ff73-40fa-93c1-08cb90394b65 is stale either the element is no longer attached to the DOM, it is not in the current frame context, or the document has been refreshed
```

Expand Down Expand Up @@ -74,7 +74,7 @@ except exceptions.StaleElementReferenceException as e:

Output:

```
```plain
StaleElementReferenceException: The element reference of e75a1764-ff73-40fa-93c1-08cb90394b65 is stale either the element is no longer attached to the DOM, it is not in the current frame context, or the document has been refreshed
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/webdriver/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ with webdriver.Firefox() as driver:

This might produce output akin to this:

```
```plain
#1 Cheese - Wikipedia (https://en.wikipedia.org/wiki/Cheese)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/xpath/functions/ceiling/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The `ceiling` function evaluates a decimal number and returns the smallest integ

### Syntax

```
```plain
ceiling( number )
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/xpath/functions/choose/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The `choose` function returns one of the specified objects based on a boolean pa
### Syntax

```
```plain
choose( boolean, object1, object2 )
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/xpath/functions/concat/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The `concat` function concatenates two or more strings and returns the resulting

### Syntax

```
```plain
concat( string1, string2 [,stringn]* )
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/xpath/functions/contains/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The `contains` function determines whether the first argument string contains th

### Syntax

```
```plain
contains(haystack, needle)
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/xpath/functions/count/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The `count` function counts the number of nodes in a node-set and returns an int

### Syntax

```
```plain
count( node-set )
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/xpath/functions/current/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The `current` function can be used to get the context node in an XSLT instructio

### Syntax

```
```plain
current()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/xpath/functions/document/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The `document` finds a node-set in an external document, or multiple external do

### Syntax

```
```plain
document( URI [,node-set] )
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/xpath/functions/false/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The `false` function returns boolean false.

### Syntax

```
```plain
false()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/xpath/functions/floor/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The `floor` function evaluates a decimal number and returns the largest integer

### Syntax

```
```plain
floor( number )
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/xpath/functions/format-number/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The `format-number` function evaluates a number and returns a string representin

### Syntax

```
```plain
format-number(number, pattern)
format-number(number, pattern, decimalFormat)
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The `function-available` function determines if a given function is available an

### Syntax

```
```plain
function-available( name )
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/xpath/functions/generate-id/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The `generate-id` function generates a unique id for the first node in a given n

### Syntax

```
```plain
generate-id( [node-set] )
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/xpath/functions/id/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The `id` function finds nodes matching the given ids and returns a node-set cont

### Syntax

```
```plain
id( expression )
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/xpath/functions/key/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The `key` function returns a node-set of nodes that have the given value for the

### Syntax

```
```plain
key( keyname, value )
```

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/xpath/functions/lang/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The `lang` function determines whether the context node matches the given langua

### Syntax

```
```plain
lang(string )
```

Expand Down Expand Up @@ -48,7 +48,7 @@ And this part of an XSL template:

The output might be:

```
```plain
3
1
1
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/xpath/functions/last/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The `last` function returns a number equal to the context size from the expressi

### Syntax

```
```plain
last()
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/xpath/functions/local-name/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The `local-name` function returns a string representing the local name of the fi

### Syntax

```
```plain
local-name( [node-set] )
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/xpath/functions/name/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The `name` function returns a string representing the QName of the first node in

### Syntax

```
```plain
name( [node-set] )
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/xpath/functions/namespace-uri/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The `namespace-uri` function returns a string representing the namespace URI of

### Syntax

```
```plain
namespace-uri( [node-set] )
```

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/xpath/functions/normalize-space/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The `normalize-space` function strips leading and trailing white-space from a st

### Syntax

```
```plain
normalize-space( [string] )
```

Expand Down
Loading

0 comments on commit 4a6dacf

Please sign in to comment.