WHATWG HTML Standard VS dialog-polyfill

Compare WHATWG HTML Standard vs dialog-polyfill and see what are their differences.

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
WHATWG HTML Standard dialog-polyfill
137 8
7,695 2,429
2.0% 0.1%
9.4 0.0
3 days ago 2 months ago
HTML JavaScript
GNU General Public License v3.0 or later BSD 3-clause "New" or "Revised" License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

WHATWG HTML Standard

Posts with mentions or reviews of WHATWG HTML Standard. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-13.
  • Here are the 10 projects I am contributing to over the next 6 months. Share yours
    13 projects | dev.to | 13 Apr 2024
    WHAT-WG HTML
  • Add Writingsuggestions="" Attribute
    1 project | news.ycombinator.com | 12 Mar 2024
  • Streaming HTML out of order without JavaScript
    5 projects | news.ycombinator.com | 1 Mar 2024
    There's a long-standing WHATWG feature request open for it here: https://github.com/whatwg/html/issues/2791

    And several userland custom element implementation, like https://www.npmjs.com/package//html-include-element

    One of the cool things that you can do with client-side includes and shadow DOM is render the included HTML into a shadow root that has s, so that the child content of the include element is slotted into a shell implemented by the included HTML.

    This lets you do things like have the main page be the pre-page content and the included HTML be a heavily cached site-wide shell, and then another per-user include with personalized HTML - all cached appropriately.

  • An HTML Switch Control
    4 projects | news.ycombinator.com | 28 Feb 2024
  • YouTube video embedding harm reduction
    2 projects | news.ycombinator.com | 28 Feb 2024
    The `allow` attribute on iframes is a relatively recent API addition from 2017

    https://github.com/whatwg/html/pull/3287

  • Htmz – a low power tool for HTML
    10 projects | news.ycombinator.com | 19 Feb 2024
    I think there's a pretty strong argument at this point for this kind of replacing DOM with a response behavior being part of the platform.

    I think the first step would be an element that lets you load external content into the page declaratively. There's a spec issue open for this: https://github.com/whatwg/html/issues/2791

    And my custom element implementation of the idea: https://www.npmjs.com/package/html-include-element

    Then HTML could support these elements being targets of links.

  • The Ladybird Browser Project
    8 projects | news.ycombinator.com | 6 Feb 2024
    > Consider https://www.ietf.org/rfc/rfc1866.txt vs https://html.spec.whatwg.org/multipage/

    I thought, oh, that's not so bad. Then I realized what I was looking at was a 10 page index.

  • HTML Living Standard
    1 project | news.ycombinator.com | 28 Jan 2024
  • Is Htmx Just Another JavaScript Framework?
    9 projects | news.ycombinator.com | 11 Jan 2024
    I'd love to see something like HTMX get standardized, but I'm extremely pessimistic for HTMX's prospects for standardization in HTML.

    In talking to a few standards folks about it, they've all said, "oh, yeah, you want declarative AJAX; people have tried and failed to get that standardized for years." Even just trying to get

    to target a section of the page that isn't an has been argued about and hashed out for years.<p>Why is that? Well, for example, here's the form you have to fill out to start standardizing a front-end feature. <a href="https://github.com/whatwg/html/issues/new?assignees=&labels=addition%2Fproposal%2Cneeds+implementer+interest&projects=&template=1-new-feature.yml">https://github.com/whatwg/html/issues/new?assignees=&labels=...</a><p>It asks three main questions:<p>* What problem are you trying to solve?
  • New in Chrome 120 back button detection
    3 projects | news.ycombinator.com | 5 Dec 2023
    The issue with a single global event handler is discussed here: https://github.com/WICG/close-watcher#a-single-event

    If you use popover="", you get the kind of functionality you're discussing for free. For

    , the discussion is in progress and reaching a conclusion: https://github.com/whatwg/html/issues/9373

dialog-polyfill

Posts with mentions or reviews of dialog-polyfill. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-11.
  • The <Dialog> Element
    4 projects | news.ycombinator.com | 11 Feb 2023
    > - Z-index has no effect in the top-layer. No need to compete for a higher z-index.

    This is the kind of boring feature that can end up saving huge amounts of developer time. Z-indexing in CSS is kind of annoying and I've seen projects just detach dialogs from their normal position in the DOM entirely to get around stacking errors before.

    ----

    Minor question:

    > - There is only one `top-layer` but it can have many children. Last opened === current element on top.

    Is this true? The spec says:

    > The top layer is an ordered set of elements, rendered in the order they appear in the set. The last element in the set is rendered last, and thus appears on top.

    I'm still playing around with `dialog` elements, so you may well be right, I'm just having trouble finding the actual spec rules about what happens when there are multiple dialogs and they're being simultaneously manipulated.

    ----

    > - Not supported in Safari <= 15.3

    Worth noting that there is a polyfill (https://github.com/GoogleChrome/dialog-polyfill), but that the polyfill comes with some fairly large limitations, specifically that they don't advise dialogs be used as children of elements with their own stacking context.

    This is reasonable, but also... my first thought when I originally ran into `dialog` was "finally I can stop worrying about which of my elements create new stacking contexts!" -- so it does decrease the usefulness quite a bit.

  • La espera terminó: el elemento <dialog> alcanza pleno soporte
    1 project | dev.to | 19 Apr 2022
  • Is learning Vue instead of React a mistake?
    2 projects | /r/learnjavascript | 12 Apr 2022
    Yeah, Safari is pretty often behind the other popular browsers. But, you can generally predict that by looking for any given feature on MDN and check the "Browser compatibility" section. Sometimes, there are polyfills available that sort of "force" a feature to work across every browser.
  • Can we use &lt;dialog&gt; yet?
    1 project | /r/webdev | 20 Mar 2022
    (Searching for "polyfill " will usually get you good results - in this case the first result appears to be a library maintained by the Chrome team: https://github.com/GoogleChrome/dialog-polyfill )
  • New WebKit Features in Safari 15.4
    7 projects | news.ycombinator.com | 14 Mar 2022
    This does not make sense. Of course new functionality won't work on old browsers.

    is easy to polyfill well: https://github.com/GoogleChrome/dialog-polyfill
  • Just a single tag can create this dialog box. &lt;dialog&gt; tag with open attribute created this simple styled centered box. =&gt; &lt;dialog open&gt;This is a dialog box&lt;/dialog&gt;
    1 project | /r/webdev | 13 Jan 2022
    GoogleChrome / dialog-polyfill
  • Using for Menus and Dialogs Is an Interesting Idea
    4 projects | news.ycombinator.com | 24 Apr 2021

What are some alternatives?

When comparing WHATWG HTML Standard and dialog-polyfill you can also consider the following projects:

caniuse - Raw browser/feature support data from caniuse.com

a11y-dialog - A very lightweight and flexible accessible modal dialog script.

WebKit - Home of the WebKit project, the browser engine used by Safari, Mail, App Store and many other applications on macOS, iOS and Linux.

sciter - Sciter: the Embeddable HTML/CSS/JS engine for modern UI development

standards-positions

kill-sticky - Bookmarklet to remove sticky elements and restore scrolling to web pages!

Retroactive - Retroactive only receives limited support. Run Aperture, iPhoto, and iTunes on macOS Sonoma, macOS Ventura, macOS Monterey, macOS Big Sur, and macOS Catalina. Xcode 11.7 on macOS Mojave. Final Cut Pro 7, Logic Pro 9, and iWork ’09 on macOS Mojave or macOS High Sierra.

autoprefixer - Parse CSS and add vendor prefixes to rules by Can I Use

browser

webmidi-test - 🎵 Web MIDI Test page with basic device hotplug support

exploits