chore(deps): update dependency htmlparser2 to v10 #295
Annotations
12 errors and 2 warnings
packages/beasties/test/beasties.test.ts > beasties > basic Usage:
packages/beasties/src/index.ts#L323
TypeError: Cannot read properties of null (reading 'appendChild')
❯ Beasties.embedLinkedStylesheet packages/beasties/src/index.ts:323:23
❯ Beasties.process packages/beasties/src/index.ts:90:7
❯ packages/beasties/test/beasties.test.ts:49:20
|
packages/beasties/test/beasties.test.ts > beasties > run on HTML file:
packages/beasties/src/index.ts#L323
TypeError: Cannot read properties of null (reading 'appendChild')
❯ Beasties.embedLinkedStylesheet packages/beasties/src/index.ts:323:23
❯ Beasties.process packages/beasties/src/index.ts:90:7
❯ packages/beasties/test/beasties.test.ts:88:20
|
packages/beasties/test/beasties.test.ts > beasties > does not encode HTML:
packages/beasties/src/index.ts#L323
TypeError: Cannot read properties of null (reading 'appendChild')
❯ Beasties.embedLinkedStylesheet packages/beasties/src/index.ts:323:23
❯ Beasties.process packages/beasties/src/index.ts:90:7
❯ packages/beasties/test/beasties.test.ts:103:20
|
packages/beasties/test/beasties.test.ts > beasties > should keep existing link tag attributes in the noscript link:
packages/beasties/test/beasties.test.ts#L143
AssertionError: expected '<html data-beasties-container>\n <he…' to match '<style>h1{color:blue}</style>'
- Expected
+ Received
- <style>h1{color:blue}</style>
+ <html data-beasties-container>
+ <head>
+ <title>$title</title>
+ <link rel="stylesheet" href="/style.css" crossorigin="anonymous" integrity="sha384-j1GsrLo96tLqzfCY+" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="/style.css" crossorigin="anonymous" integrity="sha384-j1GsrLo96tLqzfCY+"></noscript>
+ </head>
+ <body>
+ <h1>Hello World!</h1>
+ </body>
+ </html>
❯ packages/beasties/test/beasties.test.ts:143:20
|
packages/beasties/test/beasties.test.ts > beasties > should keep existing link tag attributes:
packages/beasties/src/index.ts#L323
TypeError: Cannot read properties of null (reading 'appendChild')
❯ Beasties.embedLinkedStylesheet packages/beasties/src/index.ts:323:23
❯ Beasties.process packages/beasties/src/index.ts:90:7
❯ packages/beasties/test/beasties.test.ts:161:20
|
packages/beasties/test/beasties.test.ts > beasties > prevent injection via media attr:
packages/beasties/test/beasties.test.ts#L216
Error: Snapshot `beasties > prevent injection via media attr 1` mismatched
- Expected
+ Received
@@ -1,10 +1,10 @@
- "<html>
+ "<html data-beasties-container>
<link>
<title>Testing</title>
- <style>h1{color:blue}p{color:purple}.contents{padding:50px;text-align:center}.input-field{padding:10px}.custom-element::part(tab){color:#0c0dcc;border-bottom:transparent solid 2px}.custom-element::part(tab):hover:active{background-color:#0c0d33;color:#ffffff}.custom-element::part(tab):focus{box-shadow:0 0 0 1px #0a84ff inset, 0 0 0 1px #0a84ff,
+ <style>.banner{font-family:sans-serif}.contents{padding:50px;text-align:center}.input-field{padding:10px}.custom-element::part(tab){color:#0c0dcc;border-bottom:transparent solid 2px}.custom-element::part(tab):hover:active{background-color:#0c0d33;color:#ffffff}.custom-element::part(tab):focus{box-shadow:0 0 0 1px #0a84ff inset, 0 0 0 1px #0a84ff,
- 0 0 0 4px rgba(10, 132, 255, 0.3)}div:is(:hover, .active){color:#000}div:is(.selected, :hover){color:#fff}body{height:100%}</style><link rel="stylesheet" href="styles.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles.css" media="alert(1)"></noscript>
+ 0 0 0 4px rgba(10, 132, 255, 0.3)}body{height:100%}</style><link rel="stylesheet" href="styles.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles.css" media="alert(1)"></noscript>
<link rel="stylesheet" href="styles2.css" media="print" onload="this.media='screen and (min-width: 480px)'"><noscript><link rel="stylesheet" href="styles2.css" media="screen and (min-width: 480px)"></noscript>
❯ packages/beasties/test/beasties.test.ts:216:20
|
packages/beasties/test/beasties.test.ts > beasties > skip invalid path:
packages/beasties/src/index.ts#L323
TypeError: Cannot read properties of null (reading 'appendChild')
❯ Beasties.embedLinkedStylesheet packages/beasties/src/index.ts:323:23
❯ Beasties.process packages/beasties/src/index.ts:90:7
❯ packages/beasties/test/beasties.test.ts:229:20
|
packages/beasties/test/beasties.test.ts > beasties > works with pseudo classes and elements:
packages/beasties/src/index.ts#L323
TypeError: Cannot read properties of null (reading 'appendChild')
❯ Beasties.embedLinkedStylesheet packages/beasties/src/index.ts:323:23
❯ Beasties.process packages/beasties/src/index.ts:90:7
❯ packages/beasties/test/beasties.test.ts:284:20
|
packages/beasties/test/security.test.ts > beasties > should not create a new script tag from embedding linked stylesheets:
packages/beasties/src/index.ts#L323
TypeError: Cannot read properties of null (reading 'appendChild')
❯ Beasties.embedLinkedStylesheet packages/beasties/src/index.ts:323:23
❯ Beasties.process packages/beasties/src/index.ts:90:7
❯ packages/beasties/test/security.test.ts:29:18
|
packages/beasties-webpack-plugin/test/index.test.ts > inline <style> pruning > should remove unused rules:
packages/beasties-webpack-plugin/test/index.test.ts#L62
Error: Snapshot `inline <style> pruning > should remove unused rules 1` mismatched
- Expected
+ Received
@@ -1,72 +1,30 @@
"<!DOCTYPE html>
<html data-beasties-container>
<head>
<title>Basic Demo</title>
<style>
- body {
+ body {
- padding-left: 11em;
+ padding-left: 11em;
- font-family: "Times New Roman", times, serif;
+ font-family: "Times New Roman", times, serif;
- color: purple;
+ color: purple;
- background-color: #d8da3d;
+ background-color: #d8da3d;
- }
- ul.navbar {
- list-style-type: none;
- padding: 0;
- margin: 0;
- position: absolute;
- top: 2em;
- left: 1em;
- width: 9em;
- }
- h1 {
- font-family: helvetica, arial, sans-serif;
- }
- ul.navbar li {
- background: white;
- margin: 0.5em 0;
- padding: 0.3em;
- border-right: 1em solid black;
- }
- ul.navbar a {
- text-decoration: none;
- }
- ul.navbar:not(.hidden) li:hover a {
- color: black;
- }
- ul.navbar:not(:hover) li:hover a {
- color: black;
- }
- ul.navbar li:hover a {
- color: red;
- }
- a:link {
- color: blue;
- }
- a:visited {
- color: purple;
- }
-
- footer {
- margin-top: 1em;
- padding-top: 1em;
- border-top: thin dotted;
- }
-
- .clazz\:colon {
- color: green;
- }
+ }
+
+ .clazz\:colon {
+ color: green;
+ }
</style>
<script defer src="bundle.js"></script></head>
<body>
<ul class="navbar clazz:colon">
- <li>
+ <li>
- <a href="index.html">Home page</a>
+ <a href="index.html">Home page</a>
- </li>
- <li>
- <a href="musings.html">Musings</a>
+ </li>
+ <li>
+ <a href="musings.html">Musings</a>
- </li>
+ </li>
</ul>
<h1>My first styled page</h1>
<p>Welcome to my styled page!</p>
<footer>Made 5 April 2004</footer>
</body>
❯ packages/beasties-webpack-plugin/test/index.test.ts:62:18
|
test (windows-latest)
The job was canceled because "ubuntu-latest" failed.
|
test (windows-latest)
The operation was canceled.
|
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test (ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|