file
stringlengths
16
94
text
stringlengths
32
24.4k
vector
list
api/element/keyup_event/index.md
API - Element - keyup event - Examples - keyup events with IME: Since Firefox 65, the `keydown` and `keyup` events are now fired during `Input method editor` composition, to improve cross-browser compatibility for CJKT users (Firefox bug 354358). To ignore all `keyup` events that are part of composition, do something ...
[ 0.9946967959403992, -0.37450703978538513, -0.07281848788261414, 0.23996418714523315, 0.5689091682434082, -1.5492641925811768, 0.4135613441467285, 1.4759948253631592, -0.8201947212219238, 0.4884425401687622, 0.05345170199871063, -0.06228305399417877, -0.4401591420173645, 0.6101529002189636,...
api/stylepropertymapreadonly/index.md
API - StylePropertyMapReadOnly: The `StylePropertyMapReadOnly` interface of the CSS Typed Object Model API provides a read-only representation of a CSS declaration block that is an alternative to `CSSStyleDeclaration`. Retrieve an instance of this interface using `Element.computedStyleMap()`.
[ -0.6940005421638489, -0.008404698222875595, 0.27735665440559387, 0.10502707958221436, 0.12464362382888794, -1.619267225265503, -0.7274249196052551, 0.27784600853919983, 1.394644856452942, 0.22720174491405487, -0.5375977754592896, -0.1425406038761139, 0.4513063430786133, 0.04648736864328384...
api/stylepropertymapreadonly/index.md
API - StylePropertyMapReadOnly - Instance properties: - `StylePropertyMapReadOnly.size`: Returns an unsigned long integer containing the size of the `StylePropertyMapReadOnly` object.
[ -1.2299638986587524, 0.019651945680379868, -0.15605351328849792, -0.13792109489440918, -0.6341769695281982, -1.012113094329834, 0.4786023497581482, 0.3136773407459259, 0.6148360967636108, -0.37811803817749023, -1.0345451831817627, 0.6598206162452698, 0.4389246106147766, -0.4514446556568146...
api/stylepropertymapreadonly/index.md
API - StylePropertyMapReadOnly - Instance methods: - `StylePropertyMapReadOnly.entries()`: Returns an array of a given object's own enumerable property `[key, value]` pairs, in the same order as that provided by a `for...in` loop (the difference being that a for-in loop enumerates properties in the prototype chain as ...
[ -0.7990044355392456, -0.8926929235458374, -0.3214414417743683, 0.23334965109825134, 0.038328468799591064, -1.1810572147369385, 0.018663138151168823, 0.41630464792251587, 0.7736406922340393, 0.2560344338417053, -0.8677093386650085, 0.5584826469421387, 0.11860470473766327, -0.027252785861492...
api/stylepropertymapreadonly/index.md
API - StylePropertyMapReadOnly - Examples - Basic usage: We have to have an element to observe: Example: <p> This is a paragraph with some text. We can add some CSS, or not. The style map will include all the default and inherited CSS property values. </p> <dl id="output"></dl> We add a touch of CSS with a cust...
[ -0.5935516357421875, -0.17796456813812256, 0.09764823317527771, 0.042848438024520874, -0.20153813064098358, -1.1843148469924927, 0.2765432894229889, 0.17688092589378357, 0.8069720268249512, -0.010592829436063766, -0.41167038679122925, 0.49722349643707275, 0.28232237696647644, -0.2559565305...
api/stylepropertymapreadonly/getall/index.md
API - StylePropertyMapReadOnly - getAll: The `getAll()` method of the `StylePropertyMapReadOnly` interface returns an array of `CSSStyleValue` objects containing the values for the provided property.
[ -1.0180964469909668, -0.07019107043743134, -0.5646410584449768, -0.588919997215271, -0.43185144662857056, -1.4896941184997559, 0.230814129114151, 0.3659369647502899, 0.1610410064458847, -0.06210925430059433, -0.35159850120544434, 0.419524610042572, 0.49736160039901733, 0.1575843095779419, ...
api/stylepropertymapreadonly/getall/index.md
API - StylePropertyMapReadOnly - getAll - Syntax: Example: getAll(property)
[ -1.013887643814087, -0.14850132167339325, 0.12347307801246643, -0.434705913066864, -0.6558389067649841, -1.4665639400482178, -0.33374112844467163, 0.35739070177078247, 0.45002979040145874, -0.5038698315620422, -0.4706398546695709, 0.5989267230033875, -0.3599373400211334, -0.270690262317657...
api/stylepropertymapreadonly/getall/index.md
API - StylePropertyMapReadOnly - getAll - Syntax - Parameters: - `property`: The name of the property to retrieve all values of.
[ -0.22283263504505157, 0.265961617231369, -0.2422235608100891, -0.14818817377090454, -0.043700359761714935, -1.470447063446045, 0.09488044679164886, 0.25639668107032776, 0.19039833545684814, -0.2774970233440399, -0.7510804533958435, 0.6218677759170532, -0.5641202926635742, -0.22469517588615...
api/stylepropertymapreadonly/getall/index.md
API - StylePropertyMapReadOnly - getAll - Syntax - Return value: An array of `CSSStyleValue` objects.
[ -0.17703652381896973, 0.6211066246032715, -0.5078111290931702, 0.13222213089466095, -0.1300193816423416, -1.7677125930786133, 0.1323769986629486, 0.9267127513885498, -0.26353055238723755, -0.012248000130057335, -0.021680954843759537, 0.9122459292411804, -0.06788714975118637, 0.092103064060...
api/stylepropertymapreadonly/getall/index.md
API - StylePropertyMapReadOnly - getAll - Examples - Basic usage: The following example uses `getAll()` with the `background-image` property. An `Array` is returned, which contains an item for each background image declared. Example: // get a button element const buttonEl = document.querySelector("button"); // we c...
[ -0.6902954578399658, 0.5493984818458557, -0.5006762146949768, 0.18777728080749512, -0.07255826890468597, -1.9187734127044678, 0.5932497978210449, 1.0351967811584473, 0.2567354440689087, 0.32800236344337463, -0.259596049785614, 0.43882590532302856, -0.15283313393592834, 0.5409650206565857, ...
api/stylepropertymapreadonly/size/index.md
API - StylePropertyMapReadOnly - size: The `size` read-only property of the `StylePropertyMapReadOnly` interface returns a positive integer containing the size of the `StylePropertyMapReadOnly` object.
[ -1.4553264379501343, -0.08228129148483276, -0.09150198847055435, -0.29319754242897034, -0.3792954981327057, -1.2959704399108887, 0.1682048738002777, 0.1454131156206131, 0.9311791658401489, -0.2638118267059326, -0.882662832736969, 0.6871505975723267, 0.14810113608837128, -0.2164609432220459...
api/stylepropertymapreadonly/size/index.md
API - StylePropertyMapReadOnly - size - Value: A positive integer.
[ -2.059417247772217, 0.1255279928445816, 0.13488993048667908, -1.021950602531433, -0.19083529710769653, -0.7583644390106201, 0.1406649947166443, 0.05925027281045914, 0.7243949770927429, -0.5994272232055664, -0.8845065832138062, 0.33411794900894165, 0.656135618686676, -0.8987885117530823, ...
api/stylepropertymapreadonly/size/index.md
API - StylePropertyMapReadOnly - size - Examples - Basic usage: Here we use the size property to return the total entries within the button elements `computedStyleMap`. Example: // grab our element const buttonEl = document.querySelector("button"); // we can retrieve all computed styles with `computedStyleMap` cons...
[ -0.7466489672660828, 0.4373195469379425, -0.8231201767921448, 0.2375841736793518, -0.21951207518577576, -1.6598553657531738, 0.9205143451690674, 0.7827966809272766, 0.1659713238477707, 0.23715028166770935, -0.3196758031845093, 1.1509875059127808, 0.439335435628891, 0.10301701724529266, -...
api/stylepropertymapreadonly/has/index.md
API - StylePropertyMapReadOnly - has: The `has()` method of the `StylePropertyMapReadOnly` interface indicates whether the specified property is in the `StylePropertyMapReadOnly` object.
[ -0.9155386686325073, -0.45517632365226746, -0.1680993288755417, -0.09549789130687714, -0.3503541946411133, -1.6783580780029297, 0.41198161244392395, 0.34961438179016113, 0.24297669529914856, -0.4835646450519562, -0.8243064880371094, 0.3537467122077942, 0.6686856150627136, -0.01181279495358...
api/stylepropertymapreadonly/has/index.md
API - StylePropertyMapReadOnly - has - Syntax: Example: has(property)
[ -0.852516233921051, -0.40908682346343994, 0.02544662356376648, -0.32926875352859497, -0.34606605768203735, -1.6595790386199951, -0.02415594644844532, 0.25977009534835815, 0.30590760707855225, -0.25516948103904724, -0.5620513558387756, 0.5880815982818604, 0.06897687166929245, -0.31192091107...
api/stylepropertymapreadonly/has/index.md
API - StylePropertyMapReadOnly - has - Syntax - Parameters: - `property`: The name of a property.
[ -0.06091123819351196, 0.4989137649536133, -0.4572414457798004, -0.03803687542676926, 0.15354561805725098, -1.2627155780792236, 0.6184540390968323, 1.0034657716751099, -0.019050076603889465, -0.3430641293525696, -1.0902644395828247, 1.207010269165039, -0.28414589166641235, -0.01034611091017...
api/stylepropertymapreadonly/has/index.md
API - StylePropertyMapReadOnly - has - Syntax - Return value: A boolean value.
[ -0.6619118452072144, -0.1463342308998108, -0.12677273154258728, -0.22142036259174347, -0.2798892855644226, -1.2485244274139404, 0.5052076578140259, 0.1957414746284485, 0.15223266184329987, -0.5606217384338379, -0.9531393051147461, 0.6536097526550293, 0.2294183075428009, -0.2026191353797912...
api/stylepropertymapreadonly/has/index.md
API - StylePropertyMapReadOnly - has - Examples - Basic usage: Here we use the `has()` method to see if the `padding-top` property is present within the button elements style attribute. Example: // get the button element const buttonEl = document.querySelector(".example"); // find what's in the style attribute with...
[ -1.202170491218567, -0.09426376968622208, -0.44012582302093506, 0.5998390316963196, -0.05845174193382263, -1.9671392440795898, 0.9067267775535583, 0.7042797803878784, -0.2652118504047394, 0.2185751497745514, -0.6920029520988464, 0.7513052821159363, 0.3985590636730194, 0.26976048946380615, ...
api/stylepropertymapreadonly/entries/index.md
API - StylePropertyMapReadOnly - entries: The `StylePropertyMapReadOnly.entries()` method returns an array of a given object's own enumerable property `[key, value]` pairs, in the same order as that provided by a `for...in` loop (the difference being that a for-in loop enumerates properties in the prototype chain as w...
[ -0.853774905204773, -0.25658053159713745, -0.3530893325805664, 0.40895843505859375, 0.010305099189281464, -1.8563650846481323, 0.27866774797439575, 0.29252633452415466, 0.3521674871444702, 0.1076999083161354, -0.7594034075737, 0.5767685174942017, 0.48678457736968994, -0.045406363904476166,...
api/stylepropertymapreadonly/entries/index.md
API - StylePropertyMapReadOnly - entries - Syntax: Example: entries()
[ -0.9597594738006592, -0.2434975802898407, 0.2680709660053253, -0.010968143120408058, -0.3212319612503052, -1.2915667295455933, 0.21262343227863312, 0.7671406865119934, 0.2712651491165161, -0.08285550028085709, -0.2743973135948181, 0.8309776782989502, 0.27729934453964233, -0.234799072146415...
api/stylepropertymapreadonly/entries/index.md
API - StylePropertyMapReadOnly - entries - Syntax - Parameters: None.
[ -0.7267886400222778, 0.019002791494131088, 0.12316280603408813, -0.14064070582389832, -0.14402174949645996, -0.6159817576408386, 0.11557359993457794, 0.8741248846054077, 0.3749372363090515, -0.6002024412155151, -1.153352975845337, -0.161813884973526, 0.2861488163471222, -0.1103652268648147...
api/stylepropertymapreadonly/entries/index.md
API - StylePropertyMapReadOnly - entries - Syntax - Return value: An array of the given `StylePropertyMapReadOnly` object's own enumerable property `[key, value]` pairs.
[ -0.700356662273407, -0.3423520624637604, -0.0425393208861351, 0.06696430593729019, -0.5769453644752502, -1.3067214488983154, 0.1857849508523941, 0.20535586774349213, 0.2662792503833771, 0.16089603304862976, -0.8217374682426453, 0.7461047172546387, -0.03298676386475563, 0.01817614585161209,...
api/stylepropertymapreadonly/entries/index.md
API - StylePropertyMapReadOnly - entries - Examples - Basic usage: The following code shows an example of using `StylePropertyMapReadOnly.entries()` method on an elements computed styles. Example: // grab a DOM element const buttonEl = document.querySelector("button"); // we can retrieve all computed styles with `c...
[ -0.29544270038604736, 0.33637022972106934, -0.15487423539161682, 0.37618568539619446, 0.30031687021255493, -1.7665668725967407, 0.6190990209579468, 0.6744175553321838, 0.16933037340641022, 0.5873825550079346, -0.200638085603714, 0.4764474630355835, 0.6050608158111572, 0.04238726943731308, ...
api/stylepropertymapreadonly/foreach/index.md
API - StylePropertyMapReadOnly - forEach: The `StylePropertyMapReadOnly.forEach()` method executes a provided function once for each element of `StylePropertyMapReadOnly`.
[ -1.186292052268982, -0.7234994769096375, -0.07488515973091125, -0.27473050355911255, -0.0753418579697609, -1.405991554260254, 0.48743295669555664, 0.5212330222129822, -0.040904801338911057, -0.20031805336475372, -0.36952081322669983, 0.38753244280815125, -0.14085008203983307, 0.12674018740...
api/stylepropertymapreadonly/foreach/index.md
API - StylePropertyMapReadOnly - forEach - Syntax: Example: forEach(callbackFn) forEach(callbackFn, thisArg)
[ -1.0138204097747803, -0.4185407757759094, 0.538106381893158, -0.9493509531021118, -0.05636861175298691, -1.6170309782028198, 0.3512140214443207, 0.44178077578544617, 0.204493910074234, -0.34901875257492065, -0.4311981797218323, 0.7306723594665527, -0.6389334201812744, 0.13936427235603333, ...
api/stylepropertymapreadonly/foreach/index.md
API - StylePropertyMapReadOnly - forEach - Syntax - Parameters: - `callbackFn`: The function to execute for each element, taking three arguments: - `currentValue`: The value of the current element being processed. - `index` (optional): The index of the current element being processed. - `array` (optional): The S...
[ -1.1575396060943604, -0.7465035915374756, 0.18664240837097168, -0.14037242531776428, 0.1784583330154419, -1.1236319541931152, 0.38516220450401306, 0.07826363295316696, 0.20729920268058777, 0.05533832311630249, -0.4976355731487274, 0.7834029793739319, 0.04543699324131012, 0.3086113333702087...
api/stylepropertymapreadonly/foreach/index.md
API - StylePropertyMapReadOnly - forEach - Syntax - Return value: None (`undefined`).
[ -1.2510570287704468, -0.09142868965864182, 0.20842313766479492, -0.5155186057090759, -0.09355764836072922, -0.7977698445320129, 0.336173415184021, 0.9314507246017456, 0.18021470308303833, -0.23791727423667908, -0.35536521673202515, 0.6301959753036499, -0.1948007047176361, 0.098807975649833...
api/stylepropertymapreadonly/foreach/index.md
API - StylePropertyMapReadOnly - forEach - Examples - Basic usage: The following code is an example of using `forEach()` on a retrieved `Element.computedStyleMap()`. Example: // get a button element const buttonEl = document.querySelector(".example"); // we can retrieve all computed styles with `computedStyleMap` c...
[ -1.069240927696228, 0.42384061217308044, 0.21152476966381073, 0.09438064694404602, 0.0775030255317688, -1.4252269268035889, 0.9246618747711182, 0.8205093741416931, -0.01797201856970787, 0.2650989890098572, -0.10578270256519318, 1.049273133277893, 0.04973917454481125, 0.25056278705596924, ...
api/stylepropertymapreadonly/keys/index.md
API - StylePropertyMapReadOnly - keys: The `StylePropertyMapReadOnly.keys()` method returns a new array iterator containing the keys for each item in `StylePropertyMapReadOnly`.
[ -0.921467661857605, -0.44848281145095825, -0.32633325457572937, -0.1831931173801422, -0.12113665044307709, -1.0746405124664307, 0.2613532543182373, 0.21830855309963226, 0.4638388156890869, 0.028514456003904343, -0.5939688086509705, 0.746628999710083, 0.2917160391807556, 0.00299587473273277...
api/stylepropertymapreadonly/keys/index.md
API - StylePropertyMapReadOnly - keys - Syntax: Example: keys()
[ -1.1782840490341187, -0.41370439529418945, -0.10993589460849762, -0.3789962828159332, -0.34953466057777405, -1.2269703149795532, 0.010026998817920685, 0.41819968819618225, 0.5270478129386902, 0.012029134668409824, -0.274858295917511, 0.8561051487922668, 0.030092459172010422, -0.08564245700...
api/stylepropertymapreadonly/keys/index.md
API - StylePropertyMapReadOnly - keys - Syntax - Parameters: None.
[ -0.7597805857658386, -0.027471667155623436, -0.13521766662597656, -0.35714706778526306, -0.19708511233329773, -1.0909985303878784, 0.33463457226753235, 0.9342526793479919, 0.331571489572525, -0.387336790561676, -0.8242945075035095, -0.01770973950624466, 0.08742107450962067, -0.099553860723...
api/stylepropertymapreadonly/keys/index.md
API - StylePropertyMapReadOnly - keys - Syntax - Return value: A new `Array`.
[ -0.8329810500144958, -0.1658998727798462, -0.20958541333675385, -0.07152093946933746, -0.0005041658878326416, -0.7456571459770203, 0.1025872528553009, 0.6543344259262085, 0.65434730052948, -0.3269418776035309, -0.2919403612613678, 0.517170250415802, 0.06716740131378174, 0.10994413495063782...
api/stylepropertymapreadonly/keys/index.md
API - StylePropertyMapReadOnly - keys - Examples - Basic usage: In this example, we use the `keys()` method to access the properties within the `Element.computedStyleMap()`. Example: // get a button element const buttonEl = document.querySelector("button"); // we can retrieve all computed styles with `computedStyle...
[ -0.5379953980445862, 0.1530538648366928, -0.32086533308029175, 0.2723018527030945, -0.1943204700946808, -1.6426752805709839, 1.225311517715454, 0.32643914222717285, 0.24836811423301697, 0.3439943194389343, -0.12792369723320007, 0.7174754738807678, 0.4333142638206482, 0.044646307826042175, ...
api/stylepropertymapreadonly/get/index.md
API - StylePropertyMapReadOnly - get: The `get()` method of the `StylePropertyMapReadOnly` interface returns a `CSSStyleValue` object for the first value of the specified property.
[ -0.9761402606964111, -0.06567031145095825, -0.4326898753643036, -0.1737133115530014, -0.3060729503631592, -1.5284870862960815, 0.1739458590745926, 0.4095316231250763, 0.0352066233754158, 0.1090623065829277, -0.20957082509994507, 0.30459028482437134, 0.6489740014076233, -0.0898936316370964,...
api/stylepropertymapreadonly/get/index.md
API - StylePropertyMapReadOnly - get - Syntax: Example: get(property)
[ -0.9942852854728699, -0.07126414030790329, -0.12198612838983536, -0.47054871916770935, -0.45818856358528137, -1.7690447568893433, -0.3225870430469513, 0.4128933846950531, 0.24862957000732422, -0.36396005749702454, -0.6525156497955322, 0.6731395125389099, -0.452067106962204, -0.383878678083...
api/stylepropertymapreadonly/get/index.md
API - StylePropertyMapReadOnly - get - Syntax - Parameters: - `property`: The name of the property to retrieve the value of.
[ -0.026245582848787308, 0.36581018567085266, -0.19410109519958496, -0.10709641128778458, -0.24944303929805756, -1.49673593044281, 0.4166010022163391, 0.40163910388946533, -0.013094790279865265, -0.2194707691669464, -0.8278433084487915, 0.8447413444519043, -0.6975138783454895, -0.28231489658...
api/stylepropertymapreadonly/get/index.md
API - StylePropertyMapReadOnly - get - Syntax - Return value: A `CSSStyleValue` object.
[ -0.24440515041351318, 0.344681054353714, -0.29480502009391785, -0.3682727813720703, -0.3795192539691925, -1.7947334051132202, 0.07773217558860779, 0.3674936294555664, -0.32966941595077515, 0.31967630982398987, -0.1723507195711136, 0.7700799107551575, -0.12057223170995712, 0.072598591446876...
api/stylepropertymapreadonly/get/index.md
API - StylePropertyMapReadOnly - get - Examples - Basic usage: Let's get just a few properties and values. Let's start by creating a link inside a paragraph in our HTML, and adding a definition list which we will populate with JavaScript: Example: <p> <a href="https://example.com">Link</a> </p> <dl id="results"></...
[ -0.6750897765159607, -0.15994584560394287, 0.05802071839570999, 0.09336946904659271, 0.08238494396209717, -0.8384907245635986, 0.8118969202041626, 0.006551872938871384, 0.6475802659988403, 0.14776265621185303, -0.45216235518455505, 0.4286826550960541, -0.12275687605142593, -0.3534256517887...
api/stylepropertymapreadonly/values/index.md
API - StylePropertyMapReadOnly - values: The `StylePropertyMapReadOnly.values()` method returns a new array iterator containing the values for each index in the `StylePropertyMapReadOnly` object.
[ -1.33614981174469, -0.13630740344524384, -0.1918945461511612, -0.24560272693634033, -0.20182470977306366, -1.1018952131271362, 0.31634268164634705, 0.35495343804359436, 0.07230785489082336, -0.0729711651802063, -0.4746703803539276, 0.4649809002876282, 0.6618136763572693, 0.0067170336842536...
api/stylepropertymapreadonly/values/index.md
API - StylePropertyMapReadOnly - values - Syntax: Example: values()
[ -1.1784182786941528, -0.36951717734336853, -0.1842484027147293, -0.21760354936122894, -0.3729827404022217, -1.4095429182052612, 0.07737097889184952, 0.7298222184181213, 0.4011422395706177, -0.34473368525505066, -0.44736263155937195, 0.6486423015594482, 0.3846758306026459, -0.49371418356895...
api/stylepropertymapreadonly/values/index.md
API - StylePropertyMapReadOnly - values - Syntax - Parameters: None.
[ -1.1049894094467163, 0.017315885052084923, 0.13920831680297852, -0.14943119883537292, -0.08459554612636566, -0.903325080871582, 0.01380525529384613, 0.9791514873504639, 0.24951061606407166, -0.5647015571594238, -0.962224006652832, -0.08913842588663101, 0.15468113124370575, -0.0193673893809...
api/stylepropertymapreadonly/values/index.md
API - StylePropertyMapReadOnly - values - Syntax - Return value: A new `Array`.
[ -0.8015024065971375, -0.1878989040851593, -0.01067710854113102, -0.21294349431991577, -0.12737859785556793, -0.9401100277900696, -0.4111306071281433, 0.6479014158248901, 0.7668692469596863, -0.4935876131057739, -0.30217501521110535, 0.2003493309020996, 0.47836774587631226, 0.31613174080848...
api/stylepropertymapreadonly/values/index.md
API - StylePropertyMapReadOnly - values - Examples - Basic usage: In this example, we use the `values()` method to access the values within the `Element.computedStyleMap()`. Example: // get a button element const buttonEl = document.querySelector("button"); // we can retrieve all computed styles with `computedStyle...
[ -1.02788245677948, 0.39019864797592163, -0.16793398559093475, 0.20578531920909882, 0.1228027194738388, -2.00930118560791, 0.7871527671813965, 0.36545029282569885, 0.3215692341327667, 0.16581222414970398, 0.33530762791633606, 0.5499551892280579, 0.730256974697113, -0.03214823454618454, -0...
api/websockets_api/index.md
API - WebSockets API: Note: This feature is available in Web Workers. The WebSocket API makes it possible to open a two-way interactive communication session between the user's browser and a server. With this API, you can send messages to a server and receive responses without having to poll the server for a reply. ...
[ 0.2538278102874756, 0.184400275349617, -0.7043288350105286, 0.009638670831918716, 0.1442766934633255, -0.9872115850448608, 0.27330338954925537, 1.2401447296142578, -0.41003796458244324, 0.12257532775402069, -0.0569743812084198, 0.8903798460960388, 0.5163499116897583, 0.4852942228317261, ...
api/websockets_api/index.md
API - WebSockets API - Interfaces: - `WebSocket`: The primary interface for connecting to a WebSocket server and then sending and receiving data on the connection. - `WebSocketStream` (non-standard): Promise-based interface for connecting to a WebSocket server; uses streams to send and receive data on the connection. ...
[ 0.21020619571208954, -0.04095920920372009, 0.2555311918258667, 0.06788503378629684, -0.07205002754926682, -1.6430302858352661, -0.4551193118095398, -0.3965511918067932, 0.46324944496154785, 0.277757853269577, -0.297635555267334, 0.2624567747116089, 0.7250476479530334, -0.3588355481624603, ...
api/websockets_api/index.md
API - WebSockets API - Related HTTP headers: The HTTP headers are used in the WebSocket handshake: - `Sec-WebSocket-Key`: An HTTP request header that contains a `nonce` from the client. This is used in the WebSocket opening handshake to verify that the client explicitly intends to open a WebSocket. It is added automa...
[ -0.34860432147979736, -0.05401309207081795, -0.31233176589012146, 0.8796992897987366, 0.2756877541542053, -1.7339057922363281, 0.01603725180029869, 0.35512012243270874, 0.38527655601501465, -0.09705779701471329, -0.505558967590332, -0.028776541352272034, 0.18809185922145844, -0.10867138206...
api/websockets_api/index.md
API - WebSockets API - Tools: - AsyncAPI: A specification for describing event-driven architectures based on protocols like WebSocket. You can use it to describe WebSocket-based APIs just as you would describe REST APIs with the OpenAPI specification. Learn why you should consider using AsyncAPI with WebSocket and how...
[ -0.014511289075016975, 0.3965238332748413, -0.48721587657928467, 0.14903414249420166, 0.32898077368736267, -0.9730207324028015, 0.8267090320587158, 1.3995248079299927, -0.37061020731925964, -0.13272345066070557, 0.18339423835277557, 1.3953907489776611, -0.03451993688941002, -0.132408246397...
api/websockets_api/writing_websocket_servers/index.md
API - WebSockets API - Writing WebSocket servers: A WebSocket server is nothing more than an application listening on any port of a TCP server that follows a specific protocol. Creating a custom server can seem overwhelming if you have never done it before. It can actually be quite straightforward to implement a basic...
[ 0.05003838986158371, 0.25296229124069214, 0.05450113117694855, 0.5170943737030029, 0.5657665133476257, -1.780529499053955, 0.27043479681015015, 0.36618906259536743, 0.4741923213005066, -0.13645805418491364, -0.5982234477996826, 0.2839042544364929, 0.4334452450275421, -0.3946460485458374, ...
api/websockets_api/writing_websocket_servers/index.md
API - WebSockets API - Writing WebSocket servers - The WebSocket handshake: First, the server must listen for incoming socket connections using a standard TCP socket. Depending on your platform, this may be handled for you automatically. For example, let's assume that your server is listening on `example.com`, port 80...
[ 0.28904393315315247, -0.06562897562980652, -0.5088496208190918, 0.07685285061597824, 0.25756657123565674, -1.5099900960922241, -0.20070280134677887, -0.09717435389757156, 0.6598993539810181, 0.05213503912091255, -0.23539163172245026, 0.5890163779258728, 0.36242735385894775, -0.728630363941...
api/websockets_api/writing_websocket_servers/index.md
API - WebSockets API - Writing WebSocket servers - The WebSocket handshake - Client handshake request: Even though you're building a server, a client still has to start the WebSocket handshake process by contacting the server and requesting a WebSocket connection. So, you must know how to interpret the client's reques...
[ -0.21982142329216003, 0.5338754653930664, -0.4833126366138458, 0.05594269186258316, 0.586646556854248, -1.4936500787734985, -0.39154547452926636, -0.28520405292510986, 0.24167940020561218, -0.2357541173696518, -0.5154858827590942, 0.8122537136077881, 0.17973285913467407, -0.368465483188629...
api/websockets_api/writing_websocket_servers/index.md
API - WebSockets API - Writing WebSocket servers - The WebSocket handshake - Server handshake response: When the server receives the handshake request, it should send back a special response that indicates that the protocol will be changing from HTTP to WebSocket. That header looks something like the following (rememb...
[ -0.22888585925102234, -0.007336172740906477, -0.13072356581687927, 0.13343507051467896, 0.19135069847106934, -1.7496631145477295, -0.32120513916015625, -0.23289725184440613, 0.4156346619129181, -0.43621140718460083, -0.4982208013534546, 0.45182913541793823, 0.1589912325143814, 0.0513882488...
api/websockets_api/writing_websocket_servers/index.md
API - WebSockets API - Writing WebSocket servers - The WebSocket handshake - Keeping track of clients: This doesn't directly relate to the WebSocket protocol, but it's worth mentioning here: your server must keep track of clients' sockets so you don't keep handshaking again with clients who have already completed the ...
[ -0.6476629376411438, -0.1487964540719986, -0.13593830168247223, 0.03251446783542633, -0.2602693438529968, -1.2697155475616455, 0.11418668925762177, 0.02840045467019081, 0.36372318863868713, 0.17306725680828094, -1.0070531368255615, 0.8031049370765686, 0.2984272539615631, -0.695905745029449...
api/websockets_api/writing_websocket_servers/index.md
API - WebSockets API - Writing WebSocket servers - Exchanging data frames: Either the client or the server can choose to send a message at any time — that's the magic of WebSockets. However, extracting information from these so-called "frames" of data is a not-so-magical experience. Although all frames follow the same...
[ -0.3596862554550171, -0.35344862937927246, -0.4669052064418793, 0.7403742671012878, 0.12749187648296356, -2.0072731971740723, 0.35070738196372986, 0.5066750049591064, -0.12814003229141235, 0.10605359822511673, -0.8156329989433289, 0.7174888253211975, 0.43310901522636414, -0.373383581638336...
api/websockets_api/writing_websocket_servers/index.md
API - WebSockets API - Writing WebSocket servers - Exchanging data frames - Format: Each data frame (from the client to the server or vice versa) follows this same format: Example: Data frame from the client to server (message length 0–125): 0 1 2 3 0 1 2 3 4 ...
[ 0.5462642908096313, -0.777415931224823, -1.120624303817749, 0.47651004791259766, 0.38287073373794556, -1.477436900138855, 0.4470630884170532, 1.0913487672805786, -0.2770709991455078, -0.06516406685113907, -0.46501728892326355, 0.8662025332450867, 0.2840709388256073, -0.04011959210038185, ...
api/websockets_api/writing_websocket_servers/index.md
API - WebSockets API - Writing WebSocket servers - Exchanging data frames - Decoding Payload Length: To read the payload data, you must know when to stop reading. That's why the payload length is important to know. Unfortunately, this is somewhat complicated. To read it, follow these steps: - Read bits 9-15 (inclusiv...
[ 0.3899235427379608, -0.5218034386634827, -0.7146610021591187, -0.14051002264022827, 0.07490471005439758, -1.1712870597839355, 0.9028612375259399, 0.2579016387462616, 0.6854938268661499, 0.4730140268802643, -1.0926905870437622, 0.14709196984767914, 0.47534793615341187, 0.5250056982040405, ...
api/websockets_api/writing_websocket_servers/index.md
API - WebSockets API - Writing WebSocket servers - Exchanging data frames - Reading and unmasking the data: If the MASK bit was set (and it should be, for client-to-server messages), read the next 4 octets (32 bits); this is the masking key. Once the payload length and masking key is decoded, you can read that number ...
[ 0.7356619834899902, -0.174823597073555, -0.9511617422103882, 0.15715357661247253, 0.5648460984230042, -1.7927926778793335, 0.4368804097175598, 0.5471005439758301, 0.030710741877555847, 0.48523378372192383, -0.8846433162689209, 0.1138974279165268, 0.18085746467113495, -0.3004662096500397, ...
api/websockets_api/writing_websocket_servers/index.md
API - WebSockets API - Writing WebSocket servers - Exchanging data frames - Message Fragmentation: The FIN and opcode fields work together to send a message split up into separate frames. This is called message fragmentation. Fragmentation is only available on opcodes `0x0` to `0x2`. Recall that the opcode tells what...
[ -0.7386093139648438, -0.3296777307987213, -0.30269256234169006, -0.22590819001197815, 0.897007942199707, -1.802181601524353, 0.06101486086845398, 0.804119348526001, -0.12178617715835571, 0.8930099010467529, -0.5072383880615234, 0.2928570806980133, 0.26806461811065674, 0.48234039545059204, ...
api/websockets_api/writing_websocket_servers/index.md
API - WebSockets API - Writing WebSocket servers - Pings and Pongs: The Heartbeat of WebSockets: At any point after the handshake, either the client or the server can choose to send a ping to the other party. When the ping is received, the recipient must send back a pong as soon as possible. You can use this to make s...
[ 0.010034160688519478, 0.04129604622721672, -0.6117286682128906, 0.5009745359420776, -0.05067563056945801, -1.989099144935608, 0.3569546937942505, 0.20014651119709015, -0.04020185023546219, -0.05282404273748398, -0.8499854207038879, 0.6130042672157288, 0.54753178358078, -0.31621596217155457...
api/websockets_api/writing_websocket_servers/index.md
API - WebSockets API - Writing WebSocket servers - Closing the connection: To close a connection either the client or server can send a control frame with data containing a specified control sequence to begin the closing handshake (detailed in Section 5.5.1). Upon receiving such a frame, the other peer sends a Close f...
[ -0.2584110498428345, 0.07509981840848923, -0.19885964691638947, 0.127606600522995, 0.0893658697605133, -1.190242886543274, -0.06245013326406479, 0.35019585490226746, 0.2309025526046753, 0.2099100649356842, -0.6653560996055603, 0.7706046104431152, 1.1769572496414185, -0.07080046832561493, ...
api/websockets_api/writing_websocket_servers/index.md
API - WebSockets API - Writing WebSocket servers - Miscellaneous: Note: WebSocket codes, extensions, subprotocols, etc. are registered at the IANA WebSocket Protocol Registry. WebSocket extensions and subprotocols are negotiated via headers during the handshake. Sometimes extensions and subprotocols are very similar,...
[ -0.8180510997772217, -0.405778169631958, -0.550459623336792, 0.28333768248558044, -0.5819816589355469, -1.7729036808013916, 0.6532586812973022, 0.6786001324653625, -0.09497317671775818, 0.17275592684745789, -0.9402051568031311, 0.4876145124435425, 0.48832839727401733, -0.08574880659580231,...
api/websockets_api/writing_websocket_servers/index.md
API - WebSockets API - Writing WebSocket servers - Miscellaneous - Extensions: Think of an extension as compressing a file before emailing it to someone. Whatever you do, you're sending the same data in different forms. The recipient will eventually be able to get the same data as your local copy, but it is sent diffe...
[ -0.9106659293174744, -0.1561640053987503, -0.2691141963005066, 0.543190062046051, -0.2342558205127716, -2.3657000064849854, 0.8913457989692688, 0.8149049878120422, 0.05692857503890991, 0.10570438206195831, -0.9228801727294922, 0.31303128600120544, 0.3103008270263672, 0.13920919597148895, ...
api/websockets_api/writing_websocket_servers/index.md
API - WebSockets API - Writing WebSocket servers - Miscellaneous - Subprotocols: Think of a subprotocol as a custom XML schema or doctype declaration. You're still using XML and its syntax, but you're additionally restricted by a structure you agreed on. WebSocket subprotocols are just like that. They do not introduce...
[ -0.9165974855422974, -0.3309338688850403, -0.26752498745918274, 0.19967180490493774, 0.02131013572216034, -1.6226545572280884, 0.36643821001052856, 0.2688860595226288, -0.21652108430862427, -0.2025493085384369, -0.30235597491264343, 0.7037702202796936, 0.2673971354961395, -0.23186063766479...
api/websockets_api/writing_websocket_servers/index.md
API - WebSockets API - Writing WebSocket servers - Related: - Writing WebSocket client applications - Tutorial: WebSocket server in C# - Tutorial: WebSocket server in Java
[ -0.9390780329704285, 0.477664053440094, -0.118407242000103, 0.4108935296535492, 0.40842199325561523, -1.238569974899292, -0.04344142973423004, 0.250845342874527, 0.3505299985408783, 0.009011880494654179, -0.18889066576957703, 0.5778765678405762, 0.8018441200256348, -0.6118500232696533, -...
api/cssvariablereferencevalue/index.md
API - CSSVariableReferenceValue: The `CSSVariableReferenceValue` interface of the CSS Typed Object Model API allows you to create a custom name for a built-in CSS value. This object functionality is sometimes called a "CSS variable" and serves the same purpose as the `var()` function. The custom name must begin with t...
[ -0.22046998143196106, -0.611754834651947, -0.8931785821914673, 0.5161107778549194, 0.16638538241386414, -2.4253993034362793, 0.7530134916305542, 0.3754165470600128, 0.0492035448551178, 0.44384124875068665, 0.5448077917098999, 0.19276493787765503, 0.42535141110420227, 0.15519878268241882, ...
api/cssvariablereferencevalue/index.md
API - CSSVariableReferenceValue - Constructor: - `CSSVariableReferenceValue()`: Creates a new `CSSVariableReferenceValue` object.
[ -0.5887208580970764, -0.1156671866774559, -0.15381266176700592, 1.0818992853164673, -0.37411943078041077, -1.4035743474960327, 0.3584541082382202, 0.8089281916618347, -0.08916041254997253, -0.12731532752513885, -0.060510553419589996, 0.0962340235710144, 0.8823416233062744, 0.35497313737869...
api/cssvariablereferencevalue/index.md
API - CSSVariableReferenceValue - Instance properties: - `CSSVariableReferenceValue.variable`: Returns the custom name passed to the constructor. - `CSSVariableReferenceValue.fallback` (read only): Returns the built-in CSS value for the custom name.
[ -0.6444742679595947, 0.5087648630142212, -0.22646522521972656, 0.859632134437561, -0.37375110387802124, -2.3006160259246826, 0.778724730014801, 0.5288406014442444, -0.025407370179891586, 0.13335652649402618, -0.25483542680740356, 0.5540898442268372, 0.49474263191223145, -0.0561306849122047...
api/cssvariablereferencevalue/index.md
API - CSSVariableReferenceValue - Instance methods: None.
[ -0.4813023507595062, 0.3798827528953552, -0.4832713305950165, 0.41388601064682007, -0.28027790784835815, -0.1032426506280899, 1.896868109703064, 1.5796457529067993, -0.17646044492721558, -0.8898528814315796, 0.81028813123703, -0.747174084186554, 0.6673700213432312, -0.20231279730796814, ...
api/cssvariablereferencevalue/fallback/index.md
API - CSSVariableReferenceValue - fallback: The `fallback` read-only property of the `CSSVariableReferenceValue` interface returns the custom property fallback value of the `CSSVariableReferenceValue`.
[ -0.4800914227962494, 0.17616668343544006, 0.0002054944634437561, 0.5126689076423645, -0.4843478202819824, -2.0052621364593506, 1.1487982273101807, 0.36371728777885437, 0.053837791085243225, 0.03292436897754669, -0.08465436100959778, 0.18461813032627106, 0.538062334060669, 0.529058098793029...
api/cssvariablereferencevalue/fallback/index.md
API - CSSVariableReferenceValue - fallback - Value: A `CSSUnparsedValue`.
[ 0.24027897417545319, 0.7282807230949402, -0.26696711778640747, -0.0346076637506485, -0.28783267736434937, -1.9486030340194702, 0.9213096499443054, 0.5710175633430481, -1.1528387069702148, 0.07824774086475372, 0.5046977996826172, 0.1521150916814804, 0.569295346736908, 0.6097918152809143, ...
api/cssvariablereferencevalue/cssvariablereferencevalue/index.md
API - CSSVariableReferenceValue: Creates a new `CSSVariableReferenceValue`.
[ -0.31266912817955017, 0.3156171143054962, -0.49748513102531433, 0.8569062948226929, -0.6941691040992737, -1.839007019996643, 0.16541540622711182, 0.5480766892433167, -0.566789984703064, 0.12270861864089966, 0.22662454843521118, 0.0058638304471969604, 0.7572252750396729, 0.5907532572746277,...
api/cssvariablereferencevalue/cssvariablereferencevalue/index.md
API - CSSVariableReferenceValue - Syntax: Example: new CSSVariableReferenceValue(variable) new CSSVariableReferenceValue(variable, fallback)
[ -0.9118903875350952, 0.12570197880268097, -0.3145838677883148, 0.03801494091749191, -0.10948899388313293, -1.9270763397216797, 0.05061427503824234, 0.5640602707862854, 0.2825656235218048, -0.22427998483181, 0.1180819422006607, -0.30576401948928833, 0.20429226756095886, 0.6945002675056458, ...
api/cssvariablereferencevalue/cssvariablereferencevalue/index.md
API - CSSVariableReferenceValue - Syntax - Parameters: - `variable`: A custom property name. - `fallback` (optional): A custom property fallback value.
[ -0.5464918613433838, 0.1385982632637024, -0.9784039258956909, 0.4808083772659302, 0.15722134709358215, -1.9053637981414795, 0.9818404912948608, 0.5736912488937378, 0.0787823349237442, 0.4312632381916046, -0.3819276988506317, 0.1616845279932022, 0.006624873727560043, 0.2610706686973572, -...
api/cssvariablereferencevalue/variable/index.md
API - CSSVariableReferenceValue - variable: The `variable` property of the `CSSVariableReferenceValue` interface returns the custom property name of the `CSSVariableReferenceValue`.
[ -0.7160761952400208, 0.05076282471418381, -0.5104985237121582, 0.5495489835739136, -0.361074835062027, -2.039334535598755, 0.6427037715911865, 0.6782668232917786, 0.016800642013549805, -0.12595683336257935, 0.3579019606113434, 0.2954224944114685, 0.8891541361808777, 0.31738460063934326, ...
api/cssvariablereferencevalue/variable/index.md
API - CSSVariableReferenceValue - variable - Value: A string beginning with `--` (that is, a custom property name).
[ -0.8664871454238892, 0.08740703761577606, -0.6641957759857178, 0.6007668972015381, -0.24662990868091583, -1.5710488557815552, 1.0878173112869263, 0.17576216161251068, -0.6586169004440308, 0.41599225997924805, 0.16929106414318085, 0.54705411195755, -0.2737619876861572, -0.0406065471470356, ...
api/scriptprocessornode/audioprocess_event/index.md
API - ScriptProcessorNode - audioprocess event: Deprecated: This feature is no longer recommended. The `audioprocess` event of the `ScriptProcessorNode` interface is fired when an input buffer of a script processor is ready to be processed. Note: This feature was replaced by AudioWorklets and the `AudioWorkletNode` ...
[ 0.4470905661582947, 0.24786779284477234, -1.2406952381134033, 0.8912638425827026, 0.14278368651866913, -1.0168925523757935, 0.2840641736984253, 1.2334914207458496, 0.28051069378852844, 0.16711707413196564, 0.2603568136692047, -0.2323586642742157, 0.2954779863357544, 0.23922455310821533, ...
api/scriptprocessornode/audioprocess_event/index.md
API - ScriptProcessorNode - audioprocess event - Syntax: Use the event name in methods like `addEventListener()`, or set an event handler property. Example: addEventListener("audioprocess", (event) => { }) onaudioprocess = (event) => { }
[ -1.2184869050979614, -0.5723885297775269, -1.2539206743240356, 0.9847890138626099, -0.284976065158844, -1.257224440574646, -0.05067770183086395, 1.1239256858825684, 0.24419108033180237, -0.26747995615005493, 0.30165377259254456, -0.39355045557022095, -0.3280743658542633, -0.687794864177703...
api/scriptprocessornode/audioprocess_event/index.md
API - ScriptProcessorNode - audioprocess event - Event type: An `AudioProcessingEvent`. Inherits from `Event`.
[ -0.726577877998352, -0.4836083948612213, -0.8361265063285828, 0.9105373024940491, -0.33315080404281616, -0.9391036629676819, -0.11318447440862656, 0.43678218126296997, 0.048408687114715576, 0.41344374418258667, -0.135514497756958, -0.04268162325024605, -0.37010958790779114, 0.0927469730377...
api/scriptprocessornode/audioprocess_event/index.md
API - ScriptProcessorNode - audioprocess event - Examples: Example: scriptNode.addEventListener("audioprocess", (audioProcessingEvent) => { // The input buffer is a song we loaded earlier const inputBuffer = audioProcessingEvent.inputBuffer; // The output buffer contains the samples that will be modified and p...
[ -0.5417720079421997, -0.5129916667938232, -0.8256927132606506, 1.3062562942504883, 0.25025007128715515, -0.8182265162467957, 0.04113682359457016, 1.0041625499725342, -0.1473354548215866, 0.3495398461818695, -0.4013577699661255, -0.3413851261138916, -0.6858819127082825, -0.2459750771522522,...
api/midiport/statechange_event/index.md
API - MIDIPort - statechange event: Secure context: This feature is available only in secure contexts (HTTPS). The `statechange` event of the `MIDIPort` interface is fired when a port changes from open to closed, or closed to open.
[ -0.28791549801826477, -0.4440310597419739, -0.05994943901896477, 0.8474052548408508, -0.44265180826187134, -1.4223332405090332, 0.23314043879508972, 0.32880550622940063, 0.056908875703811646, 0.05926426127552986, -0.31873923540115356, -0.3564680218696594, 0.5468997955322266, -0.16854785382...
api/midiport/statechange_event/index.md
API - MIDIPort - statechange event - Syntax: Use the event name in methods like `addEventListener()`, or set an event handler property. Example: addEventListener("statechange", (event) => { }) onstatechange = (event) => { }
[ 0.3818590044975281, -0.658081591129303, -0.5612925291061401, 0.42850038409233093, -0.29967665672302246, -1.202569842338562, 0.016892343759536743, 0.7172340750694275, 0.3334374725818634, -0.08884606510400772, -0.5453357100486755, -0.32676124572753906, 0.016875844448804855, 0.133457168936729...
api/midiport/statechange_event/index.md
API - MIDIPort - statechange event - Event type: A `MIDIConnectionEvent`. Inherits from `Event`.
[ -0.37718141078948975, -0.6749476194381714, -0.3228648602962494, 0.1900385469198227, -0.9473847150802612, -1.0947095155715942, 0.5425130724906921, 0.5190258622169495, 0.00892665982246399, -0.06712817400693893, -0.37300217151641846, -0.43870481848716736, 0.1903926134109497, 0.352163374423980...
api/midiport/statechange_event/index.md
API - MIDIPort - statechange event - Example: In the following example the current `MIDIPort.state` is logged each time it changes. Example: port.onstatechange = (event) => { console.log(port.state); };
[ -0.17594635486602783, -0.42177024483680725, -0.7789777517318726, 0.6636751294136047, -0.42423614859580994, -1.2295647859573364, 0.2496849000453949, 0.37024450302124023, -0.13472148776054382, 0.08885990083217621, -0.4161401391029358, -0.5672562718391418, 0.31596601009368896, 0.2409543693065...
api/xrcubelayer/redraw_event/index.md
API - XRCubeLayer - redraw event: The `redraw` event is sent to the `XRCubeLayer` object when the underlying resources of the layer are lost or when the XR Compositor can no longer reproject the layer. If this event is sent, authors should redraw the content of the layer in the next XR animation frame. See also the `...
[ -0.2507244050502777, -0.3140861690044403, -0.3577147126197815, 0.20424862205982208, 0.11958836019039154, -1.1929384469985962, 0.7133883833885193, 1.4846595525741577, -0.5550742745399475, -0.04594133049249649, 0.10708850622177124, 0.29559239745140076, 0.10547225177288055, 0.8433427810668945...
api/xrcubelayer/redraw_event/index.md
API - XRCubeLayer - redraw event - Syntax: Use the event name in methods like `addEventListener()`, or set an event handler property. Example: addEventListener("redraw", (event) => { }) onredraw = (event) => { }
[ -0.2189428061246872, -0.3737526834011078, -0.19479170441627502, 0.2343948781490326, -0.08693868666887283, -1.2277597188949585, 0.3515775501728058, 0.7717248201370239, -0.09230552613735199, 0.2568378448486328, -0.42739078402519226, -0.06761836260557175, 0.02095038816332817, 0.01645405590534...
api/xrcubelayer/redraw_event/index.md
API - XRCubeLayer - redraw event - Event type: An `XRLayerEvent`. Inherits from `Event`.
[ -0.253886878490448, 0.004836704581975937, 0.47622931003570557, 0.13802950084209442, -0.8842494487762451, -0.9639292359352112, 0.26099181175231934, 0.49217212200164795, -0.4562191665172577, 0.12186701595783234, 0.26714274287223816, 0.4771563410758972, -0.27054256200790405, 0.380087256431579...
api/xrcubelayer/redraw_event/index.md
API - XRCubeLayer - redraw event - Examples - Using the `redraw` event: You can pass `redraw` to `addEventListener()`: Example: cubeLayer.addEventListener("redraw", (event) => { // redraw the layer }); Alternatively, you can use the `onredraw` event handler property to establish a handler for the `redraw` event: ...
[ -0.5617820024490356, -0.36177775263786316, -0.3103565275669098, 0.2751087248325348, -0.15467460453510284, -1.7358280420303345, 0.5841343998908997, 0.7184101343154907, -0.15111403167247772, 0.4013550579547882, -0.2296137809753418, 0.33287563920021057, 0.3085003197193146, 0.44700688123703003...
api/html_sanitizer_api/default_sanitizer_configuration/index.md
API - HTML Sanitizer API - Default sanitizer configuration: The default sanitizer configuration defines the configuration returned by the `Sanitizer()` constructor if no `configuration` is passed as an argument. This same configuration is implicitly used if you call the safe sanitization methods, such as `Element.setH...
[ 0.07250941544771194, 0.2563532590866089, -0.6436320543289185, 1.1085988283157349, -0.5356009006500244, -1.7189068794250488, 0.3037090301513672, 0.9954886436462402, 0.5033823847770691, 0.5829124450683594, -0.8741441965103149, 0.27625593543052673, -0.14594441652297974, -0.5892545580863953, ...
api/html_sanitizer_api/default_sanitizer_configuration/index.md
API - HTML Sanitizer API - Default sanitizer configuration - HTML elements: - Element: `a`, Allowed: &check;, Additional allowed attributes: `href`, `hreflang`, `type` - Element: `abbr`, Allowed: &check;, Additional allowed attributes: - Element: `acronym`, Allowed: ❌, Additional allowed attributes: - Element: `addr...
[ 0.5015357732772827, -0.2272653728723526, -0.37792015075683594, 0.5939460396766663, 0.5273518562316895, -1.0541366338729858, 0.7615524530410767, 1.3897713422775269, -0.7346222996711731, -0.08739662915468216, -0.011803841218352318, 0.41604527831077576, -0.34376922249794006, 0.440665245056152...
api/html_sanitizer_api/default_sanitizer_configuration/index.md
API - HTML Sanitizer API - Default sanitizer configuration - SVG elements: - Element: `a`, Allowed: &check;, Additional allowed attributes: `href`, `hreflang`, `type` - Element: `animate`, Allowed: ❌, Additional allowed attributes: - Element: `animateMotion`, Allowed: ❌, Additional allowed attributes: - Element: `an...
[ 0.2877415120601654, -0.2983973026275635, -0.29671648144721985, 0.486854612827301, 0.21752390265464783, -0.9596057534217834, 0.9742766618728638, 1.739807367324829, -0.7867975831031799, 0.31088465452194214, -0.21558606624603271, 0.4920876622200012, 0.11371538043022156, 0.41133609414100647, ...
api/html_sanitizer_api/default_sanitizer_configuration/index.md
API - HTML Sanitizer API - Default sanitizer configuration - MathML elements: - Element: `annotation`, Allowed: ❌, Additional allowed attributes: - Element: `annotation-xml`, Allowed: ❌, Additional allowed attributes: - Element: `maction`, Allowed: ❌, Additional allowed attributes: - Element: `math`, Allowed: &chec...
[ 0.3858529031276703, -1.0032238960266113, -0.6177973747253418, 1.0813411474227905, 0.16945752501487732, -1.206686019897461, 0.15348705649375916, 1.2500232458114624, -0.43523141741752625, 0.37092676758766174, -0.4409445524215698, 0.11657953262329102, 0.44121062755584717, 0.05144067853689194,...
api/html_sanitizer_api/default_sanitizer_configuration/index.md
API - HTML Sanitizer API - Default sanitizer configuration - Global attributes: The default configuration allows the following attributes on all elements.
[ -0.41619637608528137, 0.4815453290939331, -0.5790740847587585, 0.7715586423873901, -0.40109673142433167, -2.3652448654174805, 0.3372415006160736, 0.6590810418128967, -0.4260472059249878, 0.42282426357269287, -0.7425991296768188, 0.5884578824043274, -0.16809386014938354, 0.2521763741970062,...
api/html_sanitizer_api/default_sanitizer_configuration/index.md
API - HTML Sanitizer API - Default sanitizer configuration - Global attributes - HTML global attributes: - `dir` - `lang` - `title`
[ -1.604941725730896, -0.20425347983837128, -0.2646617889404297, 1.1069822311401367, -0.7624520659446716, -1.29982328414917, -0.8709520697593689, -0.15989217162132263, 0.3753030002117157, 0.31043457984924316, -0.9021921753883362, 0.48476260900497437, -0.03794725984334946, -0.0960679277777671...
api/html_sanitizer_api/default_sanitizer_configuration/index.md
API - HTML Sanitizer API - Default sanitizer configuration - Global attributes - MathML global attributes: - `displaystyle` - `mathbackground` - `mathcolor` - `mathsize` - `scriptlevel`
[ -1.1553949117660522, 0.09446913003921509, -0.37455514073371887, 0.13482511043548584, -0.6377077102661133, -1.1422264575958252, -0.8336578607559204, 0.39082106947898865, 0.8144885897636414, 0.3281845152378082, -1.0176327228546143, 1.0720360279083252, 0.4601411819458008, -0.17469540238380432...
api/html_sanitizer_api/default_sanitizer_configuration/index.md
API - HTML Sanitizer API - Default sanitizer configuration - Global attributes - SVG attributes: - `alignment-baseline` - `baseline-shift` - `clip-path` - `clip-rule` - `color` - `color-interpolation` - `cursor` - `direction` - `display` - `dominant-baseline` - `fill` - `fill-opacity` - `fill-rule` - `font-family` - `...
[ -1.0966705083847046, -0.16912943124771118, 0.10169512033462524, 0.322294145822525, -0.5733401775360107, -0.46069514751434326, -0.7815475463867188, 1.3417234420776367, 0.8518145680427551, 0.40096479654312134, -0.6398680806159973, 0.5100501179695129, 0.2369481921195984, -0.004146471619606018...
api/xmlhttprequesteventtarget/load_event/index.md
API - XMLHttpRequestEventTarget - load event: Note: This feature is available in Web Workers. The `load` event is fired when an `XMLHttpRequest` transaction completes successfully.
[ -1.0390998125076294, -0.28788238763809204, -0.27165961265563965, 0.1209053099155426, -0.2672854959964752, -0.9770568609237671, 0.33010077476501465, 0.10070756077766418, 0.2156446874141693, -0.10671187192201614, 0.12587785720825195, 0.4536643624305725, 0.5366947054862976, -0.242049261927604...
api/xmlhttprequesteventtarget/load_event/index.md
API - XMLHttpRequestEventTarget - load event - Syntax: Use the event name in methods like `addEventListener()`, or set an event handler property. Example: addEventListener("load", (event) => { }) onload = (event) => { }
[ -0.2548438310623169, -0.6826631426811218, -0.08865712583065033, 0.35917428135871887, -0.2575888931751251, -1.1108683347702026, 0.26498615741729736, -0.0533708781003952, 0.005773700773715973, -0.3394457697868347, -0.33065852522850037, 0.5563068389892578, 0.18217794597148895, -0.388128638267...
api/xmlhttprequesteventtarget/load_event/index.md
API - XMLHttpRequestEventTarget - load event - Event type: A `ProgressEvent`. Inherits from `Event`.
[ -1.1354854106903076, -0.5049089789390564, 0.2272445559501648, -0.20972925424575806, -0.8682109117507935, -0.38333094120025635, 0.07694672048091888, -0.0871376171708107, 0.14533740282058716, -0.547935962677002, 0.04073762893676758, 0.8007669448852539, -0.18969397246837616, -0.21760903298854...
api/xmlhttprequesteventtarget/load_event/index.md
API - XMLHttpRequestEventTarget - load event - Examples - Usage with XMLHttpRequest - HTML: Example: <div class="controls"> <input class="xhr success" type="button" name="xhr" value="Click to start XHR (success)" /> <input class="xhr error" type="button" name="xhr" value="Click to ...
[ -0.19276075065135956, -0.49293407797813416, 0.21683216094970703, 0.41146352887153625, -0.5275185704231262, -1.3168851137161255, 0.1941179484128952, -0.3835757374763489, 0.0394723042845726, -0.021218162029981613, -0.7365325689315796, 0.7000237703323364, 0.3169443905353546, -0.04706278443336...
api/xmlhttprequesteventtarget/load_event/index.md
API - XMLHttpRequestEventTarget - load event - Examples - Usage with XMLHttpRequest - JavaScript: Example: const xhrButtonSuccess = document.querySelector(".xhr.success"); const xhrButtonError = document.querySelector(".xhr.error"); const xhrButtonAbort = document.querySelector(".xhr.abort"); const log = document.que...
[ -0.09013184159994125, -0.750562310218811, -0.1910242885351181, 0.6965784430503845, -0.41557303071022034, -0.9083064794540405, 0.17173166573047638, 0.10640695691108704, -0.07808199524879456, 0.22200137376785278, -0.6987111568450928, 0.4481842517852783, 0.03711377829313278, 0.366430938243865...
api/xmlhttprequesteventtarget/load_event/index.md
API - XMLHttpRequestEventTarget - load event - Examples - Usage with XMLHttpRequestUpload: You can use the `load` event to detect the successful termination of an upload. For a complete code example that uploads a file and displays a progress bar, see the main `XMLHttpRequestUpload` page. Example: // When the upload...
[ -0.09646566957235336, -0.09563116729259491, -0.4111029803752899, 0.6932088732719421, -0.31718817353248596, -0.6613560914993286, 0.056553684175014496, 1.014775276184082, -0.32431137561798096, 0.012002355419099331, -0.26591432094573975, 0.8574920296669006, 0.17412719130516052, 0.904127836227...