Bug 197726 - <main> not supported attachShadow
Summary: <main> not supported attachShadow
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Safari 12
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: 148695
  Show dependency treegraph
 
Reported: 2019-05-08 16:32 PDT by Steven
Modified: 2019-05-20 16:07 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steven 2019-05-08 16:32:35 PDT
When trying to call `attachShadow` on a `<main>` element, Safari v12.1 and Safari Technology Preview throw an error: `NotSupportedError: The operation is not supported` even though `<main>` is a valid `attachShadow` target (https://dom.spec.whatwg.org/#dom-element-attachshadow).

Test case: https://codepen.io/straker/pen/eapxaw
Comment 1 Radar WebKit Bug Importer 2019-05-10 18:33:04 PDT
<rdar://problem/50685550>