mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
https://github.com/wikimedia/eslint-plugin-no-jquery/blob/master/docs/rules/no-constructor-attributes.md The motivation for this rule is a subtle caveat buried in the documentation: https://api.jquery.com/jquery/#jQuery-html-attributes “While the second argument is convenient, its flexibility can lead to unintended consequences (e.g. $( "<input>", {size: "4"} ) calling the .size() method instead of setting the size attribute).” Signed-off-by: Anders Kaseorg <anders@zulip.com>
8.7 KiB
8.7 KiB