GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • MDN
  • HTML: Markup language
  • Elements
  • Global attributes
  • Attributes
  • See all…
  • Responsive images
  • HTML cheatsheet
  • Date & time formats
  • See all…
  • SVG
  • MathML
  • XML
  • CSS: Styling language

This view

  • Original page
  • New address

GeezerVison is showing developer.mozilla.org — HTMLTemplateElement: shadowRootMode property - Web APIs | MDN

HTMLTemplateElement: shadowRootMode property

Baseline
Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since February 2024.

  • See full compatibility
  • Learn more

The shadowRootMode property of the HTMLTemplateElement interface reflects the value of the shadowrootmode attribute of the associated <template> element.

Note: This property is not useful for developers, and is only documented for completeness. If a <template> element is used to declaratively create a ShadowRoot, then this object and property do not exist. Otherwise, if an HTMLTemplateElement is created, the value of this property is irrelevant because the object is not a shadow root and cannot subsequently be changed to a shadow root.

Value

Reflects the value of the shadowrootmode attribute of the associated <template> element.

Specifications

Specification
HTML
# dom-template-shadowrootmode

Browser compatibility

See also

  • shadowrootmode attribute of the <template> element
  • ShadowRoot.mode

Help improve MDN

Learn how to contribute

This page was last modified on Feb 22, 2026 by MDN contributors.

View this page on GitHub • Report a problem with this content
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.