Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Element constants with Node constants. #2503

Merged
merged 1 commit into from
May 29, 2019
Merged

Conversation

NeilFraser
Copy link
Contributor

Element constants don’t exist in IE or Edge. Node constants do.

(Note that old versions of some browser doesn't have Node constants either. Can't remember which browser (Netscape 4, IE 5?) but doesn't affect us. This is why older front-end devs just use raw numbers; we all know that 1 and 3 refer to elements and text respectively.)

Element constants apparently don’t exist in IE or Edge.  Node constants apparently do.
@rachel-fenichel
Copy link
Collaborator

Why was this working before #2468?

@NeilFraser
Copy link
Contributor Author

NeilFraser commented May 29, 2019 via email

@rachel-fenichel
Copy link
Collaborator

Okay. The most recent source hasn't hit master, so that's no surprise. The other has been on master for a while so I'm a bit surprised that we haven't seen it before.

LGTM, approval.

@NeilFraser NeilFraser merged commit 459961c into develop May 29, 2019
@NeilFraser NeilFraser deleted the fraser-nodeType branch May 29, 2019 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants