pseudo-dom 0.12.0 → 0.15.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,10 @@ 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`).
58
61
 
59
62
  **`style`** is a real, live `CSSStyleDeclaration`:
60
63
 
@@ -144,10 +147,12 @@ if (typeof document === 'undefined') {
144
147
  }
145
148
  ```
146
149
 
147
- `installGlobal(target = globalThis)` fills in `document` / `Node` / `Element` / `HTMLElement` on `target`, using
150
+ `installGlobal(target = globalThis)` fills in `document` / `Node` / `Element` / `HTMLElement` / `HTMLDocument` /
151
+ `window` (a self-reference, like a real browser's) on `target`, using
148
152
  [browser-or-node](https://www.npmjs.com/package/browser-or-node) to check whether a real DOM (a real browser, or a
149
153
  jsdom-based test environment) is already there first - it's always safe to call, everywhere: it does nothing when
150
- one is.
154
+ one is. `Node` / `Element` / `HTMLElement` / `HTMLDocument` are the classes themselves (not instances), so
155
+ `x instanceof Element` works, matching the real DOM's.
151
156
 
152
157
  There's no real rendering to look at, so `logElement(node, [label])` prints a readable, indented view of a node's
153
158
  markup to the console (`prettyPrint(node, [indent])`, from the same module, returns the string instead of printing
@@ -166,7 +171,6 @@ it) - useful for watching pseudo-dom-driven code run, or checking a final result
166
171
 
167
172
  ## Not implemented yet
168
173
 
169
- - The `aria*` reflected properties
170
174
  - The `Attr`-node / namespaced attribute methods (`getAttributeNode`, `getAttributeNS`, ...)
171
175
  ## Modules
172
176
 
@@ -317,10 +321,14 @@ order in which an event travels down through them). A node which has no parent h
317
321
  <dd><p>Remember the element which has the focus in a tree.</p>
318
322
  </dd>
319
323
  <dt><a href="#escapeText">escapeText(text)</a> ⇒ <code>string</code></dt>
320
- <dd><p>Escape text so it is safe inside HTML text content.</p>
324
+ <dd><p>Escape text so it is safe inside HTML text content. Coerces to a string first - unlike a real DOM, pseudo-dom&#39;s
325
+ setAttribute does not itself coerce (see the same note on escapeAttributeValue), and nodeValue is not guaranteed
326
+ to be a string either.</p>
321
327
  </dd>
322
328
  <dt><a href="#escapeAttributeValue">escapeAttributeValue(value)</a> ⇒ <code>string</code></dt>
323
- <dd><p>Escape a value so it is safe inside a double-quoted HTML attribute.</p>
329
+ <dd><p>Escape a value so it is safe inside a double-quoted HTML attribute. Coerces to a string first: a real DOM&#39;s
330
+ setAttribute always stores a string, however pseudo-dom&#39;s does not coerce what it is given, so a value set via
331
+ setAttribute(name, 5) is stored (and read back by getAttribute) as the number 5, not the string &#39;5&#39;.</p>
324
332
  </dd>
325
333
  <dt><a href="#serializeAttributes">serializeAttributes(element)</a> ⇒ <code>string</code></dt>
326
334
  <dd><p>Every attribute of the element, serialized (class instead of className, boolean attributes bare, the never-real
@@ -2969,6 +2977,8 @@ Simulate the behaviour of the Element Class when there is no DOM available.
2969
2977
  * [.requestFullscreen()](#ElementService+requestFullscreen) ⇒ <code>Promise.&lt;void&gt;</code>
2970
2978
  * [.requestPointerLock()](#ElementService+requestPointerLock) ⇒ <code>Promise.&lt;void&gt;</code>
2971
2979
  * [.attachShadow(options)](#ElementService+attachShadow) ⇒ <code>PseudoShadowRoot</code>
2980
+ * [.getAriaAttribute(attributeName)](#ElementService+getAriaAttribute) ⇒ <code>string</code>
2981
+ * [.setAriaAttribute(attributeName, value)](#ElementService+setAriaAttribute) ⇒ <code>undefined</code>
2972
2982
 
2973
2983
  <a name="new_ElementService_new"></a>
2974
2984
 
@@ -3413,6 +3423,29 @@ Attach a shadow tree to this element and return its ShadowRoot. Throws when it a
3413
3423
  | --- | --- |
3414
3424
  | options | <code>Object</code> |
3415
3425
 
3426
+ <a name="ElementService+getAriaAttribute"></a>
3427
+
3428
+ ### elementService.getAriaAttribute(attributeName) ⇒ <code>string</code>
3429
+ Read one of the aria-* reflected properties (see the individual aria* getters/setters below).
3430
+
3431
+ **Kind**: instance method of [<code>ElementService</code>](#ElementService)
3432
+
3433
+ | Param | Type | Description |
3434
+ | --- | --- | --- |
3435
+ | attributeName | <code>string</code> | A real aria-* attribute name (aria-label, ...) |
3436
+
3437
+ <a name="ElementService+setAriaAttribute"></a>
3438
+
3439
+ ### elementService.setAriaAttribute(attributeName, value) ⇒ <code>undefined</code>
3440
+ Write one of the aria-* reflected properties.
3441
+
3442
+ **Kind**: instance method of [<code>ElementService</code>](#ElementService)
3443
+
3444
+ | Param | Type | Description |
3445
+ | --- | --- | --- |
3446
+ | attributeName | <code>string</code> | A real aria-* attribute name (aria-label, ...) |
3447
+ | value | <code>string</code> | |
3448
+
3416
3449
  <a name="DocumentService"></a>
3417
3450
 
3418
3451
  ## DocumentService ⇐ [<code>NodeService</code>](#NodeService)
@@ -5483,24 +5516,28 @@ Remember the element which has the focus in a tree.
5483
5516
  <a name="escapeText"></a>
5484
5517
 
5485
5518
  ## escapeText(text) ⇒ <code>string</code>
5486
- Escape text so it is safe inside HTML text content.
5519
+ Escape text so it is safe inside HTML text content. Coerces to a string first - unlike a real DOM, pseudo-dom's
5520
+ setAttribute does not itself coerce (see the same note on escapeAttributeValue), and nodeValue is not guaranteed
5521
+ to be a string either.
5487
5522
 
5488
5523
  **Kind**: global function
5489
5524
 
5490
5525
  | Param | Type |
5491
5526
  | --- | --- |
5492
- | text | <code>string</code> |
5527
+ | text | <code>\*</code> |
5493
5528
 
5494
5529
  <a name="escapeAttributeValue"></a>
5495
5530
 
5496
5531
  ## escapeAttributeValue(value) ⇒ <code>string</code>
5497
- Escape a value so it is safe inside a double-quoted HTML attribute.
5532
+ Escape a value so it is safe inside a double-quoted HTML attribute. Coerces to a string first: a real DOM's
5533
+ setAttribute always stores a string, however pseudo-dom's does not coerce what it is given, so a value set via
5534
+ setAttribute(name, 5) is stored (and read back by getAttribute) as the number 5, not the string '5'.
5498
5535
 
5499
5536
  **Kind**: global function
5500
5537
 
5501
5538
  | Param | Type |
5502
5539
  | --- | --- |
5503
- | value | <code>string</code> |
5540
+ | value | <code>\*</code> |
5504
5541
 
5505
5542
  <a name="serializeAttributes"></a>
5506
5543
 
@@ -5566,9 +5603,10 @@ context.
5566
5603
 
5567
5604
  * [generateDocument(root, context)](#generateDocument) ⇒ <code>Window</code> \| <code>PseudoEventTarget</code>
5568
5605
  * [~newWindow](#generateDocument..newWindow) : <code>Window</code> \| <code>PseudoEventTarget</code>
5569
- * [~Node](#generateDocument..Node) : <code>Node</code> \| <code>PseudoNode</code>
5570
- * [~Element](#generateDocument..Element) : <code>Element</code> \| <code>PseudoElement</code>
5571
- * [~HTMLElement](#generateDocument..HTMLElement) : <code>HTMLElement</code> \| <code>PseudoHTMLElement</code>
5606
+ * [~Node](#generateDocument..Node) : <code>function</code>
5607
+ * [~Element](#generateDocument..Element) : <code>function</code>
5608
+ * [~HTMLElement](#generateDocument..HTMLElement) : <code>function</code>
5609
+ * [~HTMLDocument](#generateDocument..HTMLDocument) : <code>function</code>
5572
5610
  * [~document](#generateDocument..document) : <code>Document</code> \| [<code>PseudoHTMLDocument</code>](#PseudoHTMLDocument)
5573
5611
 
5574
5612
  <a name="generateDocument..newWindow"></a>
@@ -5577,22 +5615,35 @@ context.
5577
5615
  **Kind**: inner constant of [<code>generateDocument</code>](#generateDocument)
5578
5616
  <a name="generateDocument..Node"></a>
5579
5617
 
5580
- ### generateDocument~Node : <code>Node</code> \| <code>PseudoNode</code>
5618
+ ### generateDocument~Node : <code>function</code>
5619
+ The Node class itself (matching the DOM's window.Node), not an instance - the right-hand side of `instanceof`
5620
+ must be a constructor, so `x instanceof Node` needs this, not `new PseudoNode()`.
5621
+
5581
5622
  **Kind**: inner constant of [<code>generateDocument</code>](#generateDocument)
5582
5623
  <a name="generateDocument..Element"></a>
5583
5624
 
5584
- ### generateDocument~Element : <code>Element</code> \| <code>PseudoElement</code>
5625
+ ### generateDocument~Element : <code>function</code>
5626
+ The Element class itself, for the same reason as Node.
5627
+
5585
5628
  **Kind**: inner constant of [<code>generateDocument</code>](#generateDocument)
5586
5629
  <a name="generateDocument..HTMLElement"></a>
5587
5630
 
5588
- ### generateDocument~HTMLElement : <code>HTMLElement</code> \| <code>PseudoHTMLElement</code>
5589
- Create an instance of HTMLElement if not available
5631
+ ### generateDocument~HTMLElement : <code>function</code>
5632
+ The HTMLElement class itself, for the same reason as Node.
5633
+
5634
+ **Kind**: inner constant of [<code>generateDocument</code>](#generateDocument)
5635
+ <a name="generateDocument..HTMLDocument"></a>
5636
+
5637
+ ### generateDocument~HTMLDocument : <code>function</code>
5638
+ The HTMLDocument class itself, for the same reason as Node (so `document instanceof HTMLDocument`, a common
5639
+ real-DOM-detection check, works).
5590
5640
 
5591
5641
  **Kind**: inner constant of [<code>generateDocument</code>](#generateDocument)
5592
5642
  <a name="generateDocument..document"></a>
5593
5643
 
5594
5644
  ### generateDocument~document : <code>Document</code> \| [<code>PseudoHTMLDocument</code>](#PseudoHTMLDocument)
5595
- Define document when not available
5645
+ Define document when not available - a real instance, unlike the classes above (window.document IS an object,
5646
+ not a constructor).
5596
5647
 
5597
5648
  **Kind**: inner constant of [<code>generateDocument</code>](#generateDocument)
5598
5649
  <a name="nearestElementSibling"></a>
@@ -734,30 +734,42 @@
734
734
  */
735
735
  const newWindow = typeof root.document === 'undefined' ? root : new EventTargetService_1.default()
736
736
  /**
737
- * @type {Node|PseudoNode}
737
+ * The Node class itself (matching the DOM's window.Node), not an instance - the right-hand side of `instanceof`
738
+ * must be a constructor, so `x instanceof Node` needs this, not `new PseudoNode()`.
739
+ * @type {Function}
738
740
  */
739
- const Node = root.Node || new NodeService_1.NodeService()
741
+ const Node = root.Node || NodeService_1.NodeService
740
742
  if (typeof newWindow.Node === 'undefined') {
741
743
  newWindow.Node = Node
742
744
  }
743
745
  /**
744
- *
745
- * @type {Element|PseudoElement}
746
+ * The Element class itself, for the same reason as Node.
747
+ * @type {Function}
746
748
  */
747
- const Element = root.Element || new ElementService_1.ElementService()
749
+ const Element = root.Element || ElementService_1.ElementService
748
750
  if (typeof newWindow.Element === 'undefined') {
749
751
  newWindow.Element = Element
750
752
  }
751
753
  /**
752
- * Create an instance of HTMLElement if not available
753
- * @type {HTMLElement|PseudoHTMLElement}
754
+ * The HTMLElement class itself, for the same reason as Node.
755
+ * @type {Function}
754
756
  */
755
- const HTMLElement = root.HTMLElement || new HTMLElementService_1.HTMLElementService()
757
+ const HTMLElement = root.HTMLElement || HTMLElementService_1.HTMLElementService
756
758
  if (typeof newWindow.HTMLElement === 'undefined') {
757
759
  newWindow.HTMLElement = HTMLElement
758
760
  }
759
761
  /**
760
- * Define document when not available
762
+ * The HTMLDocument class itself, for the same reason as Node (so `document instanceof HTMLDocument`, a common
763
+ * real-DOM-detection check, works).
764
+ * @type {Function}
765
+ */
766
+ const HTMLDocument = root.HTMLDocument || PseudoHTMLDocument_1.default
767
+ if (typeof newWindow.HTMLDocument === 'undefined') {
768
+ newWindow.HTMLDocument = HTMLDocument
769
+ }
770
+ /**
771
+ * Define document when not available - a real instance, unlike the classes above (window.document IS an object,
772
+ * not a constructor).
761
773
  * @type {Document|PseudoHTMLDocument}
762
774
  */
763
775
  const document = root.document || new PseudoHTMLDocument_1.default()
@@ -814,17 +826,21 @@
814
826
  * When there is no real DOM already available (a real browser, or a jsdom-based test environment - isBrowser is
815
827
  * true for both, since jsdom's window has a document too, and a jsdom document should never be overwritten, real
816
828
  * DOM behaviour is always closer to the real thing), populate the given global-like target with document / Node /
817
- * Element / HTMLElement, generated by generateDocument, so code written against a real DOM's globals works as-is.
818
- * Does nothing when a real DOM is already there, matching generateDocument's own only-fill-what-is-missing
819
- * behaviour - calling this is always safe, in any environment.
829
+ * Element / HTMLElement / HTMLDocument, generated by generateDocument, plus window (a self-reference, matching a
830
+ * real browser's global scope - some code checks for a bare `window` before falling back to `global`), so code
831
+ * written against a real DOM's globals works as-is. Does nothing when a real DOM is already there, matching
832
+ * generateDocument's own only-fill-what-is-missing behaviour - calling this is always safe, in any environment.
820
833
  * @memberOf module:factories
821
- * @param {*} [target] The object to add document / Node / Element / HTMLElement onto - defaults to globalThis, so
822
- * bare `document`, `Node`, etc. resolve from anywhere once this has run
834
+ * @param {*} [target] The object to add document / Node / Element / HTMLElement / window onto - defaults to
835
+ * globalThis, so bare `document`, `Node`, `window`, etc. resolve from anywhere once this has run
823
836
  * @returns {*} The same target, for convenience
824
837
  */
825
838
  const installGlobal = (target = typeof globalThis !== 'undefined' ? globalThis : {}) => {
826
839
  if (!browser_or_node_1.isBrowser) {
827
840
  (0, generateDocument_1.default)(target, target)
841
+ if (typeof target.window === 'undefined') {
842
+ target.window = target
843
+ }
828
844
  }
829
845
  return target
830
846
  }
@@ -1055,17 +1071,21 @@
1055
1071
  // Boolean HTML attributes: present (with no value) when true, absent entirely when false
1056
1072
  const BOOLEAN_ATTRIBUTES = new Set(['hidden'])
1057
1073
  /**
1058
- * Escape text so it is safe inside HTML text content.
1059
- * @param {string} text
1074
+ * Escape text so it is safe inside HTML text content. Coerces to a string first - unlike a real DOM, pseudo-dom's
1075
+ * setAttribute does not itself coerce (see the same note on escapeAttributeValue), and nodeValue is not guaranteed
1076
+ * to be a string either.
1077
+ * @param {*} text
1060
1078
  * @returns {string}
1061
1079
  */
1062
- const escapeText = text => text.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;')
1080
+ const escapeText = text => String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;')
1063
1081
  /**
1064
- * Escape a value so it is safe inside a double-quoted HTML attribute.
1065
- * @param {string} value
1082
+ * Escape a value so it is safe inside a double-quoted HTML attribute. Coerces to a string first: a real DOM's
1083
+ * setAttribute always stores a string, however pseudo-dom's does not coerce what it is given, so a value set via
1084
+ * setAttribute(name, 5) is stored (and read back by getAttribute) as the number 5, not the string '5'.
1085
+ * @param {*} value
1066
1086
  * @returns {string}
1067
1087
  */
1068
- const escapeAttributeValue = value => value.replace(/&/g, '&amp;').replace(/"/g, '&quot;')
1088
+ const escapeAttributeValue = value => String(value).replace(/&/g, '&amp;').replace(/"/g, '&quot;')
1069
1089
  /**
1070
1090
  * Every attribute of the element, serialized (class instead of className, boolean attributes bare, the never-real
1071
1091
  * mock properties left out, style added from the live CSSStyleDeclaration when it is not empty).
@@ -2775,6 +2795,321 @@
2775
2795
  get shadowRoot () {
2776
2796
  return this.shadowRootInstance && this.shadowRootInstance.mode === 'open' ? this.shadowRootInstance : null
2777
2797
  }
2798
+
2799
+ /**
2800
+ * Read one of the aria-* reflected properties (see the individual aria* getters/setters below).
2801
+ * @param {string} attributeName A real aria-* attribute name (aria-label, ...)
2802
+ * @returns {string}
2803
+ */
2804
+ getAriaAttribute (attributeName) {
2805
+ return this.getAttribute(attributeName) || ''
2806
+ }
2807
+
2808
+ /**
2809
+ * Write one of the aria-* reflected properties.
2810
+ * @param {string} attributeName A real aria-* attribute name (aria-label, ...)
2811
+ * @param {string} value
2812
+ * @returns {undefined}
2813
+ */
2814
+ setAriaAttribute (attributeName, value) {
2815
+ this.setAttribute(attributeName, value)
2816
+ }
2817
+
2818
+ get ariaAtomic () {
2819
+ return this.getAriaAttribute('aria-atomic')
2820
+ }
2821
+
2822
+ set ariaAtomic (value) {
2823
+ this.setAriaAttribute('aria-atomic', value)
2824
+ }
2825
+
2826
+ get ariaAutoComplete () {
2827
+ return this.getAriaAttribute('aria-autocomplete')
2828
+ }
2829
+
2830
+ set ariaAutoComplete (value) {
2831
+ this.setAriaAttribute('aria-autocomplete', value)
2832
+ }
2833
+
2834
+ get ariaBusy () {
2835
+ return this.getAriaAttribute('aria-busy')
2836
+ }
2837
+
2838
+ set ariaBusy (value) {
2839
+ this.setAriaAttribute('aria-busy', value)
2840
+ }
2841
+
2842
+ get ariaChecked () {
2843
+ return this.getAriaAttribute('aria-checked')
2844
+ }
2845
+
2846
+ set ariaChecked (value) {
2847
+ this.setAriaAttribute('aria-checked', value)
2848
+ }
2849
+
2850
+ get ariaColCount () {
2851
+ return this.getAriaAttribute('aria-colcount')
2852
+ }
2853
+
2854
+ set ariaColCount (value) {
2855
+ this.setAriaAttribute('aria-colcount', value)
2856
+ }
2857
+
2858
+ get ariaColIndex () {
2859
+ return this.getAriaAttribute('aria-colindex')
2860
+ }
2861
+
2862
+ set ariaColIndex (value) {
2863
+ this.setAriaAttribute('aria-colindex', value)
2864
+ }
2865
+
2866
+ get ariaColSpan () {
2867
+ return this.getAriaAttribute('aria-colspan')
2868
+ }
2869
+
2870
+ set ariaColSpan (value) {
2871
+ this.setAriaAttribute('aria-colspan', value)
2872
+ }
2873
+
2874
+ get ariaCurrent () {
2875
+ return this.getAriaAttribute('aria-current')
2876
+ }
2877
+
2878
+ set ariaCurrent (value) {
2879
+ this.setAriaAttribute('aria-current', value)
2880
+ }
2881
+
2882
+ get ariaDescription () {
2883
+ return this.getAriaAttribute('aria-description')
2884
+ }
2885
+
2886
+ set ariaDescription (value) {
2887
+ this.setAriaAttribute('aria-description', value)
2888
+ }
2889
+
2890
+ get ariaDisabled () {
2891
+ return this.getAriaAttribute('aria-disabled')
2892
+ }
2893
+
2894
+ set ariaDisabled (value) {
2895
+ this.setAriaAttribute('aria-disabled', value)
2896
+ }
2897
+
2898
+ get ariaExpanded () {
2899
+ return this.getAriaAttribute('aria-expanded')
2900
+ }
2901
+
2902
+ set ariaExpanded (value) {
2903
+ this.setAriaAttribute('aria-expanded', value)
2904
+ }
2905
+
2906
+ get ariaHasPopup () {
2907
+ return this.getAriaAttribute('aria-haspopup')
2908
+ }
2909
+
2910
+ set ariaHasPopup (value) {
2911
+ this.setAriaAttribute('aria-haspopup', value)
2912
+ }
2913
+
2914
+ get ariaHidden () {
2915
+ return this.getAriaAttribute('aria-hidden')
2916
+ }
2917
+
2918
+ set ariaHidden (value) {
2919
+ this.setAriaAttribute('aria-hidden', value)
2920
+ }
2921
+
2922
+ get ariaKeyShortcuts () {
2923
+ return this.getAriaAttribute('aria-keyshortcuts')
2924
+ }
2925
+
2926
+ set ariaKeyShortcuts (value) {
2927
+ this.setAriaAttribute('aria-keyshortcuts', value)
2928
+ }
2929
+
2930
+ get ariaLabel () {
2931
+ return this.getAriaAttribute('aria-label')
2932
+ }
2933
+
2934
+ set ariaLabel (value) {
2935
+ this.setAriaAttribute('aria-label', value)
2936
+ }
2937
+
2938
+ get ariaLevel () {
2939
+ return this.getAriaAttribute('aria-level')
2940
+ }
2941
+
2942
+ set ariaLevel (value) {
2943
+ this.setAriaAttribute('aria-level', value)
2944
+ }
2945
+
2946
+ get ariaLive () {
2947
+ return this.getAriaAttribute('aria-live')
2948
+ }
2949
+
2950
+ set ariaLive (value) {
2951
+ this.setAriaAttribute('aria-live', value)
2952
+ }
2953
+
2954
+ get ariaModal () {
2955
+ return this.getAriaAttribute('aria-modal')
2956
+ }
2957
+
2958
+ set ariaModal (value) {
2959
+ this.setAriaAttribute('aria-modal', value)
2960
+ }
2961
+
2962
+ get ariaMultiline () {
2963
+ return this.getAriaAttribute('aria-multiline')
2964
+ }
2965
+
2966
+ set ariaMultiline (value) {
2967
+ this.setAriaAttribute('aria-multiline', value)
2968
+ }
2969
+
2970
+ get ariaMultiSelectable () {
2971
+ return this.getAriaAttribute('aria-multiselectable')
2972
+ }
2973
+
2974
+ set ariaMultiSelectable (value) {
2975
+ this.setAriaAttribute('aria-multiselectable', value)
2976
+ }
2977
+
2978
+ get ariaOrientation () {
2979
+ return this.getAriaAttribute('aria-orientation')
2980
+ }
2981
+
2982
+ set ariaOrientation (value) {
2983
+ this.setAriaAttribute('aria-orientation', value)
2984
+ }
2985
+
2986
+ get ariaPlaceholder () {
2987
+ return this.getAriaAttribute('aria-placeholder')
2988
+ }
2989
+
2990
+ set ariaPlaceholder (value) {
2991
+ this.setAriaAttribute('aria-placeholder', value)
2992
+ }
2993
+
2994
+ get ariaPosInSet () {
2995
+ return this.getAriaAttribute('aria-posinset')
2996
+ }
2997
+
2998
+ set ariaPosInSet (value) {
2999
+ this.setAriaAttribute('aria-posinset', value)
3000
+ }
3001
+
3002
+ get ariaPressed () {
3003
+ return this.getAriaAttribute('aria-pressed')
3004
+ }
3005
+
3006
+ set ariaPressed (value) {
3007
+ this.setAriaAttribute('aria-pressed', value)
3008
+ }
3009
+
3010
+ get ariaReadOnly () {
3011
+ return this.getAriaAttribute('aria-readonly')
3012
+ }
3013
+
3014
+ set ariaReadOnly (value) {
3015
+ this.setAriaAttribute('aria-readonly', value)
3016
+ }
3017
+
3018
+ get ariaRequired () {
3019
+ return this.getAriaAttribute('aria-required')
3020
+ }
3021
+
3022
+ set ariaRequired (value) {
3023
+ this.setAriaAttribute('aria-required', value)
3024
+ }
3025
+
3026
+ get ariaRoleDescription () {
3027
+ return this.getAriaAttribute('aria-roledescription')
3028
+ }
3029
+
3030
+ set ariaRoleDescription (value) {
3031
+ this.setAriaAttribute('aria-roledescription', value)
3032
+ }
3033
+
3034
+ get ariaRowCount () {
3035
+ return this.getAriaAttribute('aria-rowcount')
3036
+ }
3037
+
3038
+ set ariaRowCount (value) {
3039
+ this.setAriaAttribute('aria-rowcount', value)
3040
+ }
3041
+
3042
+ get ariaRowIndex () {
3043
+ return this.getAriaAttribute('aria-rowindex')
3044
+ }
3045
+
3046
+ set ariaRowIndex (value) {
3047
+ this.setAriaAttribute('aria-rowindex', value)
3048
+ }
3049
+
3050
+ get ariaRowSpan () {
3051
+ return this.getAriaAttribute('aria-rowspan')
3052
+ }
3053
+
3054
+ set ariaRowSpan (value) {
3055
+ this.setAriaAttribute('aria-rowspan', value)
3056
+ }
3057
+
3058
+ get ariaSelected () {
3059
+ return this.getAriaAttribute('aria-selected')
3060
+ }
3061
+
3062
+ set ariaSelected (value) {
3063
+ this.setAriaAttribute('aria-selected', value)
3064
+ }
3065
+
3066
+ get ariaSetSize () {
3067
+ return this.getAriaAttribute('aria-setsize')
3068
+ }
3069
+
3070
+ set ariaSetSize (value) {
3071
+ this.setAriaAttribute('aria-setsize', value)
3072
+ }
3073
+
3074
+ get ariaSort () {
3075
+ return this.getAriaAttribute('aria-sort')
3076
+ }
3077
+
3078
+ set ariaSort (value) {
3079
+ this.setAriaAttribute('aria-sort', value)
3080
+ }
3081
+
3082
+ get ariaValueMax () {
3083
+ return this.getAriaAttribute('aria-valuemax')
3084
+ }
3085
+
3086
+ set ariaValueMax (value) {
3087
+ this.setAriaAttribute('aria-valuemax', value)
3088
+ }
3089
+
3090
+ get ariaValueMin () {
3091
+ return this.getAriaAttribute('aria-valuemin')
3092
+ }
3093
+
3094
+ set ariaValueMin (value) {
3095
+ this.setAriaAttribute('aria-valuemin', value)
3096
+ }
3097
+
3098
+ get ariaValueNow () {
3099
+ return this.getAriaAttribute('aria-valuenow')
3100
+ }
3101
+
3102
+ set ariaValueNow (value) {
3103
+ this.setAriaAttribute('aria-valuenow', value)
3104
+ }
3105
+
3106
+ get ariaValueText () {
3107
+ return this.getAriaAttribute('aria-valuetext')
3108
+ }
3109
+
3110
+ set ariaValueText (value) {
3111
+ this.setAriaAttribute('aria-valuetext', value)
3112
+ }
2778
3113
  }
2779
3114
  exports.ElementService = ElementService
2780
3115
  }, { '../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 }],