Skip to content

feat: Implement Document#parent, which always returns nil#3481

Open
flavorjones wants to merge 1 commit intomainfrom
flavorjones-3466-document-parent
Open

feat: Implement Document#parent, which always returns nil#3481
flavorjones wants to merge 1 commit intomainfrom
flavorjones-3466-document-parent

Conversation

@flavorjones
Copy link
Member

What problem is this PR intended to solve?

We've undefed the parent method in Document since ffbfc73 in 2009. There's no good reason to do so, and restoring the method so it returns nil makes the Document object quack more like the Node that it is.

Closes #3466

Have you included adequate test coverage?

Yes.

Does this change affect the behavior of either the C or the Java implementations?

N/A

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.

[feature] document.parent should exist

1 participant