2021-04-28 18:08:03 +02:00
|
|
|
This rule checks that the specified child elements are present inside the specified parent elements.
|
|
|
|
|
|
|
|
|
|
|
|
== Noncompliant Code Example
|
|
|
|
|
|
|
|
Given a parent/child combination of ``++<head>++``/``++<title>++``:
|
|
|
|
|
|
|
|
----
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
</head> <!-- Noncompliant; no title element -->
|
|
|
|
<body>
|
|
|
|
...
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
|
|
== Compliant Solution
|
|
|
|
|
|
|
|
----
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>My Page</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
...
|
|
|
|
----
|
|
|
|
|