Skip to content
This repository was archived by the owner on Sep 20, 2019. It is now read-only.

[ Add ] Utility methods of ParentNode & ChildNode interfaces - #294

Closed
TechQuery wants to merge 5 commits into
webcomponents:masterfrom
EasyWebApp:master
Closed

[ Add ] Utility methods of ParentNode & ChildNode interfaces#294
TechQuery wants to merge 5 commits into
webcomponents:masterfrom
EasyWebApp:master

Conversation

@TechQuery

Copy link
Copy Markdown

Reference Issue

Fixes #288

@TimvdLippe TimvdLippe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please add braces to all if-statements. Also, please add regression tests for these methods.

@TechQuery

Copy link
Copy Markdown
Author

@TimvdLippe
I found a bug of Building scripts: only the name of prepend() is transformed, I don't know why...
image

@TimvdLippe TimvdLippe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think all methods need the following JSdoc notation:

/**
  * @this {HTMLElement}
  */

This is also going to clash with #298, but I think it is better to wait for that PR to land before going ahead with this one.

Comment thread tests/parent-child-node.html Outdated
<script>
ShadyDOM = {force: true};
</script>
<!-- <script src="../shadydom.min.js"></script> -->

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Uncomment this file.

@TechQuery TechQuery Nov 19, 2018

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

If you uncomment this line, you'll meet this bug.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Per my review comment, adding the following should fix that:

/**
  * @this {HTMLElement}
  */

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I have tried to add @this, but nothing changed...

Comment thread tests/parent-child-node.html Outdated
Comment thread tests/parent-child-node.html Outdated
Comment thread tests/parent-child-node.html Outdated
Comment thread src/patch-builtins.js
Comment thread src/patch-builtins.js

const fragment = document.createDocumentFragment();

for (let node of list)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Braces here as well.

Comment thread package.json Outdated
Comment thread .editorconfig Outdated
Comment thread src/patch-builtins.js Outdated
Comment thread tests/parent-child-node.html Outdated
@dfreedm

dfreedm commented Jun 10, 2019

Copy link
Copy Markdown
Contributor

Sorry for the long delay.

If this issue is still important for you, could you please remake this PR in the new monorepo: https://github.com/webcomponents/polyfills?

Thanks!

@dfreedm dfreedm closed this Jun 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants