@t15i/webspecs 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +289 -0
- package/dist/lib/_virtual/_rolldown/runtime.js +18 -0
- package/dist/lib/dom/1-infrastructure/4-namespaces/valid-attribute-local-name.js +5 -0
- package/dist/lib/dom/index.js +3 -0
- package/dist/lib/ecma/05-sec-notational-conventions/02-sec-algorithm-conventions/06-sec-mathematical-operations/eqn-modulo.js +10 -0
- package/dist/lib/ecma/06-sec-ecmascript-data-types-and-values/01-sec-ecmascript-language-types/04-sec-ecmascript-language-types-string-type/index.js +7 -0
- package/dist/lib/ecma/06-sec-ecmascript-data-types-and-values/02-sec-ecmascript-specification-types/06-sec-property-descriptor-specification-type/01-sec-isaccessordescriptor/index.js +9 -0
- package/dist/lib/ecma/06-sec-ecmascript-data-types-and-values/02-sec-ecmascript-specification-types/06-sec-property-descriptor-specification-type/02-sec-isdatadescriptor/index.js +9 -0
- package/dist/lib/ecma/07-sec-abstract-operations/01-sec-type-conversion/04-sec-tonumber/index.js +5 -0
- package/dist/lib/ecma/07-sec-abstract-operations/01-sec-type-conversion/05-sec-tointegerorinfinity/index.js +13 -0
- package/dist/lib/ecma/07-sec-abstract-operations/01-sec-type-conversion/06-sec-tofixedsizeinteger/index.js +12 -0
- package/dist/lib/ecma/07-sec-abstract-operations/01-sec-type-conversion/08-sec-touint32/index.js +10 -0
- package/dist/lib/ecma/07-sec-abstract-operations/01-sec-type-conversion/18-sec-tostring/index.js +5 -0
- package/dist/lib/ecma/07-sec-abstract-operations/01-sec-type-conversion/22-sec-canonicalnumericindexstring/index.js +9 -0
- package/dist/lib/ecma/07-sec-abstract-operations/03-sec-operations-on-objects/05-sec-createdataproperty/index.js +12 -0
- package/dist/lib/ecma/10-sec-ordinary-and-exotic-objects-behaviours/01-sec-ordinary-object-internal-methods-and-internal-slots/05-sec-ordinary-object-internal-methods-and-internal-slots-getownproperty-p/01-sec-ordinarygetownproperty/index.js +7 -0
- package/dist/lib/ecma/10-sec-ordinary-and-exotic-objects-behaviours/01-sec-ordinary-object-internal-methods-and-internal-slots/06-sec-ordinary-object-internal-methods-and-internal-slots-defineownproperty-p-desc/01-sec-ordinarydefineownproperty/index.js +13 -0
- package/dist/lib/ecma/10-sec-ordinary-and-exotic-objects-behaviours/01-sec-ordinary-object-internal-methods-and-internal-slots/09-sec-ordinary-object-internal-methods-and-internal-slots-set-p-v-receiver/02-sec-ordinarysetwithowndescriptor/index.js +30 -0
- package/dist/lib/ecma/index.js +16 -0
- package/dist/lib/html/02-infrastructure/03-common-microsyntaxes/03-keywords-and-enumerated-attributes/index.js +39 -0
- package/dist/lib/html/02-infrastructure/03-common-microsyntaxes/04-numbers/01-signed-integers/rules-for-parsing-integers.js +9 -0
- package/dist/lib/html/02-infrastructure/03-common-microsyntaxes/04-numbers/01-signed-integers/valid-integer.js +7 -0
- package/dist/lib/html/02-infrastructure/03-common-microsyntaxes/04-numbers/02-non-negative-integers/rules-for-parsing-non-negative-integers.js +13 -0
- package/dist/lib/html/02-infrastructure/03-common-microsyntaxes/04-numbers/02-non-negative-integers/valid-non-negative-integer.js +7 -0
- package/dist/lib/html/02-infrastructure/03-common-microsyntaxes/04-numbers/03-floating-point-numbers/best-representation-of-the-number-as-a-floating-point-number.js +7 -0
- package/dist/lib/html/02-infrastructure/03-common-microsyntaxes/04-numbers/03-floating-point-numbers/rules-for-parsing-floating-point-number-values.js +9 -0
- package/dist/lib/html/02-infrastructure/04-urls-and-fetching/02-resolving-urls/encoding-parsing-a-url.js +10 -0
- package/dist/lib/html/02-infrastructure/04-urls-and-fetching/02-resolving-urls/encoding-parsing-and-serializing-a-url.js +13 -0
- package/dist/lib/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/DOMString.js +25 -0
- package/dist/lib/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/USVString.js +27 -0
- package/dist/lib/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/boolean.js +17 -0
- package/dist/lib/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/double.js +27 -0
- package/dist/lib/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/index.js +9 -0
- package/dist/lib/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/long.js +30 -0
- package/dist/lib/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/nullable-DOMString.js +25 -0
- package/dist/lib/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/nullable-element.js +47 -0
- package/dist/lib/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/nullable-frozen-array.js +62 -0
- package/dist/lib/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/unsigned-long.js +40 -0
- package/dist/lib/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/utils.js +15 -0
- package/dist/lib/html/02-infrastructure/06-common-dom-interfaces/index.js +10 -0
- package/dist/lib/html/02-infrastructure/index.js +19 -0
- package/dist/lib/html/index.js +21 -0
- package/dist/lib/infra/04-primitive-data-types/06-code-points/leading-surrogate.js +6 -0
- package/dist/lib/infra/04-primitive-data-types/06-code-points/surrogate.js +6 -0
- package/dist/lib/infra/04-primitive-data-types/06-code-points/trailing-surrogate.js +6 -0
- package/dist/lib/infra/04-primitive-data-types/07-strings/javascript-string-convert.js +9 -0
- package/dist/lib/infra/index.js +6 -0
- package/dist/lib/share/failure.js +5 -0
- package/dist/lib/share/index.js +3 -0
- package/dist/lib/url/4-urls/4-url-parsing/concept-url-parser.js +13 -0
- package/dist/lib/url/4-urls/5-url-serializing/concept-url-serializer.js +8 -0
- package/dist/lib/url/index.js +4 -0
- package/dist/lib/webidl/02-idl/01-idl-names/dfn-identifier.js +8 -0
- package/dist/lib/webidl/02-idl/05-idl-members/02-idl-attributes/dfn-attribute.js +7 -0
- package/dist/lib/webidl/02-idl/05-idl-members/03-idl-operations/dfn-operation.js +7 -0
- package/dist/lib/webidl/02-idl/05-idl-members/06-idl-special-operations/01-idl-indexed-properties/dfn-determine-the-value-of-an-indexed-property.js +11 -0
- package/dist/lib/webidl/02-idl/05-idl-members/06-idl-special-operations/01-idl-indexed-properties/dfn-set-the-value-of-a-new-indexed-property.js +11 -0
- package/dist/lib/webidl/02-idl/05-idl-members/06-idl-special-operations/01-idl-indexed-properties/dfn-set-the-value-of-an-existing-indexed-property.js +11 -0
- package/dist/lib/webidl/02-idl/05-idl-members/06-idl-special-operations/01-idl-indexed-properties/dfn-support-indexed-properties.js +11 -0
- package/dist/lib/webidl/02-idl/05-idl-members/06-idl-special-operations/01-idl-indexed-properties/dfn-supported-property-indices.js +11 -0
- package/dist/lib/webidl/02-idl/05-idl-members/06-idl-special-operations/02-idl-named-properties/dfn-delete-an-existing-named-property.js +11 -0
- package/dist/lib/webidl/02-idl/05-idl-members/06-idl-special-operations/02-idl-named-properties/dfn-determine-the-value-of-a-named-property.js +11 -0
- package/dist/lib/webidl/02-idl/05-idl-members/06-idl-special-operations/02-idl-named-properties/dfn-set-the-value-of-a-new-named-property.js +11 -0
- package/dist/lib/webidl/02-idl/05-idl-members/06-idl-special-operations/02-idl-named-properties/dfn-set-the-value-of-an-existing-named-property.js +11 -0
- package/dist/lib/webidl/02-idl/05-idl-members/06-idl-special-operations/02-idl-named-properties/dfn-support-named-properties.js +11 -0
- package/dist/lib/webidl/02-idl/05-idl-members/06-idl-special-operations/02-idl-named-properties/dfn-supported-property-names.js +11 -0
- package/dist/lib/webidl/02-idl/05-idl-members/06-idl-special-operations/dfn-indexed-property-getter.js +7 -0
- package/dist/lib/webidl/02-idl/05-idl-members/06-idl-special-operations/dfn-indexed-property-setter.js +7 -0
- package/dist/lib/webidl/02-idl/05-idl-members/06-idl-special-operations/dfn-named-property-deleter.js +7 -0
- package/dist/lib/webidl/02-idl/05-idl-members/06-idl-special-operations/dfn-named-property-getter.js +7 -0
- package/dist/lib/webidl/02-idl/05-idl-members/06-idl-special-operations/dfn-named-property-setter.js +7 -0
- package/dist/lib/webidl/02-idl/12-idl-objects/dfn-legacy-platform-object.js +12 -0
- package/dist/lib/webidl/02-idl/13-idl-types/index.js +9 -0
- package/dist/lib/webidl/03-javascript-binding/02-js-type-mapping/03-js-boolean/index.js +5 -0
- package/dist/lib/webidl/03-javascript-binding/02-js-type-mapping/04-js-integer-types/05-js-long/index.js +11 -0
- package/dist/lib/webidl/03-javascript-binding/02-js-type-mapping/04-js-integer-types/06-js-unsigned-long/index.js +11 -0
- package/dist/lib/webidl/03-javascript-binding/02-js-type-mapping/04-js-integer-types/09-js-integer-types-abstract-ops/abstract-opdef-converttoint.js +14 -0
- package/dist/lib/webidl/03-javascript-binding/02-js-type-mapping/04-js-integer-types/09-js-integer-types-abstract-ops/abstract-opdef-integerpart.js +9 -0
- package/dist/lib/webidl/03-javascript-binding/02-js-type-mapping/04-js-integer-types/index.js +4 -0
- package/dist/lib/webidl/03-javascript-binding/02-js-type-mapping/07-js-double/index.js +9 -0
- package/dist/lib/webidl/03-javascript-binding/02-js-type-mapping/10-js-DOMString/index.js +8 -0
- package/dist/lib/webidl/03-javascript-binding/02-js-type-mapping/12-js-USVString/index.js +11 -0
- package/dist/lib/webidl/03-javascript-binding/02-js-type-mapping/20-js-nullable-type/index.js +14 -0
- package/dist/lib/webidl/03-javascript-binding/02-js-type-mapping/21-js-sequence/01-create-sequence-from-iterable/index.js +13 -0
- package/dist/lib/webidl/03-javascript-binding/02-js-type-mapping/21-js-sequence/index.js +2 -0
- package/dist/lib/webidl/03-javascript-binding/02-js-type-mapping/21-js-sequence/sequence-type.js +13 -0
- package/dist/lib/webidl/03-javascript-binding/02-js-type-mapping/27-js-frozen-array/index.js +12 -0
- package/dist/lib/webidl/03-javascript-binding/02-js-type-mapping/index.js +14 -0
- package/dist/lib/webidl/03-javascript-binding/03-js-extended-attributes/08-Global/index.js +5 -0
- package/dist/lib/webidl/03-javascript-binding/04-js-legacy-extended-attributes/07-LegacyOverrideBuiltIns/index.js +5 -0
- package/dist/lib/webidl/03-javascript-binding/04-js-legacy-extended-attributes/09-LegacyUnenumerableNamedProperties/index.js +5 -0
- package/dist/lib/webidl/03-javascript-binding/04-js-legacy-extended-attributes/10-LegacyUnforgeable/dfn-unforgeable-on-an-interface.js +15 -0
- package/dist/lib/webidl/03-javascript-binding/04-js-legacy-extended-attributes/10-LegacyUnforgeable/index.js +7 -0
- package/dist/lib/webidl/03-javascript-binding/04-js-legacy-extended-attributes/index.js +4 -0
- package/dist/lib/webidl/03-javascript-binding/07-js-interfaces/04-named-properties-object/dfn-named-properties-object.js +7 -0
- package/dist/lib/webidl/03-javascript-binding/08-js-platform-objects/implements.js +9 -0
- package/dist/lib/webidl/03-javascript-binding/08-js-platform-objects/is-a-platform-object.js +8 -0
- package/dist/lib/webidl/03-javascript-binding/09-js-legacy-platform-objects/01-legacy-platform-object-getownproperty/index.js +10 -0
- package/dist/lib/webidl/03-javascript-binding/09-js-legacy-platform-objects/02-legacy-platform-object-set/index.js +28 -0
- package/dist/lib/webidl/03-javascript-binding/09-js-legacy-platform-objects/03-legacy-platform-object-defineownproperty/index.js +41 -0
- package/dist/lib/webidl/03-javascript-binding/09-js-legacy-platform-objects/04-legacy-platform-object-delete/index.js +36 -0
- package/dist/lib/webidl/03-javascript-binding/09-js-legacy-platform-objects/05-legacy-platform-object-preventextensions/index.js +7 -0
- package/dist/lib/webidl/03-javascript-binding/09-js-legacy-platform-objects/06-legacy-platform-object-ownpropertykeys/index.js +27 -0
- package/dist/lib/webidl/03-javascript-binding/09-js-legacy-platform-objects/07-legacy-platform-object-abstract-ops/LegacyPlatformObjectGetOwnProperty.js +57 -0
- package/dist/lib/webidl/03-javascript-binding/09-js-legacy-platform-objects/07-legacy-platform-object-abstract-ops/dfn-named-property-visibility.js +21 -0
- package/dist/lib/webidl/03-javascript-binding/09-js-legacy-platform-objects/07-legacy-platform-object-abstract-ops/index.js +5 -0
- package/dist/lib/webidl/03-javascript-binding/09-js-legacy-platform-objects/07-legacy-platform-object-abstract-ops/invoke-indexed-setter.js +22 -0
- package/dist/lib/webidl/03-javascript-binding/09-js-legacy-platform-objects/07-legacy-platform-object-abstract-ops/invoke-named-setter.js +20 -0
- package/dist/lib/webidl/03-javascript-binding/09-js-legacy-platform-objects/07-legacy-platform-object-abstract-ops/is-an-array-index.js +16 -0
- package/dist/lib/webidl/03-javascript-binding/09-js-legacy-platform-objects/dfn-unforgeable-property-name.js +16 -0
- package/dist/lib/webidl/03-javascript-binding/09-js-legacy-platform-objects/index.js +26 -0
- package/dist/lib/webidl/03-javascript-binding/index.js +29 -0
- package/dist/lib/webidl/index.js +51 -0
- package/dist/types/dom/1-infrastructure/4-namespaces/index.d.ts +1 -0
- package/dist/types/dom/1-infrastructure/4-namespaces/valid-attribute-local-name.d.ts +2 -0
- package/dist/types/dom/1-infrastructure/index.d.ts +1 -0
- package/dist/types/dom/index.d.ts +1 -0
- package/dist/types/ecma/05-sec-notational-conventions/02-sec-algorithm-conventions/06-sec-mathematical-operations/eqn-modulo.d.ts +3 -0
- package/dist/types/ecma/05-sec-notational-conventions/02-sec-algorithm-conventions/06-sec-mathematical-operations/index.d.ts +1 -0
- package/dist/types/ecma/05-sec-notational-conventions/02-sec-algorithm-conventions/index.d.ts +1 -0
- package/dist/types/ecma/05-sec-notational-conventions/index.d.ts +1 -0
- package/dist/types/ecma/06-sec-ecmascript-data-types-and-values/01-sec-ecmascript-language-types/04-sec-ecmascript-language-types-string-type/index.d.ts +1 -0
- package/dist/types/ecma/06-sec-ecmascript-data-types-and-values/01-sec-ecmascript-language-types/07-sec-object-type/index.d.ts +2 -0
- package/dist/types/ecma/06-sec-ecmascript-data-types-and-values/01-sec-ecmascript-language-types/07-sec-object-type/property-key.d.ts +1 -0
- package/dist/types/ecma/06-sec-ecmascript-data-types-and-values/01-sec-ecmascript-language-types/07-sec-object-type/property-name.d.ts +2 -0
- package/dist/types/ecma/06-sec-ecmascript-data-types-and-values/01-sec-ecmascript-language-types/index.d.ts +2 -0
- package/dist/types/ecma/06-sec-ecmascript-data-types-and-values/02-sec-ecmascript-specification-types/06-sec-property-descriptor-specification-type/01-sec-isaccessordescriptor/index.d.ts +2 -0
- package/dist/types/ecma/06-sec-ecmascript-data-types-and-values/02-sec-ecmascript-specification-types/06-sec-property-descriptor-specification-type/02-sec-isdatadescriptor/index.d.ts +2 -0
- package/dist/types/ecma/06-sec-ecmascript-data-types-and-values/02-sec-ecmascript-specification-types/06-sec-property-descriptor-specification-type/index.d.ts +2 -0
- package/dist/types/ecma/06-sec-ecmascript-data-types-and-values/02-sec-ecmascript-specification-types/index.d.ts +1 -0
- package/dist/types/ecma/06-sec-ecmascript-data-types-and-values/index.d.ts +2 -0
- package/dist/types/ecma/07-sec-abstract-operations/01-sec-type-conversion/04-sec-tonumber/index.d.ts +2 -0
- package/dist/types/ecma/07-sec-abstract-operations/01-sec-type-conversion/05-sec-tointegerorinfinity/index.d.ts +1 -0
- package/dist/types/ecma/07-sec-abstract-operations/01-sec-type-conversion/06-sec-tofixedsizeinteger/index.d.ts +2 -0
- package/dist/types/ecma/07-sec-abstract-operations/01-sec-type-conversion/08-sec-touint32/index.d.ts +2 -0
- package/dist/types/ecma/07-sec-abstract-operations/01-sec-type-conversion/18-sec-tostring/index.d.ts +1 -0
- package/dist/types/ecma/07-sec-abstract-operations/01-sec-type-conversion/22-sec-canonicalnumericindexstring/index.d.ts +1 -0
- package/dist/types/ecma/07-sec-abstract-operations/01-sec-type-conversion/index.d.ts +6 -0
- package/dist/types/ecma/07-sec-abstract-operations/03-sec-operations-on-objects/05-sec-createdataproperty/index.d.ts +3 -0
- package/dist/types/ecma/07-sec-abstract-operations/03-sec-operations-on-objects/index.d.ts +1 -0
- package/dist/types/ecma/07-sec-abstract-operations/index.d.ts +2 -0
- package/dist/types/ecma/10-sec-ordinary-and-exotic-objects-behaviours/01-sec-ordinary-object-internal-methods-and-internal-slots/05-sec-ordinary-object-internal-methods-and-internal-slots-getownproperty-p/01-sec-ordinarygetownproperty/index.d.ts +1 -0
- package/dist/types/ecma/10-sec-ordinary-and-exotic-objects-behaviours/01-sec-ordinary-object-internal-methods-and-internal-slots/05-sec-ordinary-object-internal-methods-and-internal-slots-getownproperty-p/index.d.ts +1 -0
- package/dist/types/ecma/10-sec-ordinary-and-exotic-objects-behaviours/01-sec-ordinary-object-internal-methods-and-internal-slots/06-sec-ordinary-object-internal-methods-and-internal-slots-defineownproperty-p-desc/01-sec-ordinarydefineownproperty/index.d.ts +1 -0
- package/dist/types/ecma/10-sec-ordinary-and-exotic-objects-behaviours/01-sec-ordinary-object-internal-methods-and-internal-slots/06-sec-ordinary-object-internal-methods-and-internal-slots-defineownproperty-p-desc/index.d.ts +1 -0
- package/dist/types/ecma/10-sec-ordinary-and-exotic-objects-behaviours/01-sec-ordinary-object-internal-methods-and-internal-slots/09-sec-ordinary-object-internal-methods-and-internal-slots-set-p-v-receiver/02-sec-ordinarysetwithowndescriptor/index.d.ts +1 -0
- package/dist/types/ecma/10-sec-ordinary-and-exotic-objects-behaviours/01-sec-ordinary-object-internal-methods-and-internal-slots/09-sec-ordinary-object-internal-methods-and-internal-slots-set-p-v-receiver/index.d.ts +1 -0
- package/dist/types/ecma/10-sec-ordinary-and-exotic-objects-behaviours/01-sec-ordinary-object-internal-methods-and-internal-slots/index.d.ts +3 -0
- package/dist/types/ecma/10-sec-ordinary-and-exotic-objects-behaviours/index.d.ts +1 -0
- package/dist/types/ecma/index.d.ts +4 -0
- package/dist/types/html/02-infrastructure/03-common-microsyntaxes/03-keywords-and-enumerated-attributes/index.d.ts +27 -0
- package/dist/types/html/02-infrastructure/03-common-microsyntaxes/04-numbers/01-signed-integers/index.d.ts +2 -0
- package/dist/types/html/02-infrastructure/03-common-microsyntaxes/04-numbers/01-signed-integers/rules-for-parsing-integers.d.ts +2 -0
- package/dist/types/html/02-infrastructure/03-common-microsyntaxes/04-numbers/01-signed-integers/valid-integer.d.ts +2 -0
- package/dist/types/html/02-infrastructure/03-common-microsyntaxes/04-numbers/02-non-negative-integers/index.d.ts +2 -0
- package/dist/types/html/02-infrastructure/03-common-microsyntaxes/04-numbers/02-non-negative-integers/rules-for-parsing-non-negative-integers.d.ts +2 -0
- package/dist/types/html/02-infrastructure/03-common-microsyntaxes/04-numbers/02-non-negative-integers/valid-non-negative-integer.d.ts +2 -0
- package/dist/types/html/02-infrastructure/03-common-microsyntaxes/04-numbers/03-floating-point-numbers/best-representation-of-the-number-as-a-floating-point-number.d.ts +2 -0
- package/dist/types/html/02-infrastructure/03-common-microsyntaxes/04-numbers/03-floating-point-numbers/index.d.ts +2 -0
- package/dist/types/html/02-infrastructure/03-common-microsyntaxes/04-numbers/03-floating-point-numbers/rules-for-parsing-floating-point-number-values.d.ts +2 -0
- package/dist/types/html/02-infrastructure/03-common-microsyntaxes/04-numbers/index.d.ts +3 -0
- package/dist/types/html/02-infrastructure/03-common-microsyntaxes/index.d.ts +2 -0
- package/dist/types/html/02-infrastructure/04-urls-and-fetching/02-resolving-urls/encoding-parsing-a-url.d.ts +3 -0
- package/dist/types/html/02-infrastructure/04-urls-and-fetching/02-resolving-urls/encoding-parsing-and-serializing-a-url.d.ts +3 -0
- package/dist/types/html/02-infrastructure/04-urls-and-fetching/02-resolving-urls/index.d.ts +2 -0
- package/dist/types/html/02-infrastructure/04-urls-and-fetching/index.d.ts +1 -0
- package/dist/types/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/DOMString.d.ts +14 -0
- package/dist/types/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/USVString.d.ts +10 -0
- package/dist/types/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/boolean.d.ts +6 -0
- package/dist/types/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/double.d.ts +12 -0
- package/dist/types/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/index.d.ts +12 -0
- package/dist/types/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/long.d.ts +12 -0
- package/dist/types/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/nullable-DOMString.d.ts +14 -0
- package/dist/types/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/nullable-element.d.ts +17 -0
- package/dist/types/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/nullable-frozen-array.d.ts +19 -0
- package/dist/types/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/reflected-content-attribute.d.ts +4 -0
- package/dist/types/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/reflected-idl-attribute.d.ts +4 -0
- package/dist/types/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/reflected-target.d.ts +11 -0
- package/dist/types/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/unsigned-long.d.ts +17 -0
- package/dist/types/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/utils.d.ts +5 -0
- package/dist/types/html/02-infrastructure/06-common-dom-interfaces/index.d.ts +1 -0
- package/dist/types/html/02-infrastructure/index.d.ts +3 -0
- package/dist/types/html/index.d.ts +1 -0
- package/dist/types/infra/04-primitive-data-types/06-code-points/index.d.ts +3 -0
- package/dist/types/infra/04-primitive-data-types/06-code-points/leading-surrogate.d.ts +4 -0
- package/dist/types/infra/04-primitive-data-types/06-code-points/surrogate.d.ts +4 -0
- package/dist/types/infra/04-primitive-data-types/06-code-points/trailing-surrogate.d.ts +4 -0
- package/dist/types/infra/04-primitive-data-types/07-strings/index.d.ts +1 -0
- package/dist/types/infra/04-primitive-data-types/07-strings/javascript-string-convert.d.ts +2 -0
- package/dist/types/infra/04-primitive-data-types/index.d.ts +2 -0
- package/dist/types/infra/index.d.ts +1 -0
- package/dist/types/share/failure.d.ts +1 -0
- package/dist/types/share/index.d.ts +1 -0
- package/dist/types/url/4-urls/4-url-parsing/concept-url-parser.d.ts +3 -0
- package/dist/types/url/4-urls/4-url-parsing/index.d.ts +1 -0
- package/dist/types/url/4-urls/5-url-serializing/concept-url-serializer.d.ts +2 -0
- package/dist/types/url/4-urls/5-url-serializing/index.d.ts +1 -0
- package/dist/types/url/4-urls/index.d.ts +2 -0
- package/dist/types/url/index.d.ts +1 -0
- package/dist/types/webidl/02-idl/01-idl-names/dfn-identifier.d.ts +3 -0
- package/dist/types/webidl/02-idl/01-idl-names/index.d.ts +1 -0
- package/dist/types/webidl/02-idl/02-idl-interfaces/dfn-interface.d.ts +5 -0
- package/dist/types/webidl/02-idl/02-idl-interfaces/index.d.ts +1 -0
- package/dist/types/webidl/02-idl/05-idl-members/02-idl-attributes/dfn-attribute.d.ts +7 -0
- package/dist/types/webidl/02-idl/05-idl-members/02-idl-attributes/index.d.ts +1 -0
- package/dist/types/webidl/02-idl/05-idl-members/03-idl-operations/dfn-operation.d.ts +19 -0
- package/dist/types/webidl/02-idl/05-idl-members/03-idl-operations/index.d.ts +1 -0
- package/dist/types/webidl/02-idl/05-idl-members/06-idl-special-operations/01-idl-indexed-properties/dfn-determine-the-value-of-an-indexed-property.d.ts +3 -0
- package/dist/types/webidl/02-idl/05-idl-members/06-idl-special-operations/01-idl-indexed-properties/dfn-set-the-value-of-a-new-indexed-property.d.ts +9 -0
- package/dist/types/webidl/02-idl/05-idl-members/06-idl-special-operations/01-idl-indexed-properties/dfn-set-the-value-of-an-existing-indexed-property.d.ts +9 -0
- package/dist/types/webidl/02-idl/05-idl-members/06-idl-special-operations/01-idl-indexed-properties/dfn-support-indexed-properties.d.ts +4 -0
- package/dist/types/webidl/02-idl/05-idl-members/06-idl-special-operations/01-idl-indexed-properties/dfn-supported-property-indices.d.ts +12 -0
- package/dist/types/webidl/02-idl/05-idl-members/06-idl-special-operations/01-idl-indexed-properties/index.d.ts +5 -0
- package/dist/types/webidl/02-idl/05-idl-members/06-idl-special-operations/02-idl-named-properties/dfn-delete-an-existing-named-property.d.ts +4 -0
- package/dist/types/webidl/02-idl/05-idl-members/06-idl-special-operations/02-idl-named-properties/dfn-determine-the-value-of-a-named-property.d.ts +4 -0
- package/dist/types/webidl/02-idl/05-idl-members/06-idl-special-operations/02-idl-named-properties/dfn-set-the-value-of-a-new-named-property.d.ts +10 -0
- package/dist/types/webidl/02-idl/05-idl-members/06-idl-special-operations/02-idl-named-properties/dfn-set-the-value-of-an-existing-named-property.d.ts +10 -0
- package/dist/types/webidl/02-idl/05-idl-members/06-idl-special-operations/02-idl-named-properties/dfn-support-named-properties.d.ts +4 -0
- package/dist/types/webidl/02-idl/05-idl-members/06-idl-special-operations/02-idl-named-properties/dfn-supported-property-names.d.ts +13 -0
- package/dist/types/webidl/02-idl/05-idl-members/06-idl-special-operations/02-idl-named-properties/index.d.ts +6 -0
- package/dist/types/webidl/02-idl/05-idl-members/06-idl-special-operations/dfn-indexed-property-getter.d.ts +9 -0
- package/dist/types/webidl/02-idl/05-idl-members/06-idl-special-operations/dfn-indexed-property-setter.d.ts +8 -0
- package/dist/types/webidl/02-idl/05-idl-members/06-idl-special-operations/dfn-named-property-deleter.d.ts +10 -0
- package/dist/types/webidl/02-idl/05-idl-members/06-idl-special-operations/dfn-named-property-getter.d.ts +10 -0
- package/dist/types/webidl/02-idl/05-idl-members/06-idl-special-operations/dfn-named-property-setter.d.ts +10 -0
- package/dist/types/webidl/02-idl/05-idl-members/06-idl-special-operations/index.d.ts +7 -0
- package/dist/types/webidl/02-idl/05-idl-members/dfn-member.d.ts +3 -0
- package/dist/types/webidl/02-idl/05-idl-members/index.d.ts +4 -0
- package/dist/types/webidl/02-idl/12-idl-objects/dfn-legacy-platform-object.d.ts +6 -0
- package/dist/types/webidl/02-idl/12-idl-objects/dfn-platform-object.d.ts +5 -0
- package/dist/types/webidl/02-idl/12-idl-objects/index.d.ts +2 -0
- package/dist/types/webidl/02-idl/13-idl-types/index.d.ts +3 -0
- package/dist/types/webidl/02-idl/index.d.ts +5 -0
- package/dist/types/webidl/03-javascript-binding/02-js-type-mapping/03-js-boolean/index.d.ts +3 -0
- package/dist/types/webidl/03-javascript-binding/02-js-type-mapping/04-js-integer-types/05-js-long/index.d.ts +9 -0
- package/dist/types/webidl/03-javascript-binding/02-js-type-mapping/04-js-integer-types/06-js-unsigned-long/index.d.ts +9 -0
- package/dist/types/webidl/03-javascript-binding/02-js-type-mapping/04-js-integer-types/09-js-integer-types-abstract-ops/abstract-opdef-converttoint.d.ts +2 -0
- package/dist/types/webidl/03-javascript-binding/02-js-type-mapping/04-js-integer-types/09-js-integer-types-abstract-ops/abstract-opdef-integerpart.d.ts +2 -0
- package/dist/types/webidl/03-javascript-binding/02-js-type-mapping/04-js-integer-types/09-js-integer-types-abstract-ops/index.d.ts +3 -0
- package/dist/types/webidl/03-javascript-binding/02-js-type-mapping/04-js-integer-types/index.d.ts +3 -0
- package/dist/types/webidl/03-javascript-binding/02-js-type-mapping/07-js-double/index.d.ts +2 -0
- package/dist/types/webidl/03-javascript-binding/02-js-type-mapping/10-js-DOMString/index.d.ts +4 -0
- package/dist/types/webidl/03-javascript-binding/02-js-type-mapping/12-js-USVString/index.d.ts +2 -0
- package/dist/types/webidl/03-javascript-binding/02-js-type-mapping/20-js-nullable-type/index.d.ts +2 -0
- package/dist/types/webidl/03-javascript-binding/02-js-type-mapping/21-js-sequence/01-create-sequence-from-iterable/index.d.ts +2 -0
- package/dist/types/webidl/03-javascript-binding/02-js-type-mapping/21-js-sequence/index.d.ts +2 -0
- package/dist/types/webidl/03-javascript-binding/02-js-type-mapping/21-js-sequence/sequence-type.d.ts +2 -0
- package/dist/types/webidl/03-javascript-binding/02-js-type-mapping/27-js-frozen-array/index.d.ts +2 -0
- package/dist/types/webidl/03-javascript-binding/02-js-type-mapping/index.d.ts +8 -0
- package/dist/types/webidl/03-javascript-binding/03-js-extended-attributes/08-Global/index.d.ts +7 -0
- package/dist/types/webidl/03-javascript-binding/03-js-extended-attributes/index.d.ts +1 -0
- package/dist/types/webidl/03-javascript-binding/04-js-legacy-extended-attributes/07-LegacyOverrideBuiltIns/index.d.ts +7 -0
- package/dist/types/webidl/03-javascript-binding/04-js-legacy-extended-attributes/09-LegacyUnenumerableNamedProperties/index.d.ts +7 -0
- package/dist/types/webidl/03-javascript-binding/04-js-legacy-extended-attributes/10-LegacyUnforgeable/dfn-unforgeable-on-an-interface.d.ts +3 -0
- package/dist/types/webidl/03-javascript-binding/04-js-legacy-extended-attributes/10-LegacyUnforgeable/index.d.ts +3 -0
- package/dist/types/webidl/03-javascript-binding/04-js-legacy-extended-attributes/index.d.ts +3 -0
- package/dist/types/webidl/03-javascript-binding/07-js-interfaces/04-named-properties-object/dfn-named-properties-object.d.ts +1 -0
- package/dist/types/webidl/03-javascript-binding/07-js-interfaces/04-named-properties-object/index.d.ts +1 -0
- package/dist/types/webidl/03-javascript-binding/07-js-interfaces/index.d.ts +1 -0
- package/dist/types/webidl/03-javascript-binding/08-js-platform-objects/implements.d.ts +12 -0
- package/dist/types/webidl/03-javascript-binding/08-js-platform-objects/index.d.ts +2 -0
- package/dist/types/webidl/03-javascript-binding/08-js-platform-objects/is-a-platform-object.d.ts +9 -0
- package/dist/types/webidl/03-javascript-binding/09-js-legacy-platform-objects/01-legacy-platform-object-getownproperty/index.d.ts +4 -0
- package/dist/types/webidl/03-javascript-binding/09-js-legacy-platform-objects/02-legacy-platform-object-set/index.d.ts +4 -0
- package/dist/types/webidl/03-javascript-binding/09-js-legacy-platform-objects/03-legacy-platform-object-defineownproperty/index.d.ts +4 -0
- package/dist/types/webidl/03-javascript-binding/09-js-legacy-platform-objects/04-legacy-platform-object-delete/index.d.ts +3 -0
- package/dist/types/webidl/03-javascript-binding/09-js-legacy-platform-objects/05-legacy-platform-object-preventextensions/index.d.ts +1 -0
- package/dist/types/webidl/03-javascript-binding/09-js-legacy-platform-objects/06-legacy-platform-object-ownpropertykeys/index.d.ts +4 -0
- package/dist/types/webidl/03-javascript-binding/09-js-legacy-platform-objects/07-legacy-platform-object-abstract-ops/LegacyPlatformObjectGetOwnProperty.d.ts +3 -0
- package/dist/types/webidl/03-javascript-binding/09-js-legacy-platform-objects/07-legacy-platform-object-abstract-ops/dfn-named-property-visibility.d.ts +4 -0
- package/dist/types/webidl/03-javascript-binding/09-js-legacy-platform-objects/07-legacy-platform-object-abstract-ops/index.d.ts +5 -0
- package/dist/types/webidl/03-javascript-binding/09-js-legacy-platform-objects/07-legacy-platform-object-abstract-ops/invoke-indexed-setter.d.ts +3 -0
- package/dist/types/webidl/03-javascript-binding/09-js-legacy-platform-objects/07-legacy-platform-object-abstract-ops/invoke-named-setter.d.ts +4 -0
- package/dist/types/webidl/03-javascript-binding/09-js-legacy-platform-objects/07-legacy-platform-object-abstract-ops/is-an-array-index.d.ts +2 -0
- package/dist/types/webidl/03-javascript-binding/09-js-legacy-platform-objects/dfn-unforgeable-property-name.d.ts +2 -0
- package/dist/types/webidl/03-javascript-binding/09-js-legacy-platform-objects/index.d.ts +16 -0
- package/dist/types/webidl/03-javascript-binding/index.d.ts +6 -0
- package/dist/types/webidl/index.d.ts +2 -0
- package/package.json +96 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { failure } from "../../../../share/failure.js";
|
|
2
|
+
import { urlSerializer } from "../../../../url/4-urls/5-url-serializing/concept-url-serializer.js";
|
|
3
|
+
import { encodingParseURL } from "./encoding-parsing-a-url.js";
|
|
4
|
+
|
|
5
|
+
//#region lib/html/02-infrastructure/04-urls-and-fetching/02-resolving-urls/encoding-parsing-and-serializing-a-url.ts
|
|
6
|
+
function encodingParseAndSerializeURL(url, document) {
|
|
7
|
+
const urlRecord = encodingParseURL(url, document);
|
|
8
|
+
if (urlRecord === failure) return failure;
|
|
9
|
+
return urlSerializer(urlRecord);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { encodingParseAndSerializeURL };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { __exportAll } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import "../../../index.js";
|
|
3
|
+
|
|
4
|
+
//#region lib/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/DOMString.ts
|
|
5
|
+
var DOMString_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
getter: () => getter,
|
|
7
|
+
setter: () => setter
|
|
8
|
+
});
|
|
9
|
+
function getter(reflectedIDLAttribute, reflectedContentAttribute) {
|
|
10
|
+
const contentAttributeValue = this.getContentAttribute();
|
|
11
|
+
const attributeDefinition = reflectedContentAttribute;
|
|
12
|
+
if (attributeDefinition.states !== null && reflectedIDLAttribute.limitedToOnlyKnownValue) {
|
|
13
|
+
const state = attributeDefinition.states.get(contentAttributeValue);
|
|
14
|
+
if (state === null || state.keywords.size === 0) return "";
|
|
15
|
+
return state.canonicalKeyword;
|
|
16
|
+
}
|
|
17
|
+
if (contentAttributeValue === null) return "";
|
|
18
|
+
return contentAttributeValue;
|
|
19
|
+
}
|
|
20
|
+
function setter(_, __, value) {
|
|
21
|
+
this.setContentAttribute(value);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { DOMString_exports };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { __exportAll } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { failure } from "../../../../share/failure.js";
|
|
3
|
+
import { encodingParseAndSerializeURL } from "../../04-urls-and-fetching/02-resolving-urls/encoding-parsing-and-serializing-a-url.js";
|
|
4
|
+
import { convertStringIntoScalarValueString } from "../../../../infra/04-primitive-data-types/07-strings/javascript-string-convert.js";
|
|
5
|
+
import "../../../index.js";
|
|
6
|
+
|
|
7
|
+
//#region lib/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/USVString.ts
|
|
8
|
+
var USVString_exports = /* @__PURE__ */ __exportAll({
|
|
9
|
+
getter: () => getter,
|
|
10
|
+
setter: () => setter
|
|
11
|
+
});
|
|
12
|
+
function getter(reflectedIDLAttribute) {
|
|
13
|
+
const element = this.getElement();
|
|
14
|
+
const contentAttributeValue = this.getContentAttribute();
|
|
15
|
+
if (contentAttributeValue === null) return "";
|
|
16
|
+
if (reflectedIDLAttribute.treatedAsURL) {
|
|
17
|
+
const urlString = encodingParseAndSerializeURL(contentAttributeValue, element.ownerDocument);
|
|
18
|
+
if (urlString !== failure) return urlString;
|
|
19
|
+
}
|
|
20
|
+
return convertStringIntoScalarValueString(contentAttributeValue);
|
|
21
|
+
}
|
|
22
|
+
function setter(_, __, value) {
|
|
23
|
+
this.setContentAttribute(value);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
export { USVString_exports };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __exportAll } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
|
|
3
|
+
//#region lib/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/boolean.ts
|
|
4
|
+
var boolean_exports = /* @__PURE__ */ __exportAll({
|
|
5
|
+
getter: () => getter,
|
|
6
|
+
setter: () => setter
|
|
7
|
+
});
|
|
8
|
+
function getter() {
|
|
9
|
+
return this.getContentAttribute() !== null;
|
|
10
|
+
}
|
|
11
|
+
function setter(_, __, value) {
|
|
12
|
+
if (value === false) this.deleteContentAttribute();
|
|
13
|
+
if (value === true) this.setContentAttribute("");
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { boolean_exports };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { __exportAll } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { bestRepresentationAsFloatingPointNumber } from "../../03-common-microsyntaxes/04-numbers/03-floating-point-numbers/best-representation-of-the-number-as-a-floating-point-number.js";
|
|
3
|
+
import { floatingPointNumberParsing } from "../../03-common-microsyntaxes/04-numbers/03-floating-point-numbers/rules-for-parsing-floating-point-number-values.js";
|
|
4
|
+
import "../../../index.js";
|
|
5
|
+
|
|
6
|
+
//#region lib/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/double.ts
|
|
7
|
+
var double_exports = /* @__PURE__ */ __exportAll({
|
|
8
|
+
getter: () => getter,
|
|
9
|
+
setter: () => setter
|
|
10
|
+
});
|
|
11
|
+
function getter(reflectedIDLAttribute) {
|
|
12
|
+
const contentAttributeValue = this.getContentAttribute();
|
|
13
|
+
if (contentAttributeValue !== null) {
|
|
14
|
+
const parsedValue = floatingPointNumberParsing(contentAttributeValue);
|
|
15
|
+
if (parsedValue !== "error" && parsedValue > 0) return parsedValue;
|
|
16
|
+
if (parsedValue !== "error" && !reflectedIDLAttribute.limitedToOnlyPositiveNumbers) return parsedValue;
|
|
17
|
+
}
|
|
18
|
+
if (reflectedIDLAttribute.defaultValue !== null) return reflectedIDLAttribute.defaultValue;
|
|
19
|
+
return 0;
|
|
20
|
+
}
|
|
21
|
+
function setter(reflectedIDLAttribute, _, value) {
|
|
22
|
+
if (reflectedIDLAttribute.limitedToOnlyPositiveNumbers && value <= 0) return;
|
|
23
|
+
this.setContentAttribute(bestRepresentationAsFloatingPointNumber(value));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
export { double_exports };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { boolean_exports } from "./boolean.js";
|
|
2
|
+
import { DOMString_exports } from "./DOMString.js";
|
|
3
|
+
import { double_exports } from "./double.js";
|
|
4
|
+
import { long_exports } from "./long.js";
|
|
5
|
+
import { nullable_DOMString_exports } from "./nullable-DOMString.js";
|
|
6
|
+
import { nullable_element_exports } from "./nullable-element.js";
|
|
7
|
+
import { nullable_frozen_array_exports } from "./nullable-frozen-array.js";
|
|
8
|
+
import { unsigned_long_exports } from "./unsigned-long.js";
|
|
9
|
+
import { USVString_exports } from "./USVString.js";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { __exportAll } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { integerParsing } from "../../03-common-microsyntaxes/04-numbers/01-signed-integers/rules-for-parsing-integers.js";
|
|
3
|
+
import { shortestPossibleStringRepresentingAsValidInteger } from "../../03-common-microsyntaxes/04-numbers/01-signed-integers/valid-integer.js";
|
|
4
|
+
import { nonNegativeIntegerParsing } from "../../03-common-microsyntaxes/04-numbers/02-non-negative-integers/rules-for-parsing-non-negative-integers.js";
|
|
5
|
+
import { Long } from "../../../../webidl/03-javascript-binding/02-js-type-mapping/04-js-integer-types/05-js-long/index.js";
|
|
6
|
+
import "../../../../webidl/index.js";
|
|
7
|
+
import "../../../index.js";
|
|
8
|
+
|
|
9
|
+
//#region lib/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/long.ts
|
|
10
|
+
var long_exports = /* @__PURE__ */ __exportAll({
|
|
11
|
+
getter: () => getter,
|
|
12
|
+
setter: () => setter
|
|
13
|
+
});
|
|
14
|
+
function getter(reflectedIDLAttribute) {
|
|
15
|
+
const contentAttributeValue = this.getContentAttribute();
|
|
16
|
+
if (contentAttributeValue !== null) {
|
|
17
|
+
const parsedValue = reflectedIDLAttribute.limitedToOnlyNonNegativeNumbers ? nonNegativeIntegerParsing(contentAttributeValue) : integerParsing(contentAttributeValue);
|
|
18
|
+
if (parsedValue !== "error" && parsedValue >= Long.MIN && parsedValue <= Long.MAX) return parsedValue;
|
|
19
|
+
}
|
|
20
|
+
if (reflectedIDLAttribute.defaultValue !== null) return reflectedIDLAttribute.defaultValue;
|
|
21
|
+
if (reflectedIDLAttribute.limitedToOnlyNonNegativeNumbers) return -1;
|
|
22
|
+
return 0;
|
|
23
|
+
}
|
|
24
|
+
function setter(reflectedIDLAttribute, _, value) {
|
|
25
|
+
if (reflectedIDLAttribute.limitedToOnlyNonNegativeNumbers && value < 0) throw new DOMException(`The value provided (${value}) is not positive or 0.`, "IndexSizeError");
|
|
26
|
+
this.setContentAttribute(shortestPossibleStringRepresentingAsValidInteger(value));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
export { long_exports };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { __exportAll } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import "../../../index.js";
|
|
3
|
+
|
|
4
|
+
//#region lib/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/nullable-DOMString.ts
|
|
5
|
+
var nullable_DOMString_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
getter: () => getter,
|
|
7
|
+
setter: () => setter
|
|
8
|
+
});
|
|
9
|
+
function getter(_, reflectedContentAttribute) {
|
|
10
|
+
const contentAttributeValue = this.getContentAttribute();
|
|
11
|
+
const attributeDefinition = reflectedContentAttribute;
|
|
12
|
+
if (attributeDefinition.states !== null) {
|
|
13
|
+
const state = attributeDefinition.states.get(contentAttributeValue);
|
|
14
|
+
if (state?.canonicalKeyword === void 0) return null;
|
|
15
|
+
return state.canonicalKeyword;
|
|
16
|
+
}
|
|
17
|
+
return contentAttributeValue;
|
|
18
|
+
}
|
|
19
|
+
function setter(_, __, value) {
|
|
20
|
+
if (value === null) this.deleteContentAttribute();
|
|
21
|
+
else this.setContentAttribute(value);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { nullable_DOMString_exports };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { __exportAll } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { firstElementInTreeOrderThatMeetsCriteria } from "./utils.js";
|
|
3
|
+
|
|
4
|
+
//#region lib/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/nullable-element.ts
|
|
5
|
+
var nullable_element_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
attributeChanged: () => attributeChanged,
|
|
7
|
+
getAssociatedElement: () => getAssociatedElement,
|
|
8
|
+
getter: () => getter,
|
|
9
|
+
setter: () => setter
|
|
10
|
+
});
|
|
11
|
+
function getAssociatedElement(reflectedIDLAttribute) {
|
|
12
|
+
const element = this.getElement();
|
|
13
|
+
const contentAttributeValue = this.getContentAttribute();
|
|
14
|
+
if (this.explicitlySetElement !== null) {
|
|
15
|
+
const explicitlySetElement = this.explicitlySetElement.deref();
|
|
16
|
+
if (explicitlySetElement?.getRootNode() === element.getRootNode()) return explicitlySetElement;
|
|
17
|
+
return null;
|
|
18
|
+
} else if (contentAttributeValue !== null) {
|
|
19
|
+
const candidate = firstElementInTreeOrderThatMeetsCriteria({
|
|
20
|
+
root: element.getRootNode(),
|
|
21
|
+
id: contentAttributeValue,
|
|
22
|
+
T: reflectedIDLAttribute.T
|
|
23
|
+
});
|
|
24
|
+
if (candidate !== null) return candidate;
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
function getter() {
|
|
30
|
+
return this.getAssociatedElement();
|
|
31
|
+
}
|
|
32
|
+
function setter(_, __, value) {
|
|
33
|
+
if (value === null) {
|
|
34
|
+
this.explicitlySetElement = null;
|
|
35
|
+
this.deleteContentAttribute();
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
this.setContentAttribute("");
|
|
39
|
+
this.explicitlySetElement = new WeakRef(value);
|
|
40
|
+
}
|
|
41
|
+
function attributeChanged(_, reflectedContentAttribute, __, localName, ___, ____, namespace) {
|
|
42
|
+
if (localName !== reflectedContentAttribute.name || namespace !== null) return;
|
|
43
|
+
this.explicitlySetElement = null;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
//#endregion
|
|
47
|
+
export { nullable_element_exports };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { __exportAll } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { Type } from "../../../../webidl/02-idl/13-idl-types/index.js";
|
|
3
|
+
import { FrozenArray } from "../../../../webidl/03-javascript-binding/02-js-type-mapping/27-js-frozen-array/index.js";
|
|
4
|
+
import "../../../../webidl/index.js";
|
|
5
|
+
import { firstElementInTreeOrderThatMeetsCriteria } from "./utils.js";
|
|
6
|
+
|
|
7
|
+
//#region lib/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/nullable-frozen-array.ts
|
|
8
|
+
var nullable_frozen_array_exports = /* @__PURE__ */ __exportAll({
|
|
9
|
+
attributeChanged: () => attributeChanged,
|
|
10
|
+
getAssociatedElements: () => getAssociatedElements,
|
|
11
|
+
getter: () => getter,
|
|
12
|
+
setter: () => setter
|
|
13
|
+
});
|
|
14
|
+
function getAssociatedElements(reflectedIDLAttribute) {
|
|
15
|
+
const elements = [];
|
|
16
|
+
const element = this.getElement();
|
|
17
|
+
if (this.explicitlySetElements !== null) for (const attrElementRef of this.explicitlySetElements) {
|
|
18
|
+
const attrElement = attrElementRef.deref();
|
|
19
|
+
if (attrElement?.getRootNode() === element.getRootNode()) elements.push(attrElement);
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
const contentAttributeValue = this.getContentAttribute();
|
|
23
|
+
if (contentAttributeValue === null) return null;
|
|
24
|
+
const tokens = contentAttributeValue.split(" ");
|
|
25
|
+
for (const id of tokens) {
|
|
26
|
+
const candidate = firstElementInTreeOrderThatMeetsCriteria({
|
|
27
|
+
root: element.getRootNode(),
|
|
28
|
+
id,
|
|
29
|
+
T: reflectedIDLAttribute.T
|
|
30
|
+
});
|
|
31
|
+
if (candidate === null) continue;
|
|
32
|
+
elements.push(candidate);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return elements;
|
|
36
|
+
}
|
|
37
|
+
function getter(reflectedIDLAttribute) {
|
|
38
|
+
const elements = this.getAssociatedElements();
|
|
39
|
+
if (elements === null && this.cachedAssociatedElements === null) return null;
|
|
40
|
+
if (elements !== null && this.cachedAssociatedElements !== null && elements.length === this.cachedAssociatedElements.length && elements.every((element, index) => element === this.cachedAssociatedElements?.[index])) return this.cachedAssociatedElements;
|
|
41
|
+
const elementsAsFrozenArray = FrozenArray(Type(reflectedIDLAttribute.T), elements);
|
|
42
|
+
this.cachedAssociatedElements = elementsAsFrozenArray;
|
|
43
|
+
return elementsAsFrozenArray;
|
|
44
|
+
}
|
|
45
|
+
function setter(_, __, value) {
|
|
46
|
+
if (value === null) {
|
|
47
|
+
this.explicitlySetElements = null;
|
|
48
|
+
this.deleteContentAttribute();
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
this.setContentAttribute("");
|
|
52
|
+
const elements = [];
|
|
53
|
+
for (const element of value) elements.push(new WeakRef(element));
|
|
54
|
+
this.explicitlySetElements = elements;
|
|
55
|
+
}
|
|
56
|
+
function attributeChanged(_, reflectedContentAttribute, __, localName, ___, ____, namespace) {
|
|
57
|
+
if (localName !== reflectedContentAttribute.name || namespace !== null) return;
|
|
58
|
+
this.explicitlySetElements = null;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
//#endregion
|
|
62
|
+
export { nullable_frozen_array_exports };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { __exportAll } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { nonNegativeIntegerParsing } from "../../03-common-microsyntaxes/04-numbers/02-non-negative-integers/rules-for-parsing-non-negative-integers.js";
|
|
3
|
+
import { shortestPossibleRepresentingAsValidNonNegativeInteger } from "../../03-common-microsyntaxes/04-numbers/02-non-negative-integers/valid-non-negative-integer.js";
|
|
4
|
+
import "../../../index.js";
|
|
5
|
+
|
|
6
|
+
//#region lib/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/unsigned-long.ts
|
|
7
|
+
var unsigned_long_exports = /* @__PURE__ */ __exportAll({
|
|
8
|
+
getter: () => getter,
|
|
9
|
+
setter: () => setter
|
|
10
|
+
});
|
|
11
|
+
function getter(reflectedIDLAttribute) {
|
|
12
|
+
const contentAttributeValue = this.getContentAttribute();
|
|
13
|
+
let minimum = 0;
|
|
14
|
+
if (reflectedIDLAttribute.limitedToOnlyPositiveNumbers || reflectedIDLAttribute.limitedToOnlyPositiveNumbersWithFallback) minimum = 1;
|
|
15
|
+
if (reflectedIDLAttribute.clampedToRange) minimum = reflectedIDLAttribute.clampedMin;
|
|
16
|
+
let maximum = 2147483647;
|
|
17
|
+
if (reflectedIDLAttribute.clampedToRange) maximum = reflectedIDLAttribute.clampedMax;
|
|
18
|
+
if (contentAttributeValue !== null) {
|
|
19
|
+
const parsedValue = nonNegativeIntegerParsing(contentAttributeValue);
|
|
20
|
+
if (parsedValue !== "error" && parsedValue >= minimum && parsedValue <= maximum) return parsedValue;
|
|
21
|
+
if (parsedValue !== "error" && reflectedIDLAttribute.clampedToRange) {
|
|
22
|
+
if (parsedValue < minimum) return minimum;
|
|
23
|
+
return maximum;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
if (reflectedIDLAttribute.defaultValue !== null) return reflectedIDLAttribute.defaultValue;
|
|
27
|
+
return minimum;
|
|
28
|
+
}
|
|
29
|
+
function setter(reflectedIDLAttribute, _, value) {
|
|
30
|
+
if (reflectedIDLAttribute.limitedToOnlyPositiveNumbers && value === 0) throw new DOMException(`The value provided is ${value}, which is an invalid index or size.`, "IndexSizeError");
|
|
31
|
+
let minimum = 0;
|
|
32
|
+
if (reflectedIDLAttribute.limitedToOnlyPositiveNumbers || reflectedIDLAttribute.limitedToOnlyPositiveNumbersWithFallback) minimum = 1;
|
|
33
|
+
let newValue = minimum;
|
|
34
|
+
if (reflectedIDLAttribute.defaultValue !== null) newValue = reflectedIDLAttribute.defaultValue;
|
|
35
|
+
if (value >= minimum && value <= 2147483647) newValue = value;
|
|
36
|
+
this.setContentAttribute(shortestPossibleRepresentingAsValidNonNegativeInteger(newValue));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
export { unsigned_long_exports };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region lib/html/02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/utils.ts
|
|
2
|
+
function firstElementInTreeOrderThatMeetsCriteria(criteria) {
|
|
3
|
+
if (criteria.T.prototype instanceof HTMLElement) {
|
|
4
|
+
const document = criteria.root instanceof Document ? criteria.root : criteria.root.ownerDocument;
|
|
5
|
+
let element;
|
|
6
|
+
if ((element = document?.getElementById(criteria.id) ?? null) !== null && element.getRootNode() === criteria.root && element instanceof criteria.T) return element;
|
|
7
|
+
}
|
|
8
|
+
return document.createTreeWalker(criteria.root, NodeFilter.SHOW_ELEMENT, function(element) {
|
|
9
|
+
if (element instanceof criteria.T && element.id === criteria.id) return NodeFilter.FILTER_ACCEPT;
|
|
10
|
+
return NodeFilter.FILTER_REJECT;
|
|
11
|
+
}).nextNode();
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { firstElementInTreeOrderThatMeetsCriteria };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { boolean_exports } from "./01-reflecting-content-attributes-in-idl-attributes/boolean.js";
|
|
2
|
+
import { DOMString_exports } from "./01-reflecting-content-attributes-in-idl-attributes/DOMString.js";
|
|
3
|
+
import { double_exports } from "./01-reflecting-content-attributes-in-idl-attributes/double.js";
|
|
4
|
+
import { long_exports } from "./01-reflecting-content-attributes-in-idl-attributes/long.js";
|
|
5
|
+
import { nullable_DOMString_exports } from "./01-reflecting-content-attributes-in-idl-attributes/nullable-DOMString.js";
|
|
6
|
+
import { nullable_element_exports } from "./01-reflecting-content-attributes-in-idl-attributes/nullable-element.js";
|
|
7
|
+
import { nullable_frozen_array_exports } from "./01-reflecting-content-attributes-in-idl-attributes/nullable-frozen-array.js";
|
|
8
|
+
import { unsigned_long_exports } from "./01-reflecting-content-attributes-in-idl-attributes/unsigned-long.js";
|
|
9
|
+
import { USVString_exports } from "./01-reflecting-content-attributes-in-idl-attributes/USVString.js";
|
|
10
|
+
import "./01-reflecting-content-attributes-in-idl-attributes/index.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EnumeratedAttributeState, EnumeratedAttributeStates } from "./03-common-microsyntaxes/03-keywords-and-enumerated-attributes/index.js";
|
|
2
|
+
import { integerParsing } from "./03-common-microsyntaxes/04-numbers/01-signed-integers/rules-for-parsing-integers.js";
|
|
3
|
+
import { shortestPossibleStringRepresentingAsValidInteger } from "./03-common-microsyntaxes/04-numbers/01-signed-integers/valid-integer.js";
|
|
4
|
+
import { nonNegativeIntegerParsing } from "./03-common-microsyntaxes/04-numbers/02-non-negative-integers/rules-for-parsing-non-negative-integers.js";
|
|
5
|
+
import { shortestPossibleRepresentingAsValidNonNegativeInteger } from "./03-common-microsyntaxes/04-numbers/02-non-negative-integers/valid-non-negative-integer.js";
|
|
6
|
+
import { bestRepresentationAsFloatingPointNumber } from "./03-common-microsyntaxes/04-numbers/03-floating-point-numbers/best-representation-of-the-number-as-a-floating-point-number.js";
|
|
7
|
+
import { floatingPointNumberParsing } from "./03-common-microsyntaxes/04-numbers/03-floating-point-numbers/rules-for-parsing-floating-point-number-values.js";
|
|
8
|
+
import { encodingParseURL } from "./04-urls-and-fetching/02-resolving-urls/encoding-parsing-a-url.js";
|
|
9
|
+
import { encodingParseAndSerializeURL } from "./04-urls-and-fetching/02-resolving-urls/encoding-parsing-and-serializing-a-url.js";
|
|
10
|
+
import { boolean_exports } from "./06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/boolean.js";
|
|
11
|
+
import { DOMString_exports } from "./06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/DOMString.js";
|
|
12
|
+
import { double_exports } from "./06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/double.js";
|
|
13
|
+
import { long_exports } from "./06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/long.js";
|
|
14
|
+
import { nullable_DOMString_exports } from "./06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/nullable-DOMString.js";
|
|
15
|
+
import { nullable_element_exports } from "./06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/nullable-element.js";
|
|
16
|
+
import { nullable_frozen_array_exports } from "./06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/nullable-frozen-array.js";
|
|
17
|
+
import { unsigned_long_exports } from "./06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/unsigned-long.js";
|
|
18
|
+
import { USVString_exports } from "./06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/USVString.js";
|
|
19
|
+
import "./06-common-dom-interfaces/index.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EnumeratedAttributeState, EnumeratedAttributeStates } from "./02-infrastructure/03-common-microsyntaxes/03-keywords-and-enumerated-attributes/index.js";
|
|
2
|
+
import { integerParsing } from "./02-infrastructure/03-common-microsyntaxes/04-numbers/01-signed-integers/rules-for-parsing-integers.js";
|
|
3
|
+
import { shortestPossibleStringRepresentingAsValidInteger } from "./02-infrastructure/03-common-microsyntaxes/04-numbers/01-signed-integers/valid-integer.js";
|
|
4
|
+
import { nonNegativeIntegerParsing } from "./02-infrastructure/03-common-microsyntaxes/04-numbers/02-non-negative-integers/rules-for-parsing-non-negative-integers.js";
|
|
5
|
+
import { shortestPossibleRepresentingAsValidNonNegativeInteger } from "./02-infrastructure/03-common-microsyntaxes/04-numbers/02-non-negative-integers/valid-non-negative-integer.js";
|
|
6
|
+
import { bestRepresentationAsFloatingPointNumber } from "./02-infrastructure/03-common-microsyntaxes/04-numbers/03-floating-point-numbers/best-representation-of-the-number-as-a-floating-point-number.js";
|
|
7
|
+
import { floatingPointNumberParsing } from "./02-infrastructure/03-common-microsyntaxes/04-numbers/03-floating-point-numbers/rules-for-parsing-floating-point-number-values.js";
|
|
8
|
+
import { encodingParseURL } from "./02-infrastructure/04-urls-and-fetching/02-resolving-urls/encoding-parsing-a-url.js";
|
|
9
|
+
import { encodingParseAndSerializeURL } from "./02-infrastructure/04-urls-and-fetching/02-resolving-urls/encoding-parsing-and-serializing-a-url.js";
|
|
10
|
+
import { boolean_exports } from "./02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/boolean.js";
|
|
11
|
+
import { DOMString_exports } from "./02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/DOMString.js";
|
|
12
|
+
import { double_exports } from "./02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/double.js";
|
|
13
|
+
import { long_exports } from "./02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/long.js";
|
|
14
|
+
import { nullable_DOMString_exports } from "./02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/nullable-DOMString.js";
|
|
15
|
+
import { nullable_element_exports } from "./02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/nullable-element.js";
|
|
16
|
+
import { nullable_frozen_array_exports } from "./02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/nullable-frozen-array.js";
|
|
17
|
+
import { unsigned_long_exports } from "./02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/unsigned-long.js";
|
|
18
|
+
import { USVString_exports } from "./02-infrastructure/06-common-dom-interfaces/01-reflecting-content-attributes-in-idl-attributes/USVString.js";
|
|
19
|
+
import "./02-infrastructure/index.js";
|
|
20
|
+
|
|
21
|
+
export { EnumeratedAttributeState, EnumeratedAttributeStates, boolean_exports as ReflectedBoolean, DOMString_exports as ReflectedDOMString, double_exports as ReflectedDouble, long_exports as ReflectedLong, nullable_DOMString_exports as ReflectedNullableDOMString, nullable_element_exports as ReflectedNullableElement, nullable_frozen_array_exports as ReflectedNullableFrozenArrayOfElements, USVString_exports as ReflectedUSVString, unsigned_long_exports as ReflectedUnsignedLong, bestRepresentationAsFloatingPointNumber, encodingParseAndSerializeURL, encodingParseURL, floatingPointNumberParsing, integerParsing, nonNegativeIntegerParsing, shortestPossibleRepresentingAsValidNonNegativeInteger, shortestPossibleStringRepresentingAsValidInteger };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { surrogates } from "../06-code-points/surrogate.js";
|
|
2
|
+
|
|
3
|
+
//#region lib/infra/04-primitive-data-types/07-strings/javascript-string-convert.ts
|
|
4
|
+
function convertStringIntoScalarValueString(string) {
|
|
5
|
+
return string.replaceAll(surrogates, "�");
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { convertStringIntoScalarValueString };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { leadingSurrogate, leadingSurrogates } from "./04-primitive-data-types/06-code-points/leading-surrogate.js";
|
|
2
|
+
import { surrogate, surrogates } from "./04-primitive-data-types/06-code-points/surrogate.js";
|
|
3
|
+
import { trailingSurrogate, trailingSurrogates } from "./04-primitive-data-types/06-code-points/trailing-surrogate.js";
|
|
4
|
+
import { convertStringIntoScalarValueString } from "./04-primitive-data-types/07-strings/javascript-string-convert.js";
|
|
5
|
+
|
|
6
|
+
export { convertStringIntoScalarValueString, leadingSurrogate, leadingSurrogates, surrogate, surrogates, trailingSurrogate, trailingSurrogates };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { failure } from "../../../share/failure.js";
|
|
2
|
+
|
|
3
|
+
//#region lib/url/4-urls/4-url-parsing/concept-url-parser.ts
|
|
4
|
+
function urlParser(input, base = null, encoding = "UTF-8") {
|
|
5
|
+
try {
|
|
6
|
+
return new URL(input, base ?? void 0);
|
|
7
|
+
} catch {
|
|
8
|
+
return failure;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { urlParser };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IndexedPropertyGetter } from "../dfn-indexed-property-getter.js";
|
|
2
|
+
import { PrimaryInterface } from "../../../../03-javascript-binding/08-js-platform-objects/is-a-platform-object.js";
|
|
3
|
+
import "../../../../index.js";
|
|
4
|
+
|
|
5
|
+
//#region lib/webidl/02-idl/05-idl-members/06-idl-special-operations/01-idl-indexed-properties/dfn-determine-the-value-of-an-indexed-property.ts
|
|
6
|
+
function determineValueOfIndexedProperty(o, index) {
|
|
7
|
+
return o[PrimaryInterface][IndexedPropertyGetter].methodSteps(index);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { determineValueOfIndexedProperty };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PrimaryInterface } from "../../../../03-javascript-binding/08-js-platform-objects/is-a-platform-object.js";
|
|
2
|
+
import "../../../../index.js";
|
|
3
|
+
|
|
4
|
+
//#region lib/webidl/02-idl/05-idl-members/06-idl-special-operations/01-idl-indexed-properties/dfn-set-the-value-of-a-new-indexed-property.ts
|
|
5
|
+
var NewIndexedPropertySetter = Symbol.for("@t15i/web-spec/webidl/NewIndexedPropertySetter");
|
|
6
|
+
function setValueOfNewIndexedProperty(o, index, value) {
|
|
7
|
+
return o[PrimaryInterface][NewIndexedPropertySetter].call(o, index, value);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { NewIndexedPropertySetter, setValueOfNewIndexedProperty };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PrimaryInterface } from "../../../../03-javascript-binding/08-js-platform-objects/is-a-platform-object.js";
|
|
2
|
+
import "../../../../index.js";
|
|
3
|
+
|
|
4
|
+
//#region lib/webidl/02-idl/05-idl-members/06-idl-special-operations/01-idl-indexed-properties/dfn-set-the-value-of-an-existing-indexed-property.ts
|
|
5
|
+
var ExistingIndexedPropertySetter = Symbol.for("@t15i/web-spec/webidl/ExistingIndexedPropertySetter");
|
|
6
|
+
function setValueOfExistingIndexedProperty(o, index, value) {
|
|
7
|
+
return o[PrimaryInterface][ExistingIndexedPropertySetter].call(o, index, value);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { ExistingIndexedPropertySetter, setValueOfExistingIndexedProperty };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IndexedPropertyGetter } from "../dfn-indexed-property-getter.js";
|
|
2
|
+
import { implementsInterfaceWith } from "../../../../03-javascript-binding/08-js-platform-objects/implements.js";
|
|
3
|
+
import "../../../../index.js";
|
|
4
|
+
|
|
5
|
+
//#region lib/webidl/02-idl/05-idl-members/06-idl-special-operations/01-idl-indexed-properties/dfn-support-indexed-properties.ts
|
|
6
|
+
function supportsIndexedProperties(obj) {
|
|
7
|
+
return implementsInterfaceWith(obj, IndexedPropertyGetter);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { supportsIndexedProperties };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PrimaryInterface } from "../../../../03-javascript-binding/08-js-platform-objects/is-a-platform-object.js";
|
|
2
|
+
import "../../../../index.js";
|
|
3
|
+
|
|
4
|
+
//#region lib/webidl/02-idl/05-idl-members/06-idl-special-operations/01-idl-indexed-properties/dfn-supported-property-indices.ts
|
|
5
|
+
var SupportedPropertyIndices = Symbol.for("@t15i/web-spec/webidl/SupportedPropertyIndices");
|
|
6
|
+
function isSupportedPropertyIndex(o, index) {
|
|
7
|
+
return o[PrimaryInterface][SupportedPropertyIndices].call(o).has(index);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { SupportedPropertyIndices, isSupportedPropertyIndex };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NamedPropertyDeleter } from "../dfn-named-property-deleter.js";
|
|
2
|
+
import { PrimaryInterface } from "../../../../03-javascript-binding/08-js-platform-objects/is-a-platform-object.js";
|
|
3
|
+
import "../../../../index.js";
|
|
4
|
+
|
|
5
|
+
//#region lib/webidl/02-idl/05-idl-members/06-idl-special-operations/02-idl-named-properties/dfn-delete-an-existing-named-property.ts
|
|
6
|
+
function deleteExistingNamedProperty(o, property) {
|
|
7
|
+
return o[PrimaryInterface][NamedPropertyDeleter].methodSteps(property);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { deleteExistingNamedProperty };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NamedPropertyGetter } from "../dfn-named-property-getter.js";
|
|
2
|
+
import { PrimaryInterface } from "../../../../03-javascript-binding/08-js-platform-objects/is-a-platform-object.js";
|
|
3
|
+
import "../../../../index.js";
|
|
4
|
+
|
|
5
|
+
//#region lib/webidl/02-idl/05-idl-members/06-idl-special-operations/02-idl-named-properties/dfn-determine-the-value-of-a-named-property.ts
|
|
6
|
+
function determineValueOfNamedProperty(o, property) {
|
|
7
|
+
return o[PrimaryInterface][NamedPropertyGetter].methodSteps(property);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { determineValueOfNamedProperty };
|