Skip to content

Commit b379b0c

Browse files
giacomo-petriJym77WilcoFiers
authored
Removed ambiguity for "Passed Example 2" of "HTML page has non-empty title" (#2181)
Co-authored-by: Jean-Yves Moyen <[email protected]> Co-authored-by: Wilco Fiers <[email protected]>
1 parent b4663d2 commit b379b0c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

_rules/html-page-non-empty-title-2779a5.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,16 @@ This page has a `title` element with content.
9090

9191
#### Passed Example 2
9292

93-
This page has a `title` element that serves as the title for the page and the `iframe` since the `iframe` does not have its own.
93+
This page has a `title` element that serves as the title for the page. This rule doesn't take into account HTML pages embedded into the target document.
9494

9595
```html
9696
<html>
97-
<title>This page gives a title to an iframe</title>
98-
<iframe src="/test-assets/sc2-4-2-title-page-without-title.html"></iframe>
97+
<head>
98+
<title>This page gives a title to an iframe</title>
99+
</head>
100+
<body>
101+
<iframe src="/test-assets/sc2-4-2-title-page-without-title.html"></iframe>
102+
</body>
99103
</html>
100104
```
101105

0 commit comments

Comments
 (0)