file
stringlengths
16
94
text
stringlengths
32
24.4k
vector
list
api/sharedstorageworklet/index.md
API - SharedStorageWorklet: Deprecated: This feature is no longer recommended. Non-standard: This feature is not standardized. The `SharedStorageWorklet` interface of the `Shared Storage API` represents the shared storage worklet for the current origin. `SharedStorageWorklet` does not have its own properties or meth...
[ 1.258344292640686, -0.7868748307228088, -1.0250051021575928, 0.6080637574195862, -0.06760205328464508, -1.1699382066726685, 0.06171243637800217, 1.1853594779968262, -0.1436784565448761, -0.20792090892791748, -0.40594547986984253, 0.7353772521018982, 0.8157902956008911, 0.3465043008327484, ...
api/sharedstorageworklet/index.md
API - SharedStorageWorklet - Examples: Example: // Randomly assigns a user to a group 0 or 1 function getExperimentGroup() { return Math.round(Math.random()); } async function injectContent() { // Add the module to the shared storage worklet await window.sharedStorage.worklet.addModule("ab-testing-worklet.js")...
[ 0.2966556251049042, -0.9305998086929321, -0.29588648676872253, 0.6859913468360901, 0.44091105461120605, -1.3286327123641968, 0.3563072681427002, 0.8309245109558105, 0.09074665606021881, 0.2882765829563141, -0.047462113201618195, 0.5688654184341431, 0.12695647776126862, 0.4471789598464966, ...
api/element/index.md
API - Element: `Element` is the most general base class from which all element objects (i.e., objects that represent elements) in a `Document` inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from `Element`. For example, the `HTMLElement` interface is the base...
[ 1.348921298980713, -0.2473950833082199, 0.3473760187625885, -0.0901089608669281, 0.6804348230361938, -1.9381005764007568, 0.5936997532844543, 1.144174575805664, -0.27916646003723145, -0.11128655076026917, 0.29396316409111023, 0.7410878539085388, 0.5173827409744263, 0.32881173491477966, -...
api/element/index.md
API - Element - Instance properties: `Element` inherits properties from its parent interface, `Node`, and by extension that interface's parent, `EventTarget`. - `Element.activeViewTransition` (read only) (experimental): Returns a `ViewTransition` instance representing the view transition currently active on an elemen...
[ -0.02658107690513134, -0.4355570673942566, 0.07343341410160065, -0.35339099168777466, 0.18581125140190125, -1.6668649911880493, 0.7215185165405273, 0.35051417350769043, 0.2572470009326935, 0.6115550994873047, -0.3326133191585541, 0.5109020471572876, -0.16642843186855316, 0.6360765099525452...
api/element/index.md
API - Element - Instance properties - Instance properties included from ARIA: The `Element` interface also includes the following properties. - `Element.ariaAtomic`: A string reflecting the `aria-atomic` attribute, which indicates whether assistive technologies will present all, or only parts of, the changed region b...
[ 0.5200373530387878, 0.12173712253570557, -0.6598694324493408, -0.017570501193404198, 0.8037725687026978, -1.5750916004180908, 1.403279185295105, 1.2585772275924683, -0.6049806475639343, 0.4012739062309265, 0.07629264891147614, 0.46814948320388794, -0.3000088036060333, 0.426361083984375, ...
api/element/index.md
API - Element - Instance properties - Instance properties included from ARIA - Instance properties reflected from ARIA element references: The properties reflect the elements specified by `id` reference in the corresponding attributes, but with some caveats. See Reflected element references in the Reflected attributes...
[ 0.8566980957984924, -0.25919246673583984, -0.25957220792770386, -0.13890370726585388, -0.5555076599121094, -1.4336107969284058, 0.35758787393569946, 0.6522555351257324, 0.7439471483230591, 0.4017619490623474, -0.5695276856422424, 0.48968809843063354, -0.5938078165054321, -0.123686008155345...
api/element/index.md
API - Element - Instance methods: `Element` inherits methods from its parents `Node`, and its own parent, `EventTarget`. - `Element.after()`: Inserts a set of `Node` objects or strings in the children list of the `Element`'s parent, just after the `Element`. - `Element.animate()`: A shortcut method to create and run ...
[ 0.8478201627731323, -0.25479811429977417, -0.8536436557769775, -0.1250702440738678, 0.5229935646057129, -0.6648558378219604, 1.0738162994384766, 1.2019511461257935, -0.5486456155776978, 0.23476652801036835, 0.2569427490234375, 0.4965076446533203, -0.22277317941188812, 0.5561115145683289, ...
api/element/index.md
API - Element - Events: Listen to these events using `addEventListener()` or by assigning an event listener to the `oneventname` property of this interface. - `afterscriptexecute` (non-standard) (deprecated): Fired when a script has been executed. - `beforeinput`: Fired when the value of an input element is about to ...
[ 0.04026048630475998, -0.6802144646644592, -0.00932680070400238, 0.47535157203674316, -0.2687126696109772, -1.3161524534225464, 0.7504451870918274, 0.1655302345752716, 0.4182713031768799, 0.5575602650642395, -0.06114315241575241, -0.2546931505203247, -0.09135927259922028, -0.102515533566474...
api/element/index.md
API - Element - Events - Animation events: - `animationcancel`: Fired when an animation unexpectedly aborts. - `animationend`: Fired when an animation has completed normally. - `animationiteration`: Fired when an animation iteration has completed. - `animationstart`: Fired when an animation starts.
[ 0.3990129232406616, -0.5397139191627502, 0.2586173415184021, -0.04293667525053024, -0.2699611783027649, -1.390843391418457, -0.07922917604446411, 0.27599844336509705, 0.003995522856712341, 0.14862971007823944, -0.2043600082397461, -0.530890941619873, -0.1577981561422348, 0.3083446323871612...
api/element/index.md
API - Element - Events - Clipboard events: - `copy`: Fired when the user initiates a copy action through the browser's user interface. - `cut`: Fired when the user initiates a cut action through the browser's user interface. - `paste`: Fired when the user initiates a paste action through the browser's user interface.
[ 0.21011602878570557, -0.3482636511325836, -0.2168683111667633, 0.30677729845046997, -0.05932066589593887, -1.4203014373779297, 0.7170685529708862, 0.1372375786304474, -0.18545037508010864, 0.4336227476596832, -0.2463643103837967, -0.4690866768360138, 0.6053697466850281, 0.06823693215847015...
api/element/index.md
API - Element - Events - Composition events: - `compositionend`: Fired when a text composition system such as an `input method editor` completes or cancels the current composition session. - `compositionstart`: Fired when a text composition system such as an `input method editor` starts a new composition session. - `c...
[ 0.5980483293533325, -0.3829593062400818, -0.7120937705039978, 1.175764560699463, 0.10685582458972931, -1.9020768404006958, 0.21168430149555206, 1.2310844659805298, -0.9088037014007568, 0.5556194186210632, -0.12889455258846283, -0.29301297664642334, 0.01299842819571495, 0.8913998007774353, ...
api/element/index.md
API - Element - Events - Focus events: - `blur`: Fired when an element has lost focus. - `focus`: Fired when an element has gained focus. - `focusin`: Fired when an element has gained focus, after `focus`. - `focusout`: Fired when an element has lost focus, after `blur`.
[ 0.16203242540359497, -0.2808268070220947, -0.26386111974716187, -0.3357319235801697, 0.025175824761390686, -1.7732983827590942, 0.1089811623096466, 0.09469016641378403, 0.008483707904815674, 0.32027313113212585, -0.4293910264968872, 0.02192918211221695, -0.23554857075214386, 1.187047719955...
api/element/index.md
API - Element - Events - Fullscreen events: - `fullscreenchange`: Sent to an `Element` when it transitions into or out of fullscreen mode. - `fullscreenerror`: Sent to an `Element` if an error occurs while attempting to switch it into or out of fullscreen mode.
[ 0.6572769284248352, -0.2750645577907562, -0.383573055267334, -0.085187628865242, -0.4595697522163391, -2.21240496635437, 0.5854055285453796, 0.3300431966781616, 0.34388279914855957, -0.2383337914943695, -0.0595100037753582, 0.3861294388771057, -0.1732388585805893, 0.54646897315979, -0.04...
api/element/index.md
API - Element - Events - Keyboard events: - `keydown`: Fired when a key is pressed. - `keypress` (deprecated): Fired when a key that produces a character value is pressed down. - `keyup`: Fired when a key is released.
[ 0.13200810551643372, 0.3915587067604065, -0.5443192720413208, -0.16730386018753052, -0.04946499690413475, -1.6824532747268677, 0.5650471448898315, 1.152588129043579, 0.18120047450065613, 0.4020199477672577, 0.012332703918218613, 0.13180884718894958, -0.25952935218811035, 0.9897325038909912...
api/element/index.md
API - Element - Events - Mouse events: - `auxclick`: Fired when a non-primary pointing device button (e.g., any mouse button other than the left button) has been pressed and released on an element. - `click`: Fired when a pointing device button (e.g., a mouse's primary button) is pressed and released on a single eleme...
[ 1.0503991842269897, -0.495363712310791, -0.35570868849754333, 0.5754940509796143, 0.4549950361251831, -0.8694183230400085, 0.7085951566696167, 1.0148794651031494, -0.3425396978855133, 0.6623180508613586, 0.6166673898696899, 0.5313702821731567, -0.4526027739048004, 0.4824746251106262, -0....
api/element/index.md
API - Element - Events - Pointer events: - `gotpointercapture`: Fired when an element captures a pointer using `setPointerCapture()`. - `lostpointercapture`: Fired when a captured pointer is released. - `pointercancel`: Fired when a pointer event is canceled. - `pointerdown`: Fired when a pointer becomes active. - `po...
[ 0.821456789970398, -0.8816666007041931, -0.12009476125240326, 0.163724884390831, 0.100679412484169, -1.9979256391525269, 0.8640421628952026, 1.064375877380371, 0.28950098156929016, 0.9661486148834229, -0.3555346727371216, -0.2433830350637436, -0.8790913224220276, 0.46231281757354736, 0.5...
api/element/index.md
API - Element - Events - Scroll events: - `scroll`: Fired when the document view or an element has been scrolled. - `scrollend`: Fires when the document view has completed scrolling. - `scrollsnapchange` (experimental): Fired on the scroll container at the end of a scrolling operation when a new scroll snap target has...
[ -0.3459397852420807, -0.3429580330848694, -0.16149596869945526, 0.2545594274997711, 0.29724130034446716, -1.6374576091766357, 0.43514615297317505, 0.7230697870254517, -0.10696032643318176, 0.5186240077018738, 0.28911006450653076, -0.11025138199329376, 0.024241935461759567, 0.61514198780059...
api/element/index.md
API - Element - Events - Touch events: - `gesturechange` (non-standard): Fired when digits move during a touch gesture. - `gestureend` (non-standard): Fired when there are no longer multiple fingers contacting the touch surface, thus ending the gesture. - `gesturestart` (non-standard): Fired when multiple fingers cont...
[ 0.7395286560058594, -0.48307135701179504, -0.5822679400444031, 0.22445470094680786, -0.051588937640190125, -1.6554100513458252, -0.16211044788360596, 0.7884934544563293, 0.21229559183120728, 0.665957510471344, -0.034084025770425797, 0.3934752643108368, -0.12298180907964706, 0.0601141750812...
api/element/index.md
API - Element - Events - Transition events: - `transitioncancel`: An `Event` fired when a CSS transition has been cancelled. - `transitionend`: An `Event` fired when a CSS transition has finished playing. - `transitionrun`: An `Event` fired when a CSS transition is created (i.e., when it is added to a set of running t...
[ 0.004359280224889517, -0.4825441241264343, -0.7219033241271973, 0.49132901430130005, -0.1313573122024536, -1.6454894542694092, 0.5957828760147095, 0.990490198135376, -0.19601872563362122, 0.8992025256156921, 0.26354050636291504, 0.040716178715229034, -0.15608355402946472, 1.080646634101867...
api/element/checkvisibility/index.md
API - Element - checkVisibility: The `checkVisibility()` method of the `Element` interface checks whether the element is potentially visible. The method returns `false` in either of the following situations: - The element doesn't have an associated box, for example because the CSS `display` property is set to `none`...
[ 0.3633364737033844, -0.39479950070381165, 0.3394579291343689, 0.4029407203197479, 0.12031936645507812, -2.0856878757476807, 0.6804577112197876, 0.6369749307632446, -0.0314234159886837, 1.0062611103057861, 0.181858628988266, -0.04339829832315445, 0.45323851704597473, 0.5437878370285034, 0...
api/element/checkvisibility/index.md
API - Element - checkVisibility - Syntax: Example: checkVisibility(options)
[ 0.16607169806957245, -0.34840014576911926, -0.1148969829082489, -0.1908663511276245, -0.4235968589782715, -1.2449026107788086, 0.4722938537597656, 0.17465662956237793, -0.002971455454826355, 0.44039690494537354, 0.02548540011048317, -0.22299830615520477, 0.34733107686042786, 0.163721188902...
api/element/checkvisibility/index.md
API - Element - checkVisibility - Syntax - Parameters: - `options` (optional): An object indicating additional checks to run. The possible options are: - `contentVisibilityAuto`: `true` to check if the element `content-visibility` property has (or inherits) the value `auto`, and it is currently skipping its renderin...
[ -0.13282468914985657, -0.35326695442199707, 0.027048736810684204, 0.5904752016067505, -0.03767402470111847, -1.2559492588043213, 1.0608123540878296, 1.141062617301941, -0.364518940448761, 0.46692416071891785, -0.20029783248901367, -0.017944976687431335, 1.1852680444717407, 0.44632208347320...
api/element/checkvisibility/index.md
API - Element - checkVisibility - Syntax - Return value: `false` if any of the following conditions are met, otherwise `true`: - The element doesn't have an associated box. - The element `content-visibility` property has (or inherits) a value of `hidden`. - `opacityProperty` (or `checkOpacity`) is `true` and the elem...
[ -0.25854113698005676, -0.26646140217781067, 0.7384989857673645, 0.5582383871078491, -0.241380974650383, -1.8318326473236084, 0.41716575622558594, 1.0103973150253296, -0.02114124968647957, 0.5628413558006287, -0.024337230250239372, 0.06641815602779388, 0.7719188928604126, 0.2570949494838714...
api/element/checkvisibility/index.md
API - Element - checkVisibility - Examples - Test checkVisibility() with varied CSS: The following example allows you to test how the result of `checkVisibility()` might change with different values for `display`, `content-visibility`, `visibility`, and `opacity` CSS properties.
[ -0.27909529209136963, -0.7782144546508789, 0.019514698535203934, 0.008579887449741364, -0.21127253770828247, -1.2916213274002075, 0.653635561466217, 0.5694694519042969, -0.26284998655319214, 0.48422375321388245, -0.11341051012277603, 0.3409191370010376, 0.39704087376594543, 0.1125399470329...
api/element/checkvisibility/index.md
API - Element - checkVisibility - Examples - Test checkVisibility() with varied CSS - HTML: The HTML defines a `<select>` element for the CSS properties that affect the results of `checkVisibility()`. The first (default selected) values should result in `checkVisibility()` returning `true` when applied to an element, ...
[ -0.5149649381637573, -0.17218223214149475, 0.42358869314193726, 0.2803010046482086, -0.01942048966884613, -1.5252970457077026, 0.18411964178085327, 0.43951815366744995, 0.08665496110916138, 0.9519574046134949, -0.5072559118270874, 0.07193082571029663, 0.2555558681488037, -0.102475576102733...
api/element/checkvisibility/index.md
API - Element - checkVisibility - Examples - Test checkVisibility() with varied CSS - CSS: The CSS just highlights the element to be tested. Example: #test_element { border: solid; border-color: blue; }
[ 0.26010268926620483, -0.38517484068870544, 0.18062852323055267, -0.609489917755127, -0.6862756013870239, -1.3376288414001465, 0.24254751205444336, 0.306241899728775, -0.5841128826141357, 0.7310389876365662, -0.0040162671357393265, -0.03407728672027588, 0.3078435957431793, 0.009883508086204...
api/element/checkvisibility/index.md
API - Element - checkVisibility - Examples - Test checkVisibility() with varied CSS - JavaScript: The code below gets each of the `<select>` elements. The `updateCSS()` method is called on start and whenever the select elements change in order to apply the selected CSS to the target element, Example: const displayCs...
[ 0.0639539510011673, 0.1606762409210205, 0.2819176912307739, 0.015415523201227188, 0.1829371154308319, -0.9853304624557495, 0.6953111886978149, 0.8962857723236084, -0.8205658197402954, 0.5635985732078552, -0.055004894733428955, -0.027723796665668488, 0.22463002800941467, -0.0354946851730346...
api/element/activeviewtransition/index.md
API - Element - activeViewTransition: The `activeViewTransition` read-only property of the `Element` interface returns a `ViewTransition` instance representing the view transition currently active on an element. It provides a consistent way to access an active element-scoped view transition without needing to save a r...
[ 0.27200785279273987, -0.6321616768836975, 0.4310150742530823, 0.22535020112991333, 0.2165564000606537, -1.620526909828186, 0.9729197025299072, 0.46202099323272705, 0.21671843528747559, 0.43469059467315674, -0.08362159132957458, -0.5908433198928833, 0.2903175354003906, 0.8839879631996155, ...
api/element/activeviewtransition/index.md
API - Element - activeViewTransition - Value: A `ViewTransition` or `null` if the element has no active view transition.
[ -0.33985844254493713, -0.5160736441612244, 0.3100526034832001, -0.012580830603837967, -0.09753362834453583, -1.4869285821914673, 1.1017099618911743, -0.10395146161317825, 0.07356370985507965, 0.1624937802553177, 0.3459293842315674, -0.5432500243186951, 0.5613309144973755, 0.781706273555755...
api/element/activeviewtransition/index.md
API - Element - activeViewTransition - Examples - Basic usage: This snippet shows how to use `activeViewTransition` to retrieve a reference to an ongoing view transition. Example: const myElement = document.querySelector(".my-element"); // ... function handleVT() { const vt = myElement.startViewTransition(() => ...
[ 0.4955756366252899, -0.7420266270637512, 0.13638845086097717, 0.9811316728591919, 0.11839750409126282, -1.413707971572876, 0.3485071659088135, 1.067907452583313, 0.017137140035629272, 0.24402330815792084, -0.10948756337165833, -0.2924426794052124, 0.07726835459470749, 0.8081090450286865, ...
api/element/pseudo/index.md
API - Element - pseudo: . The `pseudo()` method of the `Element` interface returns a `CSSPseudoElement` object representing the CSS pseudo-element of the specified type associated with the element. Provided its `type` parameter contains a valid pseudo-element type, `pseudo()` will always return a `CSSPseudoElement` ...
[ 0.2717258930206299, -0.12419029325246811, -0.7619789242744446, 0.45856744050979614, -0.19780436158180237, -2.4129514694213867, 0.748539388179779, 0.22626718878746033, 0.16368594765663147, 0.37205150723457336, -0.060394927859306335, 0.6832006573677063, 0.3187962770462036, -0.027095254510641...
api/element/pseudo/index.md
API - Element - pseudo - Syntax: Example: pseudo(type)
[ 0.3626568913459778, 0.015062427148222923, -1.0891697406768799, -0.7320274710655212, -0.8858827352523804, -0.8307228684425354, 1.4516245126724243, 1.9488813877105713, 0.43187570571899414, -0.309964656829834, 0.095089852809906, 0.6357778906822205, -0.7755019664764404, -0.7300020456314087, ...
api/element/pseudo/index.md
API - Element - pseudo - Syntax - Parameters: - `type`: A string representing the type of pseudo-element to return a representation of. Valid values are: - `::after` - `::before` - `::marker`
[ 0.3529711365699768, -0.07618558406829834, -0.23325489461421967, -0.24688802659511566, 0.22058454155921936, -1.968230128288269, 0.6213988065719604, 0.4805120825767517, 0.16962523758411407, 0.2663194537162781, -0.23114463686943054, 0.3502129316329956, 0.10016664862632751, -0.4587417244911194...
api/element/pseudo/index.md
API - Element - pseudo - Syntax - Return value: A `CSSPseudoElement` object instance, or `null` if `type` is not equal to a valid pseudo-element type.
[ 0.2196628749370575, -0.4141303598880768, -0.06051911041140556, 0.07282701134681702, -0.41356512904167175, -2.239800453186035, 0.4607395529747009, 0.105633944272995, -0.18252283334732056, 0.4348389804363251, -0.041944585740566254, 0.3726750314235687, 0.44517412781715393, -0.2353948950767517...
api/element/pseudo/index.md
API - Element - pseudo - Examples - Basic usage: In this example, we demonstrate basic usage of the `pseudo()` method.
[ 0.3825211822986603, 0.6326006650924683, -1.330466866493225, -0.14661794900894165, -0.48688068985939026, -1.4556949138641357, 2.132429838180542, 0.9592307806015015, 0.0604139119386673, 0.16428717970848083, -0.4091537296772003, 0.18846699595451355, -0.4928097724914551, -0.49176689982414246, ...
api/element/pseudo/index.md
API - Element - pseudo - Examples - Basic usage - HTML: We include a `p` element containing text, and an `output` element to log output from JavaScript. Example: <p>New York's hottest club is...</p> <output></output>
[ -0.3977888822555542, -0.021335087716579437, -0.5188575983047485, 0.8745685815811157, -0.14293718338012695, -1.2358440160751343, 0.3270461857318878, 0.4347626864910126, 0.8490161895751953, 0.23696915805339813, -0.8295158743858337, 0.8662542104721069, -0.16952688992023468, -0.369704842567443...
api/element/pseudo/index.md
API - Element - pseudo - Examples - Basic usage - CSS: We give the `<p>` element's `::after` pseudo-element some `content` and apply some basic styles to both. Example: body { width: 80%; margin: 0 auto; } Example: p { background-color: violet; padding: 20px; } p::after { content: "Crease"; background...
[ -0.024375947192311287, 0.08412854373455048, -0.30342915654182434, -0.31984129548072815, -0.30069833993911743, -1.1323325634002686, 1.1153231859207153, 0.3040130138397217, -0.49493861198425293, 0.3600805401802063, -0.15664534270763397, 0.05913331359624863, -0.20734761655330658, 0.2237308323...
api/element/pseudo/index.md
API - Element - pseudo - Examples - Basic usage - JavaScript: In our script, we grab references to our `<p>` and `<output>` elements, and retrieve a `CSSPseudoElement` representing the `<p>` element's `::after` pseudo-element via the `pseudo()` method. We then log some details of the pseudo-element to our `<output>` e...
[ 0.32889479398727417, -0.03133361041545868, -0.52535480260849, 0.426658034324646, 0.07145917415618896, -1.2638330459594727, 1.0499330759048462, 1.076487421989441, -0.5947602391242981, 0.6097143292427063, -0.5272015333175659, 0.6123415231704712, -0.0711624026298523, 0.1035541445016861, -0....
api/webtransportdatagramduplexstream/createwritable/index.md
API - WebTransportDatagramDuplexStream - createWritable: Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers. The `createWritable()` method of the `WebTransportDatagramDuplexStream` interface returns a `WebTransportDatagramsWritable` instance that...
[ -0.01797386072576046, -0.013817980885505676, 0.1801111400127411, 0.39802631735801697, 0.36789387464523315, -1.0534992218017578, 0.3730142414569855, 1.4981491565704346, -0.0030872225761413574, 0.32893067598342896, 0.10803312063217163, 0.8069508075714111, 0.37957608699798584, -0.321300357580...
api/webtransportdatagramduplexstream/createwritable/index.md
API - WebTransportDatagramDuplexStream - createWritable - Syntax: Example: createWritable() createWritable(options)
[ -0.3760122060775757, -0.5859702229499817, 0.5691460967063904, -0.02026980184018612, -0.02501074969768524, -1.5439122915267944, 0.5756533741950989, -0.08470240980386734, 0.08473663032054901, 0.28217288851737976, 0.01193302869796753, 0.10642662644386292, 0.4863685369491577, -0.34965887665748...
api/webtransportdatagramduplexstream/createwritable/index.md
API - WebTransportDatagramDuplexStream - createWritable - Syntax - Parameters: - `options` (optional): An object that may have the following properties: - `sendGroup` (optional): A `WebTransportSendGroup` that the returned stream's datagrams should be grouped under for the purposes of `sendOrder` prioritization, or ...
[ 0.3650757670402527, -0.39503464102745056, -0.44718119502067566, 0.6068784594535828, 0.2958627939224243, -1.38413405418396, 1.0540298223495483, 1.2767219543457031, -0.19180738925933838, 0.22699156403541565, 0.07305709272623062, 0.350496768951416, 0.10164591670036316, -0.000884663313627243, ...
api/webtransportdatagramduplexstream/createwritable/index.md
API - WebTransportDatagramDuplexStream - createWritable - Syntax - Return value: A `WebTransportDatagramsWritable` object, which extends `WritableStream`.
[ -0.2670522630214691, -0.501417875289917, 0.6737644076347351, 0.03741768002510071, 0.13495784997940063, -1.4564028978347778, 0.8455654382705688, 0.05413730442523956, 0.1397785246372223, 0.6136137247085571, -0.09212096035480499, 0.6170815825462341, 0.4115014672279358, -0.5069587826728821, ...
api/webtransportdatagramduplexstream/createwritable/index.md
API - WebTransportDatagramDuplexStream - createWritable - Syntax - Exceptions: - `InvalidStateError` `DOMException`: Thrown if the transport's state is `"closed"` or `"failed"`, or if `sendGroup` is specified (non-null) and is associated with a different `WebTransport`.
[ -0.2566329538822174, -1.009731650352478, 0.6489505767822266, 0.1313045471906662, 0.15195420384407043, -1.8224749565124512, 0.22413066029548645, 0.6317459344863892, -0.4591163098812103, 0.07775042206048965, -1.2074376344680786, 0.0765325129032135, 0.5071109533309937, -0.6209648847579956, ...
api/webtransportdatagramduplexstream/createwritable/index.md
API - WebTransportDatagramDuplexStream - createWritable - Description: The `createWritable()` method is used to create a `WebTransportDatagramsWritable` instance for writing outgoing datagrams. The method allows you to specify a `sendGroup` that defines the group of streams and datagrams that this stream belongs to, ...
[ 0.05021213740110397, -0.44426971673965454, -0.2855627238750458, 0.5474984049797058, 1.0186045169830322, -1.114964485168457, 0.6204524040222168, 1.6447982788085938, -0.2623121738433838, 0.5982706546783447, 0.18679054081439972, 0.46894532442092896, 0.23888692259788513, 0.04251926392316818, ...
api/webtransportdatagramduplexstream/createwritable/index.md
API - WebTransportDatagramDuplexStream - createWritable - Examples - Basic usage: This code shows how you can use the `createWritable()` method to get a `WebTransportDatagramsWritable` and use it to send data. First we define a function to wrap our stream creation code. This first constructs a `WebTransport`, and use...
[ 0.15147361159324646, 0.07794797420501709, 0.11340263485908508, 0.032098472118377686, 0.9270275831222534, -1.1492681503295898, 0.6915320158004761, 1.5710917711257935, -0.7660126686096191, 0.3078557550907135, -0.07656353712081909, 0.818912923336029, -0.1536281406879425, -0.03141855448484421,...
api/visualviewport/index.md
API - VisualViewport: The `VisualViewport` interface of the CSSOM view API represents the visual viewport for a given window. For a page containing frames, each `iframe` , as well as the containing page, will have a unique window object. Each window on a page will have a unique `VisualViewport` representing the proper...
[ -0.3808871805667877, -0.674592912197113, -0.6493748426437378, 0.5889586806297302, -0.42041924595832825, -1.764622688293457, -0.5530462861061096, -0.3264995813369751, 0.9943889379501343, 0.4250947833061218, 0.09479793906211853, 0.10063852369785309, 0.9230894446372986, 0.6946380138397217, ...
api/visualviewport/index.md
API - VisualViewport - Instance properties: Also inherits properties from its parent interface, `EventTarget`. - `VisualViewport.offsetLeft` (read only): Returns the offset of the left edge of the visual viewport from the left edge of the layout viewport in CSS pixels. - `VisualViewport.offsetTop` (read only): Return...
[ -0.2968548536300659, -0.3734271228313446, -0.3515523672103882, 0.6972254514694214, -0.11704477667808533, -1.6335235834121704, 0.6737881302833557, 0.2224477082490921, 0.6637162566184998, 0.19117654860019684, -0.2695985436439514, 0.6112729907035828, 0.14628711342811584, 0.19506791234016418, ...
api/visualviewport/index.md
API - VisualViewport - Instance methods: Also inherits methods from its parent interface, `EventTarget`.
[ 0.028726210817694664, -0.45876502990722656, -0.32560786604881287, 0.09735709428787231, -0.4323784112930298, -0.8308130502700806, 0.33580005168914795, 0.16345740854740143, 0.7022849917411804, -0.11436541378498077, -0.4045572578907013, -0.1940518319606781, 0.30978748202323914, 0.374507308006...
api/visualviewport/index.md
API - VisualViewport - Events: Listen to these events using `addEventListener()` or by assigning an event listener to the relevant `oneventname` property of this interface. - `resize`: Fired when the visual viewport is resized. Also available via the `onresize` property. - `scroll`: Fired when the visual viewport is ...
[ 0.13018865883350372, -0.12669825553894043, -0.8028581142425537, 0.7153254747390747, -0.6978155374526978, -1.3212600946426392, 1.2132132053375244, 0.9367021322250366, 0.4686547517776489, 0.6032394766807556, 0.33818319439888, -0.09224563837051392, 0.08679958432912827, 0.6386898159980774, 0...
api/visualviewport/index.md
API - VisualViewport - Description: The mobile web contains two viewports, the layout viewport and the visual viewport. The layout viewport covers all the elements on a page and the visual viewport is what is actually visible on the screen. When the user pinch-zooms into the page, the visual viewport shrinks but the l...
[ 0.12356123328208923, 0.2630980312824249, -0.8123082518577576, -0.3461048901081085, -0.008656151592731476, -0.721234142780304, 0.7121127843856812, 1.1493175029754639, 0.052825093269348145, 0.14710012078285217, 0.0073715560138225555, 1.0444058179855347, -0.1710314303636551, 0.661118447780609...
api/visualviewport/index.md
API - VisualViewport - Examples - Getting visual viewport information during scrolling and zooming: Our visual viewport example provides a basic demonstration of how the different visual viewport features work, including the three event types. Load the page in supporting desktop and mobile browsers and try scrolling a...
[ -0.45865315198898315, -0.13409602642059326, 0.17366640269756317, 0.04430379718542099, -0.31151288747787476, -0.8345869779586792, 0.3776991069316864, 0.9979993104934692, 0.11378009617328644, 0.47254568338394165, -0.10860387980937958, 0.05827423185110092, 0.0786706805229187, 0.01135666668415...
api/visualviewport/index.md
API - VisualViewport - Examples - Hiding an overlaid box on zoom: This example, taken from the Visual Viewport README, shows how to write a bit of code that will hide an overlaid box (which might contain an advert, say) when the user zooms in. This is a nice way to improve the user experience when zooming in on pages....
[ -0.07014414668083191, -0.3030635118484497, -0.19518716633319855, 0.6619699597358704, -0.2966558337211609, -1.109346866607666, 1.248025894165039, 1.052140474319458, 0.24934783577919006, 0.48738548159599304, -0.32894963026046753, 0.715137779712677, 0.14317193627357483, 0.40884318947792053, ...
api/visualviewport/index.md
API - VisualViewport - Examples - Simulating position: device-fixed: This example, also taken from the Visual Viewport README, shows how to use this API to simulate `position: device-fixed`, which fixes elements to the visual viewport. A live sample is also available. Example: const bottomBar = document.getElementBy...
[ 0.05901389569044113, -0.036588333547115326, -0.5801074504852295, 0.8782689571380615, 0.057355403900146484, -0.8019829392433167, 0.06499379128217697, 1.0555740594863892, 0.6310852766036987, 0.6233147978782654, -0.43923357129096985, 0.001076027750968933, 0.1286475658416748, 0.288834661245346...
api/webtransportdatagramswritable/index.md
API - WebTransportDatagramsWritable: Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers. The `WebTransportDatagramsWritable` interface of the `WebTransport API` is a specialized `WritableStream` that can be used to write outgoing datagrams to a `...
[ -0.5062962174415588, -0.5091830492019653, 0.21291828155517578, 0.5527817606925964, 0.3308018147945404, -1.5366525650024414, 0.0703660249710083, 0.7190848588943481, 0.6220188736915588, 0.4001932144165039, -0.16695468127727509, 0.6590659618377686, 0.7680797576904297, -0.14572352170944214, ...
api/webtransportdatagramswritable/index.md
API - WebTransportDatagramsWritable - Instance properties: Also inherits properties from its parent interface, `WritableStream`. - `WebTransportDatagramsWritable.sendGroup` (experimental): Gets or sets a `WebTransportSendGroup` that the stream's datagrams are grouped under for the purposes of `sendOrder` prioritizati...
[ -0.33260318636894226, -0.31836676597595215, 0.047235406935214996, 0.10588271915912628, 0.1298542618751526, -1.7142972946166992, 0.6474526524543762, 1.0024398565292358, 0.20860555768013, 0.41749370098114014, -0.2066321074962616, 0.5266032814979553, 0.4744580388069153, 0.011244378983974457, ...
api/webtransportdatagramswritable/index.md
API - WebTransportDatagramsWritable - Instance methods: Inherits methods from its parent interface, `WritableStream`.
[ -0.2225251942873001, 0.07592635601758957, 0.05690552294254303, -0.3486867845058441, -0.44662126898765564, -1.2951453924179077, 0.9608173966407776, 0.7050052881240845, 0.06484754383563995, 0.23786132037639618, -0.39299675822257996, 0.1399536281824112, 0.36647558212280273, 0.1948175132274627...
api/webtransportdatagramswritable/index.md
API - WebTransportDatagramsWritable - Description: In addition to the functionality of a standard `WritableStream`, the `WebTransportDatagramsWritable` interface provides the `sendGroup` property that indicates the group of streams and datagrams that this stream belongs to, and the `sendOrder` property that indicates ...
[ 0.0020738299936056137, -0.1120477244257927, -0.20079359412193298, -0.007359381765127182, 1.0259695053100586, -1.2440695762634277, 1.0659863948822021, 1.6818097829818726, -0.5063780546188354, 0.6413760185241699, 0.47495895624160767, 0.5042957663536072, -0.291696697473526, 0.2204610109329223...
api/webtransportdatagramswritable/index.md
API - WebTransportDatagramsWritable - Examples: See `createWritable()` for an example showing how to create a `WebTransportDatagramsWritable` and use it to write outgoing datagrams.
[ -0.39509448409080505, -0.08922593295574188, -0.13393723964691162, 0.03510372340679169, 0.07918640971183777, -1.6764887571334839, 0.6098365783691406, 0.4875386953353882, 0.2119004726409912, 0.6095333695411682, -0.524329423904419, 0.5428361892700195, 0.6034529805183411, -0.012739703059196472...
api/webtransportdatagramswritable/sendgroup/index.md
API - WebTransportDatagramsWritable - sendGroup: Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers. The `sendGroup` property of the `WebTransportDatagramsWritable` interface gets or sets the `WebTransportSendGroup` that this `WebTransportDatagra...
[ -0.2872367799282074, 0.09907970577478409, -0.3185919523239136, 0.004906211048364639, 0.4838923215866089, -1.1273306608200073, 0.9935448169708252, 1.2737795114517212, 0.09478345513343811, 0.3654305934906006, 0.40087205171585083, 0.7008306980133057, 0.3419283926486969, 0.13482791185379028, ...
api/webtransportdatagramswritable/sendgroup/index.md
API - WebTransportDatagramsWritable - sendGroup - Value: A `WebTransportSendGroup` object, or `null` to specify the default send group.
[ -0.8580619096755981, 0.14188642799854279, 0.06182948499917984, -0.2458408623933792, 0.2812475264072418, -1.73943030834198, 1.172174334526062, 0.6305701732635498, -0.07120990008115768, 0.38344213366508484, 0.027567755430936813, 0.4974520206451416, 0.13290812075138092, 0.4183858335018158, ...
api/webtransportdatagramswritable/sendgroup/index.md
API - WebTransportDatagramsWritable - sendGroup - Examples - Basic usage: The example below creates a send group using the `WebTransport.createSendGroup()` method, and then uses it with a `sendOrder` value, to prioritize the datagrams written to the stream relative to other streams and datagrams that are part of the s...
[ -0.28626006841659546, -0.6375405788421631, -0.23506586253643036, 0.23525473475456238, 0.2524261474609375, -2.1388256549835205, 0.9721808433532715, 0.6085239052772522, -0.5045390725135803, 0.4114806056022644, -0.328786164522171, 0.26039430499076843, 0.43469923734664917, 0.4648476243019104, ...
api/webtransportdatagramswritable/sendorder/index.md
API - WebTransportDatagramsWritable - sendOrder: Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers. The `sendOrder` property of the `WebTransportDatagramsWritable` interface gets or sets an integer indicating the priority of this stream's datagr...
[ -0.08321556448936462, -0.010558647103607655, -0.6291528940200806, 0.3207191526889801, 0.5802850127220154, -1.158005714416504, 0.6052639484405518, 1.135119080543518, 0.09318053722381592, 0.17792704701423645, 0.19476266205310822, 0.6192934513092041, 0.3463265299797058, 0.15579919517040253, ...
api/webtransportdatagramswritable/sendorder/index.md
API - WebTransportDatagramsWritable - sendOrder - Value: An integer indicating the relative priority of this stream's datagrams when sending bytes. The default value is `0`.
[ -0.5843330025672913, -0.4317208230495453, -0.1541742980480194, -0.09905543923377991, 0.15984484553337097, -1.6283637285232544, 0.8250376582145691, 1.1562635898590088, 0.08751571178436279, -0.049521304666996, -0.1833372563123703, 0.4114384353160858, 0.5575713515281677, 0.3865947425365448, ...
api/webtransportdatagramswritable/sendorder/index.md
API - WebTransportDatagramsWritable - sendOrder - Examples - Basic usage: The example below shows how you can set the initial `sendOrder` when calling `createWritable()` to create the writable stream, read the value back from the stream, and then change it: Example: const writable = transport.datagrams.createWritabl...
[ 0.24886779487133026, -0.6585245132446289, -0.24214628338813782, 0.5009211301803589, 0.7545978426933289, -1.4452036619186401, 0.3610590398311615, 0.8060919642448425, -0.12656894326210022, 0.3487076163291931, -0.09843374043703079, 0.04474671930074692, 0.38810983300209045, 0.40201032161712646...
api/permissions_api/index.md
API - Permissions API: Note: This feature is available in Web Workers. The Permissions API provides a consistent programmatic way to query the status of API permissions attributed to the current context, such as a web page or worker. For example, it can be used to determine if permission to access a particular featur...
[ 0.6040551066398621, -0.17444714903831482, -0.7078154683113098, 0.21945151686668396, 0.2415626347064972, -1.1847097873687744, 0.20126953721046448, 0.9729355573654175, 0.31978997588157654, 0.4587947428226471, 0.07792921364307404, 0.5013796091079712, 1.471388339996338, 0.35188525915145874, ...
api/permissions_api/index.md
API - Permissions API - Concepts and usage: Historically different APIs handle their own permissions inconsistently — for example the Notifications API provided its own methods for requesting permissions and checking permission status, whereas the Geolocation API did not. The Permissions API provides the tools to allo...
[ 0.30072757601737976, -0.2845922112464905, -0.590893030166626, 0.04054378718137741, 0.40657952427864075, -0.9168207049369812, 0.22438284754753113, 0.7655697464942932, -0.10882912576198578, 0.10114417225122452, -0.3213152587413788, 0.6739914417266846, 0.7308459877967834, -0.14413195848464966...
api/permissions_api/index.md
API - Permissions API - Concepts and usage - Requesting permission: If the permission status is `prompt`, the user must acknowledge a prompt to grant access to the feature. The mechanism that triggers this prompt will depend on the specific API — it is not defined as part of the Permissions API. Generally the trigger...
[ 0.5773251056671143, -0.8084242939949036, -0.6705801486968994, -0.029466088861227036, -0.22410285472869873, -1.8082048892974854, 0.031007394194602966, 0.2980915606021881, 0.975383996963501, 0.0923762395977974, -0.353666752576828, -0.30921852588653564, 0.5631460547447205, 0.42957648634910583...
api/permissions_api/index.md
API - Permissions API - Concepts and usage - Revoking permission: Permission revocation is not managed by the API. More specifically, a `Permissions.revoke()` method was proposed, but has since been removed from those browsers where it was implemented. Users can manually remove permission for particular sites using b...
[ 0.5787920355796814, -0.712557315826416, -0.21107061207294464, 0.1351335495710373, -0.06323152035474777, -0.9265713095664978, 0.4375573992729187, 0.36510172486305237, 1.1223266124725342, 0.21027709543704987, -0.5249255299568176, 0.37596967816352844, 0.0557837039232254, -0.08029836416244507,...
api/permissions_api/index.md
API - Permissions API - Concepts and usage - Permission-aware APIs: Not all APIs' permission statuses can be queried using the Permissions API. A non-exhaustive list of permission-aware APIs includes: - Background Synchronization API: `background-sync` (should always be granted) - Clipboard API: `clipboard-read`, `cl...
[ 0.5395058989524841, 0.3652860224246979, -0.4799640476703644, 0.1210668683052063, 0.3853762149810791, -1.056251049041748, 0.8256728649139404, 1.1648764610290527, 0.19955196976661682, 0.38499194383621216, -0.2872616946697235, 0.3810376822948456, 0.18820762634277344, 0.5433562994003296, -0....
api/permissions_api/index.md
API - Permissions API - Interfaces: - `Permissions`: Provides the core Permission API functionality, such as methods for querying and revoking permissions. - `PermissionStatus`: Provides access to the current status of a permission, and an event handler to respond to changes in permission status.
[ 0.24892131984233856, -0.26803287863731384, -0.8769283890724182, -0.28204619884490967, -0.047792814671993256, -1.282080888748169, 0.988916277885437, 0.8566660284996033, 0.20665711164474487, 0.35578015446662903, -0.4008414149284363, 0.8659498691558838, 0.9994351863861084, 0.13188117742538452...
api/permissions_api/index.md
API - Permissions API - Interfaces - Extensions to other interfaces: - `Navigator.permissions` and `WorkerNavigator.permissions` (read only): Provides access to the `Permissions` object from the main context and worker context respectively.
[ -0.0766342431306839, -0.19252552092075348, -0.10600906610488892, 0.4297274947166443, -0.12725825607776642, -1.1824235916137695, 0.2863026261329651, -0.0349445715546608, 1.028465986251831, -0.18900376558303833, -0.7409980297088623, -0.6098220348358154, 0.5680474042892456, -0.207981169223785...
api/permissions_api/index.md
API - Permissions API - Examples: We have created an example called Location Finder. You can run the example live, view the source code on GitHub, or read more about how it works in our article Using the Permissions API. The `Permissions.query()` example also so shows code that tests most permissions on the current b...
[ 0.5611470341682434, -0.5942074060440063, -0.7680814862251282, -0.30065691471099854, -0.004500225186347961, -0.5244064927101135, 0.18548771739006042, 0.9202167391777039, 0.08178965747356415, 0.1699293851852417, -0.14051470160484314, 0.53952556848526, 0.8366490006446838, 0.08095155656337738,...
api/requestinit/index.md
API - RequestInit: The `RequestInit` dictionary of the Fetch API represents the set of options that can be used to configure a fetch request. You can pass a `RequestInit` object into the `Request()` constructor, or directly into the `fetch()` function call. You can also construct a `Request` with a `RequestInit`, an...
[ 0.3215295076370239, -0.37274405360221863, -0.18783847987651825, 1.20654296875, 0.013318262994289398, -1.0376008749008179, -0.42928358912467957, 0.44455602765083313, 0.8008279800415039, -0.06175484508275986, -0.6868354082107544, -0.1416717767715454, 0.1942472606897354, -0.08397076278924942,...
api/requestinit/index.md
API - RequestInit - Instance properties: - `attributionReporting` (optional) (deprecated): Indicates that you want the request's response to be able to register a JavaScript-based attribution source or attribution trigger. `attributionReporting` is an object containing the following properties: - `eventSourceEligible...
[ 0.707649290561676, 0.4484580159187317, -0.5222521424293518, 0.23097491264343262, 0.7492585778236389, -0.25800663232803345, 1.196009635925293, 1.4027214050292969, -0.1626465916633606, -0.05571424961090088, -0.12691739201545715, 0.5405136942863464, -0.27274489402770996, 0.29562118649482727, ...
api/requestinit/index.md
API - RequestInit - Examples - Passing options into `fetch()`: In this example we pass the `method`, `body`, and `headers` options directly into the `fetch()` method call: Example: async function post() { const response = await fetch("https://example.org/post", { method: "POST", body: JSON.stringify({ user...
[ -0.06410884857177734, -0.3551771342754364, -0.09387122839689255, 0.634086549282074, -0.19682040810585022, -1.1476689577102661, 0.08657251298427582, 0.31783241033554077, 0.424638032913208, -0.5295988917350769, -0.4212929606437683, -0.1306786835193634, 0.1371767520904541, 0.38099461793899536...
api/requestinit/index.md
API - RequestInit - Examples - Passing options into the `Request()` constructor: In this example we create a `Request`, passing the same set of options into its constructor, and then pass the request into `fetch()`: Example: async function post() { const request = new Request("https://example.org/post", { meth...
[ 0.12266944348812103, -0.410021036863327, -0.1546715497970581, 0.8362573981285095, 0.04530978202819824, -0.8645083904266357, -0.10282932221889496, 0.6923485994338989, 0.6936764717102051, -0.22396884858608246, -0.5431035161018372, 0.021530628204345703, 0.36482203006744385, -0.318774819374084...
api/requestinit/index.md
API - RequestInit - Examples - Passing options into both `Request()` and `fetch()`: In this example we create a `Request`, passing the `method`, `headers`, and `body` options into its constructor. We then pass the request into `fetch()` along with `body` and `referrer` options: Example: async function post() { con...
[ 0.34373265504837036, -0.12590394914150238, 0.2378353476524353, 0.8966635465621948, -0.07159160822629929, -0.7987117767333984, -0.02500130794942379, 0.37141260504722595, 0.658038318157196, -0.4334152638912201, -0.5628685355186462, -0.08311032503843307, 0.13829201459884644, 0.460252046585083...
api/node/isconnected/index.md
API - Node - isConnected: The read-only `isConnected` property of the `Node` interface returns a boolean indicating whether the node is connected (directly or indirectly) to a `Document` object.
[ -0.10317139327526093, 0.2336638867855072, -0.14346002042293549, 0.3485884666442871, 0.05947180092334747, -1.0162513256072998, 0.4176444709300995, -0.18412426114082336, 0.3933919668197632, -0.39058220386505127, -0.889706015586853, -0.5293118953704834, 0.5100747346878052, 0.5545429587364197,...
api/node/isconnected/index.md
API - Node - isConnected - Value: A boolean value that is `true` if the node is connected to its relevant context object, and `false` if not. Note: An `Attr` node always returns `false` for `isConnected`, even when its `ownerElement` is connected. This is because, even though an attribute is associated with an elemen...
[ 0.3032757341861725, -0.32957056164741516, -0.1186525970697403, 0.5426161289215088, 0.32871395349502563, -1.6337378025054932, 1.2677662372589111, 1.0257540941238403, -0.2622278034687042, 0.5778915882110596, -0.6051779389381409, 0.19179537892341614, -0.02373863384127617, 0.6175342798233032, ...
api/node/isconnected/index.md
API - Node - isConnected - Examples - Standard DOM: A standard DOM example: Example: let test = document.createElement("p"); console.log(test.isConnected); // Returns false document.body.appendChild(test); console.log(test.isConnected); // Returns true
[ 0.6403267979621887, -0.4518621265888214, -0.03258423134684563, -0.16543033719062805, -0.40793895721435547, -1.329883337020874, 0.19103848934173584, 0.5652434229850769, -0.18940748274326324, 0.10988535732030869, -0.9039124846458435, 0.8303128480911255, 0.29240846633911133, -0.11857988685369...
api/node/isconnected/index.md
API - Node - isConnected - Examples - Shadow DOM: A shadow DOM example: Example: // Create a shadow root const shadow = this.attachShadow({ mode: "open" }); // Create some CSS to apply to the shadow DOM const style = document.createElement("style"); console.log(style.isConnected); // returns false style.textConten...
[ 0.1881641000509262, -0.5963365435600281, 0.020816173404455185, -0.2691665291786194, 0.15892863273620605, -0.7479766011238098, 0.47946977615356445, 0.9190483093261719, -0.15431728959083557, 0.5520797371864319, 0.08434595912694931, 0.6490478515625, -0.39940133690834045, -0.10409864783287048,...
api/webtransport/index.md
API - WebTransport: Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers. The `WebTransport` interface of the `WebTransport API` provides functionality to enable a user agent to connect to an HTTP/3 server, initiate reliable and unreliable transport...
[ -0.28178077936172485, -0.4480636715888977, 0.22036683559417725, 0.8126645088195801, 0.22057002782821655, -1.1911873817443848, -0.22447049617767334, 0.37221941351890564, 0.24778848886489868, 0.5494665503501892, -0.3287433683872223, 0.6313970685005188, 0.9207918047904968, -0.2987152934074402...
api/webtransport/index.md
API - WebTransport - Constructor: - `WebTransport()`: Creates a new `WebTransport` object instance.
[ -1.2180906534194946, -0.19038790464401245, 0.29272639751434326, 0.8066657185554504, 0.0036396682262420654, -1.0418225526809692, 0.3128213584423065, 0.5406244993209839, -0.6278661489486694, 0.3450123965740204, -0.24388472735881805, 0.166584774851799, 0.5344105958938599, 0.6622357368469238, ...
api/webtransport/index.md
API - WebTransport - Instance properties: - `closed` (read only): Returns a promise that resolves when the transport is closed. - `datagrams` (read only): Returns a `WebTransportDatagramDuplexStream` instance that can be used to send and receive datagrams. - `congestionControl` (read only): Returns a string that indic...
[ -0.16741786897182465, -1.0063538551330566, 0.35226884484291077, 0.420409619808197, 0.07694308459758759, -1.2234232425689697, 0.6299342513084412, 0.10135458409786224, -0.06678218394517899, 0.5867716073989868, -0.5938515663146973, 0.43218281865119934, 0.505695641040802, -0.10485714673995972,...
api/webtransport/index.md
API - WebTransport - Instance methods: - `close()`: Closes an ongoing WebTransport session. - `createBidirectionalStream()`: Asynchronously opens a bidirectional stream (`WebTransportBidirectionalStream`) that can be used to read from and write to the server. - `createSendGroup()` (experimental): Returns a `WebTranspo...
[ -0.21914778649806976, -0.5557278394699097, 0.0544290617108345, 0.7818141579627991, 0.22784700989723206, -1.40479576587677, 0.2377261221408844, 0.28798550367355347, -0.3353363573551178, 0.8961605429649353, -0.5878048539161682, 0.573627233505249, 0.7725034356117249, -0.24537968635559082, 0...
api/webtransport/index.md
API - WebTransport - Examples: The example code below shows how you'd connect to an HTTP/3 server by passing its URL to the `WebTransport()` constructor. Note that the scheme needs to be HTTPS, and the port number needs to be explicitly specified. Once the `WebTransport.ready` promise fulfills, you can start using the...
[ -0.31964701414108276, -0.6222681403160095, 0.07198970019817352, 0.4102334976196289, -0.16523581743240356, -0.6653249859809875, 0.009468745440244675, 0.05820361524820328, -0.13216066360473633, 0.43199336528778076, -1.1001710891723633, 1.0409901142120361, 0.5508168339729309, -0.1039789691567...
api/webtransport/createsendgroup/index.md
API - WebTransport - createSendGroup: Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers. The `createSendGroup()` method of the `WebTransport` interface creates and returns a `WebTransportSendGroup`.
[ -0.011211791075766087, 0.40080732107162476, 0.19256599247455597, 0.6564144492149353, 0.07356871664524078, -1.3359609842300415, 0.7971183657646179, 0.9873853921890259, -0.19019994139671326, 0.29128316044807434, 0.29585203528404236, 0.910466730594635, 0.4189596474170685, 0.3877820670604706, ...
api/webtransport/createsendgroup/index.md
API - WebTransport - createSendGroup - Syntax: Example: createSendGroup()
[ -0.9291486740112305, -0.20037323236465454, 0.30790579319000244, 0.1794818937778473, 0.13511234521865845, -1.0326440334320068, 0.46410271525382996, 0.34826740622520447, -0.257413387298584, -0.021342691034078598, -0.10712677985429764, 0.5911669135093689, -0.0670585110783577, 0.00822593271732...
api/webtransport/createsendgroup/index.md
API - WebTransport - createSendGroup - Syntax - Parameters: None.
[ -0.44986534118652344, 0.12970474362373352, 0.11070747673511505, 0.2514565587043762, 0.12545324862003326, -0.8339545726776123, 0.8677539229393005, 0.8107312321662903, -0.4958122968673706, 0.06476156413555145, -0.5748627185821533, 0.5196160674095154, 0.06740855425596237, 0.13248145580291748,...
api/webtransport/createsendgroup/index.md
API - WebTransport - createSendGroup - Syntax - Return value: A `WebTransportSendGroup` object.
[ -0.29628318548202515, -0.17639808356761932, 0.3359772562980652, 0.7237132787704468, -0.06693648546934128, -1.2885133028030396, 0.5687629580497742, 0.18429553508758545, -0.7120229005813599, 0.6661069393157959, 0.04526498168706894, 0.6438944935798645, 0.22431698441505432, 0.09804332256317139...
api/webtransport/createsendgroup/index.md
API - WebTransport - createSendGroup - Syntax - Exceptions: - `InvalidStateError` `DOMException`: Thrown if the transport's state is `"closed"` or `"failed"`.
[ -0.38619059324264526, -0.7767948508262634, 0.8389908075332642, -0.24514171481132507, -0.09052574634552002, -1.2056649923324585, 0.18200328946113586, 0.26672905683517456, -0.026281997561454773, 0.024593636393547058, -0.9823148250579834, 0.3918033242225647, 0.55043625831604, 0.09267945587635...
api/webtransport/createsendgroup/index.md
API - WebTransport - createSendGroup - Description: The `createSendGroup()` method creates a new `WebTransportSendGroup` associated with the `WebTransport` object on which it is called. The `WebTransportSendGroup` object is used to group streams and/or datagrams created on the same `WebTransport`, to control their re...
[ -0.5945308804512024, -0.2033570110797882, -0.15827330946922302, 0.6417627930641174, 0.4398323893547058, -1.3806352615356445, 1.4356709718704224, 0.8706291913986206, -0.32454437017440796, 0.28482866287231445, -0.21580402553081512, 0.20373299717903137, -0.008901886641979218, 0.08540093898773...
api/webtransport/createsendgroup/index.md
API - WebTransport - createSendGroup - Examples - Basic usage: This example creates a send group, then associates a unidirectional stream and the connection's outgoing datagram stream with it, giving each a `sendOrder` that defines their relative priority. Example: const sendGroup = transport.createSendGroup(); con...
[ 0.1704695075750351, -0.581292450428009, -0.27399253845214844, 0.10798804461956024, 0.12094634771347046, -1.8514082431793213, 0.6105551719665527, 0.18791384994983673, -0.13405629992485046, 0.41679149866104126, -0.34779468178749084, -0.042226642370224, 0.12044574320316315, 0.1657145768404007...
api/webtransport/datagrams/index.md
API - WebTransport - datagrams: Secure context: This feature is available only in secure contexts (HTTPS). Note: This feature is available in Web Workers. The `datagrams` read-only property of the `WebTransport` interface returns a `WebTransportDatagramDuplexStream` instance that can be used to send and receive datag...
[ -0.25785061717033386, -0.6117984652519226, -0.5195033550262451, 0.24474111199378967, 0.003766492009162903, -0.9217206835746765, 0.7685409188270569, 1.2739362716674805, -0.7533965110778809, 0.04343673586845398, -0.009556930512189865, 1.2429523468017578, 0.3632678985595703, 0.000546552240848...
api/webtransport/datagrams/index.md
API - WebTransport - datagrams - Value: A `WebTransportDatagramDuplexStream` object.
[ -0.6864168047904968, -0.7313458919525146, -0.1467670202255249, -0.016056794673204422, -0.7100263833999634, -1.0609948635101318, 1.0671205520629883, -0.03749970346689224, -0.7084778547286987, 0.3249152600765228, -0.5071571469306946, 0.42953765392303467, 0.34703272581100464, -0.0216247178614...
api/webtransport/datagrams/index.md
API - WebTransport - datagrams - Examples - Writing an outgoing datagram: This code uses the `createWritable()` method, if it is supported, to get a `WebTransportDatagramsWritable` instance that can be used for writing data to the transport. Otherwise, it falls back to the `writable` property (deprecated) (non-standar...
[ -0.7303445935249329, -0.7645052671432495, 0.1946125030517578, 0.5652511119842529, 0.2283472716808319, -1.0644044876098633, 0.2832081615924835, 1.3011027574539185, -0.03263789415359497, 0.6298692226409912, -0.9397535920143127, 0.4415636658668518, 0.03506368398666382, -0.308273583650589, 0...
api/webtransport/datagrams/index.md
API - WebTransport - datagrams - Examples - Reading an incoming datagram: The `WebTransportDatagramDuplexStream.readable` property returns a `ReadableStream` object that you can use to receive data from the server: Example: async function readData() { const reader = transport.datagrams.readable.getReader(); whil...
[ 0.16803792119026184, -0.5079787969589233, 0.27570921182632446, 0.10508082807064056, -0.20248186588287354, -1.2271212339401245, 0.42848771810531616, 0.2907635569572449, -0.10494409501552582, 0.3481919765472412, -0.27336204051971436, 0.34583616256713867, 0.24146538972854614, 0.03560190647840...
api/document/activeviewtransition/index.md
API - Document - activeViewTransition: The `activeViewTransition` read-only property of the `Document` interface returns a `ViewTransition` instance representing the view transition currently active on the document. The current `ViewTransition` can be accessed in other ways: - The return value of `Document.startView...
[ 0.14995066821575165, -0.5441563129425049, 0.14605654776096344, 0.7619016170501709, -0.0032401233911514282, -0.800360918045044, 1.003265380859375, 1.045980453491211, 0.3511510193347931, 0.33237728476524353, -0.14513900876045227, 0.10960793495178223, 0.4503629207611084, 0.9312269687652588, ...
api/document/activeviewtransition/index.md
API - Document - activeViewTransition - Value: A `ViewTransition` or `null` if there is no active view transition.
[ -0.5319896340370178, -0.5625702142715454, 0.30600467324256897, -0.025307223200798035, -0.1592763066291809, -1.1496095657348633, 0.9616523385047913, 0.4799746870994568, 0.12830641865730286, 0.02200963720679283, 0.08271169662475586, -0.5723105072975159, 0.6028885841369629, 0.8196120262145996...
api/document/activeviewtransition/index.md
API - Document - activeViewTransition - Examples: Example: // Start a view transition document.startViewTransition(() => { // Update the UI to reflect the new state updateUI(); }); // Check if a view transition is currently active if (document.activeViewTransition) { console.log("A view transition is currently...
[ 0.24301472306251526, -0.8433253169059753, 0.25664222240448, 0.11363472044467926, -0.45286235213279724, -0.5388643741607666, 0.21521733701229095, 0.7071579098701477, 0.055329203605651855, -0.17839506268501282, -0.3653267025947571, -0.6788439154624939, 0.2236718237400055, 0.330733984708786, ...