-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Hello,
I have observed that the following errors get flagged when there is an aside
with a header
that is a child of a section
that also has a header
:
landmark-no-duplicate-banner Via: aXe
- Document has more than one banner landmark
- Ensure the document has at most one banner landmark
- Document should not have more than one banner landmark
landmark-unique Via: aXe
- The landmark must have a unique aria-label, aria-labelledby, or title to make landmarks distinguishable
- Ensure landmarks are unique
- Landmarks should have a unique role or role/label/title (i.e. accessible name) combination
Document has more than one banner landmark
Ensure the document has at most one banner landmark
Document should not have more than one banner landmark
Here is the HTML for the document in question. The errors are flagged for the header of aside.
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns:svg="http://www.w3.org/2000/svg" xmlns:epub="http://www.idpf.org/2007/ops" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" id="u3bbd1972efd32019d820bc010471276">
<head>
<meta charset="utf-8"></meta>
<title>Chapter 16 xxxxx</title>
</head>
<body epub:type="bodymatter" data-lo-framework-id="7511be56-e6e7-11e8-b2b4-06501b093400">
<section epub:type="chapter" id="pau_9781319320164_Upw2yOhAsg" role="doc-chapter">
<header id="pau_9781319320164_Rxk8C5bzSg">
<h1 epub:type="title" id="pau_9781319320164_3i0FQmY9kz">
<span epub:type="label" id="pau_9781319320164_eKpgNJIk5Q">Chapter </span>
<span epub:type="ordinal" id="pau_9781319320164_g5WkwccdEm">16 </span>
<span id="pau_9781319320164_wc5h8bZrML">xxxxx</span>
</h1>
</header>
<section epub:type="introduction" id="pau_9781319320164_qIPtCHIEUs" role="doc-introduction">
<header id="pau_9781319320164_Wr4BzyWfJe">
<h2 epub:type="title" id="pau_9781319320164_Jl4yCBeHIb">xxxxx</h2>
</header>
<p id="pau_9781319320164_ityUKb3T8w">xxxxxxxxxx</p>
<p id="pau_9781319320164_teWawnnuYC">xxxxx xxxx xxxxx</p>
<aside aria-labelledby="pau_9781319320164_MtNqwt84v3" epub:type="learning-objectives" id="pau_9781319320164_zlFCSWFE0C">
<header id="pau_9781319320164_5nf3WedWtX">
<h3 epub:type="title" id="pau_9781319320164_MtNqwt84v3">xxxx</h3>
</header>
<ul epub:type="learning-objectives" id="pau_9781319320164_ETBhDmhvEf">
<li epub:type="learning-objective" id="pau_9781319320164_V3YDCxTd5A">xxxxxx</li>
</ul>
</aside>
</section>
</section>
</body>
</html>
Here is a file with aside
with header
child that does not trigger these errors:
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns:svg="http://www.w3.org/2000/svg" xmlns:epub="http://www.idpf.org/2007/ops" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" id="webc8e23c0c6335aa90d500e550ad313">
<head>
<meta charset="utf-8"></meta>
<title>xxxxx</title>
</head>
<body epub:type="bodymatter" data-lo-framework-id="7511be56-e6e7-11e8-b2b4-06501b093400">
<section data-cfititle="16.2 Moderate Inflation and Disinflation" id="pau_9781319320164_CtypVjZdlu">
<header id="pau_9781319320164_THVLEeuFZN">
<h2 id="pau_9781319320164_1muYlIn55v">xxxxx</h2>
</header>
<p id="pau_9781319320164_vwuuBcbigq">xxx x x x x x</p>
<section data-cfititle="The Output Gap and the Unemployment Rate" id="pau_9781319320164_VppjUOdEfd">
<header id="pau_9781319320164_MUlqVtqyUH">
<h3 id="pau_9781319320164_VCZ4SzANng">x xx x x x</h3>
</header>
<p id="pau_9781319320164_WzPfqNAMm3">xxxxxxx</p>
<aside aria-labelledby="pau_9781319320164_KQeAtXlJXe" data-cfititle="For inquiring minds" epub:type="case-study" id="pau_9781319320164_lNhY6o8NK7">
<header id="pau_9781319320164_Mx7pDRx6l2">
<h4 epub:type="title" id="pau_9781319320164_KQeAtXlJXe"><span aria-label="492" epub:type="pagebreak" id="page492" role="doc-pagebreak"></span>xxx</h4>
<p epub:type="subtitle" id="pau_9781319320164_OE095vIoYe" role="doc-subtitle">vvvv</p>
</header>
<p>xx x x </p>
<aside aria-label="title 1" id="pau_9781319320164_ZlmiNne2H7">
<dl id="pau_9781319320164_7dTSlips4L">
<dt epub:type="glossterm" id="pau_9781319320164_v1QvM1B38S" role="term">
<dfn epub:type="keyword" id="pau_9781319320164_0PAWabeaCo">
<strong id="pau_9781319320164_lP7z1wKu5H">xxx</strong>
</dfn>
</dt>
<dd epub:type="glossdef" id="pau_9781319320164_Q1rhWy5r6m" role="definition">xxxxx</dd>
</dl>
</aside>
<p id="pau_9781319320164_tVyFERKaep">xxxxx</p>
<p id="pau_9781319320164_qA52YrpES0">xxxxx</p>
</aside>
</section>
<section data-cfititle="The Short-Run Phillips Curve" id="pau_9781319320164_kcGllgUg6M">
<header id="pau_9781319320164_tWpR30QfDA">
<h3 id="pau_9781319320164_qnVaKWh8th">xxxx</h3>
</header>
<p id="pau_9781319320164_bKAS9xR6bY">xxxxx</p>
<aside aria-label="title 2" id="pau_9781319320164_PF7qSXInKE">
<dl id="pau_9781319320164_mbaPK7n49O">
<dt epub:type="glossterm" id="pau_9781319320164_KQyh2AouAA" role="term">
<dfn epub:type="keyword" id="pau_9781319320164_KV3vvrtNXv">
<strong id="pau_9781319320164_kMD8vniR2C">xxxxX</strong>
</dfn>
</dt>
<dd epub:type="glossdef" id="pau_9781319320164_KSRUKyHpXS" role="definition"><strong id="pau_9781319320164_9OmJt0IfUS">xxxx</strong></dd>
</dl>
</aside>
<p id="pau_9781319320164_YAGo1TnNfH">xxxxxx</p>
</section>
<section data-cfititle="Inflation Expectations and the Short-Run Phillips Curve" id="pau_9781319320164_Uf4vjnlkBf">
<header id="pau_9781319320164_CLVvZ6JREz">
<h3 id="pau_9781319320164_HEzbgiR24s">xxxxx</h3>
</header>
<aside aria-label="title 3" id="pau_9781319320164_6SQI47RV0g">
<dl id="pau_9781319320164_zzN01Fsy61">
<dt epub:type="glossterm" id="pau_9781319320164_t42K734LmP" role="term">
<dfn epub:type="keyword" id="pau_9781319320164_CcvDHPmD67">
<strong id="pau_9781319320164_x4WUUW39RH">xxxxx</strong>
</dfn>
</dt>
<dd epub:type="glossdef" id="pau_9781319320164_XhXnHBqFbA" role="definition">xxxxx</dd>
</dl>
</aside>
<p id="pau_9781319320164_To2z4ZIIqL">xxxxx</p>
</section>
<section data-cfititle=">> Check Your Understanding 16-2" id="pau_9781319320164_ZhwbFF79zD" role="doc-example">
<header id="pau_9781319320164_2ELT05gm68">
<h3 epub:type="title" id="pau_9781319320164_6WPfJajSzt">>> <i id="pau_9781319320164_uEO3JOdfqv">xxxxx</i></h3>
</header>
<ol id="pau_9781319320164_uxmlm0PWpT">
<li data-answer="kru_9781319245269_EM_soul.xhtml#pau_9781319320164_GnRFvZoTEb" data-converted="1" epub:type="question" id="pau_9781319320164_6NAVHC2Q24">xxxxx
</li>
</ol>
</section>
</section>
</body>
</html>
Trying to seek some understanding on this rule. I am aware that using hgroup would resolve this but I am not sure if this rule is not incorrect or not.
Thanks,
Franco
Metadata
Metadata
Assignees
Labels
No labels