• Robert Knight's avatar
    Use a custom HTML tag for the notebook's outermost element · 4fadfe13
    Robert Knight authored
    Using a generic `<div>` can result in the notebook being positioned
    incorrectly or otherwise receiving undesirable styling on pages with
    very generic selectors. For example https://example.com.
    
    Using a custom tag name reduces the risk and we already do this for
    various other UI elements in the annotator part of the app.
    
    We can protect the contents of the outermost element using Shadow DOM,
    but the outermost element itself will always be subject to the page's
    styles.
    4fadfe13
notebook.js 2.21 KB