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

No dom traversal in connectedcallback #8

Merged
merged 8 commits into from
Mar 26, 2021

Conversation

keithamus
Copy link
Contributor

This adds the no-dom-traversal-in-connectedcallback rule.

This rule disallows DOM traversal APIs (such as .querySelector) in the `connectedCallback.

Refs #3

@keithamus keithamus mentioned this pull request Mar 23, 2021
16 tasks
Copy link
Contributor

@koddsson koddsson left a comment

Choose a reason for hiding this comment

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

This looks good to me ✨

@keithamus keithamus merged commit 882f9ae into main Mar 26, 2021
Comment on lines +9 to +12
// Node
'childNodes',
'firstChild',
'lastChild'
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this include innerHTML, innerText and textContent?

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.

2 participants