jquery/src
Michał Gołębiowski-Owczarek b40a4807b6
Attributes: Shave off a couple of bytes
The `attrHooks` entries for boolean attributes are only defined for jQuery 4+;
jQuery 3.x used a separate mechanism - assigning them to
`jQuery.expr.attrHandle`. That object used to be maintained by Sizzle, since
jQuery 3.7.0 it's kept in the selector module. Because of that, the `isXMLDoc`
check used to be require in this hook.

Now that standard `attrHooks` are used, the `isXMLDoc` check already happens
inside of `jQuery.attr` and there's no need to repeat it in the test. Note that
this repetition is even incorrect - while Sizzle's `jQuery.find.attr` used to
treat an `undefined` output of the hooks from `jQuery.expr.attrHandle` as a way
to opt out of the hook, jQuery's `attrHooks` use `null` to opt out of a getter
hook.

Apart from the size, this patch also avoids unnecessary extra checks.

Closes gh-5398
2024-01-31 01:47:11 +01:00
..
ajax Core: Use named exports in src/ 2023-09-12 02:27:19 +02:00
attributes Attributes: Shave off a couple of bytes 2024-01-31 01:47:11 +01:00
core Manipulation: Support $el.html(selfRemovingScript) (#5378) 2024-01-08 18:30:39 +01:00
css CSS: Fix reliableTrDimensions support test for initially hidden iframes 2023-11-07 00:35:52 +01:00
data Data: Refactor to reduce size 2024-01-22 22:13:23 -05:00
deferred Core: Use named exports in src/ 2023-09-12 02:27:19 +02:00
deprecated Core: Use named exports in src/ 2023-09-12 02:27:19 +02:00
effects Core: Use named exports in src/ 2023-09-12 02:27:19 +02:00
event Core: Use named exports in src/ 2023-09-12 02:27:19 +02:00
exports Core: Use named exports in src/ 2023-09-12 02:27:19 +02:00
manipulation Data: Refactor to reduce size 2024-01-22 22:13:23 -05:00
queue Core: Use named exports in src/ 2023-09-12 02:27:19 +02:00
selector Selector: Make selector.js module depend on attributes/attr.js 2024-01-12 01:18:03 +01:00
traversing Core: Use named exports in src/ 2023-09-12 02:27:19 +02:00
var CSS:Selector: Align with 3.x, remove the outer selector.js wrapper 2023-09-20 02:31:35 +02:00
ajax.js Core: Use named exports in src/ 2023-09-12 02:27:19 +02:00
attributes.js Core: Use named exports in src/ 2023-09-12 02:27:19 +02:00
callbacks.js Core: Use named exports in src/ 2023-09-12 02:27:19 +02:00
core.js Core: Use named exports in src/ 2023-09-12 02:27:19 +02:00
css.js Selector: Eliminate selector.js depenencies from various modules 2024-01-04 01:06:40 +01:00
data.js Core: Use named exports in src/ 2023-09-12 02:27:19 +02:00
deferred.js Core: Use named exports in src/ 2023-09-12 02:27:19 +02:00
deprecated.js Core: Use named exports in src/ 2023-09-12 02:27:19 +02:00
dimensions.js Core: Use named exports in src/ 2023-09-12 02:27:19 +02:00
effects.js Data: Refactor to reduce size 2024-01-22 22:13:23 -05:00
event.js Core: Use named exports in src/ 2023-09-12 02:27:19 +02:00
jquery.js Core: Use named exports in src/ 2023-09-12 02:27:19 +02:00
manipulation.js Data: Refactor to reduce size 2024-01-22 22:13:23 -05:00
offset.js Selector: Eliminate selector.js depenencies from various modules 2024-01-04 01:06:40 +01:00
queue.js Data: Refactor to reduce size 2024-01-22 22:13:23 -05:00
selector-native.js Selector: Make selector.js module depend on attributes/attr.js 2024-01-12 01:18:03 +01:00
selector.js Selector: Make selector.js module depend on attributes/attr.js 2024-01-12 01:18:03 +01:00
serialize.js Core: Use named exports in src/ 2023-09-12 02:27:19 +02:00
traversing.js Core: Use named exports in src/ 2023-09-12 02:27:19 +02:00
wrap.js Core: Use named exports in src/ 2023-09-12 02:27:19 +02:00
wrapper-esm.js Core: Move the factory to separate exports 2023-09-19 18:58:24 +02:00
wrapper-factory-esm.js Core: Move the factory to separate exports 2023-09-19 18:58:24 +02:00
wrapper-factory.js Core: Move the factory to separate exports 2023-09-19 18:58:24 +02:00
wrapper.js Core: Move the factory to separate exports 2023-09-19 18:58:24 +02:00