๐Ÿ’ก
Install DOM-AI-Bridge and click any element below The extension works on this Lit page just like any other web app.
How to test
1. Install the Chrome extension
2. Click the extension icon and press "Start Selecting"
3. Click any element on this page
4. Add an annotation and copy in AI format

๐Ÿ’ก Lit Web Components

Custom Elements ยท Shadow DOM

๐Ÿงฉ Plain DOM (Inspectable)

<button> Standard HTML element โ€” fully inspectable โœ“
<input> Standard HTML element โ€” fully inspectable โœ“
<select> Standard HTML element โ€” fully inspectable โœ“
<textarea> Standard HTML element โ€” fully inspectable โœ“
<table> Standard HTML element โ€” fully inspectable โœ“
shadow DOM note
Shadow DOM elements are encapsulated. The extension selects elements in the light DOM (the custom element host itself). Use the plain DOM elements on the left for full inspection.
dom-ai-card definition
class DomAiCard extends HTMLElement {
  connectedCallback() {
    // renders into shadow DOM
    this.attachShadow({ mode: 'open' });
    // host element IS selectable
  }
}