Closed cheng-alvin closed 10 months ago
This issue is now fixed in https://github.com/cheng-alvin/durian.js/commit/1ae2942932a6b71abde1ca8ad328763799890b8c of pull request #20! After review and after the checks pass, this would be merged in the next Beta release! Have a great day!
Bug report 🐛
After further review and revision of the
shadowRootEval()
function as in/packages/core/src/shadowRootEval.js
and committed in #15, I have found a couple of issues with the function. Here's a list below.eval()
function, there is no way to catch it without throwing an annoyingUncaught Error
to the console.<script>
tag detection - The function could not detect if the script is inside asrc
attribute that normal people use; the function just simply detects theinnerHTML
from the HTML document.Technical information 💻
Here is the function just for reference:
Other sources 📖