GithubHelp home page GithubHelp logo

Issues when document.body is null? about inert HOT 4 OPEN

wicg avatar wicg commented on July 1, 2024
Issues when document.body is null?

from inert.

Comments (4)

robdodson avatar robdodson commented on July 1, 2024

Do you have steps to reproduce or a full stack trace by chance?

from inert.

robdodson avatar robdodson commented on July 1, 2024

I'd be interested to know the value of this._document when you hit that error.

from inert.

rodneyrehm avatar rodneyrehm commented on July 1, 2024

While I can't reproduce this problem, I have a few ideas to share:

  • you're dealing with a non-HTML document (e.g. SVG) and therefore don't ever have document.body set to anything useful (should be a problem in every browser)
  • you've fallen victim to one of the issues described on MDN (worked around by jQuery) (should not be a problem in Firefox)
  • something removed <body> from the DOM before the document loaded, and re-attached it right after it loaded, but before inert.js could initialize (should be a problem in every browser)

from inert.

robdodson avatar robdodson commented on July 1, 2024

Hey @cycomachead are you still hitting this issue? Do you think it might be possible to log the value of this._document and this._document.body in your build? You'd need to modify the version of inert you're running.

from inert.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.