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

HTML Page has a title: Expectation is ambiguous #316

Closed
kasperisager opened this issue Oct 23, 2018 · 3 comments
Closed

HTML Page has a title: Expectation is ambiguous #316

kasperisager opened this issue Oct 23, 2018 · 3 comments
Assignees
Labels
f2f-agenda Rule Update Use this label for an existing rule that is being updated Rule Use this label for a new rule that does not exist already

Comments

@kasperisager
Copy link
Contributor

This is basically the same issue as #315, just for https://auto-wcag.github.io/auto-wcag/rules/SC2-4-2-page-has-title.html, and relates to the fact that the term contain is not defined. Consider the following snippet of HTML:

<div>
  <title>I'm not rendered</title>
</div>

<script>
  {
    const host = document.querySelector("div");
    const root = host.attachShadow({ mode: "open" });

    root.innerHTML = `
      <p>I'm rendered</p>
    `;
  }
</script>

In well-defined terms, the <div> has the following:

Opposite #315, the first two options will cause the rule to pass, while the third option will cause the rule to fail.

As an aside, Chrome actually picks up the <title> even though its not included in the flat tree.

@annethyme
Copy link
Collaborator

@WilcoFiers, could we maybe take this up on the f2f next week?

@annethyme annethyme added this to To do in Q3 2018 Status via automation Oct 24, 2018
@annethyme annethyme added Rule Update Use this label for an existing rule that is being updated Rule Use this label for a new rule that does not exist already labels Oct 24, 2018
@annethyme
Copy link
Collaborator

@kasperisager, can Siteimprove come up with a proposal?

@annethyme
Copy link
Collaborator

Will be handled by #432

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f2f-agenda Rule Update Use this label for an existing rule that is being updated Rule Use this label for a new rule that does not exist already
Projects
No open projects
Q3 2018 Status
  
To do
Development

No branches or pull requests

2 participants