Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Script execution bug fix #20

Merged
merged 25 commits into from
Sep 8, 2023
Merged

Script execution bug fix #20

merged 25 commits into from
Sep 8, 2023

Conversation

cheng-alvin
Copy link
Owner

This is the development branch for the issue where I've addressed a couple of issues with the js execution (#18) Please see #18 for more information about the issues. All development of this fix will be documented here.

Thank you!

Added documentation to show this  `__durian__()` uses and destroys global variable(s)
@cheng-alvin cheng-alvin added bug Something isn't working enhancement New feature or request help wanted Extra attention is needed question Further information is requested labels Sep 1, 2023
@cheng-alvin cheng-alvin added this to the Durian v1 🥳 milestone Sep 1, 2023
@cheng-alvin cheng-alvin self-assigned this Sep 1, 2023
@cheng-alvin cheng-alvin marked this pull request as draft September 1, 2023 01:13
cheng-alvin and others added 15 commits September 1, 2023 11:14
The encoder encodes the angle brackets (`>` and `<`) to special reserver Unicode characters of `&gtl;` and `&lt;` for `>` and `<` respectively.
Fixed encoder, The old encoder would just be too late since it's delayed by the `main()` function.
Allows tests to pass, no need to remove, still being tested
Hopefully this fixed the failing test case!
@cheng-alvin
Copy link
Owner Author

cheng-alvin commented Sep 7, 2023

Ok, finally, a potential solution that's giving me a lot of hope is now completed in commit number 1ae2942. I've just got the shadow-dom to "copy and paste" the script elements in order for it to execute. YES!

@cheng-alvin cheng-alvin marked this pull request as ready for review September 7, 2023 12:49
@cheng-alvin cheng-alvin linked an issue Sep 7, 2023 that may be closed by this pull request
Signed-off-by: ✨ Alvin Cheng ✨ <eventide1029@gmail.com>
Copy link
Owner Author

@cheng-alvin cheng-alvin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some issues for the code.

packages/core/src/component.js Outdated Show resolved Hide resolved
packages/core/src/component.js Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
packages/core/src/component.js Outdated Show resolved Hide resolved
packages/core/src/shadowRootEval.js Outdated Show resolved Hide resolved
@cheng-alvin cheng-alvin mentioned this pull request Sep 8, 2023
Copy link
Owner Author

@cheng-alvin cheng-alvin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cheng-alvin cheng-alvin merged commit 1e75131 into main Sep 8, 2023
1 check passed
@cheng-alvin cheng-alvin deleted the script-execution-bug-fix branch September 8, 2023 21:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Issues with shadowRootEval()
1 participant