Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Windows issue with HTML elements #122

Merged
merged 2 commits into from
Apr 29, 2024
Merged

Fix Windows issue with HTML elements #122

merged 2 commits into from
Apr 29, 2024

Conversation

macdonst
Copy link
Contributor

The _get_elements.mjs file was failing when trying to load a HTML file. fileURL.pathname works on UNIX but not windows because it adds and extra / at the start of a Windows path, i.e. /C:/Users/. Switching to using the file path and not url file path works on both Windows and UNIX.

@brianleroux
Copy link
Collaborator

Looks good! Shakes fist at windows

@macdonst
Copy link
Contributor Author

@brianleroux the worst part I'm having a hard time getting the test case to fail on windows when not running locally.

@macdonst macdonst merged commit a4731ab into main Apr 29, 2024
20 checks passed
@macdonst macdonst deleted the windows branch April 29, 2024 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants