happy-dom 16.5.2 → 16.6.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/cjs/async-task-manager/AsyncTaskManager.cjs.map +1 -1
- package/cjs/async-task-manager/AsyncTaskManager.d.ts.map +1 -1
- package/cjs/browser/detached-browser/DetachedBrowser.cjs.map +1 -1
- package/cjs/browser/utilities/BrowserExceptionObserver.cjs +5 -3
- package/cjs/browser/utilities/BrowserExceptionObserver.cjs.map +1 -1
- package/cjs/browser/utilities/BrowserExceptionObserver.d.ts.map +1 -1
- package/cjs/browser/utilities/BrowserFrameNavigator.cjs +1 -1
- package/cjs/browser/utilities/BrowserFrameNavigator.cjs.map +1 -1
- package/cjs/browser/utilities/BrowserFrameNavigator.d.ts +6 -6
- package/cjs/browser/utilities/BrowserFrameNavigator.d.ts.map +1 -1
- package/cjs/console/VirtualConsole.cjs +26 -15
- package/cjs/console/VirtualConsole.cjs.map +1 -1
- package/cjs/console/VirtualConsole.d.ts +18 -10
- package/cjs/console/VirtualConsole.d.ts.map +1 -1
- package/cjs/cookie/urilities/CookieExpireUtility.d.ts +1 -1
- package/cjs/cookie/urilities/CookieExpireUtility.d.ts.map +1 -1
- package/cjs/css/declaration/property-manager/CSSStyleDeclarationPropertyGetParser.d.ts +17 -17
- package/cjs/css/declaration/property-manager/CSSStyleDeclarationPropertyGetParser.d.ts.map +1 -1
- package/cjs/fetch/Fetch.cjs.map +1 -1
- package/cjs/fetch/Fetch.d.ts.map +1 -1
- package/cjs/html-parser/HTMLParser.cjs +1 -1
- package/cjs/html-parser/HTMLParser.cjs.map +1 -1
- package/cjs/html-serializer/HTMLSerializer.cjs +2 -2
- package/cjs/html-serializer/HTMLSerializer.cjs.map +1 -1
- package/cjs/nodes/element/Element.cjs.map +1 -1
- package/cjs/nodes/element/Element.d.ts +34 -34
- package/cjs/nodes/element/Element.d.ts.map +1 -1
- package/cjs/nodes/html-body-element/HTMLBodyElement.cjs.map +1 -1
- package/cjs/nodes/html-body-element/HTMLBodyElement.d.ts +18 -18
- package/cjs/nodes/html-body-element/HTMLBodyElement.d.ts.map +1 -1
- package/cjs/nodes/html-canvas-element/HTMLCanvasElement.cjs.map +1 -1
- package/cjs/nodes/html-canvas-element/HTMLCanvasElement.d.ts +5 -5
- package/cjs/nodes/html-canvas-element/HTMLCanvasElement.d.ts.map +1 -1
- package/cjs/nodes/html-details-element/HTMLDetailsElement.cjs.map +1 -1
- package/cjs/nodes/html-details-element/HTMLDetailsElement.d.ts +1 -1
- package/cjs/nodes/html-details-element/HTMLDetailsElement.d.ts.map +1 -1
- package/cjs/nodes/html-dialog-element/HTMLDialogElement.cjs.map +1 -1
- package/cjs/nodes/html-dialog-element/HTMLDialogElement.d.ts +2 -2
- package/cjs/nodes/html-dialog-element/HTMLDialogElement.d.ts.map +1 -1
- package/cjs/nodes/html-element/HTMLElement.cjs.map +1 -1
- package/cjs/nodes/html-element/HTMLElement.d.ts +25 -25
- package/cjs/nodes/html-element/HTMLElement.d.ts.map +1 -1
- package/cjs/nodes/html-form-element/HTMLFormElement.cjs.map +1 -1
- package/cjs/nodes/html-form-element/HTMLFormElement.d.ts +3 -3
- package/cjs/nodes/html-form-element/HTMLFormElement.d.ts.map +1 -1
- package/cjs/nodes/html-iframe-element/HTMLIFrameElement.cjs.map +1 -1
- package/cjs/nodes/html-iframe-element/HTMLIFrameElement.d.ts +2 -2
- package/cjs/nodes/html-iframe-element/HTMLIFrameElement.d.ts.map +1 -1
- package/cjs/nodes/html-input-element/HTMLInputElement.cjs.map +1 -1
- package/cjs/nodes/html-input-element/HTMLInputElement.d.ts +3 -3
- package/cjs/nodes/html-input-element/HTMLInputElement.d.ts.map +1 -1
- package/cjs/nodes/html-media-element/HTMLMediaElement.cjs.map +1 -1
- package/cjs/nodes/html-media-element/HTMLMediaElement.d.ts +23 -23
- package/cjs/nodes/html-media-element/HTMLMediaElement.d.ts.map +1 -1
- package/cjs/nodes/html-media-element/MediaStream.cjs.map +1 -1
- package/cjs/nodes/html-media-element/MediaStream.d.ts +2 -2
- package/cjs/nodes/html-media-element/MediaStream.d.ts.map +1 -1
- package/cjs/nodes/html-media-element/MediaStreamTrack.cjs.map +1 -1
- package/cjs/nodes/html-media-element/MediaStreamTrack.d.ts +3 -3
- package/cjs/nodes/html-media-element/MediaStreamTrack.d.ts.map +1 -1
- package/cjs/nodes/html-select-element/HTMLSelectElement.cjs.map +1 -1
- package/cjs/nodes/html-select-element/HTMLSelectElement.d.ts +2 -2
- package/cjs/nodes/html-select-element/HTMLSelectElement.d.ts.map +1 -1
- package/cjs/nodes/html-slot-element/HTMLSlotElement.cjs.map +1 -1
- package/cjs/nodes/html-slot-element/HTMLSlotElement.d.ts +1 -1
- package/cjs/nodes/html-slot-element/HTMLSlotElement.d.ts.map +1 -1
- package/cjs/nodes/html-text-area-element/HTMLTextAreaElement.cjs.map +1 -1
- package/cjs/nodes/html-text-area-element/HTMLTextAreaElement.d.ts +2 -2
- package/cjs/nodes/html-text-area-element/HTMLTextAreaElement.d.ts.map +1 -1
- package/cjs/nodes/shadow-root/ShadowRoot.cjs.map +1 -1
- package/cjs/nodes/shadow-root/ShadowRoot.d.ts +1 -1
- package/cjs/nodes/shadow-root/ShadowRoot.d.ts.map +1 -1
- package/cjs/nodes/svg-animation-element/SVGAnimationElement.cjs.map +1 -1
- package/cjs/nodes/svg-animation-element/SVGAnimationElement.d.ts +3 -3
- package/cjs/nodes/svg-animation-element/SVGAnimationElement.d.ts.map +1 -1
- package/cjs/nodes/svg-element/SVGElement.cjs.map +1 -1
- package/cjs/nodes/svg-element/SVGElement.d.ts +6 -6
- package/cjs/nodes/svg-element/SVGElement.d.ts.map +1 -1
- package/cjs/nodes/svg-graphics-element/SVGGraphicsElement.cjs.map +1 -1
- package/cjs/nodes/svg-graphics-element/SVGGraphicsElement.d.ts +3 -3
- package/cjs/nodes/svg-graphics-element/SVGGraphicsElement.d.ts.map +1 -1
- package/cjs/nodes/svg-svg-element/SVGSVGElement.cjs.map +1 -1
- package/cjs/nodes/svg-svg-element/SVGSVGElement.d.ts +18 -18
- package/cjs/nodes/svg-svg-element/SVGSVGElement.d.ts.map +1 -1
- package/cjs/query-selector/QuerySelector.cjs +39 -4
- package/cjs/query-selector/QuerySelector.cjs.map +1 -1
- package/cjs/query-selector/QuerySelector.d.ts.map +1 -1
- package/cjs/query-selector/SelectorCombinatorEnum.cjs +1 -0
- package/cjs/query-selector/SelectorCombinatorEnum.cjs.map +1 -1
- package/cjs/query-selector/SelectorCombinatorEnum.d.ts +2 -1
- package/cjs/query-selector/SelectorCombinatorEnum.d.ts.map +1 -1
- package/cjs/query-selector/SelectorItem.cjs +2 -1
- package/cjs/query-selector/SelectorItem.cjs.map +1 -1
- package/cjs/query-selector/SelectorItem.d.ts.map +1 -1
- package/cjs/query-selector/SelectorParser.cjs +8 -1
- package/cjs/query-selector/SelectorParser.cjs.map +1 -1
- package/cjs/query-selector/SelectorParser.d.ts.map +1 -1
- package/cjs/svg/SVGAngle.cjs.map +1 -1
- package/cjs/svg/SVGAngle.d.ts +2 -2
- package/cjs/svg/SVGAngle.d.ts.map +1 -1
- package/cjs/svg/SVGAnimatedBoolean.cjs.map +1 -1
- package/cjs/svg/SVGAnimatedBoolean.d.ts +2 -2
- package/cjs/svg/SVGAnimatedBoolean.d.ts.map +1 -1
- package/cjs/svg/SVGAnimatedInteger.cjs.map +1 -1
- package/cjs/svg/SVGAnimatedInteger.d.ts +2 -2
- package/cjs/svg/SVGAnimatedInteger.d.ts.map +1 -1
- package/cjs/svg/SVGAnimatedNumber.cjs.map +1 -1
- package/cjs/svg/SVGAnimatedNumber.d.ts +2 -2
- package/cjs/svg/SVGAnimatedNumber.d.ts.map +1 -1
- package/cjs/svg/SVGAnimatedString.cjs.map +1 -1
- package/cjs/svg/SVGAnimatedString.d.ts +2 -2
- package/cjs/svg/SVGAnimatedString.d.ts.map +1 -1
- package/cjs/svg/SVGLength.cjs.map +1 -1
- package/cjs/svg/SVGLength.d.ts +2 -2
- package/cjs/svg/SVGLength.d.ts.map +1 -1
- package/cjs/svg/SVGLengthList.cjs.map +1 -1
- package/cjs/svg/SVGLengthList.d.ts +2 -2
- package/cjs/svg/SVGLengthList.d.ts.map +1 -1
- package/cjs/svg/SVGMatrix.cjs.map +1 -1
- package/cjs/svg/SVGMatrix.d.ts +2 -2
- package/cjs/svg/SVGMatrix.d.ts.map +1 -1
- package/cjs/svg/SVGNumber.cjs.map +1 -1
- package/cjs/svg/SVGNumber.d.ts +2 -2
- package/cjs/svg/SVGNumber.d.ts.map +1 -1
- package/cjs/svg/SVGNumberList.cjs.map +1 -1
- package/cjs/svg/SVGNumberList.d.ts +2 -2
- package/cjs/svg/SVGNumberList.d.ts.map +1 -1
- package/cjs/svg/SVGPoint.cjs.map +1 -1
- package/cjs/svg/SVGPoint.d.ts +2 -2
- package/cjs/svg/SVGPoint.d.ts.map +1 -1
- package/cjs/svg/SVGPointList.cjs.map +1 -1
- package/cjs/svg/SVGPointList.d.ts +2 -2
- package/cjs/svg/SVGPointList.d.ts.map +1 -1
- package/cjs/svg/SVGPreserveAspectRatio.cjs.map +1 -1
- package/cjs/svg/SVGPreserveAspectRatio.d.ts +2 -2
- package/cjs/svg/SVGPreserveAspectRatio.d.ts.map +1 -1
- package/cjs/svg/SVGRect.cjs.map +1 -1
- package/cjs/svg/SVGRect.d.ts +2 -2
- package/cjs/svg/SVGRect.d.ts.map +1 -1
- package/cjs/svg/SVGStringList.cjs.map +1 -1
- package/cjs/svg/SVGStringList.d.ts +2 -2
- package/cjs/svg/SVGStringList.d.ts.map +1 -1
- package/cjs/svg/SVGTransformList.cjs.map +1 -1
- package/cjs/svg/SVGTransformList.d.ts +2 -2
- package/cjs/svg/SVGTransformList.d.ts.map +1 -1
- package/cjs/utilities/XMLEncodeUtility.cjs +26 -2
- package/cjs/utilities/XMLEncodeUtility.cjs.map +1 -1
- package/cjs/utilities/XMLEncodeUtility.d.ts +16 -2
- package/cjs/utilities/XMLEncodeUtility.d.ts.map +1 -1
- package/cjs/xml-http-request/XMLHttpRequestEventTarget.cjs.map +1 -1
- package/cjs/xml-http-request/XMLHttpRequestEventTarget.d.ts +1 -1
- package/cjs/xml-http-request/XMLHttpRequestEventTarget.d.ts.map +1 -1
- package/cjs/xml-parser/XMLParser.cjs +1 -1
- package/cjs/xml-parser/XMLParser.cjs.map +1 -1
- package/cjs/xml-serializer/XMLSerializer.cjs +6 -6
- package/cjs/xml-serializer/XMLSerializer.cjs.map +1 -1
- package/lib/async-task-manager/AsyncTaskManager.d.ts.map +1 -1
- package/lib/async-task-manager/AsyncTaskManager.js.map +1 -1
- package/lib/browser/detached-browser/DetachedBrowser.js.map +1 -1
- package/lib/browser/utilities/BrowserExceptionObserver.d.ts.map +1 -1
- package/lib/browser/utilities/BrowserExceptionObserver.js +5 -3
- package/lib/browser/utilities/BrowserExceptionObserver.js.map +1 -1
- package/lib/browser/utilities/BrowserFrameNavigator.d.ts +6 -6
- package/lib/browser/utilities/BrowserFrameNavigator.d.ts.map +1 -1
- package/lib/browser/utilities/BrowserFrameNavigator.js +1 -1
- package/lib/browser/utilities/BrowserFrameNavigator.js.map +1 -1
- package/lib/console/VirtualConsole.d.ts +18 -10
- package/lib/console/VirtualConsole.d.ts.map +1 -1
- package/lib/console/VirtualConsole.js +26 -15
- package/lib/console/VirtualConsole.js.map +1 -1
- package/lib/cookie/urilities/CookieExpireUtility.d.ts +1 -1
- package/lib/cookie/urilities/CookieExpireUtility.d.ts.map +1 -1
- package/lib/css/declaration/property-manager/CSSStyleDeclarationPropertyGetParser.d.ts +17 -17
- package/lib/css/declaration/property-manager/CSSStyleDeclarationPropertyGetParser.d.ts.map +1 -1
- package/lib/fetch/Fetch.d.ts.map +1 -1
- package/lib/fetch/Fetch.js.map +1 -1
- package/lib/html-parser/HTMLParser.js +1 -1
- package/lib/html-parser/HTMLParser.js.map +1 -1
- package/lib/html-serializer/HTMLSerializer.js +2 -2
- package/lib/html-serializer/HTMLSerializer.js.map +1 -1
- package/lib/nodes/element/Element.d.ts +34 -34
- package/lib/nodes/element/Element.d.ts.map +1 -1
- package/lib/nodes/element/Element.js.map +1 -1
- package/lib/nodes/html-body-element/HTMLBodyElement.d.ts +18 -18
- package/lib/nodes/html-body-element/HTMLBodyElement.d.ts.map +1 -1
- package/lib/nodes/html-body-element/HTMLBodyElement.js.map +1 -1
- package/lib/nodes/html-canvas-element/HTMLCanvasElement.d.ts +5 -5
- package/lib/nodes/html-canvas-element/HTMLCanvasElement.d.ts.map +1 -1
- package/lib/nodes/html-canvas-element/HTMLCanvasElement.js.map +1 -1
- package/lib/nodes/html-details-element/HTMLDetailsElement.d.ts +1 -1
- package/lib/nodes/html-details-element/HTMLDetailsElement.d.ts.map +1 -1
- package/lib/nodes/html-details-element/HTMLDetailsElement.js.map +1 -1
- package/lib/nodes/html-dialog-element/HTMLDialogElement.d.ts +2 -2
- package/lib/nodes/html-dialog-element/HTMLDialogElement.d.ts.map +1 -1
- package/lib/nodes/html-dialog-element/HTMLDialogElement.js.map +1 -1
- package/lib/nodes/html-element/HTMLElement.d.ts +25 -25
- package/lib/nodes/html-element/HTMLElement.d.ts.map +1 -1
- package/lib/nodes/html-element/HTMLElement.js.map +1 -1
- package/lib/nodes/html-form-element/HTMLFormElement.d.ts +3 -3
- package/lib/nodes/html-form-element/HTMLFormElement.d.ts.map +1 -1
- package/lib/nodes/html-form-element/HTMLFormElement.js.map +1 -1
- package/lib/nodes/html-iframe-element/HTMLIFrameElement.d.ts +2 -2
- package/lib/nodes/html-iframe-element/HTMLIFrameElement.d.ts.map +1 -1
- package/lib/nodes/html-iframe-element/HTMLIFrameElement.js.map +1 -1
- package/lib/nodes/html-input-element/HTMLInputElement.d.ts +3 -3
- package/lib/nodes/html-input-element/HTMLInputElement.d.ts.map +1 -1
- package/lib/nodes/html-input-element/HTMLInputElement.js.map +1 -1
- package/lib/nodes/html-media-element/HTMLMediaElement.d.ts +23 -23
- package/lib/nodes/html-media-element/HTMLMediaElement.d.ts.map +1 -1
- package/lib/nodes/html-media-element/HTMLMediaElement.js.map +1 -1
- package/lib/nodes/html-media-element/MediaStream.d.ts +2 -2
- package/lib/nodes/html-media-element/MediaStream.d.ts.map +1 -1
- package/lib/nodes/html-media-element/MediaStream.js.map +1 -1
- package/lib/nodes/html-media-element/MediaStreamTrack.d.ts +3 -3
- package/lib/nodes/html-media-element/MediaStreamTrack.d.ts.map +1 -1
- package/lib/nodes/html-media-element/MediaStreamTrack.js.map +1 -1
- package/lib/nodes/html-select-element/HTMLSelectElement.d.ts +2 -2
- package/lib/nodes/html-select-element/HTMLSelectElement.d.ts.map +1 -1
- package/lib/nodes/html-select-element/HTMLSelectElement.js.map +1 -1
- package/lib/nodes/html-slot-element/HTMLSlotElement.d.ts +1 -1
- package/lib/nodes/html-slot-element/HTMLSlotElement.d.ts.map +1 -1
- package/lib/nodes/html-slot-element/HTMLSlotElement.js.map +1 -1
- package/lib/nodes/html-text-area-element/HTMLTextAreaElement.d.ts +2 -2
- package/lib/nodes/html-text-area-element/HTMLTextAreaElement.d.ts.map +1 -1
- package/lib/nodes/html-text-area-element/HTMLTextAreaElement.js.map +1 -1
- package/lib/nodes/shadow-root/ShadowRoot.d.ts +1 -1
- package/lib/nodes/shadow-root/ShadowRoot.d.ts.map +1 -1
- package/lib/nodes/shadow-root/ShadowRoot.js.map +1 -1
- package/lib/nodes/svg-animation-element/SVGAnimationElement.d.ts +3 -3
- package/lib/nodes/svg-animation-element/SVGAnimationElement.d.ts.map +1 -1
- package/lib/nodes/svg-animation-element/SVGAnimationElement.js.map +1 -1
- package/lib/nodes/svg-element/SVGElement.d.ts +6 -6
- package/lib/nodes/svg-element/SVGElement.d.ts.map +1 -1
- package/lib/nodes/svg-element/SVGElement.js.map +1 -1
- package/lib/nodes/svg-graphics-element/SVGGraphicsElement.d.ts +3 -3
- package/lib/nodes/svg-graphics-element/SVGGraphicsElement.d.ts.map +1 -1
- package/lib/nodes/svg-graphics-element/SVGGraphicsElement.js.map +1 -1
- package/lib/nodes/svg-svg-element/SVGSVGElement.d.ts +18 -18
- package/lib/nodes/svg-svg-element/SVGSVGElement.d.ts.map +1 -1
- package/lib/nodes/svg-svg-element/SVGSVGElement.js.map +1 -1
- package/lib/query-selector/QuerySelector.d.ts.map +1 -1
- package/lib/query-selector/QuerySelector.js +39 -4
- package/lib/query-selector/QuerySelector.js.map +1 -1
- package/lib/query-selector/SelectorCombinatorEnum.d.ts +2 -1
- package/lib/query-selector/SelectorCombinatorEnum.d.ts.map +1 -1
- package/lib/query-selector/SelectorCombinatorEnum.js +1 -0
- package/lib/query-selector/SelectorCombinatorEnum.js.map +1 -1
- package/lib/query-selector/SelectorItem.d.ts.map +1 -1
- package/lib/query-selector/SelectorItem.js +2 -1
- package/lib/query-selector/SelectorItem.js.map +1 -1
- package/lib/query-selector/SelectorParser.d.ts.map +1 -1
- package/lib/query-selector/SelectorParser.js +8 -1
- package/lib/query-selector/SelectorParser.js.map +1 -1
- package/lib/svg/SVGAngle.d.ts +2 -2
- package/lib/svg/SVGAngle.d.ts.map +1 -1
- package/lib/svg/SVGAngle.js.map +1 -1
- package/lib/svg/SVGAnimatedBoolean.d.ts +2 -2
- package/lib/svg/SVGAnimatedBoolean.d.ts.map +1 -1
- package/lib/svg/SVGAnimatedBoolean.js.map +1 -1
- package/lib/svg/SVGAnimatedInteger.d.ts +2 -2
- package/lib/svg/SVGAnimatedInteger.d.ts.map +1 -1
- package/lib/svg/SVGAnimatedInteger.js.map +1 -1
- package/lib/svg/SVGAnimatedNumber.d.ts +2 -2
- package/lib/svg/SVGAnimatedNumber.d.ts.map +1 -1
- package/lib/svg/SVGAnimatedNumber.js.map +1 -1
- package/lib/svg/SVGAnimatedString.d.ts +2 -2
- package/lib/svg/SVGAnimatedString.d.ts.map +1 -1
- package/lib/svg/SVGAnimatedString.js.map +1 -1
- package/lib/svg/SVGLength.d.ts +2 -2
- package/lib/svg/SVGLength.d.ts.map +1 -1
- package/lib/svg/SVGLength.js.map +1 -1
- package/lib/svg/SVGLengthList.d.ts +2 -2
- package/lib/svg/SVGLengthList.d.ts.map +1 -1
- package/lib/svg/SVGLengthList.js.map +1 -1
- package/lib/svg/SVGMatrix.d.ts +2 -2
- package/lib/svg/SVGMatrix.d.ts.map +1 -1
- package/lib/svg/SVGMatrix.js.map +1 -1
- package/lib/svg/SVGNumber.d.ts +2 -2
- package/lib/svg/SVGNumber.d.ts.map +1 -1
- package/lib/svg/SVGNumber.js.map +1 -1
- package/lib/svg/SVGNumberList.d.ts +2 -2
- package/lib/svg/SVGNumberList.d.ts.map +1 -1
- package/lib/svg/SVGNumberList.js.map +1 -1
- package/lib/svg/SVGPoint.d.ts +2 -2
- package/lib/svg/SVGPoint.d.ts.map +1 -1
- package/lib/svg/SVGPoint.js.map +1 -1
- package/lib/svg/SVGPointList.d.ts +2 -2
- package/lib/svg/SVGPointList.d.ts.map +1 -1
- package/lib/svg/SVGPointList.js.map +1 -1
- package/lib/svg/SVGPreserveAspectRatio.d.ts +2 -2
- package/lib/svg/SVGPreserveAspectRatio.d.ts.map +1 -1
- package/lib/svg/SVGPreserveAspectRatio.js.map +1 -1
- package/lib/svg/SVGRect.d.ts +2 -2
- package/lib/svg/SVGRect.d.ts.map +1 -1
- package/lib/svg/SVGRect.js.map +1 -1
- package/lib/svg/SVGStringList.d.ts +2 -2
- package/lib/svg/SVGStringList.d.ts.map +1 -1
- package/lib/svg/SVGStringList.js.map +1 -1
- package/lib/svg/SVGTransformList.d.ts +2 -2
- package/lib/svg/SVGTransformList.d.ts.map +1 -1
- package/lib/svg/SVGTransformList.js.map +1 -1
- package/lib/utilities/XMLEncodeUtility.d.ts +16 -2
- package/lib/utilities/XMLEncodeUtility.d.ts.map +1 -1
- package/lib/utilities/XMLEncodeUtility.js +26 -2
- package/lib/utilities/XMLEncodeUtility.js.map +1 -1
- package/lib/xml-http-request/XMLHttpRequestEventTarget.d.ts +1 -1
- package/lib/xml-http-request/XMLHttpRequestEventTarget.d.ts.map +1 -1
- package/lib/xml-http-request/XMLHttpRequestEventTarget.js.map +1 -1
- package/lib/xml-parser/XMLParser.js +1 -1
- package/lib/xml-parser/XMLParser.js.map +1 -1
- package/lib/xml-serializer/XMLSerializer.js +6 -6
- package/lib/xml-serializer/XMLSerializer.js.map +1 -1
- package/package.json +1 -1
- package/src/async-task-manager/AsyncTaskManager.ts +1 -1
- package/src/browser/detached-browser/DetachedBrowser.ts +1 -1
- package/src/browser/utilities/BrowserExceptionObserver.ts +7 -6
- package/src/browser/utilities/BrowserFrameNavigator.ts +7 -7
- package/src/console/VirtualConsole.ts +28 -17
- package/src/cookie/urilities/CookieExpireUtility.ts +1 -1
- package/src/css/declaration/computed-style/CSSStyleDeclarationComputedStyle.ts +2 -2
- package/src/css/declaration/property-manager/CSSStyleDeclarationPropertyGetParser.ts +19 -19
- package/src/fetch/Fetch.ts +2 -2
- package/src/html-parser/HTMLParser.ts +1 -1
- package/src/html-serializer/HTMLSerializer.ts +2 -2
- package/src/nodes/element/Element.ts +34 -34
- package/src/nodes/html-body-element/HTMLBodyElement.ts +18 -18
- package/src/nodes/html-canvas-element/HTMLCanvasElement.ts +5 -5
- package/src/nodes/html-details-element/HTMLDetailsElement.ts +1 -1
- package/src/nodes/html-dialog-element/HTMLDialogElement.ts +2 -2
- package/src/nodes/html-element/HTMLElement.ts +25 -25
- package/src/nodes/html-form-element/HTMLFormElement.ts +3 -3
- package/src/nodes/html-iframe-element/HTMLIFrameElement.ts +2 -2
- package/src/nodes/html-input-element/HTMLInputElement.ts +3 -3
- package/src/nodes/html-media-element/HTMLMediaElement.ts +23 -23
- package/src/nodes/html-media-element/MediaStream.ts +2 -2
- package/src/nodes/html-media-element/MediaStreamTrack.ts +3 -3
- package/src/nodes/html-select-element/HTMLSelectElement.ts +2 -2
- package/src/nodes/html-slot-element/HTMLSlotElement.ts +1 -1
- package/src/nodes/html-text-area-element/HTMLTextAreaElement.ts +2 -2
- package/src/nodes/shadow-root/ShadowRoot.ts +1 -1
- package/src/nodes/svg-animation-element/SVGAnimationElement.ts +3 -3
- package/src/nodes/svg-element/SVGElement.ts +6 -6
- package/src/nodes/svg-graphics-element/SVGGraphicsElement.ts +3 -3
- package/src/nodes/svg-svg-element/SVGSVGElement.ts +18 -18
- package/src/query-selector/QuerySelector.ts +58 -4
- package/src/query-selector/SelectorCombinatorEnum.ts +2 -1
- package/src/query-selector/SelectorItem.ts +3 -1
- package/src/query-selector/SelectorParser.ts +8 -1
- package/src/svg/SVGAngle.ts +2 -2
- package/src/svg/SVGAnimatedBoolean.ts +2 -2
- package/src/svg/SVGAnimatedInteger.ts +2 -2
- package/src/svg/SVGAnimatedNumber.ts +2 -2
- package/src/svg/SVGAnimatedString.ts +2 -2
- package/src/svg/SVGLength.ts +2 -2
- package/src/svg/SVGLengthList.ts +2 -2
- package/src/svg/SVGMatrix.ts +2 -2
- package/src/svg/SVGNumber.ts +2 -2
- package/src/svg/SVGNumberList.ts +2 -2
- package/src/svg/SVGPoint.ts +2 -2
- package/src/svg/SVGPointList.ts +2 -2
- package/src/svg/SVGPreserveAspectRatio.ts +2 -2
- package/src/svg/SVGRect.ts +2 -2
- package/src/svg/SVGStringList.ts +2 -2
- package/src/svg/SVGTransformList.ts +2 -2
- package/src/utilities/XMLEncodeUtility.ts +29 -2
- package/src/xml-http-request/XMLHttpRequestEventTarget.ts +1 -1
- package/src/xml-parser/XMLParser.ts +1 -1
- package/src/xml-serializer/XMLSerializer.ts +6 -6
@@ -33,14 +33,15 @@ export default class VirtualConsole implements Console {
|
|
33
33
|
* Writes an error message to the console if the assertion is false. If the assertion is true, nothing happens.
|
34
34
|
*
|
35
35
|
* @param assertion Assertion.
|
36
|
+
* @param message Message.
|
36
37
|
* @param args Arguments.
|
37
38
|
*/
|
38
|
-
public assert(assertion: boolean, ...args: Array<object | string>): void {
|
39
|
+
public assert(assertion: boolean, message?: any, ...args: Array<object | string>): void {
|
39
40
|
if (!assertion) {
|
40
41
|
this.#printer.print({
|
41
42
|
type: VirtualConsoleLogTypeEnum.assert,
|
42
43
|
level: VirtualConsoleLogLevelEnum.error,
|
43
|
-
message: ['Assertion failed:', ...args],
|
44
|
+
message: ['Assertion failed:', ...(message ? [message, ...args] : args)],
|
44
45
|
group: this.#groups[this.#groups.length - 1] || null
|
45
46
|
});
|
46
47
|
}
|
@@ -92,13 +93,14 @@ export default class VirtualConsole implements Console {
|
|
92
93
|
/**
|
93
94
|
* Outputs a message to the web console at the "debug" log level.
|
94
95
|
*
|
96
|
+
* @param message Message.
|
95
97
|
* @param args Arguments.
|
96
98
|
*/
|
97
|
-
public debug(...args: Array<object | string>): void {
|
99
|
+
public debug(message?: any, ...args: Array<object | string>): void {
|
98
100
|
this.#printer.print({
|
99
101
|
type: VirtualConsoleLogTypeEnum.debug,
|
100
102
|
level: VirtualConsoleLogLevelEnum.log,
|
101
|
-
message: args,
|
103
|
+
message: message ? [message, ...args] : args,
|
102
104
|
group: this.#groups[this.#groups.length - 1] || null
|
103
105
|
});
|
104
106
|
}
|
@@ -108,7 +110,7 @@ export default class VirtualConsole implements Console {
|
|
108
110
|
*
|
109
111
|
* @param data Data.
|
110
112
|
*/
|
111
|
-
public dir(data:
|
113
|
+
public dir(data: any): void {
|
112
114
|
this.#printer.print({
|
113
115
|
type: VirtualConsoleLogTypeEnum.dir,
|
114
116
|
level: VirtualConsoleLogLevelEnum.log,
|
@@ -122,7 +124,7 @@ export default class VirtualConsole implements Console {
|
|
122
124
|
*
|
123
125
|
* @param data Data.
|
124
126
|
*/
|
125
|
-
public dirxml(data:
|
127
|
+
public dirxml(data: any[]): void {
|
126
128
|
this.#printer.print({
|
127
129
|
type: VirtualConsoleLogTypeEnum.dirxml,
|
128
130
|
level: VirtualConsoleLogLevelEnum.log,
|
@@ -134,13 +136,14 @@ export default class VirtualConsole implements Console {
|
|
134
136
|
/**
|
135
137
|
* Outputs an error message to the console.
|
136
138
|
*
|
139
|
+
* @param message Message.
|
137
140
|
* @param args Arguments.
|
138
141
|
*/
|
139
|
-
public error(...args: Array<object | string>): void {
|
142
|
+
public error(message?: any, ...args: Array<object | string>): void {
|
140
143
|
this.#printer.print({
|
141
144
|
type: VirtualConsoleLogTypeEnum.error,
|
142
145
|
level: VirtualConsoleLogLevelEnum.error,
|
143
|
-
message: args,
|
146
|
+
message: message ? [message, ...args] : args,
|
144
147
|
group: this.#groups[this.#groups.length - 1] || null
|
145
148
|
});
|
146
149
|
}
|
@@ -211,14 +214,16 @@ export default class VirtualConsole implements Console {
|
|
211
214
|
}
|
212
215
|
|
213
216
|
/**
|
217
|
+
* Outputs an informational message to the console.
|
214
218
|
*
|
215
|
-
* @param
|
219
|
+
* @param message Message.
|
220
|
+
* @param args Arguments.
|
216
221
|
*/
|
217
|
-
public info(...args: Array<object | string>): void {
|
222
|
+
public info(message?: any, ...args: Array<object | string>): void {
|
218
223
|
this.#printer.print({
|
219
224
|
type: VirtualConsoleLogTypeEnum.info,
|
220
225
|
level: VirtualConsoleLogLevelEnum.info,
|
221
|
-
message: args,
|
226
|
+
message: message ? [message, ...args] : args,
|
222
227
|
group: this.#groups[this.#groups.length - 1] || null
|
223
228
|
});
|
224
229
|
}
|
@@ -226,13 +231,14 @@ export default class VirtualConsole implements Console {
|
|
226
231
|
/**
|
227
232
|
* Outputs a message to the console.
|
228
233
|
*
|
234
|
+
* @param message Message.
|
229
235
|
* @param args Arguments.
|
230
236
|
*/
|
231
|
-
public log(...args: Array<object | string>): void {
|
237
|
+
public log(message?: any, ...args: Array<object | string>): void {
|
232
238
|
this.#printer.print({
|
233
239
|
type: VirtualConsoleLogTypeEnum.log,
|
234
240
|
level: VirtualConsoleLogLevelEnum.log,
|
235
|
-
message: args,
|
241
|
+
message: message ? [message, ...args] : args,
|
236
242
|
group: this.#groups[this.#groups.length - 1] || null
|
237
243
|
});
|
238
244
|
}
|
@@ -329,13 +335,17 @@ export default class VirtualConsole implements Console {
|
|
329
335
|
/**
|
330
336
|
* Outputs a stack trace to the console.
|
331
337
|
*
|
338
|
+
* @param message Message.
|
332
339
|
* @param args Arguments.
|
333
340
|
*/
|
334
|
-
public trace(...args: Array<object | string>): void {
|
341
|
+
public trace(message?: any, ...args: Array<object | string>): void {
|
335
342
|
this.#printer.print({
|
336
343
|
type: VirtualConsoleLogTypeEnum.trace,
|
337
344
|
level: VirtualConsoleLogLevelEnum.log,
|
338
|
-
message: [
|
345
|
+
message: [
|
346
|
+
...(message ? [message, ...args] : args),
|
347
|
+
new Error('stack').stack!.replace('Error: stack', '')
|
348
|
+
],
|
339
349
|
group: this.#groups[this.#groups.length - 1] || null
|
340
350
|
});
|
341
351
|
}
|
@@ -343,13 +353,14 @@ export default class VirtualConsole implements Console {
|
|
343
353
|
/**
|
344
354
|
* Outputs a warning message to the console.
|
345
355
|
*
|
356
|
+
* @param message Message.
|
346
357
|
* @param args Arguments.
|
347
358
|
*/
|
348
|
-
public warn(...args: Array<object | string>): void {
|
359
|
+
public warn(message?: any, ...args: Array<object | string>): void {
|
349
360
|
this.#printer.print({
|
350
361
|
type: VirtualConsoleLogTypeEnum.warn,
|
351
362
|
level: VirtualConsoleLogLevelEnum.warn,
|
352
|
-
message: args,
|
363
|
+
message: message ? [message, ...args] : args,
|
353
364
|
group: this.#groups[this.#groups.length - 1] || null
|
354
365
|
});
|
355
366
|
}
|
@@ -10,7 +10,7 @@ export default class CookieExpireUtility {
|
|
10
10
|
* @param cookie Cookie.
|
11
11
|
* @returns "true" if cookie has expired.
|
12
12
|
*/
|
13
|
-
public static hasExpired(cookie: ICookie): boolean {
|
13
|
+
public static hasExpired(cookie: ICookie): boolean | null {
|
14
14
|
return cookie.expires && cookie.expires.getTime() < Date.now();
|
15
15
|
}
|
16
16
|
}
|
@@ -287,8 +287,8 @@ export default class CSSStyleDeclarationComputedStyle {
|
|
287
287
|
private parseCSSRules(options: {
|
288
288
|
cssRules: CSSRule[];
|
289
289
|
elements: IStyleAndElement[];
|
290
|
-
rootElement?: IStyleAndElement;
|
291
|
-
hostElement?: IStyleAndElement;
|
290
|
+
rootElement?: IStyleAndElement | null;
|
291
|
+
hostElement?: IStyleAndElement | null;
|
292
292
|
}): void {
|
293
293
|
if (!options.elements.length) {
|
294
294
|
return;
|
@@ -13,7 +13,7 @@ export default class CSSStyleDeclarationPropertyGetParser {
|
|
13
13
|
*/
|
14
14
|
public static getMargin(properties: {
|
15
15
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
16
|
-
}): ICSSStyleDeclarationPropertyValue {
|
16
|
+
}): ICSSStyleDeclarationPropertyValue | null {
|
17
17
|
return this.getPaddingLikeProperty(
|
18
18
|
['margin-top', 'margin-right', 'margin-bottom', 'margin-left'],
|
19
19
|
properties
|
@@ -28,7 +28,7 @@ export default class CSSStyleDeclarationPropertyGetParser {
|
|
28
28
|
*/
|
29
29
|
public static getPadding(properties: {
|
30
30
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
31
|
-
}): ICSSStyleDeclarationPropertyValue {
|
31
|
+
}): ICSSStyleDeclarationPropertyValue | null {
|
32
32
|
return this.getPaddingLikeProperty(
|
33
33
|
['padding-top', 'padding-right', 'padding-bottom', 'padding-left'],
|
34
34
|
properties
|
@@ -43,7 +43,7 @@ export default class CSSStyleDeclarationPropertyGetParser {
|
|
43
43
|
*/
|
44
44
|
public static getOutline(properties: {
|
45
45
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
46
|
-
}): ICSSStyleDeclarationPropertyValue {
|
46
|
+
}): ICSSStyleDeclarationPropertyValue | null {
|
47
47
|
if (
|
48
48
|
!properties['outline-color']?.value ||
|
49
49
|
!properties['outline-style']?.value ||
|
@@ -94,7 +94,7 @@ export default class CSSStyleDeclarationPropertyGetParser {
|
|
94
94
|
*/
|
95
95
|
public static getBorder(properties: {
|
96
96
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
97
|
-
}): ICSSStyleDeclarationPropertyValue {
|
97
|
+
}): ICSSStyleDeclarationPropertyValue | null {
|
98
98
|
if (
|
99
99
|
!properties['border-top-width']?.value ||
|
100
100
|
properties['border-top-width']?.value !== properties['border-right-width']?.value ||
|
@@ -200,7 +200,7 @@ export default class CSSStyleDeclarationPropertyGetParser {
|
|
200
200
|
*/
|
201
201
|
public static getBorderTop(properties: {
|
202
202
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
203
|
-
}): ICSSStyleDeclarationPropertyValue {
|
203
|
+
}): ICSSStyleDeclarationPropertyValue | null {
|
204
204
|
return this.getBorderTopRightBottomLeft('top', properties);
|
205
205
|
}
|
206
206
|
|
@@ -212,7 +212,7 @@ export default class CSSStyleDeclarationPropertyGetParser {
|
|
212
212
|
*/
|
213
213
|
public static getBorderRight(properties: {
|
214
214
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
215
|
-
}): ICSSStyleDeclarationPropertyValue {
|
215
|
+
}): ICSSStyleDeclarationPropertyValue | null {
|
216
216
|
return this.getBorderTopRightBottomLeft('right', properties);
|
217
217
|
}
|
218
218
|
|
@@ -224,7 +224,7 @@ export default class CSSStyleDeclarationPropertyGetParser {
|
|
224
224
|
*/
|
225
225
|
public static getBorderBottom(properties: {
|
226
226
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
227
|
-
}): ICSSStyleDeclarationPropertyValue {
|
227
|
+
}): ICSSStyleDeclarationPropertyValue | null {
|
228
228
|
return this.getBorderTopRightBottomLeft('bottom', properties);
|
229
229
|
}
|
230
230
|
|
@@ -236,7 +236,7 @@ export default class CSSStyleDeclarationPropertyGetParser {
|
|
236
236
|
*/
|
237
237
|
public static getBorderLeft(properties: {
|
238
238
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
239
|
-
}): ICSSStyleDeclarationPropertyValue {
|
239
|
+
}): ICSSStyleDeclarationPropertyValue | null {
|
240
240
|
return this.getBorderTopRightBottomLeft('left', properties);
|
241
241
|
}
|
242
242
|
|
@@ -248,7 +248,7 @@ export default class CSSStyleDeclarationPropertyGetParser {
|
|
248
248
|
*/
|
249
249
|
public static getBorderColor(properties: {
|
250
250
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
251
|
-
}): ICSSStyleDeclarationPropertyValue {
|
251
|
+
}): ICSSStyleDeclarationPropertyValue | null {
|
252
252
|
return this.getPaddingLikeProperty(
|
253
253
|
['border-top-color', 'border-right-color', 'border-bottom-color', 'border-left-color'],
|
254
254
|
properties
|
@@ -263,7 +263,7 @@ export default class CSSStyleDeclarationPropertyGetParser {
|
|
263
263
|
*/
|
264
264
|
public static getBorderWidth(properties: {
|
265
265
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
266
|
-
}): ICSSStyleDeclarationPropertyValue {
|
266
|
+
}): ICSSStyleDeclarationPropertyValue | null {
|
267
267
|
return this.getPaddingLikeProperty(
|
268
268
|
['border-top-width', 'border-right-width', 'border-bottom-width', 'border-left-width'],
|
269
269
|
properties
|
@@ -278,7 +278,7 @@ export default class CSSStyleDeclarationPropertyGetParser {
|
|
278
278
|
*/
|
279
279
|
public static getBorderStyle(properties: {
|
280
280
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
281
|
-
}): ICSSStyleDeclarationPropertyValue {
|
281
|
+
}): ICSSStyleDeclarationPropertyValue | null {
|
282
282
|
return this.getPaddingLikeProperty(
|
283
283
|
['border-top-style', 'border-right-style', 'border-bottom-style', 'border-left-style'],
|
284
284
|
properties
|
@@ -293,7 +293,7 @@ export default class CSSStyleDeclarationPropertyGetParser {
|
|
293
293
|
*/
|
294
294
|
public static getBorderRadius(properties: {
|
295
295
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
296
|
-
}): ICSSStyleDeclarationPropertyValue {
|
296
|
+
}): ICSSStyleDeclarationPropertyValue | null {
|
297
297
|
return this.getPaddingLikeProperty(
|
298
298
|
[
|
299
299
|
'border-top-left-radius',
|
@@ -313,7 +313,7 @@ export default class CSSStyleDeclarationPropertyGetParser {
|
|
313
313
|
*/
|
314
314
|
public static getBorderImage(properties: {
|
315
315
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
316
|
-
}): ICSSStyleDeclarationPropertyValue {
|
316
|
+
}): ICSSStyleDeclarationPropertyValue | null {
|
317
317
|
if (
|
318
318
|
!properties['border-image-source']?.value ||
|
319
319
|
!properties['border-image-slice']?.value ||
|
@@ -366,7 +366,7 @@ export default class CSSStyleDeclarationPropertyGetParser {
|
|
366
366
|
*/
|
367
367
|
public static getBackground(properties: {
|
368
368
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
369
|
-
}): ICSSStyleDeclarationPropertyValue {
|
369
|
+
}): ICSSStyleDeclarationPropertyValue | null {
|
370
370
|
if (
|
371
371
|
!properties['background-image']?.value ||
|
372
372
|
!properties['background-repeat']?.value ||
|
@@ -489,7 +489,7 @@ export default class CSSStyleDeclarationPropertyGetParser {
|
|
489
489
|
*/
|
490
490
|
public static getBackgroundPosition(properties: {
|
491
491
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
492
|
-
}): ICSSStyleDeclarationPropertyValue {
|
492
|
+
}): ICSSStyleDeclarationPropertyValue | null {
|
493
493
|
if (
|
494
494
|
!properties['background-position-x']?.value ||
|
495
495
|
!properties['background-position-y']?.value
|
@@ -536,7 +536,7 @@ export default class CSSStyleDeclarationPropertyGetParser {
|
|
536
536
|
*/
|
537
537
|
public static getFlex(properties: {
|
538
538
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
539
|
-
}): ICSSStyleDeclarationPropertyValue {
|
539
|
+
}): ICSSStyleDeclarationPropertyValue | null {
|
540
540
|
if (
|
541
541
|
!properties['flex-grow']?.value ||
|
542
542
|
!properties['flex-shrink']?.value ||
|
@@ -582,7 +582,7 @@ export default class CSSStyleDeclarationPropertyGetParser {
|
|
582
582
|
*/
|
583
583
|
public static getFont(properties: {
|
584
584
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
585
|
-
}): ICSSStyleDeclarationPropertyValue {
|
585
|
+
}): ICSSStyleDeclarationPropertyValue | null {
|
586
586
|
if (
|
587
587
|
!properties['font-size']?.value ||
|
588
588
|
!properties['font-family']?.value ||
|
@@ -671,7 +671,7 @@ export default class CSSStyleDeclarationPropertyGetParser {
|
|
671
671
|
properties: {
|
672
672
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
673
673
|
}
|
674
|
-
): ICSSStyleDeclarationPropertyValue {
|
674
|
+
): ICSSStyleDeclarationPropertyValue | null {
|
675
675
|
if (
|
676
676
|
!properties[`border-${position}-width`]?.value ||
|
677
677
|
!properties[`border-${position}-style`]?.value ||
|
@@ -730,7 +730,7 @@ export default class CSSStyleDeclarationPropertyGetParser {
|
|
730
730
|
properties: {
|
731
731
|
[k: string]: ICSSStyleDeclarationPropertyValue;
|
732
732
|
}
|
733
|
-
): ICSSStyleDeclarationPropertyValue {
|
733
|
+
): ICSSStyleDeclarationPropertyValue | null {
|
734
734
|
if (
|
735
735
|
!properties[propertyNames[0]]?.value ||
|
736
736
|
!properties[propertyNames[1]]?.value ||
|
package/src/fetch/Fetch.ts
CHANGED
@@ -39,8 +39,8 @@ const LAST_CHUNK = Buffer.from('0\r\n\r\n');
|
|
39
39
|
* @see https://fetch.spec.whatwg.org/#http-network-fetch
|
40
40
|
*/
|
41
41
|
export default class Fetch {
|
42
|
-
private reject: (reason: Error) => void | null = null;
|
43
|
-
private resolve: (value: Response | Promise<Response>) => Promise<void> = null;
|
42
|
+
private reject: ((reason: Error) => void) | null = null;
|
43
|
+
private resolve: ((value: Response | Promise<Response>) => Promise<void>) | null = null;
|
44
44
|
private listeners = {
|
45
45
|
onSignalAbort: this.onSignalAbort.bind(this)
|
46
46
|
};
|
@@ -402,7 +402,7 @@ export default class HTMLParser {
|
|
402
402
|
const name =
|
403
403
|
attributeMatch[1] || attributeMatch[3] || attributeMatch[6] || attributeMatch[9] || '';
|
404
404
|
const rawValue = attributeMatch[2] || attributeMatch[4] || attributeMatch[7] || '';
|
405
|
-
const value = rawValue ? XMLEncodeUtility.
|
405
|
+
const value = rawValue ? XMLEncodeUtility.decodeHTMLAttributeValue(rawValue) : '';
|
406
406
|
const attributes = this.nextElement[PropertySymbol.attributes];
|
407
407
|
|
408
408
|
if (this.nextElement[PropertySymbol.namespaceURI] === NamespaceURI.svg) {
|
@@ -147,11 +147,11 @@ export default class HTMLSerializer {
|
|
147
147
|
|
148
148
|
if (!namedItems.has('is') && element[PropertySymbol.isValue]) {
|
149
149
|
attributeString +=
|
150
|
-
' is="' + XMLEncodeUtility.
|
150
|
+
' is="' + XMLEncodeUtility.encodeHTMLAttributeValue(element[PropertySymbol.isValue]) + '"';
|
151
151
|
}
|
152
152
|
|
153
153
|
for (const attributes of namedItems.values()) {
|
154
|
-
const escapedValue = XMLEncodeUtility.
|
154
|
+
const escapedValue = XMLEncodeUtility.encodeHTMLAttributeValue(
|
155
155
|
attributes[0][PropertySymbol.value]
|
156
156
|
);
|
157
157
|
attributeString += ' ' + attributes[0][PropertySymbol.name] + '="' + escapedValue + '"';
|
@@ -49,40 +49,40 @@ export default class Element
|
|
49
49
|
public declare cloneNode: (deep?: boolean) => Element;
|
50
50
|
|
51
51
|
// Events
|
52
|
-
public oncancel: (event: Event) => void | null = null;
|
53
|
-
public onerror: (event: Event) => void | null = null;
|
54
|
-
public onscroll: (event: Event) => void | null = null;
|
55
|
-
public onselect: (event: Event) => void | null = null;
|
56
|
-
public onwheel: (event: Event) => void | null = null;
|
57
|
-
public oncopy: (event: Event) => void | null = null;
|
58
|
-
public oncut: (event: Event) => void | null = null;
|
59
|
-
public onpaste: (event: Event) => void | null = null;
|
60
|
-
public oncompositionend: (event: Event) => void | null = null;
|
61
|
-
public oncompositionstart: (event: Event) => void | null = null;
|
62
|
-
public oncompositionupdate: (event: Event) => void | null = null;
|
63
|
-
public onblur: (event: Event) => void | null = null;
|
64
|
-
public onfocus: (event: Event) => void | null = null;
|
65
|
-
public onfocusin: (event: Event) => void | null = null;
|
66
|
-
public onfocusout: (event: Event) => void | null = null;
|
67
|
-
public onfullscreenchange: (event: Event) => void | null = null;
|
68
|
-
public onfullscreenerror: (event: Event) => void | null = null;
|
69
|
-
public onkeydown: (event: Event) => void | null = null;
|
70
|
-
public onkeyup: (event: Event) => void | null = null;
|
71
|
-
public onauxclick: (event: Event) => void | null = null;
|
72
|
-
public onclick: (event: Event) => void | null = null;
|
73
|
-
public oncontextmenu: (event: Event) => void | null = null;
|
74
|
-
public ondblclick: (event: Event) => void | null = null;
|
75
|
-
public onmousedown: (event: Event) => void | null = null;
|
76
|
-
public onmouseenter: (event: Event) => void | null = null;
|
77
|
-
public onmouseleave: (event: Event) => void | null = null;
|
78
|
-
public onmousemove: (event: Event) => void | null = null;
|
79
|
-
public onmouseout: (event: Event) => void | null = null;
|
80
|
-
public onmouseover: (event: Event) => void | null = null;
|
81
|
-
public onmouseup: (event: Event) => void | null = null;
|
82
|
-
public ontouchcancel: (event: Event) => void | null = null;
|
83
|
-
public ontouchend: (event: Event) => void | null = null;
|
84
|
-
public ontouchmove: (event: Event) => void | null = null;
|
85
|
-
public ontouchstart: (event: Event) => void | null = null;
|
52
|
+
public oncancel: ((event: Event) => void) | null = null;
|
53
|
+
public onerror: ((event: Event) => void) | null = null;
|
54
|
+
public onscroll: ((event: Event) => void) | null = null;
|
55
|
+
public onselect: ((event: Event) => void) | null = null;
|
56
|
+
public onwheel: ((event: Event) => void) | null = null;
|
57
|
+
public oncopy: ((event: Event) => void) | null = null;
|
58
|
+
public oncut: ((event: Event) => void) | null = null;
|
59
|
+
public onpaste: ((event: Event) => void) | null = null;
|
60
|
+
public oncompositionend: ((event: Event) => void) | null = null;
|
61
|
+
public oncompositionstart: ((event: Event) => void) | null = null;
|
62
|
+
public oncompositionupdate: ((event: Event) => void) | null = null;
|
63
|
+
public onblur: ((event: Event) => void) | null = null;
|
64
|
+
public onfocus: ((event: Event) => void) | null = null;
|
65
|
+
public onfocusin: ((event: Event) => void) | null = null;
|
66
|
+
public onfocusout: ((event: Event) => void) | null = null;
|
67
|
+
public onfullscreenchange: ((event: Event) => void) | null = null;
|
68
|
+
public onfullscreenerror: ((event: Event) => void) | null = null;
|
69
|
+
public onkeydown: ((event: Event) => void) | null = null;
|
70
|
+
public onkeyup: ((event: Event) => void) | null = null;
|
71
|
+
public onauxclick: ((event: Event) => void) | null = null;
|
72
|
+
public onclick: ((event: Event) => void) | null = null;
|
73
|
+
public oncontextmenu: ((event: Event) => void) | null = null;
|
74
|
+
public ondblclick: ((event: Event) => void) | null = null;
|
75
|
+
public onmousedown: ((event: Event) => void) | null = null;
|
76
|
+
public onmouseenter: ((event: Event) => void) | null = null;
|
77
|
+
public onmouseleave: ((event: Event) => void) | null = null;
|
78
|
+
public onmousemove: ((event: Event) => void) | null = null;
|
79
|
+
public onmouseout: ((event: Event) => void) | null = null;
|
80
|
+
public onmouseover: ((event: Event) => void) | null = null;
|
81
|
+
public onmouseup: ((event: Event) => void) | null = null;
|
82
|
+
public ontouchcancel: ((event: Event) => void) | null = null;
|
83
|
+
public ontouchend: ((event: Event) => void) | null = null;
|
84
|
+
public ontouchmove: ((event: Event) => void) | null = null;
|
85
|
+
public ontouchstart: ((event: Event) => void) | null = null;
|
86
86
|
|
87
87
|
// Internal properties
|
88
88
|
public [PropertySymbol.classList]: DOMTokenList | null = null;
|
@@ -7,22 +7,22 @@ import HTMLElement from '../html-element/HTMLElement.js';
|
|
7
7
|
*/
|
8
8
|
export default class HTMLBodyElement extends HTMLElement {
|
9
9
|
// Events
|
10
|
-
public onafterprint: (event: Event) => void | null = null;
|
11
|
-
public onbeforeprint: (event: Event) => void | null = null;
|
12
|
-
public onbeforeunload: (event: Event) => void | null = null;
|
13
|
-
public ongamepadconnected: (event: Event) => void | null = null;
|
14
|
-
public ongamepaddisconnected: (event: Event) => void | null = null;
|
15
|
-
public onhashchange: (event: Event) => void | null = null;
|
16
|
-
public onlanguagechange: (event: Event) => void | null = null;
|
17
|
-
public onmessage: (event: Event) => void | null = null;
|
18
|
-
public onmessageerror: (event: Event) => void | null = null;
|
19
|
-
public onoffline: (event: Event) => void | null = null;
|
20
|
-
public ononline: (event: Event) => void | null = null;
|
21
|
-
public onpagehide: (event: Event) => void | null = null;
|
22
|
-
public onpageshow: (event: Event) => void | null = null;
|
23
|
-
public onpopstate: (event: Event) => void | null = null;
|
24
|
-
public onrejectionhandled: (event: Event) => void | null = null;
|
25
|
-
public onstorage: (event: Event) => void | null = null;
|
26
|
-
public onunhandledrejection: (event: Event) => void | null = null;
|
27
|
-
public onunload: (event: Event) => void | null = null;
|
10
|
+
public onafterprint: ((event: Event) => void) | null = null;
|
11
|
+
public onbeforeprint: ((event: Event) => void) | null = null;
|
12
|
+
public onbeforeunload: ((event: Event) => void) | null = null;
|
13
|
+
public ongamepadconnected: ((event: Event) => void) | null = null;
|
14
|
+
public ongamepaddisconnected: ((event: Event) => void) | null = null;
|
15
|
+
public onhashchange: ((event: Event) => void) | null = null;
|
16
|
+
public onlanguagechange: ((event: Event) => void) | null = null;
|
17
|
+
public onmessage: ((event: Event) => void) | null = null;
|
18
|
+
public onmessageerror: ((event: Event) => void) | null = null;
|
19
|
+
public onoffline: ((event: Event) => void) | null = null;
|
20
|
+
public ononline: ((event: Event) => void) | null = null;
|
21
|
+
public onpagehide: ((event: Event) => void) | null = null;
|
22
|
+
public onpageshow: ((event: Event) => void) | null = null;
|
23
|
+
public onpopstate: ((event: Event) => void) | null = null;
|
24
|
+
public onrejectionhandled: ((event: Event) => void) | null = null;
|
25
|
+
public onstorage: ((event: Event) => void) | null = null;
|
26
|
+
public onunhandledrejection: ((event: Event) => void) | null = null;
|
27
|
+
public onunload: ((event: Event) => void) | null = null;
|
28
28
|
}
|
@@ -14,11 +14,11 @@ const DEVICE_ID = 'S3F/aBCdEfGHIjKlMnOpQRStUvWxYz1234567890+1AbC2DEf2GHi3jK34le+
|
|
14
14
|
*/
|
15
15
|
export default class HTMLCanvasElement extends HTMLElement {
|
16
16
|
// Events
|
17
|
-
public oncontextlost: (event: Event) => void | null = null;
|
18
|
-
public oncontextrestored: (event: Event) => void | null = null;
|
19
|
-
public onwebglcontextcreationerror: (event: Event) => void | null = null;
|
20
|
-
public onwebglcontextlost: (event: Event) => void | null = null;
|
21
|
-
public onwebglcontextrestored: (event: Event) => void | null = null;
|
17
|
+
public oncontextlost: ((event: Event) => void) | null = null;
|
18
|
+
public oncontextrestored: ((event: Event) => void) | null = null;
|
19
|
+
public onwebglcontextcreationerror: ((event: Event) => void) | null = null;
|
20
|
+
public onwebglcontextlost: ((event: Event) => void) | null = null;
|
21
|
+
public onwebglcontextrestored: ((event: Event) => void) | null = null;
|
22
22
|
|
23
23
|
/**
|
24
24
|
* Returns width.
|
@@ -12,7 +12,7 @@ import MouseEvent from '../../event/events/MouseEvent.js';
|
|
12
12
|
*/
|
13
13
|
export default class HTMLDetailsElement extends HTMLElement {
|
14
14
|
// Events
|
15
|
-
public ontoggle: (event: Event) => void | null = null;
|
15
|
+
public ontoggle: ((event: Event) => void) | null = null;
|
16
16
|
|
17
17
|
/**
|
18
18
|
* Returns the open attribute.
|
@@ -12,8 +12,8 @@ export default class HTMLDialogElement extends HTMLElement {
|
|
12
12
|
public [PropertySymbol.returnValue] = '';
|
13
13
|
|
14
14
|
// Events
|
15
|
-
public oncancel: (event: Event) => void | null = null;
|
16
|
-
public onclose: (event: Event) => void | null = null;
|
15
|
+
public oncancel: ((event: Event) => void) | null = null;
|
16
|
+
public onclose: ((event: Event) => void) | null = null;
|
17
17
|
|
18
18
|
/**
|
19
19
|
* Returns return value.
|
@@ -20,31 +20,31 @@ export default class HTMLElement extends Element {
|
|
20
20
|
public static observedAttributes?: string[];
|
21
21
|
|
22
22
|
// Events
|
23
|
-
public oncopy: (event: Event) => void | null = null;
|
24
|
-
public oncut: (event: Event) => void | null = null;
|
25
|
-
public onpaste: (event: Event) => void | null = null;
|
26
|
-
public oninvalid: (event: Event) => void | null = null;
|
27
|
-
public onanimationcancel: (event: Event) => void | null = null;
|
28
|
-
public onanimationend: (event: Event) => void | null = null;
|
29
|
-
public onanimationiteration: (event: Event) => void | null = null;
|
30
|
-
public onanimationstart: (event: Event) => void | null = null;
|
31
|
-
public onbeforeinput: (event: Event) => void | null = null;
|
32
|
-
public oninput: (event: Event) => void | null = null;
|
33
|
-
public onchange: (event: Event) => void | null = null;
|
34
|
-
public ongotpointercapture: (event: Event) => void | null = null;
|
35
|
-
public onlostpointercapture: (event: Event) => void | null = null;
|
36
|
-
public onpointercancel: (event: Event) => void | null = null;
|
37
|
-
public onpointerdown: (event: Event) => void | null = null;
|
38
|
-
public onpointerenter: (event: Event) => void | null = null;
|
39
|
-
public onpointerleave: (event: Event) => void | null = null;
|
40
|
-
public onpointermove: (event: Event) => void | null = null;
|
41
|
-
public onpointerout: (event: Event) => void | null = null;
|
42
|
-
public onpointerover: (event: Event) => void | null = null;
|
43
|
-
public onpointerup: (event: Event) => void | null = null;
|
44
|
-
public ontransitioncancel: (event: Event) => void | null = null;
|
45
|
-
public ontransitionend: (event: Event) => void | null = null;
|
46
|
-
public ontransitionrun: (event: Event) => void | null = null;
|
47
|
-
public ontransitionstart: (event: Event) => void | null = null;
|
23
|
+
public oncopy: ((event: Event) => void) | null = null;
|
24
|
+
public oncut: ((event: Event) => void) | null = null;
|
25
|
+
public onpaste: ((event: Event) => void) | null = null;
|
26
|
+
public oninvalid: ((event: Event) => void) | null = null;
|
27
|
+
public onanimationcancel: ((event: Event) => void) | null = null;
|
28
|
+
public onanimationend: ((event: Event) => void) | null = null;
|
29
|
+
public onanimationiteration: ((event: Event) => void) | null = null;
|
30
|
+
public onanimationstart: ((event: Event) => void) | null = null;
|
31
|
+
public onbeforeinput: ((event: Event) => void) | null = null;
|
32
|
+
public oninput: ((event: Event) => void) | null = null;
|
33
|
+
public onchange: ((event: Event) => void) | null = null;
|
34
|
+
public ongotpointercapture: ((event: Event) => void) | null = null;
|
35
|
+
public onlostpointercapture: ((event: Event) => void) | null = null;
|
36
|
+
public onpointercancel: ((event: Event) => void) | null = null;
|
37
|
+
public onpointerdown: ((event: Event) => void) | null = null;
|
38
|
+
public onpointerenter: ((event: Event) => void) | null = null;
|
39
|
+
public onpointerleave: ((event: Event) => void) | null = null;
|
40
|
+
public onpointermove: ((event: Event) => void) | null = null;
|
41
|
+
public onpointerout: ((event: Event) => void) | null = null;
|
42
|
+
public onpointerover: ((event: Event) => void) | null = null;
|
43
|
+
public onpointerup: ((event: Event) => void) | null = null;
|
44
|
+
public ontransitioncancel: ((event: Event) => void) | null = null;
|
45
|
+
public ontransitionend: ((event: Event) => void) | null = null;
|
46
|
+
public ontransitionrun: ((event: Event) => void) | null = null;
|
47
|
+
public ontransitionstart: ((event: Event) => void) | null = null;
|
48
48
|
|
49
49
|
// Internal properties
|
50
50
|
public [PropertySymbol.accessKey] = '';
|
@@ -33,9 +33,9 @@ export default class HTMLFormElement extends HTMLElement {
|
|
33
33
|
public [PropertySymbol.proxy]: HTMLFormElement;
|
34
34
|
|
35
35
|
// Events
|
36
|
-
public onformdata: (event: Event) => void | null = null;
|
37
|
-
public onreset: (event: Event) => void | null = null;
|
38
|
-
public onsubmit: (event: Event) => void | null = null;
|
36
|
+
public onformdata: ((event: Event) => void) | null = null;
|
37
|
+
public onreset: ((event: Event) => void) | null = null;
|
38
|
+
public onsubmit: ((event: Event) => void) | null = null;
|
39
39
|
|
40
40
|
/**
|
41
41
|
* Constructor.
|
@@ -41,8 +41,8 @@ export default class HTMLIFrameElement extends HTMLElement {
|
|
41
41
|
public declare cloneNode: (deep?: boolean) => HTMLIFrameElement;
|
42
42
|
|
43
43
|
// Events
|
44
|
-
public onload: (event: Event) => void | null = null;
|
45
|
-
public onerror: (event: Event) => void | null = null;
|
44
|
+
public onload: ((event: Event) => void) | null = null;
|
45
|
+
public onerror: ((event: Event) => void) | null = null;
|
46
46
|
|
47
47
|
// Internal properties
|
48
48
|
public [PropertySymbol.sandbox]: DOMTokenList | null = null;
|
@@ -34,9 +34,9 @@ export default class HTMLInputElement extends HTMLElement {
|
|
34
34
|
public declare cloneNode: (deep?: boolean) => HTMLInputElement;
|
35
35
|
|
36
36
|
// Events
|
37
|
-
public oninput: (event: Event) => void | null = null;
|
38
|
-
public oninvalid: (event: Event) => void | null = null;
|
39
|
-
public onselectionchange: (event: Event) => void | null = null;
|
37
|
+
public oninput: ((event: Event) => void) | null = null;
|
38
|
+
public oninvalid: ((event: Event) => void) | null = null;
|
39
|
+
public onselectionchange: ((event: Event) => void) | null = null;
|
40
40
|
|
41
41
|
public [PropertySymbol.value] = null;
|
42
42
|
public [PropertySymbol.height] = 0;
|