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

Readability.parse should expose lang attribute of original document. #721

Merged
merged 4 commits into from
Jan 26, 2022

Conversation

micha154
Copy link
Contributor

No description provided.

Copy link
Contributor

@tigleym tigleym left a comment

Choose a reason for hiding this comment

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

Awesome! We're really close. I think once we have a test case for this we can get this merged :)

I added some steps you can take to get this test. You can also refer to this for additional documentation.

Copy link
Contributor

@tigleym tigleym left a comment

Choose a reason for hiding this comment

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

Awesome! This looks good. R+ from me after addressing the assertion message

@@ -176,6 +176,10 @@ function runTestsWithItems(label, domGenerationFn, source, expectedContent, expe
expectedMetadata.dir && it("should extract expected direction", function() {
expect(result.dir).eql(expectedMetadata.dir);
});

expectedMetadata.lang && it("should extract expected direction", function() {
Copy link
Contributor

Choose a reason for hiding this comment

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

We should update the message here to "should extract expected lang"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, I don't know how I missed that, should be good now! :)

@tigleym tigleym merged commit 1fde3ac into mozilla:master Jan 26, 2022
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.

2 participants