Git Product home page Git Product logo

Comments (5)

glennsl avatar glennsl commented on June 30, 2024

You lost me. Where does the spec call it DocumentElement?

from bs-webapi-incubator.

bloodyowl avatar bloodyowl commented on June 30, 2024

Here HtmlElement is elements with a html tag: https://github.com/BuckleTypes/bs-webapi-incubator/blob/master/src/dom/html/htmlElementRe.re#L4-L5

My bad, the spec calls it HTMLHtmlElement, I got confused because it its often referred to as document.documentElement.

Although, in the spec, HTMLElement is a subclass of Element https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement, which is hard to disambiguate here with the bs-webapi naming

from bs-webapi-incubator.

glennsl avatar glennsl commented on June 30, 2024

Which are hard to disambiguate? HTMLElement is both a subtype of and inherits the implementation of Element in bs-webapi.

from bs-webapi-incubator.

bloodyowl avatar bloodyowl commented on June 30, 2024

ElementHTMLElementHTMLHtmlElement

from bs-webapi-incubator.

glennsl avatar glennsl commented on June 30, 2024

Right, yea that certainly isn't unconfusing, but I think we should stick with the spec here, for consistency. These bindings are meant to be pretty low-level, upon which more friendlier APIs can be built, but it's kind of hard to build anything on ground that's full of holes and keeps moving :)

from bs-webapi-incubator.

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.