Neova고급 SEO 플랫폼

body 요소에 aria-hidden=true가 설정됨

Neova에서는 크롤링 자체에서 실행됩니다. 따로 설정할 것이 없습니다.

규칙 최종 검토: 2026년 10월 17일 · 가이드 업데이트: 2026년 7월 7일

이 설정은 HTML 페이지의 모든 콘텐츠를 스크린 리더에서 숨기며, WCAG 1.3.1 및 4.1.2와 충돌합니다.

해 볼 수 있는 조치

body 요소에서 aria-hidden을 제거하세요. 모달 스크립트가 설정하는 것이라면 모달 뒤의 콘텐츠에 적용하세요.

Neova가 플래그를 지정하는 이유

  • body의 aria-hidden=true는 화면에는 보이더라도 페이지 전체를 스크린 리더에서 숨깁니다.
  • 모달 스크립트가 이를 설정하고 제거하지 못하는 경우가 많아, 모달을 닫은 뒤에도 페이지가 아무것도 읽히지 않습니다.
  • 두 기준 모두 A 수준인 WCAG 1.3.1 및 4.1.2와 충돌합니다.

출처

전체 가이드

이 부분은 현재 영어로만 제공됩니다.

What This Check Flags

This check fails when aria-hidden="true" is set on the <body> element. Because aria-hidden cascades to every descendant, putting it on the body hides the entire page from assistive technology — a screen reader is handed a document with, effectively, nothing in it. For someone relying on that screen reader, your fully rendered page is a blank wall.

This is not a subtle degradation like low contrast. It is an all-or-nothing failure: sighted users see a normal page, screen-reader users get silence. And it is almost never intentional — it is collateral damage from code that was trying to hide something else.

A Real Failing Example, and the Fix

The usual cause is a modal or overlay script that hides the background while a dialog is open, then targets the wrong node or forgets to clean up. Here is the broken pattern:

<!-- Modal open: script hides "the rest of the page"
     but points at <body> instead of a page wrapper -->
<body aria-hidden="true">
  <div id="app"> ... entire site ... </div>
  <div class="modal" role="dialog"> ... </div>
</body>

Since the dialog is inside the hidden body, even the modal the script wanted to show gets hidden from assistive tech. The fix is to never mark the body itself. Wrap the page content in a container, hide that container when the modal opens, and keep the modal a sibling outside the hidden wrapper:

<body>
  <div id="app" aria-hidden="true"> ... page content ... </div>
  <div class="modal" role="dialog" aria-modal="true"> ... </div>
</body>

<script>
  // On close, remove it, never leave it stuck on:
  document.getElementById('app').removeAttribute('aria-hidden');
</script>

Better still, modern browsers support the inert attribute, which removes an element from the accessibility tree and blocks focus and pointer events — a cleaner tool for backgrounding content behind a modal than aria-hidden alone.

aria-hidden Values and What They Do

Half the confusion here comes from misunderstanding what the attribute's values mean. This table clears it up:

On the Body Effect on Assistive Tech Verdict
aria-hidden="true" Entire page removed from the accessibility tree Fails this check — never do this
aria-hidden="false" No-op on body, but a code smell worth removing Passes, but delete it
Attribute absent (default) Page is fully exposed to assistive tech Correct state
aria-hidden="true" on a decorative child Only that child is hidden Fine — and often correct
inert on a background wrapper Hides + blocks focus/pointer, body untouched Preferred for modals

The takeaway: aria-hidden="true" is a perfectly good tool on a decorative icon or an offscreen carousel slide. The problem is exclusively its placement on <body> (or on the root wrapper that contains everything), where it takes the whole page down with it.

How to Detect It

  1. Run an automated checker (axe, Lighthouse). The rule "aria-hidden='true' must not be present on the document body" reports it directly with a clear pass/fail.
  2. Inspect the live DOM, not just the source. This attribute is frequently added by JavaScript after load, so view the rendered <body> in DevTools while the page and any modals are open and closed.
  3. Search your codebase for aria-hidden applied to document.body or to a top-level wrapper, and for scripts that set it on open without a matching removal on close.
  4. Test with an actual screen reader (VoiceOver, NVDA). If it announces nothing on a visibly full page, a body-level aria-hidden is the prime suspect.
  5. Exercise every modal, drawer, and overlay open-and-close cycle — the bug often only appears in the "stuck on after close" state.

How to Fix It

  1. Remove aria-hidden from <body> entirely. The body should never carry it.
  2. To background page content behind a modal, wrap that content in a container and apply aria-hidden (or, better, inert) to the wrapper — keeping the modal outside it.
  3. Guarantee cleanup: whatever adds the attribute on open must remove it on close, including on error paths and route changes.
  4. Audit third-party widgets and modal libraries; some manage focus by hiding the body and never restore it. Configure or patch them to target a wrapper.
  5. Re-test with a screen reader after the change to confirm the page is announced again.

FAQ

Is aria-hidden Always Bad?

Not at all. On a decorative icon, a duplicate offscreen element, or an inactive carousel slide, aria-hidden="true" is exactly right — it stops assistive tech from announcing noise. The failure is specific to putting it on the <body> (or the single wrapper that holds the whole page), which hides everything.

Why Does One Attribute Hide the Whole Page?

aria-hidden inherits down the tree. Setting it on an ancestor hides that element and all of its descendants from the accessibility tree. Since <body> is the ancestor of every visible thing on the page, hiding it hides the lot.

What Should I Use to Hide the Background Behind a Modal?

Apply the hiding to a content wrapper, never the body, and keep the modal as a sibling outside that wrapper. The inert attribute is the modern best choice because it removes the background from the accessibility tree and also blocks focus and clicks, so keyboard users cannot tab into hidden content.

It Is Added by JavaScript, so It Is Not in My HTML Source. Does That Matter?

No — assistive tech reads the live DOM, not your original source. If a script sets aria-hidden="true" on the body at runtime, the page is hidden regardless of what the source file says. Always inspect the rendered DOM.

Does This Hurt SEO?

Search crawlers largely ignore aria-hidden for indexing, so ranking impact is minimal. The real cost is a broken experience for screen-reader users and the legal and reputational exposure that comes with it. It sits in the same family as other structural ARIA mistakes — see required ARIA attributes and the broader accessibility and SEO overview.

내 사이트에서 찾아보기

Neova는 크롤링할 때마다 이 점검과 다른 모든 점검을 실행하고, 수정 방법을 팀을 위한 티켓으로 작성합니다.

  • Mac, Windows, Linux용 데스크톱 앱
  • 출처가 함께 있는 696개 점검 전체
  • Search Console과 Analytics 4를 읽기 전용으로 연결
  • Jira, Linear, Asana로 티켓 보내기

Neova 다운로드 Desktop Free 플랜 또는 Solo 14일 무료, 카드 불필요.

접근성 점검 전체 · 가이드 · 점검 라이브러리

작성: Neova Labs · 점검 라이브러리로 돌아가기