diff --git a/.github/workflows/wpt.yml b/.github/workflows/wpt.yml
index 42c84adc..e4655ae6 100644
--- a/.github/workflows/wpt.yml
+++ b/.github/workflows/wpt.yml
@@ -14,7 +14,7 @@ on:
paths:
- "src/**/*.zig"
- "src/*.zig"
- - "test/wpt/**"
+ - "tests/wpt/**"
- "vendor/**"
pull_request:
@@ -28,7 +28,7 @@ on:
paths:
- "src/**/*.zig"
- "src/*.zig"
- - "test/wpt/**"
+ - "tests/wpt/**"
- "vendor/**"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
diff --git a/.gitmodules b/.gitmodules
index 92d6e344..6d4f25e1 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -19,3 +19,6 @@
[submodule "vendor/netsurf/libhubbub"]
path = vendor/netsurf/libhubbub
url = https://source.netsurf-browser.org/libhubbub.git
+[submodule "tests/wpt"]
+ path = tests/wpt
+ url = https://github.com/lightpanda-io/wpt
diff --git a/README.md b/README.md
index 3f0af91f..36862533 100644
--- a/README.md
+++ b/README.md
@@ -84,7 +84,8 @@ Browsercore is tested against the standardized [Web Platform
Tests](https://web-platform-tests.org/).
The relevant tests cases for Browsercore are commit with the project.
-All the tests cases executed are located in `tests/wpt` dir.
+All the tests cases executed are located in `tests/wpt` dir and come from an
+external repository: https://github.com/lightpanda-io/wpt
For reference, you can easily execute a WPT test case with your browser via
[wpt.live](https://wpt.live).
@@ -107,7 +108,8 @@ make wpt Node-childNodes.html
We add new tests cases files with implemented changes in Browsercore.
Copy the test case you want to add from the [WPT
-repo](https://github.com/web-platform-tests/wpt) into `tests/wpt` dir and commit
-the files.
+repo](https://github.com/web-platform-tests/wpt) into `tests/wpt` dir, commit
+the files in the https://github.com/lightpanda-io/wpt repository and update the
+git submodule in browsercore.
:warning: Please keep the original directory tree structure into `tests/wpt`.
diff --git a/tests/wpt b/tests/wpt
new file mode 160000
index 00000000..26ad8ed7
--- /dev/null
+++ b/tests/wpt
@@ -0,0 +1 @@
+Subproject commit 26ad8ed75d77406e1aea6d8ac29c5207efaeaeaa
diff --git a/tests/wpt/dom/collections/HTMLCollection-as-prototype.html b/tests/wpt/dom/collections/HTMLCollection-as-prototype.html
deleted file mode 100644
index d572d35c..00000000
--- a/tests/wpt/dom/collections/HTMLCollection-as-prototype.html
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-