rspec/rules/S1090/html/rule.adoc
Fred Tingaud 16f6c0aecf
Inline adoc when include has no additional value (#1940)
Inline adoc files when they are included exactly once.

Also fix language tags because this inlining gives us better information
on what language the code is written in.
2023-05-25 14:18:12 +02:00

46 lines
1.3 KiB
Plaintext

== Why is this an issue?
Frames allow different web pages to be put together on the same visual space. Users without disabilities can easily scan the contents of all frames at once. However, visually impaired users using screen readers hear the page content linearly.
The ``++title++`` attribute is used to list all the page's frames, enabling those users to easily navigate among them. Therefore, the ``++<frame>++`` and ``++<iframe>++`` tags should always have a ``++title++`` attribute.
=== Noncompliant code example
[source,html]
----
<frame src="index.php?p=menu"> <-- Non-Compliant -->
<frame src="index.php?p=home" name="contents"> <-- Non-Compliant -->
----
=== Compliant solution
[source,html]
----
<frame src="index.php?p=menu" title="Navigation menu"> <-- Compliant -->
<frame src="index.php?p=home" title="Main content" name="contents"> <-- Compliant -->
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Add a 'title' attribute to this {0} tag.
'''
== Comments And Links
(visible only on this page)
=== on 8 Jul 2013, 18:22:58 Freddy Mallet wrote:
Is implemented by \http://jira.codehaus.org/browse/SONARPLUGINS-2990
endif::env-github,rspecator-view[]