Description
This rule verifies if there are elements that have an attribute title
with an empty value. This includes also whitespaces.
Context
title
attribute should not be empty. This will ensure that the value of title
will be processed in a predictable way. As a side effect removing an empty value of title
attribute will make the code smaller, which means less data to transfer and faster processing by e.g. the browser.
Following elements are being skip while evaluating this rule:
<img>
<html>
<head>
<title>
<body>
<link>
<meta>
<style>
<script>
<noscript>
<iframe>
<br>
<hr>
How to fix it
The rule passes when an element has an attribute title
with a non-empty value. This includes also whitespaces.
Standard
Best Practices