rspec/rules/S1933/html/rule.adoc

28 lines
403 B
Plaintext
Raw Normal View History

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>
...
----