Lusito / tsx-dom

Lightweight DOM Libraries
https://lusito.github.io/tsx-dom/
MIT License
49 stars 17 forks source link

Add missing HTML attribute autocorrect #27

Open danielhjacobs opened 2 months ago

danielhjacobs commented 2 months ago

After seeing the comment https://github.com/Lusito/tsx-dom/pull/24#issuecomment-2241567300, I restarted the push to standardize autocorrect in https://github.com/whatwg/html/pull/5841#issuecomment-2241610963.

That PR has now been merged, and the autocorrect attribute has been added to the standard in https://html.spec.whatwg.org/multipage/interaction.html#attr-autocorrect. According to https://github.com/mdn/content/issues/35593 and looking at https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/editing/ime/input_method_controller.cc;l=1711-1716;drc=f83b758b5980e3fb3eafa11bab38116206907459, despite what MDN currently claims, it is supported in both Chromium and Safari, meaning the only mainstream browser that lacks support is Firefox (for which there exists this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1725806).