pseudo-dom 0.14.0 → 0.16.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/README.md CHANGED
@@ -54,7 +54,17 @@ else, document fragments insert their children instead of themselves, and a node
54
54
 
55
55
  **Attribute helpers** work like the DOM's: `getAttributeNames`, `hasAttributes`, `toggleAttribute(name, [force])`.
56
56
  `localName` matches `tagName` and `prefix` is always `null` (there's no real namespace parsing);
57
- `getElementsByTagNameNS` behaves exactly like `getElementsByTagName`, ignoring the namespace.
57
+ `getElementsByTagNameNS` behaves exactly like `getElementsByTagName`, ignoring the namespace. All 37 `aria*`
58
+ reflected properties (`ariaLabel`, `ariaExpanded`, `ariaValueNow`, ...) are real too - each just reads/writes its
59
+ matching `aria-*` attribute (`ariaLabel` <-> `aria-label`; the mapping isn't camelCase-to-kebab-case, so
60
+ `ariaColCount` <-> `aria-colcount`, not `aria-col-count`).
61
+
62
+ `getAttributeNode` / `setAttributeNode` / `removeAttributeNode` give and take real `Attr` nodes (backed by
63
+ `AttrService`) instead of plain strings - `setAttributeNode` returns whatever `Attr` previously held that name (or
64
+ `null` when it's new), and `removeAttributeNode` throws when the element has no attribute matching the one given, like
65
+ the DOM's. Every `*NS` method (`getAttributeNS`, `hasAttributeNS`, `setAttributeNS`, `removeAttributeNS`,
66
+ `getAttributeNodeNS`, `setAttributeNodeNS`) behaves exactly like its non-NS counterpart, ignoring the namespace
67
+ argument entirely - there's no real namespace parsing here, matching `getElementsByTagNameNS`.
58
68
 
59
69
  **`style`** is a real, live `CSSStyleDeclaration`:
60
70
 
@@ -166,10 +176,6 @@ it) - useful for watching pseudo-dom-driven code run, or checking a final result
166
176
  - There are text and comment nodes (`PseudoText`, `PseudoComment`); `textContent` works like the DOM's (the text of
167
177
  everything below, and setting it replaces the children with a text node)
168
178
 
169
- ## Not implemented yet
170
-
171
- - The `aria*` reflected properties
172
- - The `Attr`-node / namespaced attribute methods (`getAttributeNode`, `getAttributeNS`, ...)
173
179
  ## Modules
174
180
 
175
181
  <dl>
@@ -2959,6 +2965,15 @@ Simulate the behaviour of the Element Class when there is no DOM available.
2959
2965
  * [.removeAttribute(attributeName)](#ElementService+removeAttribute) ⇒ <code>undefined</code>
2960
2966
  * [.getAttributeNames()](#ElementService+getAttributeNames) ⇒ <code>Array.&lt;string&gt;</code>
2961
2967
  * [.hasAttributes()](#ElementService+hasAttributes) ⇒ <code>boolean</code>
2968
+ * [.getAttributeNode(attributeName)](#ElementService+getAttributeNode) ⇒ [<code>AttrService</code>](#AttrService) \| <code>null</code>
2969
+ * [.getAttributeNodeNS(namespace, attributeName)](#ElementService+getAttributeNodeNS) ⇒ [<code>AttrService</code>](#AttrService) \| <code>null</code>
2970
+ * [.getAttributeNS(namespace, attributeName)](#ElementService+getAttributeNS) ⇒ <code>string</code> \| <code>null</code>
2971
+ * [.hasAttributeNS(namespace, attributeName)](#ElementService+hasAttributeNS) ⇒ <code>boolean</code>
2972
+ * [.removeAttributeNode(attr)](#ElementService+removeAttributeNode) ⇒ [<code>AttrService</code>](#AttrService)
2973
+ * [.removeAttributeNS(namespace, attributeName)](#ElementService+removeAttributeNS) ⇒ <code>undefined</code>
2974
+ * [.setAttributeNode(attr)](#ElementService+setAttributeNode) ⇒ [<code>AttrService</code>](#AttrService) \| <code>null</code>
2975
+ * [.setAttributeNodeNS(attr)](#ElementService+setAttributeNodeNS) ⇒ [<code>AttrService</code>](#AttrService) \| <code>null</code>
2976
+ * [.setAttributeNS(namespace, attributeName, attributeValue)](#ElementService+setAttributeNS) ⇒ <code>undefined</code>
2962
2977
  * [.toggleAttribute(attributeName, [force])](#ElementService+toggleAttribute) ⇒ <code>boolean</code>
2963
2978
  * [.getBoundingClientRect()](#ElementService+getBoundingClientRect) ⇒ <code>DOMRect</code>
2964
2979
  * [.getClientRects()](#ElementService+getClientRects) ⇒ <code>Array.&lt;DOMRect&gt;</code>
@@ -2975,6 +2990,8 @@ Simulate the behaviour of the Element Class when there is no DOM available.
2975
2990
  * [.requestFullscreen()](#ElementService+requestFullscreen) ⇒ <code>Promise.&lt;void&gt;</code>
2976
2991
  * [.requestPointerLock()](#ElementService+requestPointerLock) ⇒ <code>Promise.&lt;void&gt;</code>
2977
2992
  * [.attachShadow(options)](#ElementService+attachShadow) ⇒ <code>PseudoShadowRoot</code>
2993
+ * [.getAriaAttribute(attributeName)](#ElementService+getAriaAttribute) ⇒ <code>string</code>
2994
+ * [.setAriaAttribute(attributeName, value)](#ElementService+setAriaAttribute) ⇒ <code>undefined</code>
2978
2995
 
2979
2996
  <a name="new_ElementService_new"></a>
2980
2997
 
@@ -3268,6 +3285,128 @@ The name of every attribute on the element, in the order they were set.
3268
3285
  Whether the element has any attributes at all.
3269
3286
 
3270
3287
  **Kind**: instance method of [<code>ElementService</code>](#ElementService)
3288
+ <a name="ElementService+getAttributeNode"></a>
3289
+
3290
+ ### elementService.getAttributeNode(attributeName) ⇒ [<code>AttrService</code>](#AttrService) \| <code>null</code>
3291
+ Retrieve the node representation of an attribute.
3292
+
3293
+ **Kind**: instance method of [<code>ElementService</code>](#ElementService)
3294
+ **Returns**: [<code>AttrService</code>](#AttrService) \| <code>null</code> - An Attr for the attribute, or null when there is no such attribute
3295
+
3296
+ | Param | Type |
3297
+ | --- | --- |
3298
+ | attributeName | <code>string</code> |
3299
+
3300
+ <a name="ElementService+getAttributeNodeNS"></a>
3301
+
3302
+ ### elementService.getAttributeNodeNS(namespace, attributeName) ⇒ [<code>AttrService</code>](#AttrService) \| <code>null</code>
3303
+ Retrieve the node representation of an attribute. There is no real namespace parsing here, so this ignores
3304
+ the namespace and behaves exactly like getAttributeNode.
3305
+
3306
+ **Kind**: instance method of [<code>ElementService</code>](#ElementService)
3307
+ **Returns**: [<code>AttrService</code>](#AttrService) \| <code>null</code> - An Attr for the attribute, or null when there is no such attribute
3308
+
3309
+ | Param | Type | Description |
3310
+ | --- | --- | --- |
3311
+ | namespace | <code>string</code> | Ignored |
3312
+ | attributeName | <code>string</code> | |
3313
+
3314
+ <a name="ElementService+getAttributeNS"></a>
3315
+
3316
+ ### elementService.getAttributeNS(namespace, attributeName) ⇒ <code>string</code> \| <code>null</code>
3317
+ Retrieve the value of an attribute. There is no real namespace parsing here, so this ignores the namespace
3318
+ and behaves exactly like getAttribute.
3319
+
3320
+ **Kind**: instance method of [<code>ElementService</code>](#ElementService)
3321
+ **Returns**: <code>string</code> \| <code>null</code> - The value, or null when there is no such attribute
3322
+
3323
+ | Param | Type | Description |
3324
+ | --- | --- | --- |
3325
+ | namespace | <code>string</code> | Ignored |
3326
+ | attributeName | <code>string</code> | |
3327
+
3328
+ <a name="ElementService+hasAttributeNS"></a>
3329
+
3330
+ ### elementService.hasAttributeNS(namespace, attributeName) ⇒ <code>boolean</code>
3331
+ Check whether the element has an attribute by that name. There is no real namespace parsing here, so this
3332
+ ignores the namespace and behaves exactly like hasAttribute.
3333
+
3334
+ **Kind**: instance method of [<code>ElementService</code>](#ElementService)
3335
+
3336
+ | Param | Type | Description |
3337
+ | --- | --- | --- |
3338
+ | namespace | <code>string</code> | Ignored |
3339
+ | attributeName | <code>string</code> | |
3340
+
3341
+ <a name="ElementService+removeAttributeNode"></a>
3342
+
3343
+ ### elementService.removeAttributeNode(attr) ⇒ [<code>AttrService</code>](#AttrService)
3344
+ Remove the node representation of an attribute from the element, and return it.
3345
+
3346
+ **Kind**: instance method of [<code>ElementService</code>](#ElementService)
3347
+ **Returns**: [<code>AttrService</code>](#AttrService) - The removed Attr
3348
+ **Throws**:
3349
+
3350
+ - <code>Error</code> When the element has no attribute matching attr.name
3351
+
3352
+
3353
+ | Param | Type |
3354
+ | --- | --- |
3355
+ | attr | [<code>AttrService</code>](#AttrService) |
3356
+
3357
+ <a name="ElementService+removeAttributeNS"></a>
3358
+
3359
+ ### elementService.removeAttributeNS(namespace, attributeName) ⇒ <code>undefined</code>
3360
+ Remove an attribute from the element. There is no real namespace parsing here, so this ignores the namespace
3361
+ and behaves exactly like removeAttribute.
3362
+
3363
+ **Kind**: instance method of [<code>ElementService</code>](#ElementService)
3364
+
3365
+ | Param | Type | Description |
3366
+ | --- | --- | --- |
3367
+ | namespace | <code>string</code> | Ignored |
3368
+ | attributeName | <code>string</code> | |
3369
+
3370
+ <a name="ElementService+setAttributeNode"></a>
3371
+
3372
+ ### elementService.setAttributeNode(attr) ⇒ [<code>AttrService</code>](#AttrService) \| <code>null</code>
3373
+ Set the node representation of an attribute, adding the attribute if it did not exist. Returns any previous
3374
+ Attr that had the same name, or null when there was none.
3375
+
3376
+ **Kind**: instance method of [<code>ElementService</code>](#ElementService)
3377
+ **Returns**: [<code>AttrService</code>](#AttrService) \| <code>null</code> - The replaced Attr, or null when the attribute was new
3378
+
3379
+ | Param | Type |
3380
+ | --- | --- |
3381
+ | attr | [<code>AttrService</code>](#AttrService) |
3382
+
3383
+ <a name="ElementService+setAttributeNodeNS"></a>
3384
+
3385
+ ### elementService.setAttributeNodeNS(attr) ⇒ [<code>AttrService</code>](#AttrService) \| <code>null</code>
3386
+ Set the node representation of an attribute. There is no real namespace parsing here, so this behaves
3387
+ exactly like setAttributeNode (Attr.name already carries any prefix).
3388
+
3389
+ **Kind**: instance method of [<code>ElementService</code>](#ElementService)
3390
+ **Returns**: [<code>AttrService</code>](#AttrService) \| <code>null</code> - The replaced Attr, or null when the attribute was new
3391
+
3392
+ | Param | Type |
3393
+ | --- | --- |
3394
+ | attr | [<code>AttrService</code>](#AttrService) |
3395
+
3396
+ <a name="ElementService+setAttributeNS"></a>
3397
+
3398
+ ### elementService.setAttributeNS(namespace, attributeName, attributeValue) ⇒ <code>undefined</code>
3399
+ Set the value of an attribute, adding the attribute if it did not exist. There is no real namespace parsing
3400
+ here, so this ignores the namespace and behaves exactly like setAttribute.
3401
+
3402
+ **Kind**: instance method of [<code>ElementService</code>](#ElementService)
3403
+
3404
+ | Param | Type | Description |
3405
+ | --- | --- | --- |
3406
+ | namespace | <code>string</code> | Ignored |
3407
+ | attributeName | <code>string</code> | |
3408
+ | attributeValue | <code>string</code> | |
3409
+
3271
3410
  <a name="ElementService+toggleAttribute"></a>
3272
3411
 
3273
3412
  ### elementService.toggleAttribute(attributeName, [force]) ⇒ <code>boolean</code>
@@ -3419,6 +3558,29 @@ Attach a shadow tree to this element and return its ShadowRoot. Throws when it a
3419
3558
  | --- | --- |
3420
3559
  | options | <code>Object</code> |
3421
3560
 
3561
+ <a name="ElementService+getAriaAttribute"></a>
3562
+
3563
+ ### elementService.getAriaAttribute(attributeName) ⇒ <code>string</code>
3564
+ Read one of the aria-* reflected properties (see the individual aria* getters/setters below).
3565
+
3566
+ **Kind**: instance method of [<code>ElementService</code>](#ElementService)
3567
+
3568
+ | Param | Type | Description |
3569
+ | --- | --- | --- |
3570
+ | attributeName | <code>string</code> | A real aria-* attribute name (aria-label, ...) |
3571
+
3572
+ <a name="ElementService+setAriaAttribute"></a>
3573
+
3574
+ ### elementService.setAriaAttribute(attributeName, value) ⇒ <code>undefined</code>
3575
+ Write one of the aria-* reflected properties.
3576
+
3577
+ **Kind**: instance method of [<code>ElementService</code>](#ElementService)
3578
+
3579
+ | Param | Type | Description |
3580
+ | --- | --- | --- |
3581
+ | attributeName | <code>string</code> | A real aria-* attribute name (aria-label, ...) |
3582
+ | value | <code>string</code> | |
3583
+
3422
3584
  <a name="DocumentService"></a>
3423
3585
 
3424
3586
  ## DocumentService ⇐ [<code>NodeService</code>](#NodeService)
@@ -2605,6 +2605,108 @@
2605
2605
  return this.attributeList.length > 0
2606
2606
  }
2607
2607
 
2608
+ /**
2609
+ * Retrieve the node representation of an attribute.
2610
+ * @param {string} attributeName
2611
+ * @returns {AttrService|null} An Attr for the attribute, or null when there is no such attribute
2612
+ */
2613
+ getAttributeNode (attributeName) {
2614
+ return this.hasAttribute(attributeName) ? new AttrService_1.AttrService(attributeName, this.getAttribute(attributeName) || '', this) : null
2615
+ }
2616
+
2617
+ /**
2618
+ * Retrieve the node representation of an attribute. There is no real namespace parsing here, so this ignores
2619
+ * the namespace and behaves exactly like getAttributeNode.
2620
+ * @param {string} namespace Ignored
2621
+ * @param {string} attributeName
2622
+ * @returns {AttrService|null} An Attr for the attribute, or null when there is no such attribute
2623
+ */
2624
+ getAttributeNodeNS (namespace, attributeName) {
2625
+ return this.getAttributeNode(attributeName)
2626
+ }
2627
+
2628
+ /**
2629
+ * Retrieve the value of an attribute. There is no real namespace parsing here, so this ignores the namespace
2630
+ * and behaves exactly like getAttribute.
2631
+ * @param {string} namespace Ignored
2632
+ * @param {string} attributeName
2633
+ * @returns {string|null} The value, or null when there is no such attribute
2634
+ */
2635
+ getAttributeNS (namespace, attributeName) {
2636
+ return this.getAttribute(attributeName)
2637
+ }
2638
+
2639
+ /**
2640
+ * Check whether the element has an attribute by that name. There is no real namespace parsing here, so this
2641
+ * ignores the namespace and behaves exactly like hasAttribute.
2642
+ * @param {string} namespace Ignored
2643
+ * @param {string} attributeName
2644
+ * @returns {boolean}
2645
+ */
2646
+ hasAttributeNS (namespace, attributeName) {
2647
+ return this.hasAttribute(attributeName)
2648
+ }
2649
+
2650
+ /**
2651
+ * Remove the node representation of an attribute from the element, and return it.
2652
+ * @param {AttrService} attr
2653
+ * @returns {AttrService} The removed Attr
2654
+ * @throws {Error} When the element has no attribute matching attr.name
2655
+ */
2656
+ removeAttributeNode (attr) {
2657
+ if (!this.hasAttribute(attr.name)) {
2658
+ throw new Error(`Failed to execute 'removeAttributeNode': The node provided is owned by another element (no attribute named '${attr.name}')`)
2659
+ }
2660
+ const removed = this.getAttributeNode(attr.name)
2661
+ this.removeAttribute(attr.name)
2662
+ return removed
2663
+ }
2664
+
2665
+ /**
2666
+ * Remove an attribute from the element. There is no real namespace parsing here, so this ignores the namespace
2667
+ * and behaves exactly like removeAttribute.
2668
+ * @param {string} namespace Ignored
2669
+ * @param {string} attributeName
2670
+ * @returns {undefined}
2671
+ */
2672
+ removeAttributeNS (namespace, attributeName) {
2673
+ this.removeAttribute(attributeName)
2674
+ }
2675
+
2676
+ /**
2677
+ * Set the node representation of an attribute, adding the attribute if it did not exist. Returns any previous
2678
+ * Attr that had the same name, or null when there was none.
2679
+ * @param {AttrService} attr
2680
+ * @returns {AttrService|null} The replaced Attr, or null when the attribute was new
2681
+ */
2682
+ setAttributeNode (attr) {
2683
+ const existing = this.getAttributeNode(attr.name)
2684
+ this.setAttribute(attr.name, attr.value)
2685
+ return existing
2686
+ }
2687
+
2688
+ /**
2689
+ * Set the node representation of an attribute. There is no real namespace parsing here, so this behaves
2690
+ * exactly like setAttributeNode (Attr.name already carries any prefix).
2691
+ * @param {AttrService} attr
2692
+ * @returns {AttrService|null} The replaced Attr, or null when the attribute was new
2693
+ */
2694
+ setAttributeNodeNS (attr) {
2695
+ return this.setAttributeNode(attr)
2696
+ }
2697
+
2698
+ /**
2699
+ * Set the value of an attribute, adding the attribute if it did not exist. There is no real namespace parsing
2700
+ * here, so this ignores the namespace and behaves exactly like setAttribute.
2701
+ * @param {string} namespace Ignored
2702
+ * @param {string} attributeName
2703
+ * @param {string} attributeValue
2704
+ * @returns {undefined}
2705
+ */
2706
+ setAttributeNS (namespace, attributeName, attributeValue) {
2707
+ this.setAttribute(attributeName, attributeValue)
2708
+ }
2709
+
2608
2710
  /**
2609
2711
  * Add the attribute (with an empty value) when it is not present, or remove it when it is - unless force says
2610
2712
  * which of those to do instead. Returns whether the attribute is present after the call.
@@ -2795,6 +2897,321 @@
2795
2897
  get shadowRoot () {
2796
2898
  return this.shadowRootInstance && this.shadowRootInstance.mode === 'open' ? this.shadowRootInstance : null
2797
2899
  }
2900
+
2901
+ /**
2902
+ * Read one of the aria-* reflected properties (see the individual aria* getters/setters below).
2903
+ * @param {string} attributeName A real aria-* attribute name (aria-label, ...)
2904
+ * @returns {string}
2905
+ */
2906
+ getAriaAttribute (attributeName) {
2907
+ return this.getAttribute(attributeName) || ''
2908
+ }
2909
+
2910
+ /**
2911
+ * Write one of the aria-* reflected properties.
2912
+ * @param {string} attributeName A real aria-* attribute name (aria-label, ...)
2913
+ * @param {string} value
2914
+ * @returns {undefined}
2915
+ */
2916
+ setAriaAttribute (attributeName, value) {
2917
+ this.setAttribute(attributeName, value)
2918
+ }
2919
+
2920
+ get ariaAtomic () {
2921
+ return this.getAriaAttribute('aria-atomic')
2922
+ }
2923
+
2924
+ set ariaAtomic (value) {
2925
+ this.setAriaAttribute('aria-atomic', value)
2926
+ }
2927
+
2928
+ get ariaAutoComplete () {
2929
+ return this.getAriaAttribute('aria-autocomplete')
2930
+ }
2931
+
2932
+ set ariaAutoComplete (value) {
2933
+ this.setAriaAttribute('aria-autocomplete', value)
2934
+ }
2935
+
2936
+ get ariaBusy () {
2937
+ return this.getAriaAttribute('aria-busy')
2938
+ }
2939
+
2940
+ set ariaBusy (value) {
2941
+ this.setAriaAttribute('aria-busy', value)
2942
+ }
2943
+
2944
+ get ariaChecked () {
2945
+ return this.getAriaAttribute('aria-checked')
2946
+ }
2947
+
2948
+ set ariaChecked (value) {
2949
+ this.setAriaAttribute('aria-checked', value)
2950
+ }
2951
+
2952
+ get ariaColCount () {
2953
+ return this.getAriaAttribute('aria-colcount')
2954
+ }
2955
+
2956
+ set ariaColCount (value) {
2957
+ this.setAriaAttribute('aria-colcount', value)
2958
+ }
2959
+
2960
+ get ariaColIndex () {
2961
+ return this.getAriaAttribute('aria-colindex')
2962
+ }
2963
+
2964
+ set ariaColIndex (value) {
2965
+ this.setAriaAttribute('aria-colindex', value)
2966
+ }
2967
+
2968
+ get ariaColSpan () {
2969
+ return this.getAriaAttribute('aria-colspan')
2970
+ }
2971
+
2972
+ set ariaColSpan (value) {
2973
+ this.setAriaAttribute('aria-colspan', value)
2974
+ }
2975
+
2976
+ get ariaCurrent () {
2977
+ return this.getAriaAttribute('aria-current')
2978
+ }
2979
+
2980
+ set ariaCurrent (value) {
2981
+ this.setAriaAttribute('aria-current', value)
2982
+ }
2983
+
2984
+ get ariaDescription () {
2985
+ return this.getAriaAttribute('aria-description')
2986
+ }
2987
+
2988
+ set ariaDescription (value) {
2989
+ this.setAriaAttribute('aria-description', value)
2990
+ }
2991
+
2992
+ get ariaDisabled () {
2993
+ return this.getAriaAttribute('aria-disabled')
2994
+ }
2995
+
2996
+ set ariaDisabled (value) {
2997
+ this.setAriaAttribute('aria-disabled', value)
2998
+ }
2999
+
3000
+ get ariaExpanded () {
3001
+ return this.getAriaAttribute('aria-expanded')
3002
+ }
3003
+
3004
+ set ariaExpanded (value) {
3005
+ this.setAriaAttribute('aria-expanded', value)
3006
+ }
3007
+
3008
+ get ariaHasPopup () {
3009
+ return this.getAriaAttribute('aria-haspopup')
3010
+ }
3011
+
3012
+ set ariaHasPopup (value) {
3013
+ this.setAriaAttribute('aria-haspopup', value)
3014
+ }
3015
+
3016
+ get ariaHidden () {
3017
+ return this.getAriaAttribute('aria-hidden')
3018
+ }
3019
+
3020
+ set ariaHidden (value) {
3021
+ this.setAriaAttribute('aria-hidden', value)
3022
+ }
3023
+
3024
+ get ariaKeyShortcuts () {
3025
+ return this.getAriaAttribute('aria-keyshortcuts')
3026
+ }
3027
+
3028
+ set ariaKeyShortcuts (value) {
3029
+ this.setAriaAttribute('aria-keyshortcuts', value)
3030
+ }
3031
+
3032
+ get ariaLabel () {
3033
+ return this.getAriaAttribute('aria-label')
3034
+ }
3035
+
3036
+ set ariaLabel (value) {
3037
+ this.setAriaAttribute('aria-label', value)
3038
+ }
3039
+
3040
+ get ariaLevel () {
3041
+ return this.getAriaAttribute('aria-level')
3042
+ }
3043
+
3044
+ set ariaLevel (value) {
3045
+ this.setAriaAttribute('aria-level', value)
3046
+ }
3047
+
3048
+ get ariaLive () {
3049
+ return this.getAriaAttribute('aria-live')
3050
+ }
3051
+
3052
+ set ariaLive (value) {
3053
+ this.setAriaAttribute('aria-live', value)
3054
+ }
3055
+
3056
+ get ariaModal () {
3057
+ return this.getAriaAttribute('aria-modal')
3058
+ }
3059
+
3060
+ set ariaModal (value) {
3061
+ this.setAriaAttribute('aria-modal', value)
3062
+ }
3063
+
3064
+ get ariaMultiline () {
3065
+ return this.getAriaAttribute('aria-multiline')
3066
+ }
3067
+
3068
+ set ariaMultiline (value) {
3069
+ this.setAriaAttribute('aria-multiline', value)
3070
+ }
3071
+
3072
+ get ariaMultiSelectable () {
3073
+ return this.getAriaAttribute('aria-multiselectable')
3074
+ }
3075
+
3076
+ set ariaMultiSelectable (value) {
3077
+ this.setAriaAttribute('aria-multiselectable', value)
3078
+ }
3079
+
3080
+ get ariaOrientation () {
3081
+ return this.getAriaAttribute('aria-orientation')
3082
+ }
3083
+
3084
+ set ariaOrientation (value) {
3085
+ this.setAriaAttribute('aria-orientation', value)
3086
+ }
3087
+
3088
+ get ariaPlaceholder () {
3089
+ return this.getAriaAttribute('aria-placeholder')
3090
+ }
3091
+
3092
+ set ariaPlaceholder (value) {
3093
+ this.setAriaAttribute('aria-placeholder', value)
3094
+ }
3095
+
3096
+ get ariaPosInSet () {
3097
+ return this.getAriaAttribute('aria-posinset')
3098
+ }
3099
+
3100
+ set ariaPosInSet (value) {
3101
+ this.setAriaAttribute('aria-posinset', value)
3102
+ }
3103
+
3104
+ get ariaPressed () {
3105
+ return this.getAriaAttribute('aria-pressed')
3106
+ }
3107
+
3108
+ set ariaPressed (value) {
3109
+ this.setAriaAttribute('aria-pressed', value)
3110
+ }
3111
+
3112
+ get ariaReadOnly () {
3113
+ return this.getAriaAttribute('aria-readonly')
3114
+ }
3115
+
3116
+ set ariaReadOnly (value) {
3117
+ this.setAriaAttribute('aria-readonly', value)
3118
+ }
3119
+
3120
+ get ariaRequired () {
3121
+ return this.getAriaAttribute('aria-required')
3122
+ }
3123
+
3124
+ set ariaRequired (value) {
3125
+ this.setAriaAttribute('aria-required', value)
3126
+ }
3127
+
3128
+ get ariaRoleDescription () {
3129
+ return this.getAriaAttribute('aria-roledescription')
3130
+ }
3131
+
3132
+ set ariaRoleDescription (value) {
3133
+ this.setAriaAttribute('aria-roledescription', value)
3134
+ }
3135
+
3136
+ get ariaRowCount () {
3137
+ return this.getAriaAttribute('aria-rowcount')
3138
+ }
3139
+
3140
+ set ariaRowCount (value) {
3141
+ this.setAriaAttribute('aria-rowcount', value)
3142
+ }
3143
+
3144
+ get ariaRowIndex () {
3145
+ return this.getAriaAttribute('aria-rowindex')
3146
+ }
3147
+
3148
+ set ariaRowIndex (value) {
3149
+ this.setAriaAttribute('aria-rowindex', value)
3150
+ }
3151
+
3152
+ get ariaRowSpan () {
3153
+ return this.getAriaAttribute('aria-rowspan')
3154
+ }
3155
+
3156
+ set ariaRowSpan (value) {
3157
+ this.setAriaAttribute('aria-rowspan', value)
3158
+ }
3159
+
3160
+ get ariaSelected () {
3161
+ return this.getAriaAttribute('aria-selected')
3162
+ }
3163
+
3164
+ set ariaSelected (value) {
3165
+ this.setAriaAttribute('aria-selected', value)
3166
+ }
3167
+
3168
+ get ariaSetSize () {
3169
+ return this.getAriaAttribute('aria-setsize')
3170
+ }
3171
+
3172
+ set ariaSetSize (value) {
3173
+ this.setAriaAttribute('aria-setsize', value)
3174
+ }
3175
+
3176
+ get ariaSort () {
3177
+ return this.getAriaAttribute('aria-sort')
3178
+ }
3179
+
3180
+ set ariaSort (value) {
3181
+ this.setAriaAttribute('aria-sort', value)
3182
+ }
3183
+
3184
+ get ariaValueMax () {
3185
+ return this.getAriaAttribute('aria-valuemax')
3186
+ }
3187
+
3188
+ set ariaValueMax (value) {
3189
+ this.setAriaAttribute('aria-valuemax', value)
3190
+ }
3191
+
3192
+ get ariaValueMin () {
3193
+ return this.getAriaAttribute('aria-valuemin')
3194
+ }
3195
+
3196
+ set ariaValueMin (value) {
3197
+ this.setAriaAttribute('aria-valuemin', value)
3198
+ }
3199
+
3200
+ get ariaValueNow () {
3201
+ return this.getAriaAttribute('aria-valuenow')
3202
+ }
3203
+
3204
+ set ariaValueNow (value) {
3205
+ this.setAriaAttribute('aria-valuenow', value)
3206
+ }
3207
+
3208
+ get ariaValueText () {
3209
+ return this.getAriaAttribute('aria-valuetext')
3210
+ }
3211
+
3212
+ set ariaValueText (value) {
3213
+ this.setAriaAttribute('aria-valuetext', value)
3214
+ }
2798
3215
  }
2799
3216
  exports.ElementService = ElementService
2800
3217
  }, { '../factories/createEvent': 5, '../factories/query': 14, '../factories/serializeHTML': 15, '../functions/getParentNodesFromAttribute': 19, './AttrService': 22, './DOMTokenListService': 25, './HTMLCollectionService': 32, './NamedNodeMapService': 37, './NodeService': 38, './ShadowRootService': 40, 'core-js/modules/esnext.iterator.constructor.js': 193, 'core-js/modules/esnext.iterator.every.js': 194, 'core-js/modules/esnext.iterator.find.js': 196, 'core-js/modules/esnext.iterator.for-each.js': 197, 'core-js/modules/esnext.iterator.map.js': 198, 'core-js/modules/esnext.iterator.some.js': 200, 'core-js/modules/esnext.set.add-all.js': 214, 'core-js/modules/esnext.set.delete-all.js': 215, 'core-js/modules/esnext.set.difference.js': 216, 'core-js/modules/esnext.set.every.js': 217, 'core-js/modules/esnext.set.filter.js': 218, 'core-js/modules/esnext.set.find.js': 219, 'core-js/modules/esnext.set.intersection.js': 220, 'core-js/modules/esnext.set.is-disjoint-from.js': 221, 'core-js/modules/esnext.set.is-subset-of.js': 222, 'core-js/modules/esnext.set.is-superset-of.js': 223, 'core-js/modules/esnext.set.join.js': 224, 'core-js/modules/esnext.set.map.js': 225, 'core-js/modules/esnext.set.reduce.js': 226, 'core-js/modules/esnext.set.some.js': 227, 'core-js/modules/esnext.set.symmetric-difference.js': 228, 'core-js/modules/esnext.set.union.js': 229, 'si-funciona/dist/helpers/objects/cloneObject': 263, 'si-funciona/dist/helpers/objects/isEqual': 265 }],