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

[DynamicXml] parse doc as html if served with text/html content type #10607

Merged
merged 1 commit into from
Oct 12, 2024

Conversation

chris48s
Copy link
Member

Closes #10586
Refs #10481 (comment)

@chris48s chris48s added the service-badge Accepted and actionable changes, features, and bugs label Oct 11, 2024
Copy link
Contributor

Messages
📖 ✨ Thanks for your contribution to Shields, @chris48s!

Generated by 🚫 dangerJS against 13cc916

Comment on lines +88 to +91
if (contentType === 'text/html') {
values = xpath
.parse(pathExpression)
.select({ node: parsed, isHtml: true })
Copy link
Member Author

Choose a reason for hiding this comment

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

This is required so that we don't have to explicitly use a namespace on every selector for HTML documents

See

for more detail

Copy link
Member

@PyvesB PyvesB left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍🏻

@chris48s chris48s added this pull request to the merge queue Oct 12, 2024
Merged via the queue into badges:master with commit f3e0cc0 Oct 12, 2024
24 checks passed
@chris48s chris48s deleted the 10586-html branch October 12, 2024 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service-badge Accepted and actionable changes, features, and bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

opening and ending tag mismatch "link" != "head"
2 participants