deno-dom
deno-dom copied to clipboard
TreeWalker
TreeWalker implementation for native, The wpt/dom/traversal/TreeWalker unittest seems to be broken, it passes all other test.
I hope this helps.
Thanks for the PR. A few things:
The codebase style needs to be honored, so
- only strict equality (
===
) except for== null
to matchnull
orundefined
- always end lines with semi-colons
- only double-quotes for strings
- always 2 space indents
- trailing commas
- Typescript
enum
instead ofabstract class
es - spaces after control flow block keywords i.e.
if (...)
andwhile (...)
instead ofif(...)
, etc
I really need to setup deno fmt
or smth already :sweat:
There are also parts that touch unrelated parts of the codebase; please submit a separate PR for those
I did you the honor.
There are also parts that touch unrelated parts of the codebase; please submit a separate PR for those
Any idea how to outsource part of the commits to a separate branch?
Also, how did you run the wpt tests? I had to comment out the argument check since deno doesnt allow arguments when testing.
Alright, thanks. Everything mostly looks fine, but I'll check it in more detail later today or tomorrow.
Any idea how to outsource part of the commits to a separate branch?
You can create a new branch with
git checkout -b new-branch-name
run git reflog
to see the commit that you had to revert or whatever, then run
git reset --hard $COMMIT_HASH_FROM_REFLOG
then the new branch will have the contents of the commit you reverted.
Also, how did you run the wpt tests? I had to comment out the argument check since deno doesnt allow arguments when testing.
It's in the "Running tests" section of the readme:
Then append
-- --wpt
to the test command before running it, e.g. for WASMdeno test --allow-read wasm.test.ts -- --wpt
Btw, to revert a full file you can use
git checkout 813ce27 ./path/to/file.ts