Skip to content

Commit

Permalink
fix URL in meta-refresh rules (#1544)
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoFiers authored Feb 2, 2021
1 parent ddd0360 commit aef8660
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
20 changes: 10 additions & 10 deletions _rules/meta-refresh-no-delay-bc659a.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ First valid `<meta http-equiv="refresh">` redirects immediately.

```html
<head>
<meta http-equiv="refresh" content="0; https://w3c.org" />
<meta http-equiv="refresh" content="5; https://w3c.org" />
<meta http-equiv="refresh" content="0; https://w3.org" />
<meta http-equiv="refresh" content="5; https://w3.org" />
</head>
```

Expand All @@ -106,7 +106,7 @@ Redirects after more than 20 hours.

```html
<head>
<meta http-equiv="refresh" content="72001; https://w3c.org" />
<meta http-equiv="refresh" content="72001; https://w3.org" />
</head>
```

Expand All @@ -128,7 +128,7 @@ Redirects after 30 seconds.

```html
<head>
<meta http-equiv="refresh" content="30; URL='https://w3c.org'" />
<meta http-equiv="refresh" content="30; URL='https://w3.org'" />
</head>
```

Expand All @@ -138,8 +138,8 @@ First `<meta http-equiv="refresh">` element is not valid, second one redirects a

```html
<head>
<meta http-equiv="refresh" content="0: https://w3c.org" />
<meta http-equiv="refresh" content="5; https://w3c.org" />
<meta http-equiv="refresh" content="0: https://w3.org" />
<meta http-equiv="refresh" content="5; https://w3.org" />
</head>
```

Expand All @@ -149,7 +149,7 @@ Redirects after exactly 20 hours.

```html
<head>
<meta http-equiv="refresh" content="72000; https://w3c.org" />
<meta http-equiv="refresh" content="72000; https://w3.org" />
</head>
```

Expand Down Expand Up @@ -181,7 +181,7 @@ No `http-equiv="refresh"` attribute.

```html
<head>
<meta http-equiv="refresh" content="0: https://w3c.org" />
<meta http-equiv="refresh" content="0: https://w3.org" />
</head>
```

Expand Down Expand Up @@ -221,7 +221,7 @@ No `http-equiv="refresh"` attribute.

```html
<head>
<meta http-equiv="refresh" content="+5; https://w3c.org" />
<meta http-equiv="refresh" content="+5; https://w3.org" />
</head>
```

Expand All @@ -231,7 +231,7 @@ No `http-equiv="refresh"` attribute.

```html
<head>
<meta http-equiv="refresh" content="foo; URL='https://w3c.org'" />
<meta http-equiv="refresh" content="foo; URL='https://w3.org'" />
</head>
```

Expand Down
16 changes: 8 additions & 8 deletions _rules/meta-refresh-no-delay-no-exception-bisz58.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ This `meta` element redirects the user immediately. Users won't notice the chang

```html
<head>
<meta http-equiv="refresh" content="0; URL='https://w3c.org'" />
<meta http-equiv="refresh" content="0; URL='https://w3.org'" />
</head>
```

Expand All @@ -85,8 +85,8 @@ The first valid `meta` element redirects immediately.

```html
<head>
<meta http-equiv="refresh" content="0; https://w3c.org" />
<meta http-equiv="refresh" content="5; https://w3c.org" />
<meta http-equiv="refresh" content="0; https://w3.org" />
<meta http-equiv="refresh" content="5; https://w3.org" />
</head>
```

Expand All @@ -108,7 +108,7 @@ This `meta` element redirects the user after 30 seconds.

```html
<head>
<meta http-equiv="refresh" content="30; URL='https://w3c.org'" />
<meta http-equiv="refresh" content="30; URL='https://w3.org'" />
</head>
```

Expand All @@ -118,8 +118,8 @@ The first `meta` element is not valid (because of the colon instead of a semi-co

```html
<head>
<meta http-equiv="refresh" content="0: https://w3c.org" />
<meta http-equiv="refresh" content="5; https://w3c.org" />
<meta http-equiv="refresh" content="0: https://w3.org" />
<meta http-equiv="refresh" content="5; https://w3.org" />
</head>
```

Expand Down Expand Up @@ -201,7 +201,7 @@ This `meta` element has an invalid `content` attribute, and is therefore inappli

```html
<head>
<meta http-equiv="refresh" content="+5; http://w3c.org" />
<meta http-equiv="refresh" content="+5; http://w3.org" />
</head>
```

Expand All @@ -211,7 +211,7 @@ This `meta` element has an invalid `content` attribute, and is therefore inappli

```html
<head>
<meta http-equiv="refresh" content="foo; URL='https://w3c.org'" />
<meta http-equiv="refresh" content="foo; URL='https://w3.org'" />
</head>
```

Expand Down

0 comments on commit aef8660

Please sign in to comment.