-
Notifications
You must be signed in to change notification settings - Fork 70
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
HTML page has non-empty title [2779a5]: Shadow root example - Included as failed example 6 #2180
HTML page has non-empty title [2779a5]: Shadow root example - Included as failed example 6 #2180
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit wondering whether we should be clearer (maybe also in the Expectation) which tree is used for finding descendants (i.e., the shadow tree is a descendant in the flat tree of the root document, but it is not a descendant in the DOM tree, which the rule consider by default since no precision is made).
But that's a bit of a separate problem.
Hi @Jym77, to be honest, it took me a while to figure out if Expectation 2 was supposed to clarify how to deal with shadow roots, but after reviewing the definitions, I think it's accurate. However, I do agree that it could be clearer and less time-consuming for users to understand how to handle shadow roots. |
Yes, I think this is correct (this is also Alfa's interpretation). I think that this is a very old rule and we were not so conscious then about the differences between DOM and flat tree 😅 In any case, the example makes it clear that shadow DOM is ignored, so that's definitely going in the good direction. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small suggestion
Co-authored-by: Wilco Fiers <[email protected]>
1 week call for review ends on September 11th. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me!
Call for Review has ended, merging. |
Closes issue(s): #2179
Description:
Adding a failed example of an HTML page lacking a title but featuring a shadow root with a non-empty
<title>
that does not affect the page title into the HTML page has non-empty title [2779a5] rule.Need for Call for Review:
This will require a 1 week Call for Review
Pull Request Etiquette
When creating PR:
develop
branch (left side).After creating PR:
Rule
,Definition
orChore
.When merging a PR:
How to Review And Approve