Search completed in 1.04 seconds.
Event.currentTarget - Web APIs
the
currenttarget read-only property of the event interface identifies the
current target for the event, as the event traverses the dom.
... syntax var
currenteventtarget = event.
currenttarget; value eventtarget examples event.
currenttarget is interesting to use when attaching the same event handler to several elements.
... function hide(e){ e.
currenttarget.style.visibility = 'hidden'; console.log(e.
currenttarget); // when this function is used as an event handler: this === e.
currenttarget } var ps = document.getelementsbytagname('p'); for(var i = 0; i < ps.length; i++){ // console: print the clicked <p> element ps[i].addeventlistener('click', hide, false); } // console: print <body> document.body.addeventlistener('click', hide, false); // click around and make paragraphs disappear note: the value of event.
currenttarget is only available while the event is being handled.
...And 6 more matches
current - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the
current function can be used to get the context node in an xslt instruction.
... syntax
current() returns a node-set containing only the
current node.
... for an outermost expression (an expression not occurring within another expression), the
current node is always the same as the context node (which will be returned by the .
...And 6 more matches
HTMLMediaElement.currentTime - Web APIs
the htmlmediaelement interface's
currenttime property specifies the
current playback time in seconds.
... changing the value of
currenttime this value seeks the media to the new time.
... syntax var
currenttime = htmlmediaelement.
currenttime; htmlmediaelement.
currenttime = 35; value a double-precision floating-point value indicating the
current playback time in seconds.
...And 5 more matches
Animation.currentTime - Web APIs
the animation.
currenttime property of the web animations api returns and sets the
current time value of the animation in milliseconds, whether running or paused.
... if the animation lacks a timeline, is inactive, or hasn't been played yet,
currenttime's return value is null.
... syntax var
currenttime = animation.
currenttime; animation.
currenttime = newtime; value a number representing the
current time in milliseconds, or null to deactivate the animation.
...And 4 more matches
RTCPeerConnection.currentLocalDescription - Web APIs
the read-only property rtcpeerconnection.
currentlocaldescription returns an rtcsessiondescription object describing the local end of the connection as it was most recently successfully negotiated since the last time the rtcpeerconnection finished negotiating and connecting to a remote peer.
... to change the
currentlocaldescription, call rtcpeerconnection.setlocaldescription(), which triggers a series of events which leads to this value being set.
... for details on what exactly happens and why the change isn't necessarily instantaneous, see pending and
current descriptions in webrtc connectivity.
...And 4 more matches
RTCPeerConnection.currentRemoteDescription - Web APIs
the read-only property rtcpeerconnection.
currentremotedescription returns an rtcsessiondescription object describing the remote end of the connection as it was most recently successfully negotiated since the last time the rtcpeerconnection finished negotiating and connecting to a remote peer.
... to change the
currentremotedescription, call rtcpeerconnection.setremotedescription(), which triggers a series of events which leads to this value being set.
... for details on what exactly happens and why the change isn't necessarily instantaneous, see pending and
current descriptions in webrtc connectivity.
...And 4 more matches
AnimationPlaybackEvent.currentTime - Web APIs
the
currenttime read-only property of the animationplaybackevent interface represents the
current time of the animation that generated the event at the moment the event is queued.
... value a number representing the
current time in milliseconds, or null.
... reduced time precision to offer protection against timing attacks and fingerprinting, the precision of playbackevent.
currenttime might get rounded depending on browser settings.
...And 3 more matches
AnimationTimeline.currentTime - Web APIs
the
currenttime read-only property of the web animations api's animationtimeline interface returns the timeline's
current time in milliseconds, or null if the timeline is inactive.
... syntax var
currenttime = animationtimeline.
currenttime; value a number representing the timeline's
current time in milliseconds, or null if the timeline is inactive.
... reduced time precision to offer protection against timing attacks and fingerprinting, the precision of animationtimeline.
currenttime might get rounded depending on browser settings.
...And 3 more matches
BaseAudioContext.currentTime - Web APIs
the
currenttime read-only property of the baseaudiocontext interface returns a double representing an ever-increasing hardware timestamp in seconds that can be used for scheduling audio playback, visualizing timelines, etc.
... syntax var curtime = baseaudiocontext.
currenttime; example var audiocontext = window.audiocontext || window.webkitaudiocontext; var audioctx = new audiocontext(); // older webkit/blink browsers require a prefix ...
... console.log(audioctx.
currenttime); reduced time precision to offer protection against timing attacks and fingerprinting, the precision of audioctx.
currenttime might get rounded depending on browser settings.
...And 3 more matches
HTMLImageElement.currentSrc - Web APIs
the read-only htmlimageelement property
currentsrc indicates the url of the image which is
currently presented in the <img> element it represents.
... syntax let
currentsource = htmlimageelement.
currentsrc; value a usvstring indicating the full url of the image
currently visible in the <img> element represented by the htmlimageelement.
...
currentsrc lets you determine which image from the set of provided images was selected by the browser.
...And 2 more matches
currentSet - Archive of obsolete content
« xul reference
currentset not in seamonkey 1.x type: comma-separated list of strings holds a comma-separated list of the ids of the items
currently on the toolbar.
...an empty toolbar has a
currentset value of "__empty".
... you may change the
current set of items by setting this property.
... be careful, as setting this property doesn't automatically update the
currentset attribute.
JS::CurrentGlobalOrNull
syntax jsobject * js::
currentglobalornull(jscontext *cx); name type description cx jscontext * the context for which to return the global object.
... description js::
currentglobalornull() returns the global object for whatever function is
currently running on the context.
... in other words, it returns the global object on the
current scope chain.
... see also mxr id search for js::
currentglobalornull js_getglobalforobject bug 899245 ...
CanvasRenderingContext2D.currentTransform - Web APIs
the canvasrenderingcontext2d.
currenttransform property of the canvas 2d api returns or sets a dommatrix (
current specification) or svgmatrix (old specification) object for the
current transformation matrix.
... syntax ctx.
currenttransform [= value]; value a dommatrix or svgmatrix object to use as the
current transformation matrix.
... examples manually changing the matrix this example uses the
currenttransform property to set a transformation matrix.
... html <canvas id="canvas"></canvas> javascript const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); let matrix = ctx.
currenttransform; matrix.a = 1; matrix.b = 1; matrix.c = 0; matrix.d = 1; matrix.e = 0; matrix.f = 0; ctx.
currenttransform = matrix; ctx.fillrect(0, 0, 100, 100); result ...
HTMLMediaElement.currentSrc - Web APIs
the htmlmediaelement.
currentsrc property contains the absolute url of the chosen media resource.
... syntax var mediaurl = audioobject.
currentsrc; value a domstring object containing the absolute url of the chosen media source; this may be an empty string if networkstate is empty; otherwise, it will be one of the resources listed by the htmlsourceelement contained within the media element, or the value or src if no <source> element is provided.
... example var obj = document.createelement('video'); console.log(obj.
currentsrc); // "" specifications specification status comment html living standardthe definition of 'htmlmediaelement.
currentsrc' in that specification.
... living standard no change from html5 html5the definition of 'htmlmediaelement.
currentsrc' in that specification.
NavigatorConcurrentHardware - Web APIs
the navigatorcon
currenthardware mixin adds to the navigator interface features which allow web content to determine how many logical processors the user has available, in order to let content and web apps optimize their operations to best take advantage of the user's cpu.
...the browser may, however, choose to reduce the number in order to represent more accurately the number of workers that can run at once properties navigatorcon
currenthardware.hardwareconcurrency read only returns the number of logical processors which may be available to the user agent.
... methods the navigatorcon
currenthardware mixin has no methods.
... specifications specification status comment html living standardthe definition of 'navigatorcon
currenthardware' in that specification.
currentset - Archive of obsolete content
« xul reference home
currentset not in seamonkey 1.x type: comma-separated string the
current set of displayed items on the toolbar.
... this isn't necessary the *
current* set, i.e.
... it might not be equal the value of the
currentset property which is computed from the actual dom ...
currentIndex - Archive of obsolete content
« xul reference
currentindex type: integer set to the row index of the tree caret in the tree.
...<script language ="javascript"> function treerowclicked(){ var tree = document.getelementbyid("my-tree"); var selection = tree.view.selection; var celltext = tree.view.getcelltext(tree.
currentindex, tree.columns.getcolumnat(0)); alert(celltext); } </script> <tree id="my-tree" seltype="single" onselect="treerowclicked()"> <treecols> <treecol label="title" flex="1"/><treecol label="url" flex="1"/> </treecols> <treechildren> <treeitem> <treerow> <treecell label="joe@somewhere.com"/> <treecell label="top secret plans"/> </treerow> </treeit...
...em> <treeitem> <treerow> <treecell label="mel@whereever.com"/> <treecell label="let's do lunch"/> </treerow> </treeitem> </treechildren> </tree> see also listbox.
currentindex ...
listbox.currentIndex - Archive of obsolete content
« xul reference
currentindex type: integer set to the index of the
currently focused item in the list.
...(or, on some platforms, typeof(listbox
currentindex) will be undefined) in a single selection list, the
current index will always be the same as the selected index.
... in a multiple selection list, the
currently focused row may be modified by the user without changing the selection by pressing the control key and pressing the cursor keys to navigate.
PR_GetCurrentThread
returns the
current thread object for the
currently running code.
... syntax #include <prthread.h> prthread* pr_get
currentthread(void); returns always returns a valid reference to the calling thread--a self-identity.
... description the
currently running thread may discover its own identity by calling pr_get
currentthread.
nsICurrentCharsetListener
intl/uconv/idl/nsi
currentcharsetlistener.idlscriptable please add a summary to this article.
... inherits from: nsisupports last changed in gecko 1.7 implemented by: @mozilla.org/intl/
currentcharsetlistener;1.
... to create an instance, use: var
currentcharsetlistener = components.classes["@mozilla.org/intl/
currentcharsetlistener;1"] .createinstance(components.interfaces.nsi
currentcharsetlistener); method overview void set
currentcharset(in wstring charset); void set
currentcomposercharset(in wstring charset); void set
currentmailcharset(in wstring charset); methods set
currentcharset() void set
currentcharset( in wstring charset ); parameters charset set
currentcomposercharset() void set
currentcomposercharset( in wstring charset ); parameters charset set
currentmailcharset() void set
currentmailcharset( in wstring charset ); parameters charset ...
Element.currentStyle - Web APIs
element.
currentstyle is a proprietary property which is similar to the standardized window.getcomputedstyle() method.
... * http://creativecommons.org/publicdomain/zero/1.0/ */ if (!("
currentstyle" in element.prototype)) { object.defineproperty(element.prototype, "
currentstyle", { get: function() { return window.getcomputedstyle(this); } }); } specification not part of any specification.
... desktopmobilechromeedgefirefoxinternet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internet
currentstyle non-standardchrome no support noedge no support nofirefox no support noie full support 6opera no support nosafari no support ...
Geolocation.getCurrentPosition() - Web APIs
the geolocation.get
currentposition() method is used to get the
current position of the device.
... syntax navigator.geolocation.get
currentposition(success[, error[, [options]]) parameters success a callback function that takes a geolocationposition object as its sole input parameter.
... enablehighaccuracy: false | true examples var options = { enablehighaccuracy: true, timeout: 5000, maximumage: 0 }; function success(pos) { var crd = pos.coords; console.log('your
current position is:'); console.log(`latitude : ${crd.latitude}`); console.log(`longitude: ${crd.longitude}`); console.log(`more or less ${crd.accuracy} meters.`); } function error(err) { console.warn(`error(${err.code}): ${err.message}`); } navigator.geolocation.get
currentposition(success, error, options); specifications specification status comment geolocation a...
RTCIceCandidatePairStats.currentRoundTripTime - Web APIs
the rtcicecandidatepairstats property
currentroundtriptime is a floating-point value indicating the number of seconds it takes for data to be sent by this peer to the remote peer and back over the connection described by this pair of ice candidates.
... syntax rtt = rtcicecandidatepairstats.
currentroundtriptime; value a floating-point value indicating the round-trip time, in seconds for the connection described by the pair of candidates for which this rtcicecandidatepairstats object offers statistics.
... specifications specification status comment identifiers for webrtc's statistics apithe definition of 'rtcicecandidatepairstats.
currentroundtriptime' in that specification.
RTCRtpTransceiver.currentDirection - Web APIs
the read-only rtcrtptransceiver property
currentdirection is a string which indicates the
current directionality of the transceiver.
... syntax var direction = rtcrtptransceiver.
currentdirection value a domstring whose value is one of the strings which are a member of the rtcrtptransceiverdirection enumerated type.
... specifications specification status comment webrtc 1.0: real-time communication between browsersthe definition of 'rtcrtptransceiver.
currentdirection' in that specification.
TreeWalker.currentNode - Web APIs
the treewalker.
currentnode property represents the node on which the treewalker is
currently pointing at.
... syntax node = treewalker.
currentnode; treewalker.
currentnode = node; example var treewalker = document.createtreewalker( document.body, nodefilter.show_element, { acceptnode: function(node) { return nodefilter.filter_accept; } }, false ); root = treewalker.
currentnode; // the root element as it is the first element!
... living standard no change from document object model (dom) level 2 traversal and range specification document object model (dom) level 2 traversal and range specificationthe definition of 'treewalker.
currentnode' in that specification.
current - Archive of obsolete content
« xul reference home
current type: boolean this attribute will be set to true if the listitem is the
current item.
...to change the
currently selected item in a listbox, use the listbox property selecteditem.
currentPage - Archive of obsolete content
« xul reference
currentpage type: wizardpage element this property returns the wizardpage element that is
currently displayed.
... you can modify this value to change the
current page.
Document.currentScript - Web APIs
the document.
currentscript property returns the <script> element whose script is
currently being processed and isn't a javascript module.
... syntax var curscriptelement = document.
currentscript; example this example checks to see if the script is being executed asynchronously: if (document.
currentscript.async) { console.log("executing asynchronously"); } else { console.log("executing synchronously"); } view live examples specifications specification status comment html living standardthe definition of 'document.
currentscript' in that specification.
Index
24 js::autosaveexceptionstate jsapi reference, reference, référence(2), spidermonkey js::autosaveexceptionstate saves and later restores the
current exception state of a given jscontext.
... 37 js::
currentglobalornull jsapi reference, reference, référence(2), spidermonkey js::
currentglobalornull() returns the global object for whatever function is
currently running on the context.
... in other words, it returns the global object on the
current scope chain.
...And 27 more matches
CanvasRenderingContext2D - Web APIs
canvasrenderingcontext2d.strokerect() paints a rectangle which has a starting point at (x, y) and has a w width and an h height onto the canvas, using the
current stroke style.
... canvasrenderingcontext2d.getlinedash() returns the
current line dash pattern array containing an even number of non-negative numbers.
... canvasrenderingcontext2d.setlinedash() sets the
current line dash pattern.
...And 25 more matches
HTML attribute: rel - HTML: Hypertext Markup Language
the rel attribute defines the relationship between a linked resource and the
current document.
... values for the rel attribute, and the elements for which each is relevant rel value description <link> <a> and <area> <form> alternate alternate representations of the
current document.
... link link not allowed author author of the
current document or article.
...And 25 more matches
nsIDocShell
void set
currenturi(in nsiuri auri); void suspendrefreshuris(); void tabtotreeowner(in boolean forward, out boolean tookfocus); attributes attribute type description allowauth boolean certain dochshells (like the message pane) should not throw up auth dialogs because it can act as a password trojan.
... busyflags unsigned long
current busy state for docshell.
...in that case, we explicitly allow scripting on the
current docshell.
...And 24 more matches
Feature-Policy - HTTP
directives accelerometer controls whether the
current document is allowed to gather information about the acceleration of the device through the accelerometer interface.
... ambient-light-sensor controls whether the
current document is allowed to gather information about the amount of light in the environment around the device through the ambientlightsensor interface.
... autoplay controls whether the
current document is allowed to autoplay media requested through the htmlmediaelement interface.
...And 23 more matches
nsIEditorSpellCheck
to create an instance, use: var editorspellcheck = components.classes["@mozilla.org/editor/editorspellchecker;1"] .createinstance(components.interfaces.nsieditorspellcheck); method overview void addwordtodictionary(in wstring word); boolean canspellcheck(); void check
currentdictionary(); boolean check
currentword(in wstring suggestedword); boolean check
currentwordnosuggest(in wstring suggestedword); astring get
currentdictionary(); void getdictionarylist([array, size_is(count)] out wstring dictionarylist, out pruint32 count); wstring getnextmisspelledword(); void getpersonaldictionary(); wstring getperson...
...edword(); void ignorewordalloccurrences(in wstring word); void initspellchecker(in nsieditor editor, in boolean enableselectionchecking); void removewordfromdictionary(in wstring word); void replaceword(in wstring misspelledword, in wstring replaceword, in boolean alloccurrences); void savedefaultdictionary(); obsolete since gecko 9.0 void set
currentdictionary(in astring dictionary); void setfilter(in nsitextservicesfilter filter); void uninitspellchecker(); void update
currentdictionary(); methods addwordtodictionary() adds the specified word to the
current personal dictionary.
... void addwordtodictionary( in wstring word ); parameters word the word to add to the
current personal dictionary.
...And 22 more matches
Index
4 binary compatibility xpcom if mozilla decides to upgrade to a compiler that does not have the same abi as the
current version, any built component may fail.
... 29 components.stack xpcom:language bindings, xpconnect components.stack is a read only property of type nsistackframe (idl definition) that represents a snapshot of the
current javascript callstack.
...there are
currently three folder classes - nslocalmailfolder, nsimapmailfolder, and nsnewsfolder.
...And 21 more matches
nsIFile
delete_on_close 0x80000000 optional parameter used by opennsprfiledesc methods append() this function is used for constructing a descendant of the
current nsifile.
... appendnative this method is used for constructing a descendant of the
current nsifile.
... [native character encoding variant] void appendnative( in acstring node ); parameters node a string that is intended to be a child node of the
current nsifile.
...And 20 more matches
Window - Web APIs
window.closed read only this property indicates whether the
current window is closed or not.
... window.controllers read only returns the xul controller objects for the
current chrome window.
... window.devicepixelratio read only returns the ratio between physical pixels and device independent pixels in the
current display.
...And 20 more matches
cfx - Archive of obsolete content
called with no options it looks for a file called package.json in the
current directory, loads the corresponding add-on, and runs it under the version of firefox it finds in the platform's default install path.
...the path may be specified as a full path or may be relative to the
current directory.
...binary may be specified as a full path or as a path relative to the
current directory.
...And 19 more matches
source-editor.jsm
constant value sourceeditor.defaults.contextmenu "sourceeditorcontextmenu" sourceeditor.defaults.expandtab true sourceeditor.defaults.highlight
currentline true sourceeditor.defaults.initialtext "" sourceeditor.defaults.keys null sourceeditor.defaults.mode sourceeditor.modes.text sourceeditor.defaults.readonly false sourceeditor.defaults.showannotationruler false sourceeditor.defaults.showlinenumbers false sourceeditor.defaults.showoverviewruler false ...
... sourceeditor.events.selection "selection" fired when the
current selection in the editor changes.
... dropselection() deselects the
currently selected text.
...And 18 more matches
Index
newer generations of the database use the sqlite database to allow con
current access by multiple applications.
...this document is
currently being revised and has not yet been reviewed for accuracy.
...on windows nt the default is the
current directory.
...And 18 more matches
ARIA Test Cases - Accessibility
finally, a list of
currently non-mapped aria roles is given.
... a screen magnifier should move the
current view to the alert or open a new panel with the alert information optional, but desired: if there are widgets within the alert, their role and any keyboard mnemonic (accesskey) should be spoken.
...only the bold/italic buttons should be toggle buttons, and they aren't
currently toggleable.
...And 18 more matches
sslfnc.html
upgraded documentation may be found in the
current nss reference ssl functions chapter 4 ssl functions this chapter describes the core ssl functions.
... ssl_optionsetdefault changes the default value of a specified ssl option for all subsequently opened sockets as long as the
current application program is running.
... description this function changes the default values for all subsequently opened sockets as long as the
current application program is running.
...And 17 more matches
Shell global objects
filename is relative to the
current working directory.
... datenow() return the
current time with sub-ms precision.
...if an error occurred, throw the appropriate exception; otherwise, return the module object timeout([seconds], [func]) get/set the limit in seconds for the execution time for the
current context.
...And 17 more matches
imgIContainer
obsolete since gecko 2.0 void clear(); obsolete since gecko 1.9.2 gfximagesurface copy
currentframe(); native code only!
... obsolete since gecko 2.0 imgicontainer extract
currentframe([const] in nsintrect arect); native code only!
... obsolete since gecko 2.0 void get
currentframerect(in nsintrect aframerect); native code only!
...And 17 more matches
Background Tasks API - Web APIs
this code draws any pending updates to the document
currently being displayed, runs any javascript code the page needs to run, accepts events from input devices, and dispatches those events to the elements that should receive them.
...while the browser, your code, and the web in general will continue to run normally if you go over the specified time limit (even if you go way over it), the time restriction is intended to ensure that you leave the system enough time to finish the
current pass through the event loop and get on to the next one without causing other code to stutter or animation effects to lag.
...
currently, timeremaining() has an upper limit of 50 milliseconds, but in reality you will often have less time than that, since the event loop may already be eating into that time on complex sites, with browser extensions needing processor time, and so forth.
...And 17 more matches
TreeWalker - Web APIs
treewalker.
currentnode is the node on which the treewalker is
currently pointing at.
...(whether or not the node is visible on the screen is irrelevant.) treewalker.parentnode() moves the
current node to the first visible ancestor node in the document order, and returns the found node.
... it also moves the
current node to this one.
...And 17 more matches
Migrate apps from Internet Explorer to Mozilla - Archive of obsolete content
hasattribute( aattributename ) returns a boolean stating if the
current node has an attribute defined with the specified name.
... haschildnodes() returns a boolean stating whether the
current node has any child nodes.
... nextsibling returns the node immediately following the
current one.
...And 16 more matches
Element - Web APIs
element.closest() returns the element which is the closest ancestor of the
current element (or the
current element itself) which matches the selectors given in parameter.
... element.getanimations() returns an array of animation objects
currently active on the element.
... element.getattribute() retrieves the value of the named attribute from the
current node and returns it as an object.
...And 16 more matches
MediaTrackSupportedConstraints - Web APIs
autogaincontrol a boolean whose value is true if the autogaincontrol constraint is supported in the
current environment.
... width a boolean value whose value is true if the width constraint is supported in the
current environment.
... height a boolean value whose value is true if the height constraint is supported in the
current environment.
...And 16 more matches
Capabilities, constraints, and settings - Web APIs
this may not represent the actual
current state of the track, due to properties whose requested values had to be adjusted and because platform default values aren't represented.
... for a complete representation of the track's
current configuration, use getsettings().
... checking capabilities you can call mediastreamtrack.getcapabilities() to get a list of all of the supported capabilities and the values or ranges of values which each one accepts on the
current platform and user agent.
...And 16 more matches
Space Manager Detailed Design - Archive of obsolete content
*/ nsiframe* getframe() const { return mframe; } /** * translate the
current origin by the specified (dx, dy).
... this * creates a new local coordinate space relative to the
current * coordinate space.
... */ void translate(nscoord adx, nscoord ady) { mx += adx; my += ady; } /** * returns the
current translation from local coordinate space to * world coordinate space.
...And 15 more matches
tabbrowser - Archive of obsolete content
attributes autocompleteenabled, autocompletepopup, autoscroll, contentcontextmenu, contenttooltip, handlectrlpageupdown, onbookmarkgroup, onnewtab, tabmodalpromptshowing properties browsers, cangoback, cangoforward, contentdocument, contenttitle, contentvieweredit, contentviewerfile, contentwindow,
currenturi, docshell, documentcharsetinfo, homepage, markupdocumentviewer, securityui, selectedbrowser, selectedtab, sessionhistory, tabcontainer, tabs, visibletabs, webbrowserfind, webnavigation, webprogress methods addprogresslistener, addtab, addtabsprogresslistener,appendgroup, getbrowseratindex, getbrowserindexfordocument, getbrowserfordocument, getbrowserfortab, geticon, getnotificationbox, getta...
...bforbrowser, gettabmodalpromptbox, goback, gobackgroup, goforward, goforwardgroup, gohome, gotoindex, loadgroup, loadonetab, loadtabs, loaduri, loaduriwithflags, movetabto, pintab, reload, reloadalltabs, reloadtab, reloadwithflags, removealltabsbut, remove
currenttab, removeprogresslistener, removetab, removetabsprogresslistener,replacegroup, selecttabatindex, seticon, showonlythesetabs, stop, unpintab attributes autocompleteenabled type: boolean set to true to enable autocomplete of fields.
... tabmodalpromptshowing type: integer the number of tab modal prompts
currently attached to the
current tab.
...And 15 more matches
nsIMsgDBView
keyforfirstselectedmessage nsmsgkey readonly: the key of the first message in the
current selection.
... msgfolder nsimsgfolder readonly: the
current folder.
... numselected long readonly: the number of messages
currently selected.
...And 14 more matches
MediaTrackSettings - Web APIs
the mediatracksettings dictionary is used to return the
current values configured for each of a mediastreamtrack's settings.
... properties of all media tracks deviceid a domstring indicating the
current value of the deviceid property.
... groupid a domstring indicating the
current value of the groupid property.
...And 14 more matches
HTTP Cache
currently we have 3 types of storages, all the access methods return an nsicachestorage object: memory-only (memorycachestorage): stores data only in a memory cache, data in this storage are never put to disk disk (diskcachestorage): stores data on disk, but for existing entries also looks into the memory-only storage; when instructed via a special argument also primarily looks in...
...immediately); there is
currently no way to opt out of this feature (watch bug 938186).
...this is called con
current read/write.
...And 13 more matches
NSS Tools modutil
the following cipher is
currently available: fortezza.
...the following mechanisms are
currently available: rsa, dsa, rc2, rc4, rc5, des, dh, fortezza, sha1, md5, md2, random (for random number generation), and friendly (meaning certificates are publicly readable).
...if no temporary directory is specified, the
current directory will be used.
...And 13 more matches
nsIDOMWindowUtils
thpx, in float aheightpx); void setresolution(in float axresolution, in float ayresolution); void startpccountprofiling(); void stoppccountprofiling(); void suppresseventhandling(in boolean asuppress); void suspendtimeouts(); nsidomfile wrapdomfile(nsifile afile); attributes attribute type description
currentinnerwindowid unsigned long long the id of the window's
current inner window.
... exceptions thrown ns_error_not_available there is no
current inner window displaydpi float the dpi of the display.
... doccharsetisforced boolean whether the charset of the window's
current document has been forced by the user.
...And 13 more matches
RTCPeerConnection - Web APIs
connection between the local device and a remote peer.propertiesalso inherits properties from: eventtargetcantrickleicecandidatesthe read-only rtcpeerconnection property cantrickleicecandidates returns a boolean which indicates whether or not the remote peer can accept trickled ice candidates.connectionstate the read-only connectionstate property of the rtcpeerconnection interface indicates the
current state of the peer connection by returning one of the string values specified by the enum rtcpeerconnectionstate.
currentlocaldescription read only the read-only property rtcpeerconnection.
currentlocaldescription returns an rtcsessiondescription object describing the local end of the connection as it was most recently successfully negotiated since the last time the rtcpeerconnection finished negot...
...also included is a list of any ice candidates that may already have been generated by the ice agent since the offer or answer represented by the description was first instantiated.
currentremotedescription read only the read-only property rtcpeerconnection.
currentremotedescription returns an rtcsessiondescription object describing the remote end of the connection as it was most recently successfully negotiated since the last time the rtcpeerconnection finished negotiating and connecting to a remote peer.
...this does not describe the connection as it
currently stands, but as it may exist in the near future.
...And 13 more matches
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
type all type of form control value all
current value of the form control.
...if present on a radio type, it indicates that that radio button is the
currently selected one in the group of same-named radio buttons.
...it does not indicate whether this checkbox is
currently checked: if the checkbox’s state is changed, this content attribute does not reflect the change.
...And 13 more matches
Array.prototype.reduce() - JavaScript
the reducer function takes four arguments: accumulator (acc)
current value (cur)
current index (idx) source array (src) your reducer function's returned value is assigned to the accumulator, whose value is remembered across each iteration throughout the array, and ultimately becomes the final, single resulting value.
... syntax arr.reduce(callback( accumulator,
currentvalue, [, index[, array]] )[, initialvalue]) parameters callback a function to execute on each element in the array (except for the first, if no initialvalue is supplied).
...
currentvalue the
current element being processed in the array.
...And 13 more matches
Installing plugins to Gecko embedding browsers on Windows - Archive of obsolete content
go to hkey_local_machine\software\mozilla caveat emptor: if the mozilla subkey is not present under hkey_local_machine, look under hkey_
current_user\software\mozilla\.
...thus, some mozilla based browsers, such as the netscape 6 installer, write to the hkey_
current_user key in addition; this doesn't require administrator privileges.
... traditionally, hkey_
current_user is a copy of everything in hkey_local_machine.
...And 12 more matches
Index - Archive of obsolete content
79
current xul attributes, xul reference no summary!
... 80
currentset needshelp, xul attributes, xul reference no summary!
... 557 remove
currentnotification xul methods, xul reference no summary!
...And 12 more matches
OS.File for the main thread
lobal object os.file method overview promise<file> open(in string path, [optional] in object mode, [optional] in object options); promise<object> openunique(in string path, [optional] in object options); promise<void> copy(in string sourcepath, in string destpath, [optional] in object options); promise<bool> exists(in string path); promise<string> get
currentdirectory(); promise<void> makedir(in string path, [optional] in object options); promise<void> move(in string sourcepath, in string destpath); promise<uint8array> read(in string path, [optional] in object options); promise<void> remove(in string path, [optional] in object options); promise<void> removeemptydir(in string path, [optional] in object optio...
...ns); promise<void> removedir(in string path, [optional] in object options); promise<void> set
currentdirectory(in string path); promise<void> setdates(in string path, in date|number accessdate, in date|number modificationdate); promise<void> setpermissions(in string path, in object options ); promise<file.info> stat(in string path, [optional] in object options); promise<void> unixsymlink(in string targetpath, in string createpath); promise<void> writeatomic(in string path, in arrayview data, in object options); methods os.file.open() use method os.file.open() to open a file.
... os.file.get
currentdirectory() return the
current directory promise<string> get
currentdirectory() promise resolves to the path to the
current directory.
...And 12 more matches
Drawing and Event Handling - Plugins
void npp_print(npp instance, npprint *printinfo); the instance parameter represents the
current plug-in.
... nperror npp_setwindow(npp instance, npwindow *window); the instance parameter represents the
current plug-in.
... nperror npn_getvalue(npp instance, npnvariable variable, void *value); the instance parameter represents the
current plug-in.
...And 12 more matches
Advanced techniques: Creating and sequencing audio - Web APIs
the oscillator now we can create an oscillatornode and set its wave to the one we've created: function playsweep() { let osc = audioctx.createoscillator(); osc.setperiodicwave(wave); osc.frequency.value = 440; osc.connect(audioctx.destination); osc.start(); osc.stop(audioctx.
currenttime + 1); } controlling amplitude this is great, but wouldn't it be nice if we had an amplitude envelope to go with it?
... let sweeplength = 2; function playsweep() { let osc = audioctx.createoscillator(); osc.setperiodicwave(wave); osc.frequency.value = 440; let sweepenv = audioctx.creategain(); sweepenv.gain.cancelscheduledvalues(audioctx.
currenttime); sweepenv.gain.setvalueattime(0, audioctx.
currenttime); // set our attack sweepenv.gain.linearramptovalueattime(1, audioctx.
currenttime + attacktime); // set our release sweepenv.gain.linearramptovalueattime(0, audioctx.
currenttime + sweeplength - releasetime); osc.connect(sweepenv).connect(audioctx.destination); osc.start(); osc.stop(audioctx.
currenttime + s...
...weeplength); } note: we'll talk about the property baseaudiocontext.
currenttime later, so don't worry if you're unsure of it for now.
...And 12 more matches
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
placing pointer files first, navigate to the profile folder of the
currently active profile4, and open the extensions folder within it.
... listing 5: content for clock.xul <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/"?> <dialog id="clockdialog" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" title="clock" buttons="accept" onload="initclock();"> <script type="application/javascript" src="chrome://helloworld/content/clock.js"/> <hbox align="center"> <label value="
current time:" /> <textbox id="
currenttime" /> </hbox> </dialog> listing 6: content for clock.js function initclock() { show
currenttime(); window.setinterval(show
currenttime, 1000); } function show
currenttime() { var textbox = document.getelementbyid("
currenttime"); textbox.value = new date().tolocaletimestring(); textbox.select(); } operations check perform an operations check to ...
...in phase 3, we’re going to add multilingual support, making it so that it users running firefox in a french environment will see “heure actuelle”, and those running it in english will see “
current time” (figure 7).
...And 11 more matches
Appendix D: Loading Scripts - Archive of obsolete content
disadvantages performance: there are several significant performance disadvantages inherent in this method: there is
currently no way to load code into sandboxes from a cache.
... examples the following code will execute a simple script in a sandbox with the privilege level of the
current content page.
... the globals of the
current content window will be available in the scripts global scope.
...And 11 more matches
Using XPInstall to Install Plugins - Archive of obsolete content
currently, all mozilla browsers released by mozilla.org support xpinstall, and a family of browsers based on mozilla code support xpinstall.
...an ideal xpi package will: install to the
current browser that is initiating the xpinstall installation via html or triggering an xpinstall installation via a trigger script.
... we will use the term
current browser to refer to the browser that initiates the xpinstall download by visiting a site which requires a plugin that the
current browser can not find locally.
...And 11 more matches
listbox - Archive of obsolete content
attributes disabled, disablekeynavigation, preference, rows, seltype, suppressonselect, tabindex, value properties accessibletype,
currentindex,
currentitem, disabled, disablekeynavigation, itemcount, listboxobject, selectedcount, selectedindex, selecteditem, selecteditems, seltype, suppressonselect, tabindex, value methods additemtoselection, appenditem, clearselection, ensureelementisvisible, ensureindexisvisible, getindexoffirstvisiblerow, getindexofitem, getitematindex, getnumberofvisiblerows, getrowcount, getselecteditem, ...
...
currentindex type: integer set to the index of the
currently focused item in the list.
...(or, on some platforms, typeof(listbox
currentindex) will be undefined) in a single selection list, the
current index will always be the same as the selected index.
...And 11 more matches
richlistbox - Archive of obsolete content
attributes disabled, disablekeynavigation, preference, seltype, suppressonselect, tabindex, value properties accessibletype,
currentindex,
currentitem, disabled, disablekeynavigation, itemcount, scrollboxobject, selectedcount, selectedindex, selecteditem, selecteditems, seltype, suppressonselect, tabindex, value methods additemtoselection, appenditem, clearselection, ensureelementisvisible, ensureindexisvisible, getindexoffirstvisiblerow, getindexofitem, getitematindex, getnumberofvisiblerows, getrowcount, getselecteditem...
...
currentindex type: integer set to the index of the
currently focused item in the list.
...(or, on some platforms, typeof(listbox
currentindex) will be undefined) in a single selection list, the
current index will always be the same as the selected index.
...And 11 more matches
Index - MDN Web Docs Glossary: Definitions of Web-related terms
40 breadcrumb accessibility, glossary, navigation, search, site map, breadcrumb a breadcrumb, or breadcrumb trail, is a navigational aid that is typically placed between a site's header and the main content, displaying either a hierarchy of the
current page in relation to the the site's structure, from top level to
current page, or a list of the links the user followed to get to the
current page, in the order visited.
... 62 call stack call stack, codingscripting, glossary, javascript a call stack is a mechanism for an interpreter (like the javascript interpreter in a web browser) to keep track of its place in a script that calls multiple functions — what function is
currently being run and what functions are called from within that function, etc.
...to enable con
current downloads of assets exceeding that limit, domain sharding splits content across multiple subdomains.
...And 11 more matches
nsIMicrosummaryService
if the caller passes a bookmark id, and one of the microsummaries is the
current one for the bookmark, this method will retrieve content from the datastore for that microsummary, which is useful when callers want to display a list of microsummaries for a page that isn't loaded, and they want to display the actual content of the selected microsummary immediately (rather than after the content is asynchronously loaded).
...getmicrosummary() get the
current microsummary for the given bookmark.
... nsimicrosummary getmicrosummary( in long long bookmarkid ); parameters bookmarkid the bookmark for which to get the
current microsummary.
...And 11 more matches
SVGSVGElement - Web APIs
(if the parent uses css or xsl layout, then unitless values represent pixel units for the
current css or xsl viewport.) svgsvgelement.pixelunittomillimeterx a float representing the size of the pixel unit (as defined by css2) along the x-axis of the viewport, which represents a unit somewhere in the range of 70dpi to 120dpi, and, on systems that support this, might actually match the characteristics of the target medium.
... svgsvgelement.use
currentview the initial view (i.e., before magnification and panning) of the
current innermost svg document fragment can be either the "standard" view, i.e., based on attributes on the <svg> element such as viewbox) or on a "custom" view (i.e., a hyperlink into a particular <view> or other element).
... svgsvgelement.
currentview an svgviewspec defining the initial view (i.e., before magnification and panning) of the
current innermost svg document fragment.
...And 11 more matches
Handling common accessibility problems - Learn web development
activeelement gives us the element that is
currently focused on the page.
... when vo is on, the display will look mostly the same, but you'll see a black box at the bottom left of the screen that contains information on what vo
currently has selected.
... the
current selection will also be highlighted, with a black border — this highlight is known as the vo cursor.
...And 10 more matches
A basic 2D WebGL animation example - Web APIs
let gl = null; let glcanvas = null; // aspect ratio and coordinate system // details let aspectratio; let
currentrotation = [0, 1]; let
currentscale = [1.0, 1.0]; // vertex information let vertexarray; let vertexbuffer; let vertexnumcomponents; let vertexcount; // rendering data shared with the // scalers.
...d", startup, false); function startup() { glcanvas = document.getelementbyid("glcanvas"); gl = glcanvas.getcontext("webgl"); const shaderset = [ { type: gl.vertex_shader, id: "vertex-shader" }, { type: gl.fragment_shader, id: "fragment-shader" } ]; shaderprogram = buildshaderprogram(shaderset); aspectratio = glcanvas.width/glcanvas.height;
currentrotation = [0, 1];
currentscale = [1.0, aspectratio]; vertexarray = new float32array([ -0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, -0.5, -0.5 ]); vertexbuffer = gl.createbuffer(); gl.bindbuffer(gl.array_buffer, vertexbuffer); gl.bufferdata(gl.array_buffer, vertexarray, gl.static_draw); vertexnumcomponents = 2; vertexcount = vertexarray.length/vertexnumcompo...
...nents;
currentangle = 0.0; rotationrate = 6; animatescene(); } after getting the webgl context, gl, we need to begin by building the shader program.
...And 10 more matches
Index - HTTP
21 connection http, headers, reference, web the connection general header controls whether or not the network connection stays open after the
current transaction finishes.
... 64 feature-policy: autoplay directive, feature policy, feature-policy, http, reference, autoplay the http feature-policy header autoplay directive controls whether the
current document is allowed to autoplay media requested through the htmlmediaelement interface.
... 65 feature-policy: camera directive, feature policy, feature-policy, http, reference, camera the http feature-policy header camera directive controls whether the
current document is allowed to use video input devices.
...And 10 more matches
Tabbed browser - Archive of obsolete content
openuilinkin( url, where, allowthirdpartyfixup, postdata, referrerurl ) where: "
current"
current tab (if there aren't any browser windows, then in a new window instead) "tab" new tab (if there aren't any browser windows, then in a new window instead) "tabshifted" same as "tab" but in background if default is to select new tabs, and vice versa "window" new window "save" save to disk (with no filename hint!) openuilink( url, e, ignorebutton, ignorealt, allowkeywordfixup, ...
...var url = "https://developer.mozilla.org"; var tab = gbrowser.addtab(null, {relatedto
current: true}); gsessionstore.settabstate(tab, json.stringify({ entries: [ { title: url } ], usertypedvalue: url, usertypedclear: 2, lastaccessed: tab.lastaccessed, index: 1, hidden: false, attributes: {}, image: null })); reusing tabs rather than open a new browser or new tab each and every time one is needed, it is good practice to try to re-use an existing tab which already d...
...ator("navigator:browser"); // check each browser instance for our url var found = false; while (!found && browserenumerator.hasmoreelements()) { var browserwin = browserenumerator.getnext(); var tabbrowser = browserwin.gbrowser; // check each tab of this browser instance var numtabs = tabbrowser.browsers.length; for (var index = 0; index < numtabs; index++) { var
currentbrowser = tabbrowser.getbrowseratindex(index); if (url ==
currentbrowser.
currenturi.spec) { // the url is already opened.
...And 9 more matches
New Skin Notes - Archive of obsolete content
this is
currently just a preview, but we would appreciate help with testing.
...--maian 21:08, 1 sep 2005 (pdt) in the new mw1.5 skin (not the one
currently available here) there's class "wrong" and class "wrong-inline".
...it looks odd when someone who uses devmo on regular basis sees some violet links just because he already worked with this site yesterday.also, the
current color for visited links makes them less visible.
...And 9 more matches
Mozilla release FAQ - Archive of obsolete content
what is the
current version of mozilla?
...the
current arrangement between netscape (aol) and the mozilla project is that mozilla develops its own releases, and when netscape (aol) is preparing to make a release, it takes the
current version of mozilla, makes modifications, and does its own qa.
...if not, post to netscape.public.mozilla.builds problems of this sort are
currently most likely to happen in nspr, as it still uses the classic build system.
...And 9 more matches
Audio for Web games - Game development
this article provides a detailed guide to implementing audio for web games, looking at what works
currently across as wide a range of platforms as possible.
...in the case of autoplay on ios, this appears to be the case
currently.
... con
current audio playback a requirement of many games is the need to play more than one piece of audio at the same time; for example, there might be background music playing along with sound effects for various things happening in the game.
...And 9 more matches
CustomizableUI.jsm
this is analogous to the old
currentset attribute.
... legacy set to true if you want customizableui to automatically migrate the
currentset attribute.
... if the area to which you try to add has not yet been restored from its legacy state (
currentset attribute), this will postpone the addition.
...And 9 more matches
Rhino Debugger
current limitations: no breakpoint menu using the rhino javascript debugger the mozilla rhino javascript engine includes a source-level debugger for debugging javascript scripts.
... the rhino javascript debugger can debug scripts running in multiple threads and provides facilities to set and clear breakpoints, control execution, view variables, and evaluate arbitrary javascript code in the
current scope of an executing script.
...if the
current line in the script contains a function call control will return to the debugger upon entry into the function.
...And 9 more matches
nsIFocusManager
setting the activewindow raises it, and focuses the
current child window's
current element, if any.
... focusedelement nsidomelement the element that is
currently focused.
...if the
current focus within the new focusedwindow is a frame element, then the focusedwindow will actually be set to the child window and the
current element within that set as the focused element.
...And 9 more matches
Working with the History API - Web APIs
the pushstate() method pushstate() takes three parameters: a state object; a title (
currently ignored); and (optionally), a url.
... title all browsers but safari
currently ignore this parameter, although they may use it in the future.
...the new url does not need to be absolute; if it's relative, it's resolved relative to the
current url.
...And 9 more matches
Using IndexedDB - Web APIs
blink/webkit supports the
current version of the spec, as shipped in chrome 23+ and opera 17+; ie10+ does too.
... other and older implementations don't implement the
current version of the spec, and thus do not support the indexeddb.open(name, version).onupgradeneeded signature yet.
...the
current number of a key generator is always set to 1 when the object store for that key generator is first created.
...And 9 more matches
SVG documentation index - SVG: Scalable Vector Graphics
44 color svg, svg attribute the color attribute is used to provide a potential indirect value,
currentcolor, for the fill, stroke, stop-color, flood-color, and lighting-color attributes.
... 70 externalresourcesrequired deprecated, needsexample, svg, svg attribute the externalresourcesrequired attribute specifies whether referenced resources that are not part of the
current document are required for proper rendering of the given container or graphics element.
... 77 flood-color svg, svg attribute, svg filter the flood-color attribute indicates what color to use to flood the
current filter primitive subregion.
...And 9 more matches
selection - Archive of obsolete content
get and set text and html selections in the
current web page.
... examples log the
current contiguous selection as text: var selection = require("sdk/selection"); if (selection.text) console.log(selection.text); log the
current discontiguous selections as html: var selection = require("sdk/selection"); if (!selection.iscontiguous) { for (var subselection in selection) { console.log(subselection.html); } } surround html selections with delimiters: var selection = require...
...("sdk/selection"); selection.on('select', function () { selection.html = "\\\" + selection.html + "///"; }); globals properties text gets or sets the
current selection as plain text.
...And 8 more matches
ui/button/toggle - Archive of obsolete content
when a button is checked it gets a "pressed" look in the user interface (note that the "pressed" look
currently does not work in mac os x).
...for example, you might want to give it a different appearance when the
current page is being served over https.
...to set state like this, call state() with 2 parameters: the first parameter is a window or tab object or as a shorthand, the string "window" for the
currently active window, or the string "tab" for the
currently active tab the second parameter is an object containing the state properties you wish to update.
...And 8 more matches
jpm - Archive of obsolete content
jpm usage is: jpm [command] [options] jpm supports the following global options: -h, --help - show a help message and exit -v, --version - print the jpm version number --addon-dir - directory for your source code, defaulting to the
current directory installation jpm is distributed with the node package manager npm.
...binary may be specified as a full path or as a path relative to the
current directory.
...the command: looks for a directory called "test" within the
current directory (or --addon-dir).
...And 8 more matches
Building accessible custom components in XUL - Archive of obsolete content
<code> grid.spreadsheet { border: thin solid; -moz-user-focus: normal; } </code> in html documents, firefox draws a focus rectangle around the
currently focused element.
...if you want to navigate up one row, it is relatively easy to find the right cell; it's the previous sibling of the
currently focused cell.
... similarly, navigating down one row simply requires finding the next sibling of the
currently focused cell.
...And 8 more matches
XForms Custom Controls - Archive of obsolete content
for example, you might want to render images that are held inside an instance document or you would like to show a disabled trigger when its bound node becomes irrelevant rather than having it not display (the
current default behavior).
...xf|output[mediatype^="image"] { -moz-binding: url('chrome://xforms/content/xforms-xhtml.xml#xformswidget-output-mediatype-anyuri'); } custom data types if you define a new schema data type or you use a built-in data type and find the
current xforms control for this type to be insufficient, then you should write a new custom control.
...however, the mozilla xforms implementation
currently doesn't support this approach.
...And 8 more matches
What are browser developer tools? - Learn web development
these tools do a range of things, from inspecting
currently-loaded html, css and javascript to showing which assets the page has requested and how long they took to load.
...deletes the
current element.
...copy the
currently selected html.
...And 8 more matches
mach
requirements mach requires a
current version of /mozilla-central/ (or a tree derived from there).
...mach's logic for determining which mozconfig to use is effectively the following: if a .mozconfig file (some say it is the file mozconfig without the dot) exists in the
current directory, use that.
... if the
current working directory mach is invoked with is inside an object directory, the mozconfig used when creating that object directory is used.
...And 8 more matches
IME handling guide
finally, this class guarantees that requesting to commit or cancel
current composition to ime is perefored synchronously.
...
currently, it's tried: after a native event is dispatched from presshell::handleeventinternal() at changing focus from a windowless plugin when new focused editor receives dom "focus" event the 3rd timing may not be safe actually, but it causes a lot of oranges of automated tests.
...
currently, widgetquerycontentevent is handled via imecontentobserver because if it has a cache of selection, it can set reply of equeryselectedtext event only with the cache.
...And 8 more matches
Midas
document.querycommandenabled determines whether the given command can be executed on the document in its
current state.
... document.querycommandindeterm determines whether the
current selection is in an indetermined state.
... document.querycommandstate determines whether the given command has been executed on the
current selection.
...And 8 more matches
nsIDragService
the only exception is get
currentsession(), since there's
currently no way to check for a drag in progress using standard dom methods or properties.
... nsidragsession get
currentsession( ) ; void invokedragsession( in nsidomnode adomnode, in nsisupportsarray atransferables, in nsiscriptableregion aregion, in unsigned long aactiontype ); void invokedragsessionwithimage(in nsidomnode adomnode, in nsisupportsarray atransferablearray, in nsiscriptableregion aregion, in unsigned long aactiontype, in nsidomnode aimage, in long aimagex, in long aimagey, in nsidomdragevent adragevent, in nsidomdatatransfer adata...
... [noscript] void firedrageventatsource( in mozilla::eventmessage aeventmessage ); parameters aeventmessage one of the event messages between edragdropeventfirst and edragdropeventlast defined in widget/eventmessagelist.h get
currentsession() returns the
current nsidragsession.
...And 8 more matches
nsIHTMLEditor
tle); void setinlineproperty(in nsiatom aproperty, in astring aattribute, in astring avalue); void setparagraphformat(in astring aparagraphformat); void updatebaseurl(); attributes attribute type description iscssenabled boolean a boolean which is true is the htmleditor has been instantiated with css knowledge and if the css pref is
currently checked.
... boolean breakisvisible( in nsidomnode anode ); parameters anode return value candrag() decides if a drag should be started (for example, based on the
current selection and mousepoint).
...if it is null, the anchor node of the
current selection is used.
...And 8 more matches
nsITreeView
: renamed from progressnone in gecko 1.8 drop_before -1 drop_on 0 drop_after 1 indropbefore 0 obsolete since gecko 1.8 indropon 1 obsolete since gecko 1.8 indropafter 2 obsolete since gecko 1.8 methods candrop() methods used by the drag feedback code to determine if a drag is allowable at the
current location.
... return value true if a drop is allowed at the
current location; otherwise false.
... candropbeforeafter() obsolete since gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) method used by the drag feedback code to determine if a drag is allowable at the
current location.
...And 8 more matches
Using the Geolocation API - Web APIs
you can test for the presence of geolocation thusly: if('geolocation' in navigator) { /* geolocation is available */ } else { /* geolocation is not available */ } getting the
current position to obtain the user's
current location, you can call the get
currentposition() method.
... note: by default, get
currentposition() tries to answer as fast as possible with a low accuracy result.
...devices with a gps, for example, can take a minute or more to get a gps fix, so less accurate data (ip location or wifi) may be returned to get
currentposition().
...And 8 more matches
Timing element visibility with the Intersection Observer API - Web APIs
visibleads a set which we'll use to track the ads
currently visible on the screen.
... }); } } else { previouslyvisibleads.foreach(function(adbox) { adbox.dataset.lastviewstarted = performance.now(); }); visibleads = previouslyvisibleads; previouslyvisibleads = null; } } since the event itself doesn't state whether the document has switched from visible to invisible or vice-versa, the document.hidden property is checked to see if the document is not
currently visible.
... if the document has just become visible, we reverse this process: first we go through previouslyvisibleads and set each one's dataset.lastviewstarted to the
current document's time (in milliseconds since the document was created) using the performance.now() method.
...And 8 more matches
TextRange - Web APIs
methods textrange.collapse() move the caret to the beginning or end of the
current range.
... textrange.execcommand() executes a command on the
current document, the
current selection, or the given scope.
... textrange.inrange() returns whether the
current range contains the specified range.
...And 8 more matches
Window: popstate event - Web APIs
it changes the
current history entry to that of the last page the user visited or, if history.pushstate() has been used to add a history entry to the history stack, that history entry is used instead.
... note: when writing functions that process popstate event it is important to take into account that properties like window.location will already reflect the state change (if it affected the
current url), but document might still not.
... to better understand when the popstate event is fired, consider this simplified sequence of events that occurs when the
current history entry changes due to either the user navigating the site or the history being traversed programmatically.
...And 8 more matches
Creating a cross-browser video player - Developer guides
of course this custom control set is
currently useless and doesn't do a thing: let's improve the situation with javascript.
... play/pause playpause.addeventlistener('click', function(e) { if (video.paused || video.ended) video.play(); else video.pause(); }); when a click event is detected on the play/pause button, the handler first of all checks if the video is
currently paused or has ended (via the media api's paused and ended attributes); if so, it uses the play() method to playback the video.
... stop stop.addeventlistener('click', function(e) { video.pause(); video.
currenttime = 0; progress.value = 0; }); the media api doesn't have a stop method, so to mimic this the video is paused, and its
currenttime (i.e.
...And 8 more matches
Forms related code snippets - Archive of obsolete content
document.createelement("thead"), ocapt = document.createelement("caption"), odecryear = document.createelement("span"), oincryear = document.createelement("span"), odecrmonth = document.createelement("span"), oincrmonth = document.createelement("span"); var nid = ainstances.length, oth; this.target = otarget; this.display = document.createelement("span"); this.
current = new date(); this.container = otable; this.display.classname = sprefs + "-
current-month"; this.id = nid; otable.classname = sprefs + "-calendar"; otable.id = sprefs + "-cal-" + nid; odecryear.classname = sprefs + "-decrease-year"; odecrmonth.classname = sprefs + "-decrease-month"; oincrmonth.classname = sprefs + "-increase-month"; oincryear.classname = sprefs ...
...thid++) { oth = document.createelement("th"); oth.innerhtml = sdays[nthid]; ohrow.appendchild(oth); } othead.appendchild(ohrow); ocapt.appendchild(odecryear); ocapt.appendchild(odecrmonth); ocapt.appendchild(oincryear); ocapt.appendchild(oincrmonth); ocapt.appendchild(this.display); this.container.appendchild(ocapt); this.container.appendchild(othead); this.
current.setdate(1); this.writedays(); otarget.onclick = function () { if (otable.parentnode) { otable.parentnode.removechild(otable); return; } otable.style.zindex = nzindex++; otable.style.position = "absolute"; otable.style.left = otarget.offsetleft + "px"; otable.style.top = (otarget.offsettop + otarget.offsetheight) + "px"; otarget.pa...
...rentnode.insertbefore(otable, otarget); }; ainstances.push(this); } datepicker.prototype.writedays = function () { const nendblanks = (this.
current.getday() + bzeroismonday * 6) % 7, nend = amonthlengths[this.
current.getmonth()] + nendblanks, ntotal = nend + ((7 - nend % 7) % 7); var otd, otr; if (this.otbody) { this.container.removechild(this.otbody); } this.otbody = document.createelement("tbody"); for (var nday, oday, niter = 0; niter < ntotal; niter++) { if (niter % 7 === 0) { otr = document.createelement("tr"); this.otbody.appendchild(otr); } nday = niter - nendblanks + 1; otd = document.createelement("td"); if (niter + 1 > nendblanks && niter < nend) { otd.classname = spre...
...And 7 more matches
Accessibility in React - Learn web development
this outline is your visual indicator that the browser is
currently focused on this element.
...react’s useref hook creates an object with a single property:
current.
...useeffect() is useful in the
current situation because we cannot focus on an element until after the <todo /> component renders and react knows where our refs are.
...And 7 more matches
Handling common JavaScript problems - Learn web development
if you want this to work correctly, you need to define a function to add the handler separately, calling it on each iteration and passing it the
current value of para and i each time (or something similar).
... the right-hand panel shows useful details pertaining to the
current environment — breakpoints, callstack and
currently active scopes.
... the main feature of such tools is the ability to add breakpoints to code — these are points where the execution of the code stops, and at that point you can examine the environment in its
current state and see what is going on.
...And 7 more matches
Command line crash course - Learn web development
for example, after typing the above two commands, try typing cd d and pressing tab — it should autocomplete the directory name desktop for you, provided it is present in the
current directory.
...this usually becomes easier as you get more familiar with the structure of your file system, but if you are not sure of the path you can usually figure it out with a combination of the ls command (see below), and by clicking around in your explorer/finder window to see where a directory is, relative to where you
currently are.
...a leading slash means "at the root of the web site", whereas omitting the slash means "the url is relative to my
current page".
...And 7 more matches
Accessibility API cross-reference
an interesting problem is that mozilla, safari/khtml, opera, staroffice and other apps are cross-platform, but there is
currently no cross-platform accessibility api.
... the ipc mechanisms used by
current generation api's are also not cross-platform, although communication for some cross-platform accessibility api of the future could be done through sockets.
... pagetablist page_tab_list page_tab_list tablist a pane or frame in the
current window pane n/a region or group ?
...And 7 more matches
Accessible Toolkit Checklist
the checklist this checklist is
currently only for microsoft windows, but should be expanded to include information about linux and os x.
...upt the tab cycle or make it disorderly tab cycle must be identical backwards and forwards the f6 and shift+f6 key combinations should cycle through panes in a window making focus visible on any widget, and focus must always be visible shift+f10 or context menu key should work like right click on focused item, and context menu should show just under and to the right of the
current focus.
... engine - drawing underline under correct letter events - making keystrokes do the right thing msaa support, via iaccessible's get_acckeyboardshortcut support for ms windows settings when high contrast checkbox is set (in accessibility control panel, spi_gethighcontrast), or when user selects a "native" skin option in your software, then get all look and feel from
current os skin.
...And 7 more matches
Embedding the editor
introduction this document describes the
current state of editor embeddability, problems with the existing implementation, some possible embedding scenarios that we need to deal with, and an embedding solution that will fulfill them.
...(the
current nseditorshell makes assumptions about the hosting xul document, which need to be broken.) composer embedded in a web page (<htmlarea>) ie 5 supports the <htmlarea> element; if mozilla is to support something similar, editor needs to be embeddable to the extent that this can be done.
...
current problems the
current composer architecture was created while other parts of mozilla were still under development, and as a result it suffers from a number of shortcomings, and anachronisms.
...And 7 more matches
Web Replay
there are a few ways to start recording a tab: record
current tab open the developer tools and click the button indicated below.
... timeline the timeline is shown above the developer tools and provides several features to help with navigating the recording: the timeline changes color depending on whether the tab is
currently recording (red) or replaying (blue).
... the
current position within the recording is shown on the timeline with a progress indicator.
...And 7 more matches
Gecko object attributes
applied to: any role exposed via aria: aria-atomic live a hint as to whether changes within the
current region or subtree should be automatically presented.
... container-busy the
current changes are not yet complete.
... a state change event for the a11y api's busy state will be fired on the container object
currently marked as busy, once it is no longer busy.
...And 7 more matches
Accessing the Windows Registry Using XPCOM
a simple example here's a simple example showing how to read your windows productid: var wrk = components.classes["@mozilla.org/windows-registry-key;1"] .createinstance(components.interfaces.nsiwindowsregkey); wrk.open(wrk.root_key_local_machine, "software\\microsoft\\windows\\
currentversion", wrk.access_read); var id = wrk.readstringvalue("productid"); wrk.close(); this example, while simple, shows several important things about using the interface.
...they are: root_key_classes_root — corresponds to hkey_classes_root root_key_
current_user — corresponds to hkey_
current_user root_key_local_machine — corresponds to hkey_local_machine the second parameter for open() and create() is the path to the key.
...here's the simple example again, but using openchild(): var wrk = components.classes["@mozilla.org/windows-registry-key;1"] .createinstance(components.interfaces.nsiwindowsregkey); wrk.open(wrk.root_key_local_machine, "software\\microsoft", wrk.access_read); var subkey = wrk.openchild("windows\\
currentversion", wrk.access_read); var id = subkey.readstringvalue("productid"); subkey.close(); wrk.close(); once you've opened a registry key, you can begin to make use of it.
...And 7 more matches
nsIMessenger
navigatepos long the
current index in the navigation history.
... setwindow() sets the
current window for a messenger session.
... openurl() opens a url in the
current window (set by setwindow()) and adds it to the
current history.
...And 7 more matches
Index - Firefox Developer Tools
3 accessibility inspector accessibility, accessibility inspector, devtools, guide, tools the accessibility inspector provides a means to access important information exposed to assistive technologies on the
current page via the accessibility tree, allowing you to check what's missing or otherwise needs attention.
... 16 dom property viewer dom, tools, web development the dom property viewer lets you inspect the properties of the dom as an expandable tree structure, starting from the window object of the
current page or the selected iframe.
... 31 eyedropper firefox, tools, web development:tools the eyedropper tool enables you to select colors in the
current page.
...And 7 more matches
Drawing shapes with canvas - Web APIs
closepath() adds a straight line to the path, going to the start of the
current sub-path.
... note: when the
current path is empty, such as immediately after calling beginpath(), or on a newly created canvas, the first path construction command is always treated as a moveto(), regardless of what it actually is.
...this method tries to close the shape by drawing a straight line from the
current point to the start.
...And 7 more matches
Transformations - Web APIs
every time the save() method is called, the
current drawing state is pushed onto the stack.
... the
current values of the following attributes: strokestyle, fillstyle, globalalpha, linewidth, linecap, linejoin, miterlimit, linedashoffset, shadowoffsetx, shadowoffsety, shadowblur, shadowcolor, globalcompositeoperation, font, textalign, textbaseline, direction, imagesmoothingenabled.
... the
current clipping path, which we'll see in the next section.
...And 7 more matches
Document.execCommand() - Web APIs
when an html document has been switched to designmode, its document object exposes an execcommand method to run commands that manipulate the
current editable region, such as form inputs or contenteditable elements.
...when using contenteditable, execcommand() affects the
currently active editable element.
...(not supported by internet explorer.) copy copies the
current selection to the clipboard.
...And 7 more matches
Navigator - Web APIs
properties doesn't inherit any properties, but implements those defined in navigatorid, navigatorlanguage, navigatoronline, navigatorcontentutils, navigatorstorage, navigatorstorageutils, navigatorcon
currenthardware, navigatorplugins, and navigatorusermedia.
... standard navigatorid.appcodename read only returns the internal "code" name of the
current browser.
... navigatorcon
currenthardware.hardwareconcurrency read only returns the number of logical processor cores available.
...And 7 more matches
Implementing a Microsoft Active Accessibility (MSAA) Server - Accessibility
they need to know about focus changes and other events, and it needs to know what objects are contained in the
current document or dialog box.
...finally, voice dictation software needs to know what's in the
current document or ui in order to implement "say what you see" kinds of features.
... msaa provides information in several different ways: a com interface (iaccessible) that allows applications to expose the tree of data nodes that make up each window in the user interface
currently being interacted with and custom interface extensions via interfaces via queryinterface and queryservice.
...And 7 more matches
HTML documentation index - HTML: Hypertext Markup Language
2 allowing cross-origin use of images and canvas advanced, cors, canvas, html, image, reference, security, storage, data html provides a crossorigin attribute for images that, in combination with an appropriate cors header, allows images defined by the <img> element that are loaded from foreign origins to be used in a <canvas> as if they had been loaded from the
current origin.
... 8 accesskey global attributes, html, reference, accesskey the accesskey global attribute provides a hint for generating a keyboard shortcut for the
current element.
... 47 html attribute: rel attribute, attributes, constraint validation, link, form, rel the rel attribute defines the relationship between a linked resource and the
current document.
...And 7 more matches
Array.prototype.reduceRight() - JavaScript
syntax arr.reduceright(callback(accumulator,
currentvalue[, index[, array]])[, initialvalue]) parameters callback function to execute on each value in the array, taking four arguments: accumulator the value previously returned in the last invocation of the callback, or initialvalue, if supplied.
... (see below.)
currentvalue the
current element being processed in the array.
... indexoptional the index of the
current element being processed in the array.
...And 7 more matches
async function - JavaScript
the default return value of undefined is returned as the resolution value of the
current promise.
...as a result, we must be mindful of error handling behavior when dealing with con
current asynchronous operations.
...} async function con
currentstart() { console.log('==con
current start with await=='); const slow = resolveafter2seconds() // starts timer immediately const fast = resolveafter1second() // starts timer immediately // 1.
...And 7 more matches
xlink:href - SVG: Scalable Vector Graphics
the target element must be part of the
current svg document fragment.
... if the xlink:href attribute is not provided, the target element will be the immediate parent element of the
current animation element.
... value <iri> default value none animatable yes filter for <filter>, xlink:href defines the reference to another <filter> element within the
current svg document fragment.
...And 7 more matches
ui/sidebar - Archive of obsolete content
called with no arguments, show() and hide() will operate on the
currently active window.
... to show what a sidebar looks like, here's a sidebar that displays the results of running the w3c validator on the
current page: specifying sidebar content the content of a sidebar is specified using html, which is loaded from the url supplied in the url option to the sidebar's constructor.
...if it is omitted, then the sidebar will be shown in the
currently active window.
...And 6 more matches
Install script template - Archive of obsolete content
installs to the
current browser that is invoking the installation 2.
...m/myplugin,version=5.3"; var version = "5.3.0.0"; var mimetype = "application/x-my-plugin"; var suffix = "my"; var suffix_description = "my plugin files"; var company_name = "mypluginco"; var plugin_description = "my exemplary plugin mine all mine"; // registry constant paths // these will be used when the win32 registry keys are written var hkey_local_machine = "hkey_local_machine"; var hkey_
current_user = "hkey_
current_user"; var reg_moz_path = "software\\mozillaplugins"; // my own error code in case secondary installation fails var nosecondaryinstall = 1; // error return codes need some memory var err; // error return codes when we try and install to the
current browser var errblock1; // error return codes when we try and do a secondary installation var errblock2 = 0; // global ...
... here, cancel the installation // initinstall is quite an overloaded method, but i have invoked it here with three strings // which are globally defined err = initinstall(software_name, plid, version); if (err != 0) { // call initinstall again in case illegal characters in plid err = initinstall(software_name, software_name, version); if (err != 0) cancelinstall(err); } //addfiles to
current browser block var pluginsfolder = getfolder("plugins"); //verify disk space if(verifydiskspace(pluginsfolder, plugin_size+component_size)) { // start installing plugin shared library reseterror(); // install the plugin shared library to the
current browser's plugin directory errblock1 = addfile (plid, version, plugin_file, pluginsfolder, null); if (errblock1!=0) { logcomment("could ...
...And 6 more matches
Video and Audio APIs - Learn web development
next, let's define stopmedia() — add the following function below playpausemedia(): function stopmedia() { media.pause(); media.
currenttime = 0; play.setattribute('data-icon','p'); } there is no stop() method on the htmlmediaelement api — the equivalent is to pause() the video, and set its
currenttime property to 0.
... setting
currenttime to a value (in seconds) immediately jumps the media to that position.
...add the following below your two previous functions: function windbackward() { if(media.
currenttime <= 3) { rwd.classlist.remove('active'); clearinterval(intervalrwd); stopmedia(); } else { media.
currenttime -= 3; } } function windforward() { if(media.
currenttime >= media.duration - 3) { fwd.classlist.remove('active'); clearinterval(intervalfwd); stopmedia(); } else { media.
currenttime += 3; } } again, we'll just run through the first one of the...
...And 6 more matches
Dynamic behavior in Svelte: working with variables and props - Learn web development
code along with us git clone the github repo (if you haven't already done it) with: git clone https://github.com/opensas/mdn-svelte-tutorial.git then to get to the
current app state, run cd mdn-svelte-tutorial/03-adding-dynamic-behavior or directly download the folder's content: npx degit opensas/mdn-svelte-tutorial/03-adding-dynamic-behavior remember to run npm install && npm run dev to start your app in development mode.
... repl to code along with us using the repl, start at https://svelte.dev/repl/c862d964d48d473ca63ab91709a0a5a0?version=3.23.2 working with todos our todos.svelte component is
currently just displaying static markup; let's start making it a bit more dynamic.
...the second parameter, if provided, will contain the index of the
current item.
...And 6 more matches
Mozilla accessibility architecture
we do not
currently support the carbon accessibility model for apple's os x.
...for example, tables support nsiaccessibletable, text supports nsiaccessibletext and edit boxes support nsieditabletext., although this code has been moved into the atk specific directories because it is not
currently used in windows.
... accessible/src/other/ empty implementations of platform-specific classes so that builds don't fail on platforms
currently not-supported where we put toolkit-specific code because atk and msaa are different accessibility api toolkits which share only about 75% of their code, there is a lot of toolkit-specific code that needs to live somewhere.
...And 6 more matches
Mozilla’s UAAG evaluation report
does not contradict
current specifications for html and css rendering.
...(p2) c windows can be configured so that the window with the
current focus is always on top.
...(p2) vg provides forward and reverse text search capability from the element with the
current focus/selection, with and without case sensitivity very slow on larger documents.
...And 6 more matches
DeferredTask.jsm
method overview bool ispending();obsolete since gecko 28 void start();obsolete since gecko 28 void flush();obsolete since gecko 28 void cancel();obsolete since gecko 28 void arm(); void disarm(); promise finalize(); attributes isarmed boolean indicates whether the task is
currently requested to start again later, regardless of whether it is
currently running.
... isrunning boolean indicates whether the task is
currently running.
... methods ispending obsolete since gecko 28 check the
current task state.
...And 6 more matches
JavaScript OS.Constants
profiledir the path to the
current profile.
... s_irwxu
current user can read, write, execute the file.
... s_irusr
current user can read the file.
...And 6 more matches
Rhino scopes and contexts
before using rhino in a con
current environment, it is important to understand the distinction between contexts and scopes.
... to associate the
current thread with a context, simply call the enter method of context: context cx = context.enter(); once you are done with execution, simply exit the context: context.exit(); these calls will work properly even if there is already a context associated with the
current thread.
...you can create a scope using one context and then evaluate a script using that scope and another context (either by exiting the
current context and entering another, or by executing on a different thread).
...And 6 more matches
Starting WebLock
addsite - add the
current url to the white list.
... removesite - remove the
current url from the white list.
...for example, addsite is supposed to add the
current url to the white list, but is the url an input parameter to the method, is it the topmost web page in the gecko application, or is it something more random-a url picked from global history or that's been given context in some other way?
...And 6 more matches
IAccessibleTable
accessible if both row and column index are valid then the corresponding accessible object is returned that represents the requested cell regardless of whether the cell is
currently visible (on the screen).
...[propget] hresult ncolumns( [out] long columncount ); parameters columncount number of columns in table (including columns outside the
current viewport) return value s_ok.
...[propget] hresult nrows( [out] long rowcount ); parameters rowcount number of rows in table (including rows outside the
current viewport) return value s_ok.
...And 6 more matches
IAccessibleTable2
cell if both row and column index are valid then the corresponding accessible object is returned that represents the requested cell regardless of whether the cell is
currently visible (on the screen).
...[propget] hresult ncolumns( [out] long columncount ); parameters columncount number of columns in table (including columns outside the
current viewport) return value s_ok.
...[propget] hresult nrows( [out] long rowcount ); parameters rowcount number of rows in table (including rows outside the
current viewport) return value s_ok.
...And 6 more matches
nsIClipboardCommands
return value true if the
current selection can be cut, false otherwise.
... canpaste() returns whether the
current contents of the clipboard can be pasted and if the
current selection is not read-only.
...return value true if there is data to paste on the clipboard and the
current selection is not read-only, false otherwise.
...And 6 more matches
nsISessionStore
getbrowserstate() returns the
current state of all of windows and all of their tabs.
... return value a json string representing the
current state of all windows in the web browser.
... getwindowstate() returns the
current state of one specified window in the web browser.
...And 6 more matches
nsIWindowWatcher
clients may expect this property to be always
current, so to properly integrate this component the application will need to keep it
current by setting the property as the active window changes.
... method overview nsiwebbrowserchrome getchromeforwindow(in nsidomwindow awindow); nsiauthprompt getnewauthprompter(in nsidomwindow aparent); nsiprompt getnewprompter(in nsidomwindow aparent); nsidomwindow getwindowbyname(in wstring atargetname, in nsidomwindow a
currentwindow); nsisimpleenumerator getwindowenumerator(); nsidomwindow openwindow(in nsidomwindow aparent, in string aurl, in string aname, in string afeatures, in nsisupports aarguments); void registernotification(in nsiobserver aobserver); void setwindowcreator(in nsiwindowcreator creator); void unregisternotification(in nsiobserver aobserver); attri...
...butes attribute type description activewindow nsidomwindow the watcher serves as a global storage facility for the
current active (front most non-floating-palette-type) window, storing and returning it on demand.
...And 6 more matches
nsIXPConnect
void setdefaultsecuritymanager(in nsixpcsecuritymanager amanager, in pruint16 flags); nsixpcfunctionthistranslator setfunctionthistranslator(in nsiidref aiid, in nsixpcfunctionthistranslator atranslator); void setreportalljsexceptions(in boolean reportalljsexceptions); void setsafejscontextfor
currentthread(in jscontextptr cx); void setsecuritymanagerforjscontext(in jscontextptr ajscontext, in nsixpcsecuritymanager amanager, in pruint16 flags); void syncjscontexts(); void updatexows(in jscontextptr ajscontext, in nsixpconnectwrappednative aobject, in pruint32 away); native code only!
...iidref aiid); void wrapnativetojsval(in jscontextptr ajscontext, in jsobjectptr ascope, in nsisupports acomobj, in nswrappercacheptr acache, in nsiidptr aiid, in boolean aallowwrapper, out jsval aval, out nsixpconnectjsobjectholder aholder); attributes attribute type description collectgarbageonmainthreadonly prbool obsolete since gecko 1.9
currentjsstack nsistackframe read only.
...
currentnativecallcontext nsaxpcnativecallcontextptr read only.
...And 6 more matches
All keyboard shortcuts - Firefox Developer Tools
f1 f1 f1 toggle toolbox between the last 2 docking modes ctrl + shift + d cmd + shift + d ctrl + shift + d toggle split console (except if console is the
currently selected tool) esc esc esc these shortcuts work in all tools that are hosted in the toolbox.
... end end end expand
currently selected node right arrow right arrow right arrow collapse
currently selected node left arrow left arrow left arrow (when a node is selected) move inside the node so you can start stepping through attributes.
...+ tab start editing property or value (rules view only, when a property or value is selected, but not already being edited) enter or space return or space enter or space cycle up and down through auto-complete suggestions (rules view only, when a property or value is being edited) up arrow , down arrow up arrow , down arrow up arrow , down arrow choose
current auto-complete suggestion (rules view only, when a property or value is being edited) enter or tab return or tab enter or tab increment selected value by 1 up arrow up arrow up arrow decrement selected value by 1 down arrow down arrow down arrow increment selected value by 100 shift + page up shift + page up shift + page up de...
...And 6 more matches
Applying styles and colors - Web APIs
getlinedash() returns the
current line dash pattern array containing an even number of non-negative numbers.
... setlinedash(segments) sets the
current line dash pattern.
... a linewidth example this property sets the
current line thickness.
...And 6 more matches
Using the Gamepad API - Web APIs
performing such checks tends to involve using the gamepad object in conjunction with an animation loop (e.g., requestanimationframe), where developers want to make decisions for the
current frame based on the state of the gamepad or gamepads.
... the navigator.getgamepads() method returns an array of all devices
currently visible to the webpage, as gamepad objects (the first value is always null, so null will be returned if there are no gamepads connected.) this can then be used to get the same information.
... index: an integer that is unique for each gamepad
currently connected to the system.
...And 6 more matches
Selection - Web APIs
a selection object represents the range of text selected by the user or the
current position of the caret.
... selection.typeread only returns a domstring describing the type of the
current selection.
... selection.collapse() collapses the
current selection to a single point.
...And 6 more matches
Cross-browser audio basics - Developer guides
(
currently, browsers that support mp3 also support mp4 audio).
...and pausing, and then playing from 5 seconds into the audio: var myaudio = document.createelement('audio'); if (myaudio.canplaytype('audio/mpeg')) { myaudio.setattribute('src','audiofile.mp3'); } if (myaudio.canplaytype('audio/ogg')) { myaudio.setattribute('src','audiofile.ogg'); } alert('play'); myaudio.play(); alert('stop'); myaudio.pause(); alert('play from 5 seconds in'); myaudio.
currenttime = 5; myaudio.play(); let's explore the available properties and methods in more detail.
... myaudio.pause(); note: there is no stop method — to implement a stop function, you'd have to pause the media then set the
currenttime property value to 0.
...And 6 more matches
Audio and Video Delivery - Developer guides
currently, to support all browsers we need to specify two formats, although with the adoption of mp3 and mp4 formats in firefox and opera, this is changing fast.
... javascript audio var myaudio = document.createelement('audio'); if (myaudio.canplaytype('audio/mpeg')) { myaudio.setattribute('src','audiofile.mp3'); } else if (myaudio.canplaytype('audio/ogg')) { myaudio.setattribute('src','audiofile.ogg'); } myaudio.
currenttime = 5; myaudio.play(); we set the source of the audio depending on the type of audio file the browser supports, then set the play-head 5 seconds in and attempt to play it.
... note:
currently safari does not support dash although dash.js will work on newer versions of safari scheduled for release with osx yosemite.
...And 6 more matches
context-menu - Archive of obsolete content
when the user invokes the context menu, all of the items bound to the
current context are automatically added to the menu.
...likewise, any items that were previously in the menu but are not bound to the
current context are automatically removed from the menu.
...your context listener is called even if any declarative contexts are not
current (since firefox 36).
...And 5 more matches
tabs - Archive of obsolete content
in particular, you can enumerate it: var tabs = require('sdk/tabs'); for (let tab of tabs) console.log(tab.title); you can also access individual tabs by index: var tabs = require('sdk/tabs'); tabs.on('ready', function () { console.log('first: ' + tabs[0].title); console.log('last: ' + tabs[tabs.length-1].title); }); you can access the
currently active tab: var tabs = require('sdk/tabs'); tabs.on('activate', function () { console.log('active: ' + tabs.activetab.url); }); track a single tab given a tab, you can register event listeners to be notified when the tab is closed, activated or deactivated, or when the page hosted by the tab is loaded or retrieved from the "back-forward cache": var tabs = require("sdk/tabs"); function o...
... properties activetab the
currently active tab in the active window.
... getthumbnail() returns thumbnail data uri of the page
currently loaded in this tab.
...And 5 more matches
Chapter 3: Introduction to XUL—How to build a more intuitive UI - Archive of obsolete content
unlike languages with formal specifications that have been standardized by bodies like the w3c, xul
currently does not have an explicit specification.
... note: although there is a specification document, its markup is based on implementations and markup as of 2001, and
current xul differs from it in many aspects.
...by referring to a special style sheet within chrome://global/skin/, we can make label and button sizes, window background color, etc, match the
currently selected theme in firefox.
...And 5 more matches
Inner-browsing extending the browser navigation paradigm - Archive of obsolete content
the second example shows a tabbed menu that dynamically loads news headlines into the
current web page.
...in this model, when a request goes to the web server, the
current page is updated rather than replaced.
...with inner browsing, a simple request to retrieve the next set of message headers that replace the
currently viewed message headers can dramatically improve user experience.
...And 5 more matches
Tamarin build documentation - Archive of obsolete content
supported platforms tamarin
currently supports the following operating systems and/or architectures.
... eclipse (
currently mac only) eclipse (galileo) / cdt (6.0) project for tamarin (also works with helios).
...what we want is to have the indexer track the
currently selected build config (so the correct conditional compiles are highlighted in the editor).
...And 5 more matches
Focus and Selection - Archive of obsolete content
focused elements the focused element refers to the element which
currently receives input events.
... if there are three textboxes on a window, the one that has the focus is the one that the user can
currently enter text into.
...getting the
currently focused element the
currently focused element is held by an object called a command dispatcher, of which there is only one for the window.
...And 5 more matches
Styling a Tree - Archive of obsolete content
the following properties are automatically set as needed: checked this property is set cells whose column is type="checkbox" focus this property is set if the tree
currently has the focus.
... selected this property is set for rows or cells that are
currently selected.
...
current this property is set if the keyboard cursor is at the row.
...And 5 more matches
Arrays - Learn web development
in this line we
currently have i <= 0, which is a conditional test that causes the for loop to only run once, because it is saying "stop when i is no longer less than or equal to 0", and i starts at 0.
... just below the // number 3 comment we want you to write a line of code that splits the
current array item (name:price) into two separate items, one containing just the name and one containing just the price.
...inside the loop (below // number 4) we want you to add a line that adds the
current item price to that total in each iteration of the loop, so that at the end of the code the correct total is printed onto the invoice.
...And 5 more matches
Experimental features in Firefox
the
current implementation is a little inelegant but is basically functional.
... nightly 30 no developer edition 30 no beta 30 no release 30 no preference name canvas.hitregions.enabled webgl: draft extensions when this preference is enabled, any webgl extensions
currently in "draft" status which are being tested are enabled for use.
...
currently, there are no webgl extensions being tested by firefox.
...And 5 more matches
Browser API
it
currently works in (privileged) chrome code on firefox desktop (version 47 and above).
... htmliframeelement.getvisible() indicates the
current visibility state of the browser <iframe>.
... htmliframeelement.setactive() sets the
current <iframe> as the active frame, which has an effect on how it is prioritized by the process manager.
...And 5 more matches
NSS tools : modutil
if no temporary directory is specified, the
current directory is used.
...(y/n) y using installer script "installer_script" successfully parsed installation script
current platform is linux:5.4.08:x86 using installation parameters for platform linux:5.4.08:x86 installed file crypto.so to /tmp/crypto.so installed file setup.sh to ./pk11inst.dir/setup.sh executing "./pk11inst.dir/setup.sh"...
...for the
current settings or to see the format of the module spec in the database, use the -rawlist option.
...And 5 more matches
NSS tools : modutil
if no temporary directory is specified, the
current directory is used.
...(y/n) y using installer script "installer_script" successfully parsed installation script
current platform is linux:5.4.08:x86 using installation parameters for platform linux:5.4.08:x86 installed file crypto.so to /tmp/crypto.so installed file setup.sh to ./pk11inst.dir/setup.sh executing "./pk11inst.dir/setup.sh"...
...for the
current settings or to see the format of the module spec in the database, use the -rawlist option.
...And 5 more matches
JS_GetScopeChain
retrieves the scope chain for the javascript code
currently running in a given context.
... description js_getscopechain returns the first jsobject on the scope chain for the javascript code
currently running in the given context, cx.
...these objects represent the lexical scope of the
currently executing statement or expression, not the call stack, so they include: the variable objects of any enclosing functions or let statements or expressions, and any objects selected by enclosing with statements, in order from the most-nested scope outward; lastly the global object against which the function was created.
...And 5 more matches
nsIWebBrowserPersist
siinputstream apostdata, in string aextraheaders, in nsisupports afile, in nsiloadcontext aprivacycontext); void saveprivacyawareuri(in nsiuri auri, in nsisupports acachekey, in nsiuri areferrer, in long areferrerpolicy, in nsiinputstream apostdata, in string aextraheaders, in nsisupports afile, in boolean aisprivate); attributes attribute type description
currentstate unsigned long
current state of the persister object.
... persist_flags_serialize_output 1024 force serialization of output (one file at a time; not con
current) persist_flags_dont_change_filenames 2048 don't make any adjustments to filenames.
... encode_flags_selection_only 1 output only the
current selection as opposed to the whole document.
...And 5 more matches
Version, UI, and Status Information - Plugins
« previousnext » this chapter describes the functions that allow a plug-in to display a message on the status line, get agent information, and check on the
current version of the plug-in api and the browser.
...the user might appreciate seeing the percentage completed of the
current operation or the url of a button or other link object when the cursor is over it, all of which the browser shows.
... void npn_status(npp instance, const char *message); the instance parameter is the
current plug-in instance, that is, the one that the status message belongs to.
...And 5 more matches
Examine and edit HTML - Firefox Developer Tools
searching the page inspector's search box matches all markup in the
current document and in any frames.
... as you type, an autocomplete popup shows any class or id attributes that match the
current search term: press up and down to cycle through suggestions, tab to choose the
current suggestion, then enter to select the first node with that attribute.
... show dom properties open the split console and enter the console command "inspect($0)" to inspect the
currently selected element.
...And 5 more matches
Document.requestStorageAccess() - Web APIs
assuming all of the requirements above are satisfied, firefox will automatically grant storage access to the requesting origin on up to a threshold number of first-party origins in the
current session for the duration of user’s session, up to a maximum of 24 hours.
... the maximum number of con
current storage access grants an origin can obtain is a positive integer
currently defined as one percent of the number of top-level origins visited in the
current session or 5, whichever is higher.
... the origin is given an ephemeral storage access grant for the
current top-level origin.
...And 5 more matches
HTMLInputElement - Web APIs
value string: returns / sets the
current value of the control.
... validity read only validitystate object: returns the element's
current validity state.
... properties that apply only to elements of type checkbox or radio checked boolean: returns / sets the
current state of the element when type is checkbox or radio.
...And 5 more matches
Node - Web APIs
3 cdata_section_node 4 entity_reference_node 5 entity_node 6 processing_instruction_node 7 comment_node 8 document_node 9 document_type_node 10 document_fragment_node 11 notation_node 12 node.nodevalue returns / sets the value of the
current node.
... node.rootnode read only returns a node object representing the topmost node in the tree, or the
current node if it's the topmost node in the tree.
... node.appendchild(childnode) adds the specified childnode argument as the last child to the
current node.
...And 5 more matches
PerformanceNavigationTiming - Web APIs
the interface also supports the following properties: performancenavigationtiming.domcomplete read only a domhighrestimestamp representing a time value equal to the time immediately before the browser sets the
current document readiness of the
current document to complete.
... performancenavigationtiming.domcontentloadedeventend read only a domhighrestimestamp representing the time value equal to the time immediately after the
current document's domcontentloaded event completes.
... performancenavigationtiming.domcontentloadedeventstart read only a domhighrestimestamp representing the time value equal to the time immediately before the user agent fires the domcontentloaded event at the
current document.
...And 5 more matches
WebRTC connectivity - Web APIs
pending and
current descriptions taking one step deeper into the process, we find that localdescription and remotedescription, the properties which return these two descriptions, aren't as simple as they look.
...for that reason, webrtc uses pending and
current descriptions.
... the
current description (which is returned by the rtcpeerconnection.
currentlocaldescription and rtcpeerconnection.
currentremotedescription properties) represents the description
currently in actual use by the connection.
...And 5 more matches
Inputs and input sources - Web APIs
input sources each source of webxr input data is represented by an xrinputsource object which describes the input source and its
current state.
...the ray extends outward in a direction defined by whatever platform and controller are being used, if that's defined; otherwise, the ray extends in the same direction the user is pointing in with their index finger, if it were
currently outstretched.
... enumerating input sources the webxr session represented by the xrsession object has an inputsources property which is a live list of the webxr input devices
currently connected to the xr system.
...And 5 more matches
Movement, orientation, and motion: A WebXR example - Web APIs
cubeorientation will store the
current orientation of the cube, while cubematrix and mousematrix are storage for matrices used during the rendering of the scene.
... suffice it to say that the vertex shader computes the position of each vertex given the initial positions of each vertex and the transforms that need to be applied to convert them to simulate the viewer's
current position and orientation.
...then references are obtained to the four <div> blocks into which we'll output the
current contents of each of the key matrices for informational purposes while our scene is running.
...And 5 more matches
Spaces and reference spaces: Spatial tracking in WebXR - Web APIs
for example, given an xrsession whose reference space is worldrefspace, the following line of code would request the first frame of animation to be scheduled: animationframerequestid = xrsession.requestanimationframe(mydrawframe); then, the mydrawframe() function—the callback executed when it's time to draw the frame—might be something like this: function mydrawframe(
currentframetime, frame) { let session = frame.session; let viewerpose = frame.getviewerpose(viewerrefspace); animationframerequestid = session.requestanimationframe(mydrawframe); if (viewerpose) { /* ...
...when called, this function begins by getting the xrsession from the frame object, then uses the frame's getviewerpose() method to compute the xrviewerpose for the viewer, given viewerrefspace, which describes the
current facing direction and position of the viewer.
... since most users would prefer that you maintain the same viewer position and facing direction while performing this transition, you can use the xrframe method getviewerpose() to obtain the
current xrviewerpose, switch the session, then use the saved viewer pose to restore the viewer's position and facing.
...And 5 more matches
<input type="image"> - HTML: Hypertext Markup Language
this will replace the
current document with the received data.
...this is typically a new tab in the same window as the
current document, but may differ depending on the configuration of the user agent.
... _parent loads the response into the parent browsing context of the
current one.
...And 5 more matches
<input type="password"> - HTML: Hypertext Markup Language
events change and input supported common attributes autocomplete, inputmode, maxlength, minlength, pattern, placeholder, readonly, required, and size idl attributes selectionstart, selectionend, selectiondirection, and value methods select(), setrangetext(), and setselectionrange() value the value attribute contains a domstring whose value is the
current contents of the text editing control being used to enter the password.
...this isn't as informative as using either
current-password or new-password.
...
current-password allow the browser or password manager to enter the
current password for the site.
...And 5 more matches
Link types - HTML: Hypertext Markup Language
<link> <a>, <area>, <form> external indicates that the hyperlink leads to a resource outside the site of the
current page; that is, following the link will make the user leave the site.
... <a>, <area>, <form> <link> first indicates that the hyperlink leads to the first resource of the sequence the
current page is in.
... if one or several up link types are also present, the number of these up indicates the depth of the
current page in the hierarchy.
...And 5 more matches
ui/button/action - Archive of obsolete content
to set state like this, call state() with 2 parameters: the first parameter is a window or tab object or as a shorthand, the string "window" for the
currently active window, or the string "tab" for the
currently active tab the second parameter is an object containing the state properties you wish to update.
... here's an add-on with a button that disables itself when you click it, but only for the
currently active window: var { actionbutton } = require("sdk/ui/button/action"); var button = actionbutton({ id: "my-button", label: "my button", icon: { "16": "./firefox-16.png", "32": "./firefox-32.png" }, onclick: disableforthiswindow }); function disableforthiswindow(state) { button.state("window", { disabled: true }); } to fetch the state for a specific window or tab, call state(), passing in the window or tab you are interested in, and it will return the state: var labelforactivetab = button.state("tab").label; to learn more about this, see the api documentation for state().
...a special shortcut allows you to pass the string "window" or "tab" to select the
currently active window or tab.
...And 4 more matches
Install Manifests - Archive of obsolete content
currently 1 %item_id% the id of the add-on being updated %item_version% the version of the add-on being updated %item_maxappversion% the maxversion of the targetapplication object corresponding to the
current application for the add-on being updated.
... %app_id% the id of the
current application %app_version% the version of the application to check for updates for %
current_app_version% the version of the
current application %app_os% the value of os_target from the firefox build system, identifying the operating system being used.
... %app_abi% the value of the target_xpcom_abi value from the firefox build system, identifying the compiler/architecture combination used to compile the
current application.
...And 4 more matches
Block and Line Layout Cheat Sheet - Archive of obsolete content
currently, the only way to get an unflowable frame is to have a frame tree that is "too deep".
... nshtmlreflowstate the
current state of reflow, built up as reflow recursively descends the frame tree.
... mcomputedwidth mcomputedheight mcomputedmargin mcomputedborderpadding mcomputedpadding mcomputedoffsets mcomputedminwidth mcomputedmaxwidth mcomputedminheight mcomputedmaxheight given the
current container frame and the style applied to the child, these values are the resolved values for the child frame's box.
...And 4 more matches
Introducing the Audio API extension - Archive of obsolete content
zsetup(1, 44100); var samples = new float32array(22050); for (var i = 0; i < samples.length ; i++) { samples[i] = math.sin( i / 20 ); } output.mozwriteaudio(samples); } </script> </head> <body> <p>this demo plays a one second tone when you click the button below.</p> <button onclick="playtone();">play</button> </body> </html> the moz
currentsampleoffset() method gives the audible position of the audio stream, meaning the position of the last heard sample.
... // get
current audible position of the underlying audio stream, measured in samples.
... var
currentsampleoffset = audiooutput.moz
currentsampleoffset(); audio data written using the mozwriteaudio() method needs to be written at a regular interval in equal portions, in order to keep a little ahead of the
current sample offset (the sample offset that is
currently being played by the hardware can be obtained with moz
currentsampleoffset()), where "a little" means something on the order of 500 ms of samples.
...And 4 more matches
Desktop gamepad controls - Game development
to update the state of the gamepad's
currently pressed buttons we will need a function that will do exactly that on every frame: function gamepadupdatehandler() { buttonspressed = []; if(controller.buttons) { for(var b=0; b<controller.buttons.length; b++) { if(controller.buttons[b].pressed) { buttonspressed.push(b); } } } } we first reset the buttonspressed array to get i...
...t ready to store the latest info we'll write to it from the
current frame.
...next, we'll consider the gamepadbuttonpressedhandler() function: function gamepadbuttonpressedhandler(button) { var press = false; for(var i=0; i<buttonspressed.length; i++) { if(buttonspressed[i] == button) { press = true; } } return press; } the function takes a button as a parameter; in the loop it checks if the given button's number is among the
currently pressed buttons available in the buttonspressed array.
...And 4 more matches
Eclipse CDT
if you click the yellow, double arrow button at the top of the project explorer tab on the left, it will keep the selected file in the project explorer tab in sync with the file that you're
currently editing.
... organizing views use ctrl-m to toggle maximization of the
current editor view (the editor must be focused first).
...unfortunately, the autocomplete list cannot (
currently) be configured to appear automatically as soon as you start typing a character that might be the start of an identifier name.
...And 4 more matches
Storage access policy: Block cookies from trackers
this documentation describes the policy that we intend to ship to firefox release users, but may not match what is implemented in the
current release version of firefox.
... this policy does not
currently restrict third-party storage access for resources that are not classified as tracking resources.
...
currently, firefox includes some web compatibility heuristics that grant storage access to third-party resources classified as trackers when a user interacts with those third parties.
...And 4 more matches
mozbrowserselectionstatechanged
note that this is deprecated, and
current implementations should use mozbrowsercaretstatechanged instead.
... commands an object that stores information about what commands can be executed on the
current selection.
... zoomfactor a number representing the
current zoom factor in the child frame.
...And 4 more matches
Sqlite.jsm
if a relative path is given, it is interpreted as relative to the
current profile's directory.
... await conn.close(); throw e; } clone(readonly) this function returns a clone of the
current connection-promise.
... getschemaversion() the user-set version associated with the schema for the
current database.
...And 4 more matches
Gecko Profiler FAQ
the gecko profiler
currently doesn’t have the ability to show you information about line numbers, neither for js code nor for native code.
... how to profile startup code that regresses just a little (<10-15ms ts_paint/tpaint) [mstange] we
currently don’t have a good way to do that.
... the
current setup requires each thread that you want to profile to notify the profiler about its existence.
...And 4 more matches
sslerr.html
upgraded documentation may be found in the
current nss reference nss and ssl error codes chapter 8 nss and ssl error codes nss error codes are retrieved using the nspr function pr_geterror.
... ssl_error_no_compression_overlap -12203 "cannot communicate securely with peer: no common compression algorithm(s)." ssl_error_handshake_not_completed -12202 "cannot initiate another ssl handshake until
current handshake is complete." ssl_error_bad_handshake_hash_value -12201 "received incorrect handshakes hash values from peer." ssl_error_cert_kea_mismatch -12200 "the certificate provided cannot be used with the selected key exchange algorithm." ssl_error_no_trusted_ssl_client_ca -12199 "no certificate authority is trusted for ssl client authentication." ...
... cipher spec record." ssl_error_rx_malformed_alert -12250 "ssl received a malformed alert record." ssl_error_rx_malformed_handshake -12249 "ssl received a malformed handshake record." ssl_error_rx_malformed_application_data -12248 "ssl received a malformed application data record." received an ssl handshake that was inappropriate for the
current state: all the error codes in the following block indicate that the local socket received an ssl3 handshake message from the remote peer at a time when it was inappropriate for the peer to have sent this message.
...And 4 more matches
imgIDecoderObserver
if imgidecoder::flag_sync_decode is passed to a function that triggers a decode, all notifications that can be generated from the
currently loaded data fire before the call returns.
...method overview void ondataavailable(in imgirequest arequest, in boolean a
currentframe, [const] in nsintrect arect); native code only!
...void ondataavailable( in imgirequest arequest, in boolean a
currentframe, [const] in nsintrect arect ); parameters arequest the request on which data is available, or null if being called for an imgidecoder object.
...And 4 more matches
nsIDOMEvent
currenttarget nsidomeventtarget used to indicate the eventtarget whose eventlisteners are
currently being processed.
... eventphase unsigned short used to indicate which phase of event flow is
currently being evaluated.
... capturing_phase 1 the
current event phase is the capturing phase.
...And 4 more matches
nsIDOMWindow
localstorage nsidomstorage local storage for the
current browsing context.
...if there is no parent window, or if the parent is of a different type, this is the
current window.
... scrollx long the
current horizontal (x) scroll position, in pixels.
...And 4 more matches
nsIMutableArray
insertelementat() insert an element at the given position, moving the element
currently located in that position, and all elements in higher position, up by one.
... index the position in the array: if the position is lower than the
current length of the array, the elements at that position and onwards are bumped one position up.
... if the position is equal to the
current length of the array, the new element is appended.
...And 4 more matches
nsIURI
setting the spec causes the new spec to be parsed using the rules for the scheme the uri
currently has.
... warning: because parsing the string is done using the
current uri's scheme, setting the spec to a uri with a different scheme will produce incorrect results.
... return value an nsiuri object that represents the same uri as the
current nsiuri.
...And 4 more matches
DevTools API - Firefox Developer Tools
while this api is
currently a work-in-progress, there are usable portions of page inspector and debugger that may be used
currently.
... zoomvalue the
current zoom level of the toolbox.
... methods get
currentpanel() get the
currently active toolpanel.
...And 4 more matches
AudioParam.value - Web APIs
the web audio api's audioparam interface property value gets or sets the value of this audioparam at the
current time.
... setting value has the same effect as calling audioparam.setvalueattime with the time returned by the audiocontext's
currenttime property..
... syntax var curvalue = audioparam.value; audioparam.value = newvalue; value a floating-point number indicating the parameter's value as of the
current time.
...And 4 more matches
HTMLMediaElement - Web APIs
htmlmediaelement.
currentsrc read only returns a domstring with the absolute url of the chosen media resource.
... htmlmediaelement.
currenttime a double-precision floating-point value indicating the
current playback time in seconds; if the media has not started to play and has not been seeked, this value is the media's initial playback time.
... htmlmediaelement.mozfragmentend is a double that provides access to the fragment end time if the media element has a fragment uri for
currentsrc, otherwise it is equal to the media duration.
...And 4 more matches
History.pushState() - Web APIs
title most browsers
currently ignore this parameter, although they may use it in the future.
...the new url does not need to be absolute; if it's relative, it's resolved relative to the
current url.
... the new url must be of the same origin as the
current url; otherwise, pushstate() will throw an exception.
...And 4 more matches
Checking when a deadline is due - Web APIs
in this article we look at a complex example involving checking the
current time and date against a deadline stored via indexeddb.
... the main complication here is checking the stored deadline info (month, hour, day, etc.) against the
current time and date taken from a date object.
... the basic problem in the to-do app, we wanted to first record time and date information in a format that is both machine readable and human understandable when displayed, and then check whether each time and date is occurring at the
current moment.
...And 4 more matches
SVGAnimationElement - Web APIs
svganimationelement.getstarttime() returns a float representing the begin time, in seconds, for this animation element's
current interval, if it exists, regardless of whether the interval has begun yet.
... if there is no
current interval, then a domexception with code invalid_state_err is thrown.
... svganimationelement.get
currenttime() returns a float representing the
current time in seconds relative to time zero for the given time container.
...And 4 more matches
SVGMatrix - Web APIs
svgmatrix.translate() post-multiplies a translation transformation on the
current matrix and returns the resulting matrix as svgmatrix.
... svgmatrix.scale() post-multiplies a uniform scale transformation on the
current matrix and returns the resulting matrix as svgmatrix.
... svgmatrix.scalenonuniform() post-multiplies a non-uniform scale transformation on the
current matrix and returns the resulting matrix as svgmatrix.
...And 4 more matches
SourceBuffer - Web APIs
sourcebuffer.audiotracks read only a list of the audio tracks
currently contained inside the sourcebuffer.
... sourcebuffer.buffered read only returns the time ranges that are
currently buffered in the sourcebuffer.
... sourcebuffer.texttracks read only a list of the text tracks
currently contained inside the sourcebuffer.
...And 4 more matches
Storage Access API - Web APIs
the api provides methods that allow embedded resources to check whether they
currently have access to their first-party storage, and to request access to their first-party storage from the user agent.
...this is enforced through the following constraints: access requests are automatically denied unless the embedded content is
currently processing a user gesture such as a tap or click.
...specifics regarding the lifetime of a storage grant and the circumstances under which the browser may decide to inform the user are
currently being worked through and will be announced once ready.
...And 4 more matches
WebGLRenderingContext.stencilOp() - Web APIs
constants gl.keep keeps the
current value.
... gl.incr increments the
current stencil buffer value.
... gl.incr_wrap increments the
current stencil buffer value.
...And 4 more matches
ARIA: tab role - Accessibility
some assistive technology will provide a count of the number of tab role elements inside a tablist, and inform users of which tab they
currently have targeted.
...if the
current tab is the last tab in the tab list it activates the first tab.
...if the
current tab is the first tab in the tab list it activates the last tab.
...And 4 more matches
Video player styling basics - Developer guides
this "data-state" idea is also used for setting the
current state of buttons within the video control set, which allows specific state styling.
...as mentioned earlier, a `data-state` variable is used to indicate which state such buttons are
currently in.
...'unmute' : 'mute'); } } this function is then called by the relevant event handlers: video.addeventlistener('play', function() { changebuttonstate('playpause'); }, false); video.addeventlistener('pause', function() { changebuttonstate('playpause'); }, false); stop.addeventlistener('click', function(e) { video.pause(); video.
currenttime = 0; progress.value = 0; // update the play/pause button's 'data-state' which allows the correct button image to be set via css changebuttonstate('playpause'); }); mute.addeventlistener('click', function(e) { video.muted = !video.muted; changebuttonstate('mute'); }); you might have noticed that there are new handlers where the play and pause events are reacted to on the video.
...And 4 more matches
Writing forward-compatible websites - Developer guides
first, have a default code path that runs in unknown browsers and in the
current and future versions of browsers you are testing with.
... for the purpose of this piece of advice, "
current" means the most recent version of a browser you have tested.
... for example, if you have tested that your default code path runs properly in firefox aurora but firefox beta and the latest release have a bug that make your default code path fail, it is ok to treat the firefox version number that is in aurora at the moment of testing as "
current", and consider the beta version as a "past" version even though it hasn't been released to the general public yet.
...And 4 more matches
Functions - JavaScript
*/ console.log(mycar.brand); the this keyword does not refer to the
currently executing function, so you must refer to function objects by name, even within the function body.
... arguments: an array-like object containing the arguments passed to the
currently executing function.
... arguments.callee : the
currently executing function.
...And 4 more matches
TypedArray.prototype.reduceRight() - JavaScript
currentvalue the
current element being processed in the typed array.
... index the index of the
current element being processed in the typed array.
... description the reduceright method executes the callback function once for each element present in the typed array, excluding holes in the typed array, receiving four arguments: the initial value (or value from the previous callback call), the value of the
current element, the
current index, and the typed array over which iteration is occurring.
...And 4 more matches
window/utils - Archive of obsolete content
the exception is the windows() function which returns an array of
currently opened windows.
... getinnerid(window) returns the id of the specified window's
current inner window.
... this function wraps nsidomwindowutils.
currentinnerwindowid.
...And 3 more matches
Creating a Web based tone generator - Archive of obsolete content
the function moz
currentsampleoffset() is used to know the position of the samples being played so that we can fill a 500 ms buffer of audio samples.
... var audio = new audio(); audio.mozsetup(1, samplerate); var
currentwriteposition = 0; var prebuffersize = samplerate / 2; // buffer 500ms var tail = null; // the function called with regular interval to populate // the audio output buffer.
... if(tail) { written = audio.mozwriteaudio(tail);
currentwriteposition += written; if(written < tail.length) { // not all the data was written, saving the tail...
...And 3 more matches
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
objective the objective is to provide users with a mailer agent, a web browser, and a news reader which are automatically configured (preferences) at startup to the
current user connected on the computer.
...es/thunderbird-mozconfig ac_add_options --enable-extensions=pref it seems worse this time , as even after applying those compilation options mentioned above, i now get the following error message while stating thunderbird with autoconfig (autoconf.js having pref('general.config.filename','thunderbird.cfg'); ) and thunderbird.cfg calling getldap* functions to retrieve cn and mail address of the
current user.
...our first idea was to use local mail folders from home directory of the
current user.
...And 3 more matches
File object - Archive of obsolete content
there is
currently no support for p2open()-like semantics.
...if no argument is supplied to the constructor, the
current working directory is the file object that is returned.
... file.
currentdir a file object that represents the standard output (stdout).
...And 3 more matches
Table Cellmap - Archive of obsolete content
introduction the table layout use the cellmap for two purposes: quick lookup of table structural data store of the border collapse data the cellmap code is contained in nscellmap.cpp and nscellmap.h this document does
currently describe only the quick lookup part of the game, border collapse is still far away cellmap data - overview the entries in the cellmap contain information about the table cell frame corresponding to a given row and column number (celldata.h).
... rowspan = number [cn] this attribute specifies the number of rows spanned by the
current cell.
...the value zero ("0") means that the cell spans all rows from the
current row to the last row of the table section (thead, tbody, or tfoot) in which the cell is defined.
...And 3 more matches
XBL Example - Archive of obsolete content
navigation buttons along the bottom will allow the user to cycle through the objects while a text widget between the buttons will display the
current page.
...along the bottom, we'll need a button to go the previous page, a label to display the
current page number, and a button to go to the next page.
... page property next, a property that holds the
current page will be added.
...And 3 more matches
browser - Archive of obsolete content
it is similar to an iframe except that it holds a page history and contains additional methods to manipulate the
currently displayed page.
... attributes autocompleteenabled, autocompletepopup, autoscroll, disablehistory, disableglobalhistory, disablesecurity, droppedlinkhandler, homepage, showcaret, src, type properties accessibletype, cangoback, cangoforward, contentdocument, contentprincipal, contenttitle, contentvieweredit, contentviewerfile, contentwindow,
currenturi, docshell, documentcharsetinfo, homepage, markupdocumentviewer, messagemanager, preferences, securityui, sessionhistory, webbrowserfind, webnavigation, webprogress methods addprogresslistener, goback, goforward, gohome, gotoindex, loaduri, loaduriwithflags, reload, reloadwithflags, removeprogresslistener, stop, swapdocshells examples <!-- shows mozilla homepage inside a groupbox --> ...
... contentwindow type: todo use the contentwindow.wrappedjsobject to obtain a dom(html) window object
currenturi type: nsiuri this read-only property contains the
currently loaded url.
...And 3 more matches
datepicker - Archive of obsolete content
if not specified, the datepicker defaults to the
current day.
... properties date type: integer the
currently selected date of the month from 1 to 31.
... datevalue type: date the date that is
currently entered or selected in the datepicker as a date object.
...And 3 more matches
menulist - Archive of obsolete content
the
currently selected choice is displayed on the menulist element.
... description type: string set to the description of the
currently selected menuitem.
... image type: image url the image associated with the
currently selected item.
...And 3 more matches
tabs - Archive of obsolete content
selectedindex type: integer gets and sets the index of the
currently selected panel.
... selectedindex type: integer returns the index of the
currently selected item.
...returns -1 if no items are selected selecteditem type: element holds the
currently selected item.
...And 3 more matches
toolbar - Archive of obsolete content
attributes autohide,
currentset, customindex, customizable, defaultset, grippyhidden, grippytooltiptext, height, iconsize, mode, toolbarname properties accessibletype,
currentset, firstpermanentchild, lastpermanentchild, toolbarname, toolboxid methods insertitem style classes chromeclass-toolbar examples <toolbox> <toolbar id="nav-toolbar"> <toolbarbutton id="nav-users" accesskey="u" label="users"/...
...
currentset not in seamonkey 1.x type: comma-separated string the
current set of displayed items on the toolbar.
...
currentset not in seamonkey 1.x type: comma-separated list of strings holds a comma-separated list of the ids of the items
currently on the toolbar.
...And 3 more matches
tree - Archive of obsolete content
attributes disablekeynavigation, disabled, editable, enablecolumndrag, flags, hidecolumnpicker, onselect, rows, seltype, statedatasource, tabindex, treelines properties accessibletype, builderview, columns, contentview,
currentindex, disablekeynavigation, disabled, editingcolumn, editingrow, enablecolumndrag, firstordinalcolumn, inputfield, seltype, selstyle, tabindex, treeboxobject, view examples a tree with several columns <tree flex="1" rows="2"> <treecols> <treecol id="sender" label="sender" flex="1"/> <treecol id="subject" label="subject" flex="2"/> </treecols> <treechildren> <treeitem> ...
...
currentindex type: integer set to the row index of the tree caret in the tree.
... editingcolumn type: nsitreecolumn the column of the tree cell
currently being edited, or null if there is no cell being edited.
...And 3 more matches
wizard - Archive of obsolete content
attributes firstpage, lastpage, pagestep, title, windowtype properties canadvance, canrewind,
currentpage, onfirstpage, onlastpage, pagecount, pageindex, pagestep, title, wizardpages methods advance, cancel, extra1, extra2, getbutton, getpagebyid, goto, rewind examples <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <wizard id="thewizard" title="secret code wizard" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script> ...
... use the cancancel property to indicate to the user (by disabling the cancel button) that they cannot can pagestep type: integer the index of the
current page.
...
currentpage type: wizardpage element this property returns the wizardpage element that is
currently displayed.
...And 3 more matches
2D maze game with device orientation - Game development
finishlevel loads a new level when the
current level is completed, or finished the game if the final level is completed.
...to load specific levels, we make sure the previous levels are hidden, and show the
current one: showlevel: function(level) { var lvl = level | this.level; if(this.levels[lvl-2]) { this.levels[lvl-2].visible = false; } this.levels[lvl-1].visible = true; } thanks to that the game gives the player a challenge - now he have to roll the ball across the play area and guide it through the labyrinth built from the blocks.
...let’s define the variables in the create function first: this.timer = 0; // time elapsed in the
current level this.totaltimer = 0; // time elapsed in the whole game then, right after that, we can initialize the necessary text objects to display this information to the user: this.timertext = this.game.add.text(15, 15, "time: "+this.timer, this.fontbig); this.totaltimetext = this.game.add.text(120, 30, "total time: "+this.totaltimer, this.fontsmall); we’re defining the top and left positions of ...
...And 3 more matches
Accessible multimedia - Learn web development
add it to your code, at the bottom: playpausebtn.onclick = function() { if(player.paused) { player.play(); playpausebtn.textcontent = 'pause'; } else { player.pause(); playpausebtn.textcontent = 'play'; } }; next, add this code to the bottom, which controls the stop button: stopbtn.onclick = function() { player.pause(); player.
currenttime = 0; playpausebtn.textcontent = 'play'; }; there is no stop() function available on htmlmediaelements, so instead we pause() it, and at the same time set the
currenttime to 0.
... next, our rewind and fast forward buttons — add the following blocks to the bottom of your code: rwdbtn.onclick = function() { player.
currenttime -= 3; }; fwdbtn.onclick = function() { player.
currenttime += 3; if(player.
currenttime >= player.duration || player.paused) { player.pause(); player.
currenttime = 0; playpausebtn.textcontent = 'play'; } }; these are very simple, just adding or subtracting 3 seconds to the
currenttime each time they are clicked.
... note that we also check to see if the
currenttime is more than the total media duration, or if the media is not playing, when the fwd button is pressed.
...And 3 more matches
WAI-ARIA basics - Learn web development
states — special properties that define the
current conditions of elements, such as aria-disabled="true", which specifies to a screenreader that a form input is
currently disabled.
...wai-aria does include aria-valuemin and aria-valuemax properties to specify min and max values, but these
currently don't seem very well supported; a better supported feature is the html5 placeholder attribute, which can contain a message that is shown in the input when no value is entered, and is read out by a number of screenreaders.
...it is however not that obvious what the content is — a screenreader
currently reports the content as a list of links, and some content with three headings.
...And 3 more matches
Pseudo-classes and pseudo-elements - Learn web development
:
current matches the element, or an ancestor of the element, that is
currently being displayed.
... :future matches the elements after the
current element.
... :local-link matches links pointing to pages that are in the same site as the
current document.
...And 3 more matches
Manipulating documents - Learn web development
using methods available on this object you can do things like return the window's size (see window.innerwidth and window.innerheight), manipulate the document loaded into that window, store data specific to that document on the client-side (for example using a local database or other storage mechanism), attach an event handler to the
current window, and more.
...you can use this object to return and manipulate information on the html and css that comprises the document, for example get a reference to an element in the dom, change its text content, apply new styles to it, create new elements and add them to the
current element as children, or even delete it altogether.
... the document object model the document
currently loaded in each one of your browser tabs is represented by a document object model.
...And 3 more matches
Implementing feature detection - Learn web development
the concept of feature detection the idea behind feature detection is that you can run a test to determine whether a feature is supported in the
current browser, and then conditionally run code to provide an acceptable experience both in browsers that do support the feature, and browsers that don't.
...therefore, you can detect whether the browser supports geolocation or not by using something like the following: if ("geolocation" in navigator) { navigator.geolocation.get
currentposition(function(position) { // show the location on a map, perhaps using the google maps api }); } else { // give the user a choice of static maps instead perhaps } it is probably better to use an established feature detection library however, rather than writing your own all the time.
...if you look at the latter, you'll see a couple of @supports blocks, for example: @supports (flex-flow: row) and (flex: 1) { main { display: flex; } main div { padding-right: 4%; flex: 1; } main div:last-child { padding-right: 0; } } this at-rule block applies the css rule within only if the
current browser supports both the flex-flow: row and flex: 1 declarations.
...And 3 more matches
Accessibility Features in Firefox
at my next opportunity, i intend to convert my family over to it too." darren paskell, from window-eyes beta testing list firefox works with popular screen readers, with the best support
currently coming from gw micro's window-eyes 5.5.
...mozilla corporation is
currently reaching out to work with ai squared, the makers of zoomtext, in order to enable complete support of advanced zoomtext features such as the doc reader and app reader.
... firefox on linux
currently boasts the best onscreen keyboard support in the industry via gok, the gnome onscreen keyboard.
...And 3 more matches
How Mozilla's build system works
these data structures describe the
current state of the system and what the existing build configuration looks like.
... phase 2: build backend preparation and the build definition once configure has determined what the
current build configuration is, we need to apply this to the source tree so we can actually build.
... during build backend generation, all moz.build files relevant to the
current build configuration are read and converted into files and actions used to build the tree (such as makefiles).
...And 3 more matches
The Firefox codebase: CSS Guidelines
is there an alternative to using the variable like inheriting or using the
currentcolor keyword?
... using inheriting or using
currentcolor will prevent repetition of the value and it is usually good practice to do so.
... using the
currentcolor keyword or inheriting is also good practice, because sometimes the needed value is already in the color or on the parent element.
...And 3 more matches
mozbrowsersecuritychange
details the details property returns an anonymous javascript object with the following properties: state a domstring representing the
current state of ssl security.
... trackingstate a domstring representing the
current loading state of tracking content.
... mixedstate a domstring representing the
current loading state of mixed active content.
...And 3 more matches
Addon
blockliststate read only integer the
current blocklist state of this add-on; see nsiblocklistservice for possible values.
... isactive read only boolean true if the add-on is
currently functional.
... iscompatible read only boolean true or false depending on whether the add-on is compatible with the
current application version and platform version.
...And 3 more matches
AddonManager
scope_application 4 this add-on is a part of the
current application (installed and owned by firefox).
... scope_profile 1 this add-on is installed in the
current profile directory.
... scope_user 2 this add-on is installed somewhere specific to the
current user (all profiles of the logged-in user).
...And 3 more matches
DownloadSummary
method overview promise bindtolist(downloadlist alist); promise addview(object aview); promise removeview(object aview); properties attribute type description allhavestopped read only boolean indicates whether all the downloads are
currently stopped.
... progresstotalbytes read only number indicates the total number of bytes to be transferred before completing all the downloads that are
currently in progress.
... for downloads that do not have a known final size, the number of bytes
currently transferred is reported as part of this property.
...And 3 more matches
L20n Javascript API
var ctx = l20n.getcontext(); ctx.addresource('<hello "hello, world!">'); ctx.requestlocales(); requestlocales can be called multiple times after the context instance emitted the ready event, in order to change the
current language fallback chain, for instance if requested by the user.
... ctx.supportedlocales a read-only property which holds the
current fallback chain of locales which was negotiated between all the available locales, the default locale and the user's preferred locales.
...the function passed to linkresource (called a template function) takes one argument which is the code of the
current locale, which needs to be first registered with registerlocales.
...And 3 more matches
PKCS11 Implement
this note will be removed once the document is updated for the
current version of nss.
...the supplied library names are used as the default library names;
currently, these names should not include any double quotation marks.
...the nss doesn't
currently use the ckf_hw_slot flag.
...And 3 more matches
NSS tools : certutil
if this option is not used, the validity check defaults to the
current system time.
...if no serial number is provided a default serial number is made from the
current time.
...for example: -t "tc,c,t" use the -l option to see a list of the
current certificates and trust attributes in a certificate database.
...And 3 more matches
NSS Tools certutil
if this option is not used, the validity check defaults to the
current system time.
...on windows nt the default is the
current directory.
...for example: -t "tcu,cu,tuw" use the -l option to see a list of the
current certificates and trust attributes in a certificate database.
...And 3 more matches
IAccessibleValue
method overview [propget] hresult
currentvalue([out] variant
currentvalue ); [propget] hresult maximumvalue([out] variant maximumvalue ); [propget] hresult minimumvalue([out] variant minimumvalue ); hresult set
currentvalue([in] variant value ); methods
currentvalue() returns the value of this object as a number.
...[propget] hresult
currentvalue( [out] variant
currentvalue ); parameters
currentvalue returns the
current value represented by this object.
...it does not have to be the same type as that returned by method
currentvalue().
...And 3 more matches
mozIRegistry
we are proposing a new "moziregistry" xpcom interface that provides the same level of function as is
currently provided by the "netscape registry" implemented in libreg.
... open issues we have identified two open issues, neither of which appear to be so hard that it we won't be able to solve them in a timely fashion: if and when we remove what is
currently a static binding of clsids, there will be the risk that required clsids won't be present.
...our
current build/install process doesn't quite step up to these problems as of yet.
...And 3 more matches
mozIStorageStatement
params mozistoragestatementparams the
current list of named parameters, which may be set.
... row mozistoragestatementrow the
current row, with access to all data members by name.
... state long the
current state defined by mozistoragestatement.moz_storage_statement_invalid, mozistoragestatement.moz_storage_statement_ready, or mozistoragestatement.moz_storage_statement_executing.
...And 3 more matches
nsISelection
inherits from: nsisupports last changed in gecko 13.0 (firefox 13.0 / thunderbird 13.0 / seamonkey 2.10) interface for manipulating and querying the
current selected range of nodes within the document.
... methods addrange() adds a nsidomrange to the
current selection.
... collapsed() [noscript,notxpcom,nostdcall] boolean collapsed(); native code only!collapsenative void collapsenative( in nsinode parentnode, in long offset ); parameters parentnode offset collapsetoend() collapses the whole selection to a single point at the end of the
current selection (regardless of direction).
...And 3 more matches
nsITaskbarProgress
1.0 66 introduced gecko 1.9.2 inherits from: nsisupports last changed in gecko 1.9.2 (firefox 3.6 / thunderbird 3.1 / fennec 1.0) method overview void setprogressstate(in nstaskbarprogressstate state, in unsigned long long
currentvalue optional, in unsigned long long maxvalue optional); constants constant value description state_no_progress 0 stop displaying progress on the taskbar button.
...the
currentvalue and maxvalue parameters are optional and should be supplied when state is one of state_normal, state_error or state_paused.
... void setprogressstate( in nstaskbarprogressstate state, in unsigned long long
currentvalue, optional in unsigned long long maxvalue optional ); parameters state one of the state constants.
...And 3 more matches
nsIThread
this causes events to stop being dispatched to the thread, and causes any pending events to run to completion before the thread joins with the
current thread (see pr_jointhread() for details).
... during the execution of this method call, events for the
current thread may continue to be processed.
...since other threads may add events to the
current thread, it's possible that by the time this method returns, the event queue may no longer be empty, even if a false result is reported.
...And 3 more matches
Folders and message lists
interacting with the
current folder the folderdisplaywidget for the
current folder can be accessed via the global variable gfolderdisplay.
... getting the
current nsimsgfolder the nsimsgfolder interface contains many methods and attributes for working with folders.
... to get the nsimsgfolder instance for the
currently-displayed folder, just use gfolderdisplay.displayedfolder.
...And 3 more matches
Streams - Plugins
nperror npp_destroystream(npp instance, npstream *stream, nperror reason); the instance parameter is the
current plug-in instance; the stream parameter specifies the stream to be deleted.
... int32 npp_writeready(npp instance, npstream *stream); the instance parameter is the
current plug-in instance; the stream parameter specifies the
current stream.
... int32 npp_write(npp instance, npstream *stream, int32 offset, int32 len, void *buf); the instance parameter is the
current plug-in instance; the stream parameter specifies the
current stream.
...And 3 more matches
Accessibility Inspector - Firefox Developer Tools
the accessibility inspector provides a means to access important information exposed to assistive technologies on the
current page via the accessibility tree, allowing you to check what's missing or otherwise needs attention.
... features of the accessibility panel the enabled accessibility panel looks like so: on the left-hand side, there is a tree diagram representing all the items in the accessibility tree for the
current page.
... on the right-hand side, you can see further information about the
currently selected item.
...And 3 more matches
UI Tour - Firefox Developer Tools
the ui is split vertically into three panels source list pane source pane the contents of the third pane depend on the
current state of the debugger and may include the following sections: toolbar watch expressions breakpoints call stack scopes xhr breakpoints event listener breakpoints dom mutation breakpoints source list pane the source list pane lists all the javascript source files loaded into the page, and enables you to select one to debug.
... outline view the outline view shows a tree for navigating the
currently open file.
... source pane this shows the javascript file
currently loaded.
...And 3 more matches
Debugger.Script - Firefox Developer Tools
currently only entire modules evaluated via new webassembly.module are represented.
...the elements of the array are objects, each of which describes a single opcode, and contains the following properties: linenumber: the line number of the
current opcode.
... columnnumber: the column number of the
current opcode.
...And 3 more matches
Migrating from Firebug - Firefox Developer Tools
it is
currently missing the preview for html, xml and svg, though, which is tracked in bug 1247392 and bug 1262796, but when you click on the url of the request you switch to the network monitor, which has a preview tab.
...only the live preview of changes is
currently missing, which is tracked in bug 1067318 and bug 815464.
...they do
currently only allow to set script breakpoints.
...And 3 more matches
The JavaScript input interpreter - Firefox Developer Tools
to execute the snippet that is
currently in the editing pane, click the run button or press ctrl+enter (or cmd+return on macos).
... you can open files when in multi-line mode, and save the
current contents of the editing pane to a file.
... the console suggests completions from the scope of the
currently executing stack frame.
...And 3 more matches
Firefox Developer Tools
click it to display a list of the iframes on the
current page and select the one with which you want to work.
... click this button to take a screenshot of the
current page.
... style editor view and edit css styles for the
current page.
...And 3 more matches
AnalyserNode - Web APIs
analysernode.getfloatfrequencydata() copies the
current frequency data into a float32array array passed into it.
... analysernode.getbytefrequencydata() copies the
current frequency data into a uint8array (unsigned byte array) passed into it.
... analysernode.getfloattimedomaindata() copies the
current waveform, or time-domain, data into a float32array array passed into it.
...And 3 more matches
CanvasRenderingContext2D.isPointInPath() - Web APIs
the canvasrenderingcontext2d.ispointinpath() method of the canvas 2d api reports whether or not the specified point is contained in the
current path.
... syntax ctx.ispointinpath(x, y [, fillrule]); ctx.ispointinpath(path, x, y [, fillrule]); parameters x the x-axis coordinate of the point to check, unaffected by the
current transformation of the context.
... y the y-axis coordinate of the point to check, unaffected by the
current transformation of the context.
...And 3 more matches
History - Web APIs
the history interface allows manipulation of the browser session history, that is the pages visited in the tab or frame that the
current page is loaded in.
... length read only returns an integer representing the number of elements in the session history, including the
currently loaded page.
... go() asynchronously loads a page from the session history, identified by its relative location to the
current page, for example -1 for the previous page or 1 for the next page.
...And 3 more matches
MediaSession.setActionHandler() - Web APIs
the following strings identify the
currently available types of media session action: nexttrack advances playback to the next track.
... seekbackward seeks backward through the media from the
current position.
... seekforward seeks forward from the
current position through the media.
...And 3 more matches
Media Session action types - Web APIs
the following strings identify the
currently available types of media session action: nexttrack advances playback to the next track.
... seekbackward seeks backward through the media from the
current position.
... seekforward seeks forward from the
current position through the media.
...And 3 more matches
MediaSessionActionDetails - Web APIs
the following strings identify the
currently available types of media session action: nexttrack advances playback to the next track.
... seekbackward seeks backward through the media from the
current position.
... seekforward seeks forward from the
current position through the media.
...And 3 more matches
Using the Permissions API - Web APIs
this article provides a basic guide to using the w3c permissions api, which provides a programmatic way to query the status of api permissions attributed to the
current context.
... the only two apis
currently recognized by the permissions api in chrome are geolocation and notification, with firefox also recognizing push and webmidi.
...it uses geolocation to query the user's
current location and plot it out on a google map: you can run the example live, or view the source code on github.
...And 3 more matches
Selection API - Web APIs
concepts and usage to retrieve the
current text range the user has selected, you can use the window.getselection() or document.getselection() method, storing the return value — a selection object — in a variable for futher use.
... selection api interfaces selection represents the range of text selected by the user or the
current position of the caret.
... extensions to other interfaces window.getselection(), document.getselection() returns a selection object representing the range of text selected by the user or the
current position of the caret.
...And 3 more matches
Using DTMF with WebRTC - Web APIs
note, however, that although it's possible to send dtmf using webrtc, there is
currently no way to detect or receive incoming dtmf.
... webrtc
currently ignores these payloads; this is because webrtc's dtmf support is primarily intended for use with legacy telephone services that rely on dtmf tones to perform tasks such as: teleconferencing systems menu systems voicemail systems entry of credit card or other payment information passcode entry note: while the dtmf is not sent to the remote peer as audio, browsers may choose to play the corresponding tone to the local user as part of their user experience, since users are typically used to hearing their phone play the tones audibly.
...although this method is obsolete, this example supports it as a fallback to let older browsers (and those not yet updated to support the
current webrtc dtmf api) run the example.
...And 3 more matches
Rendering and the WebXR frame animation callback - Web APIs
this is due to early displays using the ac electrical grid's
current flow waveform, which cycles 60 times per second in the united states (50 in europe), for timing purposes.
... let lastframetime = 0; function mydrawframe(
currentframetime, frame) { let session = frame.session; let viewerpose; // schedule the next frame to be painted when the time comes.
... const deltatime =
currentframetime - lastframetime; lastframetime = time; // now call the scene rendering code once for each of // the session's views.
...And 3 more matches
Using the Web Animations API - Web APIs
currently, there should be at least two keyframes specified (representing the starting and ending states of the animation sequence).
...we could do that by setting her animation.
currenttime to 4 seconds, like so: alicechange.
currenttime = 4000; but while working on this animation, we might change alice’s duration a lot.
... wouldn’t it be better if we set her
currenttime dynamically, so we don’t have to make two updates at a time?
...And 3 more matches
Window.open() - Web APIs
the actual fetching of the url is deferred and starts after the
current script block finishes executing.
...if the
current window is the opener of the window you try to get an handle on.
...ate a new window or will re-use an already opened one" >promote firefox adoption</a></p> you can also make such function able to open only 1 secondary window and to reuse such single secondary window for other links in this manner: <script type="text/javascript"> var windowobjectreference = null; // global variable var previousurl; /* global variable that will store the url
currently in the secondary window */ function openrequestedsinglepopup(url) { if(windowobjectreference == null || windowobjectreference.closed) { windowobjectreference = window.open(url, "singlesecondarywindowname", "resizable,scrollbars,status"); } else if(previousurl != url) { windowobjectreference = window.open(url, "singlesecondarywindowname", "resizable=yes,scrollbars=yes...
...And 3 more matches
ARIA: button role - Accessibility
the values include aria-pressed="false" when a button is not
currently pressed, aria-pressed="true" to indicate a button is
currently pressed, and aria-pressed="mixed" if the button is considered to be partially pressed.
... aria-expanded if the button controls a grouping of other elements, the aria-expanded state indicates whether the controlled grouping is
currently expanded or collapsed.
... if the button has aria-expanded="false" set, the grouping is not
currently expanded; if the button has aria-expanded="true" set, it is
currently expanded; if the button has aria-expanded="undefined" set or the attribute is ommitted, it is not expandable.
...And 3 more matches
Keyboard-navigable JavaScript widgets - Accessibility
this technique involves programmatically moving focus in response to key events and updating the tabindex to reflect the
currently focused item.
... use onfocus to track the
current focus don't assume that all focus changes will come via key and mouse events: assistive technologies such as screen readers can set the focus to any focusable element.
...there is no standard dom interface to get the
current document focus.
...And 3 more matches
Media events - Developer guides
canplaythrough sent when the readystate changes to have_enough_data, indicating that the entire media can be played without interruption, assuming the download rate remains at least at the
current level.
...note: manually setting the
currenttime will eventually fire a canplaythrough event in firefox.
...information about the
current amount of the media that has been downloaded is available in the media element's buffered attribute.
...And 3 more matches
<audio>: The Embed Audio element - HTML: Hypertext Markup Language
currenttime reading
currenttime returns a double-precision floating-point value indicating the
current playback position, in seconds, of the audio.
... if the audio's metadata isn't available yet—thereby preventing you from knowing the media's start time or duration—
currenttime instead indicates, and can be used to change, the time at which playback will begin.
... otherwise, setting
currenttime sets the
current playback position to the given time and seeks the media to that position if the media is
currently loaded.
...And 3 more matches
String.prototype.padEnd() - JavaScript
the padend() method pads the
current string with a given string (repeated, if needed) so that the resulting string reaches a given length.
... the padding is applied from the end of the
current string.
... syntax str.padend(targetlength [, padstring]) parameters targetlength the length of the resulting string once the
current str has been padded.
...And 3 more matches
TypedArray.prototype.reduce() - JavaScript
currentvalue the
current element being processed in the typed array.
... index the index of the
current element being processed in the typed array.
... description the reduce method executes the callback function once for each element present in the typed array, excluding holes in the typed array, receiving four arguments: the initial value (or value from the previous callback call), the value of the
current element, the
current index, and the typed array over which iteration is occurring.
...And 3 more matches
Web video codec guide - Web media technologies
each frame of video is presented by applying a set of changes to the
currently-visible frame.
...the key frames are full frames, which are used to repair any damage or artifact residue that's
currently visible.
... av1
currently offers three profiles: main, high, and professional with increasing support for color depths and chroma subsampling.
...And 3 more matches
clipboard - Archive of obsolete content
currently the image type doesn't support transparency on windows.
... var clipboard = require("sdk/clipboard"); if (clipboard.
currentflavors.indexof("html") != -1) require("sdk/tabs").open("data:text/html;charset=utf-8," + clipboard.get("html")); set the clipboard contents to an image.
... var clipboard = require("sdk/clipboard"); if (clipboard.
currentflavors.indexof("image") != -1) require("sdk/tabs").open(clipboard.get()); as noted before, data type can be easily omitted for images.
...And 2 more matches
windows - Archive of obsolete content
with this module, you can: enumerate the
currently opened browser windows open new browser windows listen for common window events such as open and close private windows if your add-on has not opted into private browsing, then you won't see any private browser windows.
... returns browserwindow : properties browserwindows browserwindows provides access to all the
currently open browser windows as browserwindow objects.
... var windows = require("sdk/windows"); for (let window of windows.browserwindows) { console.log(window.title); } console.log(windows.browserwindows.length); the
currently active window is given by browserwindows.activewindow: var windows = require("sdk/windows").browserwindows; windows.on('activate', function(window) { console.log("a window was activated."); var activewindowtitle = windows.activewindow.title; console.log("active window title is: " + activewindowtitle); }); events the browserwindows property emits the following events which can be listened to using its on function.
...And 2 more matches
Localization - Archive of obsolete content
now whenever your javascript or html asks the localization system for the translation of the hello_id identifier, it will get the correct translation for the
current locale.
...ized-hello", label: "localized hello", icon: "./icon-16.png", onclick: function() { hello.show(); } }); var hello = require("sdk/panel").panel({ height: 75, width: 150, contenturl: require("sdk/self").data.url("my-panel.html") }); given locale files for "en-us" and "fr" which provide translations of hello_id, the panel will now display "hello!" or "bonjour !", according to the
current locale: the translation is inserted into the node which has the data-l10n-id attribute set.
... if you run it you'll see the expected output for the
current locale: info: hello!
...And 2 more matches
Preferences - Archive of obsolete content
default preferences fixme: someone should reword this section each preference may have up to two values — the
current value and the default value.
... that means there are two "pref trees:"
current and default, and each of them may or may not have a value for the preference in question.
... the effect of default preferences on get methods when one of the get methods of nsiprefbranch (assuming it's a branch of the tree with
current values) is called, it does the following: checks whether the
current tree has a value for the preference and whether or not the preference is locked.
...And 2 more matches
Extension Versioning, Update and Compatibility - Archive of obsolete content
if the install.rdf contains any targetplatform entries then the platform of the
currently running application must be listed or the installation will be rejected.
...in particular you should never specify a maxversion that is larger than the
currently available version of the application since you do not know what api and ui changes are just around the corner.
... compatibility updates during the automatic update checks, applications look for both new versions and updated compatibility information about the
currently installed version of an add-on.
...And 2 more matches
Session store API - Archive of obsolete content
var ss = components.classes["@mozilla.org/browser/sessionstore;1"] .getservice(components.interfaces.nsisessionstore); var
currenttab = gbrowser.selectedtab; var datatoattach = "i want to attach this"; ss.settabvalue(
currenttab, "key-name-here", datatoattach); this code sets the value of the key "key-name-here" to datatoattach.
... fetching a saved value you can fetch a value associated with a tab at any time (whether the tab is in the process of being restored or not), using code similar to the following: var ss = components.classes["@mozilla.org/browser/sessionstore;1"] .getservice(components.interfaces.nsisessionstore); var
currenttab = gbrowser.selectedtab; var retrieveddata = ss.gettabvalue(
currenttab, "key-name-here"); after this code executes, the variable retrieveddata contains the value saved for the key "key-name-here".
... deleting a value associated with a tab to delete a value from a tab, you can use code similar to the following: var ss = components.classes["@mozilla.org/browser/sessionstore;1"] .getservice(components.interfaces.nsisessionstore); var
currenttab = gbrowser.selectedtab; ss.deletetabvalue(
currenttab, "key-name-here"); remarks the window value save and restore functions work exactly like the tab-based functions by similar names.
...And 2 more matches
MMgc - Archive of obsolete content
threading the gc routines are not
currently thread safe, we're operating under the assumption that none of the player spawned threads create gc'd things.
...this is an unfortunate artifact of the existing code base, the avm+ is relatively clean and its reachability graph consists of basically 2 gc roots (the avmcore and urlstreams) but the avm- has a bunch (
currently includes securitycallbackdata, moviecliploader, camerainstance, fappacket, microphoneinstance, csoundchannel, urlrequest, responceobject, urlstream and urlstreamsecurity).
...
currently we make the decision on when to do a collection based on how much memory has been allocated since the last collection, if its over a certain fraction of the the total heap size we do a collection and if its not we expand.
...And 2 more matches
Menu - Archive of obsolete content
because it is still under development, the api
currently lives in the future and must be imported before it is used: jetpack.future.import("menu"); menus all menus in jetpack are jetpack.menu objects, including both built-in firefox menus and menus that features create.
... isshowing boolean true if the menu is
currently visible and false otherwise.
... type string
currently only "separator" is supported.
...And 2 more matches
Supporting private browsing mode - Archive of obsolete content
detecting private browsing mode determining whether or not the user is
currently in private browsing mode is simple.
...var pbs = components.classes["@mozilla.org/privatebrowsing;1"] .getservice(components.interfaces.nsiprivatebrowsingservice); var oldprivatemode = pbs.privatebrowsingmode; pbs.privatebrowsingenabled = true; /* this is all private */ pbs.privatebrowsingenabled = oldprivatemode; in this example, we save the
current state of the private browsing mode setting in the oldprivatemode variable, then turn on private browsing by setting its value to true.
... simply instantiate the helper, then you can use its inprivatebrowsing flag to detect whether or not private browsing is
currently enabled, as shown here: var listener = new privatebrowsinglistener(); if (listener.inprivatebrowsing) { // we are in private browsing mode!
...And 2 more matches
Venkman Introduction - Archive of obsolete content
stop button waiting for execution also note that when you are
currently executing javascript and click the stop button, the javascript stops immediately.
...when the debugger is stopped, the local variables view displays values for the
current function.
... double-clicking on a stack frame will change the "
current" frame.
...And 2 more matches
Introduction to XUL - Archive of obsolete content
we don't have a
current "requirements" document.
...our
current code tends not to be strict about enforcing this, especially for tags and attributes in the html namespace.
...these are
currently nonstandard, of course, and subject to change for now.
...And 2 more matches
Using the standard theme - Archive of obsolete content
you can either provide a complete custom styling, but most of the time you also want to be able to reuse the standard theme (also called the "global skin") of the base application for non-custom elements, transparently with regard to which theme the user has
currently chosen.
...meaning, some internal default will be applied, which does by no means correspond to the standard theme (the theme
currently chosen by the user in the theme selector), or even the default theme delivered with your the base application.
... applying the standard theme in order to use the theme
currently chosen by the user of the base application (the so called "global skin"), you have to add the following line to your xul file: <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> this imports the styles found in the <tt>global/skin</tt> chrome directory and will make the standard xul widgets of your application use the selected chosen theme.
...And 2 more matches
XUL Questions and Answers - Archive of obsolete content
loading remote dtds for xml documents is
currenty not supported in xul.
... the
current issue is a person exploring if it is possible to have checkbox support for multi column lists.
...an example of this is: var tree = document.getelementbyid('treeid'); selectedtreeitem = tree.view.getitematindex(tree.
currentindex); selectedtreeitem.firstchild.setattribute('style', 'background: #ff0000'); what is an example of tab browser in xul?
...And 2 more matches
notificationbox - Archive of obsolete content
finding the
current notification box within a firefox extension, you can retrieve the
current notification box for a specific tab by calling the global function getnotificationbox(): notifybox = chromewin.getnotificationbox(notifywindow) notifybox = getnotificationbox(notifywindow) // applies to
current context's window object here, chromewin is the xul window (usually just window), and notifywindow is the web c...
... properties
currentnotification, allnotifications, notificationshidden methods appendnotification, getnotificationwithvalue, removeallnotifications, remove
currentnotification, removenotification, removetransientnotifications, attributes inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasourc...
...ty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties
currentnotification type: notification element the
currently displayed notification element or null.
...And 2 more matches
prefwindow - Archive of obsolete content
attributes buttonalign, buttondir, buttonorient, buttonpack, buttons, defaultbutton, lastselected, onbeforeaccept, ondialogaccept, ondialogcancel, ondialogdisclosure, ondialoghelp, onload, onunload, title, type properties buttons,
currentpane, defaultbutton, lastselected, preferencepanes, type methods acceptdialog, addpane, canceldialog, centerwindowonscreen, getbutton, opensubdialog, openwindow, showpane examples <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <prefwindow xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <prefpane id="saveoptions" label="backups...
... the default setting of browser.preferences.instantapply
currently is true on linux and mac os and false on windows (which however might or might not change soon, see bug 738797 and bug 1037225).
...returning false doesn't
currently prevent the dialog from closing, but does prevent saving (bug 474527).
...And 2 more matches
radiogroup - Archive of obsolete content
focuseditem type: radio element holds the
currently focused item in the radiogroup, which may or may not be the same as the selected item.
... selectedindex type: integer returns the index of the
currently selected item.
...returns -1 if no items are selected selecteditem type: element holds the
currently selected item.
...And 2 more matches
timepicker - Archive of obsolete content
datevalue type: date the date that is
currently entered or selected in the datepicker as a date object.
... hour type: integer the
currently selected hour from 0 to 23.
... minute type: integer the
currently selected minute from 0 to 59.
...And 2 more matches
NPN_GetURL - Archive of obsolete content
syntax #include <npapi.h> nperror npn_geturl(npp instance, const char* url, const char* target); parameters the function has the following parameters: instance pointer to the
current plug-in instance.
... _self or _
current: load the link into the same window the plug-in instance occupies.
... if the target is null, the browser creates a new stream and delivers the data to the
current instance regardless of the mime type of the url.
...And 2 more matches
The First Install Problem - Archive of obsolete content
this is an old working document; see en/gecko_plugin_api_reference/plug-in_development_overview for
current information.
... caveat emptor: if the key cannot be created under hkey_local_machine, create it as hkey_
current_user\software\mozillaplugins\ under hkey_
current_user.
...thus, some installers may need to write to the hkey_
current_user key; this doesn't require administrator privileges.
...And 2 more matches
Reference - Archive of obsolete content
so are "
current object" and "context object".
...--maian 23:43, 21 september 2005 (pdt) i think we need a new section in the reference that specifies the differences between versions, collecting this information into a single location rather than leaving it scattered haphazardly throughout the reference as it
currently is.
... once that is done, the various code samples should be updated to reflect
current practices and code if they cannot be written in a "version-neutral" manner.
...And 2 more matches
Implementation Status - Archive of obsolete content
specification chapter index here we give an overview of xforms 1.1 specification chapters and the
current status of the mozilla support.
... the sections are marked with their
current status: supported, partial support, in progress, and not
currently supported.
... 7.9.8 adjust-datetime-to-timezone() unsupported 7.9.9 seconds() supported 7.9.10 months() supported 7.10.1 instance() partial instance() won't work with no parameter or empty string as a parameter 419190; 7.10.2
current() supported 7.10.3 id() unsupported 7.10.4 context() unsupported 7.11.1 choose() unsupported 7.11.2 event() supported 7.12 extension functions unsupported not a compli...
...And 2 more matches
Assessment: Accessibility troubleshooting - Learn web development
color the text is difficult to read because of the
current color scheme.
... can you do a test of the
current color contrast (text/background), report the results of the test, and then fix it by changing the assigned colors?
... the images the images are
currently inaccessible to screenreader users.
...And 2 more matches
Looping code - Learn web development
in pseudocode, this would look something like the following: loop(food = 0; foodneeded = 10) { if (food >= foodneeded) { exit loop; // we have enough food; let's go home } else { food += 2; // spend an hour collecting 2 more food // loop will then run again } } so the amount of food needed is set at 10, and the amount the farmer
currently has is set at 0.
... inside the loop, we concatenate the
current loop item (cats[i] , which is cats[whatever i is at the time]) along with a comma and space, onto the end of the info variable.
... inside the loop, we first split the
current contact (contacts[i]) at the colon character, and store the resulting two values in an array called splitcontact.
...And 2 more matches
A first splash into JavaScript - Learn web development
at the moment you'll see a simple heading, paragraph of instructions and form for entering a guess, but the form won't
currently do anything.
... at this point, replace your
current checkguess() function with this version instead: function checkguess() { let userguess = number(guessfield.value); if (guesscount === 1) { guesses.textcontent = 'previous guesses: '; } guesses.textcontent += userguess + ' '; if (userguess === randomnumber) { lastresult.textcontent = 'congratulations!
... the first line (line 2 above) declares a variable called userguess and sets its value to the
current value entered inside the text field.
...And 2 more matches
Starting our Svelte Todo list app - Learn web development
code along with us git clone the github repo (if you haven't already done it) with: git clone https://github.com/opensas/mdn-svelte-tutorial.git then to get to the
current app state, run cd mdn-svelte-tutorial/02-starting-our-todo-app or directly download the folder's content: npx degit opensas/mdn-svelte-tutorial/02-starting-our-todo-app remember to run npm install && npm run dev to start your app in development mode.
...the console should
currently give you a message along the lines of "<app> was created with unknown prop 'name'".
...te the rest of the tutorial</span> </button> </div> </div> </li> </ul> <hr /> <!-- moreactions --> <div class="btn-group"> <button type="button" class="btn btn__primary">check all</button> <button type="button" class="btn btn__primary">remove completed</button> </div> </div> check the rendered out again, and you'll see something like this: it's
current not very nicely styled, and also functionally useless.
...And 2 more matches
Componentizing our Svelte app - Learn web development
code along with us git clone the github repo (if you haven't already done it) with: git clone https://github.com/opensas/mdn-svelte-tutorial.git then to get to the
current app state, run cd mdn-svelte-tutorial/04-componentizing-our-app or directly download the folder's content: npx degit opensas/mdn-svelte-tutorial/04-componentizing-our-app remember to run npm install && npm run dev to start your app in development mode.
...first of all, we need to import it — add the following line at the top of the todos.svelte <script> section: import filterbutton from './filterbutton.svelte' now, replace the filters <div> with a call to the filterbutton component, which takes the
current filter as a prop — the below line is all you need: <filterbutton {filter} /> note: remember that when the html attribute name and variable matches, they can be replaced with {variable}, that's why we could replace <filterbutton filter={filter} /> with <filterbutton {filter} />.
...we are also passing the
current todo object into the component as a prop.
...And 2 more matches
Getting started with Svelte - Learn web development
it's main
current disadvantages are that it is a young framework — its ecosystem is therefore more limited in terms of tooling, support, plugins, clear usage patterns, etc.
...
currently should only contain setuptypescript.js, a script that sets up typescript support in svelte.
...
currently, it's the svelte logo.
...And 2 more matches
CSUN Firefox Materials
" -- darren paskell, from window-eyes beta testing list firefox works with popular screen readers, with the best support
currently coming from gw micro's window-eyes 5.5.
...mozilla corporation is
currently reaching out to work with ai squared, the makers of zoomtext, in order to enable complete support of advanced zoomtext features such as the doc reader and app reader.
... firefox on linux
currently boasts the best onscreen keyboard support in the industry via gok, the gnome onscreen keyboard.
...And 2 more matches
Overview of Mozilla embedding APIs
currently, once gecko has been shutdown, it cannot be restarted in the same process space...
...each webbrowser exposes a tree of domwindows - representing the frame hierarchy for the
current document.
...this interface supports cut/copy/paste operations on the
current selection within the webbrowser window.
...And 2 more matches
TraceMalloc
tracemalloc captures stack traces of all malloc, calloc , realloc, and free calls (this
currently covers all operator new and delete calls in mozilla, too).
...if you run with --trace-malloc -, your code can call ns_tracemallocdumpallocations(pathname) at opportune times, and a human-readable listing of the
current heap, including stack traces for every allocation, will be written to pathname.
... tracemallocchangelogfd(logfd) - change the
current log file to the one identified by logfd, returning the previous fd (so you can maintain a number of open files; keep their fds in a js array!).
...And 2 more matches
Optimizing Applications For NSPR
macintosh the
current port of nspr for macintosh will not be usable in its own right.
...at thread switch time, the stack of the
current running thread is copied to other storage associated with that thread and the about-to-be-dispatched thread's stack data is copied back onto the windows stack just before the thread is given control.
...however, another thread does not see the data as intended because the stack has been swapped out to the shadow stack and the
current thread's stack now occupies the windows stack.
...And 2 more matches
certutil
if this option is not used, the validity check defaults to the
current system time.
...for example: -t "tcu,cu,tuw" use the -l option to see a list of the
current certificates and trust attributes in a certificate database.
...the validity period begins at the
current system time unless an offset is added or subtracted with the -w option.
...And 2 more matches
Shumway
this article will help you understand shumway — mozilla's open standards-based flash renderer — and what it means for the community of developers
currently creating the adobe flash platform.
...it is
currently available as an extension and as a component in firefox's nightly builds that can be enabled through about:config (you need to find the shumway.disabled preference and set it to false).
...some of its
current limitations are just temporary, however.
...And 2 more matches
JS_AliasElement
this name corresponds to a string representation of the element's
current index number.
...name is the element's
current index in the object, and alias is the alternate index to assign to the element.
... this feature is deprecated, meaning that it is
currently supported only for backward compatibility with existing applications.
...And 2 more matches
TPS Bookmark Lists
the properties for this object include the uri, title, loadinsidebar, description, tags, keyword properties above, plus two additional properties: location: the full path of the folder that the bookmark should be moved to position: the title of the existing bookmark item, in the
current folder, where this bookmark should be moved to (i.e., this bookmark would be inserted into the bookmark list at the position of the named bookmark, causing that bookmark to be positioned below the
current one) example: { uri: "http://www.google.com", title: "google", loadinsidebar: false, tags: [ "google", "computers", "misc" ] } livemark objects valid properties are: livemark: the liv...
...the properties for this object include the livemark, siteuri, feeduri properties above, plus two additional properties: location: the full path of the folder that the livemark should be moved to position: the title of the existing bookmark item, in the
current folder, where this livemark should be moved to (i.e., this livemark would be inserted into the bookmark list at the position of the named bookmark, causing that bookmark to be positioned below the
current one) example: { livemark: "livemarkone", feeduri: "http://rss.wunderground.com/blog/jeffmasters/rss.xml", siteuri: "http://www.wunderground.com/blog/jeffmasters/show.html" } folder objec...
...the properties for this object include the folder, description properties above, plus two additional properties: location: the full path of the folder that this folder should be moved to position: the title of the existing bookmark item, in the
current folder, where this folder should be moved to (i.e., this folder would be inserted into the bookmark list at the position of the named bookmark, causing that bookmark to be positioned below this folder) example: { folder: "folderb", changes: { location: "menu/foldera", folder: "folder b", description: "folder description" } } separator objects valid properties are: separator: ...
...And 2 more matches
nsIApplicationCacheService
note: this method should propagate the entry to other application caches with the same opportunistic namespace; however, this is not
currently implemented.
... void cacheopportunistically( in nsiapplicationcache cache, in acstring key ); parameters cache the cache in which the entry is
currently cached.
...deactivategroup() deactivates the
currently active cache object for the specified cache group.
...And 2 more matches
nsIApplicationUpdateService
indicates if the
current user has access privileges to the install directory.
...this depends on whether or not the
current user has the necessary access privileges for the install directory.
... methods adddownloadlistener() adds a listener that receives progress and state information about the update that is
currently being downloaded.
...And 2 more matches
nsIDOMGeoGeolocation
you can request a single notification of the user's
current position, or you can monitor the position over time.
...1"] .getservice(components.interfaces.nsidomgeogeolocation); note: if nsidgeogeolocation throws an exception when importing, try using this: var geolocation = components.classes["@mozilla.org/geolocation;1"] .getservice(components.interfaces.nsisupports); method overview void clearwatch(in unsigned short watchid); void get
currentposition(in nsidomgeopositioncallback successcallback, [optional] in nsidomgeopositionerrorcallback errorcallback, [optional] in nsidomgeopositionoptions options); unsigned short watchposition(in nsidomgeopositioncallback successcallback, [optional] in nsidomgeopositionerrorcallback errorcallback, ...
...get
currentposition() acquires the user's
current position via a new position object.
...And 2 more matches
nsIDragSession
inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview void getdata( in nsitransferable atransferable, in unsigned long aitemindex ); boolean isdataflavorsupported( in string adataflavor ); attributes attribute type description candrop boolean set the
current state of the drag, whether it can be dropped or not.
... datatransfer nsidomdatatransfer the data transfer object for the
current drag operation.
... dragaction unsigned long sets the action (copy, move, link and so on) for the
current drag.
...And 2 more matches
nsIEventTarget
1.0 66 introduced gecko 1.6 inherits from: nsisupports last changed in gecko 1.9 (firefox 3) method overview void dispatch(in nsirunnable event, in unsigned long flags); boolean ison
currentthread(); void postevent(in pleventptr aevent); native code only!
... note: passing this flag to dispatch may have the side-effect of causing other events on the
current thread to be processed while waiting for the given event to be processed.
... ison
currentthread() check to see if this event target is associated with the
current thread.
...And 2 more matches
nsIJumpListBuilder
method overview void abortlistbuild(); boolean addlisttobuild(in short acattype, in nsiarray items optional, in astring catname optional); boolean commitlistbuild(); boolean deleteactivelist(); boolean initlistbuild(in nsimutablearray removeditems); attributes attribute type description available short indicates whether jump list taskbar features are supported by the
current host.
... maxlistitems short the maximum number of jump list items the
current desktop can support.
... methods abortlistbuild() aborts and clears the
current jump list build.
...And 2 more matches
nsILocalFile
appendrelativenativepath appends a relative, native character encoding, path to the
current path of the nsilocalfile object.
... appendrelativepath() appends a relative native path to the
current path of the nsilocalfile object.
...all
current settings will be reset.
...And 2 more matches
nsIMsgDBHdr
for instance, msghdrfor
currentmessage() will return the
currently selected message's header.
...for the
currently selected message, thunderbird provides a utility function: setmsghdrpropertyandreload(aproperty, avalue); which duplicates this functionality without requiring you to grab the
current header.
...thunderbird provides a utility function which performs this for the
currently selected message: mark
currentmessageasread().
...And 2 more matches
nsIProfile
tiveprofiledir, in wstring langcode, in boolean useexistingdir); void deleteprofile(in wstring name, in boolean candeletefiles); void getprofilelist(out unsigned long length, [retval, array, size_is(length)] out wstring profilenames); boolean profileexists(in wstring profilename); void renameprofile(in wstring oldname, in wstring newname); void shutdown
currentprofile(in unsigned long shutdowntype); attributes attribute type description
currentprofile wstring the name of the profile
currently in use.
...unimplemented methods cloneprofile() clones the
current profile, creating a copy of it with a new name.
... void cloneprofile( in wstring profilename ); parameters profilename the name to assign to the new clone of the
current profile.
...And 2 more matches
Index
elaborate on the mime changes that were made for spam
currently, spam filtering is does not work for news, but it would be possible to add support for this.
... 79 building a thunderbird extension 6: adding javascript in this step we will create a small piece of javascript code that inserts the
current date into our statusbar widget.
... 85 error reporting tools thunderbird
currently, thunderbird tends to eat a lot of exceptions.
...And 2 more matches
Mail composition back end
currently, this method does several functions depending on the arguments passed in, but this could easily lead to confusion.
...const char *amsgid, - the message id for the message being sent pruint32 aprogress, - the progress so far pruint32 aprogressmax) = 0; - the maximum progress (aprogress should be used as a numerator and aprogressmax as a denominator for a message sent percentage) onstatus the onstatus gives the listener status updates for the
current operation.
...
currently, this pref is a "char *" which is the specific name of the folder, but this will more than likely change to a prbool (boolean) preference.
...And 2 more matches
Plug-in Basics - Plugins
the installed plug-ins page lists each installed plug-in along with its mime type or types, description, file extensions, and the
current state (enabled or disabled) of the plug-in for each mime type assigned to it.
... directories pointed to by hkey_
current_user\software\mozillaplugins\*\path registry value, where * can be replaced by any name.
... /system/library/frameworks/javavm.framework/versions/
current/resources.
...And 2 more matches
about:debugging (before Firefox 68) - Firefox Developer Tools
this page enables you to do two things: load an add-on temporarily from disk connect the add-on debugger to any restartless add-ons connecting the add-on debugger the add-ons page in about:debugging lists all restartless add-ons that are
currently installed (note that this list may include add-ons that came preinstalled with your firefox).
... tabs in firefox 49 onwards, a tabs page is available in about:debugging — this provides a complete list of all the debuggable tabs open in the
current firefox instance.
... "running": the service worker is
currently running.
...And 2 more matches
about:debugging - Firefox Developer Tools
this firefox provides information about temporary extensions you have loaded for debugging, extensions that are installed in firefox, the tabs that you
currently have open, and service workers running on firefox.
... the add-ons section in about:debugging lists all web extensions that are
currently installed.
... running: the service worker is
currently running.
...And 2 more matches
AudioParam - Web APIs
there are two kinds of audioparam, a-rate and k-rate parameters: an a-rate audioparam takes the
current audio parameter value for each sample frame of the audio signal.
...the time used is the one defined in audiocontext.
currenttime.
... audioparam.value represents the parameter's
current value as of the
current time; initially set to the value of defaultvalue.
...And 2 more matches
AudioWorkletGlobalScope - Web APIs
as the global execution context is shared across the
current baseaudiocontext, it's possible to define any other variables and perform any actions allowed in worklets — apart from defining audioworkletprocessor-derived classes.
... properties
currentframe read only returns an integer that represents the ever-increasing
current sample-frame of the audio block being processed.
...
currenttime read only returns a double that represents the ever-increasing context time of the audio block being processed.
...And 2 more matches
CanvasRenderingContext2D.save() - Web APIs
the canvasrenderingcontext2d.save() method of the canvas 2d api saves the entire state of the canvas by pushing the
current state onto a stack.
... the drawing state the drawing state that gets saved onto a stack consists of: the
current transformation matrix.
... the
current clipping region.
...And 2 more matches
Document.importNode() - Web APIs
the document object's importnode() method creates a copy of a node or documentfragment from another document, to be inserted into the
current document later.
...to include it, you need to call an insertion method such as appendchild() or insertbefore() with a node that is
currently in the document tree.
... syntax const importednode = document.importnode(externalnode [, deep]); parameters externalnode the external node or documentfragment to import into the
current document.
...And 2 more matches
Document.selectedStyleSheetSet - Web APIs
the selectedstylesheetset property indicates the name of the style sheet set that's
currently in use.
... syntax
currentstylesheetset = document.selectedstylesheetset; document.selectedstylesheet = newstylesheetset; on return,
currentstylesheetset indicates the name of the style sheet set
currently in use.
... you can also set the
current style sheet set using this property.
...And 2 more matches
DocumentOrShadowRoot.activeElement - Web APIs
the activeelement read-only property of the document and shadowroot interfaces returns the element within the dom or shadow dom tree that
currently has focus.
...which elements are focusable varies depending on the platform and the browser's
current configuration.
... note: focus (which element is receiving user input events) is not the same thing as selection (the
currently highlighted part of the document).
...And 2 more matches
Traversing an HTML table with JavaScript and DOM Interfaces - Web APIs
function start() { // get the reference for the body var mybody = document.getelementsbytagname("body")[0]; // creates <table> and <tbody> elements mytable = document.createelement("table"); mytablebody = document.createelement("tbody"); // creating all cells for(var j = 0; j < 3; j++) { // creates a <tr> element my
current_row = document.createelement("tr"); for(var i = 0; i < 4; i++) { // creates a <td> element my
current_cell = document.createelement("td"); // creates a text node
currenttext = document.createtextnode("cell is row " + j + ", column " + i); // appends the text node we created into the cell <td> ...
... my
current_cell.appendchild(
currenttext); // appends the cell <td> into the row <tr> my
current_row.appendchild(my
current_cell); } // appends the row <tr> into <tbody> mytablebody.appendchild(my
current_row); } // appends <tbody> into <table> mytable.appendchild(mytablebody); // appends <table> into <body> mybody.appendchild(mytable); // sets the border attribute of mytable to 2; mytable.setattribute("border","2"); } </script> </head> <body onload="start()"> </body> </html> manipulating the table with dom and css getting a text node from the table this example introduces two new dom attributes.
... mybody = document.getelementsbytagname("body")[0]; mytable = mybody.getelementsbytagname("table")[0]; mytablebody = mytable.getelementsbytagname("tbody")[0]; myrow = mytablebody.getelementsbytagname("tr")[1]; mycel = myrow.getelementsbytagname("td")[1]; // first item element of the childnodes list of mycel myceltext=mycel.childnodes[0]; // content of
currenttext is the data content of myceltext
currenttext=document.createtextnode(myceltext.data); mybody.appendchild(
currenttext); getting an attribute value at the end of sample1 there is a call to setattribute on the mytable object.
...And 2 more matches
Event.eventPhase - Web APIs
the eventphase read-only property of the event interface indicates which phase of the event flow is
currently being evaluated.
... syntax let phase = event.eventphase; value returns an integer value which specifies the
current evaluation phase of the event flow.
... constants event phase constants these values describe which phase the event flow is
currently being evaluated.
...And 2 more matches
Fullscreen API - Web APIs
properties the document interface provides properties that can be used to determine if full-screen mode is supported and available, and if full-screen mode is
currently active, which element is using the screen.
... documentorshadowroot.fullscreenelement the fullscreenelement property tells you the element that's
currently being displayed in full-screen mode on the dom (or shadow dom).
... obsolete properties document.fullscreen a boolean value which is true if the document has an element
currently being displayed in full-screen mode; otherwise, this returns false.
...And 2 more matches
IDBCursor.update() - Web APIs
the update() method of the idbcursor interface returns an idbrequest object, and, in a separate thread, updates the value at the
current position of the cursor in the object store.
... syntax var anidbrequest = myidbcursor.update(value); parameters value the new value to be stored at the
current position.
... invalidstateerror the cursor was created using idbindex.openkeycursor, is
currently being iterated, or has iterated past its end.
...And 2 more matches
IDBCursor - Web APIs
this function never returns null or throws an exception, even if the cursor is
currently being iterated, has iterated past its end, or its transaction is not active.
... idbcursor.primarykey read only returns the cursor's
current effective primary key.
... if the cursor is
currently being iterated or has iterated outside its range, this is set to undefined.
...And 2 more matches
Intersection Observer API - Web APIs
targeting an element to be observed once you have created the observer, you need to give it a target element to watch: let target = document.queryselector('#listitem'); observer.observe(target); // the callback we setup for the observer will be executed now for the first time // it waits until we assign a target to our observer (even if the target is
currently not visible) whenever the target meets a threshold specified for the intersectionobserver, the callback is invoked.
...check the value of the isintersecting property to see if the entry represents an element that
currently intersects with the root.
... you can see if the target
currently intersects the root by looking at the entry's isintersecting property; if its value is true, the target is at least partially intersecting the root element or document.
...And 2 more matches
MediaDevices.getUserMedia() - Web APIs
null; try { stream = await navigator.mediadevices.getusermedia(constraints); /* use the stream */ } catch(err) { /* handle the error */ } } similarly, using the raw promises directly, the code looks like this: navigator.mediadevices.getusermedia(constraints) .then(function(stream) { /* use the stream */ }) .catch(function(err) { /* handle the error */ }); note: if the
current document isn't loaded securely, navigator.mediadevices will be undefined, and you cannot use getusermedia().
...it also happens if the user has specified that the
current browsing instance is not permitted access to the device, the user has denied access for the
current session, or the user has denied all access to user media devices globally.
...the icon is gray if the permission is in place but recording is not
currently underway.
...And 2 more matches
MediaKeySession - Web APIs
mediakeysession.expiration read only the time after which the keys in the
current session can no longer be used to decrypt media data, or nan if no such time exists.
... mediakeysession.keystatuses read only contains a reference to a read-only mediakeystatusmap of the
current session's keys and their statuses.
... mediakeysession.sessionid read only contains a unique string generated by the cdm for the
current media object and its associated keys or licenses.
...And 2 more matches
MediaSession.playbackState - Web APIs
the playbackstate property of the mediasession interface indicates whether the
current media session is playing or paused.
... syntax let playbackstate = mediasession.playbackstate; mediasession.playbackstate = playbackstate; value a domstring indicating the
current playback state of the media session.
... the value may be one of the following: none the browsing context doesn't
currently know the
current playback state, or the playback state is not available at this time.
...And 2 more matches
Notification.permission - Web APIs
the permission read-only property of the notification interface indicates the
current permission granted by the user for the
current origin to display web notifications.
... syntax var permission = notification.permission; value a domstring representing the
current permission.
... the value can be: granted: the user has explicitly granted permission for the
current origin to display system notifications.
...And 2 more matches
Path2D - Web APIs
methods path2d.addpath() adds a path to the
current path.
... path2d.closepath() causes the point of the pen to move back to the start of the
current sub-path.
... it tries to draw a straight line from the
current point to the start.
...And 2 more matches
Pointer Lock API - Web APIs
as it has recently unprefixed, you would
currently declare it something like this, for example if you wanted to request pointer lock on a canvas element: canvas.requestpointerlock = canvas.requestpointerlock || canvas.mozrequestpointerlock; canvas.requestpointerlock() if a user has exited pointer lock via the default unlock gesture, or pointer lock has not previously been entered for this document, an event gene...
...the new property is used for accessing the
currently locked element (if any), and is named pointerlockelement and the new method on document is exitpointerlock() and, as the name implies, it is used to exit the pointer lock.
... the pointerlockelement property is useful for determining if any element is
currently pointer locked (e.g., for doing a boolean check) and also for obtaining a reference to the locked element, if any.
...And 2 more matches
RTCIceCandidatePairStats.selected - Web APIs
the non-standard, firefox-specific rtcicecandidatepairstats property selected indicates whether or not the candidate pair described by the object is the one
currently being used to communicate with the remote peer.
... syntax isselected = icpstats.selected; value a firefox-specific boolean value which is true if the candidate pair described by this object is the one
currently in use.
... example the function shown in this example identifies the
currently-selected candidate pair from a statistics report by first iterating over each report, looking for a transport report; when one is found, that transport's selectedcandidatepairid is used to get the rtcicecandidatepair describing the connection.
...And 2 more matches
RTCPeerConnection.setRemoteDescription() - Web APIs
the rtcpeerconnection method setremotedescription() sets the specified session description as the remote peer's
current offer or answer.
...instead, the
current connection configuration remains in place until negotiation is complete.
... syntax apromise = rtcpeerconnection.setremotedescription(sessiondescription); parameters sessiondescription an rtcsessiondescriptioninit or rtcsessiondescription which specifies the remote peer's
current offer or answer.
...And 2 more matches
RTCRtpSender.replaceTrack() - Web APIs
the rtcrtpsender method replacetrack() replaces the track
currently being used as the sender's source with a new mediastreamtrack.
... syntax trackreplacedpromise = sender.replacetrack(newtrack); parameters newtrack optional a mediastreamtrack specifying the track with which to replace the rtcrtpsender's
current source track.
... the new track's kind must be the same as the
current track's, or the replace track request will fail.
...And 2 more matches
ServiceWorkerContainer - Web APIs
most importantly, it exposes the serviceworkercontainer.register() method used to register service workers, and the serviceworkercontainer.controller property used to determine whether or not the
current page is actively controlled.
...it returns a promise that will never reject, and which waits indefinitely until the serviceworkerregistration associated with the
current page has an serviceworkerregistration.active worker.
...see /docs/web/api/serviceworkerregistration }).catch(function(error) { console.log('service worker registration failed:', error); }); // independent of the registration, let's also display // information about whether the
current page is controlled // by an existing service worker, and when that // controller changes.
...And 2 more matches
SpeechRecognition - Web APIs
speechrecognition.grammars returns and sets a collection of speechgrammar objects that represent the grammars that will be understood by the
current speechrecognition.
... speechrecognition.lang returns and sets the language of the
current speechrecognition.
... speechrecognition.serviceuri specifies the location of the speech recognition service used by the
current speechrecognition to handle the actual recognition.
...And 2 more matches
TextTrack.mode - Web APIs
you can read this value to determine the
current mode, and you can change this value to switch modes.
... syntax var mode = texttrack.mode; texttrack.mode = "disabled" | "hidden" | "showing"; value a domstring which indicates the track's
current mode.
... text track mode constants the text track mode—sometimes identified using the idl enum texttrackmode—must be one of the following values: disabled the text track is
currently disabled.
...And 2 more matches
TextTrack - Web APIs
texttrack.activecues read only a texttrackcuelist object listing the
currently active set of text track cues.
... track cues are active if the
current playback position of the media is between the cues' start and end times.
... thus, for displayed cues such as captions or subtitles, the active cues are
currently being displayed.
...And 2 more matches
Touch events - Web APIs
the touchevent interface encapsulates all of the touchpoints that are
currently active.
...its responsibility in this example is to update the cached touch information and to draw a line from the previous position to the
current position of each touch.
... after drawing the line, we call array.splice() to replace the previous information about the touchpoint with the
current information in the ongoingtouches array.
...And 2 more matches
WebGLRenderingContext.makeXRCompatible() - Web APIs
javascript the code that handles starting up graphics, switching to vr mode, and so forth looks like this: const outputcanvas = document.queryselector(".output-canvas"); const gl = outputcanvas.getcontext("webgl"); let xrsession = null; let usingxr = false; let
currentscene = "scene1"; let glstartbutton; let xrstartbutton; window.addeventlistener("load", (event) => { loadsceneresources(
currentscene); glstartbutton.addeventlistener("click", handlestartbuttonclick); xrstartbutton.addeventlistener("click", handlestartbuttonclick); }); outputcanvas.addeventlistener("webglcontextlost", (event) => { /* the context has been lost but can be restored */ eve...
...nt.canceled = true; }); /* when the gl context is reconnected, reload the resources for the
current scene.
... */ outputcanvas.addeventlistener("webglcontextrestored", (event) => { loadsceneresources(
currentscene); }); async function onstartedxrsession(xrsession) { try { await gl.makexrcompatible(); } catch(err) { switch(err) { case aborterror: showsimplemessagebox("unable to transfer the game to your xr headset.", "cancel"); break; case invalidstateerror: showsimplemessagebox("you don't appear to have a compatible xr headset available.", "cancel"); break; default: handlefatalerror(err); break; } xrsession.end(); } } async function handlestartbuttonclick(event) { if (event.target.classlist.contains("use-webxr") && navigator.xr) { try { xrsession = await navigator.xr.requestsession("immersive-vr"); ...
...And 2 more matches
WebGLRenderingContext - Web APIs
webglrenderingcontext.drawingbufferwidth the read-only width of the
current drawing buffer.
... webglrenderingcontext.drawingbufferheight the read-only height of the
current drawing buffer.
... webglrenderingcontext.depthfunc() specifies a function that compares incoming pixel depth to the
current depth buffer value.
...And 2 more matches
WebGL model view projection - Web APIs
the view matrix is responsible for moving the objects in the scene to simulate the position of the camera being changed, altering what the viewer is
currently able to see.
...this is the region of space whose contents are visible to the user at the
current time.
...however the
current code as we've built it has some issues.
...And 2 more matches
Using the Web Storage API - Web APIs
feature-detecting localstorage to be able to use localstorage, we should first verify that it is supported and available in the
current browsing session.
... testing for availability note: this api is available in
current versions of all major browsers.
...for example: function setstyles() { var
currentcolor = localstorage.getitem('bgcolor'); var
currentfont = localstorage.getitem('font'); var
currentimage = localstorage.getitem('image'); document.getelementbyid('bgcolor').value =
currentcolor; document.getelementbyid('font').value =
currentfont; document.getelementbyid('image').value =
currentimage; htmlelem.style.backgroundcolor = '#' +
currentcolor; pelem.style.fontfamily = cu...
...And 2 more matches
XRSession.visibilityState - Web APIs
the read-only visibilitystate property of the xrsession interface is a string indicating whether the webxr content is
currently visible to the user, and if it is, whether it's the primary focus.
... syntax visibilitystate = xrsession.visibilitystate; value a domstring containing one of the values defined in the enumerated type xrvisibilitystate; this string indicates whether or not the xr content is visible to the user and if it is, whether or not it's
currently the primary focus.
... the possible values of visibilitystate are: hidden the virtual scene generated by the xrsession is not
currently visible to the user, so its requestanimationframe() callbacks are not being executed until thevisibilitystate changes.
...And 2 more matches
XRView - Web APIs
transform read only an xrrigidtransform which describes the
current position and orientation of the viewpoint in relation to the xrreferencespace specified when getviewerpose() was called on the xrframe being rendered.
... usage notes positions and number of xrviews per frame while rendering a scene, the set of views that are used to render the scene for the viewer as of the
current frame are obtained by calling the xrframe object's getviewerpose() method to get the xrviewerpose representing (in essence) the position of the viewer's head.
...
currently, the specification (and therefore all
current implementations of webxr) is designed around rendering every xrview into a single xrwebgllayer, which is then presented on the xr device with half used for the left eye and half for the right eye.
...And 2 more matches
ARIA: row role - Accessibility
states and properties aria-expanded state the aria-expanded attribute, which defines the state of the row, can take one of three values, or be omitted: aria-expanded="true: row is
currently expanded.
... aria-expanded="false": row is
currently collapsed.
...the aria-selected attribute can take one of three values, or be omitted: aria-selected="true: row is
currently selected aria-selected="false": row is not
currently selected.
...And 2 more matches
Viewport concepts - CSS: Cascading Style Sheets
a viewport represents the area in computer graphics being
currently viewed.
...your viewport is everything that is
currently visible, notably, the "what is a viewport section", and perhaps some of the navigation menu.
... to recap, the viewport is basically the part of the document that is
currently visible.
...And 2 more matches
color - CSS: Cascading Style Sheets
the color css property sets the foreground color value of an element's text and text decorations, and sets the
currentcolor value.
...
currentcolor may be used as an indirect value on other properties and is the default for other color properties, such as border-color.
... syntax /* keyword values */ color:
currentcolor; /* <named-color> values */ color: red; color: orange; color: tan; color: rebeccapurple; /* <hex-color> values */ color: #090; color: #009900; color: #090a; color: #009900aa; /* <rgb()> values */ color: rgb(34, 12, 64, 0.6); color: rgba(34, 12, 64, 0.6); color: rgb(34 12 64 / 0.6); color: rgba(34 12 64 / 0.3); color: rgb(34.0 12 64 / 60%); color: rgba(34.6 12 64 / 30%); /* <hsl()> values */ color: hsl(30, 100%, 50%, 0.6); color: hsla...
...And 2 more matches
<color> - CSS: Cascading Style Sheets
compatibility note: to prevent unexpected behavior, such as in a <gradient>, the
current css spec states that transparent should be calculated in the alpha-premultiplied color space.
...
currentcolor keyword the
currentcolor keyword represents the value of an element's color property.
... if
currentcolor is used as the value of the color property, it instead takes its value from the inherited value of the color property.
...And 2 more matches
Event reference
timeupdate the time indicated by the
currenttime attribute has been updated.
... start event web speech api the speech recognition service has begun listening to incoming audio with intent to recognize grammars associated with the
current speechrecognition.
... timeout progressevent xmlhttprequest timeupdate event html5 media the time indicated by the
currenttime attribute has been updated.
...And 2 more matches
<button>: The Button element - HTML: Hypertext Markup Language
the following keywords have special meanings: _self: load the response into the same browsing context as the
current one.
... _parent: load the response into the parent browsing context of the
current one.
... _top: load the response into the top-level browsing context (that is, the browsing context that is an ancestor of the
current one, and has no parent).
...And 2 more matches
<input type="datetime-local"> - HTML: Hypertext Markup Language
some mobile browsers (particularly on ios) do not
currently implement this correctly.
... because of the limited browser support for datetime-local, and the variations in how the inputs work, it may
currently still be best to use a framework or library to present these, or to use a custom input of your own.
...here we make use of the :valid and :invalid css properties to style the input based on whether or not the
current value is valid.
...And 2 more matches
<input type="submit"> - HTML: Hypertext Markup Language
this will replace the
current document with the received data.
...this is typically a new tab in the same window as the
current document, but may differ depending on the configuration of the user agent.
... _parent loads the response into the parent browsing context of the
current one.
...And 2 more matches
HTML elements reference - HTML: Hypertext Markup Language
<link> the html external resource link element (<link>) specifies relationships between the
current document and an external resource.
... <nav> the html <nav> element represents a section of a page whose purpose is to provide navigation links, either within the
current document or to other documents.
... <bdo> the html bidirectional text override element (<bdo>) overrides the
current directionality of text, so that the text within is rendered in a different direction.
...And 2 more matches
Large-Allocation - HTTP
it is
currently only implemented in firefox, but is harmless to send to every browser.
... when a post request is used to load a document, that load cannot
currently be redirected into a new process.
...firefox cannot move an iframe into a new process
currently, so the document must load in the
current process.
...And 2 more matches
Numbers and dates - JavaScript
calling date without the new keyword returns a string representing the
current date and time.
... for example, the following code displays the number of days left in the
current year: var today = new date(); var endyear = new date(1995, 11, 31, 23, 59, 59, 999); // set day and month endyear.setfullyear(today.getfullyear()); // set year to this year var msperday = 24 * 60 * 60 * 1000; // number of milliseconds per day var daysleft = (endyear.gettime() - today.gettime()) / msperday; var daysleft = math.round(daysleft); //returns days left in the year this example create...
...it then creates a date object named endyear and sets the year to the
current year.
...And 2 more matches
SVG Presentation Attributes - SVG: Scalable Vector Graphics
value: nonezero|evenodd|inherit; animatable: yes color it provides a potential indirect value (
currentcolor) for the fill, stroke, stop-color, flood-color and lighting-color presentation attributes.
... value: <paint>; animatable: yes fill-opacity it specifies the opacity of the color or the content the
current object is filled with.
... value: <funciri>|none|inherit; animatable: yes flood-color it indicates what color to use to flood the
current filter primitive subregion defined through the <feflood> or <fedropshadow> element.
...And 2 more matches
href - SVG: Scalable Vector Graphics
if the url points to multiple target elements, if the given target element is not capable of being a target of the given animation element, or if the given target element is not part of the
current document, then the animation element will not affect any target element.
... if the href attribute or the deprecated xlink:href attribute is not provided, then the target element will be the immediate parent element of the
current animation element.
... note that if the target element is not part of the
current svg document fragment, then whether the target element will be removed or not is defined by the host language.
...And 2 more matches
Understanding WebAssembly text format - WebAssembly
in the
current iteration, there can be at most 1 return type, but later this will be relaxed to any number.
... each parameter has a type explicitly declared; wasm
currently has four available number types (plus reference types; see the reference types) section below): i32: 32-bit integer i64: 64-bit integer f32: 32-bit float f64: 64-bit float a single parameter is written (param i32) and the return type is written (result i32), hence a binary function that takes two 32-bit integers and returns a 64-bit float would be written like this: (func (param i32) (param i32) (result f64) ...
... the key is that javascript can create webassembly linear memory instances via the webassembly.memory() interface, and access an existing memory instance (
currently you can only have one per module instance) using the associated instance methods.
...And 2 more matches
l10n - Archive of obsolete content
note that you can't
currently use localize strings appearing in content scripts or html files, but you can share the localized strings you want by assigning it's values to a json serializable object.
... globals functions get(identifier, count, placeholder1...n) this function takes a string parameter which it uses as an identifier to look up and return a localized string in the locale
currently set for firefox.
...for compatibility with tools that expect this syntax, you can assign this function to "_": var _ = require("sdk/l10n").get; given a .properties file for the
current locale containing an entry like: hello_string= hello!
... parameters identifier : string a identifier for the localization of a particular string in the
current locale.
panel - Archive of obsolete content
the screenshot below shows a panel whose content is built from the list of
currently open tabs: panels are useful for presenting temporary interfaces to users in a way that is easier for users to ignore and dismiss than a modal dialog, since panels are hidden the moment users interact with parts of the application interface outside them.
...so you can rewrite the above code like this: var mypanel = require("sdk/panel").panel({ contenturl: "./myfile.html" }); mypanel.show(); panel positioning by default the panel appears in the center of the
currently active browser window.
...: "body { border: 3px solid blue; }" }); mypanel.show(); var self = require("sdk/self"); var mypanel = require("sdk/panel").panel({ contenturl: "https://en.wikipedia.org/w/index.php?title=jetpack&useformat=mobile", contentstylefile: self.data.url("panel-style.css") }); mypanel.show(); private browsing if your add-on has not opted into private browsing, and it calls panel.show() when the
currently active window is a private window, then the panel will not be shown.
... isshowing tells if the panel is
currently shown or not.
remote/parent - Archive of obsolete content
// remote.js const { process } = require("sdk/remote/child"); const { processid } = require("sdk/system/runtime"); process.port.on("fetchid", () => { process.port.emit("id", processid); }); // main.js const { processes, remoterequire } = require("sdk/remote/parent"); // load "remote.js" into every
current and future process remoterequire("./remote.js", module); // for every
current and future process processes.forevery(process => { // ask for the process id process.port.emit("fetchid"); // first argument is always the process, then the message payload process.port.once("id", (process, id) => { console.log("child process is remote:" + process.isremote); console.log("child process ...
...id:" + id); }); }); content frame manipulation this demonstrates telling every
current frame to link to a specific anchor element: // remote.js const { frames } = require("sdk/remote/child"); // listeners receive the frame the event was for as the first argument frames.port.on("changelocation", (frame, ref) => { frame.content.location += "#" + ref; }); // main.js const { frames, remoterequire } = require("sdk/remote/parent"); remoterequire("./remote.js", module); frames.port.emit("changelocation", "foo"); tab information this shows sending a message when a tab loads; this is similar to how the sdk/tabs module
currently works.
...deventlistener("pageshow", function() { // `this` is bound to the frame the event came from let frame = this; frame.port.emit("pageshow"); }, true); // main.js const { frames, remoterequire } = require("sdk/remote/parent"); remoterequire("./remote.js", module); // the first argument is the frame the message came from frames.port.on("pageshow", (frame) => { console.log(frame.frameelement.
currenturi.host + ": pageshow"); }); globals functions remoterequire(id, module = null) loads a module in any existing and future child processes.
... processes the processes object lets you interact with the processes
currently running.
tabs/utils - Archive of obsolete content
returns tab : the
currently selected tab.
... options : object optional options: name type inbackground boolean if true, open the new tab, but keep the
currently selected tab selected.
... returns string : the
current uri.
... returns string : the
current uri.
Miscellaneous - Archive of obsolete content
lating mouse and key events https://developer.mozilla.org/samples/domref/dispatchevent.html also, new in firefox 3 / gecko 1.9: var utils = window.queryinterface(components.interfaces.nsiinterfacerequestor) .getinterface(components.interfaces.nsidomwindowutils); utils.sendmouseevent("mousedown", 10, 10, 0, 1, 0); utils.sendmouseevent("mouseup", 10, 10, 0, 1, 0); getting the
currently selected text from browser.xul overlay context: var selectedtext = document.commanddispatcher.focusedwindow.getselection().tostring(); or: content.getselection(); // |window| object is implied; i.e., window.content.getselection() or: getbrowserselection(); // |window| object is implied; i.e., window.getbrowserselection() this final option massages the selection to remove leading and t...
...ur", function(e) {onblurinput(e);}, false); } } function onfocusinput(focusevent) { focusedcontrol = focusevent.originaltarget; } function onblurinput(blurevent) { focusedcontrol = null; } or var element = document.commanddispatcher.focusedelement; inserting text at the cursor function inserttext(element, snippet) { var selectionend = element.selectionstart + snippet.length; var
currentvalue = element.value; var beforetext =
currentvalue.substring(0, element.selectionstart); var aftertext =
currentvalue.substring(element.selectionend,
currentvalue.length); element.value = beforetext + snippet + aftertext; element.focus(); //put the cursor after the inserted text element.setselectionrange(selectionend, selectionend); } inserttext(document.getelementbyid("example")...
..., "the text to be inserted"); disabling javascript programmatically // disable js in the
currently active tab from the context of browser.xul gbrowser.docshell.allowjavascript = false; if this isn't your browser, you should save the value and restore it when finished.
... var ci = components.interfaces; var cc = components.classes; //assume you can not get the main window object directly, if you can, just use it var wm = cc["@mozilla.org/appshell/window-mediator;1"].getservice(ci.nsiwindowmediator); var mainwindow = wm.getmostrecentwindow("navigator:browser"); //get sessionhistory from the
current selected tab var history = mainwindow.gbrowser.selectedbrowser.webnavigation.sessionhistory; and then get the page you want, and it's postdata.
Listening to events in Firefox extensions - Archive of obsolete content
for a tabbrowser, the above code will only get events from the browser that is
currently displayed at the time the event occurs.
... in order to listen to events from all browsers, including those not
currently being displayed, the following example can be used: var tabsprogresslistener = { // add tabs progress listener implementation here } gbrowser.addtabsprogresslistener(tabsprogresslistener); this lets you receive events related to all tabs.
... xulbrowserwindow xulbrowserwindow is an nsiwebprogresslistener used to get progress events for the
currently visible browser.
... the internal listeners are used to send out progress events to listeners registered with addprogresslistener() (which receives events from the browser that is
currently visible) and addtabsprogresslistener() (which receives events from all browsers).
Appendix: What you should know about open-source software licenses - Archive of obsolete content
the
current version is gplv3.
...note that the fsf
currently does not recommend applying the lgpl to libraries.
... oss licensing today and in the future finally, let’s look at the
current state of affairs in oss licensing and some of the issues it faces.
...it has the following characteristics: gives creators flexibility when selecting and applying terms; terms of use stated in easy-to-understand language; licensing conditions conform with
current copyright laws; also has an rdf schema for attaching metadata.
Chapter 4: Using XPCOM—Implementing advanced processes - Archive of obsolete content
for firefox 3.5 choose "mozilla 1.9.1." for the
current development trunk of firefox, choose "mozilla central" and for thunderbird, choose "comm.
...this is a by-product of the fact that test.xul
currently doesn’t have privileges.
... the nsilocalfile object includes methods that return virtual state values for the
current file, as shown in table 1.
...' [dir]' : '')); } alert(list.join('\n')); get parent directory although the nsilocalfile object does not contain a function for moving to higher directories, listing 10 does show how you can use the parent property to get the parent directory of the
current file.
User Notifications and Alerts - Archive of obsolete content
there's a catch, though: these notifications are inside the
current tab, so switching tabs will make a notification disappear.
...this means that these notifications make the most sense when they are related to the page
currently being displayed, such as a page trying to install an add-on, or a site you just entered a password on.
...in this case we don't pass any arguments to getnotificationbox so that we get the notification box that corresponds to the tab
currently on display.
...below is preferrable because it only cuts the bottom part of the
current page, as opposed to pushing down all tabs and content.
Signing an XPI - Archive of obsolete content
the dot will cause the database to be created in the
current directory.
...if the browser is
currently running, you should exit the browser before continuing this operation.
... image obtaining a valid software developer code-signing certificate warning:
currently firefox expects xpi files to be signed with certificates that conform to the older object signing convention, rather than the newer code signing convention.
... here are some
current issuers: comodo instant-ssl code signing digi-sign digi-code geotrust code signing thawte code signing (owned by verisign) unizeto certum code-signing (free certificates for open-source authors) verisign code signing you will need to apply for a code signing certificate and satisfy the issuer's identity verification procedures.
Dehydra Function Reference - Archive of obsolete content
if the
current callback is associated with a particular location, the location will be printed first.
...the default namespace is this the directories in sys.include_path are searched for the file, and the
current working directory is searched last.
...this is accomplished by recording every included file into the _includedarray in the
current namespace.
...it also returns the
current values of these flags.
Drag and Drop - Archive of obsolete content
the interface nsidragservice also provides the function get
currentsession which can be called from within the drag event handlers to get and modify the state of the drag.
... the interface nsidragsession is used to get and set properties of the drag that is
currently occuring.
... the following properties and methods are available: candrop set this property to true if the element the mouse is
currently over can accept the object
currently being dragged to be dropped on it.
... dragaction set to the
current action to be performed, which should be one or more of the constants described earlier.
Layout System Overview - Archive of obsolete content
currently layout supports the formatting of xul elements, which utilize a constraint-based layout language.
...presentation shell / presentation context together the presentation shell and the presentation context provide the root of the
current presentation.
...the presentation shell
currently owns a controlling reference to the presentation context.
...the undisplayed map keeps track of all content and style data for elements that
currently have no frames.
jspage - Archive of obsolete content
tion:function(){if(this.event.stoppropagation){this.event.stoppropagation();}else{this.event.cancelbubble=true;}return this;},preventdefault:function(){if(this.event.preventdefault){this.event.preventdefault(); }else{this.event.returnvalue=false;}return this;}});function class(b){if(b instanceof function){b={initialize:b};}var a=function(){object.reset(this);if(a._prototyping){return this; }this._
current=$empty;var c=(this.initialize)?this.initialize.apply(this,arguments):this;delete this._
current;delete this.caller;return c;}.extend(this); a.implement(b);a.constructor=class;a.prototype.constructor=a;return a;}function.prototype.protect=function(){this._protected=true;return this;};object.reset=function(a,c){if(c==null){for(var e in a){object.reset(a,e); }return a;}delete a[c];switch($type(a[c]))...
...{case"object":var d=function(){};d.prototype=a[c];var b=new d;a[c]=object.reset(b);break;case"array":a[c]=$unlink(a[c]); break;}return a;};new native({name:"class",initialize:class}).extend({instantiate:function(b){b._prototyping=true;var a=new b;delete b._prototyping;return a; },wrap:function(a,b,c){if(c._origin){c=c._origin;}return function(){if(c._protected&&this._
current==null){throw new error('the method "'+b+'" cannot be called.'); }var e=this.caller,f=this._
current;this.caller=f;this._
current=arguments.callee;var d=c.apply(this,arguments);this._
current=f;this.caller=e;return d;}.extend({_owner:a,_origin:c,_name:b}); }});class.implement({implement:function(a,d){if($type(a)=="object"){for(var e in a){this.implement(e,a[e]);}return this;}var f=class.mutators[a];if(f){d=f.call(this,d); if(d==n...
...nerdocument.window;},getdocument:function(){return this.ownerdocument; },getelementbyid:function(o,n){var m=this.ownerdocument.getelementbyid(o);if(!m){return null;}for(var l=m.parentnode;l!=this;l=l.parentnode){if(!l){return null; }}return document.id(m,n);},getselected:function(){return new elements($a(this.options).filter(function(l){return l.selected;}));},getcomputedstyle:function(m){if(this.
currentstyle){return this.
currentstyle[m.camelcase()]; }var l=this.getdocument().defaultview.getcomputedstyle(this,null);return(l)?l.getpropertyvalue([m.hyphenate()]):null;},toquerystring:function(){var l=[]; this.getelements("input, select, textarea",true).each(function(m){if(!m.name||m.disabled||m.type=="submit"||m.type=="reset"||m.type=="file"){return;}var n=(m.tagname.tolowercase()=="select")?element...
...useleave:{base:"mouseout",condition:a},mousewheel:{base:(browser.engine.gecko)?"dommousescroll":"mousewheel"}}); })();element.properties.styles={set:function(a){this.setstyles(a);}};element.properties.opacity={set:function(a,b){if(!b){if(a==0){if(this.style.visibility!="hidden"){this.style.visibility="hidden"; }}else{if(this.style.visibility!="visible"){this.style.visibility="visible";}}}if(!this.
currentstyle||!this.
currentstyle.haslayout){this.style.zoom=1;}if(browser.engine.trident){this.style.filter=(a==1)?"":"alpha(opacity="+a*100+")"; }this.style.opacity=a;this.store("opacity",a);},get:function(){return this.retrieve("opacity",1);}};element.implement({setopacity:function(a){return this.set("opacity",a,true); },getopacity:function(){return this.get("opacity");},setstyle:function(b,a){switch(b...
Modularization techniques - Archive of obsolete content
the implementation takes into consideration two things when deciding whether or not a dll can be unloaded: whether any of its factories are
currently in use, and whether anyone has locked the server.
...(int argc, char *argv[]) { nsisample *sample; nsresult res = nsrepository::createinstance(ksamplecid, null, kisampleiid, (void **) &sample); if (res == ns_ok) { sample->hello(); ns_release(sample); } return 0; } registering a dll this is
currently being hashed out.
... you can
currently manually register a dll using the nsrepository's registerfactory() method (for an example of this, see nssample2.cpp).
... the only platform for which com support is
currently widely available is windows.
Positioning - Archive of obsolete content
if a context menu was opened via the keyboard only, the menu will appear at the top left corner of the document, or underneath the
currently selected item if a list is focused.
... tooltips will always appear near the
current mouse position, offset vertically by a small amount.
...equivalent to topleft topleft after_pointer the popup appears vertically offset a few pixels from the mouse pointer (after_pointer is not
currently implemented with respect to the mouse pointer.
... it
currently offsets 21 pixels vertically from the anchor, see bug 619887).
Box Objects - Archive of obsolete content
retrieving position and size the box object provides six read only properties, x, y, screenx, screeny, width and height, for determining the
currently displayed position and size of an element.
...the values are always the position and sizes as
currently displayed, so the values will be different if the element is moved or resized.
...that is, you cannot get the
current size with these properties; instead you must use the box object properties.
... this may be a bit confusing, but, the key is to remember that the width and height properties on an element return the size that was set in the xul while the width and height properties of the box object return the
current size.
More Event Handlers - Archive of obsolete content
a similar property
currenttarget holds the element that is
currently having its event listeners handled.
... in the example below,
currenttarget is always the vbox, whereas target would be the specific element, either the button or checkbox, that was activated.
... example 1 : source view <vbox oncommand="alert(event.
currenttarget.tagname);"> <button label="ok"/> <checkbox label="show images"/> </vbox> stop event propagation once you handle an event, regardless of where in the propagation the event is, you will likely want to stop the event from being sent to further elements, essentially stopping the capturing or bubbling phases from continuing.
...here is an example which displays the
current mouse coordinates: example 4 : source view <script> function updatemousecoordinates(e){ var text = "x:" + e.clientx + " y:" + e.clienty; document.getelementbyid("xy").value = text; } </script> <label id="xy"/> <hbox width="400" height="400" onmousemove="updatemousecoordinates(event);"/> in this example, the size of the box has been set explicitly so the effect is easier to see.
Popup Menus - Archive of obsolete content
at_pointer the popup appears at the mouse pointer position (at_pointer is not
currently implemented with respect to the mouse pointer.
... it
currently appears at the top of the anchor).
...this is how tooltips appear (after_pointer is not
currently implemented with respect to the mouse pointer.
... it
currently offsets 21 pixels vertically from the anchor, see bug 619887).
Tree Selection - Archive of obsolete content
<tree id="treeset" onselect="alert('you selected something!');"> tree indices the tree has a property
currentindex, which can be used to get the
currently selected item, where the first row is 0.
...the simplest function is the select() function, which deselects any rows that are
currently selected and selects one specific row.
... for example, the following code will select the row at index 5: tree.view.selection.select(5); note that you should not just change the tree's
currentindex property to change the selection.
...tree.view.selection.rangedselect(2,7,true); the last argument indicates whether to add to the
current selection or not.
Using the Editor from XUL - Archive of obsolete content
we are
currently only able to have one editor per composer window; in future, relaxing this restriction would allow us to edit all the subdocuments in a frameset at the same time.
...this is called by ime at the start, end, and to query the
current composition.
...these functions call beforeedit() and afteredit() on the
current typing rules.
... now, we initialize a nstextrulesinfo with the information about the string being inserted, and call willdoaction() on the
current editing rules.
listitem - Archive of obsolete content
attributes accesskey, checked, command, crop,
current, disabled, image, label, preference, selected, tabindex, type, value properties accesskey, accessible, checked, control, crop,
current, disabled, image, label, selected, tabindex, value style classes listitem-iconic examples <listbox id="thelist"> <listitem label="ruby"/> <listitem label="emerald"/> <listitem label="sapphire" selected="true"/> <listitem label="diamond"/> </...
...for example, for a menuitem in a menu you can add the following css rule when you want to use the value none: menupopup > menuitem, menupopup > menu { max-width: none; }
current type: boolean this attribute will be set to true if the listitem is the
current item.
...to change the
currently selected item in a listbox, use the listbox property selecteditem.
...
current type: boolean gets and sets the value of the
current attribute.
tab - Archive of obsolete content
afterselected type: boolean this is set to true if the tab is immediately after the
currently selected tab.
... beforeselected type: boolean this is set to true if the tab is immediately before the
currently selected tab.
... pending type: boolean this attribute is set to true if the tab is
currently in the process of being restored by the session store service.
... unread type: boolean this attribute is set to true if the tab is unread; that is, either it has not yet been selected during the
current session, or has changed since the last time it was selected.
tabbox - Archive of obsolete content
selectedindex type: integer returns the index of the
currently selected item.
...returns -1 if no items are selected selectedpanel type: element holds a reference to the
currently selected panel within a <tabbox> element.
... selectedtab type: tab element a reference to the
currently selected tab, which will always be one of the tab elements in the tabs element.
... assign a value to this property to modify the
currently selected tab.
calICalendarView - Archive of obsolete content
this explains the need for the fairly large list off attributes and methods that must be implemented, so that outside code can be able to gain a decent picture of the
current state of those nodes.
... selecteditem returns a caliitembase corresponding to the
currently active item in the view.
... selectedday the
currently selected day in the display.
... getdatelist void getdatelist(out unsigned long acount, [array,size_is(acount),retval] out calidatetime adates); this function returns a list of all dates
currently being shown in the view.
nsIContentPolicy - Archive of obsolete content
note: this rejection only applies to the
current request on this server, not to future requests of the same type.
... note: this rejection only applies to the
current request on this server, not to future requests of the same type.
... note: this rejection only applies to the
current request on this server, not to future requests of the same type.
... query any dom properties that depend on the
current state of the dom outside the "context" node (e.g., lengths of node lists).
Archived Mozilla and build documentation - Archive of obsolete content
this tutorial walks you through the process of building a mozilla extension that adds an icon to mozilla's status bar showing the
current status of the mozilla source code (i.e.
...see also
current events.
...they are
currently written with mostly firefox in mind, but most if not all should easily translate to seamonkey, thunderbird or any of the other applications.
...this is
currently just a preview, but we would appreciate help with testing.
2006-10-20 - Archive of obsolete content
summary: mozilla.dev.builds - october 14th to october 20th 2006 linux reference platform 1.8.1 october 18th: marcus is wondering about the linux platform that is
currently used to compile both public releases of firefox and xulrunner.
... adding extension to extensions/ folder originally posted on oct 19th: christopher finke is
currently learning how to compile firefox.
...he can be contacted via: email: preed@mozilla.com irc: preed on irc.mozilla.org phone: 650.903.0800 x256 uploading language packs to amo on october 17th benjamin smedberg brought the following to the attention of the localizers and the build team: that he is planning to upload the firefox 2 language packages
currently located at http://releases.mozilla.org/pub/mozi...rc3/win32/xpi/ to addons.mozilla.org in the next few days.
...comet and btek are
currently the fastest-cycling tinderboxes available therefore they are quite fast to detect general fires on the mozilla tree.
NPN_GetValue - Archive of obsolete content
syntax #include <npapi.h> nperror npn_getvalue(npp instance, npnvariable variable, void *value); parameters this function has the following parameters: instance pointer to the
current plug-in instance.
...values for npnvariable: npnvxdisplay =1: unix only: returns the
current display npnvxtappcontext: unix only: returns the application's xtappcontext npnvnetscapewindow: ms windows and unix/x11 only: ms windows: gets the native window on which plug-in drawing occurs; returns hwnd unix/x11: gets the browser toplevel window in which the plug-in is displayed; returns window npnvjavascriptenabledbool: tells whether javascript is enabled; true=javascript enabled, false=not enabled npnvasdenabledbool: tells whether smartupdate (former name: asd) is enabled; true=smartupdate enabled, false=not enabled npnvisofflinebool: tells whether offline mode is enabled; true=offline mode enabled, false=not enabled npnvtoolk...
... npnvprivatemodebool: indicates whether or not the browser is
currently in private browsing mode.
...unix the platform-specific values for this parameter are npnvxdisplay (the
current display), npnvxtappcontext (the browser's xtappcontext), and npnvnetscapewindow (the browser toplevel window in which the plugin is displayed).
NPP_HandleEvent - Archive of obsolete content
for windowed plug-ins:
currently used only on mac os.
... syntax #include <npapi.h> int16 npp_handleevent(npp instance, void* event); parameters the function has the following parameters: instance pointer to the
current plug-in instance.
...when npp_handleevent is called, the
current port is set up so that its origin matches the top-left corner of the plug-in.
... a plug-in does not need to set up the
current port for mouse coordinate translation.
Introduction to SSL - Archive of obsolete content
if the
current date and time are outside of that range, the authentication process won't go any further.
... if the
current date and time are within the certificate's validity period, the client goes on to step.
...if the
current date and time are outside of that range, the authentication process won't go any further.
... if the
current date and time are within the certificate's validity period, the server goes on to step 3.
Scratchpad - Archive of obsolete content
code completion scratchpad integrates the tern code analysis engine, and uses that to provide autocomplete suggestions and popups containing information on the
current symbol.
...you'll see the autocomplete box, as shown below: the icon next to each suggestion indicates the type, and the
currently highlighted suggestion gets a popup with more information.
...the code is executed in the scope of the
currently selected tab.
... command windows macos linux open the scratchpad shift + f4 shift + f4 shift + f4 run scratchpad code ctrl + r cmd + r ctrl + r run scratchpad code, display the result in the object inspector ctrl + i cmd + i ctrl + i run scratchpad code, insert the result as a comment ctrl + l cmd + l ctrl + l re-evaluate
current function ctrl + e cmd + e ctrl + e reload the
current page, then run scratchpad code ctrl + shift + r cmd + shift + r ctrl + shift + r save the pad ctrl + s cmd + s ctrl + s open an existing pad ctrl + o cmd + o ctrl + o create a new pad ctrl + n cmd + n ctrl + n close scratchpad ctrl + w cmd + w ct...
ECMAScript 2016 to ES.Next support in Mozilla - Archive of obsolete content
this page needs to be updated to reflect
current changes.
...this year, the es2019 specification will be released and es2020 is the
current ecmascript draft specification.
...roups (not yet implemented; in other browsers) ecmascript 2019 array.flat() (firefox 62) array.flatmap() (firefox 62) object.fromentries() (firefox 63) string.trimstart() and string.trimend() (firefox 61) optional catch binding (firefox 58) function.tostring() revision (firefox 54) symbol.description (firefox 63) well-formed json.stringify() (firefox 64) ecmascript 2020 this is the
current es.next version.
... implemented proposals not in es.next this section needs to be updated to reflect
current changes.
Enumerator - Archive of obsolete content
instead of using indexes, as you would with arrays, you can move the
current item pointer only to the first or next element of a collection.
... enumerator.item returns the
current item in the collection.
... enumerator.movefirst resets the
current item in the collection to the first item.
... enumerator.movenext moves the
current item to the next item in the collection.
RDF in Mozilla FAQ - Archive of obsolete content
the "simple" form, which is
currently the most common form in the mozilla codebase, and the "extended" form, which allows for sophisticated pattern matching against the rdf graph.
... xul that is loaded from a "trusted" url (
currently, any chrome: url) can specify any datasource uri in the datasources attribute of the xul template.
...note that a polling reload generates a set of differences between the
current and previous contents of the rdf/xml file.
...
currently, mozilla does not allow unprivileged access to the rdf interfaces and services; see bug 122846 for details.
XQuery - Archive of obsolete content
while xquery is
currently not supported in firefox (whether through javascript to developers or to browser users), at least one extension has been developed to give a preliminary support for xquery for browser users (and serving as a simple model for how xquery can be implemented within extensions).
... xquseme is a working proof-of-concept (so far tested on windows and linux with java installed; mac does not work) extension which allows one to perform xqueries on external urls, the
currently loaded webpage (even if originally from poorly formed html), and/or xml (including well-formed xhtml) documents stored locally.
... the extension now includes and interfaces with the open-source version of saxonica's saxon b (though this extension
currently only performs the xqueries).
... notes for developers wishing to access xquery in their own extensions at present, the extension works simply by using liveconnect to work with berkeley db xml's java api (and via a java wrapper class which circumvents liveconnect's
current inability to handle some types of java exceptions properly).
The HTML5 input types - Learn web development
one problem with sliders is that they don't offer any kind of visual feedback as to what the
current value is.
... this is why we've included an <output> element — to contain the
current value (we'll also look at this element in the next article).
... to actually display the
current value, and update it as it changed, you must use javascript, but this is relatively easy to do: const price = document.queryselector('#price'); const output = document.queryselector('.price-output'); output.textcontent = price.value; price.addeventlistener('input', function() { output.textcontent = price.value; }); here we store references to the range input and the output in two variables.
... then we immediately set the output's textcontent to the
current value of the input.
How to build custom form controls - Learn web development
--> <div class="select" tabindex="0"> <!-- this container will be used to display the
current value of the control --> <span class="value">cherry</span> <!-- this container will contain all the options available for our control.
...in this
current state, the screen reader user only "sees" an unordered list.
... var optionlist = select.queryselectorall('.option'); // we set the selected index to the index of our choice nativewidget.selectedindex = index; // we update the value placeholder accordingly value.innerhtml = optionlist[index].innerhtml; // and we highlight the corresponding option of our custom control highlightoption(select, optionlist[index]); }; // this function returns the
current selected index in the native control // it takes one parameter: // select : the dom node with the class `select` related to the native control function getindex(select) { // we need to access the native control for the given custom control // in our example, that native control is a sibling of the custom control var nativewidget = select.previouselementsibling; return nativewidget.select...
... the aria-selected attribute is used to mark which option is
currently selected; this lets assistive technologies inform the user what the
current selection is.
Test your skills: Links - Learn web development
links 1 in this task we want you to help fill in the links on our whales information page: the first link should be linked to a page called whales.html, which is in the same directory as the
current page.
... links 2 in this task we want you to fill in the four links so that they link to the appropriate places: the first link should link to an image called blue-whale.jpg, which is located in a directory called blue inside the
current directory.
... the second link should link to an image called narwhal.jpg, which is located in a directory called narwhal, which is located one directory level above the
current directory.
... the fourth link should link to the paragraph at the very bottom of the
current page.
Cooperative asynchronous JavaScript: Timeouts and intervals - Learn web development
it just runs it as quickly and smoothly as possible in the
current conditions.
...the general pattern you'd use looks something like this: let starttime = null; function draw(timestamp) { if (!starttime) { starttime = timestamp; }
currenttime = timestamp - starttime; // do something based on
current time requestanimationframe(draw); } draw(); browser support requestanimationframe() is supported in more recent browsers than setinterval()/settimeout().
...they will define the start time if it is not defined already (this will only happen on the first loop iteration), and set the rotatecount to a value to rotate the spinner by (the
current timestamp, take the starting timestamp, divided by three so it doesn't go too fast): if (!starttime) { starttime = timestamp; } rotatecount = (timestamp - starttime) / 3; below the previous line inside draw(), add the following block — this checks to see if the value of rotatecount is above 359 (e.g.
...the start() function calls draw() to start the spinner spinning and display it in the ui, hides the start button so you can't mess up the game by starting it multiple times con
currently, and runs a settimeout() call that runs a setendgame() function after a random interval between 5 and 10 seconds has passed.
Introduction to events - Learn web development
in the case of the web, events are fired inside the browser window, and tend to be attached to a specific item that resides in it — this might be a single element, set of elements, the html document loaded in the
current tab, or the entire browser window.
... videobox.onclick = function() { videobox.setattribute('class', 'hidden'); }; video.onclick = function() { video.play(); }; but there's a problem —
currently, when you select the video it starts to play, but it causes the <div> to be hidden at the same time.
...so in our
current example, when you select the video, the event bubbles from the <video> element outwards to the <html> element.
... we can, therefore, fix our
current problem by changing the second handler function in the previous code block to this: video.onclick = function(e) { e.stoppropagation(); video.play(); }; you can try making a local copy of the show-video-box.html source code and fixing it yourself, or looking at the fixed result in show-video-box-fixed.html (also see the source code here).
Third-party APIs - Learn web development
0; i < articles.length; i++) { const article = document.createelement('article'); const heading = document.createelement('h2'); const link = document.createelement('a'); const img = document.createelement('img'); const para1 = document.createelement('p'); const para2 = document.createelement('p'); const clearfix = document.createelement('div'); let
current = articles[i]; console.log(
current); link.href =
current.web_url; link.textcontent =
current.headline.main; para1.textcontent =
current.snippet; para2.textcontent = 'keywords: '; for(let j = 0; j <
current.keywords.length; j++) { const span = document.createelement('span'); span.textcontent +=
current.keywords[j].value + ' '; para2.appe...
...ndchild(span); } if(
current.multimedia.length > 0) { img.src = 'http://www.nytimes.com/' +
current.multimedia[0].url; img.alt =
current.headline.main; } clearfix.setattribute('class','clearfix'); article.appendchild(heading); heading.appendchild(link); article.appendchild(img); article.appendchild(para1); article.appendchild(para2); article.appendchild(clearfix); section.appendchild(article); } } } there's a lot of code here; let's explain it step by step: the while loop is a common pattern used to delete all of the contents of a dom element, in this case, the <section> element.
...most of these operations are fairly obvious, but a few are worth calling out: we used a for loop (for(var j = 0; j <
current.keywords.length; j++) { ...
... we used an if() block (if(
current.multimedia.length > 0) { ...
Introduction to client-side frameworks - Learn web development
mdn web docs, which you are
currently reading this on, uses the react/reactdom framework to power its front end.
... there are many frameworks out there, but
currently the "big four" are considered to be the following.
... the table in this section provides a glanceable summary of the
current browser support offered by each framework, as well as the domain-specific languages with which it can be used.
...
currently, there are several years of data available, allowing you to get a sense of a framework's popularity.
TypeScript support in Svelte - Learn web development
code along with us git clone the github repo (if you haven't already done it) with: git clone https://github.com/opensas/mdn-svelte-tutorial.git then to get to the
current app state, run cd mdn-svelte-tutorial/07-typescript-support or directly download the folder's content: npx degit opensas/mdn-svelte-tutorial/07-typescript-support remember to run npm install && npm run dev to start your app in development mode.
...
currently you will be running a regular javascript application with typescript support enabled, without taking advantage of any of the features that typescript provides.
...(the trailing dot tells vs code to open the
current folder) to open the code editor.
... next, import the filter enum — add the following import statement below your existing ones: import { filter } from '../types/filter.enum' now we will use it whenever we reference the
current filter.
Advanced Svelte: Reactivity, lifecycle, accessibility - Learn web development
code along with us git clone the github repo (if you haven't already done it) with: git clone https://github.com/opensas/mdn-svelte-tutorial.git then to get to the
current app state, run cd mdn-svelte-tutorial/05-advanced-concepts or directly download the folder's content: npx degit opensas/mdn-svelte-tutorial/05-advanced-concepts remember to run npm install && npm run dev to start your app in development mode.
... in its
current state our app has a couple of keyboard accessibility problems involving focus management.
...this outline is your visual indicator that the browser is
currently focused on this element.
... repl to see the
current state of the code in a repl, visit: https://svelte.dev/repl/d1fa84a5a4494366b179c87395940039?version=3.23.2 summary in this article we have finished adding all the required functionality to our app, plus we've taken care of a number of accessibility and usability issues.
Working with Svelte stores - Learn web development
code along with us git clone the github repo (if you haven't already done it) with: git clone https://github.com/opensas/mdn-svelte-tutorial.git then to get to the
current app state, run cd mdn-svelte-tutorial/06-stores or directly download the folder's content: npx degit opensas/mdn-svelte-tutorial/06-stores remember to run npm install && npm run dev to start your app in development mode.
... fixed; cursor: pointer; margin-right: 1.5rem; margin-left: 1.5rem; margin-top: 1rem; right: 0; display: flex; align-items: center; border-radius: 0.2rem; background-color: #565656; color: #fff; font-size: 0.875rem; font-weight: 700; padding: 0.5rem 1.4rem; font-size: 1.5rem; z-index: 100; opacity: 95%; } div p { color: #fff; } div svg { height: 1.6rem; fill:
currentcolor; width: 1.4rem; margin-right: 0.5rem; } </style> let's walk through this piece of code in detail.
...ch: export const writable = (initial_value = 0) => { let value = initial_value // content of the store let subs = [] // subscriber's handlers const subscribe = (handler) => { subs = [...subs, handler] // add handler to the array of subscribers handler(value) // call handler with
current value return () => subs = subs.filter(sub => sub !== handler) // return unsubscribe function } const set = (new_value) => { if (value === new_value) return // same value, exit value = new_value // update value subs.foreach(sub => sub(value)) // update subscribers } const update = (update_fn) => set(update_fn(value)) // update fun...
... repl to see the
current state of the code in a repl, visit: https://svelte.dev/repl/378dd79e0dfe4486a8f10823f3813190?version=3.23.2 summary in this article we added two new features: an alert component and persisting todos to web storage.
Getting started with Vue - Learn web development
currently, it's the vue logo.
...
currently, this file initializes your vue application and signifies which html element in the index.html file your app should be attached to.
...
currently it just has one example component.
...we also need to remove the lines from inside the <script> element that import and register the component: delete these lines now: import helloworld from './components/helloworld.vue' components: { helloworld } your rendered app should no longer show an error, just a blank page, as we
currently have no visible content inside <template>.
Theme concepts
if you are uploading a packaged file, the version number must be higher than the
current version number dynamic themes as an alternative to defining a static theme, you can use the theme api to control the theme used in firefox from within a browser extension.
... }, colors: { frame: '#cf723f', tab_background_text: '#111', } }, 'night': { images: { theme_frame: 'moon.jpg', }, colors: { frame: '#000', tab_background_text: '#fff', } } }; the theme.theme object is then passed to theme.update() to change the header theme, as in this code snippet from the same example: function settheme(theme) { if (
currenttheme === theme) { // no point in changing the theme if it has already been set.
... return; }
currenttheme = theme; browser.theme.update(themes[theme]); } learn more about dynamic themes and see an additional example in the following video: if you have not built a browser extension before, check out your first extension for a step-by-step guide.
... cross-browser compatibility there is
currently limited compatibility between themes in the major browsers.
Android-specific test suites
contact information android-test is
currently owned by :sebastian and :nalexander.
... contact information android-checkstyle is
currently owned by :mcomella and :nalexander.
... contact information android-checkstyle is
currently owned by :mcomella and :nalexander.
... contact information android-lint is
currently owned by :sebastian and :nalexander.
Listening to events on all tabs
acurselfprogress the
current progress for the request indicated by the request parameter.
... acurtotalprogress the
current progress for all requests associated with webprogress.
...instead, it is a numeric value that indicates the
current status of the request.
... asameuri true if awebprogress is requesting a refresh of the
current uri.
Frame script loading and lifetime
this line of code loads a frame script into the
currently selected tab.
...for example: var mm = window.messagemanager; mm.loadframescript("chrome://my-e10s-extension/content/frame-script.js", true); the script will be loaded into all tabs
currently open in this window, and all new tabs opened afterwards.
...if you want to limit a script to the lifetime of a page you can create a sandbox instead, where the
current content page is used as prototype.
...there is
currently no way to unload them when loaded, other than closing the tab they were loaded into.
mozbrowsercaretstatechanged
details the details property returns an anonymous javascript object with the following properties: rect an object that defines information about the bounding rectangle of the
current selection.
... commands an object that defines what commands can
currently be executed in the browser <iframe>.
... zoomfactor a number defining the
current zoom factor in the browser <iframe>.
... collapsed a boolean indicating whether the
current selection is collapsed (true) or not (false.) caretvisible a boolean indicating whether the caret is
currently visible (true) or not (false.) selectionvisible a boolean indicating whether the
current selection is visible (true) or not (false.) selectioneditable a boolean indicating whether the
current selection is editable (true) or not (false.) selectedtextcontext a domstring containing the
currently-selected text content.
Gecko Keypress Event
that is, when the
currently selected keyboard layout produces a unicode character (according to the
current state of capslock and numlock), the charcode property contains that character.
... the charcode value depends on the state of capslock and numlock (except they are
currently ignored if alt (option) is down on mac - see bug 432953).
... if the
current keyboard layout is dvorak-qwerty layout or a non-latin layout, the command key switches the keyboard layout to the us qwerty keyboard layout temporary.
...(chrome accesskey, including menu accesskey, handling is
currently similar, but this should not be relied on.
Getting Started with Chat
simply type them into the message box at the bottom of the screen and press enter: /join #channel joins you to the specified channel until you quit your irc client or quit the channel /leave leave the
current channel /mode #channel +k password sets a password for the channel.
... if #channel is not specified, the command is executed for the
current channel.
...if a #channel is not specified, the command is executed for the
current channel.
... /msg nick message sends a private message to the specified user /nick nickname change your
current nickname nickname: ping get a user's attention (nickname is the name of the user you want the attention of) nickname: pong respond to a user's ping (nickname is the name of the user who wants your attention) /query nickname opens a private chat with the specified user /quit message disconnects you from the
current server displaying the message in all connected channels prior to quitting /reload styles some irc clients, colloquy on mac in particular, stop displaying your messag...
Download
currentbytes read only number number of bytes
currently transferred.
... note: if you need to start a new download from the same source, rather than restarting a failed or canceled one, you should create a separate download object with the same source as the
current one.
...this may be called at any time, even if the download failed or is
currently in progress.
... you can use this property for scheduling download completion actions in the
current session, for downloads that are controlled interactively.
PopupNotifications.jsm
method overview void locationchange(); notification getnotification(id, browser); void remove(notification); notification show(browser, id, message, anchorid, mainaction, secondaryactions, options); properties attribute type description ispanelopen boolean returns true if the notification panel is
currently visible, false if it is not.
... methods locationchange() the consumer can call this method to let the popup notification module know that the
current browser's location has changed.
...if null, the
currently selected <xul:browser>'s notifications will be searched.
...this must not be null; you can, however, simply specify gbrowser.selectedbrowser to associate it with the
current tab.
Application Translation with Mercurial
in the section "applications & sign-offs", you will find different products and branches which are
currently in translation.
... getting the
current texts in english and your locale obtaining the english texts with the source code get the source code by downloading the following file: firefox desktop or firefox for android: download the mozilla-<branch>.hg file (e.g.
...other localizers will likely have done changes to the translation, either adding new texts, removing obsolete ones or improving the
current texts.
... submitting the patch for review now the patch has to be shared so the people
currently trusted to change the official translation can review the suggested changes.
Localizing extension descriptions
the
current app locale will be searched for and then there will be a fallback search for en-us.
... if a preference isn't set and there isn't a matching em:localized property for the
current locale or en-us, then the properties specified directly on the install manifest are used as a last resort, as they were always used before gecko 1.9.
... if you do not
currently have them, create localized properties files.
... add the following line to each of your localization properties files (where extension_id matches your extension id (<em:id> from install.rdf) and localized_description is the description of your extension that you want to appear in the given language): extensions.extension_id.description=localized_description if you do not
currently have one, create a default preferences file.
Scroll-linked effects
<body style="height: 5000px"> <style> body, /* blink
currently has bug that requires declaration on `body` */ html { scroll-snap-type: y proximity; } .snaptarget { scroll-snap-align: start; position: relative; top: 200px; height: 200px; background-color: green; } </style> <div class="snaptarget"></div> </body> this version can work smoothly in the browser even if there is slow-running javascript on the...
...however, in some cases the
current apis offered by the browser do not allow this.
...
currently there are a few proposals for apis that would allow such effects, and they all have their advantages and disadvantages.
... the proposals
currently under consideration are: web animations: a new api for precisely controlling web animations in javascript, with an additional proposal to map scroll position to time and use that as a timeline for the animation.
NSS API Guidelines
currently, ocsp checking settings are exported through certhi.
...for example: pk11rsagenparamsstr.keysizeinbits for members of enums, our
current api has no standard (typedefs for enums should follow the data types standard).
...option 1,
currently the most common used for enums, actually creates namespace pollution.
...the
current standard in the security library is to typedef the data structure name, the easiest way to accomplish this would be to add the typedef to the public header file.
NSS Sample Code Sample1
as an alternative, new keys may be sent to the //
current set of secondary hosts when they are generated by the // primary.
...(
currently nss doesn't store persistant keys.
...(this key will also be used for // storage of the keys, since nss does not support permanent symmetric // keys at the
current time.) // 3.
...// note:
currently nss does not support permanent symmetric keys.
PKCS #11 Module Specs
nss
currently implements this proposal internally.
...this data is
currently stored in secmod.db or pkcs11.txt.
... ciphers - comma separated list of ciphers this token will enable that isn't already enabled by the library (
currently only fortezza is defined) (case-insensitive).
... timeout - time in minutes before the
current authentication should be rechecked.
Python binding for NSS
all nss/nspr python objects can print their
current value by evaluting the python object in a string context or by using the python str() function.
...python-nss is
currently available in: fedora rhel 6 the principal developer of python-nss is john dennis jdennis@redhat.com.
... documentation python-nss api documentation the python-nss api documentation for the
current release can be viewed at python-nss api documentation.
... how to report a bug python-nss bugs are
currently being tracked in the red hat bugzilla system for fedora.
NSS Tools
the tools information table below describes both the tools that are
currently working and those that are still under development.
...
currently, you must download the nss 3.1 source and build it to create binary files for the nss tools.
... source, documentation
currently points to the netscape certificate management system administration guide on docs.sun.com.
...
currently points to the signver documentation on developer.netscape.com.
JSAPI Cookbook
// or: v = js::int32value(0); v.setdouble(0.5); // or: v = js::doublevalue(0.5); v.setstring(somestring); // or: v = js::stringvalue(somestring); v.setnull(); // or: v = js::nullvalue(); v.setundefined(); // or: v = js::undefinedvalue(); v.setboolean(false); // or: v = js::booleanvalue(false); finding the global object many of these recipes require finding the
current global object first.
... // javascript throw exc; /* jsapi */ js_setpendingexception(cx, exc); return false; when js_reporterror creates a new error object, it sets the filename and linenumber properties to the line of javascript code
currently at the top of the stack.
...*/ finally_block: /* * temporarily set aside any exception
currently pending.
... create global variable __dirname to retrieve the
current javascript file name, like in nodejs ...
JS_GetGlobalForScopeChain
renamed to js::
currentglobalornull.
... description js_getglobalforscopechain() returns the global object for whatever function is
currently running on the context.
... in other words, it returns the global object on the
current scope chain.
...see also js_getglobalforobject js::
currentglobalornull bug 899245 ...
Gecko Roles
users can navigate between panes and within the contents of the
current pane, but cannot navigate between items in different panes.
... role_statusbar represents a status bar, which is an area at the bottom of a window that displays information about the
current operation, state of the application, or selected object.
... role_indicator represents an indicator, such as a pointer graphic, that points to the
current item.
...a specialized push button that can be checked or unchecked, but does not provide a separate indicator for the
current state.
Places Developer Guide
note that this service is only
currently available for firefox, not other toolkit-based applications.
... importing: importhtmlfromfile (nsilocalfile afile, boolean aisinitialimport) - this imports all the bookmarks in the specified file into the
current bookmarks collection.
..., null); // tag the uri tagssvc.taguri(myuri, ["mozilla", "firefox"]); // get an array of tags for a uri var mytags = tagssvc.gettagsforuri(myuri, {}); // get an array of uris for a tag var taggeduris = tagssvc.geturisfortag("mozilla"); // get an array of all tags var arrayofalltags = tagssvc.alltags; // remove tags from a uri tagssvc.untaguri(myuri, ["mozilla", "firefox"]); this service
currently integrates with and is internally dependent upon bookmarks: if you tag a uri that is not previously bookmarked, a new bookmark is created in the unfiled bookmarks folder.
...the contents of these folders are updated when expanded, executing the search against the
current history and bookmarks collections.
Avoiding leaks in JavaScript XPCOM components
in firefox 3, a cycle collector was introduced and refined in later versions, and mozilla is
currently working on a generational garbage collector for js.
...the roots include things like global variables and variables on the
current call stack.
...we
currently implement this by making the wrapper a root in the javascript garbage collector once somebody sets a javascript property on a dom node.
...ter.filter_accept; case "template": case "radiogroup": return nodefilter.filter_reject; default: return nodefilter.filter_skip; } } var iterator = this.ownerdocument.createtreewalker(this, nodefilter.show_element, _filterradiogroup, true); while (iterator.nextnode()) radiochildren.push(iterator.
currentnode); return this.mradiochildren = radiochildren; in this example, the iterator object is an xpcom object that is wrapped so the javascript code can use it.
Building the WebLock UI
like the secure page icon, the weblock icon that appears in the lower right corner of the browser should indicate whether the browser is
currently locked or unlocked.
...this is a bit more complicated, because it requires that you work with the
currently loaded page or provide other ui (e.g., a textfield where you can enter an arbitrary url) for specifying urls.
... weblock.css the following style rules are defined in weblock.css, a css file that is loaded by the overlay and applied to the icon in the browser that reflects the
current status of the web lock and provides access to the web lock manager dialog.
...note, however, that
currently weblock probably does not install cleanly in mozilla firefox due to firefox's newness compared to this book (which was originally written in 2003).
Mozilla internal string guide
use this instead of testing string.length == 0 .equals(string) - true if the given string has the same value as the
current string.
... bulkwrite() takes four arguments: the new capacity (which may be rounded up), the number of code units at the beginning of the string to preserve (typically the old logical length), a boolean indicating whether reallocating a smaller buffer is ok if the requested capacity would fit in a buffer that's smaller than
current one, and a reference to an nsresult for indicating failure on oom.
... when working with existing code, it is important to examine the
current usage of the strings that you are manipulating, to determine the correct conversion mechanism.
... note: calling setcapacity() does not give you permission to use the pointer obtained from beginwriting() to write past the
current length (as returned by length()) of the string.
Observer Notifications
(note: these notifications are not
currently available on linux.
... places-database-locked the places database is
currently locked by a third-party process and cannot be opened.
... lightweight-theme-changed - sent after the
current theme is changed.
... lightweight-theme-styling-update json sent when the
current theme being used is changed; this is sent even when the user is previewing a theme, not just when the theme is actually selected.
inIDOMUtils
value state 1 :active 2 :focus 4 :hover 8 :-moz-drag-over 16 :target 1<<29 :-moz-focusring methods getbindingurls() returns an array of nsiuri objects representing the
current xml binding for the specified element.
... return value an array of nsiuri objects representing the
current xbl binding (if any) for the element and its hierarchy of base bindings.
... return value an nsisupportsarray containing all the style rules that
currently apply to the element, in ascending order of weight.
... return value void setcontentstate() sets the given element as the
current owner of the specified state, and removes that state from the previous owner.
mozIPersonalDictionary
note that this method is not
currently implemented.
...note that this parameter is
currently unused.
...note that this parameter is
currently ignored.
...note that this parameter is
currently ignored.
mozIStorageConnection
databasefile nsifile the
current database nsifile.
... committransaction() this method commits the
current transaction.
... executeasync() asynchronously executes an array of queries created with this connection, using any
currently bound parameters.
... rollbacktransaction() this method rolls back the
current transaction.
nsIAccessibleRole
users can navigate between panes and within the contents of the
current pane, but cannot navigate between items in different panes.
... role_statusbar 23 represents a status bar, which is an area at the bottom of a window that displays information about the
current operation, state of the application, or selected object.
... role_indicator 39 represents an indicator, such as a pointer graphic, that points to the
current item.
...a specialized push button that can be checked or unchecked, but does not provide a separate indicator for the
current state.
nsIAccessibleStates
currently unused.
...
currently unused.
... state_required state_alert_low state_important state_alert_medium
currently unused.
... ext_state_active 0x00000010 this window is
currently the active window.
nsIAccessibleTable
if both row and column index are valid then the corresponding accessible object is returned that represents the requested cell regardless of whether the cell is
currently visible (on the screen).
... getselectedcellindices() renamed from getselectedcells in gecko 1.9.2 return an array of cell indices
currently selected.
... return an array of column indices
currently selected.
... return an array of row indices
currently selected.
nsIDOMGeoPositionCoords
last changed in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) inherits from: nsisupports attributes attribute type description latitude double the user's
current latitude, in degrees.
... longitude double the user's
current longitude, in degrees.
... altitude double the user's
current altitude, in meters.
... heading double the
current heading at which the user is moving, in degrees.
nsIDownloadManager
id removelistener(in nsidownloadprogresslistener alistener); void resumedownload(in unsigned long aid); void retrydownload(in unsigned long aid); void savestate(); obsolete since gecko 1.8 void startbatchupdate(); obsolete since gecko 1.9.1 attributes attribute type description activedownloadcount long the number of files
currently being downloaded.
... download_paused 4 the download is
currently paused.
... canceldownload() cancels the download with the specified id if it's
currently in-progress.
... removedownload() removes the download with the specified id if it is not
currently in progress.
nsIEditor
documentcharacterset acstring sets the
current 'save' document character set.
...true if the
current selection anchor is editable; otherwise false.
... this helps to support cases where only parts of the document are editable, by letting you see if the
current selection is in an editable section.
...the selection controller for the
current presentation.
nsIFilePicker
file nsilocalfile the
currently selected file or directory.
... files nsisimpleenumerator an enumerator of the
currently selected files.
... fileurl nsiuri the uri of the
currently selected file or directory.
... filterindex long the (0-based) index of the filter which is
currently selected in the file picker dialog.
nsIIdleService
currently nsiidleservice implementations exist for windows, mac os x, and linux (via xscreensaver).
...the data parameter for the notification contains the
current user idle time in gecko 15 and earlier or 0 in gecko 16 and later.
...
current implementations use a delay of 5 seconds.
...the data parameter for the notification contains the
current user idle time.
nsIParentalControlsService
1.0 66 introduced gecko 1.9 inherits from: nsisupports last changed in gecko 1.9 (firefox 3) note:
currently, this interface is only supported on microsoft windows vista and newer as well as android 4.3 and newer.
...aflag, in nsiuri asource, [optional] in nsifile atarget); boolean requesturioverride(in nsiuri atarget, [optional] in nsiinterfacerequestor awindowcontext); boolean requesturioverrides(in nsiarray atargets, [optional] in nsiinterfacerequestor awindowcontext); attributes attribute type description blockfiledownloadsenabled boolean true if the
current user account's parental controls restrictions include the blocking of all file downloads.
... loggingenabled boolean true if the
current user account has parental controls logging enabled.
... parentalcontrolsenabled boolean true if the
current user account has parental controls restrictions enabled.
nsISHistory
to create an instance, use: var shistory = components.classes["@mozilla.org/browser/shistory;1"] .createinstance(components.interfaces.nsishistory); method overview void addshistorylistener(in nsishistorylistener alistener); nsishentry getentryatindex(in long index, in boolean modifyindex); void purgehistory(in long numentries); void reload
currententry(); void removeshistorylistener(in nsishistorylistener alistener); attributes attribute type description count long the number of toplevel documents
currently available in session history.
... index long the index of the
current document in session history.
... modifyindex a boolean flag that indicates if the
current index of session history should be modified to the parameter index.
... reload
currententry() void reload
currententry(); parameters none.
nsISeekableStream
ns_seek_cur 1 specifies that the offset is relative to the
current position in the stream.
... seteof() this method truncates the stream at the
current offset.
... tell() this method reports the
current offset, in bytes, from the start of the stream.
...return value the
current offset, in bytes, from the start of the stream.
nsIWebNavigation
currenturi nsiuri the
currently loaded uri or null.
... document nsidomdocument retrieves the
current dom document for the frame, or lazily creates a blank document if there is none.
... referringuri nsiuri the referring uri for the
currently loaded uri or null.
... reload() tells the object to reload the
current page.
Using nsIDirectoryService
ctory(prop, getter_addrefs(dir)); if (!dir) return ns_error_failure; javascript: var file = components.classes["@mozilla.org/file/directory_service;1"] .getservice(components.interfaces.nsiproperties) .get("profd", components.interfaces.nsifile); (the example is taken from the code snippets section of this site.) adding a location: there are
currently two ways to add a file location to the directory service: directly and delayed.
...known locations the nsiproperties strings for
currently defined locations can be found in: nsdirectoryservicedefs.h nsappdirectoryservicedefs.h nsxulappapi.h content formerly at http://www.mozilla.org/projects/xpco...locations.html background the way in which mozilla components locate special files and directories has changed.
...for example, in seamonkey, the profile service is a provider for locations that are relative to the
current profile.
...the second group listed is for locations which are relative to the
current user profile.
Debugging service workers - Firefox Developer Tools
the server worker’s status, which can be one of the following: stopped: the service worker is installed, but not
currently running.
... debug important: the debug button is
currently enabled only in firefox nightly.
... note: there is
currently a bug whereby the network monitor cannot show network requests from a service worker running in a different process to the application (bug 1432311).
... finding registered service workers on other domains as mentioned above, the service worker view of the application panel shows all the service workers registered on the
current domain.
Search - Firefox Developer Tools
you can use the up and down arrows to move through the list, and return to open the file you want: searching within a file to search for a particular substring in the file
currently loaded into the source pane, press control + f (or command + f on a mac) while the source pane is focused.
...the debugger will display the number of matches in the code and highlight each result: using the outline tab if you are searching for a specific function within the
current javascript file, you can use the outline tab in the debugger to find it quickly.
... the outline tab lists the functions in the
current file.
... searching in all files you can also search for a string in all of the files included in the
currently opened project.
Debugger.Frame - Firefox Developer Tools
offset the offset of the bytecode instruction
currently being executed in script, or undefined if the frame’s script property is null.
... arguments the arguments passed to the
current frame, or null if this is not a "call" frame.
...each property is a read-only accessor property whose getter returns the
current value of the corresponding parameter.
... when this handler is called, this frame’s
current execution location, as reflected in its offset and environment properties, is the operation which caused it to be unwound.
Debugger - Firefox Developer Tools
accessor properties of the debugger prototype object a debugger instance inherits the following accessor properties from its prototype: enabled a boolean value indicating whether this debugger instance’s handlers, breakpoints, and the like are
currently enabled.
...changing this flag when any frame of the debuggee is
currently active on the stack will produce an exception.
...(naturally,frame is
currently the youngest visible frame.) this method should return a resumption value specifying how the debuggee’s execution should proceed.
... getnewestframe() return a debugger.frame instance referring to the youngest visible frame
currently on the calling thread’s stack, or null if there are no visible frames on the stack.
Eyedropper - Firefox Developer Tools
the eyedropper tool enables you to select colors in the
current page.
...underneath the magnifying glass it shows the color value for the
current pixel using whichever scheme you've selected in settings > inspector > default color unit: you can use it in one of two ways: to select a color from the page and copy it to the clipboard to change a color value in the inspector's rules view to a color you've selected from the page copying a color to the clipboard open the eyedropper in one of these two ways: select "eyedropper" under the "web developer" menu open the page inspector tab and click the eyedropper button in its toolbar as you move the mouse around the page you'll see the
current color value in the eyedropper change.
... clicking copies the
current color value to the clipboard.
... keyboard shortcuts command windows macos linux select the
current color enter return enter dismiss the eyedropper esc esc esc move by 1 pixel arrow keys arrow keys arrow keys move by 10 pixels shift + arrow keys shift + arrow keys shift + arrow keys ...
Edit fonts - Firefox Developer Tools
the fonts tab has three major sections: "fonts used" by the
currently inspected element.
... fonts used the top section of the font editor shows the fonts used by the
currently inspected element, grouped by font family.
...empty elements will not have any fonts used and will display the message "no fonts were found for the
current element." fonts will be included in this section for one of the following reasons: they are listed in the element's font-family css declaration value.
... note: if you want to use a different unit such as pt for font-size or line-height, you can set the property value applied to the
currently inspected element to use that unit via the rules view, and the font editor will automatically pick it up and make it available in the associated units dropdown menu.
Examine and edit CSS - Firefox Developer Tools
this also gets the target icon: , giving you a convenient way to highlight the
currently selected element in the page.
...click the funnel to filter the rule view to show only the rules applying to the
current node that try to set the same property: that is, the complete cascade for the given property.
...press tab to accept the
current suggestion or up and down to move through the list.
...this will add a new css rule whose selector matches the
currently selected node.
Style Editor - Firefox Developer Tools
the style sheet pane the style sheet pane, on the left, lists all the style sheets being used by the
current document.
... the media sidebar the style editor displays a sidebar on the right-hand side whenever the
current sheet contains any @media rules.
...the condition text of the rule is greyed-out if the media query doesn’t
currently apply.
...
currently this means sass 3.3.0 or above or the 1.5.0 version of less.
Taking screenshots - Firefox Developer Tools
taking a screenshot of the page use the screenshot icon: to take a full-page screenshot of the
current page.
... you'll now see the icon in the toolbar: click the icon to take a screenshot of the
current page.
... type :screenshot in the web console to create a screenshot of the
current page.
...with this parameter, even the parts of the webpage which are outside the
current bounds of the window will be included in the screenshot.
Animation.playState - Web APIs
syntax var
currentplaystate = animation.playstate; animation.playstate = newstate; value idle the
current time of the animation is unresolved and there are no pending tasks.
... paused the animation was suspended and the animation.
currenttime property is not updating.
... finished the animation has reached one of its boundaries and the animation.
currenttime property is not updating.
... tears.foreach(function(el) { el.pause(); el.
currenttime = 0; }); specifications specification status comment web animationsthe definition of 'playstate' in that specification.
Animation - Web APIs
properties animation.
currenttime the
current time value of the animation in milliseconds, whether running or paused.
... animation.finished read only returns the
current finished promise for this animation.
... animation.pending read only indicates whether the animation is
currently waiting for an asynchronous operation such as initiating playback or pausing a running animation.
... animation.ready read only returns the
current ready promise for this animation.
AnimationEffect.getComputedTiming() - Web APIs
syntax var
currenttimevalues = animation.getcomputedtiming(); parameters none.
... localtime the
current time of the animation in milliseconds.
... progress indicates how far along the animation is through its
current iteration with values between 0 and 1.
...
currentiteration the number of times this animation has looped, starting from 0.
AudioListener - Web APIs
note: although these methods are deprecated they are
currently the only way to set the orientation and position in firefox, internet explorer and safari.
...indow.webkitaudiocontext; var audioctx = new audiocontext(); var panner = audioctx.createpanner(); panner.panningmodel = 'hrtf'; panner.distancemodel = 'inverse'; panner.refdistance = 1; panner.maxdistance = 10000; panner.rollofffactor = 1; panner.coneinnerangle = 360; panner.coneouterangle = 0; panner.coneoutergain = 0; if(panner.orientationx) { panner.orientationx.setvalueattime(1, audioctx.
currenttime); panner.orientationy.setvalueattime(0, audioctx.
currenttime); panner.orientationz.setvalueattime(0, audioctx.
currenttime); } else { panner.setorientation(1,0,0); } var listener = audioctx.listener; if(listener.forwardx) { listener.forwardx.setvalueattime(0, audioctx.
currenttime); listener.forwardy.setvalueattime(0, audioctx.
currenttime); listener.forwardz.setvalueattime(-1, aud...
...ioctx.
currenttime); listener.upx.setvalueattime(0, audioctx.
currenttime); listener.upy.setvalueattime(1, audioctx.
currenttime); listener.upz.setvalueattime(0, audioctx.
currenttime); } else { listener.setorientation(0,0,-1,0,1,0); } var source; var play = document.queryselector('.play'); var stop = document.queryselector('.stop'); var boombox = document.queryselector('.boom-box'); var listenerdata = document.queryselector('.listener-data'); var pannerdata = document.queryselector('.panner-data'); leftbound = (-xpos) + 50; rightbound = xpos - 50; xiterator = width/150; // listener will always be in the same place for this demo if(listener.positionx) { listener.positionx.setvalueattime(xpos, audioctx.
currenttime); listener.positiony.setvalueattime(ypos, audioctx.
currenttime); l...
...istener.positionz.setvalueattime(300, audioctx.
currenttime); } else { listener.setposition(xpos,ypos,300); } listenerdata.innerhtml = 'listener data: x ' + xpos + ' y ' + ypos + ' z ' + 300; // panner will move as the boombox graphic moves around on the screen function positionpanner() { if(panner.positionx) { panner.positionx.setvalueattime(xpos, audioctx.
currenttime); panner.positiony.setvalueattime(ypos, audioctx.
currenttime); panner.positionz.setvalueattime(zpos, audioctx.
currenttime); } else { panner.setposition(xpos,ypos,zpos); } pannerdata.innerhtml = 'panner data: x ' + xpos + ' y ' + ypos + ' z ' + zpos; } note: in terms of working out what position values to apply to the listener and panner, to make the sound appropriate to what the visuals are doing on scr...
AudioParam.setTargetAtTime() - Web APIs
starttime the time that the exponential transition will begin, in the same time coordinate system as audiocontext.
currenttime.
... if it is less than or equal to audiocontext.
currenttime, the parameter will start changing immediately.
...however, for mathematical reasons, that method does not work if the
current value or the target value is 0.
...5 var gainnode = audioctx.creategain(); gainnode.gain.value = 0.5; var currgain = gainnode.gain.value; // connect the audiobuffersourcenode to the gainnode // and the gainnode to the destination source.connect(gainnode); gainnode.connect(audioctx.destination); // set buttons to do something onclick attimeplus.onclick = function() { currgain = 1.0; gainnode.gain.settargetattime(1.0, audioctx.
currenttime + 1, 0.5); } attimeminus.onclick = function() { currgain = 0; gainnode.gain.settargetattime(0, audioctx.
currenttime + 1, 0.5); } specifications specification status comment web audio apithe definition of 'settargetattime' in that specification.
BiquadFilterNode - Web APIs
biquadfilternode.frequency read only is an a-rate audioparam, a double representing a frequency in the
current filtering algorithm measured in hertz (hz).
... biquadfilternode.gain read only is an a-rate audioparam, a double representing the gain used in the
current filtering algorithm.
... biquadfilternode.getfrequencyresponse() from the
current filter parameter settings this method calculates the frequency response for frequencies specified in the provided array of frequencies.
...er(); // connect the nodes together source = audioctx.createmediastreamsource(stream); source.connect(analyser); analyser.connect(distortion); distortion.connect(biquadfilter); biquadfilter.connect(convolver); convolver.connect(gainnode); gainnode.connect(audioctx.destination); // manipulate the biquad filter biquadfilter.type = "lowshelf"; biquadfilter.frequency.setvalueattime(1000, audioctx.
currenttime); biquadfilter.gain.setvalueattime(25, audioctx.
currenttime); specifications specification status comment web audio apithe definition of 'biquadfilternode' in that specification.
Cache - Web APIs
the code also deletes all caches that aren't named in
current_caches.
... var cache_version = 1; var
current_caches = { font: 'font-cache-v' + cache_version }; self.addeventlistener('activate', function(event) { // delete all caches that aren't named in
current_caches.
... var expectedcachenamesset = new set(object.values(
current_caches)); event.waituntil( caches.keys().then(function(cachenames) { return promise.all( cachenames.map(function(cachename) { if (!expectedcachenamesset.has(cachename)) { // if this cache name isn't present in the set of "expected" cache names, then delete it.
... console.log('deleting out of date cache:', cachename); return caches.delete(cachename); } }) ); }) ); }); self.addeventlistener('fetch', function(event) { console.log('handling fetch event for', event.request.url); event.respondwith( caches.open(
current_caches.font).then(function(cache) { return cache.match(event.request).then(function(response) { if (response) { // if there is an entry in the cache for event.request, then response will be defined // and we can just return it.
Manipulating video using canvas - Web APIs
canvas c1 is used to display the
current frame of the original video, while c2 is used to display the video after performing the chroma-keying effect; c2 is preloaded with the still image that will be used to replace the green background in the video.
... then it calls the computeframe() method, which performs the chroma-keying effect on the
current video frame.
... note that you can simply pass the video element into the context's drawimage() method to draw the
current video frame into the context.
... the result is: line 3 fetches a copy of the raw graphics data for the
current frame of video by calling the getimagedata() method on the first context.
Drawing text - Web APIs
a filltext example the text is filled using the
current fillstyle.
... function draw() { var ctx = document.getelementbyid('canvas').getcontext('2d'); ctx.font = '48px serif'; ctx.filltext('hello world', 10, 50); } <canvas id="canvas" width="300" height="100"></canvas> draw(); a stroketext example the text is filled using the
current strokestyle.
...there are some more properties which let you adjust the way the text gets displayed on the canvas: font = value the
current text style being used when drawing text.
... measuretext() returns a textmetrics object containing the width, in pixels, that the specified text will be when drawn in the
current text style.
DOMHighResTimeStamp - Web APIs
the time origin the time origin is a standard time which is considered to be the beginning of the
current document's lifetime.
... it's calculated like this: if the script's global object is a window, the time origin is determined as follows: if the
current document is the first one loaded in the window, the time origin is the time at which the browser context was created.
... if neither of the above determines the time origin, then the time origin is the time at which the navigation responsible for creating the window's
current document took place.
... usage notes you can get the
current timestamp value—the time that has elapsed since the context was created—by calling the performance method now().
Document.adoptNode() - Web APIs
the adopted node and its subtree is removed from its original document (if any), and its ownerdocument is changed to the
current document.
... the node can then be inserted into the
current document.
... example const iframe = document.queryselector('iframe'); const iframeimages = iframe.contentdocument.queryselectorall('img'); const newparent = document.getelementbyid('images'); iframeimages.foreach(function(imgel) { newparent.appendchild(document.adoptnode(imgel)); }); notes before they can be inserted into the
current document, nodes from external documents should either be: cloned using document.importnode(); or adopted using document.adoptnode().
... best practice: although firefox doesn't
currently enforce this rule, we encourage you to follow this rule for improved future compatibility.
Document.domain - Web APIs
the domain property of the document interface gets/sets the domain portion of the origin of the
current document, as used by the same origin policy.
... syntax const domainstring = document.domain document.domain = domainstring value the domain portion of the
current document's origin.
...: the document is inside a sandboxed <iframe> the document has no browsing context the document's effective domain is null the given value is not equal to the document's effective domain (or it is not a registerable domain suffix of it) the document-domain feature-policy is enabled examples getting the domain for the uri http://developer.mozilla.org/docs/web, this example sets
currentdomain to the string "developer.mozilla.org".
... const
currentdomain = document.domain; closing a window if a document, such as www.example.xxx/good.html, has the domain of "www.example.xxx", this example attempts to close the window.
Document.fullscreen - Web APIs
the obsolete document interface's fullscreen read-only property reports whether or not the document is
currently displaying content in full-screen mode.
... syntax var isfullscreen = document.fullscreen; value a boolean value which is true if the document is
currently displaying an element in full-screen mode; otherwise, the value is false.
... example this simple function reports whether or not full-screen mode is
currently active, using the obsolete fullscreen property.
... function isdocumentinfullscreenmode() { return document.fullscreen; } this next example, on the other hand, uses the
current fullscreenelement property to determine the same thing: function isdocumentinfullscreenmode() { return document.fullscreenelement !== null; } if fullscreenelement isn't null, this returns true, indicating that full-screen mode is in effect.
DocumentOrShadowRoot.elementFromPoint() - Web APIs
syntax const element = document.elementfrompoint(x, y) parameters x the horizontal coordinate of a point, relative to the left edge of the
current viewport.
... y the vertical coordinate of a point, relative to the top edge of the
current viewport.
... example this example creates two buttons which let you set the
current color of the paragraph element located under the coordinates (2, 2).
... javascript function changecolor(newcolor) { elem = document.elementfrompoint(2, 2); elem.style.color = newcolor; } the changecolor() method simply obtains the element located at the specified point, then sets that element's
current foreground color property to the color specified by the newcolor parameter.
Element.innerHTML - Web APIs
usage notes the innerhtml property can be used to examine the
current html source of the page, including any changes that have been made since the page was initially loaded.
... note: the returned html or xml fragment is generated based on the
current contents of the element, so the markup and formatting of the returned fragment is likely not to match the original page markup.
... for example, you can erase the entire contents of a document by clearing the contents of the document's body attribute: document.body.innerhtml = ""; this example fetches the document's
current html markup and replaces the "<" characters with the html entity "<", thereby essentially converting the html into raw text.
... javascript function log(msg) { var logelem = document.queryselector(".log"); var time = new date(); var timestr = time.tolocaletimestring(); logelem.innerhtml += timestr + ": " + msg + "<br/>"; } log("logging mouse events inside this container..."); the log() function creates the log output by getting the
current time from a date object using tolocaletimestring(), and building a string with the timestamp and the message text.
EventTarget.addEventListener() - Web APIs
it is the same as the value of the
currenttarget property of the event argument that is passed to the handler.
... my_element.addeventlistener('click', function (e) { console.log(this.classname) // logs the classname of my_element console.log(e.
currenttarget === this) // logs `true` }) as a reminder, arrow functions do not have their own this context.
... my_element.addeventlistener('click', (e) => { console.log(this.classname) // warning: `this` is not `my_element` console.log(e.
currenttarget === this) // logs `false` }) if an event handler (for example, onclick) is specified on an element in the html source, the javascript code in the attribute value is effectively wrapped in a handler function that binds the value of this in a manner consistent with the addeventlistener(); an occurrence of this within the code represents a reference to the element.
...e; }; } if (!event.prototype.stoppropagation) { event.prototype.stoppropagation=function() { this.cancelbubble=true; }; } if (!element.prototype.addeventlistener) { var eventlisteners=[]; var addeventlistener=function(type,listener /*, usecapture (will be ignored) */) { var self=this; var wrapper=function(e) { e.target=e.srcelement; e.
currenttarget=self; if (typeof listener.handleevent != 'undefined') { listener.handleevent(e); } else { listener.call(self,e); } }; if (type=="domcontentloaded") { var wrapper2=function(e) { if (document.readystate=="complete") { wrapper(e); } }; document.attachevent("onreadystatechange",wrappe...
Guide to the Fullscreen API - Web APIs
other information the document provides some additional information that can be useful when developing fullscreen web applications: documentorshadowroot.fullscreenelement the fullscreenelement property tells you the element that's
currently being displayed fullscreen.
... document.fullscreenenabled the fullscreenenabled property tells you whether or not the document is
currently in a state that would allow fullscreen mode to be requested.
...if it's null, the document is
currently in windowed mode, so we need to switch to fullscreen mode.
... prefixing note:
currently, only firefox 64 and chrome 71 supports this unprefixed.
Geolocation API - Web APIs
the developer can now access this location information in a couple of different ways: geolocation.get
currentposition(): retrieves the device's
current location.
... interfaces geolocation the main class of this api — contains methods to retrieve the user's
current position, watch for changes in their position, and clear a previously-set watch.
... dictionaries positionoptions represents an object containing options to pass in as a parameter of geolocation.get
currentposition() and geolocation.watchposition().
...ap.org/#map=18/${latitude}/${longitude}`; maplink.textcontent = `latitude: ${latitude} °, longitude: ${longitude} °`; } function error() { status.textcontent = 'unable to retrieve your location'; } if(!navigator.geolocation) { status.textcontent = 'geolocation is not supported by your browser'; } else { status.textcontent = 'locating…'; navigator.geolocation.get
currentposition(success, error); } } document.queryselector('#find-me').addeventlistener('click', geofindme); result specifications specification status comment geolocation api recommendation ...
HTMLAnchorElement - Web APIs
htmlelement.tabindex is a long containing the position of the element in the tabbing navigation order for the
current document.
... note:
currently the w3c html 5.2 spec states that rev is no longer obsolete, whereas the whatwg living standard still has it labeled obsolete.
... htmlelement.blur() removes the keyboard focus from the
current element.
... htmlelement.focus() gives the keyboard focus to the
current element.
HTMLSelectElement.selectedOptions - Web APIs
the read-only htmlselectelement property selectedoptions contains a list of the <option> elements contained within the <select> element that are
currently selected.
... the list of selected options is an htmlcollection object with one entry per
currently selected option.
... syntax var selectedcollection = htmlselectelement.selectedoptions; value an htmlcollection which lists every
currently selected htmloptionelement which is either a child of the htmlselectelement or of an htmloptgroupelement within the <select> element.
... if no options are
currently selected, the collection is empty and returns a length of 0.
History.replaceState() - Web APIs
the history.replacestate() method modifies the
current history entry, replacing it with the stateobj, title, and url passed in the method parameters.
... this method is particularly useful when you want to update the state object or url of the
current history entry in response to some user action.
... title most browsers
currently ignore this parameter, although they may use it in the future.
...the new url must be of the same origin as the
current url; otherwise replacestate throws an exception.
History API - Web APIs
similarly, you can move forward (as if the user clicked the forward button), like this: window.history.forward() moving to a specific point in history you can use the go() method to load a specific page from session history, identified by its relative position to the
current page.
... (the
current page's relative position is 0.) to move back one page (the equivalent of calling back()): window.history.go(-1) to move forward a page, just like calling forward(): window.history.go(1) similarly, you can move forward 2 pages by passing 2, and so forth.
... another use for the go() method is to refresh the
current page by either passing 0, or by invoking it without an argument: // the following statements // both have the effect of // refreshing the page window.history.go(0) window.history.go() you can determine the number of pages in the history stack by looking at the value of the length property: let numberofentries = window.history.length interfaces history allows manipulation of the browser session history (that is, the pages visited in the tab or frame that the
current page is loaded in).
...and then illustrates some of the methods of the history object to add, replace, and move within the browser history for the
current tab.
IDBTransaction.mode - Web APIs
the mode read-only property of the idbtransaction interface returns the
current mode for accessing the data in the object stores in the scope of the transaction (i.e.
... syntax var my
currentmode = idbtransaction.mode; value an idbtransactionmode object defining the mode for isolating access to data in the
current object stores: value explanation readonly allows data to be read but not changed.
...transactions of this mode cannot run con
currently with other transactions.
...at the end, we simply log the mode of the
current transaction using mode.
Basic concepts - Web APIs
current version.
...you're storing critical data that cannot be recomputed later) you can force a transaction to flush to disk before delivering the complete event by creating a transaction using the experimental (non-standard) readwriteflush mode (see idbdatabase.transaction.) this is
currently experimental, and can only be used if the dom.indexeddb.experimental pref is set to true in about:config.
...the only way to change the version is by opening it with a greater version than the
current one.
...note, however, that locale-aware sorting has been allowed with an experimental flag enabled (
currently for firefox only) since firefox 43.
PublicKeyCredentialRequestOptions.rpId - Web APIs
its value can only be a suffix of the
current origin's domain.
...if it is not explicitely provided, the user agent will use the value of the
current origin's domain.
...its value can only be a suffix of the
current origin's domain.
... examples var options = { challenge: new uint8array([/* bytes sent from the server */]), rpid: "example.com" // will only work if the
current domain // is something like foo.example.com }; navigator.credentials.get({ "publickey": options }) .then(function (credentialinfoassertion) { // send assertion response back to the server // to proceed with the control of the credential }).catch(function (err) { console.error(err); }); specifications specification status comment web authentication: an api for accessing public key credentials level 1the definition of 'rpid' in that specification.
RTCIceCandidatePairStats - Web APIs
currentroundtriptime optional a floating-point value indicating the total time, in seconds, that elapsed elapsed between the most recently-sent stun request and the response being received.
... non-standard properties selected optional a firefox-specific boolean value which is true if the candidate pair described by this object is the one
currently in use.
... usage notes the
currently-active ice candidate pair—if any—can be obtained by calling the rtcicetransport method getselectedcandidatepair(), which returns an rtcicecandidatepair object, or null if there isn't a pair selected.
... the active candidate pair describes the
current configuration of the two ends of the rtcpeerconnection.
RTCIceTransport.getSelectedCandidatePair() - Web APIs
the rtcicetransport method getselectedcandidatepair() returns an rtcicecandidatepair object containing the
current best-choice pair of ice candidates describing the configuration of the endpoints of the transport.
... return value a rtcicecandidatepair object describing the configurations of the
currently-selected candidate pair's two endpoints.
... as ice negotiation continues, any time a pair of candidates is discovered that is better than the
currently-selected pair, the new pair is selected, replacing the previous pairing, and the selectedcandidatepairchange event is fired again.
... example in this example, an event handler for selectedcandidatepairchange is set up to update an on-screen display showing the protocol used by the
currently selected candidate pair.
RTCIceTransport.state - Web APIs
the read-only rtcicetransport property state returns the
current state of the ice transport, so you can determine the state of ice gathering in which the ice agent
currently is operating.
... this differs from the gatheringstate, which only indicates whether or not ice gathering is
currently underway.
... syntax icestate = icetransport.state; value a domstring, whose value is one of those found in the enumerated type rtcicetransportstate, which indicates the stage of ice gathering that's
currently underway.
... its value will be one of the following: "new" the rtcicetransport is
currently gathering local candidates, or is waiting for the remote device to begin to transmit the remote candidates, or both.
RTCPeerConnection.getConfiguration() - Web APIs
the rtcpeerconnection.getconfiguration() method returns an rtcconfiguration object which indicates the
current configuration of the rtcpeerconnection on which the method is called.
... return value an rtcconfiguration object describing the rtcpeerconnection's
current configuration.
...ertificates != undefined) && (!configuration.certificates.length)) { rtcpeerconnection.generatecertificate({ name: 'rsassa-pkcs1-v1_5', hash: 'sha-256', moduluslength: 2048, publicexponent: new uint8array([1, 0, 1]) }).then(function(cert) { configuration.certificates = [cert]; mypeerconnection.setconfiguration(configuration); }); } this example fetches the
current configuration of the rtcpeerconnection, then looks to see if it has any certificates set by examining whether or not (a) the configuration has a value for certificates, and (b) whether its length is zero.
... if it's determined that there are no certificates in place, rtcpeerconnection.generatecertificate() is called to create a new certificate; we provide a fulfillment handler which adds a new array containing the one newly-created certificate to the
current configuration and passes it to setconfiguration() to add the certificate to the connection.
Screen - Web APIs
the screen interface represents a screen, usually the one on which the
current window is being rendered, and is obtained using window.screen.
... note that browsers determine which screen to report as
current by detecting which screen has the center of the browser window.
... screen.left returns the distance in pixels from the left side of the main screen to the left side of the
current screen.
... screen.top returns the distance in pixels from the top side of the
current screen.
Using the Screen Capture API - Web APIs
note: it may be useful to note that recent versions of the webrtc adapter.js shim include implementations of getdisplaymedia() to enable screen sharing on browsers that support it but do not implement the
current standard api.
...in this case, the user agent may include the obscured content, either by getting the
current contents of the hidden portion of the window or by presenting the most-recently-visible contents if the
current contents are not available.
... function stopcapture(evt) { let tracks = videoelem.srcobject.gettracks(); tracks.foreach(track => track.stop()); videoelem.srcobject = null; } dumping configuration information for informational purposes, the startcapture() method shown above calls a method named dumpoptions(), which outputs the
current track settings as well as the constraints that were placed upon the stream when it was created.
...the settings
currently in effect are obtained using getsettings() and the established constraints are gotten with getconstraints() html the html starts with a simple introductory paragraph, then gets into the meat of things.
Screen Capture API - Web APIs
mediatracksettings mediatracksettings.cursor a string which indicates whether or not the display surface
currently being captured includes the mouse cursor, and if so, whether it's only visible while the mouse is in motion or if it's always visible.
... mediatracksettings.displaysurface a string indicating what type of display surface is
currently being captured.
... mediatracksupportedconstraints.displaysurface a boolean which is true if the
current environment supports the mediatrackconstraints.displaysurface constraint.
... mediatracksupportedconstraints.logicalsurface a boolean which is true if the
current environment supports the constraint mediatrackconstraints.logicalsurface.
Selection.modify() - Web APIs
the selection.modify() method applies a change to the
current selection or cursor position, using simple textual commands.
...specify "move" to move the
current cursor position or "extend" to extend the
current selection.
... direction the direction in which to adjust the
current selection.
... granularity the distance to adjust the
current selection or cursor position.
Selection.toString() - Web APIs
the selection.tostring() method returns a string
currently being represented by the selection object, i.e.
... the
currently selected text.
... description this method returns the
currently selected text.
... working draft
current browser compatibility the compatibility table on this page is generated from structured data.
Selection.type - Web APIs
the type read-only property of the selection interface returns a domstring describing the type of the
current selection.
... syntax value = sel.type value a domstring describing the type of the
current selection.
... possible values are: none: no selection has
currently been made.
... working draft
current ...
SourceBuffer.abort() - Web APIs
the abort() method of the sourcebuffer interface aborts the
current segment and resets the segment parser.
... saying that,
current implementations can be useful in certain situations, when you want to stop the
current append (or whatever) operation occuring on a sourcebuffer, and then immediately start performing operations on it again.
... in this case you would want to manually call abort() on the source buffer to stop the decoding of the
current buffer, then fetch and append the newly requested segment that relates to the
current new position of the video.
...in lines 92-101, the seek() function is defined — note that abort() is called if mediasource.readystate is set to open, which means that it is ready to receive new source buffers — at this point it is worth aborting the
current segment and just getting the one for the new seek position (see checkbuffer() and get
currentsegment().) specifications specification status comment media source extensionsthe definition of 'abort()' in that specification.
StorageManager.estimate() - Web APIs
the estimate() method of the storagemanager interface asks the storage manager for how much storage the
current origin takes up (usage), and how much space is available (quota).
...this dictionary contains estimates of how much space is available to the origin in storageestimate.quota, as well as how much is
currently used in storageestimate.usage.
...this variance is based on factors such as: how often the user visits public site popularity data user engagement signals like bookmarking, adding to homescreen, or accepting push notifications example in this example, we obtain the usage estimates and present the percentage of storage capacity
currently used to the user.
... html content <label> you’re
currently using about <output id="percent"> </output>% of your available storage.
WebGL2RenderingContext - Web APIs
webgl2renderingcontext.texsubimage3d() specifies a sub-rectangle of the
current 3d texture.
... webgl2renderingcontext.copytexsubimage3d() copies pixels from the
current webglframebuffer into an existing 3d texture sub-image.
... webgl2renderingcontext.clearbuffer[fiuv]() clears buffers from the
currently bound framebuffer.
... webgl2renderingcontext.bindtransformfeedback() binds a passed webgltransformfeedback object to the
current gl state.
WebGLRenderingContext.getRenderbufferParameter() - Web APIs
possible values: gl.renderbuffer_width: returns a glint indicating the width of the image of the
currently bound renderbuffer.
... gl.renderbuffer_height: returns a glint indicating the height of the image of the
currently bound renderbuffer.
... gl.renderbuffer_internal_format: returns a glenum indicating the internal format of the
currently bound renderbuffer.
... when using a webgl 2 context, the following value is available additionally: gl.renderbuffer_samples: returns a glint indicating the number of samples of the image of the
currently bound renderbuffer.
WebGLRenderingContext.getUniformLocation() - Web APIs
gl.useprogram(shaderprogram); uscalingfactor = gl.getuniformlocation(shaderprogram, "uscalingfactor"); uglobalcolor = gl.getuniformlocation(shaderprogram, "uglobalcolor"); urotationvector = gl.getuniformlocation(shaderprogram, "urotationvector") gl.uniform2fv(uscalingfactor,
currentscale); gl.uniform2fv(urotationvector,
currentrotation); gl.uniform4fv(uglobalcolor, [0.1, 0.7, 0.2, 1.0]); this code snippet is taken from the function animatescene() in "a basic 2d webgl animation example." see that article for the full sample and to see the resulting animation in action.
... after setting the
current shading program to shaderprogram, this code fetches the three uniforms "uscalingfactor", "uglobalcolor", and "urotationvector", calling getuniformlocation() once for each uniform.
... then the three uniforms' values are set: the uscalingfactor uniform — a 2-component vertex — receives the horizontal and vertical scaling factors from the variable
currentscale.
... the uniform urotationvector is set to the contents of the variable
currentrotation.
Taking still photos with WebRTC - Web APIs
streaming indicates whether or not there is
currently an active stream of video running.
... capturing a frame from the stream there's one last function to define, and it's the point to the entire exercise: the takepicture() function, whose job it is to capture the
currently displayed video frame, convert it into a png file, and display it in the captured frame box.
... then, if the width and height are both non-zero (meaning that there's at least potentially valid image data), we set the width and height of the canvas to match that of the captured frame, then call drawimage() to draw the
current frame of the video into the context, filling the entire canvas with the frame image.
... note: this takes advantage of the fact that the htmlvideoelement interface looks like an htmlimageelement to any api that accepts an htmlimageelement as a parameter, with the video's
current frame presented as the image's contents.
Web Animations API Concepts - Web APIs
it also provides a point of reference all browsers can adhere to with the
currently available specs.
... timeline timeline objects provide the useful property
currenttime, which lets us see how long the page has been opened for: it's the "
current time" of the document's timeline, which started when the page was opened.
... we
currently have only one animation effect type available: keyframeeffect.
...in fact, group effects and sequence effects have already been outlined in the
currently-in-progress level 2 spec of the web animations api.
Basic concepts behind Web Audio API - Web APIs
you can grab data using the following methods: analysernode.getfloatfrequencydata() copies the
current frequency data into a float32array array passed into it.
... analysernode.getbytefrequencydata() copies the
current frequency data into a uint8array (unsigned byte array) passed into it.
... analysernode.getfloattimedomaindata() copies the
current waveform, or time-domain, data into a float32array array passed into it.
... analysernode.getbytetimedomaindata() copies the
current waveform, or time-domain, data into a uint8array (unsigned byte array) passed into it.
Migrating from webkitAudioContext - Web APIs
the web audio api went through many iterations before reaching its
current state.
... note: there is a library called webkitaudiocontext monkeypatch, which automatically fixes some of these changes to make most code targetting webkitaudiocontext to work on the standards based audiocontext out of the box, but it
currently doesn't handle all of the cases below.
... you can compare the value of audiocontext.
currenttime to the first argument passed to start() to know whether playback has started or not.
... if you need to compare this attribute to playing_state, you can compare the value of audiocontext.
currenttime to the first argument passed to start() to know whether playback has started or not.
Example and tutorial: Simple synth keyboard - Web APIs
<div class="right"> <span>
current waveform: </span> <select name="waveform"> <option value="sine">sine</option> <option value="square" selected>square</option> <option value="sawtooth">sawtooth</option> <option value="triangle">triangle</option> <option value="custom">custom</option> </select> </div> </div> css .container { overflow-x: scroll; overflow-y: hidden; width: 660px; he...
... osclist is set up to be ready to contain a list of all
currently-playing oscillators.
... stopping a tone the notereleased() function is the event handler called when the user releases the mouse button or moves the mouse out of the key that's
currently playing.
...finally, the osclist entry for the note is cleared and the data-pressed attribute is removed from the key element (as identified by event.target), to indicate that the note is not
currently playing.
Background audio processing using AudioWorklet - Web APIs
the same check is performed when determining how many channels to process in the
current input; we only process as many as there are room for in the destination output.
... note: at this time, unfortunately, chrome does not implement this algorithm in a manner that matches the
current standard.
... gainparam.setvalueattime(newvalue, audiocontext.
currenttime); you can similarly use any of the other methods in the audioparam interface to apply changes over time, to cancel scheduled changes, and so forth.
... reading the value of a parameter is as simple as looking at its value property: let
currentgain = gainparam.value; ...
Functions and classes available to Web Workers - Web APIs
workers run in another global context, dedicatedworkerglobalscope, different from the
current window.
... 38 (38) no support no support no support cache cache api provides the ability to programmatically control cache storage associated with
current origin.
... 38 (38) (yes) (yes) (yes) crypto the crypto interface represents basic cryptography features available in the
current context.
... 53 (53) (
currently only available in dedicated and shared workers; not service workers.) ?
Window.devicePixelRatio - Web APIs
the devicepixelratio of window interface returns the ratio of the resolution in physical pixels to the resolution in css pixels for the
current display device.
...the media query, which begins as (resolution: 1dppx) (for standard displays) or (resolution: 2dppx) (for retina/hidpi displays), checks to see if the
current display resolution matches a specific number of device dots per px.
... the updatepixelratio() function fetches the
current value of devicepixelratio, then sets the innertext of the element pixelratiobox to a string which displays the ratio both as a percentage and as a raw decimal value with up to two decimal places.
... html the html creates the boxes containing the instructions and the pixel-ratio box that will display the
current pixel ratio information.
Window.scrollX - Web APIs
the read-only scrollx property of the window interface returns the number of pixels that the document is
currently scrolled horizontally.
... syntax var x = window.scrollx; value in practice, the returned value is a double-precision floating-point value indicating the number of pixels the document is
currently scrolled horizontally from the origin, where a positive value means the content is scrolled to the left.
... in more technical terms, scrollx returns the x coordinate of the left edge of the
current viewport.
... example this example checks the
current horizontal scroll position of the document.
WindowClient - Web APIs
windowclient.focus() gives user input focus to the
current client.
... windowclient.focused read only a boolean that indicates whether the
current client has focus.
... windowclient.visibilitystate read only indicates the visibility of the
current client.
... example self.addeventlistener('notificationclick', function(event) { console.log('on notification click: ', event.notification.tag); event.notification.close(); // this looks to see if the
current is already open and // focuses if it is event.waituntil(clients.matchall({ type: "window" }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus' in client) { client.focus(); break; } } if (clients.openwindow) return clients.openwindow('/'); })); }); specifications specification status comment service workersthe definition of 'windowclient' in that specification.
WindowOrWorkerGlobalScope.setInterval() - Web APIs
<!doctype html> <html> <head> <meta charset="utf-8" /> <title>javascript typewriter - mdn example</title> <script> function typewriter (sselector, nrate) { function clean () { clearinterval(nintervid); btyping = false; bstart = true; o
current = null; asheets.length = nidx = 0; } function scroll (osheet, npos, beraseandstop) { if (!osheet.hasownproperty('parts') || amap.length < npos) { return true; } var orel, bexit = false; if (amap.length === npos) { amap.push(0); } while (amap[npos] < osheet.parts.length) { orel = osheet.parts[amap[npos]]; scroll(orel, npos + 1, beraseandstop) ?
... amap[npos]++ : bexit = true; if (beraseandstop && (orel.ref.nodetype - 1 | 1) === 3 && orel.ref.nodevalue) { bexit = true; o
current = orel.ref; spart = o
current.nodevalue; o
current.nodevalue = ''; } osheet.ref.appendchild(orel.ref); if (bexit) { return false; } } amap.length--; return true; } function typewrite () { if (spart.length === 0 && scroll(asheets[nidx], 0, true) && nidx++ === asheets.length - 1) { clean(); return; } o
current.nodevalue += spart.charat(0); spart = spart.slice(1); } function sheet (onode) { this.ref = onode; if (!onode.haschildnodes()) { return; } this.parts = array.prototype.slice.call(onode.childnodes); for (var nchild = 0; nchild < this.parts.length; nchild++)...
... { onode.removechild(this.parts[nchild]); this.parts[nchild] = new sheet(this.parts[nchild]); } } var nintervid, o
current = null, btyping = false, bstart = true, nidx = 0, spart = "", asheets = [], amap = []; this.rate = nrate || 100; this.play = function () { if (btyping) { return; } if (bstart) { var aitems = document.queryselectorall(sselector); if (aitems.length === 0) { return; } for (var nitem = 0; nitem < aitems.length; nitem++) { asheets.push(new sheet(aitems[nitem])); /* uncomment the following line if you have previously hidden your elements via css: */ // aitems[nitem].style.visibility = "visible"; } bstart = false; } nintervid = setinterval(typewrite, this.rate); btyping = t...
...rue; }; this.pause = function () { clearinterval(nintervid); btyping = false; }; this.terminate = function () { o
current.nodevalue += spart; spart = ""; for (nidx; nidx < asheets.length; scroll(asheets[nidx++], 0, false)); clean(); }; } /* usage: */ var otwexample1 = new typewriter(/* elements: */ '#article, h1, #info, #copyleft', /* frame rate (optional): */ 15); /* default frame rate is 100: */ var otwexample2 = new typewriter('#controls'); /* you can also change the frame rate value modifying the "rate" property; for example: */ // otwexample2.rate = 150; onload = function () { otwexample1.play(); otwexample2.play(); }; </script> <style type="text/css"> span.intlink, a, a:visited { cursor: pointer; color: #000000; text-decoration: underline; } ...
XRVisibilityState - Web APIs
the xrvisibilitystate enumerated type defines the string values which are valid for the xrsession interface's visibilitystate property, which indicates whether or not an xr session is
currently visible to the user, and if it is, whether or not it's
currently the primary focus.
... values hidden the virtual scene generated by the xrsession is not
currently visible to the user, so its requestanimationframe() callbacks are not being executed until thevisibilitystate changes.
... visible the virtual scene rendered by the xrsession is
currently visible to the user and is the primary focus of the user's attention.
... visible-blurred while the virtual scene rendered by the xrsession may
currently be visible to the user, it is not the user's primary focus at the moment; it's also possible the session is not
currently visible at all.
ARIA live regions - Accessibility
not known if the aria-controls aspect of live regions is implemented in
current ats, or which.
...screen reader users have a special command to read the
current status.
...the clock is updated each minute, with the new remaining time simply overwriting the
current content.
... with aria-atomic="true", the screenreader announces "the set year is: changedvalue" advanced use case: roster a chat site would like to display a list of users
currently logged in.
Using the alert role - Accessibility
assistive technology products should listen for such an event and notify the user accordingly: screen readers may interrupt
current output (whether it's speech or braille) and immediately announce or display the alert message.
... note: in most cases this approach is not recommended, because it's not ideal to hide error or alert text that is
currently not applicable.
... users of older assistive technology may still be able to perceive the alert text even when the alert does not
currently applies, causing users to incorrectly believe that there is a problem.
...the element that the alert role is used on does not have to be able to receive focus, as screen readers will automatically announce the alert regardless of where keyboard focus is
currently located.
Using the aria-valuenow attribute - Accessibility
the aria-valuenow attribute is used to define the
current value for a range widget such as a slider, spinbutton or progressbar.
... if the
current value is not known, the author should not set the aria-valuenow attribute.
... when the rendered value cannot be accurately represented as a number, authors should use the aria-valuetext attribute in conjunction with aria-valuenow to provide a user-friendly representation of the range's
current value.
... examples example 1: the snippet below shows a simple slider with a
current value of 4.
ARIA: listbox role - Accessibility
if the
current item has an associated context menu, shift+f10 will launch that menu.
... list a section containing listitem elements states and properties aria-activedescendant holds the id string of the
currently active element within the listbox.
... if false or omitted, only the
currently selected option, if any option is selected, needs the aria-selected attribute, and it must be set to true.
...the aria-activedescendant value on the listbox to the id of the newly selected option visually handle the blur, focus, and selected states of the option toggling the state of an option in a multi select listbox when the user clicks on an option, hits space when focused on an option, or otherwise toggles the state of an option, the following must occur: toggle the aria-selected state of the
currently focused option, changing the state of the aria-selected to true if it was false or false if it was true.
Web applications and ARIA FAQ - Accessibility
tbd: how well does this
currently work?
...(tbd) voiceover osx 10.5, ios 4 os x 10.7 ios 5 jaws 8 10 window-eyes 7 no live region support
currently zoomtext ?
... no live region support
currently note: early versions of these tools often had partial or buggy aria implementations.
...the aria-valuemin and aria-valuemax attributes specify the minimum and maximum values for the progress bar, and the aria-valuenow describes the
current state of it.
Operable - Accessibility
guideline 2.4 — navigable: provide ways to help users navigate, find content, and determine where they are the conformance criteria under this guideline relate to ways in which users can be expected to orientate themselves, and find the content and functionality they are looking for on the
current page or other pages of the site.
... 2.4.7 visible focus for focusable elements (aa) when tabbing through focusable elements such as links or form inputs, there should be a visual indicator to show you which element
currently has focus.
... understanding target size 2.5.6 con
current input mechanisms (aaa) added in 2.1 make sure people can use and switch between different modes of input when interacting with digital content including touchscreen, keyboard, mouse, voice commands, or alternative input devices.
... understanding con
current input mechanism note: also see the wcag description for guideline 2.5: input modalities: make it easier for users to operate functionality through various inputs beyond keyboard.
Cross-browser Flexbox mixins - CSS: Cascading Style Sheets
this article provides a set of mixins for those who want to mess around with flexbox using the native support of
current browsers.
...s was inspired by: http://dev.opera.com/articles/view/advanced-cross-browser-flexbox/ with help from: http://w3.org/tr/css3-flexbox/ http://the-echoplex.net/flexyboxes/ http://msdn.microsoft.com/en-us/library/ie/hh772069(v=vs.85).aspx http://css-tricks.com/using-flexbox/ a complete guide to flexbox | css-tricks visual guide to css3 flexbox: flexbox playground | note: mixins are not
currently supported natively in browsers.
... @if type-of($fg) == 'list' { $fg-boxflex: nth($fg, 1); } -webkit-box: $fg-boxflex; -moz-box: $fg-boxflex; -webkit-flex: $fg $fs $fb; -ms-flex: $fg $fs $fb; flex: $fg $fs $fb; } flexbox justify content the justify-content property aligns flex items along the main axis of the
current line of the flex container.
...; } @else if $value == space-around { -ms-flex-pack: distribute; } @else { -webkit-box-pack: $value; -moz-box-pack: $value; -ms-flex-pack: $value; } -webkit-justify-content: $value; justify-content: $value; } // shorter version: @mixin flex-just($args...) { @include justify-content($args...); } flexbox align items flex items can be aligned in the cross axis of the
current line of the flex container, similar to justify-content but in the perpendicular direction.
caret-color - CSS: Cascading Style Sheets
syntax /* keyword values */ caret-color: auto; caret-color: transparent; caret-color:
currentcolor; /* <color> values */ caret-color: red; caret-color: #5729e9; caret-color: rgb(0, 200, 0); caret-color: hsla(228, 4%, 24%, 0.8); values auto the user agent selects an appropriate color for the caret.
... this is generally
currentcolor, but the user agent may choose a different color to ensure good visibility and contrast with the surrounding content, taking into account the value of
currentcolor, the background, shadows, and other factors.
... note: while user agents may use
currentcolor (which is usually animatable) for the auto value, auto is not interpolated in transitions and animations.
... formal definition initial valueautoapplies toall elementsinheritedyescomputed valueauto is computed as specified and <color> values are computed as defined for the color property.animation typea color formal syntax auto | <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> |
currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
<a>: The Anchor element - HTML: Hypertext Markup Language
the following keywords have special meanings for where to load the url: _self: the
current browsing context.
... _parent: the parent browsing context of the
current one.
... _top: the topmost browsing context (the "highest" context that’s an ancestor of the
current one).
... css a { display: block; margin-bottom: 0.5em } result linking to an element on the same page <!-- <a> element links to the section below --> <p><a href="#section_further_down"> jump to the heading below </a></p> <!-- heading to link to --> <h2 id="section_further_down">section further down</h2> note: you can use href="#top" or the empty fragment (href="#") to link to the top of the
current page, as defined in the html specification.
<form> - HTML: Hypertext Markup Language
the following keywords have special meanings: _self (default): load into the same browsing context as the
current one.
... _parent: load into the parent browsing context of the
current one.
... _top: load into the top-level browsing context (i.e., the browsing context that is an ancestor of the
current one and has no parent).
... examples html <!-- form which will send a get request to the
current url --> <form> <label>name: <input name="submitted-name" autocomplete="name"> </label> <button>save</button> </form> <!-- form which will send a post request to the
current url --> <form method="post"> <label>name: <input name="submitted-name" autocomplete="name"> </label> <button>save</button> </form> <!-- form with fieldset, legend, and label --> <form method="post"> <fieldset> <legend>title</legend> <label><input type="radio" name="radio"> select me</label> </fieldset> </form> specifications specification...
<input type="checkbox"> - HTML: Hypertext Markup Language
upport the following attributes: attribute description checked boolean; if present, the checkbox is toggled on by default indeterminate a boolean which, if present, indicates that the value of the checkbox is indeterminate rather than true or false value the string to use as the value of the checkbox when submitting the form, if the checkbox is
currently toggled on checked a boolean attribute indicating whether or not this checkbox is checked by default (when the page loads).
... it does not indicate whether this checkbox is
currently checked: if the checkbox’s state is changed, this content attribute does not reflect the change.
... (only the htmlinputelement’s checked idl attribute is updated.) note: unlike other input controls, a checkboxes value is only included in the submitted data if the checkbox is
currently checked.
... value the value attribute is one which all <input>s share; however, it serves a special purpose for inputs of type checkbox: when a form is submitted, only checkboxes which are
currently checked are submitted to the server, and the reported value is the value of the value attribute.
<input type="date"> - HTML: Hypertext Markup Language
however, there are
currently issues with <input type="date"> because of its limited browser support.
...we make use of the :valid and :invalid pseudo-elements to add an icon next to the input, based on whether or not the
current value is valid.
...ption>october</option> <option>november</option> <option>december</option> </select> </span> <span> <label for="year">year:</label> <select id="year" name="year"> </select> </span> </div> </form> the months are hardcoded (as they are always the same), while the day and year values are dynamically generated depending on the
currently selected month and year, and the
current year (see the code comments below for detailed explanations of how these functions work.) span { padding-left: 5px; } input:invalid + span::after { content: '✖'; } input:valid + span::after { content: '✓'; } javascript the other part of the code that may be of interest is the feature detection code — to detect whether the browser suppo...
...type === 'text') { // hide the native picker and show the fallback nativepicker.style.display = 'none'; fallbackpicker.style.display = 'block'; fallbacklabel.style.display = 'block'; // populate the days and years dynamically // (the months are always the same, therefore hardcoded) populatedays(monthselect.value); populateyears(); } function populatedays(month) { // delete the
current set of <option> elements out of the // day <select>, ready for the next set to be injected while(dayselect.firstchild){ dayselect.removechild(dayselect.firstchild); } // create variable to hold new number of days to inject var daynum; // 31 or 30 days?
<link>: The External Resource Link element - HTML: Hypertext Markup Language
the html external resource link element (<link>) specifies relationships between the
current document and an external resource.
... rel this attribute names a relationship of the linked document to the
current document.
...for example, the browser might choose a different rendering of a link as a function of the methods specified; something that is searchable might get a different icon, or an outside link might render with an indication of leaving the
current site.
... rev the value of this attribute shows the relationship of the
current document to the linked document, as defined by the href attribute.
Standard metadata names - HTML: Hypertext Markup Language
no-referrer-when-downgrade send the full url when the destination is at least as secure as the
current page (http(s)→https), but send no referrer when it's less secure (https→http).
... strict-origin send the origin when the destination is at least as secure as the
current page (http(s)→https), but send no referrer when it's less secure (https→http).
...send the origin when the destination is at least as secure as the
current page (http(s)→https).
...your styles can adapt to the
current color scheme using the prefers-color-scheme css media feature.
<video>: The Video Embed element - HTML: Hypertext Markup Language
currenttime reading
currenttime returns a double-precision floating-point value indicating the
current playback position of the media specified in seconds.
...setting
currenttime sets the
current playback position to the given time and seeks the media to that position if the media is
currently loaded.
...other media may have a media timeline that doesn't start at 0 seconds, so setting
currenttime to a time before that would fail.
... timeupdate the time indicated by the
currenttime attribute has been updated.
Using the application cache - HTML: Hypertext Markup Language
if the
currently-cached copy of the manifest is up-to-date, the browser sends a noupdate event to the applicationcache object, and the update process is complete.
... in firefox, the offline cache data is stored separately from the firefox profile—next to the regular disk cache: windows vista/7: c:\users\<username>\appdata\local\mozilla\firefox\profiles\<salt>.<profile name>\offlinecache mac/linux: /users/<username>/library/caches/firefox/profiles/<salt>.<profile name>/offlinecache in firefox the
current status of the offline cache can be inspected on the about:cache page (under the "offline cache device" heading).
... cache states each application cache has a state, which indicates the
current condition of the cache.
... idle the application cache is not
currently in the process of being updated.
CSP: report-uri - HTTP
so for compatibility with
current browsers while also adding forward compatibility when browsers get report-to support, you can specify both report-uri and report-to: content-security-policy: ...; report-uri https://endpoint.com; report-to groupname in browsers that support report-to, the report-uri directive will be ignored.
...'/csp-violations.log'; $log_file_size_limit = 1000000; // bytes - once exceeded no further entries are added $email_address = 'admin@example.com'; $email_subject = 'content-security-policy violation'; // end configuration $
current_domain = preg_replace('/www\./i', '', $_server['server_name']); $email_subject = $email_subject .
...$
current_domain; http_response_code(204); // http 204 no content $json_data = file_get_contents('php://input'); // we pretty print the json before adding it to the log file if ($json_data = json_decode($json_data)) { $json_data = json_encode($json_data, json_pretty_print | json_unescaped_slashes); if (!file_exists($log_file)) { // send an email $message = "the following content-security-policy violation occurred on " .
... $
current_domain .
HTTP headers - HTTP
dpr a number that indicates the client’s
current device pixel ratio (dpr), which is the ratio of physical pixels over css pixels (section 5.2 of [cssval]) of the layout viewport (section 9.1.1 of [css2]) on the device.
... connection management connection controls whether the network connection stays open after the
current transaction finishes.
... referer the address of the previous web page from which a link to the
currently requested page was followed.
...the standard establishes rules for upgrading or changing to a different protocol on the
current client, server, transport protocol connection.
Proxy Auto-Configuration (PAC) file - HTTP
if both wd1 and wd1 are defined, the condition is true if the
current weekday is in between those two ordered weekdays.
...now weekdayrange("wed", "sun") will only evaluate true if the
current day is wednesday or sunday.
...now daterange("dec", "jan") will only evaluate true if the
current month is december or january.
...now timerange(23, 0) will only evaluate true if the
current hour is 23:00 or midnight.
A re-introduction to JavaScript (JS tutorial) - JavaScript
if you query a non-existent array index, you'll get a value of undefined in return: typeof a[90]; // undefined if you take the above about [] and length into account, you can iterate over an array using the following for loop: for (var i = 0; i < a.length; i++) { // do something with a[i] } es2015 introduced the more concise for...of loop for iterable objects such as arrays: for (const
currentvalue of a) { // do something with
currentvalue } you could also iterate over an array using a for...in loop, however this does not iterate over the array elements, but the array indices.
... another way of iterating over an array that was added with ecmascript 5 is foreach(): ['dog', 'cat', 'hen'].foreach(function(
currentvalue, index, array) { // do something with
currentvalue or array[index] }); if you want to append an item to an array simply do it like this: a.push(item); arrays come with a number of methods.
...used inside a function, this refers to the
current object.
...there is no mechanism for iterating over the properties of the
current scope object, for example.
Date.prototype.getTimezoneOffset() - JavaScript
the gettimezoneoffset() method returns the time zone difference, in minutes, from
current locale (host system settings) to utc.
... syntax dateobj.gettimezoneoffset() return value a number representing the time-zone offset, in minutes, from the date based on
current host system settings to utc.
...
current locale utc-8 utc utc+3 return value 480 0 -180 the time zone offset returned is the one that applies for the date that it's called on.
... examples using gettimezoneoffset() // get
current timezone offset for host device let x = new date(); let
currenttimezoneoffsetinhours = x.gettimezoneoffset() / 60; // 1 // get timezone offset for international labour day (may 1) in 2016 // be careful, the date() constructor uses 0-indexed months, so may is // represented with 4 (and not 5) let labourday = new date(2016, 4, 1) let labourdayoffset = labourday.gettimezoneoffset() / 60; specifications specification ecmascript (ecma-262)the definition of 'date.prototype.gettimezoneoffset' in that specification.
Date.prototype.setMonth() - JavaScript
the setmonth() method sets the month for a specified date according to the
currently set year.
... the
current day of month will have an impact on the behaviour of this method.
... conceptually it will add the number of days given by the
current day of the month to the 1st day of the new month specified as the parameter, to return the new date.
... for example, if the
current value is 31st august 2016, calling setmonth with a value of 1 will return 2nd march 2016.
String.prototype.padStart() - JavaScript
the padstart() method pads the
current string with another string (multiple times, if needed) until the resulting string reaches the given length.
... the padding is applied from the start of the
current string.
... syntax str.padstart(targetlength [, padstring]) parameters targetlength the length of the resulting string once the
current str has been padded.
... padstring optional the string to pad the
current str with.
String - JavaScript
string.prototype.padend(targetlength [, padstring]) pads the
current string from the end with a given string and returns a new string of the length targetlength.
... string.prototype.padstart(targetlength [, padstring]) pads the
current string from the start with a given string and returns a new string of the length targetlength.
... string.prototype.tolocalelowercase( [locale, ...locales]) the characters within a string are converted to lowercase while respecting the
current locale.
... string.prototype.tolocaleuppercase( [locale, ...locales]) the characters within a string are converted to uppercase while respecting the
current locale.
import - JavaScript
import an entire module's contents this inserts mymodule into the
current scope, containing all the exports from the module in the file located in /modules/my-module.js.
... if the module imported above includes an export doalltheamazingthings(), you would call it like this: mymodule.doalltheamazingthings(); import a single export from a module given an object or value named myexport which has been exported from the module my-module either implicitly (because the entire module is exported) or explicitly (using the export statement), this inserts myexport into the
current scope.
... import {myexport} from '/modules/my-module.js'; import multiple exports from module this inserts both foo and bar into the
current scope.
...for example, this inserts shortname into the
current scope.
CSS and JavaScript animation performance - Web Performance
they each have their own user scenarios: css transitions provide an easy way to make animations occur between the
current style and an end css state, e.g., a resting button state and a hover state.
... even if an element is in the middle of a transition, the new transition starts from the
current style immediately instead of jumping to the end css state.
...developers can create an animation by simply changing an element's style each time the loop is called (or updating the canvas draw, or whatever.) note: like css transitions and animations, requestanimationframe() pauses when the
current tab is pushed into the background.
... enabling fps tools before going through the example, please enable fps tools first to see the
current frame rate: in the url bar, enter about:config; click the i’ll be careful, i promise!
Performance fundamentals - Web Performance
use css animations and transitions instead of using some library’s animate() function, which probably
currently uses many badly performing technologies (window.settimeout() or top/left positioning, for example) use css animations.
... use requestanimationframe() instead of setinterval() calls to window.setinterval() run code at a presumed frame rate that may or may not be possible under
current circumstances.
...instead, keep in your dom tree only the ones that are visible and a few on either side of the
currently visible set of tweets.
...the same trick applies in games to sprites: if they aren’t
currently on the screen, there is no need to poll them.
The building blocks of responsive design - Progressive web apps (PWAs)
note that getusermedia() is an experimental technology, which
currently only works in google chrome and firefox desktop.
...if we viewed my example in a mobile browser in its
current state, we wouldn't see our nice mobile layout.
...there are
currently some standards proposals in the works that would provide this — the w3c responsive images community group discussed this problem for ages and arrived at the <picture> element, which provides a similar markup structure to <video>, with <source> alternatives selectable via media query results.
...
currently we have to rely on various polyfills and other solutions, none of which are perfect for all situations, so you need to decide which one is right for your particular situation.
enable-background - SVG: Scalable Vector Graphics
default value accumulate animatable no accumulate if an ancestor container element has a property value of enable-background: new, then all graphics elements within the
current container element are rendered both onto the parent container elementʼs background image canvas and onto the target device.
... otherwise, there is no
current background image canvas, so graphics elements are only rendered onto the target device.
... this value enables the ability of children of the
current container element to access the background image.
... it also indicates that a new (i.e., initially transparent black) background image canvas is established and that in effect all children of the
current container element shall be rendered into the new background image canvas in addition to being rendered onto the target device.
externalResourcesRequired - SVG: Scalable Vector Graphics
the externalresourcesrequired attribute specifies whether referenced resources that are not part of the
current document are required for proper rendering of the given container or graphics element.
... usage notes value false | true default value false animatable no true this value indicates that resources external to the
current document are required.
... false this value indicates that resources external to the
current document are optional.
... document rendering can proceed even if external resources are unavailable to the
current element and its descendants.
text-anchor - SVG: Scalable Vector Graphics
each text chunk has an initial
current text position, which represents the point in the user coordinate system resulting from (depending on context) application of the x and y attributes on the <text> element, any x or y attribute values on a <tspan>, <tref> or <altglyph> element assigned explicitly to the first rendered character in a text chunk, or determination of the initial
current text position for a <textpath> element.
..." fill="red" /> <circle cx="60" cy="110" r="3" fill="red" /> <style><![cdata[ text { font: bold 36px verdana, helvetica, arial, sans-serif; } ]]></style> </svg> usage notes default value start value start | middle | end animatable yes start the rendered characters are aligned such that the start of the text string is at the initial
current text position.
... middle the rendered characters are aligned such that the middle of the text string is at the
current text position.
...then, the text string is mapped onto the path with this midpoint placed at the
current text position.) end the rendered characters are shifted such that the end of the resulting rendered text (final
current text position before applying the text-anchor property) is at the initial
current text position.
Index - XSLT: Extensible Stylesheet Language Transformations
to find out the
current type, load the file in mozilla and look at the page info.
... 28 <xsl:copy> element, reference, xslt, copy the <xsl:copy> element transfers a shallow copy (the node and any associated namespace node) of the
current node to the output document.
... it does not copy any children or attributes of the
current node.
...it is often used to iterate through a set of nodes or to change the
current node.
PI Parameters - XSLT: Extensible Stylesheet Language Transformations
note that multiple xml-stylesheet xslt pis are not supported in firefox
currently.
... the context node is the node used as initial
current node used when executing the stylesheet.
... the context position is the position of the context node in the initial
current node list used when executing the stylesheet.
... the context size is the size of the initial
current node list used when executing the stylesheet.
Content Processes - Archive of obsolete content
when this function is called with a given event name, it calls all the listeners
currently associated with that event.
... a few notes on security as we stated earlier, the sdk was designed with multiprocess support in mind, despite the fact that work on implementing this in firefox has
currently been suspended.
... since both add-on modules and content scripts are
currently loaded in sandboxes rather than separate processes, and sandboxes can communicate with each other directly (using imports/exports), you might be wondering why we have to go through all the trouble of passing messages between add-on and content scripts.
Chapter 6: Firefox extensions and XUL applications - Archive of obsolete content
installing this is bundled with the mozilla suite and the
current version of seamonkey, but it needs to be installed as an extension in firefox.
... when venkman first launches, it can only debug the file
currently open in your web browser.
... fixme: figure 3: inserting a breakpoint start debugger type in some text into the quicknote screen, and then select save
current tab from the menu.
Adding Toolbars and Toolbar Buttons - Archive of obsolete content
the user can now use the customize dialog to add the buttons to the
current firefox toolbars.
... these are the
current icon sets for firefox: windows mac os x (lion and above) mac os x linux (gnome) note: the images above are probably not distributable under the same cc license, unlike the rest of this material.
... } } if (application.extensions) firstrun(application.extensions); else application.getextensions(firstrun); the fuel library
currently only works on firefox 3 and above.
XPCOM Objects - Archive of obsolete content
if you want to see the list in your
current firefox installation, just run the following code in the error console: var str = ""; for (var i in components.classes) { str += i + "\n" }; str a run on firefox 3.6.2 with a few extensions installed yields 876 strings.
...the
currently favored type for most cases is autf8string.
...*/ const short max_count = 100; /* the
current count.
CSS3 - Archive of obsolete content
it also defines the
currentcolor keyword as a valid color.
...together with it, they are the
current snapshot of the css specification.
...though changes are still expected, they shouldn't create incompatibilities with
current implementations; they should mainly define behavior in edge cases.
Enabling the behavior - retrieving tinderbox status - Archive of obsolete content
the first step is to write a function that queries the tinderbox server and retrieves the
current status.
...in this case we use it to retrieve an html page containing a brief summary of the
current tinderbox state.
...this is because we need to reference it in the updatetinderboxstatus() function as well as the
current function, and we can't pass the object from one function to the other because the one doesn't call the other directly.
Creating a Microsummary - Archive of obsolete content
in this tutorial we're going to create a microsummary generator for the spread firefox home page that displays the
current firefox download count along with the label fx downloads; for example: 174475447 fx downloads.
... <?xml version="1.0" encoding="utf-8"?> <generator xmlns="http://www.mozilla.org/microsummaries/0.1" name="firefox download count"> <template> <transform xmlns="http://www.w3.org/1999/xsl/transform" version="1.0"> </transform> </template> </generator> note that while microsummary generators can include arbitrary xslt, including xslt that produces rich text output, firefox
currently only displays the text version of the xslt output.
... conclusion you should now have a microsummary generator that displays the
current firefox download count when you install it, bookmark the spread firefox home page, and select the microsummary from the summary drop-down menu in the add bookmark dialog.
Downloading Nightly or Trunk Builds - Archive of obsolete content
note that this is an attempt at describing the
current usage of these terms.
... the
current trunk is mozilla 1.9.2.
...these are the "tinderbox builds", also known as "hourly builds" though it usually takes more than one hour to make one; they are followed by automatic tests and their main purpose is to check that nothing is horridly wrong with the latest change to the source: what they are doing is to constantly check that the
current source can be built into an executable and that that executable passes a certain more-or-less fixed set of tests.
JavaScript Client API - Archive of obsolete content
changeitemid(oldid, newid) must find the stored item
currently associated with the guid oldid and change it to be associated with the guid newid.
...for instance, bookmarkstore.wipe() deletes all bookmarks from the
current firefox profile.
...it's up to you to figure out the best way to assign a score based on the
current state of whatever data type you're tracking.
Simple Storage - Archive of obsolete content
the namespace
currently lives in the future and must be imported before it is used: jetpack.future.import("storage.simple"); methods sync()as described above, the jetpack.storage.simple object is automatically written to disk, but a feature may force flush by calling jetpack.storage.simple.sync().
...jetpack.future.import("menu");jetpack.future.import("selection");jetpack.future.import("storage.simple");// create the persistent notes array if it doesn't already exist.jetpack.storage.simple.notes = jetpack.storage.simple.notes || [];var notes = jetpack.storage.simple.notes;// updates the jetpack menu with the
current notes.
...:(jetpack.menu.context.page.beforeshow = function (menu) { menu.reset(); if (jetpack.selection.text) menu.add({ label: "note", command: function () { notes.unshift(jetpack.selection.text); if (notes.length > 20) notes.pop(); updatejetpackmenu(); } });};// initialize the jetpack menu with the
current notes.updatejetpackmenu(); see also settings jep 11 ...
Clipboard Test - Archive of obsolete content
this api
currently lives in the future and must be imported for use.
...the only flavors
currently implemented are 'plain' (text/unicode) and 'html' (which is html).string"text" here's an example of how to use the method to set the clipboard.
...jetpack.import.future("clipboard");var mycontent = "<i>this is some italic text</i>";jetpack.clipboard.set( mycontent, "html" ); get
currentflavors()returns an array of available jetpack clipboard flavors, for the
current system clipboard state.
Clipboard - Archive of obsolete content
this api
currently lives in the future and must be imported for use.
...the only flavors
currently implemented are 'plain' (text/unicode) and 'html' (which is html).string"text" here's an example of how to use the method to set the clipboard.
...jetpack.import.future("clipboard"); var mycontent = "<i>this is some italic text</i>"; jetpack.clipboard.set( mycontent, "html" ); get
currentflavors()returns an array of available jetpack clipboard flavors, for the
current system clipboard state.
Simple Storage - Archive of obsolete content
the namespace
currently lives in the future and must be imported before it is used: jetpack.future.import("storage.simple"); methods sync()as described above, the jetpack.storage.simple object is automatically written to disk, but a feature may force flush by calling jetpack.storage.simple.sync().
...jetpack.storage.simple.notes = jetpack.storage.simple.notes || []; var notes = jetpack.storage.simple.notes; // updates the jetpack menu with the
current notes.
...:( jetpack.menu.context.page.beforeshow = function (menu) { menu.reset(); if (jetpack.selection.text) menu.add({ label: "note", command: function () { notes.unshift(jetpack.selection.text); if (notes.length > 20) notes.pop(); updatejetpackmenu(); } }); }; // initialize the jetpack menu with the
current notes.
Clipboard - Archive of obsolete content
the api
currently lives in the future and must be imported for use.
...the only flavors
currently implemented are 'plain' (text/unicode) and 'html' (which is html).string"text" here's an example of how to use the method to set the clipboard.
...jetpack.import.future("clipboard"); var mycontent = "<i>this is some italic text</i>"; jetpack.clipboard.set( mycontent, "html" ); get
currentflavors()returns an array of available jetpack clipboard flavors, for the
current system clipboard state.
Mozilla Crypto FAQ - Archive of obsolete content
for several years professor daniel bernstein (
currently at the university of illinois at chicago) has pursued a lawsuit against the u.s.
...(bernstein's suit was originally directed at the itar and related regulations, since at the time the suit was filed the
current export administration regulations were not yet in effect with respect to encryption software.) bernstein claimed that the u.s.
...government will continue to enforce
current u.s.
Proxy UI - Archive of obsolete content
the
currently available modes are based on "network.proxy.type".
...<h7 name="details">details</h7> the menu should display the
current proxy mode with a dot.
...mouseover when online, the tooltip will include the
current proxy mode: code http://mxr.mozilla.org/seamonkey/sou...ityoverlay.xul bugs bug 243624 reference network.proxy.type ...
RDF Datasource How-To - Archive of obsolete content
the xpcom registration parts and the "as of this writing, it is not
currently possible to implement javascript xpcom components" comment seem outdated didn't check the whole article.
...as such, it must (
currently, see [1]) have: an xpcom clsid to identify the data source implementation an implementation class (that corresponds to the clsid) whose code lives in a dll.
... 1 as of this writing, it is not
currently possible to implement javascript xpcom components; however, it may soon be possible to do so via xpconnect.
Frequently Asked Questions - Archive of obsolete content
we
currently maintain two documents to help answer this question: a status page for svg in firefox 1.5+ and a status page for svg in the development trunk.
... who's
currently working on what?
... other than reviewing patches and fixing the occassional bug, alex is
currently taking a break from active svg development to concentrate on 'real work' and cool stuff like xtf and jssh.
Tamarin Build System Documentation - Archive of obsolete content
the buildbot scripts are located in the tamarin repository, get a
current copy in your test repository cd into the build/buildbot/slaves directory: cd build/buildbot/slaves copy the your platform scripts directory into the scripts directory and cd into the new scripts directory: cp -r mac-intel-10_5/scripts .
... ; cd scripts edit environment.sh, change the basedir and buildsdir settings (around line 51) basedir=~/hg/tamarin-redux (path to my test repository) (next line) buildsdir=~/hg/builds (a directory to store downloaded builds) always set
current working directory to the scripts directory when running a script run a script (e.g.) ../all/run-acceptance-release.sh <optional hg revision number like 1902> how do i navigate the build status page?
... the test/acceptance/testconfig.txt file contains a list of tests marked as expected failures or skipped with the configuration see the testconfig.txt for
current instructions generally the format is comma separated list with regular expressions for test and configuration.
Tamarin-central rev 703:2cee46be9ce0 - Archive of obsolete content
performance testsuite time metric the following is a comparison of the
current tamarin-central (tc-703) versus the prior build (tc-700) as well as
current against the vm in flash player 10.
... fastertc-703 vs tc-700: 0.1% slowertc-703 vs flash10: 5.2% faster linux (ubuntu linux, 2.13 ghz dual core)tc-703 vs tc-700: 6.0% fastertc-703 vs flash10: 1.7% fastertc-703 vs tc-700: 89.5% fastertc-703 vs flash10: 182.0% fastertc-703 vs tc-700: 6.1% fastertc-703 vs flash10: 1.4% faster performance testuite memory metric the following is a comparison of the
current tamarin-central (tc-703) versus the prior build (tc-700).
...4% largertc-703 vs tc-663: 2.1% larger windows (xp pro, 2.13ghz dual core)tc-703 vs tc-700: 3.2% largertc-703 vs tc-663: 7.6% largertc-703 vs tc-700: 3.9% largertc-703 vs tc-663: 12.4% largertc-703 vs tc-700: 3.3% largertc-703 vs tc-663: 21.4% larger linux (ubuntu linux, 2.13 ghz dual core)n/an/an/a vm code size the following is a comparison of the
current tamarin-central compiled size (tc-703) versus the prior build (tc-700) as well as the
current build against the vm in flash player 10.
URIs and URLs - Archive of obsolete content
thus, a resource can remain constant even when its content---the entities to which it
currently corresponds---changes over time, provided that the conceptual mapping is not changed in the process.
...parsing urls rfc 2396 defines an url parser that can deal with the syntax that is common to most url schemes that are
currently in existence.
... registry-based authoritys
currently necko's url-objects only support host based authoritys or urls with no authoritys.
ContextMenus - Archive of obsolete content
when using the keyboard, the context is the element in the window that is
currently focused.
...however, even when using the keyboard, there will still be a node (the context) that the menu applies to, which will be the element that is
currently focused.
... var element = aevent.target.triggernode; var isimage = (element instanceof components.interfaces.nsiimageloadingcontent && element.
currenturi); document.getelementbyid("enlarge").hidden = !isimage; document.getelementbyid("details").hidden = !isimage; } </script> <menupopup id="contentareacontextmenu" onpopupshowing="showhideitems(event)"> <menuitem label="copy"/> <menuitem id="enlarge" label="enlarge image"/> <menuitem id="details" label="image details"/> </menupopup> <browser src="http://www.mozilla.org" context="conte...
Menus - Archive of obsolete content
the cursor keys can also be used to adjust which menuitem is the
current item.
...when the mouse is moved over the submenu label, or the cursor keys move the
current item to the submenu, that menu's popup appears.
... it will close when the mouse is moved away or the
current item is changed.
Textbox (XPFE autocomplete) - Archive of obsolete content
the autocomplete functionality is handled through one of more session objects, each of which can return a set of results given the
current value of the textbox.
... useraction type: one of the values below this attribute will be set to the action the user is
currently performing.
... getresultcount( session ) returns the number of results, holded by the
current session.
Adding Properties to XBL-defined Elements - Archive of obsolete content
for example, the following field is given a default value equal to the
current time: <field name="
currenttime"> new date().gettime(); </field> properties sometimes you will want to validate the data that is assigned to a property.
...for example, if you want a property that holds the
current time, you would want to have its value generated as needed.
...for example, you could assign a script to the value of onget to calculate the
current time.
Modifying a XUL Interface - Archive of obsolete content
the += operator is used to add to the
current value so a 1 will be added onto the end of the existing text.
...you can also retrieve the
current label or value using these properties, as in the following example: example 5 : source view <button label="hello" oncommand="alert(this.label);"/> toggling a checkbox checkboxes have a checked property which may be used to check or uncheck the checkbox.
...this function will retrieve the
currently selected radio element using the selectedindex property.
XUL accessibility tool - Archive of obsolete content
availability the xul accessibility tool can
currently be obtained from [http://www.xulplanet.com/aaron/files...bilitytool.xpi].
...the version
currently on xulplanet is compatible with the following xul applications: firefox 1.5+ thunderbird 3.0a+ recent sunbird builds recent songbird builds.
...once the tool window has loaded, select either a local file, web url, or
currently open window from the file menu to generate a xul report for that document.
arrowscrollbox - Archive of obsolete content
currently, smooth scrolling supports horizontal arrowscrollboxes only.
...
currently, smooth scrolling supports horizontal arrowscrollboxes only.
... methods ensureelementisvisible( element ) return type: no return value if the specified element is not
currently visible to the user, the displayed items are scrolled so that it is.
colorpicker - Archive of obsolete content
color type: color string the
currently selected color.
... color type: color string the
currently selected color.
...you may use onclick when you are working with a plain colorpicker and need the
currently selected color for example to display in a <textbox>.
command - Archive of obsolete content
typically, this will be the
currently focused element.
...see also: command attribute, commandset element attributes disabled, label, oncommand,reserved examples the following code will send a paste command (cmd_paste) to the
currently focused element: // first include chrome://global/content/globaloverlay.js godocommand("cmd_paste"); example with two buttons <commandset><command id="cmd_openhelp" oncommand="alert('help');"/></commandset> <button label="help" command="cmd_openhelp"/> <button label="more help" command="cmd_openhelp"/> attributes disabled type: boolean indicates whether the element is disabled or not.
...
currently, the content still receives these key events, even though it can't override them.
deck - Archive of obsolete content
butes selectedindex properties selectedindex, selectedpanel examples <deck selectedindex="2"> <description value="this is the first page"/> <button label="this is the second page"/> <box> <description value="this is the third page"/> <button label="this is also the third page"/> </box> </deck> attributes selectedindex type: integer gets and sets the index of the
currently selected panel.
...e, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties selectedindex type: integer returns the index of the
currently selected item.
... selectedpanel type: element holds a reference to the
currently selected panel within a deck element.
tabpanels - Archive of obsolete content
attributes selectedindex properties selectedindex, selectedpanel examples (example needed) attributes selectedindex type: integer gets and sets the index of the
currently selected panel.
... selectedindex type: integer returns the index of the
currently selected item.
...returns -1 if no items are selected selectedpanel type: element holds a reference to the
currently selected panel within a <tabbox> element.
textbox - Archive of obsolete content
value type: string holds the
current value of the textbox as a string.
... the
current value may be modified by setting this property.
... valuenumber type: number in contrast to the value property which holds a string representation, the valuenumber property is a number containing the
current value of the number box.
Building XULRunner with Python - Archive of obsolete content
currently (mar 07) python is not enabled by default so a custom build of mozilla is needed.
... microsoft c++ compiler is required and whilst the
current free version is visual studio 8 express (msvc8) you will almost certainly want to use visual studio .net 2003 (msvc71) which is not longer officially available.
...example def onload(): btntest = document.getelementbyid("btntest") btntest.addeventlistener('command', ontest, false) def ontest(): window.alert('button activated') window.addeventlistener('load', onload, false) one possible gotcha is that the default python path used to find modules that areimported explicitly includes the xulrunner executable directory and the directory that is
current when xulrunner launches.
How to enable locale switching in a XULRunner application - Archive of obsolete content
the dynamic list population requires an xpcom to query the
currently selected locale as well as all locales available in the application package.
...only.xul"; var localelistbox = document.getelementbyid("locale-listbox"); var selecteditem = null; while(availablelocales.hasmore()) { var locale = availablelocales.getnext(); var listitem = document.createelementns(xul_ns, "listitem"); listitem.setattribute("value", locale); listitem.setattribute("label", locale); if (locale == selectedlocale) { // is this the
current locale?
... selecteditem = listitem; } localelistbox.appendchild(listitem); } // highlight
current locale localelistbox.selecteditem = selecteditem; } catch (err) { alert (err); } 4.
2006-10-27 - Archive of obsolete content
discussions removal of the nn4.6 table border color quirk discussion on removing the nn 4.6 table boarder color quirk, which
currently causes a specific markup to produce a green boarder instead of a gray one.
... multiple presshells discussion on why
current interfaces allow for multiple presshells and how the relationships work for the following objects: docshell, presshell, prescontext, document, domwindow, widget, docshell and contentviewer.
...the presshells are
currently used for printing, but should or could have been used for print previews and multiple views in editors.
2006-11-17 - Archive of obsolete content
site not loading with seamonkey a user built seamonkey in debug mode and is
currently receiving a "bad request" error on some websites.
...nightly builds, instructions and the
current list of known regressions on the branch can be found at: http://wiki.mozilla.org/gecko:reflow...ng#quick_links.
... users are asked to file bugs on encountered problems that are not present on the
current trunk builds.
NPN_PostURL - Archive of obsolete content
syntax #include <npapi.h> nperror npn_posturl(npp instance, const char *url, const char *target, uint32 len, const char *buf, npbool file); parameters the function has the following parameters: instance pointer to the
current plug-in instance.
...if null, pass the new stream back to the
current plug-in instance regardless of mime type.
... if you specify _
current, _self, or _top, the response data is written to the same plug-in window and the plug-in is unloaded.
Adobe Flash - Archive of obsolete content
for example, the
current flash plugin version is flash 6 r79.
...this is
currently not the case, but 12 is a sufficiently high version number (
current versions are version 6r.79) to allow for some leeway for fixing this down the road.
...if you are embedding a flash animation and wish to use fscommands in netscape gecko browsers,
currently you must use the embed element and not the object element.
Browser Detection and Cross Browser Support - Archive of obsolete content
this article was written in 2003 and is not on par with
current standards.
...have a look to the more
current article writing forward-compatible websites to find modern informations.
...all gecko based browsers
currently report mozilla/5.0 as their primary version although no other browser does so at the moment.
CSS - Archive of obsolete content
ion that represents the button that opens the file picker of <input type="file">.::-ms-checkthe ::-ms-check css pseudo-element is a microsoft extension that represents checkboxes and radio button groups created by <input type="checkbox"> and <input type="radio">.::-ms-clearthe ::-ms-clear css pseudo-element creates a clear button at the edge of an <input type="text"> text control that clears the
current value.
...typically it is a triangle that points downward.::-ms-fillthe ::-ms-fill css pseudo-element is a microsoft extension that represents a progress bar displayed by <progress>.::-ms-fill-lowerthe ::-ms-fill-lower css pseudo-element represents the lower portion of the track of a slider control; that is, the portion corresponding to values less than the value
currently selected by the thumb.
... a slider control is one possible representation of <input type="range">.::-ms-fill-upperthe ::-ms-fill-upper css pseudo-element is a microsoft extension that represents the upper portion of the track of a slider control; that is, the portion corresponding to values greater than the value
currently selected by the thumb.
Enumerator.item - Archive of obsolete content
the enumerator.item method returns the
current item in the collection.
... the item method returns the
current item.
... if the collection is empty or the
current item is undefined, it returns undefined.
GetObject - Archive of obsolete content
if the pathnameargument is omitted, getobject returns a
currently active object of the specified type.
...for example: myobject.line(9, 90); myobject.inserttext(9, 100, "hello, world."); myobject.saveas("c:\\drawings\\sample.drw"); note: use the getobject function when there is a
current instance of the object, or if you want to create the object with a file already loaded.
... if there is no
current instance, and you don't want the object started with a file loaded, use the activexobject object.
Back to the Server: Server-Side JavaScript On The Rise - Archive of obsolete content
there are
currently two main javascript engines used server-side and both are from the minds at mozilla: mozilla rhino and mozilla spidermonkey.
...the two most well established engines are spidermonkey and rhino, both
currently maintained by the mozilla foundation.
...by taking advantage of
current scriptmonkey and ajax capabilities not to mention the loads of other features packed into the mozilla firefox browser engine, aptana jaxer fuses the client-side with the server-side, creating a unified “same language” development platform.
Windows Media in Netscape - Archive of obsolete content
ct) { player = new geckoactivexobject("mediaplayer.mediaplayer.1"); } else { // plugin code using navigator.mimetypes player = navigator.mimetypes["application/x-mplayer2"].enabledplugin; } } catch(e) { // handle error -- no wmp control // download: http://www.microsoft.com/windows/windowsmedia/download/default.asp } if (player) { // windows media player control exists }
currently, dynamically writing out markup using document.write after using detection mechanisms won't work owing to a bug in netscape 7.1.
...for example: mozilla/5.0 (windows; u; windows nt 5.1; en-us; rv:1.4) gecko/20030624 netscape/7.1 (ax; promostring) although geckoactivexobject is
currently available only in netscape 7.1 on windows, it may be the case in the future that it will be available in other gecko-based browsers on other operating systems.
...here's an example of directly instantiating the control programmatically (without an object element) and scripting it: try { var player = null; if (window.activexobject) { player = new activexobject("wmplayer.ocx.7"); } else if(window.geckoactivexobject) { player = new geckoactivexobject("wmplayer.ocx.7"); } } catch(e) { ; } if (player) { player.
currentplaylist = player.mediacollection.getbyname('preludesteel'); player.controls.play(); } callbacks from within windows media player to web pages: script for event netscape 7.1 supports ie's <script for="activexcontrol" event="activexcontrolevent"> script elements.
GLSL Shaders - Game development
gl_position is used to store the position of the
current vertex.
... go to the cube.html file on github, copy all the javascript code from inside the second <script> element, and paste it into the third <script> element of the
current example.
... the texture shader code now we'll add the texture shader to the code — add the code below to the body's second <script> tag: void main() { gl_fragcolor = vec4(0.0, 0.58, 0.86, 1.0); } this will set an rgba color to recreate the
current light blue one — the first three float values (ranging from 0.0 to 1.0) represent the red, green, and blue channels while the fourth one is the alpha transparency (ranging from 0.0 — fully transparent — to 1.0 — fully opaque).
3D games on the Web - Game development
there's an ongoing effort on releasing webgl 2.0 (based on opengl es 3.0) in the near future, which will bring many improvements and will help developers build games for the modern web using
current, powerful hardware.
...we have information available for you to learn from: 2d collision detection 3d collision detection webxr the concept of virtual reality is not new, but it's storming onto the web thanks to hardware advancements such as the oculus rift, and the (
currently experimental) webxr api for capturing information from vr and ar hardware and making it available for use in javascript applications.
... where to go next with this article we just scratched the surface of what's possible with
currently available technologies.
Square tilemaps implementation: Scrolling maps - Game development
the camera the camera is an object that holds information about which section of the game world or level is
currently being shown.
... cameras can either be free-form, controlled by the player (such as in strategy games) or follow an object (such as the main character in platform games.) regardless of the type of camera, we would always need information regarding its
current position, viewport size, etc.
... in the demo provided along with this article, these are the parameters the camera has: x and y: the
current position of the camera.
Thread - MDN Web Docs Glossary: Definitions of Web-related terms
this is done using technologies such as web workers, which can be used to spin off a sub-program which runs con
currently with the main thread in a thread of its own.
... a special type of worker, called a service worker, can be created which can be left behind by a site—with the user's permission—to run even when the user isn't
currently using that site.
...such as notifying a user they have received new email even though they're not
currently logged into their mail service.
Viewport - MDN Web Docs Glossary: Definitions of Web-related terms
a viewport represents a polygonal (normally rectangular) area in computer graphics that is
currently being viewed.
... in web browser terms, it refers to the part of the document you're viewing which is
currently visible in its window (or the screen, if the document is being viewed in full screen mode).
... the portion of the viewport that is
currently visible is called the visual viewport.
Mobile accessibility - Learn web development
if you want to turn talkback off: navigate back to the talkback menu screen (using the different gestures that are
currently enabled.) navigate to the slider switch and activate it to turn it off.
...the former provides global options relating to the device as a whole, and the latter provides options relating just to the
current app/screen you are in.
... by default, the selected rotor option will be speaking rate; you can
currently swipe up and down to increase or decrease the speaking rate.
Fundamental text and font styling - Learn web development
you can't select and style subsections of text unless you wrap them in an appropriate element (such as a <span> or <strong>), or use a text-specific pseudo-element like ::first-letter (selects the first letter of an element's text), ::first-line (selects the first line of an element's text), or ::selection (selects the text
currently highlighted by the cursor.) fonts let's move straight on to look at properties for styling fonts.
... ems: 1 em is equal to the font size set on the parent element of the
current element we are styling (more specifically, the width of a capital letter m contained inside the parent element.) this can become tricky to work out if you have a lot of nested elements with different font sizes set, but it is doable, as you'll see below.
...this has many values available in case you have many font variants available (such as -light, -normal, -bold, -extrabold, -black, etc.), but realistically you'll rarely use any of them except for normal and bold: normal, bold: normal and bold font weight lighter, bolder: sets the
current element's boldness to be one step lighter or heavier than its parent element's boldness.
Other form controls - Learn web development
all browsers that implement the <meter> element use those values to change the color of the meter bar: if the
current value is in the prefered part of the range, the bar is green.
... if the
current value is in the average part of the range, the bar is yellow.
... if the
current value is in the worst part of the range, the bar is red.
Creating hyperlinks - Learn web development
same directory: if you wanted to include a hyperlink inside index.html (the top level index.html) pointing to contacts.html, you would specify the filename that you want to link to, because it's in the same directory as the
current file.
...we need to make our links accessible to all readers, regardless of their
current context and which tools they prefer.
...and, the lack of a link acts a good visual reminder of which page you are
currently on.
Basic math in JavaScript — numbers and operators - Learn web development
when you do this, you'll see a value of 4 returned — this is because the browser returns the
current value, then increments the variable.
...if the button is
currently saying "start machine" when it is pressed, we change its label to "stop machine", and update the label as appropriate.
... if the button is
currently saying "stop machine" when it is pressed, we swap the display back again.
Inheritance in JavaScript - Learn web development
this function basically allows you to call a function defined somewhere else, but in the
current context.
...a getter returns the
current value of the variable and its corresponding setter changes the value of the variable to the one it defines.
...at this point: to show the
current value of the _subject property of the snape object we can use the snape.subject getter method.
Working with JSON - Learn web development
set the <h2> to contain the
current hero's name.
... store the powers property in another new constant called superpowers — this contains an array that lists the
current hero's superpowers.
... use another for loop to loop through the
current hero's superpowers — for each one we create an <li> element, put the superpower inside it, then put the listitem inside the <ul> element (mylist) using appendchild().
Object building practice - Learn web development
an explanation follows: for each ball, we need to check every other ball to see if it has collided with the
current ball.
... immediately inside the for loop, we use an if statement to check whether the
current ball being looped through is the same ball as the one we are
currently checking.
...to do this, we check whether the
current ball (i.e., the ball whose collisiondetect method is being invoked) is the same as the loop ball (i.e., the ball that is being referred to by the
current iteration of the for loop in the collisiondetect method).
Framework main features - Learn web development
we call this function on line 4, and set count to whatever its
current value is, plus one.
...all of them track the
current rendered version of your browser's dom, and each makes slightly different decisions about how the dom should change as components in your application re-render.
...the application builds a "diff" to compare the differences between the updated virtual dom and the
currently rendered dom, and uses that diff to apply updates to the real dom.
Componentizing our React app - Learn web development
mkdir src/components touch src/components/todo.js our new todo.js file is
currently empty!
... tasks as data each of our tasks
currently contains three pieces of information: its name, whether it has been checked, and its unique id.
...thing simple: the name of each task: const tasklist = props.tasks.map(task => task.name); let’s try replacing all the children of the <ul> with tasklist: <ul role="list" classname="todo-list stack-large stack-exception" aria-labelledby="list-heading" > {tasklist} </ul> this gets us some of the way towards showing all the components again, but we’ve got more work to do: the browser
currently renders each task's name as unstructured text.
Creating our first Vue component - Learn web development
vue templates are
currently only allowed a single root element — one element needs to wrap everything inside the template section (this will change when vue 3 comes out).
...however, we're
currently not doing anything with the "done" prop — we can check the checkboxes in the ui, but nowhere in the app are we recording whether a todo item is actually done.
...however, we can
currently only add one todolist component to the page because the id is hardcoded.
Introduction to automated testing - Learn web development
the dashboard will provide you details related to how many minutes you have consumed, how many con
current sessions are running, your total number of tests to date, and more.
...this
currently only works when testing the safari browser on ios devices.
... features — shows you what features the
current configuration supports, e.g.
Introducing a complete toolchain - Learn web development
git is
currently the most popular source code revision control tool available to developers — revision control provides many advantages, such as a way to backup your work in a remote place, and a mechanism to work in a team on the same project without fear of overwriting each other's code.
... now copy the contents of the project's src directory to your
currently empty src directory.
... putting jsx syntax in the middle of our javascript is going to cause eslint to complain pretty quickly with the
current configuration, so we'll need to add a little more configuration to the eslint settings to get it to accept jsx features.
Multiprocess on Windows
ensuring that the interceptor supports your interfaces this information is
current, but is likely to change when bug 1346957 is landed.
...however, for various reasons, our com interceptor
currently only supports typelib metadata.
... mflag may
currently be set to one of two values: arraydata::flag::enone or arraydata::flag::eallocatedbyserver.
Software accessibility: Where are we today?
otherwise, screen magnification programs may be used, which allow zooming in to portions of the screen, while following the mouse or the
current focus.
...unfortunately, the unit is not
currently produced, although there is occasional talk of resurrecting this useful device.
...the ideal situation would be for adaptive technology professionals to make money on rehab, trainingand support - something there is
currently not enough of.
Benchmarking
they are
currently reduce to a multiple of 2ms; which is controlled by the privacy.reducetimerprecision about:config flag.
... profiling tools
currently the gecko profiler has limitations in the ui for inverted call stack top function analysis which is very useful for finding heavy functions that call into a whole bunch of code.
...
currently such functions may be easy to miss looking at a profile, so feel free to also use your favorite native profiler.
Testopia
despite bugzilla 5.0 has already been released a few months ago, we don't plan to release a fix for testopia immediately, because it's
currently under heavy work to make testopia a fully self-contained extension, which means that all tr_*.cgi scripts which are
currently in the bugzilla/ root directory are being moved into extensions/testopia/lib/.
... the good news is that the
current code in the git repository already works with bugzilla 5.0, and so if you upgraded to 5.0 already, and if you don't mind having a work-in-progress extension on your machine, you can decide to pull the code from the git repository.
... requirements as our development has moved forward, we have decided to try to keep abreast of the latest stable release from bugzilla (
currently 5.0).
What to do and what not to do in Bugzilla
the build the bug is reported against is more than one stable release old and the bug can't be reproduced with a
current build.
... the bug reporter has not responded to questions for one month and the bug can't be reproduced with a
current build.
... changing the bug information fields summary you should change the summary if the
current one is unclear or does not correctly describe the issue covered by the bug.
Creating reftest-based unit tests
currently, ipc reftests are only being run on linux.
... to run: moz_layers_force_shmem_surfaces=1 make -c $(objdir) reftest-ipc note: right now, automation
currently only runs layout/reftests/reftest-sanity/reftest.list!
...create a directory (inside firefox's source code tree) and make that your
current directory (i.e.
Configuring Build Options
most modern systems have multiple cores or cpus, and they can be optionally used con
currently to make the build faster.
... the -j flag controls how many parallel builds will run con
currently.
... for example: ac_add_options --disable-optimize --enable-debug mk_add_options moz_objdir=/mozilla/src/obj-@config_guess@ mk_add_options moz_build_projects="browser mail" ac_add_app_options browser --enable-application=browser ac_add_app_options mail --enable-application=comm/mail if you want to build only one project using this mozconfig, use the following command line: moz_
current_project=browser ./mach build this will build only the browser.
Makefile - variables
tier build order dependencies - subdirectories for make to traverse prior to building
current.
... parallel_dirs a list of subdirectories to build recursively that may be built con
currently.
... dest=$(moz_objdir)/$project moz_
current_project moz_debug moz_enable_xremote moz_feeds moz_help_viewer moz_native_nspr moz_metro moz_pkg_mainfest moz_preflight_all moz_rdf moz_toolkit_search ...
Inner and outer windows
consider that when the user is looking at a document in a browser window, not only can the document the user is
currently viewing change, but the document's contents can change.
...an inner window represents the actual content being displayed; it's the
current view of what the user sees.
...if the document
currently being displayed asks "what window am i in?", it gets the outer window as the answer.
Error codes returned by Mozilla APIs
currently, this error only occurs when a file stream is closed.
...xxx
currently unused - consider removing.
...xxx
currently unused - consider removing.
Multiple Firefox profiles
mac os x multifirefox by dave martorana profile management determining the profile while firefox is running to determine the profile of a
currently-running firefox instance in windows, macos or linux, type about:profiles into the browser url search bar.
... when the properties dialog box pops up, you should see a "target" text field that you can edit, and it should show the
current file path.
... when the properties dialog box pops up, you should see a "target" text field that you can edit, and it should show the
current file path.
mozbrowserfindchange
details the details property returns an anonymous javascript object with the following properties: active a boolean indicating whether a search is
currently active (true), or not (false.) searchstring a domstring representing the string that is
currently being searched for.
... activematchordinal a number indicating the position of the
currently highlighted search result, e.g.
... example var browser = document.queryselector("iframe"); browser.addeventlistener("mozbrowserfindchange", function(event) { console.log("
currently highlighted: " + event.details.activematchordinal + " out of " + event.details.numberofmatches); }); related events mozbrowserasyncscroll mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserloadend mozbrowserloadstart mozbrowserlocationchange mozbrowseropenwindow mozbrowsersecuritychange mozbrowsershowmodalprompt mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
Creating localizable web applications
define the locale and the direction in the html generate the lang attribute dynamically, depending on the
current locale.
...'rtl' : 'ltr' ?>"> </body> </html> notice that <body/> is given a class equal to the
current locale.
... echo $tab_labels($tab); // this will display the translation } indicate the language of the pages you link to indicate the language of the pages you link to if it is different from the user's
current language.
DMD
in this mode, dmd tracks the
current contents of the heap.
...in this mode, dmd tracks both the past and
current contents of the heap.
... note: to dump dmd data from content processes, you'll need to disable the sandbox moz_dmd_shutdown_log must (
currently) include the trailing separator (''/") post-processing dmd.py also takes options that control how it works.
Leak And Bloat Tests
method
current method: measure leaks and bloats, in a similar way to firefox (using xpcom_mem_leak_log and --trace-malloc).
... there are
currently no graphs for these results.
... 08/04/2008: prefs.js created via tb with the above settings, the first section is for preferences included in tinderbox, the second section is ones which don't
currently get set.
About NSPR
at the time of writing the
current generation of nspr was known as nspr20.
...there is a structural representation (i.e., exploded view), routines to acquire the
current time from the host system, and convert them to and from the 64-bit and structural representation.
...the
current implementation supports macintosh (ppc), win-32 (winnt, win9x) and 20 versions of unix and is still expanding.
PR_Now
returns the
current time.
... returns the
current time as a prtime value.
... description pr_now() returns the
current time as number of microseconds since the nspr epoch, which is midnight (00:00:00) 1 january 1970 utc.
PR_Seek
moves the
current read-write file pointer by an offset expressed as a 32-bit integer.
...sets the file pointer to its
current location plus the value of the offset parameter.
... description here's an idiom for obtaining the
current location of the file pointer for the file descriptor fd: pr_seek(fd, 0, pr_seek_cur) see also if you need to move the file pointer by a large offset that's out of the range of a 32-bit integer, use pr_seek64.
PR_Seek64
moves the
current read-write file pointer by an offset expressed as a 64-bit integer.
...sets the file pointer to its
current location plus the value of the offset parameter.
... description this is the idiom for obtaining the
current location (expressed as a 64-bit integer) of the file pointer for the file descriptor fd: pr_seek64(fd, 0, pr_seek_cur) if the operating system can handle only a 32-bit file offset, pr_seek64 may fail with the error code pr_file_too_big_error if the offset parameter is out of the range of a 32-bit integer.
JSS Provider Notes
this sets the token to be used by the jss jca provider in the
current thread.
... when you call getinstance() on a jca class, the jss provider checks the
current per-thread default token (by calling cryptomanager.getthreadtoken()) and instructs the new object to use that token for cryptographic operations.
...the
current implementation is almost useless.
Mozilla-JSS JCA Provider notes
this sets the token to be used by the jss jca provider in the
current thread.
... when you call getinstance() on a jca class, the jss provider checks the
current per-thread default token (by calling cryptomanager.getthreadtoken()) and instructs the new object to use that token for cryptographic operations.
...the
current implementation is almost useless.
NSS 3.21 release notes
new in nss 3.21 new functionality certutil now supports a --rename option to change a nickname (bug 1142209) tls extended master secret extension (rfc 7627) is supported (bug 1117022) new info functions added for use during mid-handshake callbacks (bug 1084669) new functions in nss.h nss_optionset - sets nss global options nss_optionget - gets the
current value of nss global options in secmod.h secmod_createmoduleex - create a new secmodmodule structure from module name string, module parameters string, nss specific parameters string, and nss configuration parameter string.
... in ssl.h ssl_getpreliminarychannelinfo - obtains information about a tls channel prior to the handshake being completed, for use with the callbacks that are invoked during the handshake ssl_signatureprefset - configures the enabled signature and hash algorithms for tls ssl_signatureprefget - retrieves the
currently configured signature and hash algorithms ssl_signaturemaxcount - obtains the maximum number signature algorithms that can be configured with ssl_signatureprefset in utilpars.h nssutil_argparsemodulespecex - takes a module spec and breaks it into shared library string, module name string, module parameters string, nss specific parameters string, and nss configuration parameter str...
...or get the minimum dsa key size in pkcs11t.h ckm_tls12_master_key_derive - derives tls 1.2 master secret ckm_tls12_key_and_mac_derive - derives tls 1.2 traffic key and iv ckm_tls12_master_key_derive_dh - derives tls 1.2 master secret for dh (and ecdh) cipher suites ckm_tls12_key_safe_derive and ckm_tls_kdf are identifiers for additional pkcs#12 mechanisms for tls 1.2 that are
currently unused in nss.
nss tech note1
it is only needed if the template instructs the decoder to save some data, such as for primitive component types, or for some modifiers where noted.when needed, it tells the decoder where in the target data to save the
current component.
...if templates are nested, the offset applies to the location of the
current component within the target component, typically the decoded sequence.
...it should be noted that we only support an older specification of asn.1; multibyte tags are not
currently supported.
NSS PKCS11 Functions
description secmod_loadusermodule loads a new pkcs #11 module into nss and connects it to the
current nss trust infrastructure.
...to retrieve its
current value, use ssl_revealpinarg.
...to retrieve its
current value, use ssl_revealpinarg.
pkfnc.html
upgraded documentation may be found in the
current nss reference pkcs #11 functions chapter 7 pkcs #11 functions this chapter describes the core pkcs #11 functions that an application needs for communicating with cryptographic modules.
...to retrieve its
current value, use ssl_revealpinarg.
...to retrieve its
current value, use ssl_revealpinarg.
sslintro.html
upgraded documentation may be found in the
current nss reference overview of an ssl application chapter 1 overview of an ssl application ssl and related apis allow compliant applications to configure sockets for authenticated, tamper-proof, and encrypted communications.
...changes default values for all subsequently opened sockets as long as the application is running (compare with ssl_seturl which only configures the socket that is
currently open).
...retrieves the socket options
currently set for a specified socket.
Scripting Java
these packages are likely not in the java package, so you'll need to prefix the package name with "packages." for example, to import the org.mozilla.javascript package you could use importpackage() as follows: $ java org.mozilla.javascript.tools.shell.main js> importpackage(packages.org.mozilla.javascript); js> context.
currentcontext; org.mozilla.javascript.context@bb6ab6 occasionally, you will see examples that use the fully qualified name of the package instead of importing using the importpackage() method.
...using a fully qualified name, the above example would look as follows: $ java org.mozilla.javascript.tools.shell.main js> jspackage = packages.org.mozilla.javascript; [javapackage org.mozilla.javascript] js> jspackage.context.
currentcontext; org.mozilla.javascript.context@bb6ab6 alternatively, if you want to import just one class from a package you can do so using the importclass() method.
... the above examples could be expressed as follows: $ java org.mozilla.javascript.tools.shell.main js> importclass(packages.org.mozilla.javascript.context); js> context.
currentcontext; org.mozilla.javascript.context@bb6ab6 working with java now that we can access java classes, the next logical step is to create an object.
Invariants
that is, they take a parameter cx of type jscontext *, and require that cx is in a request on the
current thread.
...as implemented for native objects, the locking is not really that fine-grained, but that is a transparent optimization as long as we follow the rules.) a thread holding a property lock never leaves or suspends the
current request.
...the upvar ops depend on a per-context display of
currently active stack frames.
JSAPI User Guide
it only creates a new javascript error object and stores it in the context as the
current pending exception.
...each of these functions checks, just before it returns, to see if an exception is pending in the
current jscontext.
...the most sensitive information they expose to scripts is the
current date and time.
JSErrorReport
if null, the error is local to the script in the
current html page.
...it will not cause the
current operation to fail.
...in the event of an error, filename will either contain the name of the external source file or url containing the script (script src=) or null, indicating that a script embedded in the
current html page caused the error.
JS_ClearContextThread
js_endrequest(cx); js_clearcontextthread(cx); /* note: outside the request */ } js_setcontextthread ties cx to the
current thread for exclusive use.
... no other thread may use cx until the
current thread removes this association by calling js_clearcontextthread.
...(this is always the
current thread id when the function is used properly.) js_newcontext automatically associates the new context with the calling thread.
JS_GetElement
find a specified numeric property of an object and return its
current value.
...on success, *vp receives the
current value of the element, if it exists, and undefined otherwise.
...if the element exists, js_getelement sets *vp to the element's
current value.
JS_NewObject
if the parent is null, we use the global object at the end of the scope chain in which the context is
currently executing.
... in other words, the context's
current scope acts as a default parent.
... if the context is not
currently executing any code, we use js_getglobalobject to find a global object associated with the context.
JS_SetOperationCallback
(in this case, the callback may terminate the script by returning js_false.) js_getoperationcallback returns the
currently installed operation callback, or null if none is
currently installed.
... js_clearoperationcallback clears the
current operation callback.
...obsolete since javascript 1.9.1 js_getoperationlimit returns the
current operation limit, or js_max_operation_limit if no operation callback is
currently installed.
JS_SuspendRequest
suspends the calling thread's
current request, if any, to allow the thread to block or perform time-consuming calculations.
... syntax jsrefcount js_suspendrequest(jscontext *cx); void js_resumerequest(jscontext *cx, jsrefcount savedepth); name type description cx jscontext * the context whose
current request is to be suspended or resumed.
... js_suspendrequest suspends any
currently active requests associated with the context cx.
JS_YieldRequest
momentarily suspend the
current jsapi request, allowing garbage collection to run if another thread has requested it.
... syntax void js_yieldrequest(jscontext *cx); name type description cx jscontext * the jscontext that is
currently in a request on the calling thread.
... js_yieldrequest momentarily suspends the
current request.
Using RAII classes in Mozilla
this involves just one addition to the class, and the inclusion of attributes.h: class moz_raii nsautoscriptblocker {...} this is much simpler and more thorough than the guardobject runtime assertions, but are unfortunately
currently only run on mac os x and linux builds, which means that guardobject should still be used for raii guards which may be used in windows-only code.
... assertions runtime assertions offer two benefits - firstly, they run on windows, which the static analysis
currently does not, and secondly they will run locally, even if the developer did not choose to run static analysis locally.
... the static analys runtime assertions are often better at catching bugs in code that a developer is
currently working on than static analysis, which he might not think to run.
Animated PNG graphics
constraints on frame regions: x_offset >= 0 y_offset >= 0 width > 0 height > 0 x_offset + width <= 'ihdr' width y_offset + height <= 'ihdr' height the delay_num and delay_den parameters together specify a fraction indicating the time to display the
current frame, in seconds.
... blend_op<code> specifies whether the frame is to be alpha blended into the
current output buffer content, or whether it should completely replace its region in the output buffer.
... valid values for <code>blend_op are: value constant description 0 apng_blend_op_source all color components of the frame, including alpha, overwrite the
current contents of the frame's output buffer region.
AT APIs Support
firefox extensions) gecko version for firefox and all other gecko-based products: this documentation applies to up-to-date product builds based on gecko 1.9.2 --
currently not available on official releases.
...however it's preferable to grab the
current build of firefox or any other gecko-based product to be up to dated: firefox recent builds thunderbird recent builds seamonkey recent builds determining if accessibility is enabled in a firefox accessibility is enabled on windows and linux platforms by default.
... mac platform we
currently support only a subset of universal access.
Using XPCOM Components
searchframes boolean attribute that indicates whether to search subframes of
current document.
... the iweblock interface lock lock the browser to the
current site (or to the whitelist of approved sites read from disk).
...the mozilla embedding project tracks the
currently frozen interfaces.
Components.utils
the object
currently has the following members: editors!
... dispatch() dispatches a runnable to the
current/main thread.
... import() loads a js module into the
current script, without sharing a scope.
Components object
in
current versions of firefox only a few interfaces required for compatibility are still accessible.
...nsids interfaces array of interfaces by interface name interfacesbyid array of interfaces by iid issuccesscode function to determine if a given result code is a success code lastresult result code of most recent xpconnect call manager the global xpcom component manager results array of known result codes by name returncode pending result for
current call stack
current javascript call stack utils provides access to several useful features utils.atline provides access to the value of the atline property in the javascript environment.
... utils.import loads a javascript module into the
current script, without sharing a scope.
IAccessible2
this is an index into the objects in the
current group, not an index into all the objects at the same group level.
...the uniqueid is an identifier for this object, is unique within the
current window, and remains the same for the lifetime of the accessible object.
...this value can also be used by an at to determine when the
current control has changed.
IAccessibleText
return value s_false if the caret is not
currently active on this object, that is the caret is located on some other object.
...it represents the
current input position and will therefore typically be queried by at more often than other positions.
...setting the caret position may or may not alter the
current selection().
mozISpellCheckingEngine
not
currently used.
... dictionary wstring the name of the
current dictionary used by check() and suggest().
...not
currently used.
nsIAccessibleHyperLink
selected boolean determines whether the element
currently has the focus, for example after returning from the destination page.
... note:
currently only used with aria links, and the author has to specify that the link is invalid via the aria-invalid='true' attribute.
... return value true if the element
currently has the focus.
nsIAccessibleText
n(in long selectionnum); void scrollsubstringto(in long startindex, in long endindex, in unsigned long scrolltype); void scrollsubstringtopoint(in long startindex, in long endindex, in unsigned long coordinatetype, in long x, in long y); void setselectionbounds(in long selectionnum, in long startoffset, in long endoffset); attributes attribute type description caretoffset long the
current current caret offset.
...it represents the
current input position and will therefore typically be queried by at more often than other positions.
...it represents the
current input position and will therefore typically be queried by at more often than other positions.
nsIAccessibleValue
inherits from: nsisupports last changed in gecko 1.9 (firefox 3) method overview boolean set
currentvalue(in double value); obsolete since gecko 1.9 attributes attribute type description
currentvalue double maximumvalue double read only.
... methods set
currentvalue() obsolete since gecko 1.9 (firefox 3) return a success condition of the value getting set.
...boolean set
currentvalue( in double value ); parameters value new value for
current value.
nsIAppShell
since gecko 1.9 void listentoeventqueue(in nsieventqueue aqueue, in prbool alisten); obsolete since gecko 1.9 void resumenative(); void run(); void runinstablestate(in nsirunnable arunnable); void spindown(); obsolete since gecko 1.9 void spinup(); obsolete since gecko 1.9 void suspendnative(); attributes attribute type description eventloopnestinglevel unsigned long the
current event loop nesting level.
...a stable state is reached when the
currently executing task/event has finished, (see: webappapis.html#synchronous-section).
... in practice this runs arunnable once the
currently executing event finishes.
nsIAutoCompleteInput
disableautocomplete boolean true if auto-complete is
currently disabled; otherwise false.
... selectionend long the ending index of the
current selection in the text field.
... selectionstart long the starting index of the
current selection in the text field.
nsIBidiKeyboard
currently, this is only implemented on windows.
... methods islangrtl() determines if the
current keyboard language is right-to-left.
...return value true if the
current keyboard is right-to-left, false if it is not.
nsIContentViewer
sticky boolean methods clearhistoryentry() clears the
current history entry.
... note: if the document is
currently being printed, it will not be saved in session history.
...boolean permitunload( in boolean acallercloseswindow optional ); parameters acallercloseswindow optional indicates that the
current caller will close() the window.
nsIDOMHTMLAudioElement
last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) inherits from: nsidomhtmlmediaelement method overview unsigned long long moz
currentsampleoffset(); void mozsetup(in pruint32 channels, in pruint32 rate); [implicit_jscontext] unsigned long mozwriteaudio(in jsval data); methods moz
currentsampleoffset() non-standard this feature is non-standard and is not on a standards track.
... returns the
current offset of the audio stream, specified as the number of samples that have played since the beginning of the stream.
... unsigned long long moz
currentsampleoffset(); parameters none.
nsIDOMNSHTMLDocument
return value the text of the
current selection, the same as window.getselection.tostring().
... return value returns true if the command is supported on the
current range, false otherwise.
...for the gethtml command, the
current selection is returned as an html source fragment.
nsIDOMStorageWindow
localstorage nsidomstorage local storage for the
current browsing context.
... moz_indexeddb nsiidbfactory indexed databases for the
current browsing context.
... sessionstorage nsidomstorage session storage for the
current browsing context.
nsIEditorMailSupport
ean ainserthtml); nsidomnode insertasquotation(in astring aquotedtext); void inserttextwithquotations(in domstring astringtoinsert); void pasteascitedquotation(in astring acitation, in long aselectiontype); void pasteasquotation(in long aselectiontype); void rewrap(in boolean arespectnewlines); void stripcites(); methods getembeddedobjects() get a list of img and object tags in the
current document.
...return value an nsisupportsarray containing the img and object tags of the
current document.
...inserttextwithquotations() inserts a plain text string at the
current location, with special processing for lines beginning with ">", which will be treated as mail quotes and inserted as plain text quoted blocks.
nsIMemoryReporter
each reporter starts with an empty string for this value, indicating that it applies to the
current process; this is true even for reporters in a child process.
... units_count 1 the amount is an instantaneous count of things
currently in existence.
... for example, the number of tabs
currently open.
nsIMsgWindow
openfolder nsimsgfolder this is used to track the folder
currently open in the ui.
... notificationcallbacks nsiinterfacerequestor these are
currently used to set notification callbacks on protocol channels to handle things like bad cert exceptions.
... mailcharacterset acstring this is used to track the character set of the
currently displayed message.
nsINavHistoryContainerResultNode
state unsigned short the
current state of the container.
...arecursive if true, the search will recurse through all child containers of the
current container; if false, only direct children of the container are searched.
...exceptions thrown ns_error_not_available the containeropen attribute is
currently false, indicating that the node isn't open for access.
nsINavHistoryQuery
[retval,array,size_is(count)] out unsigned long transitions); void setfolders([const,array, size_is(foldercount)] in long long folders, in unsigned long foldercount); void settransitions([const,array, size_is(count)] in unsigned long transitions, in unsigned long count); attributes attribute type description absolutebegintime prtime read only: retrieves the begin time value that the
currently loaded reference points + offset resolve to.
... absoluteendtime prtime read only: retrieves the end time value that the
currently loaded reference points + offset resolve to.
...we don't
currently support >1 annotation name per query.
Component; nsIPrefBranch
interfaces
currently supported are: nsilocalfile nsisupportsstring (unichar) (removed as of gecko 58 in favor of getstringpref) nsipreflocalizedstring (localized unichar) nsifilespec (deprecated - to be removed eventually) avalue the xpcom object into which to the complex preference value should be retrieved.
...interfaces
currently supported are: nsilocalfile nsisupportsstring (unichar) (removed as of gecko 58 in favor of setstringpref) nsipreflocalizedstring (localized unichar) nsifilespec (deprecated - to be removed eventually) avalue the xpcom object from which to set the complex preference value.
... the nsprefbranch object listens for xpcom-shutdown and frees all of the objects
currently in its observer list.
nsIRequest
methods cancel() cancels the
current request.
... resume() resumes the
current request.
... suspend() suspends the
current request.
nsISelectionController
void wordmove(in boolean forward, in boolean extend); attributes attribute type description caretvisible boolean this is true if the caret is enabled, visible, and
currently blinking.
... checkvisibility() checks if textnode and offsets are actually rendered in the
current precontext.
... getcaretenabled() gets the
current state of the caret, as set by setcaretenabled().
nsIToolkitProfileService
sitoolkitprofile createprofile(in nsilocalfile arootdir, in autf8string aname); void flush(); nsitoolkitprofile getprofilebyname(in autf8string aname); nsiprofilelock lockprofilepath(in nsilocalfile adirectory, in nsilocalfile atempdirectory); attributes attribute type description profilecount unsigned long the number of user profiles
currently in existence.
...(not the profile
currently in use.) not sure what happens if you change this setting but someone said: you can change profiles by setting this attribute's value.
... this may throw an ns_error_failure (0x80004005) when trying to get the
current profile if it's unavailable or if permissions restrict access.
nsITreeSelection
; boolean isselected(in long index); void rangedselect(in long startindex, in long endindex, in boolean augment); void select(in long index); void selectall(); void timedselect(in long index, in long delay); void toggleselect(in long index); attributes attribute type description count long the number of rows
currently selected in this tree.
...
currentcolumn nsitreecolumn the
current column.
...
currentindex long the
current item (the one with focus).
nsIUpdateChecker
1.0 66 introduced gecko 1.8 inherits from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) method overview void checkforupdates(in nsiupdatechecklistener listener, in boolean force); void stopchecking(in unsigned short duration); constants constant value description
current_check 1 constant for the stopchecking() method indicating that only the
current update check should be stopped.
...
current_session 2 constant for the stopchecking() method indicating that all update checks during the
current session should be stopped.
...force if true, the update checker checks for updates, regardless of the
current value of the user's update settings.
nsIWebProgressListener
acurselfprogress the
current progress for arequest.
... acurtotalprogress the
current progress for all requests associated with awebprogress.
...instead, it is a numeric value that indicates the
current status of the request.
nsIWebProgressListener2
acurselfprogress the
current progress for arequest.
...acurtotalprogress the
current progress for all requests associated with awebprogress.
...asameuri true if awebprogress is requesting a refresh of the
current uri.
nsIWindowsShellService
a rgb value, where (r << 24 | g << 16 | b) obsolete since gecko 1.8 unreadmailcount unsigned long the number of unread mail messages for the
current user.
...obsolete since gecko 1.8 hkcc 1 hkey_
current_config.
... obsolete since gecko 1.8 hkcu 2 hkey_
current_user.
nsIXULBrowserWindow
this may be used, for example, to redirect links into new tabs or windows when it's not desirable to replace the content in the
current tab (such as when the link is clicked in an app tab).
... setoverlink() tells the object implementing this function what link we are
currently over.
...element the
currently targeted link element.
nsIXULRuntime
is64bit boolean indicates whether the
current firefox build is 64-bit.
... os autf8string a string tag identifying the
current operating system.
... xpcomabi autf8string a string tag identifying the binary abi of the
current processor and compiler vtable.
XPCOM reference
there are
currently three folder classes - nslocalmailfolder, nsimapmailfolder, and nsnewsfolder.
...it is (as far as i can tell) not
currently used anywhere in thunderbird.nsmsgviewcommandtypethe nsmsgviewcommandtype interface contains constants used for commands in thunderbird.
... xpcom modules.standard xpcom componentsthere are a number of components provided in the standard implementation of xpcom; these are as follows.xpcom glue classesthese "glue" classes are provided to make it easier to use xpcom from c++ code.xpcom interface referencethis is a reference to the xpcom interfaces provided by the mozilla platform.xpcom interface reference by groupingthis page lists the
current (as of dec.
Xptcall Porting Status
currently the code is dependent on the g++ name mangling convention and a few gnu extensions so i'm not sure how useful it will be for the other systems.
...i am
currently working on making testxpc function correctly.
... i am doing the porting work with egcs-1.1.2 on netbsd 1.4p (netbsd-
current snapshot from a couple of days ago).
Address Book examples
this is
currently true in the case of ldap, but may be true in other cases as well.
...my value = card.getproperty("random1"); note: local (mork) address books are
currently the only built-in type of address book that supports saving of non-built-in properties.
...rscreen", {selectedab:selectedab}); edit list dialog window.opendialog("chrome://messenger/content/addressbook/abeditlistdialog.xul", "", "chrome,resizable=no,titlebar,modal,centerscreen", {abcard:abcard, listuri:listuri}); new address book dialog unlike the edit address book dialog, the new address book dialog does not
currently have the facility to get the chrome uri based on the address book type.
Autoconfiguration in Thunderbird
mechanisms thunderbird gets the server settings via different means, each of which is intended for different cases: ispdb the ispdb is a central database,
currently hosted by the thunderbird project, but free to use for any client.
..., the lookup is performed as (in this order): tb-install-dir/isp/example.com.xml on the harddisk check for autoconfig.example.com look up of "example.com" in the ispdb look up "mx example.com" in dns, and for mx1.mail.hoster.com, look up "hoster.com" in the ispdb try to guess (imap.example.com, smtp.example.com etc.) we may add dns srv records as supported mechanism in the future, but we
currently do not.
...
current process: file a bug in bugzilla, product "webtools", component "ispdb database entries", with a configuration file that matches the requirements described below.
Add to iPhoto
if (document.getelementbyid("contentareacontextmenu")) { document.getelementbyid("contentareacontextmenu").addeventlistener("popupshowing", iphoto.onpopup, false); } responding when the context menu is clicked when the user right-clicks an image, our handler gets called: onpopup: function() { var node = iphoto.get
currentnode(); var item = document.getelementbyid("add-to-iphoto_menuitem"); if (item) { item.hidden = (node == null); // hide it if we're not on an image } } this code finds the image node the user right-clicked in by calling our get
currentnode() method, then sets the hidden state of the "add image to iphoto" menu item based on whether or not an image node was found.
... the code to identify the node looks like this: get
currentnode: function() { var node = document.popupnode; // if no node, just return null now if (node == undefined || !node) { return null; } // is it an image node?
... add: function() { var node = iphoto.get
currentnode(); if (node) { var src = node.getattribute("src"); // get the url of the image if (src && src != "") { iphoto.addimagebyurl(src); } } } this fetches the node representing the image the user wants to add, and, if it's an image, fetches the image's url from its src attribute, then passes it into our addimagebyurl() method, which will do all the heavy lifting.
Introduction to DOM Inspector - Firefox Developer Tools
inspecting content documents the inspect content document menupopup can be accessed from the file menu, and it will list
currently loaded content documents.
... inspecting chrome documents the inspect chrome document menupopup can be accessed from the file menu , and it will contain the list of
currently loaded chrome windows and subdocuments.
...the rule that applies the search icon to the element uses a class simple selector and uses a list-style-image property to point to a file in the
current theme.
Debugger.Source - Firefox Developer Tools
currently only entire modules evaluated via new webassembly.module are represented.
...
currently, the text is an s-expression based syntax.
...if one assigns a function, that function’s script’s source doesnot belong to the dom element; the function’s definition must appear elsewhere.) (if the sources attached to a dom element change, the debugger.source instances representing superceded code still refer to the dom element; this accessor only reflects origins, not
current relationships.) elementattributename if this source belongs to a dom element because it is an event handler content attribute or an event handler idl attribute, this is the name of that attribute, a string.
Network monitor toolbar - Firefox Developer Tools
throttling menu, to simulate various connection types a menu of other actions: persist logs: by default, the network monitor is cleared each time you navigate to a new page or reload the
current page.
... save all as har opens a file dialog box so you can save the
current contents of the network log as a har file with the extension .har.
... copy all as har copies the
current contents of the network log to the clipboard in har format.
Work with animations - Firefox Developer Tools
the timeline starts at the start of the first animation, ends at the end of the last animation, and is labeled with markers every 250 milliseconds (this depends on the time scale of the animations
currently displayed).
... animation playback at the top of the animation inspector: there are buttons to play/pause and restart the animation there's a dropdown to change the animation playback rate the
current time in the animation is displayed.
...in this case, the message is "animations of 'transform' cannot be run on the compositor when geometric properties are animated on the same element at the same time." edit @keyframes any @keyframes rules associated with the
currently selected element are displayed in the rules view and are editable: edit timing functions when you create a css animation you can specify a timing function: this determines the rate at which the animation progresses.
Page inspector keyboard shortcuts - Firefox Developer Tools
end end end expand
currently selected node right arrow right arrow right arrow collapse
currently selected node left arrow left arrow left arrow (when a node is selected) move inside the node so you can start stepping through attributes.
...+ tab start editing property or value (rules view only, when a property or value is selected, but not already being edited) enter or space return or space enter or space cycle up and down through auto-complete suggestions (rules view only, when a property or value is being edited) up arrow , down arrow up arrow , down arrow up arrow , down arrow choose
current auto-complete suggestion (rules view only, when a property or value is being edited) enter or tab return or tab enter or tab increment selected value by 1 up arrow up arrow up arrow decrement selected value by 1 down arrow down arrow down arrow increment selected value by 100 shift + page up shift + page up shift + page up de...
... show/hide more information about
current property (computed view only, when a property is selected) enter or space return or space enter or space open mdn reference page about
current property (computed view only, when a property is selected) f1 f1 f1 open
current css file in style editor (computed view only, when more information is shown for a property and a css file reference is focused).
Settings - Firefox Developer Tools
as of firefox 62, if the option to "select an iframe as the
currently targeted document" is checked, the icon will appear in the toolbar while the settings tab is displayed, even if the
current page doesn't include any iframes.
... detect indentation auto-indent new lines based on the
current indentation.
... disable javascript reload the
current tab with javascript disabled.
Cookies - Firefox Developer Tools
that is, the domain value matches exactly the domain of the
current website.
... delete all - deletes all cookies for the
current host.
... delete all session cookies - deletes all cookies for the
current host that are scheduled to be deleted when the browser shuts down ...
Toolbox - Firefox Developer Tools
by default this array includes: toggle split console responsive design mode select a frame as the
currently targeted document (this is only included by default from firefox 41 onwards).
... main pane the content of the main pane in the window is entirely controlled by, and specific to, the hosted tool
currently selected.
... f1 f1 f1 toggle toolbox between the last 2 docking modes ctrl + shift + d cmd + shift + d ctrl + shift + d toggle split console (except if console is the
currently selected tool) esc esc esc these shortcuts work in all tools that are hosted in the toolbox.
Web Console Helpers - Firefox Developer Tools
$0 the
currently-inspected element in the page.
... :screenshot creates a screenshot of the
current page with the supplied filename.
...with this parameter, even the parts of the webpage which are outside the
current bounds of the window will be included in the screenshot.
AmbientLightSensor.illuminance - Web APIs
the illuminance property of the ambientlightsensor interface returns the
current light level in lux of the ambient light level around the hosting device.
... syntax var level = ambientlightsensor.illuminance value a number indicating the
current light level in lux.
... example if ( 'ambientlightsensor' in window ) { const sensor = new ambientlightsensor(); sensor.onreading = () => { console.log('
current light level:', sensor.illuminance); }; sensor.onerror = (event) => { console.log(event.error.name, event.error.message); }; sensor.start(); } specifications specification status comment generic sensor api candidate recommendation defines sensors in general.
AmbientLightSensor - Web APIs
the ambientlightsensor interface of the the sensor apis returns the
current light level or illuminance of the ambient light around the hosting device.
... properties ambientlightsensor.illuminance returns the
current light level in lux of the ambient light level around the hosting device.
... example if ( 'ambientlightsensor' in window ) { const sensor = new ambientlightsensor(); sensor.onreading = () => { console.log('
current light level:', sensor.illuminance); }; sensor.onerror = (event) => { console.log(event.error.name, event.error.message); }; sensor.start(); } specifications specification status comment generic sensor api candidate recommendation defines sensors in general.
AnalyserNode.getByteTimeDomainData() - Web APIs
the getbytetimedomaindata() method of the analysernode interface copies the
current waveform, or time-domain, data into a uint8array (unsigned byte array) passed into it.
... return value void | none example the following example shows basic usage of an audiocontext to create an analysernode, then requestanimationframe and <canvas> to collect time domain data repeatedly and draw an "oscilloscope style" output of the
current audio input.
... analyser.fftsize = 2048; const bufferlength = analyser.fftsize; const dataarray = new uint8array(bufferlength); analyser.getbytetimedomaindata(dataarray); // draw an oscilloscope of the
current audio source function draw() { drawvisual = requestanimationframe(draw); analyser.getbytetimedomaindata(dataarray); canvasctx.fillstyle = 'rgb(200, 200, 200)'; canvasctx.fillrect(0, 0, width, height); canvasctx.linewidth = 2; canvasctx.strokestyle = 'rgb(0, 0, 0)'; const slicewidth = width * 1.0 / bufferlength; let x = 0; canvasctx.beginpath(); for(var i = 0; i < bufferlen...
AnalyserNode.smoothingTimeConstant - Web APIs
it's basically an average between the
current buffer and the last buffer the analysernode processed, and results in a much smoother set of value changes over time.
... if 0 is set, there is no averaging done, whereas a value of 1 means "overlap the previous and
current buffer quite a lot while computing the value", which essentially smoothes the changes across analysernode.getfloatfrequencydata/analysernode.getbytefrequencydata calls.
... example the following example shows basic usage of an audiocontext to create an analysernode, then requestanimationframe and <canvas> to collect frequency data repeatedly and draw a "winamp bargraph style" output of the
current audio input.
AudioBufferSourceNode.start() - Web APIs
if when is less than (audiocontext.
currenttime, or if it's 0, the sound begins to play at once.
...the computation of the offset into the sound is performed using the sound buffer's natural sample rate, rather than the
current playback rate, so even if the sound is playing at twice its normal speed, the midway point through a 10-second audio buffer is still 5.
... source.start(audioctx.
currenttime + 1,3,10); for a more complete example showing start() in use, check out our audiocontext.decodeaudiodata() example, you can also run the code example live, or view the source.
AudioContext.getOutputTimestamp() - Web APIs
the getoutputtimestamp() property of the audiocontext interface returns a new audiotimestamp object containing two audio timestamp values relating to the
current audio context.
... the two values are as follows: audiotimestamp.contexttime: the time of the sample frame
currently being rendered by the audio output device (i.e., output audio stream position), in the same units and origin as the context's audiocontext.
currenttime.
... contexttime: a point in the time coordinate system of the
currenttime for the baseaudiocontext; the time after the audio context was first created.
AudioContext - Web APIs
it's recommended to create one audiocontext and reuse it instead of initializing a new one each time, and it's ok to use a single audiocontext for several different audio source and pipeline con
currently.
... audiocontext.outputlatency read only returns an estimation of the output latency of the
current audio context.
... audiocontext.getoutputtimestamp() returns a new audiotimestamp object containing two audio timestamp values relating to the
current audio context.
AudioListener.dopplerFactor - Web APIs
indow.webkitaudiocontext; var audioctx = new audiocontext(); var panner = audioctx.createpanner(); panner.panningmodel = 'hrtf'; panner.distancemodel = 'inverse'; panner.refdistance = 1; panner.maxdistance = 10000; panner.rollofffactor = 1; panner.coneinnerangle = 360; panner.coneouterangle = 0; panner.coneoutergain = 0; if(panner.orientationx) { panner.orientationx.setvalueattime(1, audioctx.
currenttime); panner.orientationy.setvalueattime(0, audioctx.
currenttime); panner.orientationz.setvalueattime(0, audioctx.
currenttime); } else { panner.setorientation(1,0,0); } var listener = audioctx.listener; if(listener.forwardx) { listener.forwardx.setvalueattime(0, audioctx.
currenttime); listener.forwardy.setvalueattime(0, audioctx.
currenttime); listener.forwardz.setvalueattime(-1, aud...
...ioctx.
currenttime); listener.upx.setvalueattime(0, audioctx.
currenttime); listener.upy.setvalueattime(1, audioctx.
currenttime); listener.upz.setvalueattime(0, audioctx.
currenttime); } else { listener.setorientation(0,0,-1,0,1,0); } var source; var play = document.queryselector('.play'); var stop = document.queryselector('.stop'); var boombox = document.queryselector('.boom-box'); var listenerdata = document.queryselector('.listener-data'); var pannerdata = document.queryselector('.panner-data'); leftbound = (-xpos) + 50; rightbound = xpos - 50; xiterator = width/150; // listener will always be in the same place for this demo if(listener.positionx) { listener.positionx.setvalueattime(xpos, audioctx.
currenttime); listener.positiony.setvalueattime(ypos, audioctx.
currenttime); l...
...istener.positionz.setvalueattime(300, audioctx.
currenttime); } else { listener.setposition(xpos,ypos,300); } listenerdata.innerhtml = 'listener data: x ' + xpos + ' y ' + ypos + ' z ' + 300; // panner will move as the boombox graphic moves around on the screen function positionpanner() { if(panner.positionx) { panner.positionx.setvalueattime(xpos, audioctx.
currenttime); panner.positiony.setvalueattime(ypos, audioctx.
currenttime); panner.positionz.setvalueattime(zpos, audioctx.
currenttime); } else { panner.setposition(xpos,ypos,zpos); } pannerdata.innerhtml = 'panner data: x ' + xpos + ' y ' + ypos + ' z ' + zpos; } note: in terms of working out what position values to apply to the listener and panner, to make the sound appropriate to what the visuals are doing on scr...
AudioListener.forwardX - Web APIs
indow.webkitaudiocontext; var audioctx = new audiocontext(); var panner = audioctx.createpanner(); panner.panningmodel = 'hrtf'; panner.distancemodel = 'inverse'; panner.refdistance = 1; panner.maxdistance = 10000; panner.rollofffactor = 1; panner.coneinnerangle = 360; panner.coneouterangle = 0; panner.coneoutergain = 0; if(panner.orientationx) { panner.orientationx.setvalueattime(1, audioctx.
currenttime); panner.orientationy.setvalueattime(0, audioctx.
currenttime); panner.orientationz.setvalueattime(0, audioctx.
currenttime); } else { panner.setorientation(1,0,0); } var listener = audioctx.listener; if(listener.forwardx) { listener.forwardx.setvalueattime(0, audioctx.
currenttime); listener.forwardy.setvalueattime(0, audioctx.
currenttime); listener.forwardz.setvalueattime(-1, aud...
...ioctx.
currenttime); listener.upx.setvalueattime(0, audioctx.
currenttime); listener.upy.setvalueattime(1, audioctx.
currenttime); listener.upz.setvalueattime(0, audioctx.
currenttime); } else { listener.setorientation(0,0,-1,0,1,0); } var source; var play = document.queryselector('.play'); var stop = document.queryselector('.stop'); var boombox = document.queryselector('.boom-box'); var listenerdata = document.queryselector('.listener-data'); var pannerdata = document.queryselector('.panner-data'); leftbound = (-xpos) + 50; rightbound = xpos - 50; xiterator = width/150; // listener will always be in the same place for this demo if(listener.positionx) { listener.positionx.setvalueattime(xpos, audioctx.
currenttime); listener.positiony.setvalueattime(ypos, audioctx.
currenttime); l...
...istener.positionz.setvalueattime(300, audioctx.
currenttime); } else { listener.setposition(xpos,ypos,300); } listenerdata.innerhtml = 'listener data: x ' + xpos + ' y ' + ypos + ' z ' + 300; // panner will move as the boombox graphic moves around on the screen function positionpanner() { if(panner.positionx) { panner.positionx.setvalueattime(xpos, audioctx.
currenttime); panner.positiony.setvalueattime(ypos, audioctx.
currenttime); panner.positionz.setvalueattime(zpos, audioctx.
currenttime); } else { panner.setposition(xpos,ypos,zpos); } pannerdata.innerhtml = 'panner data: x ' + xpos + ' y ' + ypos + ' z ' + zpos; } note: in terms of working out what position values to apply to the listener and panner, to make the sound appropriate to what the visuals are doing on scr...
AudioListener.forwardY - Web APIs
indow.webkitaudiocontext; var audioctx = new audiocontext(); var panner = audioctx.createpanner(); panner.panningmodel = 'hrtf'; panner.distancemodel = 'inverse'; panner.refdistance = 1; panner.maxdistance = 10000; panner.rollofffactor = 1; panner.coneinnerangle = 360; panner.coneouterangle = 0; panner.coneoutergain = 0; if(panner.orientationx) { panner.orientationx.setvalueattime(1, audioctx.
currenttime); panner.orientationy.setvalueattime(0, audioctx.
currenttime); panner.orientationz.setvalueattime(0, audioctx.
currenttime); } else { panner.setorientation(1,0,0); } var listener = audioctx.listener; if(listener.forwardx) { listener.forwardx.setvalueattime(0, audioctx.
currenttime); listener.forwardy.setvalueattime(0, audioctx.
currenttime); listener.forwardz.setvalueattime(-1, aud...
...ioctx.
currenttime); listener.upx.setvalueattime(0, audioctx.
currenttime); listener.upy.setvalueattime(1, audioctx.
currenttime); listener.upz.setvalueattime(0, audioctx.
currenttime); } else { listener.setorientation(0,0,-1,0,1,0); } var source; var play = document.queryselector('.play'); var stop = document.queryselector('.stop'); var boombox = document.queryselector('.boom-box'); var listenerdata = document.queryselector('.listener-data'); var pannerdata = document.queryselector('.panner-data'); leftbound = (-xpos) + 50; rightbound = xpos - 50; xiterator = width/150; // listener will always be in the same place for this demo if(listener.positionx) { listener.positionx.setvalueattime(xpos, audioctx.
currenttime); listener.positiony.setvalueattime(ypos, audioctx.
currenttime); l...
...istener.positionz.setvalueattime(300, audioctx.
currenttime); } else { listener.setposition(xpos,ypos,300); } listenerdata.innerhtml = 'listener data: x ' + xpos + ' y ' + ypos + ' z ' + 300; // panner will move as the boombox graphic moves around on the screen function positionpanner() { if(panner.positionx) { panner.positionx.setvalueattime(xpos, audioctx.
currenttime); panner.positiony.setvalueattime(ypos, audioctx.
currenttime); panner.positionz.setvalueattime(zpos, audioctx.
currenttime); } else { panner.setposition(xpos,ypos,zpos); } pannerdata.innerhtml = 'panner data: x ' + xpos + ' y ' + ypos + ' z ' + zpos; } note: in terms of working out what position values to apply to the listener and panner, to make the sound appropriate to what the visuals are doing on scr...
AudioListener.forwardZ - Web APIs
indow.webkitaudiocontext; var audioctx = new audiocontext(); var panner = audioctx.createpanner(); panner.panningmodel = 'hrtf'; panner.distancemodel = 'inverse'; panner.refdistance = 1; panner.maxdistance = 10000; panner.rollofffactor = 1; panner.coneinnerangle = 360; panner.coneouterangle = 0; panner.coneoutergain = 0; if(panner.orientationx) { panner.orientationx.setvalueattime(1, audioctx.
currenttime); panner.orientationy.setvalueattime(0, audioctx.
currenttime); panner.orientationz.setvalueattime(0, audioctx.
currenttime); } else { panner.setorientation(1,0,0); } var listener = audioctx.listener; if(listener.forwardx) { listener.forwardx.setvalueattime(0, audioctx.
currenttime); listener.forwardy.setvalueattime(0, audioctx.
currenttime); listener.forwardz.setvalueattime(-1, aud...
...ioctx.
currenttime); listener.upx.setvalueattime(0, audioctx.
currenttime); listener.upy.setvalueattime(1, audioctx.
currenttime); listener.upz.setvalueattime(0, audioctx.
currenttime); } else { listener.setorientation(0,0,-1,0,1,0); } var source; var play = document.queryselector('.play'); var stop = document.queryselector('.stop'); var boombox = document.queryselector('.boom-box'); var listenerdata = document.queryselector('.listener-data'); var pannerdata = document.queryselector('.panner-data'); leftbound = (-xpos) + 50; rightbound = xpos - 50; xiterator = width/150; // listener will always be in the same place for this demo if(listener.positionx) { listener.positionx.setvalueattime(xpos, audioctx.
currenttime); listener.positiony.setvalueattime(ypos, audioctx.
currenttime); l...
...istener.positionz.setvalueattime(300, audioctx.
currenttime); } else { listener.setposition(xpos,ypos,300); } listenerdata.innerhtml = 'listener data: x ' + xpos + ' y ' + ypos + ' z ' + 300; // panner will move as the boombox graphic moves around on the screen function positionpanner() { if(panner.positionx) { panner.positionx.setvalueattime(xpos, audioctx.
currenttime); panner.positiony.setvalueattime(ypos, audioctx.
currenttime); panner.positionz.setvalueattime(zpos, audioctx.
currenttime); } else { panner.setposition(xpos,ypos,zpos); } pannerdata.innerhtml = 'panner data: x ' + xpos + ' y ' + ypos + ' z ' + zpos; } note: in terms of working out what position values to apply to the listener and panner, to make the sound appropriate to what the visuals are doing on scr...
AudioListener.positionX - Web APIs
indow.webkitaudiocontext; var audioctx = new audiocontext(); var panner = audioctx.createpanner(); panner.panningmodel = 'hrtf'; panner.distancemodel = 'inverse'; panner.refdistance = 1; panner.maxdistance = 10000; panner.rollofffactor = 1; panner.coneinnerangle = 360; panner.coneouterangle = 0; panner.coneoutergain = 0; if(panner.orientationx) { panner.orientationx.setvalueattime(1, audioctx.
currenttime); panner.orientationy.setvalueattime(0, audioctx.
currenttime); panner.orientationz.setvalueattime(0, audioctx.
currenttime); } else { panner.setorientation(1,0,0); } var listener = audioctx.listener; if(listener.forwardx) { listener.forwardx.setvalueattime(0, audioctx.
currenttime); listener.forwardy.setvalueattime(0, audioctx.
currenttime); listener.forwardz.setvalueattime(-1, aud...
...ioctx.
currenttime); listener.upx.setvalueattime(0, audioctx.
currenttime); listener.upy.setvalueattime(1, audioctx.
currenttime); listener.upz.setvalueattime(0, audioctx.
currenttime); } else { listener.setorientation(0,0,-1,0,1,0); } var source; var play = document.queryselector('.play'); var stop = document.queryselector('.stop'); var boombox = document.queryselector('.boom-box'); var listenerdata = document.queryselector('.listener-data'); var pannerdata = document.queryselector('.panner-data'); leftbound = (-xpos) + 50; rightbound = xpos - 50; xiterator = width/150; // listener will always be in the same place for this demo if(listener.positionx) { listener.positionx.setvalueattime(xpos, audioctx.
currenttime); listener.positiony.setvalueattime(ypos, audioctx.
currenttime); l...
...istener.positionz.setvalueattime(300, audioctx.
currenttime); } else { listener.setposition(xpos,ypos,300); } listenerdata.innerhtml = 'listener data: x ' + xpos + ' y ' + ypos + ' z ' + 300; // panner will move as the boombox graphic moves around on the screen function positionpanner() { if(panner.positionx) { panner.positionx.setvalueattime(xpos, audioctx.
currenttime); panner.positiony.setvalueattime(ypos, audioctx.
currenttime); panner.positionz.setvalueattime(zpos, audioctx.
currenttime); } else { panner.setposition(xpos,ypos,zpos); } pannerdata.innerhtml = 'panner data: x ' + xpos + ' y ' + ypos + ' z ' + zpos; } note: in terms of working out what position values to apply to the listener and panner, to make the sound appropriate to what the visuals are doing on scr...
AudioListener.positionY - Web APIs
indow.webkitaudiocontext; var audioctx = new audiocontext(); var panner = audioctx.createpanner(); panner.panningmodel = 'hrtf'; panner.distancemodel = 'inverse'; panner.refdistance = 1; panner.maxdistance = 10000; panner.rollofffactor = 1; panner.coneinnerangle = 360; panner.coneouterangle = 0; panner.coneoutergain = 0; if(panner.orientationx) { panner.orientationx.setvalueattime(1, audioctx.
currenttime); panner.orientationy.setvalueattime(0, audioctx.
currenttime); panner.orientationz.setvalueattime(0, audioctx.
currenttime); } else { panner.setorientation(1,0,0); } var listener = audioctx.listener; if(listener.forwardx) { listener.forwardx.setvalueattime(0, audioctx.
currenttime); listener.forwardy.setvalueattime(0, audioctx.
currenttime); listener.forwardz.setvalueattime(-1, aud...
...ioctx.
currenttime); listener.upx.setvalueattime(0, audioctx.
currenttime); listener.upy.setvalueattime(1, audioctx.
currenttime); listener.upz.setvalueattime(0, audioctx.
currenttime); } else { listener.setorientation(0,0,-1,0,1,0); } var source; var play = document.queryselector('.play'); var stop = document.queryselector('.stop'); var boombox = document.queryselector('.boom-box'); var listenerdata = document.queryselector('.listener-data'); var pannerdata = document.queryselector('.panner-data'); leftbound = (-xpos) + 50; rightbound = xpos - 50; xiterator = width/150; // listener will always be in the same place for this demo if(listener.positionx) { listener.positionx.setvalueattime(xpos, audioctx.
currenttime); listener.positiony.setvalueattime(ypos, audioctx.
currenttime); l...
...istener.positionz.setvalueattime(300, audioctx.
currenttime); } else { listener.setposition(xpos,ypos,300); } listenerdata.innerhtml = 'listener data: x ' + xpos + ' y ' + ypos + ' z ' + 300; // panner will move as the boombox graphic moves around on the screen function positionpanner() { if(panner.positionx) { panner.positionx.setvalueattime(xpos, audioctx.
currenttime); panner.positiony.setvalueattime(ypos, audioctx.
currenttime); panner.positionz.setvalueattime(zpos, audioctx.
currenttime); } else { panner.setposition(xpos,ypos,zpos); } pannerdata.innerhtml = 'panner data: x ' + xpos + ' y ' + ypos + ' z ' + zpos; } note: in terms of working out what position values to apply to the listener and panner, to make the sound appropriate to what the visuals are doing on scr...
AudioListener.positionZ - Web APIs
indow.webkitaudiocontext; var audioctx = new audiocontext(); var panner = audioctx.createpanner(); panner.panningmodel = 'hrtf'; panner.distancemodel = 'inverse'; panner.refdistance = 1; panner.maxdistance = 10000; panner.rollofffactor = 1; panner.coneinnerangle = 360; panner.coneouterangle = 0; panner.coneoutergain = 0; if(panner.orientationx) { panner.orientationx.setvalueattime(1, audioctx.
currenttime); panner.orientationy.setvalueattime(0, audioctx.
currenttime); panner.orientationz.setvalueattime(0, audioctx.
currenttime); } else { panner.setorientation(1,0,0); } var listener = audioctx.listener; if(listener.forwardx) { listener.forwardx.setvalueattime(0, audioctx.
currenttime); listener.forwardy.setvalueattime(0, audioctx.
currenttime); listener.forwardz.setvalueattime(-1, aud...
...ioctx.
currenttime); listener.upx.setvalueattime(0, audioctx.
currenttime); listener.upy.setvalueattime(1, audioctx.
currenttime); listener.upz.setvalueattime(0, audioctx.
currenttime); } else { listener.setorientation(0,0,-1,0,1,0); } var source; var play = document.queryselector('.play'); var stop = document.queryselector('.stop'); var boombox = document.queryselector('.boom-box'); var listenerdata = document.queryselector('.listener-data'); var pannerdata = document.queryselector('.panner-data'); leftbound = (-xpos) + 50; rightbound = xpos - 50; xiterator = width/150; // listener will always be in the same place for this demo if(listener.positionx) { listener.positionx.setvalueattime(xpos, audioctx.
currenttime); listener.positiony.setvalueattime(ypos, audioctx.
currenttime); l...
...istener.positionz.setvalueattime(300, audioctx.
currenttime); } else { listener.setposition(xpos,ypos,300); } listenerdata.innerhtml = 'listener data: x ' + xpos + ' y ' + ypos + ' z ' + 300; // panner will move as the boombox graphic moves around on the screen function positionpanner() { if(panner.positionx) { panner.positionx.setvalueattime(xpos, audioctx.
currenttime); panner.positiony.setvalueattime(ypos, audioctx.
currenttime); panner.positionz.setvalueattime(zpos, audioctx.
currenttime); } else { panner.setposition(xpos,ypos,zpos); } pannerdata.innerhtml = 'panner data: x ' + xpos + ' y ' + ypos + ' z ' + zpos; } note: in terms of working out what position values to apply to the listener and panner, to make the sound appropriate to what the visuals are doing on scr...
AudioListener.setOrientation() - Web APIs
indow.webkitaudiocontext; var audioctx = new audiocontext(); var panner = audioctx.createpanner(); panner.panningmodel = 'hrtf'; panner.distancemodel = 'inverse'; panner.refdistance = 1; panner.maxdistance = 10000; panner.rollofffactor = 1; panner.coneinnerangle = 360; panner.coneouterangle = 0; panner.coneoutergain = 0; if(panner.orientationx) { panner.orientationx.setvalueattime(1, audioctx.
currenttime); panner.orientationy.setvalueattime(0, audioctx.
currenttime); panner.orientationz.setvalueattime(0, audioctx.
currenttime); } else { panner.setorientation(1,0,0); } var listener = audioctx.listener; if(listener.forwardx) { listener.forwardx.setvalueattime(0, audioctx.
currenttime); listener.forwardy.setvalueattime(0, audioctx.
currenttime); listener.forwardz.setvalueattime(-1, aud...
...ioctx.
currenttime); listener.upx.setvalueattime(0, audioctx.
currenttime); listener.upy.setvalueattime(1, audioctx.
currenttime); listener.upz.setvalueattime(0, audioctx.
currenttime); } else { listener.setorientation(0,0,-1,0,1,0); } var source; var play = document.queryselector('.play'); var stop = document.queryselector('.stop'); var boombox = document.queryselector('.boom-box'); var listenerdata = document.queryselector('.listener-data'); var pannerdata = document.queryselector('.panner-data'); leftbound = (-xpos) + 50; rightbound = xpos - 50; xiterator = width/150; // listener will always be in the same place for this demo if(listener.positionx) { listener.positionx.setvalueattime(xpos, audioctx.
currenttime); listener.positiony.setvalueattime(ypos, audioctx.
currenttime); l...
...istener.positionz.setvalueattime(300, audioctx.
currenttime); } else { listener.setposition(xpos,ypos,300); } listenerdata.innerhtml = 'listener data: x ' + xpos + ' y ' + ypos + ' z ' + 300; // panner will move as the boombox graphic moves around on the screen function positionpanner() { if(panner.positionx) { panner.positionx.setvalueattime(xpos, audioctx.
currenttime); panner.positiony.setvalueattime(ypos, audioctx.
currenttime); panner.positionz.setvalueattime(zpos, audioctx.
currenttime); } else { panner.setposition(xpos,ypos,zpos); } pannerdata.innerhtml = 'panner data: x ' + xpos + ' y ' + ypos + ' z ' + zpos; } note: in terms of working out what position values to apply to the listener and panner, to make the sound appropriate to what the visuals are doing on scr...
AudioListener.setPosition() - Web APIs
indow.webkitaudiocontext; var audioctx = new audiocontext(); var panner = audioctx.createpanner(); panner.panningmodel = 'hrtf'; panner.distancemodel = 'inverse'; panner.refdistance = 1; panner.maxdistance = 10000; panner.rollofffactor = 1; panner.coneinnerangle = 360; panner.coneouterangle = 0; panner.coneoutergain = 0; if(panner.orientationx) { panner.orientationx.setvalueattime(1, audioctx.
currenttime); panner.orientationy.setvalueattime(0, audioctx.
currenttime); panner.orientationz.setvalueattime(0, audioctx.
currenttime); } else { panner.setorientation(1,0,0); } var listener = audioctx.listener; if(listener.forwardx) { listener.forwardx.setvalueattime(0, audioctx.
currenttime); listener.forwardy.setvalueattime(0, audioctx.
currenttime); listener.forwardz.setvalueattime(-1, aud...
...ioctx.
currenttime); listener.upx.setvalueattime(0, audioctx.
currenttime); listener.upy.setvalueattime(1, audioctx.
currenttime); listener.upz.setvalueattime(0, audioctx.
currenttime); } else { listener.setorientation(0,0,-1,0,1,0); } var source; var play = document.queryselector('.play'); var stop = document.queryselector('.stop'); var boombox = document.queryselector('.boom-box'); var listenerdata = document.queryselector('.listener-data'); var pannerdata = document.queryselector('.panner-data'); leftbound = (-xpos) + 50; rightbound = xpos - 50; xiterator = width/150; // listener will always be in the same place for this demo if(listener.positionx) { listener.positionx.setvalueattime(xpos, audioctx.
currenttime); listener.positiony.setvalueattime(ypos, audioctx.
currenttime); l...
...istener.positionz.setvalueattime(300, audioctx.
currenttime); } else { listener.setposition(xpos,ypos,300); } listenerdata.innerhtml = 'listener data: x ' + xpos + ' y ' + ypos + ' z ' + 300; // panner will move as the boombox graphic moves around on the screen function positionpanner() { if(panner.positionx) { panner.positionx.setvalueattime(xpos, audioctx.
currenttime); panner.positiony.setvalueattime(ypos, audioctx.
currenttime); panner.positionz.setvalueattime(zpos, audioctx.
currenttime); } else { panner.setposition(xpos,ypos,zpos); } pannerdata.innerhtml = 'panner data: x ' + xpos + ' y ' + ypos + ' z ' + zpos; } note: in terms of working out what position values to apply to the listener and panner, to make the sound appropriate to what the visuals are doing on scr...
AudioListener.speedOfSound - Web APIs
indow.webkitaudiocontext; var audioctx = new audiocontext(); var panner = audioctx.createpanner(); panner.panningmodel = 'hrtf'; panner.distancemodel = 'inverse'; panner.refdistance = 1; panner.maxdistance = 10000; panner.rollofffactor = 1; panner.coneinnerangle = 360; panner.coneouterangle = 0; panner.coneoutergain = 0; if(panner.orientationx) { panner.orientationx.setvalueattime(1, audioctx.
currenttime); panner.orientationy.setvalueattime(0, audioctx.
currenttime); panner.orientationz.setvalueattime(0, audioctx.
currenttime); } else { panner.setorientation(1,0,0); } var listener = audioctx.listener; if(listener.forwardx) { listener.forwardx.setvalueattime(0, audioctx.
currenttime); listener.forwardy.setvalueattime(0, audioctx.
currenttime); listener.forwardz.setvalueattime(-1, aud...
...ioctx.
currenttime); listener.upx.setvalueattime(0, audioctx.
currenttime); listener.upy.setvalueattime(1, audioctx.
currenttime); listener.upz.setvalueattime(0, audioctx.
currenttime); } else { listener.setorientation(0,0,-1,0,1,0); } var source; var play = document.queryselector('.play'); var stop = document.queryselector('.stop'); var boombox = document.queryselector('.boom-box'); var listenerdata = document.queryselector('.listener-data'); var pannerdata = document.queryselector('.panner-data'); leftbound = (-xpos) + 50; rightbound = xpos - 50; xiterator = width/150; // listener will always be in the same place for this demo if(listener.positionx) { listener.positionx.setvalueattime(xpos, audioctx.
currenttime); listener.positiony.setvalueattime(ypos, audioctx.
currenttime); l...
...istener.positionz.setvalueattime(300, audioctx.
currenttime); } else { listener.setposition(xpos,ypos,300); } listenerdata.innerhtml = 'listener data: x ' + xpos + ' y ' + ypos + ' z ' + 300; // panner will move as the boombox graphic moves around on the screen function positionpanner() { if(panner.positionx) { panner.positionx.setvalueattime(xpos, audioctx.
currenttime); panner.positiony.setvalueattime(ypos, audioctx.
currenttime); panner.positionz.setvalueattime(zpos, audioctx.
currenttime); } else { panner.setposition(xpos,ypos,zpos); } pannerdata.innerhtml = 'panner data: x ' + xpos + ' y ' + ypos + ' z ' + zpos; } note: in terms of working out what position values to apply to the listener and panner, to make the sound appropriate to what the visuals are doing on scr...
AudioListener.upX - Web APIs
indow.webkitaudiocontext; var audioctx = new audiocontext(); var panner = audioctx.createpanner(); panner.panningmodel = 'hrtf'; panner.distancemodel = 'inverse'; panner.refdistance = 1; panner.maxdistance = 10000; panner.rollofffactor = 1; panner.coneinnerangle = 360; panner.coneouterangle = 0; panner.coneoutergain = 0; if(panner.orientationx) { panner.orientationx.setvalueattime(1, audioctx.
currenttime); panner.orientationy.setvalueattime(0, audioctx.
currenttime); panner.orientationz.setvalueattime(0, audioctx.
currenttime); } else { panner.setorientation(1,0,0); } var listener = audioctx.listener; if(listener.forwardx) { listener.forwardx.setvalueattime(0, audioctx.
currenttime); listener.forwardy.setvalueattime(0, audioctx.
currenttime); listener.forwardz.setvalueattime(-1, aud...
...ioctx.
currenttime); listener.upx.setvalueattime(0, audioctx.
currenttime); listener.upy.setvalueattime(1, audioctx.
currenttime); listener.upz.setvalueattime(0, audioctx.
currenttime); } else { listener.setorientation(0,0,-1,0,1,0); } var source; var play = document.queryselector('.play'); var stop = document.queryselector('.stop'); var boombox = document.queryselector('.boom-box'); var listenerdata = document.queryselector('.listener-data'); var pannerdata = document.queryselector('.panner-data'); leftbound = (-xpos) + 50; rightbound = xpos - 50; xiterator = width/150; // listener will always be in the same place for this demo if(listener.positionx) { listener.positionx.setvalueattime(xpos, audioctx.
currenttime); listener.positiony.setvalueattime(ypos, audioctx.
currenttime); l...
...istener.positionz.setvalueattime(300, audioctx.
currenttime); } else { listener.setposition(xpos,ypos,300); } listenerdata.innerhtml = 'listener data: x ' + xpos + ' y ' + ypos + ' z ' + 300; // panner will move as the boombox graphic moves around on the screen function positionpanner() { if(panner.positionx) { panner.positionx.setvalueattime(xpos, audioctx.
currenttime); panner.positiony.setvalueattime(ypos, audioctx.
currenttime); panner.positionz.setvalueattime(zpos, audioctx.
currenttime); } else { panner.setposition(xpos,ypos,zpos); } pannerdata.innerhtml = 'panner data: x ' + xpos + ' y ' + ypos + ' z ' + zpos; } note: in terms of working out what position values to apply to the listener and panner, to make the sound appropriate to what the visuals are doing on scr...
AudioListener.upY - Web APIs
indow.webkitaudiocontext; var audioctx = new audiocontext(); var panner = audioctx.createpanner(); panner.panningmodel = 'hrtf'; panner.distancemodel = 'inverse'; panner.refdistance = 1; panner.maxdistance = 10000; panner.rollofffactor = 1; panner.coneinnerangle = 360; panner.coneouterangle = 0; panner.coneoutergain = 0; if(panner.orientationx) { panner.orientationx.setvalueattime(1, audioctx.
currenttime); panner.orientationy.setvalueattime(0, audioctx.
currenttime); panner.orientationz.setvalueattime(0, audioctx.
currenttime); } else { panner.setorientation(1,0,0); } var listener = audioctx.listener; if(listener.forwardx) { listener.forwardx.setvalueattime(0, audioctx.
currenttime); listener.forwardy.setvalueattime(0, audioctx.
currenttime); listener.forwardz.setvalueattime(-1, aud...
...ioctx.
currenttime); listener.upx.setvalueattime(0, audioctx.
currenttime); listener.upy.setvalueattime(1, audioctx.
currenttime); listener.upz.setvalueattime(0, audioctx.
currenttime); } else { listener.setorientation(0,0,-1,0,1,0); } var source; var play = document.queryselector('.play'); var stop = document.queryselector('.stop'); var boombox = document.queryselector('.boom-box'); var listenerdata = document.queryselector('.listener-data'); var pannerdata = document.queryselector('.panner-data'); leftbound = (-xpos) + 50; rightbound = xpos - 50; xiterator = width/150; // listener will always be in the same place for this demo if(listener.positionx) { listener.positionx.setvalueattime(xpos, audioctx.
currenttime); listener.positiony.setvalueattime(ypos, audioctx.
currenttime); l...
...istener.positionz.setvalueattime(300, audioctx.
currenttime); } else { listener.setposition(xpos,ypos,300); } listenerdata.innerhtml = 'listener data: x ' + xpos + ' y ' + ypos + ' z ' + 300; // panner will move as the boombox graphic moves around on the screen function positionpanner() { if(panner.positionx) { panner.positionx.setvalueattime(xpos, audioctx.
currenttime); panner.positiony.setvalueattime(ypos, audioctx.
currenttime); panner.positionz.setvalueattime(zpos, audioctx.
currenttime); } else { panner.setposition(xpos,ypos,zpos); } pannerdata.innerhtml = 'panner data: x ' + xpos + ' y ' + ypos + ' z ' + zpos; } note: in terms of working out what position values to apply to the listener and panner, to make the sound appropriate to what the visuals are doing on scr...
AudioListener.upZ - Web APIs
indow.webkitaudiocontext; var audioctx = new audiocontext(); var panner = audioctx.createpanner(); panner.panningmodel = 'hrtf'; panner.distancemodel = 'inverse'; panner.refdistance = 1; panner.maxdistance = 10000; panner.rollofffactor = 1; panner.coneinnerangle = 360; panner.coneouterangle = 0; panner.coneoutergain = 0; if(panner.orientationx) { panner.orientationx.setvalueattime(1, audioctx.
currenttime); panner.orientationy.setvalueattime(0, audioctx.
currenttime); panner.orientationz.setvalueattime(0, audioctx.
currenttime); } else { panner.setorientation(1,0,0); } var listener = audioctx.listener; if(listener.forwardx) { listener.forwardx.setvalueattime(0, audioctx.
currenttime); listener.forwardy.setvalueattime(0, audioctx.
currenttime); listener.forwardz.setvalueattime(-1, aud...
...ioctx.
currenttime); listener.upx.setvalueattime(0, audioctx.
currenttime); listener.upy.setvalueattime(1, audioctx.
currenttime); listener.upz.setvalueattime(0, audioctx.
currenttime); } else { listener.setorientation(0,0,-1,0,1,0); } var source; var play = document.queryselector('.play'); var stop = document.queryselector('.stop'); var boombox = document.queryselector('.boom-box'); var listenerdata = document.queryselector('.listener-data'); var pannerdata = document.queryselector('.panner-data'); leftbound = (-xpos) + 50; rightbound = xpos - 50; xiterator = width/150; // listener will always be in the same place for this demo if(listener.positionx) { listener.positionx.setvalueattime(xpos, audioctx.
currenttime); listener.positiony.setvalueattime(ypos, audioctx.
currenttime); l...
...istener.positionz.setvalueattime(300, audioctx.
currenttime); } else { listener.setposition(xpos,ypos,300); } listenerdata.innerhtml = 'listener data: x ' + xpos + ' y ' + ypos + ' z ' + 300; // panner will move as the boombox graphic moves around on the screen function positionpanner() { if(panner.positionx) { panner.positionx.setvalueattime(xpos, audioctx.
currenttime); panner.positiony.setvalueattime(ypos, audioctx.
currenttime); panner.positionz.setvalueattime(zpos, audioctx.
currenttime); } else { panner.setposition(xpos,ypos,zpos); } pannerdata.innerhtml = 'panner data: x ' + xpos + ' y ' + ypos + ' z ' + zpos; } note: in terms of working out what position values to apply to the listener and panner, to make the sound appropriate to what the visuals are doing on scr...
AudioParam.setValueAtTime() - Web APIs
the setvalueattime() method of the audioparam interface schedules an instant change to the audioparam value at a precise time, as measured against audiocontext.
currenttime.
...when the buttons are pressed, the currgain variable is incremented/decremented by 0.25, then the setvalueattime() method is used to set the gain value equal to currgain, one second from now (audioctx.
currenttime + 1.) // create audio context var audiocontext = window.audiocontext || window.webkitaudiocontext; var audioctx = new audiocontext(); // set basic variables for example var myaudio = document.queryselector('audio'); var pre = document.queryselector('pre'); var myscript = document.queryselector('script'); pre.innerhtml = myscript.innerhtml; var targetattimeplus = document.queryselector('.s...
...de = audioctx.creategain(); gainnode.gain.value = 0.5; var currgain = gainnode.gain.value; // connect the audiobuffersourcenode to the gainnode // and the gainnode to the destination source.connect(gainnode); gainnode.connect(audioctx.destination); // set buttons to do something onclick targetattimeplus.onclick = function() { currgain += 0.25; gainnode.gain.setvalueattime(currgain, audioctx.
currenttime + 1); } targetattimeminus.onclick = function() { currgain -= 0.25; gainnode.gain.setvalueattime(currgain, audioctx.
currenttime + 1); } specifications specification status comment web audio apithe definition of 'setvalueattime' in that specification.
AudioScheduledSourceNode.start() - Web APIs
this value is specified in the same time coordinate system as the audiocontext is using for its
currenttime attribute.
...the times are calculated by adding the desired number of seconds to the context's
current time stamp returned by audiocontext.
currenttime.
... context = new audiocontext(); osc = context.createoscillator(); osc.connect(context.destination); /* schedule the start and stop times for the oscillator */ osc.start(context.
currenttime + 2); osc.stop(context.
currenttime + 3); specifications specification status comment web audio apithe definition of 'start()' in that specification.
AudioScheduledSourceNode.stop() - Web APIs
this value is specified in the same time coordinate system as the audiocontext is using for its
currenttime attribute.
...the stop time is determined by taking the audio context's
current time from audiocontext.
currenttime and adding 1 second.
...*/ osc.start(); osc.stop(context.
currenttime + 1); specifications specification status comment web audio apithe definition of 'stop()' in that specification.
AudioWorkletProcessor.process - Web APIs
important:
currently, audio data blocks are always 128 frames long—that is, they contain 128 32-bit floating-point samples for each of the inputs' channels.
... if the automation rate of the parameter is "a-rate", the array will contain 128 values — one for each frame in the
current audio block.
... if there's no automation happening during the time represented by the
current block, the array may contain a single value that is constant for the entire block, instead of 128 identical values.
BaseAudioContext.createPanner() - Web APIs
indow.webkitaudiocontext; var audioctx = new audiocontext(); var panner = audioctx.createpanner(); panner.panningmodel = 'hrtf'; panner.distancemodel = 'inverse'; panner.refdistance = 1; panner.maxdistance = 10000; panner.rollofffactor = 1; panner.coneinnerangle = 360; panner.coneouterangle = 0; panner.coneoutergain = 0; if(panner.orientationx) { panner.orientationx.setvalueattime(1, audioctx.
currenttime); panner.orientationy.setvalueattime(0, audioctx.
currenttime); panner.orientationz.setvalueattime(0, audioctx.
currenttime); } else { panner.setorientation(1,0,0); } var listener = audioctx.listener; if(listener.forwardx) { listener.forwardx.setvalueattime(0, audioctx.
currenttime); listener.forwardy.setvalueattime(0, audioctx.
currenttime); listener.forwardz.setvalueattime(-1, aud...
...ioctx.
currenttime); listener.upx.setvalueattime(0, audioctx.
currenttime); listener.upy.setvalueattime(1, audioctx.
currenttime); listener.upz.setvalueattime(0, audioctx.
currenttime); } else { listener.setorientation(0,0,-1,0,1,0); } var source; var play = document.queryselector('.play'); var stop = document.queryselector('.stop'); var boombox = document.queryselector('.boom-box'); var listenerdata = document.queryselector('.listener-data'); var pannerdata = document.queryselector('.panner-data'); leftbound = (-xpos) + 50; rightbound = xpos - 50; xiterator = width/150; // listener will always be in the same place for this demo if(listener.positionx) { listener.positionx.setvalueattime(xpos, audioctx.
currenttime); listener.positiony.setvalueattime(ypos, audioctx.
currenttime); l...
...istener.positionz.setvalueattime(300, audioctx.
currenttime); } else { listener.setposition(xpos,ypos,300); } listenerdata.innerhtml = 'listener data: x ' + xpos + ' y ' + ypos + ' z ' + 300; // panner will move as the boombox graphic moves around on the screen function positionpanner() { if(panner.positionx) { panner.positionx.setvalueattime(xpos, audioctx.
currenttime); panner.positiony.setvalueattime(ypos, audioctx.
currenttime); panner.positionz.setvalueattime(zpos, audioctx.
currenttime); } else { panner.setposition(xpos,ypos,zpos); } pannerdata.innerhtml = 'panner data: x ' + xpos + ' y ' + ypos + ' z ' + zpos; } note: in terms of working out what position values to apply to the listener and panner, to make the sound appropriate to what the visuals are doing on scr...
CanvasRenderingContext2D.drawWindow() - Web APIs
would draw the contents of the
current window, in the rectangle (0,0,100,200) in pixels relative to the top-left of the viewport, on a white background, into the canvas.
...it will be scaled, rotated and so on according to the
current transformation.
... specifications not part of any
current specification or draft.
CanvasRenderingContext2D.fillRect() - Web APIs
the canvasrenderingcontext2d.fillrect() method of the canvas 2d api draws a rectangle that is filled according to the
current fillstyle.
... this method draws directly to the canvas without modifying the
current path, so any subsequent fill() or stroke() calls will have no effect on it.
...the fill style is determined by the
current fillstyle attribute.
CanvasRenderingContext2D.lineTo() - Web APIs
the canvasrenderingcontext2d method lineto(), part of the canvas 2d api, adds a straight line to the
current sub-path by connecting the sub-path's last point to the specified (x, y) coordinates.
... like other methods that modify the
current path, this method does not directly render anything.
... const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); ctx.beginpath(); // start a new path ctx.moveto(30, 50); // move the pen to (30, 50) ctx.lineto(150, 100); // draw a line to (150, 100) ctx.stroke(); // render the path result drawing connected lines each call of lineto() (and similar methods) automatically adds to the
current sub-path, which means that all the lines will all be stroked or filled together.
CanvasRenderingContext2D.translate() - Web APIs
the canvasrenderingcontext2d.translate() method of the canvas 2d api adds a translation transformation to the
current matrix.
... syntax void ctx.translate(x, y); the translate() method adds a translation transformation to the
current matrix by moving the canvas and its origin x units horizontally and y units vertically on the grid.
... const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); // moved square ctx.translate(110, 30); ctx.fillstyle = 'red'; ctx.fillrect(0, 0, 80, 80); // reset
current transformation matrix to the identity matrix ctx.settransform(1, 0, 0, 1, 0, 0); // unmoved square ctx.fillstyle = 'gray'; ctx.fillrect(0, 0, 80, 80); result the moved square is red, and the unmoved square is gray.
Hit regions and accessibility - Web APIs
the api has the following three methods (which are still experimental in
current web browsers; check the browser compatibility tables).
... canvasrenderingcontext2d.drawfocusifneeded() if a given element is focused, this method draws a focus ring around the
current path.
... canvasrenderingcontext2d.scrollpathintoview() scrolls the
current path or a given path into the view.
ContentIndex - Web APIs
contentindex.delete unregisters an item from the
currently indexed content.
...synchronous function to add indexed content async function registercontent(data) { const registration = await navigator.serviceworker.ready; // feature detect content index if (!registration.index) { return; } // register content try { await registration.index.add(data); } catch (e) { console.log('failed to register content: ', e.message); } } retrieving items within the
current index the below example shows an asynchronous function that retrieves items within the content index and iterates over each entry, building a list for the interface.
... registration = await navigator.serviceworker.ready; // get our index entries const entries = await registration.index.getall(); // create a containing element const readinglistelem = document.createelement('div'); // test for entries if (!array.length) { // if there are no entries, display a message const message = document.createelement('p'); message.innertext = 'you
currently have no articles saved for offline reading.' readinglistelem.append(message); } else { // if entries are present, display in a list of links to the content const listelem = document.createelement('ul'); for (const entry of entries) { const listitem = document.createelement('li'); const anchorelem = document.createelement('a'); anchorelem.innertext = entr...
Content Index API - Web APIs
the content index api is an extension to service workers, which allows developers to add urls and metadata of already cached pages, under the scope of the
current service worker.
...synchronous function to add indexed content async function registercontent(data) { const registration = await navigator.serviceworker.ready; // feature detect content index if (!registration.index) { return; } // register content try { await registration.index.add(data); } catch (e) { console.log('failed to register content: ', e.message); } } retrieving items within the
current index the below example shows an asynchronous function that retrieves items within the content index and iterates over each entry, building a list for the interface.
... registration = await navigator.serviceworker.ready; // get our index entries const entries = await registration.index.getall(); // create a containing element const readinglistelem = document.createelement('div'); // test for entries if (!array.length) { // if there are no entries, display a message const message = document.createelement('p'); message.innertext = 'you
currently have no articles saved for offline reading.' readinglistelem.append(message); } else { // if entries are present, display in a list of links to the content const listelem = document.createelement('ul'); for (const entry of entries) { const listitem = document.createelement('li'); const anchorelem = document.createelement('a'); anchorelem.innertext = entr...
EXT_disjoint_timer_query.getQueryEXT() - Web APIs
must be ext.
current_query_ext or ext.query_counter_bits_ext.
... return value depends on pname: if pname is ext.
current_query_ext: a webglquery object, which is the
currently active query for the given target.
... examples var ext = gl.getextension('ext_disjoint_timer_query'); var startquery = ext.createqueryext(); ext.querycounterext(startquery, ext.timestamp_ext); var
currentquery = ext.getqueryext(ext.timestamp_ext, ext.
current_query_ext); specifications specification status comment ext_disjoint_timer_querythe definition of 'ext_disjoint_timer_query' in that specification.
EXT_disjoint_timer_query - Web APIs
ext.
current_query_ext a webglquery object, which is the
currently active query for the given target.
... ext.timestamp_ext the
current time.
... ext.querycounterext() records the
current time into the corresponding query object.
Element.msZoomTo() - Web APIs
if no value is specified, defaults to the
current centerpoint of visible content, horizontally.
...if no value is specified, defaults to the
current centerpoint of visible content, vertically.
...if no value is specified, defaults to the
current zoom level (no additional zoom occurs).this argument is ignored if the element is not zoomable.
Comparison of Event Targets - Web APIs
there are five targets to consider: property defined in purpose event.target dom event interface the dom element on the lefthand side of the call that triggered this event, eg: element.dispatchevent(event) event.
currenttarget dom event interface the eventtarget whose eventlisteners are
currently being processed.
... .standard { background-color: #99ff99; } .non-standard { background-color: #902d37; } </style> </head> <body> <table> <thead> <tr> <td class="standard">original target dispatching the event <small>event.target</small></td> <td class="standard">target who's event listener is being processed <small>event.
currenttarget</small></td> <td class="standard">identify other element (if any) involved in the event <small>event.relatedtarget</small></td> <td class="non-standard">if there was a retargetting of the event for some reason <small> event.explicitoriginaltarget</small> contains the target before retargetting (never contains anonymous targets)</td> <td class="non-standar...
...d">if there was a retargetting of the event for some reason <small> event.originaltarget</small> contains the target before retargetting (may contain anonymous targets)</td> </tr> </thead> <tr> <td id="target"></td> <td id="
currenttarget"></td> <td id="relatedtarget"></td> <td id="explicitoriginaltarget"></td> <td id="originaltarget"></td> </tr> </table> <p>clicking on the text will show the difference between explicitoriginaltarget, originaltarget, and target</p> <script> function handleclicks(e) { document.getelementbyid('target').innerhtml = e.target; document.getelementbyid('
currenttarget').innerhtml = e.
currenttarget; document.getelementbyid('relatedtarget').innerhtml = e.relatedtarget; document.g...
File.lastModified - Web APIs
files without a known last modified date return the
current date.
...if it is missing, lastmodified inherits the
current time from date.now() at the moment the file object gets created.
... const filewithdate = new file([], 'file.bin', { lastmodified: new date(2017, 1, 1), }); console.log(filewithdate.lastmodified); //returns 1485903600000 const filewithoutdate = new file([], 'file.bin'); console.log(filewithoutdate.lastmodified); //returns
current time reduced time precision to offer protection against timing attacks and fingerprinting, the precision of somefile.lastmodified might get rounded depending on browser settings.
FileSystemEntrySync - Web APIs
you cannot do the following: move a directory inside itself or to any child at any depth move an entry into its parent if a name different from its
current one isn't provided move a file to a path occupied by a directory or move a directory to a path occupied by a file move any element to a path occupied by a directory that is not empty.
...if you do not specify a name, the browser preserves the entry's
current name.
...if you do not specify a name, the browser preserves the filesystementrysync's
current name.
FileHandle API - Web APIs
it's possible to get a file object representing the
current state of the file handled by the filehandle object by using the getfile method.
...discussions on public-webapps led to the conclusion that the api would behave poorly in the case of different entities writing con
currently to the same file.
...as it does not fully match the
current implementation, be warned that the implementation and/or the specification will be subject to changes.
File and Directory Entries API - Web APIs
because this is a non-standard api, whose specification is not
currently on a standards track, it's important to keep in mind that not all browsers implement it, and those that do may implement only small portions of it.
... getting access to a file system there are two ways to get access to file systems defined in the
current specification draft: when handling a drop event for drag and drop, you can call datatransferitem.webkitgetasentry() to get the filesystementry for a dropped item.
... the htmlinputelement.webkitentries property lets you access the filesystemfileentry objects for the
currently selected files, but only if they are dragged-and-dropped onto the file chooser (bug 1326031).
FontFace - Web APIs
it allows control of the source of the font face, being a url to an external resource, or a buffer; it also allows control of when the font face is loaded and its
current status.
... fontface.loaded read only returns a promise that resolves with the
current fontface object when the font specified in the object's constructor is done loading or rejects with a syntaxerror.
... fontface.load() loads a font based on
current object's constructor-passed requirements, including a location or source buffer, and returns a promise that resolves with the
current fontface object.
GamepadButton - Web APIs
the gamepadbutton interface defines an individual button of a gamepad or other controller, allowing access to the
current state of different types of buttons available on the control device.
... properties gamepadbutton.value read only a double value used to represent the
current state of analog buttons, such as the triggers on many modern gamepads.
... gamepadbutton.pressed read only a boolean value indicating whether the button is
currently pressed (true) or unpressed (false).
GlobalEventHandlers.ondragend - Web APIs
rop global event attribute</title> <meta content="width=device-width"> <style> div { margin: 0em; padding: 2em; } #source { color: blue; border: 1px solid black; } #target { border: 1px solid black; } </style> </head> <script> function dragstart_handler(ev) { console.log("dragstart"); // change the source element's background color to signify drag has started ev.
currenttarget.style.border = "dashed"; ev.datatransfer.setdata("text", ev.target.id); } function dragover_handler(ev) { console.log("dragover"); // change the target element's border to signify a drag over event // has occurred ev.
currenttarget.style.background = "lightblue"; ev.preventdefault(); } function drop_handler(ev) { console.log("drop"); ev.preventdefault(); var data = ev.datatransfer...
....getdata("text"); ev.target.appendchild(document.getelementbyid(data)); } function dragenter_handler(ev) { console.log("dragenter"); // change the source element's background color for enter events ev.
currenttarget.style.background = "yellow"; } function dragleave_handler(ev) { console.log("dragleave"); // change the source element's border back to white ev.
currenttarget.style.background = "white"; } function dragend_handler(ev) { console.log("dragend"); // change the target element's background color to visually indicate // the drag ended.
... var el=document.getelementbyid("target"); el.style.background = "pink"; } function dragexit_handler(ev) { console.log("dragexit"); // change the source element's border back to green to signify a dragexit event ev.
currenttarget.style.background = "green"; } function init() { // set handlers for the source's enter/leave/end/exit events var el=document.getelementbyid("source"); el.ondragenter = dragenter_handler; el.ondragleave = dragleave_handler; el.ondragend = dragend_handler; el.ondragexit = dragexit_handler; } </script> <body onload="init();"> <h1>examples of <code>ondragenter</code>, <code>ondragleave</code>, <code>ondragend</code>, <code>ondragexit</code></h1> <div> <p id="source" ondragstart="dragstart_handler(event);" draggable="true"> select this element, drag it to...
GlobalEventHandlers.ondragenter - Web APIs
rop global event attribute</title> <meta content="width=device-width"> <style> div { margin: 0em; padding: 2em; } #source { color: blue; border: 1px solid black; } #target { border: 1px solid black; } </style> </head> <script> function dragstart_handler(ev) { console.log("dragstart"); // change the source element's background color to signify drag has started ev.
currenttarget.style.border = "dashed"; ev.datatransfer.setdata("text", ev.target.id); } function dragover_handler(ev) { console.log("dragover"); // change the target element's border to signify a drag over event // has occurred ev.
currenttarget.style.background = "lightblue"; ev.preventdefault(); } function drop_handler(ev) { console.log("drop"); ev.preventdefault(); var data = ev.datatransfer...
....getdata("text"); ev.target.appendchild(document.getelementbyid(data)); } function dragenter_handler(ev) { console.log("dragenter"); // change the source element's background color for enter events ev.
currenttarget.style.background = "yellow"; } function dragleave_handler(ev) { console.log("dragleave"); // change the source element's border back to white ev.
currenttarget.style.background = "white"; } function dragend_handler(ev) { console.log("dragend"); // change the target element's background color to visually indicate // the drag ended.
... var el=document.getelementbyid("target"); el.style.background = "pink"; } function dragexit_handler(ev) { console.log("dragexit"); // change the source element's border back to green to signify a dragexit event ev.
currenttarget.style.background = "green"; } function init() { // set handlers for the source's enter/leave/end/exit events var el=document.getelementbyid("source"); el.ondragenter = dragenter_handler; el.ondragleave = dragleave_handler; el.ondragend = dragend_handler; el.ondragexit = dragexit_handler; } </script> <body onload="init();"> <h1>examples of <code>ondragenter</code>, <code>ondragleave</code>, <code>ondragend</code>, <code>ondragexit</code></h1> <div> <p id="source" ondragstart="dragstart_handler(event);" draggable="true"> select this element, drag it to...
GlobalEventHandlers.ondragexit - Web APIs
rop global event attribute</title> <meta content="width=device-width"> <style> div { margin: 0em; padding: 2em; } #source { color: blue; border: 1px solid black; } #target { border: 1px solid black; } </style> </head> <script> function dragstart_handler(ev) { console.log("dragstart"); // change the source element's background color to signify drag has started ev.
currenttarget.style.border = "dashed"; ev.datatransfer.setdata("text", ev.target.id); } function dragover_handler(ev) { console.log("dragover"); // change the target element's border to signify a drag over event // has occurred ev.
currenttarget.style.background = "lightblue"; ev.preventdefault(); } function drop_handler(ev) { console.log("drop"); ev.preventdefault(); var data = ev.datatransfer...
....getdata("text"); ev.target.appendchild(document.getelementbyid(data)); } function dragenter_handler(ev) { console.log("dragenter"); // change the source element's background color for enter events ev.
currenttarget.style.background = "yellow"; } function dragleave_handler(ev) { console.log("dragleave"); // change the source element's border back to white ev.
currenttarget.style.background = "white"; } function dragend_handler(ev) { console.log("dragend"); // change the target element's background color to visually indicate // the drag ended.
... var el=document.getelementbyid("target"); el.style.background = "pink"; } function dragexit_handler(ev) { console.log("dragexit"); // change the source element's border back to green to signify a dragexit event ev.
currenttarget.style.background = "green"; } function init() { // set handlers for the source's enter/leave/end/exit events var el=document.getelementbyid("source"); el.ondragenter = dragenter_handler; el.ondragleave = dragleave_handler; el.ondragend = dragend_handler; el.ondragexit = dragexit_handler; } </script> <body onload="init();"> <h1>examples of <code>ondragenter</code>, <code>ondragleave</code>, <code>ondragend</code>, <code>ondragexit</code></h1> <div> <p id="source" ondragstart="dragstart_handler(event);" draggable="true"> select this element, drag it to...
GlobalEventHandlers.ondragleave - Web APIs
drag and drop global event attribute</title> <meta content="width=device-width"> <style> div { margin: 0em; padding: 2em; } #source { color: blue; border: 1px solid black; } #target { border: 1px solid black; } </style> </head> <script> function dragstart_handler(ev) { console.log("dragstart"); // change the source element's border to signify drag has started ev.
currenttarget.style.border = "dashed"; ev.datatransfer.setdata("text", ev.target.id); } function dragover_handler(ev) { console.log("dragover"); // change the target element's background color to signify a drag over event // has occurred ev.
currenttarget.style.background = "lightblue"; ev.preventdefault(); } function drop_handler(ev) { console.log("drop"); ev.preventdefault(); var data = ev.da...
...tatransfer.getdata("text"); ev.target.appendchild(document.getelementbyid(data)); } function dragenter_handler(ev) { console.log("dragenter"); // change the source element's background color for enter events ev.
currenttarget.style.background = "yellow"; } function dragleave_handler(ev) { console.log("dragleave"); // change the source element's background color back to white ev.
currenttarget.style.background = "white"; } function dragend_handler(ev) { console.log("dragend"); // change the target element's background color to visually indicate // the drag ended.
... var el=document.getelementbyid("target"); el.style.background = "pink"; } function dragexit_handler(ev) { console.log("dragexit"); // change the source element's background color back to green to signify a dragexit event ev.
currenttarget.style.background = "green"; } function init() { // set handlers for the source's enter/leave/end/exit events var el=document.getelementbyid("source"); el.ondragenter = dragenter_handler; el.ondragleave = dragleave_handler; el.ondragend = dragend_handler; el.ondragexit = dragexit_handler; } </script> <body onload="init();"> <h1>examples of <code>ondragenter</code>, <code>ondragleave</code>, <code>ondragend</code>, <code>ondragexit</code></h1> <div> <p id="source" ondragstart="dragstart_handler(event);" draggable="true"> select this element, ...
HTMLAudioElement - Web APIs
moz
currentsampleoffset() returns the number of samples form the beginning of the stream that have been written so far into the audio stream created by calling mozwriteaudio().
... mozwriteaudio() writes a batch of audio frames to the stream at the
current offset, returning the number of bytes actually written to the stream.
... some of the more commonly used properties of the audio element include src,
currenttime, duration, paused, muted, and volume.
HTMLElement - Web APIs
htmlelement.offsetparent read only returns a element that is the element from which all offset calculations are
currently computed.
... htmlorforeignelement.blur() removes keyboard focus from the
currently focused element.
... htmlorforeignelement.focus() makes the element the
current keyboard focus.
HTMLImageElement.align - Web APIs
bottom the bottom edge of the image is to be aligned vertically with the
current text baseline.
... middle the center of the object should be aligned vertically with the
current baseline.
... top the top edge of the object should be aligned vertically with the
current baseline.
HTMLImageElement - Web APIs
htmlimageelement.
currentsrc read only returns a usvstring representing the url from which the
currently displayed image was loaded.
... the specified src url is the same as the url of the page the user is
currently on.
... living standard the following properties have been added: srcset,
currentsrc and sizes.
HTMLLinkElement - Web APIs
htmllinkelement.disabled is a boolean which represents whether the link is disabled;
currently only used with style sheet links.
... note:
currently the w3c html 5.2 spec states that rev is no longer obsolete, whereas the whatwg living standard still has it labeled obsolete.
...note that
currently firefox only supports preloading of cacheable resources.
HTMLMediaElement: loadeddata event - Web APIs
the loadeddata event is fired when the frame at the
current playback position of the media has finished loading; often the first frame.
...the readystate just increased to ' + 'have_
current_data or greater for the first time.'); }); using the onloadeddata event handler property: const video = document.queryselector('video'); video.onloadeddata = (event) => { console.log('yay!
... the readystate just increased to ' + 'have_
current_data or greater for the first time.'); }; specifications specification status html living standardthe definition of 'loadeddata media event' in that specification.
HTMLMediaElement.readyState - Web APIs
have_
current_data 2 data is available for the
current playback position, but not enough to actually play more than one frame.
... have_future_data 3 data for the
current playback position as well as for at least a little bit of time into the future is available (in other words, at least two frames of video, for example).
...it will then check if at least the
current playback position has been loaded.
HTMLMediaElement: timeupdate event - Web APIs
the timeupdate event is fired when the time indicated by the
currenttime attribute has been updated.
... using addeventlistener(): const video = document.queryselector('video'); video.addeventlistener('timeupdate', (event) => { console.log('the
currenttime attribute has been updated.
... again.'); }); using the ontimeupdate event handler property: const video = document.queryselector('video'); video.ontimeupdate = (event) => { console.log('the
currenttime attribute has been updated.
HTMLTableCellElement - Web APIs
header cells can be configured, using the scope property, the apply to a specified row or column, or to the not-yet-scoped cells within the
current row group (that is, the same ancestor <thead>, <tbody>, or <tfoot> element).
... colgroup the header cell applies to all cells in the
current column group that do not already have a scope applied to them.
... rowgroup the header cell applies to all cells in the
current row group that do not already have a scope applied to them.
Using microtasks in JavaScript with queueMicrotask() - Web APIs
javascript promises and the mutation observer api both use the microtask queue to run their callbacks, but there are other times when the ability to defer work until the
current event loop pass is wrapping up.
...only tasks which were already in the task queue when the event loop pass began will be executed during the
current iteration.
... simply pass the javascript function to call while the context is handling microtasks into the queuemicrotask() method, which is exposed on the global context as defined by either the window or worker interface, depending on the
current execution context.
The HTML DOM API - Web APIs
datatransfer datatransferitem datatransferitemlist dragevent page history interfaces the history api interfaces let you access information about the browser's history, as well as to shift the browser's
current tab forward and backward through that history.
... eventsource examples in this example, an <input> element's input event is monitored in order to update the state of a form's "submit" button based on whether or not a given field
currently has a value.
...this code looks at the length of the
current value of the input; if it's zero, then the "send" button is disabled if it's not already disabled.
IDBCursor.delete() - Web APIs
invalidstateerror the cursor was created using idbindex.openkeycursor, is
currently being iterated, or has iterated past its end.
...if the albumtitle of the
current cursor is "grace under pressure", we delete that entire record using var request = cursor.delete();.
...also note that in each iteration of the loop, you can grab data from the
current record under the cursor object using cursor.value.foo.
IDBCursor.primaryKey - Web APIs
the primarykey read-only property of the idbcursor interface returns the cursor's
current effective key.
... if the cursor is
currently being iterated or has iterated outside its range, this is set to undefined.
...also note that in each iteration of the loop, you can grab data from the
current record under the cursor object using cursor.value.foo.
IDBCursorWithValue.value - Web APIs
the value read-only property of the idbcursorwithvalue interface returns the value of the
current cursor, whatever that is.
... syntax var value = myidbcursorwithvalue.value; value the value of the
current cursor.
...also note that in each iteration of the loop, you can grab data from the
current record under the cursor object using cursor.value.foo.
InstallEvent - Web APIs
installevent.activeworker read only returns the serviceworker that is
currently controlling the page.
... var cache_version = 1; var
current_caches = { prefetch: 'prefetch-cache-v' + cache_version }; self.addeventlistener('install', function(event) { var urlstoprefetch = [ './static/pre_fetched.txt', './static/pre_fetched.html', 'https://www.chromium.org/_/rsrc/1302286216006/config/customlogo.gif' ]; console.log('handling install event.
... resources to pre-fetch:', urlstoprefetch); event.waituntil( caches.open(
current_caches['prefetch']).then(function(cache) { return cache.addall(urlstoprefetch.map(function(urltoprefetch) { return new request(urltoprefetch, {mode: 'no-cors'}); })).then(function() { console.log('all resources have been fetched and cached.'); }); }).catch(function(error) { console.error('pre-fetching failed:', error); }) ); }); specifications specification status comment service workers working draft as of may 2015, the install event is an instance of extendableevent rather than a child of it.
Location - Web APIs
location.reload() reloads the
current url, like the refresh button.
... location.replace() replaces the
current resource with the one at the provided url (redirects to the provided url).
... the difference from the assign() method and setting the href property is that after using replace() the
current page will not be saved in session history, meaning the user won't be able to use the back button to navigate to it.
MSGestureEvent - Web APIs
msgestureevent.rotation read only amount of rotation (in radians) since the previous msgestureevent of the
current gesture.
... msgestureevent.scale read only the difference in scale (for zoom gestures) from the previous msgestureevent of the
current gesture.
... msgestureevent.translationx read only distance traversed along the x-axis since the previous msgestureevent of the
current gesture msgestureevent.translationy read only distance traversed along the y-axis since the previous msgestureevent of the
current gesture msgestureevent.velocityangular read only angular velocity.
MSManipulationEvent.initMSManipulationEvent() - Web APIs
syntax msmanipulationevent.initmsmanipulationevent(typearg, canbubblearg, cancelablearg, viewarg, detailarg, laststate,
currentstate); parameters typearg [in] type: domstring the type of the event being created.
...
currentstate [in] type: integer indicates the
current state of the manipulation event.
... example interface msmanipulationevent extends uievent { readonly
currentstate: number; readonly inertiadestinationx: number; readonly inertiadestinationy: number; readonly laststate: number; initmsmanipulationevent(typearg: string, canbubblearg: boolean, cancelablearg: boolean, viewarg: window, detailarg: number, laststate: number,
currentstate: number): void; readonly ms_manipulation_state_active: number; readonly ms_manipulation_state_cancelled: number; readonly ms_manipulation_state_committed: number; readonly ms_manipulation_state_dragging: number; readonly ms_manipulation_state_inertia: number; readonly ms_manipulation_state_preselect: number; readonly ms_manipulation_state_selecting: numbe...
MSSiteModeEvent - Web APIs
stoppropagation prevents propagation of an event beyond the
current target.
... cancelbubble gets or sets a value that indicates whether an event should be stopped from propagating up from the
current target.
...
currenttarget gets the event target that is
currently being processed.
MediaPositionState.playbackRate - Web APIs
the mediapositionstate dictionary's playbackrate property is used when calling the mediasession method setpositionstate() to tell the user agent the rate at which media is
currently being played.
... for example, a browser might use this information along with the position property and the navigator.mediasession.playbackstate, as well as the session's metadata to provide an integrated common user interface showing the
currently playing media as well as standard pause, play, forward, reverse, and other controls.
... syntax let positionstate = { playbackrate: rate }; let playbackrate = positionstate.playbackrate; value a floating-point value specifying a multiplier corresponding to the
current relative rate at which the media being performed is playing.
MediaPositionState.position - Web APIs
the mediapositionstate dictionary's position property is used when calling the mediasession method setpositionstate() to provide the user agent with the
current playback position, in seconds, of the
currently-playing media.
... for example, a browser might use this information along with the position property and the navigator.mediasession.playbackstate, as well as the session's metadata to provide an integrated common user interface showing the
currently playing media as well as standard pause, play, forward, reverse, and other controls.
... syntax let positionstate = { position: timeinseconds }; let duration = positionstate.duration; value a floating-point value indicating the
current playback position within the media
currently being performed, in seconds.
MediaPositionState - Web APIs
the media session api's mediapositionstate dictionary is used to represent the
current playback position of a media session.
... its contents can be used by the user agent to provide a user interface displaying information about the playback position and duration of the media
currently being performed.
... properties duration a floating-point value giving the total duration of the
current media in seconds.
MediaSessionActionDetails.action - Web APIs
seekbackward seeks backward through the media from the
current position.
... seekforward seeks forward from the
current position through the media.
... skipad skips past the
currently playing advertisement or commercial.
active - Web APIs
the active read-only property of the mediastream interface returns a boolean value which is true if the stream is
currently active; otherwise, it returns false.
... syntax var isactive = mediastream.active; value a boolean value which is true if the stream is
currently active; otherwise, the value is false.
...when that stream becomes available (that is, when the returned promise is fulfilled, a button on the page is updated based on whether or not the stream is
currently active.
MediaStreamTrack.getSettings() - Web APIs
the getsettings() method of the mediastreamtrack interface returns a mediatracksettings object containing the
current values of each of the constrainable properties for the
current mediastreamtrack.
... syntax const settings = track.getsettings() returns a mediatracksettings object describing the
current configuration of the track's constrainable properties.
... note: the returned object identifies the
current values of every constrainable property, including those which are platform defaults rather than having been expressly set by the site's code.
MediaStreamTrack.muted - Web APIs
the muted read-only property of the mediastreamtrack interface returns a boolean value indicating whether or not the track is
currently unable to provide media output.
... syntax const mutedflag = track.muted value a boolean which is true if the track is
currently muted, or false if the track is
currently unmuted.
... example this example counts the number of tracks in an array of mediastreamtrack objects which are
currently muted.
NodeList.prototype.forEach() - Web APIs
it accepts 3 parameters:
currentvalue the
current element being processed in somenodelist.
...
currentindex optional the index of the
currentvalue being processed in somenodelist.
... example let node = document.createelement("div"); let kid1 = document.createelement("p"); let kid2 = document.createtextnode("hey"); let kid3 = document.createelement("span"); node.appendchild(kid1); node.appendchild(kid2); node.appendchild(kid3); let list = node.childnodes; list.foreach( function(
currentvalue,
currentindex, listobj) { console.log(
currentvalue + ', ' +
currentindex + ', ' + this); }, 'mythisarg' ); the above code results in the following: [object htmlparagraphelement], 0, mythisarg [object text], 1, mythisarg [object htmlspanelement], 2, mythisarg polyfill this polyfill adds compatibility to all browsers supporting es5: if (window.nodelist && !nodelist.prototype.forea...
OfflineAudioContext.startRendering() - Web APIs
the startrendering() method of the offlineaudiocontext interface starts rendering the audio graph, taking into account the
current connections and the
current scheduled changes.
... browsers
currently support two versions of the startrendering() method — an older event-based version and a newer promise-based version.
... the former will eventually be removed, but
currently both mechanisms are provided for legacy reasons.
OscillatorNode.start() - Web APIs
syntax oscillator.start(when); // start playing oscillator at the point in time specified by when parameters when optional an optional double representing the time (in seconds) when the oscillator should start, in the same coordinate system as audiocontext's
currenttime attribute.
... if a value is not included or is less than
currenttime, the oscillator starts playing immediately.
... // create web audio api context var audioctx = new (window.audiocontext || window.webkitaudiocontext)(); // create oscillator node var oscillator = audioctx.createoscillator(); oscillator.type = 'square'; oscillator.frequency.setvalueattime(3000, audioctx.
currenttime); // value in hertz oscillator.start(); specifications specification status comment web audio apithe definition of 'start' in that specification.
PannerNode.distanceModel - Web APIs
indow.webkitaudiocontext; var audioctx = new audiocontext(); var panner = audioctx.createpanner(); panner.panningmodel = 'hrtf'; panner.distancemodel = 'inverse'; panner.refdistance = 1; panner.maxdistance = 10000; panner.rollofffactor = 1; panner.coneinnerangle = 360; panner.coneouterangle = 0; panner.coneoutergain = 0; if(panner.orientationx) { panner.orientationx.setvalueattime(1, audioctx.
currenttime); panner.orientationy.setvalueattime(0, audioctx.
currenttime); panner.orientationz.setvalueattime(0, audioctx.
currenttime); } else { panner.setorientation(1,0,0); } var listener = audioctx.listener; if(listener.forwardx) { listener.forwardx.setvalueattime(0, audioctx.
currenttime); listener.forwardy.setvalueattime(0, audioctx.
currenttime); listener.forwardz.setvalueattime(-1, aud...
...ioctx.
currenttime); listener.upx.setvalueattime(0, audioctx.
currenttime); listener.upy.setvalueattime(1, audioctx.
currenttime); listener.upz.setvalueattime(0, audioctx.
currenttime); } else { listener.setorientation(0,0,-1,0,1,0); } var source; var play = document.queryselector('.play'); var stop = document.queryselector('.stop'); var boombox = document.queryselector('.boom-box'); var listenerdata = document.queryselector('.listener-data'); var pannerdata = document.queryselector('.panner-data'); leftbound = (-xpos) + 50; rightbound = xpos - 50; xiterator = width/150; // listener will always be in the same place for this demo if(listener.positionx) { listener.positionx.setvalueattime(xpos, audioctx.
currenttime); listener.positiony.setvalueattime(ypos, audioctx.
currenttime); l...
...istener.positionz.setvalueattime(300, audioctx.
currenttime); } else { listener.setposition(xpos,ypos,300); } listenerdata.innerhtml = 'listener data: x ' + xpos + ' y ' + ypos + ' z ' + 300; // panner will move as the boombox graphic moves around on the screen function positionpanner() { if(panner.positionx) { panner.positionx.setvalueattime(xpos, audioctx.
currenttime); panner.positiony.setvalueattime(ypos, audioctx.
currenttime); panner.positionz.setvalueattime(zpos, audioctx.
currenttime); } else { panner.setposition(xpos,ypos,zpos); } pannerdata.innerhtml = 'panner data: x ' + xpos + ' y ' + ypos + ' z ' + zpos; } note: in terms of working out what position values to apply to the listener and panner, to make the sound appropriate to what the visuals are doing on scr...
PannerNode.maxDistance - Web APIs
indow.webkitaudiocontext; var audioctx = new audiocontext(); var panner = audioctx.createpanner(); panner.panningmodel = 'hrtf'; panner.distancemodel = 'inverse'; panner.refdistance = 1; panner.maxdistance = 10000; panner.rollofffactor = 1; panner.coneinnerangle = 360; panner.coneouterangle = 0; panner.coneoutergain = 0; if(panner.orientationx) { panner.orientationx.setvalueattime(1, audioctx.
currenttime); panner.orientationy.setvalueattime(0, audioctx.
currenttime); panner.orientationz.setvalueattime(0, audioctx.
currenttime); } else { panner.setorientation(1,0,0); } var listener = audioctx.listener; if(listener.forwardx) { listener.forwardx.setvalueattime(0, audioctx.
currenttime); listener.forwardy.setvalueattime(0, audioctx.
currenttime); listener.forwardz.setvalueattime(-1, aud...
...ioctx.
currenttime); listener.upx.setvalueattime(0, audioctx.
currenttime); listener.upy.setvalueattime(1, audioctx.
currenttime); listener.upz.setvalueattime(0, audioctx.
currenttime); } else { listener.setorientation(0,0,-1,0,1,0); } var source; var play = document.queryselector('.play'); var stop = document.queryselector('.stop'); var boombox = document.queryselector('.boom-box'); var listenerdata = document.queryselector('.listener-data'); var pannerdata = document.queryselector('.panner-data'); leftbound = (-xpos) + 50; rightbound = xpos - 50; xiterator = width/150; // listener will always be in the same place for this demo if(listener.positionx) { listener.positionx.setvalueattime(xpos, audioctx.
currenttime); listener.positiony.setvalueattime(ypos, audioctx.
currenttime); l...
...istener.positionz.setvalueattime(300, audioctx.
currenttime); } else { listener.setposition(xpos,ypos,300); } listenerdata.innerhtml = 'listener data: x ' + xpos + ' y ' + ypos + ' z ' + 300; // panner will move as the boombox graphic moves around on the screen function positionpanner() { if(panner.positionx) { panner.positionx.setvalueattime(xpos, audioctx.
currenttime); panner.positiony.setvalueattime(ypos, audioctx.
currenttime); panner.positionz.setvalueattime(zpos, audioctx.
currenttime); } else { panner.setposition(xpos,ypos,zpos); } pannerdata.innerhtml = 'panner data: x ' + xpos + ' y ' + ypos + ' z ' + zpos; } note: in terms of working out what position values to apply to the listener and panner, to make the sound appropriate to what the visuals are doing on scr...
PannerNode.panningModel - Web APIs
indow.webkitaudiocontext; var audioctx = new audiocontext(); var panner = audioctx.createpanner(); panner.panningmodel = 'hrtf'; panner.distancemodel = 'inverse'; panner.refdistance = 1; panner.maxdistance = 10000; panner.rollofffactor = 1; panner.coneinnerangle = 360; panner.coneouterangle = 0; panner.coneoutergain = 0; if(panner.orientationx) { panner.orientationx.setvalueattime(1, audioctx.
currenttime); panner.orientationy.setvalueattime(0, audioctx.
currenttime); panner.orientationz.setvalueattime(0, audioctx.
currenttime); } else { panner.setorientation(1,0,0); } var listener = audioctx.listener; if(listener.forwardx) { listener.forwardx.setvalueattime(0, audioctx.
currenttime); listener.forwardy.setvalueattime(0, audioctx.
currenttime); listener.forwardz.setvalueattime(-1, aud...
...ioctx.
currenttime); listener.upx.setvalueattime(0, audioctx.
currenttime); listener.upy.setvalueattime(1, audioctx.
currenttime); listener.upz.setvalueattime(0, audioctx.
currenttime); } else { listener.setorientation(0,0,-1,0,1,0); } var source; var play = document.queryselector('.play'); var stop = document.queryselector('.stop'); var boombox = document.queryselector('.boom-box'); var listenerdata = document.queryselector('.listener-data'); var pannerdata = document.queryselector('.panner-data'); leftbound = (-xpos) + 50; rightbound = xpos - 50; xiterator = width/150; // listener will always be in the same place for this demo if(listener.positionx) { listener.positionx.setvalueattime(xpos, audioctx.
currenttime); listener.positiony.setvalueattime(ypos, audioctx.
currenttime); l...
...istener.positionz.setvalueattime(300, audioctx.
currenttime); } else { listener.setposition(xpos,ypos,300); } listenerdata.innerhtml = 'listener data: x ' + xpos + ' y ' + ypos + ' z ' + 300; // panner will move as the boombox graphic moves around on the screen function positionpanner() { if(panner.positionx) { panner.positionx.setvalueattime(xpos, audioctx.
currenttime); panner.positiony.setvalueattime(ypos, audioctx.
currenttime); panner.positionz.setvalueattime(zpos, audioctx.
currenttime); } else { panner.setposition(xpos,ypos,zpos); } pannerdata.innerhtml = 'panner data: x ' + xpos + ' y ' + ypos + ' z ' + zpos; } note: in terms of working out what position values to apply to the listener and panner, to make the sound appropriate to what the visuals are doing on scr...
PannerNode.setOrientation() - Web APIs
indow.webkitaudiocontext; var audioctx = new audiocontext(); var panner = audioctx.createpanner(); panner.panningmodel = 'hrtf'; panner.distancemodel = 'inverse'; panner.refdistance = 1; panner.maxdistance = 10000; panner.rollofffactor = 1; panner.coneinnerangle = 360; panner.coneouterangle = 0; panner.coneoutergain = 0; if(panner.orientationx) { panner.orientationx.setvalueattime(1, audioctx.
currenttime); panner.orientationy.setvalueattime(0, audioctx.
currenttime); panner.orientationz.setvalueattime(0, audioctx.
currenttime); } else { panner.setorientation(1,0,0); } var listener = audioctx.listener; if(listener.forwardx) { listener.forwardx.setvalueattime(0, audioctx.
currenttime); listener.forwardy.setvalueattime(0, audioctx.
currenttime); listener.forwardz.setvalueattime(-1, aud...
...ioctx.
currenttime); listener.upx.setvalueattime(0, audioctx.
currenttime); listener.upy.setvalueattime(1, audioctx.
currenttime); listener.upz.setvalueattime(0, audioctx.
currenttime); } else { listener.setorientation(0,0,-1,0,1,0); } var source; var play = document.queryselector('.play'); var stop = document.queryselector('.stop'); var boombox = document.queryselector('.boom-box'); var listenerdata = document.queryselector('.listener-data'); var pannerdata = document.queryselector('.panner-data'); leftbound = (-xpos) + 50; rightbound = xpos - 50; xiterator = width/150; // listener will always be in the same place for this demo if(listener.positionx) { listener.positionx.setvalueattime(xpos, audioctx.
currenttime); listener.positiony.setvalueattime(ypos, audioctx.
currenttime); l...
...istener.positionz.setvalueattime(300, audioctx.
currenttime); } else { listener.setposition(xpos,ypos,300); } listenerdata.innerhtml = 'listener data: x ' + xpos + ' y ' + ypos + ' z ' + 300; // panner will move as the boombox graphic moves around on the screen function positionpanner() { if(panner.positionx) { panner.positionx.setvalueattime(xpos, audioctx.
currenttime); panner.positiony.setvalueattime(ypos, audioctx.
currenttime); panner.positionz.setvalueattime(zpos, audioctx.
currenttime); } else { panner.setposition(xpos,ypos,zpos); } pannerdata.innerhtml = 'panner data: x ' + xpos + ' y ' + ypos + ' z ' + zpos; } note: in terms of working out what position values to apply to the listener and panner, to make the sound appropriate to what the visuals are doing on scr...
PannerNode.setPosition() - Web APIs
indow.webkitaudiocontext; var audioctx = new audiocontext(); var panner = audioctx.createpanner(); panner.panningmodel = 'hrtf'; panner.distancemodel = 'inverse'; panner.refdistance = 1; panner.maxdistance = 10000; panner.rollofffactor = 1; panner.coneinnerangle = 360; panner.coneouterangle = 0; panner.coneoutergain = 0; if(panner.orientationx) { panner.orientationx.setvalueattime(1, audioctx.
currenttime); panner.orientationy.setvalueattime(0, audioctx.
currenttime); panner.orientationz.setvalueattime(0, audioctx.
currenttime); } else { panner.setorientation(1,0,0); } var listener = audioctx.listener; if(listener.forwardx) { listener.forwardx.setvalueattime(0, audioctx.
currenttime); listener.forwardy.setvalueattime(0, audioctx.
currenttime); listener.forwardz.setvalueattime(-1, aud...
...ioctx.
currenttime); listener.upx.setvalueattime(0, audioctx.
currenttime); listener.upy.setvalueattime(1, audioctx.
currenttime); listener.upz.setvalueattime(0, audioctx.
currenttime); } else { listener.setorientation(0,0,-1,0,1,0); } var source; var play = document.queryselector('.play'); var stop = document.queryselector('.stop'); var boombox = document.queryselector('.boom-box'); var listenerdata = document.queryselector('.listener-data'); var pannerdata = document.queryselector('.panner-data'); leftbound = (-xpos) + 50; rightbound = xpos - 50; xiterator = width/150; // listener will always be in the same place for this demo if(listener.positionx) { listener.positionx.setvalueattime(xpos, audioctx.
currenttime); listener.positiony.setvalueattime(ypos, audioctx.
currenttime); l...
...istener.positionz.setvalueattime(300, audioctx.
currenttime); } else { listener.setposition(xpos,ypos,300); } listenerdata.innerhtml = 'listener data: x ' + xpos + ' y ' + ypos + ' z ' + 300; // panner will move as the boombox graphic moves around on the screen function positionpanner() { if(panner.positionx) { panner.positionx.setvalueattime(xpos, audioctx.
currenttime); panner.positiony.setvalueattime(ypos, audioctx.
currenttime); panner.positionz.setvalueattime(zpos, audioctx.
currenttime); } else { panner.setposition(xpos,ypos,zpos); } pannerdata.innerhtml = 'panner data: x ' + xpos + ' y ' + ypos + ' z ' + zpos; } note: in terms of working out what position values to apply to the listener and panner, to make the sound appropriate to what the visuals are doing on scr...
PannerNode.setVelocity() - Web APIs
indow.webkitaudiocontext; var audioctx = new audiocontext(); var panner = audioctx.createpanner(); panner.panningmodel = 'hrtf'; panner.distancemodel = 'inverse'; panner.refdistance = 1; panner.maxdistance = 10000; panner.rollofffactor = 1; panner.coneinnerangle = 360; panner.coneouterangle = 0; panner.coneoutergain = 0; if(panner.orientationx) { panner.orientationx.setvalueattime(1, audioctx.
currenttime); panner.orientationy.setvalueattime(0, audioctx.
currenttime); panner.orientationz.setvalueattime(0, audioctx.
currenttime); } else { panner.setorientation(1,0,0); } var listener = audioctx.listener; if(listener.forwardx) { listener.forwardx.setvalueattime(0, audioctx.
currenttime); listener.forwardy.setvalueattime(0, audioctx.
currenttime); listener.forwardz.setvalueattime(-1, aud...
...ioctx.
currenttime); listener.upx.setvalueattime(0, audioctx.
currenttime); listener.upy.setvalueattime(1, audioctx.
currenttime); listener.upz.setvalueattime(0, audioctx.
currenttime); } else { listener.setorientation(0,0,-1,0,1,0); } var source; var play = document.queryselector('.play'); var stop = document.queryselector('.stop'); var boombox = document.queryselector('.boom-box'); var listenerdata = document.queryselector('.listener-data'); var pannerdata = document.queryselector('.panner-data'); leftbound = (-xpos) + 50; rightbound = xpos - 50; xiterator = width/150; // listener will always be in the same place for this demo if(listener.positionx) { listener.positionx.setvalueattime(xpos, audioctx.
currenttime); listener.positiony.setvalueattime(ypos, audioctx.
currenttime); l...
...istener.positionz.setvalueattime(300, audioctx.
currenttime); } else { listener.setposition(xpos,ypos,300); } listenerdata.innerhtml = 'listener data: x ' + xpos + ' y ' + ypos + ' z ' + 300; // panner will move as the boombox graphic moves around on the screen function positionpanner() { if(panner.positionx) { panner.positionx.setvalueattime(xpos, audioctx.
currenttime); panner.positiony.setvalueattime(ypos, audioctx.
currenttime); panner.positionz.setvalueattime(zpos, audioctx.
currenttime); } else { panner.setposition(xpos,ypos,zpos); } pannerdata.innerhtml = 'panner data: x ' + xpos + ' y ' + ypos + ' z ' + zpos; } note: in terms of working out what position values to apply to the listener and panner, to make the sound appropriate to what the visuals are doing on scr...
PannerNode - Web APIs
indow.webkitaudiocontext; var audioctx = new audiocontext(); var panner = audioctx.createpanner(); panner.panningmodel = 'hrtf'; panner.distancemodel = 'inverse'; panner.refdistance = 1; panner.maxdistance = 10000; panner.rollofffactor = 1; panner.coneinnerangle = 360; panner.coneouterangle = 0; panner.coneoutergain = 0; if(panner.orientationx) { panner.orientationx.setvalueattime(1, audioctx.
currenttime); panner.orientationy.setvalueattime(0, audioctx.
currenttime); panner.orientationz.setvalueattime(0, audioctx.
currenttime); } else { panner.setorientation(1,0,0); } var listener = audioctx.listener; if(listener.forwardx) { listener.forwardx.setvalueattime(0, audioctx.
currenttime); listener.forwardy.setvalueattime(0, audioctx.
currenttime); listener.forwardz.setvalueattime(-1, aud...
...ioctx.
currenttime); listener.upx.setvalueattime(0, audioctx.
currenttime); listener.upy.setvalueattime(1, audioctx.
currenttime); listener.upz.setvalueattime(0, audioctx.
currenttime); } else { listener.setorientation(0,0,-1,0,1,0); } var source; var play = document.queryselector('.play'); var stop = document.queryselector('.stop'); var boombox = document.queryselector('.boom-box'); var listenerdata = document.queryselector('.listener-data'); var pannerdata = document.queryselector('.panner-data'); leftbound = (-xpos) + 50; rightbound = xpos - 50; xiterator = width/150; // listener will always be in the same place for this demo if(listener.positionx) { listener.positionx.setvalueattime(xpos, audioctx.
currenttime); listener.positiony.setvalueattime(ypos, audioctx.
currenttime); l...
...istener.positionz.setvalueattime(300, audioctx.
currenttime); } else { listener.setposition(xpos,ypos,300); } listenerdata.innerhtml = 'listener data: x ' + xpos + ' y ' + ypos + ' z ' + 300; // panner will move as the boombox graphic moves around on the screen function positionpanner() { if(panner.positionx) { panner.positionx.setvalueattime(xpos, audioctx.
currenttime); panner.positiony.setvalueattime(ypos, audioctx.
currenttime); panner.positionz.setvalueattime(zpos, audioctx.
currenttime); } else { panner.setposition(xpos,ypos,zpos); } pannerdata.innerhtml = 'panner data: x ' + xpos + ' y ' + ypos + ' z ' + zpos; } note: in terms of working out what position values to apply to the listener and panner, to make the sound appropriate to what the visuals are doing on scr...
Payment processing concepts - Web APIs
standardized payment method identifiers there is
currently only one registered standardized payment method identifier (more may be added in the future): basic-card payments are handled by the basic card payment specification.
...
currently, apple pay is only supported by safari.
...this is
currently supported only by chrome and chromium-based browsers.
Permissions.query() - Web APIs
an up-to-date list of permission names can be found in the spec under the permissionname enum, but bear in mind that the actual permissions supported by browsers is
currently much smaller than this.
... firefox for example
currently supports geolocation, notifications, push, and persistent-storage (see our permissions.webidl file).
... exceptions exception explanation typeerror retrieving the permissiondescriptor information failed in some way, or the permission doesn't exist or is
currently unsupported (e.g.
Permissions - Web APIs
this is not
currently supported in any browser.
...this is not
currently supported in any browser.
... permissions.revoke() revokes the permission
currently set on a given api.
Using Pointer Events - Web APIs
its responsibility in this example is to update the cached touch information and to draw a line from the previous position to the
current position of each touch.
... after drawing the line, we call array.splice() to replace the previous information about the touch point with the
current information in the ongoingtouches array.
...this identifier is an opaque number, but we can at least rely on it differing between the
currently-active touches.
PositionOptions - Web APIs
the positionoptions dictionary describes an object containing option properties to pass as a parameter of geolocation.get
currentposition() and geolocation.watchposition().
...the default value is infinity, meaning that get
currentposition() won't return until the position is available.
...if set to 0, it means that the device cannot use a cached position and must attempt to retrieve the real
current position.
PublicKeyCredentialRequestOptions.extensions - Web APIs
here is the
current (as of march 2019) list of potential extensions which may be used during the registration operation.
...an appid which was used with legacy fido js apis to identify the
current relying party.
...in other words, this may be used server side to check if the
current operation is based on the same biometric data that the previous authentication.
RTCDataChannel.bufferedAmount - Web APIs
the read-only rtcdatachannel property bufferedamount returns the number of bytes of data
currently queued to be sent over the data channel.
... syntax var amount = adatachannel.bufferedamount; value the number of bytes of data
currently queued to be sent over the data channel but have not yet been sent.
... example the snippet below includes a function which changes the contents of a block with the id "buffersize" to a string indicating the number of bytes
currently buffered on an rtcdatachannel.
RTCIceTransport - Web APIs
gatheringstate read only a domstring indicating which gathering state the ice agent is
currently in.
... state read only a domstring indicating what the
current state of the ice agent is.
...the
current candidate pair can be obtained using getselectedcandidatepair().
RTCPeerConnection.addTrack() - Web APIs
ync opencall(pc) { const gumstream = await navigator.mediadevices.getusermedia( {video: true, audio: true}); for (const track of gumstream.gettracks()) { pc.addtrack(track, gumstream); } } the remote peer might then use a track event handler that looks like this: pc.ontrack = ({streams: [stream]} => videoelem.srcobject = stream; this sets the video element's
current stream to the one that contains the track that's been added to the connection.
...if the transceiver's
currentdirection has ever been "sendrecv" or "sendonly", the sender can't be reused.
... the associated rtcrtptransceiver has its
currentdirection updated to include sending; if its
current value is "recvonly", it becomes "sendrecv", and if its
current value is "inactive", it becomes "sendonly".
RTCPeerConnection.connectionState - Web APIs
the read-only connectionstate property of the rtcpeerconnection interface indicates the
current state of the peer connection by returning one of the string values specified by the enum rtcpeerconnectionstate.
... syntax var connectionstate = rtcpeerconnection.connectionstate; value the
current state of the connection, as a value from the enum rtcpeerconnectionstate.
... "connecting" one or more of the ice transports are
currently in the process of establishing a connection; that is, their rtciceconnectionstate is either "checking" or "connected", and no transports are in the "failed" state.
RTCPeerConnection.pendingLocalDescription - Web APIs
this does not describe the connection as it
currently stands, but as it may exist in the near future.
... use rtcpeerconnection.
currentlocaldescription or rtcpeerconnection.localdescription to get the
current state of the endpoint.
... for details on the difference, see pending and
current descriptions in webrtc connectivity.
RTCPeerConnection.pendingRemoteDescription - Web APIs
this does not describe the connection as it
currently stands, but as it may exist in the near future.
... use rtcpeerconnection.
currentremotedescription or rtcpeerconnection.remotedescription to get the
current session description for the remote endpoint.
... for details on the difference, see pending and
current descriptions in webrtc connectivity.
RTCPeerConnection.setLocalDescription() - Web APIs
instead, the
current connection configuration remains in place until negotiation is complete.
...see pending and
current descriptions in webrtc connectivity for more details on this process.
... deprecated exceptions when using the deprecated callback-based version of setlocaldescription(), the following exceptions may occur: invalidstateerror the connection's signalingstate is "closed", indicating that the connection is not
currently open, so negotiation cannot take place.
RTCRtpReceiver - Web APIs
properties rtcrtpreceiver.track read only returns the mediastreamtrack associated with the
current rtcrtpreceiver instance.
... methods rtcrtpreceiver.getcontributingsources() returns an array of rtcrtpcontributingsource instances for each unique csrc (contributing source) identifier received by the
current rtcrtpreceiver in the last ten seconds.
... rtcrtpreceiver.getsynchronizationsources() returns an array including one rtcrtpsynchronizationsource instance for each unique ssrc (synchronization source) identifier received by the
current rtcrtpreceiver in the last ten seconds.
RTCRtpSender.getParameters() - Web APIs
the getparameters() method of the rtcrtpsender interface returns an rtcrtpsendparameters object describing the
current configuration for the encoding and transmission of media on the sender's track.
... return value an rtcrtpsendparameters object indicating the
current configuration of the sender.
... examples this example gets the sender's
current transaction id; the transaction id uniquely identifies the
current set of parameters, to ensure that calls to setparameters() are always handled in the correct order, avoiding inadvertently overwriting parameters with older parameters.
SVGAnimatedPathData - Web APIs
name type description animatednormalizedpathseglist svgpathseglist provides access to the
current animated contents of the 'd' attribute in a form where all path data commands are expressed in terms of the following subset of svgpathseg types: svg_pathseg_moveto_abs (m), svg_pathseg_lineto_abs (l), svg_pathseg_curveto_cubic_abs (c) and svg_pathseg_closepath (z).
... animatedpathseglist svgpathseglist provides access to the
current animated contents of the 'd' attribute in a form which matches one-for-one with svg's syntax.
... if the given attribute or property is being animated, contains the
current animated value of the attribute or property, and both the object itself and its contents are read only.
SVGAnimatedPoints - Web APIs
animatedpoints svgpointlist provides access to the
current animated contents of the points attribute.
... if the given attribute or property is being animated, contains the
current animated value of the attribute or property.
... if the given attribute or property is not
currently being animated, contains the same value as points.
SVGGraphicsElement - Web APIs
svggraphicselement.getbbox() returns a domrect representing the computed bounding box of the
current element.
... svggraphicselement.getctm() returns a dommatrix representing the matrix that transforms the
current element's coordinate system to its svg viewport's coordinate system.
... svggraphicselement.getscreenctm() returns a dommatrix representing the matrix that transforms the
current element's coordinate system to the coordinate system of the svg viewport for the svg document fragment.
ScreenOrientation - Web APIs
the screenorientation interface of the the screen orientation api provides information about the
current orientation of the document.
... properties screenorientation.typeread only returns the document's
current orientation type, one of "portrait-primary", "portrait-secondary", "landscape-primary", or "landscape-secondary".
... screenorientation.angleread only returns the document's
current orientation angle.
Selection.getRangeAt() - Web APIs
the selection.getrangeat() method returns a range object representing one of the ranges
currently selected.
... example let ranges = []; sel = window.getselection(); for(let i = 0; i < sel.rangecount; i++) { ranges[i] = sel.getrangeat(i); } /* each item in the ranges array is now * a range object representing one of the * ranges in the
current selection */ specifications specification status comment selection apithe definition of 'selection: getrangeat()' in that specification.
... working draft
current ...
ShadowRoot - Web APIs
note that this is
currently only implemented by chrome; other browsers still implement them on the document interface.
...note that this is
currently only implemented by chrome; other browsers still implement them on the document interface.
... documentorshadowroot.getselection() returns a selection object representing the range of text selected by the user, or the
current position of the caret.
StyleSheet - Web APIs
properties stylesheet.disabled is a boolean representing whether the
current stylesheet has been applied or not.
... stylesheet.ownernode read only returns a node associating this style sheet with the
current document.
... stylesheet.title read only returns a domstring representing the advisory title of the
current style sheet.
TouchEvent.targetTouches - Web APIs
the targettouches read-only property is a touchlist listing all the touch objects for touch points that are still in contact with the touch surface and whose touchstart event occurred inside the same target element as the
current target element.
... syntax var touches = touchevent.targettouches; return value touches a touchlist listing all the touch objects for touch points that are still in contact with the touch surface and whose touchstart event occurred inside the same target element as the
current target element.
...the touchevent.targettouches property is a touchlist object that includes those tps that are
currently touching the surface and started on the element that is the target of the
current event.
Using Touch Events - Web APIs
a disadvantage to using mouse events is that they do not support con
current user input, whereas touch events support multiple simultaneous inputs (possibly at different locations on the touch surface), thus enhancing user experiences.
...this interface's attributes include the state of several modifier keys (for example the shift key) and the following touch lists: touches - a list of all of the touch points
currently on the screen.
... changedtouches - a list of the touch points whose items depends on the associated event type: for the touchstart event, it is a list of the touch points that became active with the
current event.
TreeWalker.firstChild() - Web APIs
the treewalker.firstchild() method moves the
current node to the first visible child of the
current node, and returns the found child.
... it also moves the
current node to this child.
... if no such child exists, returns null and the
current node is not changed.
TreeWalker.lastChild() - Web APIs
the treewalker.lastchild() method moves the
current node to the last visible child of the
current node, and returns the found child.
... it also moves the
current node to this child.
... if no such child exists, returns null and the
current node is not changed.
TreeWalker.nextNode() - Web APIs
the treewalker.nextnode() method moves the
current node to the next visible node in the document order, and returns the found node.
... it also moves the
current node to this one.
... if no such node exists, returns null and the
current node is not changed.
TreeWalker.previousNode() - Web APIs
the treewalker.previousnode() method moves the
current node to the previous visible node in the document order, and returns the found node.
... it also moves the
current node to this one.
... if no such node exists,or if it is before that the root node defined at the object construction, returns null and the
current node is not changed.
UIEvent.detail - Web APIs
the uievent.detail read-only property, when non-zero, provides the
current (or next, depending on the event) click count.
... for click or dblclick events, uievent.detail is the
current click count.
... for mousedown or mouseup events, uievent.detail is 1 plus the
current click count.
WebGL2RenderingContext.getQuery() - Web APIs
the webgl2renderingcontext.getquery() method of the webgl 2 api returns the
currently active webglquery for the target, or null.
...must be gl.
current_query.
... examples var
currentquery = gl.getquery(gl.any_samples_passed, gl.
current_query); specifications specification status comment webgl 2.0the definition of 'getquery' in that specification.
WebGLRenderingContext.bindBuffer() - Web APIs
an attempt to bind the buffer to another target will throw an invalid_operation error and the
current buffer binding will remain the same.
...an attempt to do so will generate an invalid_operation error, and the
current binding will remain untouched.
... examples binding a buffer to a target var canvas = document.getelementbyid('canvas'); var gl = canvas.getcontext('webgl'); var buffer = gl.createbuffer(); gl.bindbuffer(gl.array_buffer, buffer); getting
current bindings to check the
current buffer bindings, query the array_buffer_binding and element_array_buffer_binding constants.
WebGLRenderingContext.vertexAttribPointer() - Web APIs
the webglrenderingcontext.vertexattribpointer() method of the webgl api binds the buffer
currently bound to gl.array_buffer to a generic vertex attribute of the
current vertex buffer object and specifies its layout.
...if stride is 0, the attribute is assumed to be tightly packed, that is, the attributes are not interleaved but each attribute is in a separate block, and the next vertex' attribute follows immediately after the
current vertex.
... querying
current settings you can call gl.getvertexattrib() and gl.getvertexattriboffset() to get the
current parameters for an attribute, e.g.
Using WebRTC data channels - Web APIs
while there's no way to control the size of the buffer, you can learn how much data is
currently buffered, and you can choose to be notified by an event when the buffer starts to run low on queued data.
... concerns with large messages
currently, it's not practical to use rtcdatachannel for messages larger than 64kib (16kib if you want to support cross-browser exchange of data).
... this will become an issue when browsers properly support the
current standard for supporting larger messages—the end-of-record (eor) flag that indicates when a message is the last one in a series that should be treated as a single payload.
WebRTC API - Web APIs
events bufferedamountlow the amount of data
currently buffered by the data channel—as indicated by its bufferedamount property—has decreased to be at or below the channel's minimum buffered data size, as specified by bufferedamountlowthreshold.
... selectedcandidatepairchange the
currently-selected pair of ice candidates has changed for the rtcicetransport on which the event is fired.
... rtcidentityassertion represents the identity of the remote peer of the
current connection.
Viewpoints and viewers: Simulating cameras in WebXR - Web APIs
when the browser needs you to render the scene, it invokes the callback, providing as input parameters the
current time and an xrframe encapsulating the data needed to render the correct frame.
...in
current webxr implementations, there will never be more than two entries in this list: one describing the position and viewing angle of the left eye and another doing the same for the right.
... you can tell which eye a given xrview represents by checking the value of its eye property, which is a string whose value is left or right (a third possible value, none, theoretically may be used to represent another point of view, but support for this is not entirely available in the
current api).
Geometry and reference spaces in WebXR - Web APIs
the
currently available reference space types, which are defined by the xrreferencespacetype enumeration, are shown below.
...the viewer isn't tracked at all; tracking is optimized for stability around the user's
current position, so the native origin may drift as needed to accommodate that need.
...
currently, the only supported options are strings identifying the standard reference spaces.
Using the Web Speech API - Web APIs
chrome support as mentioned earlier, chrome
currently supports speech recognition with prefixed properties, therefore at the start of our code we include these lines to feed the right objects to chrome, and any future implementations that might support the features without a prefix: var speechrecognition = speechrecognition || webkitspeechrecognition var speechgrammarlist = speechgrammarlist || webkitspeechgrammarlist var speechrecognitionevent =...
... browser support support for web speech api speech synthesis is still getting there across mainstream browsers, and is
currently limited to the following: firefox desktop and mobile support it in gecko 42+ (windows)/44+, without prefixes, and it can be turned on by flipping the media.webspeech.synth.enabled flag to true in about:config.
...we use the htmlselectelement selectedoptions property to return the
currently selected <option> element.
Window.close() - Web APIs
the window.close() method closes the
current window, or the window on which it was called.
... //global var to store a reference to the opened window var openedwindow; function openwindow() { openedwindow = window.open('moreinfo.htm'); } function closeopenedwindow() { openedwindow.close(); } closing the
current window in the past, when you called the window object's close() method directly, rather than calling close() on a window instance, the browser closed the frontmost window, whether your script created that window or not.
...(firefox 46.0.1: scripts can not close windows, they had not opened) function close
currentwindow() { window.close(); } specification specification status comment html living standardthe definition of 'window.close()' in that specification.
Window.content - Web APIs
in such cases, content returns a reference to the window object for the document
currently displayed in the browser.
... in unprivileged content (webpages), content is normally equivalent to top (except in the case of a webpage loaded in a sidebar, content still refers to the window of the
currently selected tab).
... syntax var windowobject = window.content; example executing the following code in a chrome xul window with a <browser type="content-primary"/> element in it draws a red border around the first div on the page
currently displayed in the browser: content.document.getelementsbytagname("div")[0].style.border = "solid red 1px"; specification none.
window.location - Web APIs
the window.location read-only property returns a location object with information about the
current location of the document.
... location.assign("http://www.mozilla.org"); // or location = "http://www.mozilla.org"; example #2: force reloading the
current page from the server location.reload(true); example #3 consider the following example, which will reload the page by using the replace() method to insert the value of location.pathname into the hash: function reloadpagewithhash() { var initialpage = location.pathname; location.replace('http://example.com/#' + initialpage); } example #4: display the properties of the
current url in an al...
...(" + (typeof olocation[sprop]) + "): " + (olocation[sprop] || "n/a")); } alert(alog.join("\n")); } // in html: <button onclick="showloc();">show location properties</button> example #5: send a string of data to the server by modifying the search property: function senddata (sdata) { location.search = sdata; } // in html: <button onclick="senddata('some data');">send data</button> the
current url with "?some%20data" appended is sent to the server (if no action is taken by the server, the
current document is reloaded with the modified search string).
window.postMessage() - Web APIs
note that this origin is not guaranteed to be the
current or future origin of that window, which might have been navigated to a different location since postmessage was called.
... the value of the origin property of the dispatched event is not affected by the
current value of document.domain in the calling window.
... lastly, posting a message to a page at a file: url
currently requires that the targetorigin argument be "*".
Window.resizeBy() - Web APIs
the window.resizeby() method resizes the
current window by a specified amount.
... example // shrink the window window.resizeby(-200, -200); notes this method resizes the window relative to its
current size.
...if the window you open is not in the same orgin as the
current window, you will not be able to resize, or access any information on, that window/tab.
Window.scrollY - Web APIs
the read-only scrolly property of the window interface returns the number of pixels that the document is
currently scrolled vertically.
... syntax var y = window.scrolly value in practice, the returned value is a double-precision floating-point value indicating the number of pixels the document is
currently scrolled vertically from the origin, where a positive value means the content is scrolled to upward.
... in more technical terms, scrolly returns the y coordinate of the top edge of the
current viewport.
Window.sessionStorage - Web APIs
the read-only sessionstorage property accesses a session storage object for the
current origin.
... syntax mystorage = window.sessionstorage; value a storage object which can be used to access the
current origin's session storage space.
... example the following snippet accesses the
current origin's session storage object and adds data to it with storage.setitem().
WorkerNavigator - Web APIs
properties the workernavigator interface implements properties from the navigatorid, navigatorlanguage, navigatoronline, navigatordatastore, and navigatorcon
currenthardware interfaces.
... navigatorcon
currenthardware.hardwareconcurrencyread only returns the number of logical processor cores available.
... navigatorid.useragentread only returns the user agent string for the
current browser.
XRReferenceSpace.getOffsetReferenceSpace() - Web APIs
these values are added to the position and orientation of the
current reference space and then the result is used as the position and orientation of the newly created xrreferencespace.
...each time this is called, the new offsets are used to update the
current values of mousepitch and mouseyaw.
...eorientation, -mouseyaw); let newtransform = new xrrigidtransform({x: 0, y: 0, z: 0}, {x: inverseorientation[0], y: inverseorientation[1], z: inverseorientation[2], w: inverseorientation[3]}); return refspace.getoffsetreferencespace(newtransform); } this function creates an inverse orientation matrix—used to orient the viewer—from the
current pitch and yaw values, then uses that matrix as the source of the orientation when calling new xrrigidtransform().
XRWebGLLayer - Web APIs
although xrwebgllayer is
currently the only type of framebuffer layer supported by webgl, it's entirely possible that future updates to the webxr specification may allow for other layer types and corresponding image sources.
... examples binding the layer to a webgl context this snippet, taken from drawing a frame in movement, orientation, and motion: a webxr example, shows how the xrwebgllayer is obtained from the xrsession object's rendering state and is then bound as the
current rendering webgl framebuffer by calling the webgl bindframebuffer() function.
...in
current webxr implementations, there will never be more than two entries in this list: one describing the position and viewing angle of the left eye and another doing the same for the right.
Using the slider role - Accessibility
as the user interacts with the thumb, the application must programmatically adjust the slider's aria-valuenow (and possible aria-valuetext) attribute to reflect the
current value.
...the
current volume is 50.
...in these cases, the aria-valuetext attribute is used to provide the appropriate text name for the
currently selected value.
Architecture - Accessibility
in firefox, the results of getendindex will always be the startindex + 1, because links are always just represented by a single embedded object character (c) to get the next char fom a given offset in an accessible text: if
current char is 0 (end of string), then we are on a hard line break: get next node (typical depth first search), and set the
current offset = 0 iatext::ch = getcharacteratoffset(++offset); if ch == embedded object char (0xfffc) then get object for that offset (see a above), then set the
current offset to -1, and go to step 2 if ch == 0 then we must determine whether we're on a hard line break: ...
... if the
current accessible's ia2 role is section, heading or paragraph then we are on a hard line break, so stop get the offset in the parent text for this object (see b above), and then repeat step (c)2 above done (d) to get the next word or line: look one character ahead.
... if the
current character falls within a text substring, locate the line ending of that substring or the next embed, whichever comes first: get the
current line start and end offsets.
Cognitive accessibility - Accessibility
focused elements should be visibly focused when a user navigates using a keyboard, the ui should make it obvious which element
currently has focus.
...
current location is available users should be able to orient themselves within a site or application.
...breadcrumbs, site maps, and identifying the
current page in the navigation as "
current" are all techniques that help communicate the
current location.
Accessibility documentation index - Accessibility
21 using the aria-label attribute aria, accessibility, codingscripting, html, needscontent, reference, référence(2), agent, aria-label, user, useragent the aria-label attribute is used to define a string that labels the
current element.
... 28 using the aria-valuenow attribute aria, accessibility, needscontent the aria-valuenow attribute is used to define the
current value for a range widget such as a slider, spinbutton or progressbar.
... if the
current value is not known, the author should not set the aria-valuenow attribute.
Web Accessibility: Understanding Colors and Luminance - Accessibility
currently, the rgb color space predominates as the space web developers work in.
...because of the
current domination of the rgb color space in measuring color output, most calculations in this document are presumed to be in the rgb color space, and very specifically, in the srgb color space.
... where accessibility is concerned, however, standards and guidelines are
currently written predominantly using the srgb color space, especially as it applies to color contrast ratios.
forced-colors - CSS: Cascading Style Sheets
syntax the forced-colors media feature indicates whether or not the browser is
currently in forced-colors mode.
... user preferences
currently no user agent implements this feature, although various operating systems do support such preferences and if this media query is ever implemented user agents will likely rely on the settings provided by the operating system in use.
... examples note: no browser
currently implements this feature so the following example will not work.
Basic concepts of Logical Properties and Values - CSS: Cascading Style Sheets
the below diagram shows the inline and block directions in a horizontal writing mode: this diagram shows block and inline in a vertical writing mode: browser support logical properties and values can be thought of as a couple of groups in terms of
current browser support.
...these mapped properties are starting to see good browser support, and if you look at the individual pages for the properties in the reference here on mdn you will see that edge is the only modern browser
currently missing these.
... note: the css working group are
currently trying to decide what to do about the four-value shorthands for logical properties, for example the equivalents to setting four physical properties at once, like margins with the margin property.
Testing media queries programmatically - CSS: Cascading Style Sheets
for example, to set up a query list that determines if the device is in landscape or portrait orientation: const mediaquerylist = window.matchmedia("(orientation: portrait)"); checking the result of a query once you've created your media query list, you can check the result of the query by looking at the value of its matches property: if (mediaquerylist.matches) { /* the viewport is
currently in portrait orientation */ } else { /* the viewport is not
currently in portrait orientation, therefore landscape */ } receiving query notifications if you need to be aware of changes to the evaluated result of the query on an ongoing basis, it's more efficient to register a listener than to poll the query's result.
...this makes our listener perform adjustments based on the
current device orientation; otherwise, our code might assume the device is in portrait mode at startup, even if it's actually in landscape mode.
... the handleorientationchange() function would look at the result of the query and handle whatever we need to do on an orientation change: function handleorientationchange(evt) { if (evt.matches) { /* the viewport is
currently in portrait orientation */ } else { /* the viewport is
currently in landscape orientation */ } } above, we define the parameter as evt — an event object.
background-color - CSS: Cascading Style Sheets
ground-color: #1fef; /* fully opaque shorthand */ /* rgb value */ background-color: rgb(255, 255, 128); /* fully opaque */ background-color: rgba(117, 190, 218, 0.5); /* 50% transparent */ /* hsl value */ background-color: hsl(50, 33%, 25%); /* fully opaque */ background-color: hsla(50, 33%, 25%, 0.75); /* 75% transparent */ /* special keyword values */ background-color:
currentcolor; background-color: transparent; /* global values */ background-color: inherit; background-color: initial; background-color: unset; the background-color property is specified as a single <color> value.
...in order to meet
current web content accessibility guidelines (wcag), a ratio of 4.5:1 is required for text content and 3:1 for larger text such as headings.
...it also applies to ::first-letter and ::first-line.inheritednocomputed valuecomputed coloranimation typea color formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> |
currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-inline - CSS: Cascading Style Sheets
initial valueas each of the properties of the shorthand:border-top-width: mediumborder-top-style: noneborder-top-color:
currentcolorapplies toall elementsinheritednocomputed valueas each of the properties of the shorthand:border-top-width: the absolute length or 0 if border-top-style is none or hiddenborder-top-style: as specifiedborder-top-color: computed coloranimation typediscrete constituent properties this property is a shorthand for the following css properties: border-inline-color border-inline-style border-...
... formal definition initial valueas each of the properties of the shorthand:border-top-width: mediumborder-top-style: noneborder-top-color:
currentcolorapplies toall elementsinheritednocomputed valueas each of the properties of the shorthand:border-top-width: the absolute length or 0 if border-top-style is none or hiddenborder-top-style: as specifiedborder-top-color: computed coloranimation typediscrete formal syntax <'border-top-width'> | <'border-top-style'> | <'color'>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color>...
... | <named-color> |
currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-left-color - CSS: Cascading Style Sheets
syntax /* <color> values */ border-left-color: red; border-left-color: #ffbb00; border-left-color: rgb(255, 0, 0); border-left-color: hsla(100%, 50%, 25%, 0.75); border-left-color:
currentcolor; border-left-color: transparent; /* global values */ border-left-color: inherit; border-left-color: initial; border-left-color: unset; the border-left-color property is specified as a single value.
... formal definition initial value
currentcolorapplies toall elements.
... it also applies to ::first-letter.inheritednocomputed valuecomputed coloranimation typea color formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> |
currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-right-color - CSS: Cascading Style Sheets
syntax /* <color> values */ border-right-color: red; border-right-color: #ffbb00; border-right-color: rgb(255, 0, 0); border-right-color: hsla(100%, 50%, 25%, 0.75); border-right-color:
currentcolor; border-right-color: transparent; /* global values */ border-right-color: inherit; border-right-color: initial; border-right-color: unset; the border-right-color property is specified as a single value.
... formal definition initial value
currentcolorapplies toall elements.
... it also applies to ::first-letter.inheritednocomputed valuecomputed coloranimation typea color formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> |
currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-top-color - CSS: Cascading Style Sheets
syntax /* <color> values */ border-top-color: red; border-top-color: #ffbb00; border-top-color: rgb(255, 0, 0); border-top-color: hsla(100%, 50%, 25%, 0.75); border-top-color:
currentcolor; border-top-color: transparent; /* global values */ border-top-color: inherit; border-top-color: initial; border-top-color: unset; the border-top-color property is specified as a single value.
... formal definition initial value
currentcolorapplies toall elements.
... it also applies to ::first-letter.inheritednocomputed valuecomputed coloranimation typea color formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> |
currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border - CSS: Cascading Style Sheets
defaults to
currentcolor if absent.
... the shorthand:border-width: as each of the properties of the shorthand:border-top-width: mediumborder-right-width: mediumborder-bottom-width: mediumborder-left-width: mediumborder-style: as each of the properties of the shorthand:border-top-style: noneborder-right-style: noneborder-bottom-style: noneborder-left-style: noneborder-color: as each of the properties of the shorthand:border-top-color:
currentcolorborder-right-color:
currentcolorborder-bottom-color:
currentcolorborder-left-color:
currentcolorapplies toall elements.
...and:border-bottom-width: a lengthborder-left-width: a lengthborder-right-width: a lengthborder-top-width: a length formal syntax <line-width> | <line-style> | <color>where <line-width> = <length> | thin | medium | thick<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset<color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> |
currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
Adapting to the new two-value syntax of display - CSS: Cascading Style Sheets
the single values of display are described in the specification as legacy values, and
currently you gain no benefit from using the two-value versions, as there is a direct mapping for each two-value version to a legacy version, as demonstrated in the table above.
...uter display type defaults to block—except for ruby, which defaults to inline." finally, we have some legacy pre-composed inline-level values of: inline-block inline-table inline-flex inline-grid if a supporting browser comes across these as single values then it treats them the same as the two-value versions: inline flow-root inline table inline flex inline grid so all of the
current situations are neatly covered, meaning that we maintain compatibility of existing and new sites that use the single values, while allowing the spec to evolve.
...you can see
current support in the compat data for the two-value syntax: the compatibility table on this page is generated from structured data.
display - CSS: Cascading Style Sheets
due to a bug in browsers this will
currently remove the element from the accessibility tree — screen readers will not look at what's inside.
...for example, using two values you might specify an inline flex container as follows: .container { display: inline flex; } this can
currently be specified using a single value.
... display: contents
current implementations in most browsers will remove from the accessibility tree any element with a display value of contents (but descendants will remain).
outline-color - CSS: Cascading Style Sheets
in order to meet
current web content accessibility guidelines (wcag), a ratio of 4.5:1 is required for text content and 3:1 for larger text such as headings.
... webaim: color contrast checker mdn understanding wcag, guideline 1.4 explanations understanding success criterion 1.4.3 | w3c understanding wcag 2.0 formal definition initial valueinvert, for browsers supporting it,
currentcolor for the otherapplies toall elementsinheritednocomputed valuefor the keyword invert, the computed value is invert.
...the transparent keyword maps to rgba(0,0,0,0).animation typea color formal syntax <color> | invertwhere <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> |
currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
text-decoration-color - CSS: Cascading Style Sheets
syntax /* <color> values */ text-decoration-color:
currentcolor; text-decoration-color: red; text-decoration-color: #00ff00; text-decoration-color: rgba(255, 128, 128, 0.5); text-decoration-color: transparent; /* global values */ text-decoration-color: inherit; text-decoration-color: initial; text-decoration-color: unset; values <color> the color of the line decoration.
... webaim: color contrast checker mdn understanding wcag, guideline 1.4 explanations understanding success criterion 1.4.3 | w3c understanding wcag 2.0 formal definition initial value
currentcolorapplies toall elements.
... it also applies to ::first-letter and ::first-line.inheritednocomputed valuecomputed coloranimation typea color formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> |
currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
text-emphasis-color - CSS: Cascading Style Sheets
/* initial value */ text-emphasis-color:
currentcolor; /* <color> */ text-emphasis-color: #555; text-emphasis-color: blue; text-emphasis-color: rgba(90, 200, 160, 0.8); text-emphasis-color: transparent; /* global values */ text-emphasis-color: inherit; text-emphasis-color: initial; text-emphasis-color: unset; syntax values <color> defines the color of the emphasis marks.
... if no color is present, it defaults to
currentcolor.
... formal definition initial value
currentcolorapplies toall elementsinheritednocomputed valuecomputed coloranimation typea color formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> |
currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
text-emphasis - CSS: Cascading Style Sheets
the size of the emphasis symbol, like ruby symbols, is about 50% of the size of the font, and text-emphasis may affect line height when the
current leading is not enough for the marks.
...if no color is present, it defaults to
currentcolor.
... formal definition initial valueas each of the properties of the shorthand:text-emphasis-style: nonetext-emphasis-color:
currentcolorapplies toall elementsinheritednocomputed valueas each of the properties of the shorthand:text-emphasis-style: as specifiedtext-emphasis-color: computed coloranimation typeas each of the properties of the shorthand:text-emphasis-color: a colortext-emphasis-style: discrete formal syntax <'text-emphasis-style'> | <'text-emphasis-color'> examples a heading with emphasis shape and color this example draws a heading with triangles used to emphasize each character.
z-index - CSS: Cascading Style Sheets
for a positioned box (that is, one with any position other than static), the z-index property specifies: the stack level of the box in the
current stacking context.
...the stack level of the generated box in the
current stacking context is the same as its parent's box.
... <integer> this <integer> is the stack level of the generated box in the
current stacking context.
WAI ARIA Live Regions/API Support - Developer guides
aria-relevant on ancestor element container-busy "true" | "false" | "error" "false" the
current changes are not yet complete.
... a state change event for the a11y api's busy state will be fired on the container object
currently marked as busy, once it is no longer busy.
...this will always be an ancestor of the
current object.
Live streaming web audio and video - Developer guides
rtsp 2.0 rtsp 2.0 is
currently in development and is not backward compatible with rtsp 1.0.
... important: although the <audio> and <video> tags are protocol agnostic, no browser
currently supports anything other than http without requiring plugins, although this looks set to change.
...
currently, opus is supported by firefox desktop and mobile as well as the latest versions of desktop chrome and opera.
<area> - HTML: Hypertext Markup Language
the following keywords have special meanings: _self (default): show the resource in the
current browsing context.
... _parent: show the resource in the parent browsing context of the
current one, if the
current page is inside a frame.
... _top: show the resource in the topmost browsing context (the browsing context that is an ancestor of the
current one and has no parent).
<base>: The Document Base URL element - HTML: Hypertext Markup Language
the following keywords have special meanings: _self (default): show the result in the
current browsing context.
... _parent: show the result in the parent browsing context of the
current one, if the
current page is inside a frame.
... _top: show the result in the topmost browsing context (the browsing context that is an ancestor of the
current one and has no parent).
<img>: The Image Embed element - HTML: Hypertext Markup Language
the src url is the same as the url of the page the user is
currently on.
... loading indicates how the browser should load the image: eager: loads the image immediately, regardless of whether or not the image is
currently within the visible viewport (this is the default value).
...user agents use the
current source size to select one of the sources supplied by the srcset attribute, when those sources are described using width (w) descriptors.
<input type="email"> - HTML: Hypertext Markup Language
the :valid and :invalid css pseudo-classes are automatically applied as appropriate to visually denote whether the
current value of the field is a valid e-mail address or not.
... a simple email input
currently, all browsers which implement this element implement it as a standard text input field with basic validation features.
...t the specification should be using an algorithm equivalent to the following regular expression: /^[a-za-z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-za-z0-9](?:[a-za-z0-9-]{0,61} [a-za-z0-9])?(?:\.[a-za-z0-9](?:[a-za-z0-9-]{0,61}[a-za-z0-9])?)*$/ to learn more about how form validation works and how to take advantage of the :valid and :invalid css properties to style the input based on whether or not the
current value is valid, see form data validation.
<input type="file"> - HTML: Hypertext Markup Language
first of all, let's look at the html: <form method="post" enctype="multipart/form-data"> <div> <label for="image_uploads">choose images to upload (png, jpg)</label> <input type="file" id="image_uploads" name="image_uploads" accept=".jpg, .jpeg, .png" multiple> </div> <div class="preview"> <p>no files
currently selected for upload</p> </div> <div> <button>submit</button> </div> </form> html { font-family: sans-serif; } form { width: 580px; background: #ccc; margin: 0 auto; padding: 20px; border: 1px solid black; } form ol { padding-left: 0; } form li, div > p { background: #eee; display: flex; justify-content: space-between; margin-bottom: 10px; list-style-type: ...
... function updateimagedisplay() { while(preview.firstchild) { preview.removechild(preview.firstchild); } const curfiles = input.files; if(curfiles.length === 0) { const para = document.createelement('p'); para.textcontent = 'no files
currently selected for upload'; preview.appendchild(para); } else { const list = document.createelement('ol'); preview.appendchild(list); for(const file of curfiles) { const listitem = document.createelement('li'); const para = document.createelement('p'); if(validfiletype(file)) { para.textcontent = `file name ${file.name}, file size ${returnfilesize(file.siz...
... // https://developer.mozilla.org/docs/web/media/formats/image_types const filetypes = [ "image/apng", "image/bmp", "image/gif", "image/jpeg", "image/pjpeg", "image/png", "image/svg+xml", "image/tiff", "image/webp", "image/x-icon" ]; function validfiletype(file) { return filetypes.includes(file.type); } the returnfilesize() function takes a number (of bytes, taken from the
current file's size property), and turns it into a nicely formatted size in bytes/kb/mb.
<input type="month"> - HTML: Hypertext Markup Language
here we make use of the :valid and :invalid css properties to style the input based on whether or not the
current value is valid.
...the list of available year values is dynamically generated depending on the
current year (see the code comments below for detailed explanations of how these functions work).
...oes, run the code inside the if() {} block if(test.type === 'text') { // hide the native picker and show the fallback nativepicker.style.display = 'none'; fallbackpicker.style.display = 'block'; fallbacklabel.style.display = 'block'; // populate the years dynamically // (the months are always the same, therefore hardcoded) populateyears(); } function populateyears() { // get the
current year as a number var date = new date(); var year = date.getfullyear(); // make this year, and the 100 years before it available in the year <select> for(var i = 0; i <= 100; i++) { var option = document.createelement('option'); option.textcontent = year-i; yearselect.appendchild(option); } } note: remember that some years have 53 weeks in them (see weeks per year)!
<input type="radio"> - HTML: Hypertext Markup Language
once a radio group is established, selecting any radio button in that group automatically deselects any
currently-selected radio button in the same group.
... additional attributes in addition to the common attributes shared by all <input> elements, radio inputs support the following attributes: attribute description checked a boolean indicating whether or not this radio button is the
currently-selected item in the group value the string to use as the value of the radio when submitting the form, if the radio is
currently toggled on checked a boolean attribute which, if present, indicates that this radio button is the
currently selected one in the group.
... value the value attribute is one which all <input>s share; however, it serves a special purpose for inputs of type radio: when a form is submitted, only radio buttons which are
currently checked are submitted to the server, and the reported value is the value of the value attribute.
<input type="url"> - HTML: Hypertext Markup Language
the :valid and :invalid css pseudo-classes are automatically applied as appropriate to visually denote whether the
current value of the field is a valid url or not.
... a simple url input
currently, all browsers which implement this element implement it as a standard text input field with basic validation features.
...if maxlength exceeds size, the input box's contents will scroll as needed to show the
current selection or insertion point as the content is manipulated.
Using HTTP cookies - HTTP
get /sample_page.html http/2.0 host: www.example.org cookie: yummy_cookie=choco; tasty_cookie=strawberry note: here's how to use the set-cookie header in various server-side applications: php node.js python ruby on rails define the lifetime of a cookie the lifetime of a cookie can be defined in two ways: session cookies are deleted when the
current session ends.
... the browser defines when the "
current session" ends, and some browsers use session restoring when restarting, which can cause session cookies to last indefinitely long.
... for more information about cookie prefixes and the
current state of browser support, see the prefixes section of the set-cookie reference article.
HTTP response status codes - HTTP
226 im used (http delta encoding) the server has fulfilled a get request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the
current instance.
... 409 conflict this response is sent when a request conflicts with the
current state of the server.
... 426 upgrade required the server refuses to perform the request using the
current protocol but might be willing to do so after the client upgrades to a different protocol.
Indexed collections - JavaScript
lements in your array evaluate to false in a boolean context—if your array consists only of dom nodes, for example—you can use a more efficient idiom: let divs = document.getelementsbytagname('div') for (let i = 0, div; div = divs[i]; i++) { /* process div in some way */ } this avoids the overhead of checking the length of the array, and ensures that the div variable is reassigned to the
current item each time around the loop for added convenience.
... function isnumber(value) { return typeof value === 'number' } let a1 = [1, 2, 3] console.log(a1.some(isnumber)) // logs true let a2 = [1, '2', 3] console.log(a2.some(isnumber)) // logs true let a3 = ['1', '2', '3'] console.log(a3.some(isnumber)) // logs false reduce(callback[, initialvalue]) applies callback(accumulator,
currentvalue[,
currentindex[, array]]) for each value in the array for the purpose of reducing the list of items down to a single value.
... let a = [10, 20, 30] let total = a.reduce(function(accumulator,
currentvalue) { return accumulator +
currentvalue }, 0) console.log(total) // prints 60 reduceright(callback[, initialvalue]) works like reduce(), but starts with the last element.
setter - JavaScript
( { set x(v) { }, set x(v) { } } and { x: ..., set x(v) { } } are forbidden ) examples defining a setter on new objects in object initializers the following example define a pseudo-property
current of object language.
... when
current is assigned a value, it updates log with that value: const language = { set
current(name) { this.log.push(name); }, log: [] } language.
current = 'en'; console.log(language.log); // ['en'] language.
current = 'fa'; console.log(language.log); // ['en', 'fa'] note that
current is not defined, and any attempts to access it will result in undefined.
... removing a setter with the delete operator if you want to remove the setter, you can just delete it: delete language.
current; defining a setter on existing objects using defineproperty to append a setter to an existing object, use object.defineproperty().
Array.prototype.flatMap() - JavaScript
syntax var new_array = arr.flatmap(function callback(
currentvalue[, index[, array]]) { // return element for new_array }[, thisarg]) parameters callback function that produces an element of the new array, taking three arguments:
currentvalue the
current element being processed in the array.
... indexoptional the index of the
current element being processed in the array.
... alternative reduce() and concat() var arr = [1, 2, 3, 4]; arr.flatmap(x => [x, x * 2]); // is equivalent to arr.reduce((acc, x) => acc.concat([x, x * 2]), []); // [1, 2, 2, 4, 3, 6, 4, 8] note, however, that this is inefficient and should be avoided for large arrays: in each iteration, it creates a new temporary array that must be garbage-collected, and it copies elements from the
current accumulator array into a new array instead of just adding the new elements to the existing array.
Array.prototype.forEach() - JavaScript
syntax arr.foreach(callback(
currentvalue [, index [, array]])[, thisarg]) parameters callback function to execute on each element.
... it accepts between one and three arguments:
currentvalue the
current element being processed in the array.
... index optional the index
currentvalue in the array.
Array.prototype.length - JavaScript
when you extend an array by changing its length property, the number of actual elements increases; for example, if you set length to 3 when it is
currently 2, the array now contains 3 elements, which causes the third element to be a non-iterable empty slot.
... const arr = [1, 2]; console.log(arr); // [ 1, 2 ] arr.length = 5; // set array length to 5 while
currently 2.
... var numbers = [1, 2, 3, 4, 5]; var length = numbers.length; for (var i = 0; i < length; i++) { numbers[i] *= 2; } // numbers is now [2, 4, 6, 8, 10] shortening an array the following example shortens the array numbers to a length of 3 if the
current length is greater than 3.
Array.prototype.map() - JavaScript
syntax let new_array = arr.map(function callback(
currentvalue[, index[, array]]) { // return element for new_array }[, thisarg]) parameters callback function that is called for every element of arr.
... the callback function accepts the following arguments:
currentvalue the
current element being processed in the array.
... indexoptional the index of the
current element being processed in the array.
Object - JavaScript
when modifying prototypes with hooks, pass this and the arguments (the call state) to the
current behavior by calling apply() on the function.
... var
current = object.prototype.valueof; // since my property "-prop-value" is cross-cutting and isn't always // on the same prototype chain, i want to modify object.prototype: object.prototype.valueof = function() { if (this.hasownproperty('-prop-value')) { return this['-prop-value']; } else { // it doesn't look like one of my objects, so let's fall back on // the default behavior by reproducing the
current behavior as best we can.
... return
current.apply(this, arguments); } } since javascript doesn't exactly have sub-class objects, prototype is a useful workaround to make a “base class” object of certain functions that act as objects.
Promise.prototype.then() - JavaScript
return value once a promise is fulfilled or rejected, the respective handler function (onfulfilled or onrejected) will be called asynchronously (scheduled in the
current thread loop).
... function fetch_
current_data() { // the fetch() api returns a promise.
... return fetch('
current-data.json').then(response => { if (response.headers.get('content-type') != 'application/json') { throw new typeerror(); } var j = response.json(); // maybe do something with j return j; // fulfillment value given to user of // fetch_
current_data().then() }); } if onfulfilled returns a promise, the return value of then will be resolved/rejected by the promise.
this - JavaScript
// in web browsers, the window object is also the global object: console.log(this === window); // true a = 37; console.log(window.a); // 37 this.b = "mdn"; console.log(window.b) // "mdn" console.log(b) // "mdn" note: you can always easily get the global object using the global globalthis property, regardless of the
current context in which your code is running.
... otherwise, * // the result of the expression is the object * //
currently bound to |this| * // (i.e., the common case most usually seen).
... // when called as a listener, turns the related element blue function bluify(e) { // always true console.log(this === e.
currenttarget); // true when
currenttarget and target are the same object console.log(this === e.target); this.style.backgroundcolor = '#a5d9f3'; } // get a list of every element in the document var elements = document.getelementsbytagname('*'); // add bluify as a click listener so when the // element is clicked on, it turns blue for (var i = 0; i < elements.length; i++) { elements[i].addeventl...
Media container formats (file types) - Web media technologies
video codecs supported by 3gp codec browser support chrome edge firefox safari avc (h.264) yes1,2 h.263 yes1 mpeg-4 part 2 (mp4v-es) yes1 vp8 yes1 [1] firefox only supports 3gp on openmax-based devices, which
currently means the boot to gecko (b2g) platform.
... browser support chrome edge firefox safari amr-nb yes1 amr-wb yes1 amr-wb+ yes1 aac-lc yes1,2 he-aac v1 yes1,2 he-aac v2 yes1,2 mp3 yes1 [1] firefox only supports 3gp on openmax-based devices, which
currently means the boot to gecko (b2g) platform.
... [2] firefox support for av1 is
currently disabled by default; it can be enabled by setting the preference media.av1.enabled to true.
The "codecs" parameter in common media types - Web media technologies
currently, only flags 0 through 2 are used; the other five bits must be zero.
... 4d 00 high profile (hip)
currently, hip is the primary profile used for broadcast and disc-based hd video; it's used both for hd tv broadcasts and for blu-ray video.
... you can also use the codecs parameter when specifying a mime media type to the mediasource.istypesupported() method; this method returns a boolean which indicates whether or not the media is likely to work on the
current device.
Mapping the width and height attributes of media container elements to their aspect-ratio - Web media technologies
note:
currently this effect is being limited to actual <img> elements, as applying to other such elements may have undesirable results.
... it only works before the image loads the new mechanism
currently only works on <img> elements before the image is loaded.
... note: this new mechanism is enabled in firefox 69 in beta and nightly as the spec is worked out (controlled by the layout.css.width-and-height-map-to-aspect-ratio.enabled pref), and it is
currently being implemented in chrome.
Navigation and resource timings - Web Performance
loadeventstart when the load event was sent for the
current document.
...start, time to first byte time to first byte is the time between the navigationstart (start of the navigation) and responsestart, (when the first byte of response data is received) available in the performancetiming api: let ttfb = time.responsestart - time.navigationstart; page load time page load time is the time between navigationstart and the start of when the load event is sent for the
current document.
... request = timing.responsestart - timing.requeststart load event duration by subtracting the time stamp from immediately before the load event of the
current document is fired from the time when the load event of the
current document is completed, you can measure the duration of the load event.
glyph-orientation-horizontal - SVG: Scalable Vector Graphics
the glyph-orientation-horizontal attribute affects the amount that hte
current text position advances as each glyph is rendered.
... when the reference orientation direction is horizontal and the glyph-orientation-horizontal results in an orientation angle that is a multiple of 180 degrees, then the
current text position is incremented according to the horizontal metrics of the glyph.
... otherwise, if the value of this attribute is not a multiple of 180 degrees, then the
current text position is incremented according to the vertical metrics of the glyph.
glyph-orientation-vertical - SVG: Scalable Vector Graphics
the glyph-orientation-vertical attribute affects the amount that hte
current text position advances as each glyph is rendered.
... when the inline-progression-direction is vertical and the glyph-orientation-vertical results in an orientation angle that is a multiple of 180 degrees, then the
current text position is incremented according to the vertical metrics of the glyph.
... otherwise, if the angle is not a multiple of 180 degrees, then the
current text position is incremented according to the horizontal metrics of the glyph.
gradientUnits - SVG: Scalable Vector Graphics
value userspaceonuse | objectboundingbox default value objectboundingbox animatable yes userspaceonuse this value indicates that the attributes represent values in the coordinate system that results from taking the
current user coordinate system in place at the time when the gradient element is referenced (i.e., the user coordinate system for the element referencing the gradient element via a fill or stroke property) and then applying the transform specified by attribute gradienttransform.
... percentages represent values relative to the
current svg viewport.
... value userspaceonuse | objectboundingbox default value objectboundingbox animatable yes userspaceonuse cx, cy, r, fx, fy, and fr represent values in the coordinate system that results from taking the
current user coordinate system in place at the time when the gradient element is referenced (i.e., the user coordinate system for the element referencing the gradient element via a fill or stroke property) and then applying the transform specified by attribute gradienttransform.
kernelUnitLength - SVG: Scalable Vector Graphics
three elements are using this attribute: <feconvolvematrix>, <fediffuselighting>, and <fespecularlighting> feconvolvematrix for the <feconvolvematrix>, kernelunitlength indicates the intended distance in
current filter units (i.e., units as determined by the value of primitiveunits attribute) between successive columns and rows, respectively, in the kernelmatrix.
... fediffuselighting for the <fediffuselighting>, kernelunitlength indicates the intended distance in
current filter units (i.e., units as determined by the value of attribute primitiveunits) for the x and y coordinate, respectively, in the surface normal calculation formulas.
... value <number-optional-number> default value pixel in offscreen bitmap animatable yes fespecularlighting for the <fespecularlighting>, kernelunitlength indicates the intended distance in
current filter units (i.e., units as determined by the value of attribute primitiveunits) for the x and y coordinate, respectively, in the surface normal calculation formulas.
startOffset - SVG: Scalable Vector Graphics
the startoffset attribute defines an offset from the start of the path for the initial
current text position along the path after converting the path to the <textpath> element's coordinate system.
... </textpath> </text> </svg> usage notes value <length-percentage> | <number> default value 0 animatable yes <length-percentage> a length represents a distance along the path measured in the
current user coordinate system for the <textpath> element.
... <number> this value indicates a distance along the path measured in the
current user coordinate system for the <textpath> element.
target - SVG: Scalable Vector Graphics
r.mozilla.org" target="_blank"> <text x="0" y="60">open link in new tab or window</text> </a> <a href="https://developer.mozilla.org" target="_top"> <text x="0" y="100">open link in this tab or window</text> </a> </svg> usage notes value _self | _parent | _top | _blank | <xml-name> default value _self animatable yes _replace the
current svg image is replaced by the linked content in the same rectangular area in the same frame as the
current svg image.
...use _self to replace the
current svg document.
... _self the
current svg image is replaced by the linked content in the same browsing context as the
current svg image.
SVG 1.1 Support in Firefox - SVG: Scalable Vector Graphics
element implementation status a quick overview of the svg 1.1 elements and the
current status of the native support.
...
currentscale and
currenttranslate dom attributes are implemented, but there is no pan and zoom user interface.
... svgsvgelement unimplemented attributes: contentscripttype, contentstyletype, viewport,
currentview unimplemented bindings: getintersectionlist, getenclosurelist, checkintersection, checkenclosure g implemented.
Paths - SVG: Scalable Vector Graphics
l takes two parameters—x and y coordinates—and draws a line from the
current position to a new position.
...this command draws a straight line from the
current position back to the first point of the path.
...if the s command doesn't follow another s or c command, then the
current position of the cursor is used as the first control point.
Using the WebAssembly JavaScript API - WebAssembly
memory imports are useful for two reasons: they allow javascript to fetch and create the initial contents of memory before or con
currently with module compilation.
... in the
current iteration of webassembly, there is only one type of reference needed by webassembly code — functions — and thus only one valid element type.
... thus, tables are
currently a rather low-level primitive used to compile low-level programming language features safely and portably.
2015 MDN Fellowship Program - Archive of obsolete content
to support our efforts, the fellow will review various technical specifications to identify gaps between the documentation and
current situation and refine existing tests to adapt to this cross-browser test harness.
... activities and deliverables identify gaps between existing documentation and
current development environments.
page-mod - Archive of obsolete content
for example, we might want to run a script in the context of the
currently active tab when the user clicks a button: to block certain content, to change the font style, or to display the document's dom structure.
...in
current versions this has been fixed, and the workaround is no longer needed.
cfx to jpm - Archive of obsolete content
the
current tool is called jpm, and is based on node.js.
... activation you need to call cfx activate before you can use cfx, and this only works in the
current command shell: if you open a new shell you have to call activate again.
Creating annotations - Archive of obsolete content
its main job is to maintain a matched element: this is the page element that is the
current candidate for an annotation.
... in the attach handler we do three things: send the content script a message with the
current activation status add the worker to an array called selectors so we can send it messages later on assign a message handler for messages from this worker.
Using third-party modules (jpm) - Archive of obsolete content
the
current tool is called jpm, and is based on node.js.
...by passing a path to the module starting from, but not including "node_modules": var menuitems = require("menuitem"); details create a new directory called, for example, "my-menuitem", navigate to it, type "jpm init" and accept all the defaults: mkdir my-menuitem cd my-menuitem jpm init install the menuitem package from npm: npm install menuitem --save this will install the package in the
current directory, under a directory called "node_modules".
Tutorials - Archive of obsolete content
get the list of open tabs use the tabs module to iterate through the
currently open tabs, and access their content.
... modify the active web page dynamically load a script into the
currently active web page.
Drag & Drop - Archive of obsolete content
next, setup the handlers so that files can be dropped on the application: function _dragover(aevent) { var dragservice = components.classes["@mozilla.org/widget/dragservice;1"].getservice(components.interfaces.nsidragservice); var dragsession = dragservice.get
currentsession(); var supported = dragsession.isdataflavorsupported("text/x-moz-url"); if (!supported) supported = dragsession.isdataflavorsupported("application/x-moz-file"); if (supported) dragsession.candrop = true; } function _dragdrop(aevent) { var dragservice = components.classes["@mozilla.org/widget/dragservice;1"].getservice(components.interfaces.nsidragservice)...
...; var dragsession = dragservice.get
currentsession(); var _ios = components.classes['@mozilla.org/network/io-service;1'].getservice(components.interfaces.nsiioservice); var uris = new array(); // if sourcenode is not null, then the drop was from inside the application if (dragsession.sourcenode) return; // setup a transfer item to retrieve the file data var trans = components.classes["@mozilla.org/widget/transferable;1"].createinstance(components.interfaces.nsitransferable); trans.adddataflavor("text/x-moz-url"); trans.adddataflavor("application/x-moz-file"); for (var i=0; i<dragsession.numdropitems; i++) { var uri = null; dragsession.getdata(trans, i); var flavor = {}, data = {}, length = {}; trans.getanytransferdata(flavo...
File I/O - Archive of obsolete content
here are some of the special locations the directory service supports: (scope: d = product-wide, f = profile wide) string scope meaning achrom d %curprocd%/chrome aplugns d %curprocd%/plugins (deprecated - use aplugnsdl) aplugnsdl d comsd n/a %curprocd%/components curprocd n/a
current working directory (usually the application's installation directory).
... profdef d the profile defaults of the "
current" locale.
HTML to DOM - Archive of obsolete content
ent.createelementns("http://www.w3.org/1999/xhtml", "body"); html.documentelement.appendchild(body); body.appendchild(components.classes["@mozilla.org/feed-unescapehtml;1"] .getservice(components.interfaces.nsiscriptableunescapehtml) .parsefragment(ahtmlstring, false, null, body)); return body; } it works by creating a content-level (this is safer than chrome-level) <div> in the
current page, then parsing the html fragment and attaching that fragment to the <div>.
... the <div> is returned, and it is never actually appended to the
current page.
getAttributeNS - Archive of obsolete content
{ // thisitem's atts // e.g., abc:href, xlink:href while (((result = prefixatt.exec(attrs[j].nodename)) !== null) && thisitem.nodename !== '#document' && thisitem.nodename !== '#document-fragment') { var xmlnsprefix = new regexp('^xmlns:'+result[1]+'$'); // e.g., xmnls:xl, xmlns:xlink // check higher up for xmlns:prefix // check the
current node and if necessary, check for the next matching local name up in the hierarchy (until reaching the document root) while (thisitem.nodename !== '#document' && thisitem.nodename !== '#document-fragment') { attrs2 = thisitem.attributes; for (var i = 0; i < attrs2.length; i++) { // search for any prefixed xmlns declaration on thisitem which match prefixes f...
...on
current element, conditionally on whether its prefix matches a declared namespace see also http://www.w3.org/tr/dom-level-3-cor...mespaceurialgo ...
Creating custom Firefox extensions with the Mozilla build system - Archive of obsolete content
all of these documents
currently assume, however, that you are developing your extension using xul and javascript only.
...ir) and (from a bash-compatible shell) enter: ../build/autoconf/make-makefile extensions/myextension if your $(moz_objdir) is located outside your $(topsrcdir), you'll need to do: $(topsrcdir)/build/autoconf/make-makefile -t $(topsrcdir) extensions/myextension in order for the script to know where your source is (it'll use the extension path you gave it relative to the
current dir to figure out where you want your makefiles to go).
Enhanced Extension Installation - Archive of obsolete content
e principle as installation - the user requests an action through the ui while the application is running and metadata is written (tobeuninstalled, tobedisabled, tobeenabled) and a .autoreg file created in the profile so that on the subsequent startup the extension system's startup routine can remove files (in the uninstall case) and write a new extensions.ini file listing the directories for the
currently "active" items.
... the startup cache data structure is used to reflect the extensions-startup.manifest file over the lifetime of the running application, the extensions-startup.manifest file is written from the
current state of the cache.
Appendix F: Monitoring DOM changes - Archive of obsolete content
their main disadvantage is that, due to their recent advent, support is
currently limited to firefox 14+ and chrome 18.
... as it is
currently possible to attach only a single binding to a given dom node at once, it is important when using this method to detach your binding from a node once your constructor has run.
Handling Preferences - Archive of obsolete content
current preferences: these are stored in the profile directory with the name prefs.js.
...get count() { return this._prefservice.getintpref("extensions.xulschoolhello.message.count"); }, increment : function() { let
currentcount = this._prefservice.getintpref("extensions.xulschoolhello.message.count"); this._prefservice.setintpref("extensions.xulschoolhello.message.count",
currentcount + 1); } one important thing to keep in mind is that the "get" methods of the service can throw an exception if the preference is not found.
Local Storage - Archive of obsolete content
it is ideal for embedding in other programs, and is
currently in use in several popular applications.
...the rdf api may be removed at some point in the future because it requires a great deal of code even for the simplest tasks, and it
currently sees little maintenance, so we don't recommend using it unless you really have to.
Search Extension Tutorial (Draft) - Archive of obsolete content
on", "method", "url"].map( function (k) engine_details[k])) } let engine = services.search.getenginebyname(engine_details.name); // if the engine is not hidden and this is the first run, move // it to the first position in the engine list and select it if (selectsearch && !engine.hidden) { services.search.moveengine(engine, 0); services.search.
currentengine = engine; } } function shutdown(data, reason) { // clean up the search engine on uninstall or disabled.
... removeobserver(); // if the engine is not hidden and this is the first run, move // it to the first position in the engine list and select it if (selectsearch && !engine.hidden) { services.search.moveengine(engine, 0); services.search.
currentengine = engine; } } } // observer topic const engine_added = "browser-search-engine-modified"; function startup(data, reason) { firstrun = reason == addon_install; // re-select the search engine if this is the first run // or we're being re-enabled.
Adding preferences to an extension - Archive of obsolete content
the first thing we need to do is get the
currently configured stock symbol to watch from the preferences.
... next, we call our own refreshinformation() method to immediately fetch and display the
current information about the stock the extension is configured to monitor.
XUL user interfaces - Archive of obsolete content
copy and paste the content from here, making sure that you scroll to get all of it: // xul demonstration var datebox, daybox,
currentday, status; // elements // called by window onload function init() { datebox = document.getelementbyid("date-text") daybox = document.getelementbyid("day-box") status = document.getelementbyid("status") settoday(); } // called by clear button function cleardate() { datebox.value = "" refresh() } // called by today button function settoday() { var d = new date() datebox.valu...
...+ d.getdate() + "/" + d.getfullyear() refresh() } // called by date textbox function refresh() { var d = datebox.value var thedate = null showstatus(null) if (d != "") { try { var a = d.split("/") var thedate = new date(a[2], a[0] - 1, a[1]) showstatus(thedate) } catch (ex) {} } setday(thedate) } // internal function setday(adate) { if (
currentday)
currentday.setattribute("disabled", "true") if (adate == null)
currentday = null else { var d = adate.getday()
currentday = daybox.firstchild while (d-- > 0)
currentday =
currentday.nextsibling
currentday.removeattribute("disabled") } datebox.focus(); } function showstatus(adate) { if (adate == null) { status.removeattribute("warning") status.setattribut...
Creating a dynamic status bar extension - Archive of obsolete content
the real work: <?xml version="1.0" encoding="utf-8"?> <!doctype overlay> <overlay id="stockwatcher-overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script type="application/javascript" src="chrome://stockwatcher/content/stockwatcher.js"/> <!-- firefox --> <statusbar id="status-bar"> <statusbarpanel id="stockwatcher" label="loading..." tooltiptext="
current value" onclick="stockwatcher.refreshinformation()" /> </statusbar> </overlay> also, notice that the definition of the status bar panel now includes a new property, onclick, which references the javascript function that will be executed whenever the user clicks on the status bar panel.
...the status bar panel's label is set to indicate the
current value of the stock, which is stored in fieldarray, by setting the samplepanel.label property.
Localizing an extension - Archive of obsolete content
we also need to update the code to use the entities instead of the strings, so that the substitutions take place based on the
currently active locale.
...the chrome registry resolves the uris based on the user's
current locale setting and the data you provide in your chrome manifest.
Visualizing an audio spectrum - Archive of obsolete content
fft size: " + buffersize + " buffer size: " + buffer.length; } for ( var i = 0; i < buffersize; i++ ) { real[i] = buffer[reversetable[i]]; imag[i] = 0; } var halfsize = 1, phaseshiftstepreal, phaseshiftstepimag,
currentphaseshiftreal,
currentphaseshiftimag, off, tr, ti, tmpreal, i; while ( halfsize < buffersize ) { phaseshiftstepreal = costable[halfsize]; phaseshiftstepimag = sintable[halfsize];
currentphaseshiftreal = 1.0;
currentphaseshiftimag = 0.0; for ( var fftstep = 0; fftste...
...p < halfsize; fftstep++ ) { i = fftstep; while ( i < buffersize ) { off = i + halfsize; tr = (
currentphaseshiftreal * real[off]) - (
currentphaseshiftimag * imag[off]); ti = (
currentphaseshiftreal * imag[off]) + (
currentphaseshiftimag * real[off]); real[off] = real[i] - tr; imag[off] = imag[i] - ti; real[i] += tr; imag[i] += ti; i += halfsize << 1; } tmpreal =
currentphaseshiftreal;
currentphaseshiftreal = (tmpreal * phaseshiftstepreal) - (
currentphaseshiftimag * phaseshiftstepimag);
currentphaseshiftimag = (tmpreal * phaseshiftstepimag) + (
currentphaseshiftimag * phaseshiftstepreal); } halfs...
Creating a Mozilla Extension - Archive of obsolete content
this tutorial describes how to create an extension for the old versions of mozilla suite (
currently seamonkey).
...this tutorial walks you through the process of building a mozilla extension that adds an icon to mozilla's status bar showing the
current status of the mozilla source code (i.e.
popChallengeResponse - Archive of obsolete content
the
current implementation does not conform to that defined in the cmmf draft, and we intend to change this implementation to that defined in the cmc rfc..
... see below for the
current implementation.
Clipboard - Archive of obsolete content
the only flavors
currently implemented are 'plain' (text/unicode) and 'html' (which is html).string"text" here's an example of how to use the method to set the clipboard.
...jetpack.import.future("clipboard");var mycontent = "<i>this is some italic text</i>";jetpack.clipboard.set( mycontent, "html" ); get
currentflavors()returns an array of available jetpack clipboard flavors, for the
current system clipboard state.
Tabs - Archive of obsolete content
blah(lengthstringfocusedstringtostringstringpopstringpushstringreversestringshiftstringsortstringsplicestringunshiftstring)this is some default text lengththe number of open tabsstring focusedthe
current tab in your browserstring tostringstuffstring popstuffstring pushstuffstring reversestuffstring shiftstuffstring sortstuffstring splicestuffstring unshiftstuffstring onready()when the inherited document is fully loaded.
... urlurl to be openedstring jetpack.tabs.open("http://www.example.com/"); blah(lengthstringfocusedstringtostringstringpopstringpushstringreversestringshiftstringsortstringsplicestringunshiftstring)this is some default text lengththe number of open tabsstring focusedthe
current tab in your browserstring tostringstuffstring popstuffstring pushstuffstring reversestuffstring shiftstuffstring sortstuffstring splicestuffstring unshiftstuffstring onready()when the inherited document is fully loaded.
slideBar - Archive of obsolete content
when a slidebar feature is selected its contents will be revealed from behind the
current webpage.
... it
currently under development and lives in the future.
The web and web standards - Learn web development
old web sites will still continue to work), and forwards compatible (future technologies in turn will be compatible with what we
currently have).
...recent published figures say that there are
currently around 19 million web developers in the world, and that figure is set more than double in the next decade.
Getting started with HTML - Learn web development
if you want to display the linked content in the
current tab, just omit this attribute.
...one of my favorite drummers is neal peart, who\ plays in the band <a href="https://en.wikipedia.org/wiki/rush_%28band%29" title="rush wikipedia article">rush</a>.\ my favourite rush album is
currently <a href="http://www.deezer.com/album/942295">moving pictures</a>.</p>\ <img src="https://udn.realityripple.com/samples/4b/9bb5edda5d.jpg">'; var solutionentry = htmlsolution; textarea.addeventlistener('input', updatecode); window.addeventlistener('load', updatecode); // stop tab key tabbing out of textarea and // make it write a tab at the caret position instead textarea.onkeydown = function...
HTML text fundamentals - Learn web development
this document's body
currently contains multiple pieces of content—they aren't marked up in any way, but they are separated with linebreaks (enter/return pressed to go onto the next line).
...> <li>if you want a coarse "chunky" hummus, process it for a short time.</li> <li>if you want a smooth hummus, process it for a longer time.</li> </ol> since the last two bullets are very closely related to the one before them (they read like sub-instructions or choices that fit below that bullet), it might make sense to nest them inside their own unordered list, and put that list inside the
current fourth bullet.
Image gallery - Learn web development
adding an onclick handler to each thumbnail image in each loop iteration, you need to add an onclick handler to the
current newimage — this handler should find the value of the src attribute of the
current image.
...you need to add an onclick handler that: checks the
current class name set on the <button> — you can again achieve this by using getattribute().
Drawing graphics - Learn web development
we'll be using some common methods and properties across all of the below sections: beginpath() — start drawing a path at the point where the pen
currently is on the canvas.
...when the mouse moves, we fire a function set as the onmousemove event handler, which captures the
current x and y values.
Adding features to our bouncing balls demo - Learn web development
but there are a couple of differences: in the outer if statement, you no longer need to check whether the
current ball in the iteration is the same as the ball that is doing the checking — because it is no longer a ball, it is the evil circle!
... at the point where you loop through every ball and call the draw(), update(), and collisiondetect() functions for each one, make it so that these functions are only called if the
current ball exists.
Introduction to the server side - Learn web development
sites like google maps can use saved or
current locations for providing routing information, and search or travel history to highlight local businesses in search results.
... store session/state information server-side programming allows developers to make use of sessions — basically, a mechanism that allows a server to store information on the
current user of a site and send different responses based on that information.
Ember Interactivity: Footer functionality, conditional rendering - Learn web development
however, if you try to click the "clear completed" button now, it won't appear to do anything, because there is
currently no way to "complete" a todo.
...ntent for the block form of "if" {{/if}} so let's try replacing this part of footer.hbs: <strong>{{this.todos.incomplete.length}}</strong> todos left with the following: <strong>{{this.todos.incomplete.length}}</strong> {{#if this.todos.incomplete.length === 1}} todo {{else}} todos {{/if}} left this will give us an error, however — in ember, these simple if statements can
currently only test for a truthy/falsy value, not a more complex expression such as a comparison.
Ember interactivity: Events, classes and state - Learn web development
this function's contents are fairly easy to understand — when the function is invoked, a new todo object instance is created with a text value of text, and the todos property value is updated to all of the
current items inside the array (accessed conveniently using spread syntax), plus the new todo.
...this makes it accessible via this.todos inside both the class and the template: import component from '@glimmer/component'; import { inject as service } from '@ember/service'; export default class todolistcomponent extends component { @service('todo-data') todos; } one issue here is that our service is called todos, but the list of todos is also called todos, so
currently we would access the data using this.todos.todos.
Routing in Ember - Learn web development
at the moment, we already have the "all" page, as we are
currently not doing any filtering in the page that we've been working with, but we will need to reorganize it a bit to handle a different view for the "active" and "completed" todos.
...inside todolist one small final thing that we need to fix is that previously, inside todomvc/app/components/todo-list.hbs, we were accessing the todo-data service directly and looping over all todos, as shown here: {{#each this.todos.all as |todo| }} since we now want to have our todolist component show a filtered list, we'll want to pass an argument to the todolist component representing the "
current list of todos", as shown here: {{#each @todos as |todo| }} and that's it for this tutorial!
Beginning our React todo list - Learn web development
implementing our styles paste the following css code into src/index.css so that it replaces what's
currently there: /* resets */ *, *::before, *::after { box-sizing: border-box; } *:focus { outline: 3px dashed #228bec; outline-offset: 0; } html { font: 62.5% / 1.15 sans-serif; } h1, h2 { margin-bottom: 0; } ul { list-style: none; padding: 0; } button { border: none; margin: 0; padding: 0; width: auto; overflow: visible; background: transparent; color: inherit; font: inhe...
...ont-smoothing: antialiased; cursor: pointer; position: absolute; z-index: 1; margin: 0; opacity: 0; } .c-cb > label { font-size: inherit; font-family: inherit; line-height: inherit; display: inline-block; margin-bottom: 0; padding: 8px 15px 5px; cursor: pointer; touch-action: manipulation; } .c-cb > label::before { content: ""; position: absolute; border: 2px solid
currentcolor; background: transparent; } .c-cb > input[type="checkbox"]:focus + label::before { border-width: 4px; outline: 3px dashed #228bec; } .c-cb > label::after { box-sizing: content-box; content: ""; position: absolute; top: 11px; left: 9px; width: 18px; height: 7px; transform: rotate(-45deg); border: solid; border-width: 0 0 5px 5px; border-top-color: transparent; op...
Deployment and next steps - Learn web development
code along with us git clone the github repo (if you haven't already done it) with: git clone https://github.com/opensas/mdn-svelte-tutorial.git then to get to the
current app state, run cd mdn-svelte-tutorial/08-next-steps or directly download the folder's content: npx degit opensas/mdn-svelte-tutorial/08-next-steps remember to run npm install && npm run dev to start your app in development mode.
... you can also check the progress of the
current and previous jobs from the ci / cd > jobs menu option of your gitlab project.
Using Vue computed properties - Learn web development
currently, we're not actually tracking the "done" data in any fashion, so the number of completed items does not change.
...we want to find the item with the matching id and update its done status to be the opposite of its
current status: updatedonestatus(todoid) { const todotoupdate = this.todoitems.find(item => item.id === todoid) todotoupdate.done = !todotoupdate.done } we want to run this method whenever a todoitem emits a checkbox-changed event, and pass in its item.id as the parameter.
HTTP logging
go to the web site that is broken for you and make the bug happen in the browser) make a note of the value of "
current log file".
... quit firefox is if it's
currently running, by using the quit option in the file menu.
ESLint
understanding rules and errors not all files are linted
currently eslint runs on: .js .jsx .jsm .xml .html .xhtml additionally, some directories and files are ignored, see the .eslintignore file handling errors if your code fails an eslint rule, you'll get an error similar to this: /gecko/toolkit/mozapps/installer/js-compare-ast.js 18:39 error 'snarf' is not defined.
... no-undef the no-undef rule is
currently being enabled throughout the code base.
Eclipse CDT Manual Setup
eclipse cdt doesn't
currently understand objective-c files (although there is a project that promises to add objective-c support), so for now, this is the best we can do to give eclipse a chance of expanding its understanding of the source into the objective-c files.
... if you can't untick "use default build command", you must change the
current builder by clicking on "tool chain editor" (in c/c++ build) and choosing another builder (e.g., "gnu make builder").
Contributing to the Mozilla code base
mozilla is a large project and we are thrilled to have contributors with very diverse skills below is a table with our
currently available projects to contribute to, along with the skills needs and links to their documentation.
...we'll be integrating some information from these pages soon, but until then you may find them interesting in their
current form: a guide to learning the mozilla codebase a beginner's guide to spidermonkey, mozilla's javascript engine mozilla platform development cheatsheet (archive.org) ...
Linux compatibility matrix
distribution kernel glibc glib gtk+2 gtk+3 pixman stdc++ gcc clang python3 released eol notes red backgrounds denote lack of compatibility with
current versions of firefox.
... yellow backgrounds denote compatibility with esr78 green backgrounds denote compatibility with the
current release (as of writing, 78) greener backgrounds denote compatibility with the
current mozilla-central (as of writing, 80).
Performance
s to global services) in a frame script bad: //framescript.js services.obs.addobserver("document-element-inserted", { observe: function(doc, topic, data) { if(doc.ownerglobal.top != content) return; // bail out if this is for another tab decoratedocument(doc); } }) observer notifications get fired for events that happen anywhere in the browser, they are not scoped to the
current tab.
... // framescript.js function onlyonceinabluemoon() { // we only need this during a total solar eclipse while goat blood rains from the sky sendasyncmessage('my-addon:paragraph-count', {num: content.document.queryselectorall('p').length}) } addmessagelistener("my-addon:request-from-parent", onlyonceinabluemoon) better: // addon.js function ontoolbarbutton(event) { let tabmm = gbrowser.m
currentbrowser.frameloader.messagemanager; let button = event.target; let callback = (message) => { tabmm.removemessagelistener("my-addon:paragraph-count", callback) decoratebutton(button, message.data.num) } tabmm.addmessagelistener("my-addon:paragraph-count", callback); tabmm.loadframescript("data:,sendasyncmessage('my-addon:paragraph-count', {num: content.document.queryselectorall('p...
Performance best practices for Firefox front-end engineers
these methods generally return the most-recently-calculated value for the requested value, which means the value may no longer be
current, but may still be "close enough" for your needs.
...if you can make do with information that may not be quite
current, this can be helpful.
Firefox and the "about" protocol
here is a complete list of urls in the about: pseudo protocol: about: page description about:about provides an overview of all about: pages available for your
current firefox version about:addons add-ons manager about:buildconfig displays the configuration and platform used to build firefox about:cache displays information about the memory, disk, and appcache about:checkerboard switches to the checkerboarding measurement page, which allows to detect checkerboarding issues about:config provides a way t...
...see firefox reader view for clutter-free web pages about:rights displays rights information about:robots special page showing notes about robots about:serviceworkers displays
currently running service workers about:studies lists the shield studies that are installed about:sessionrestore session restoration (displayed after a firefox crash) about:support troubleshooting information (also available through firefox menu > ?
Using the Browser API
we'll be using this term throughout the
current article, and other parts of the documentation.
... var searchactive = false; prev.disabled = true; next.disabled = true; next, we add an event listener to the searchform so that when it is submitted, the htmliframeelement.findall() method is used to do a search for the string entered into the search input element (searchbar) within the text of the
current page (the second parameter can be changed to 'case-insensitive' if you want a case-insensitive search.) we then enable the previous and next buttons, set searchactive to true, and blur() the search bar to make the keyboard disappear and stop taking up our screen once the search is submitted.
HTMLIFrameElement.getActive()
the getactive() method of the htmliframeelement indicates whether the
current browser <iframe> is the
currently active frame.
... syntax var amiactive = instanceofhtmliframeelement.getactive(); returns a boolean indicating whether the
current browser <iframe> is the
currently active frame (true) or not (false.) parameters none.
HTMLIFrameElement.getVolume()
the getvolume() method of the htmliframeelement gets the
current volume of the browser <iframe>.
... example callback version: var browser = document.queryselector('iframe'); var request = browser.getvolume(); request.onsuccess = function() { console.log('the
current browser volume is ' + request.result); } promise version: var browser = document.queryselector('iframe'); browser.getvolume().then(function(volume) { console.log('the
current browser volume is ' + volume); }); specification not part of any specification.
mozbrowserloadend
non-standard this feature is not on a
current w3c standards track, but it is supported on the firefox os platform.
...can be used to make the theme of the surrounding ui complement the theme of the
currently loaded content, for example.
MozBeforePaint
this new property indicates the time, in milliseconds since epoch, at which all animations started in the specified window during the
current refresh interval should be considered to have started running.
...this computes the
current position for the animating box and updates the box's position on screen, and, if the animation sequence is not yet complete, calls window.requestanimationframe() to schedule the next animation frame to be drawn.
HTML parser threading
(there's
currently one parser thread serving all parser instances.) data received from document.write() is parsed on the main thread.
...mtokenizermutex protects most data structures on nshtml5streamparser from con
current access.
How Mozilla determines MIME Types
it does the following: checks the start of the file for "magic numbers"; this can
currently detect pdf and postscript.
... externalhelperappservice (located at uriloader/exthandler/nsexternalhelperappservice.cpp) the file->mime type mapping works like this: on beos, the operating system is asked for the type of the file (not quite yet, bug 217723) on macos, the type and creator code will be used to lookup the type of the file from the os a hardcoded list of extensions is checked (containing
currently 13 entries, nsexternalhelperappservice.cpp line 463 (this is done for speed – it is faster to find data in the hardcoded list than asking the os or looking in preferences) if the extension is not listed there, it becomes interesting.
AddonUpdateChecker
ility, in string appversion, in string platformversion ) parameters updates an array of update objects version the version of the add-on to get new compatibility information for ignorecompatibility an optional parameter to get the first compatibility update that is compatible with any version of the application or toolkit appversion the version of the application or null to use the
current version platformversion the version of the platform or null to use the
current version getnewestcompatibleupdate() returns the newest available update from a list of update objects.
... updateinfo getnewestcompatibleupdate( in updateinfo updates[], in string appversion, in string platformversion ) parameters updates an array of update objects appversion the version of the application or null to use the
current version platformversion the version of the platform or null to use the
current version checkforupdates() starts an update check.
Add-on Repository
results passed to the searchcallback object only include add-ons that are compatible with the
current application and are not already installed or in the process of being installed.
... issearching boolean true if a search is
currently in progress; otherwise false.
Widget Wrappers
areatype the type of the widget's
current area isgroup true, will be false for wrappers around single widget nodes source for api-provided widgets, whether they are built-in to firefox or add-on-provided disabled for api-provided widgets, whether the widget is
currently disabled.
...this will point to the overflow chevron on overflowable toolbars if and only if your widget node is overflowed, to the anchor for the panel menu if your widget is inside the panel menu, and to the node itself in all other cases overflowed boolean indicating whether the node is
currently in the overflow panel of the toolbar isgroup false, will be true for the group widget label for api-provided widgets, convenience getter for the label attribute of the dom node tooltiptext for api-provided widgets, convenience getter for the tooltiptext attribute of the dom node disabled for api-provided widgets, convenience getter and setter for ...
DownloadTarget
it
currently indicates the size of the main file (such as the html document) rather than the sum of all of the files' sizes, but you must not rely upon this behavior, as it is subject to change.
... methods refresh() updates the state of a finished, failed, or canceled download based on the
current state as indicated by the file system.
Examples
this can be used for chaining: components.utils.import("resource://gre/modules/osfile.jsm") os.file.get
currentdirectory().then(
currentdir => { let path = os.path.join(
currentdir, ".mozconfig"); return os.file.exists(path).then(exists => { console.log(exists ?
... "you have .mozconfig in " +
currentdir : "you don't have .mozconfig in " +
currentdir); }); }).then(null, components.utils.reporterror); parallel promise (this example needs more work) so when chaining promises, consequent promises run after the previous promise completes.
Bootstrapping a new locale
make sure to have the directory where you intend to work as the
current path on your terminal.
... warning: don't copy and paste these commands; you need to replace "ab-cd" with your language identifier first and 1.9.x with the most
current release branch.
Localization and Plurals
this module provides a couple methods for localizing to the browser's
current locale as well as getting methods to localize to a desired plural rule.
... components.utils.import("resource://gre/modules/pluralform.jsm"); methods: get these methods make use of the browser's
current locale specified by chrome://global/locale/intl.properties's pluralrule value.
Localization content best practices
example: you have chosen a keyword that is
currently in use by "%s".
... # localization note(generalsiteidentity): %1$s is the owner of the
current website, # %2$s is the name of the certification authority signing the certificate.
Localizing with Mercurial
localizing
current versions of firefox, thunderbird and seamonkey includes working with mercurial.
... note the dot (".") at the end of the second command, which means the
current directory.
Localizing without a specialized tool
get the source change your
current directory to your working directory with the following command: $ cd /path/to/your/working/directory first, you will need to check out the sources of mozilla-1.9.2 together with the en-us strings.
...this will automatically create an "x-testing" directory in your
current directory (you should be in l10n-mozilla-1.9.2).
Localization sign-off reviews
sign-off dashboards to the right, you'll see the
current sign-offs page for a german localization.
... the diff generated for sign-off reviews the image to the right illustrates the revisions diff between the
current release revision and your newly proposed release revision.
Mozilla MathML Status
an overview of the mathml 3 elements/attributes - excluding deprecated ones - and the
current status of the native support.
...the sections are marked with their
current status: supported, in progress, and not
currently supported.
Mozilla Style System Documentation
style context management a style context (class nsstylecontext,
currently also interface nsistylecontext although the interface should go away when all of the style systems can be moved back into the layout dll) represents the style data for a css formatting object.
...these methods may all return an existing style context rather than a new one (see stylesetimpl::getcontext), if there is a
current style context with the same parent, that matches the same rules (a check that is easy because of the ruletree), and is for the same pseudo-element (or not for a pseudo-element, or a "non-element").
mozilla::CondVar
assert
currentthreadownsmutex() assert that the
current thread has successfully locked the mutex undergirding this condvar.
... assertnot
currentthreadownsmutex() assert that the
current thread has not successfully locked the mutex undergirding this condvar.
nsIWebBrowserFind
wrapfind boolean whether the search wraps around to the start (or end) of the document if no match was found between the
current position and the end (or beginning).
... methods findnext() finds, highlights, and scrolls into view the next occurrence of the search string, using the
current search settings.
nsIWebBrowserFindInFrames
attributes attribute type description
currentsearchframe nsidomwindow frame at which to start the search.
... searchparentframes boolean whether to allow the search to propagate out of the
currentsearchframe into its parent frame(s).
nsIWebPageDescriptor
inherits from: nsisupports last changed in gecko 1.7 method overview void loadpage(in nsisupports apagedescriptor, in unsigned long adisplaytype); attributes attribute type description
currentdescriptor nsisupports retrieves the page descriptor for the
current document.
...note that if the descriptor is that of the source of another page, this keeps the source view, but uses the
current syntax highlighting preference.
nsIXULWindow
highestz 9 methods addchildwindow() tell this window that it has picked up a child xul window.note that xul windows do not
currently track child xul windows.
...note that xul windows do not
currently track child xul windows.
nsIZipWriter
boolean hasentry(in autf8string azipentry); void open(in nsifile afile, in print32 aioflags); void processqueue(in nsirequestobserver aobserver, in nsisupports acontext); void removeentry(in autf8string azipentry, in boolean aqueue); attributes attribute type description comment acstring gets or sets the comment associated with the
currently open zip file.
... getentry() returns a specified entry or null if there is no such entry in the
current zip file.
nsIAbCard/Thunderbird3
documentation for the old nsiabcard interface is
currently at nsiabcard.
... properties
currently supported on the card: names: firstname, lastname phoneticfirstname, phoneticlastname displayname, nickname spousename, familyname primaryemail, secondemail home contact: homeaddress, homeaddress2, homecity, homestate, homezipcode, homecountry homephone, homephonetype work contact.
Performance
you may want to check the sqlite_version definition in db/sqlite3/src/sqlite3.h for the
current version if you are having problems.
...it keeps pages associated with the
current transaction so it can roll them back, and it also keeps recently used ones so it can run faster.
Storage
the api is
currently "unfrozen", which means it is subject to change at any time; in fact, it has changed somewhat with each release of firefox since it was introduced, and will likely continue to do so for a while.
... storage inspector extension makes it easy to view any sqlite database files in the
current profile.
Events
ondestroyingview the
current folder view is being destroyed.
... a folder is being unloaded, includes deletion onloadingfolder a folder is being loaded onmakeactive a folderdisplaywidget becomes active onmessagecountschanged the counts of the messages changed onmessagesloaded the messages in the folder have been loaded onmessagesremovalfailed removing some messages from the
current folder failed onmessagesremoved some messages of the
current message list have been removed onsearching a folder view derived from a search is being loaded, e.g.
nsIMsgCloudFileProvider
cancelfileupload() cancels an upload
currently in progress for some nsilocalfile.
... void cancelfileupload(in nsilocalfile afile); parameters afile the nsilocalfile that is
currently being uploaded to cancel.
Thunderbird Binaries
thunderbird
current release can be downloaded from https://www.mozilla.org/thunderbird/ past thunderbird releases can be downloaded from https://releases.mozilla.org/pub/thunderbird/releases/ early preview releases whilst writing new versions of thunderbird, developers release preview versions, known as betas.
... latest english trunk builds are available at: https://archive.mozilla.org/pub/thunderbird/nightly/latest-comm-central/ latest localized trunk builds are available at: https://archive.mozilla.org/pub/thunderbird/nightly/latest-comm-central-l10n/ note: please use http://ftp.stage.mozaws.net/pub/thunderbird/nightly/latest-comm-central/ because the above two links
currently do not work.
Adding items to the Folder Pane
when this happens, the folder pane consults the map-generator for the
current mode, and that generator returns the necessary data for the folder pane's display.
...removeeventlistener("load", gnumbersext.load, false); let tree = document.getelementbyid("foldertree"); tree.addeventlistener("maprebuild", gnumbersext._insert, false); }, _insert: function gne__insert() { // this function is called when a rebuild occurs } }; window.addeventlistener("load", gnumbersext.load, true); the structure of folder-tree-items the folder pane stores its
current display data in a property called _rowmap.
Building a Thunderbird extension 6: Adding JavaScript
in this step we will create a small piece of javascript code that inserts the
current date into our statusbar widget.
...it then uses javascript's date class to get the
current date, which it converts into a string that has the format of yyyy.mm.dd.
Creating a Custom Column
for this we overlay messenger.xul, by placing the following line in our chrome.manifest file: overlay chrome://messenger/content/messenger.xul chrome://replyto_col/content/replyto_col_overlay.xul now that our overlay is set up we need to connect a column to the
current columns that exist.
... our replyto_col_overlay.xul should now contain something similar to this: <?xml version="1.0"?> <overlay id="sample" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <tree id="threadtree"> <treecols id="threadcols"> <splitter class="tree-splitter" /> <treecol id="colreplyto" persist="hidden ordinal width"
currentview="unthreaded" flex="2" label="reply-to" tooltiptext="click to sort by the reply-to header" /> </treecols> </tree> <!-- include our javascript file --> <script type="text/javascript" src="chrome://replyto_col/content/replyto_col.js"/> </overlay> that's it!
Using the Multiple Accounts API
the
current plans prevent sharing of information between accounts using the ui.
...
currently, you can set the default smtp server to something else by setting the defaultserver property on the smtpservice, but that will not be saved to disk.
Tips - Firefox Developer Tools
click the inspector icon () next to the element{} rule to lock the highlighter on the
current element.
... web console in all panels: esc opens the split console; useful when debugging, or inspecting nodes in the command line: $0 references the
currently selected node.
Console messages - Firefox Developer Tools
by default, the console is cleared each time you navigate to a new page or reload the
current page.
... synchronous and asynchronous reflows if a change is made that invalidates the
current layout — for example, the browser window is resized or some javascript modifies an element's css — the layout is not recalculated immediately.
AmbientLightSensor.AmbientLightSensor() - Web APIs
the ambinentlightsensor() constructor creates a new ambientlightsensor object, which returns the
current light level or illuminance of the ambient light around the hosting device.
... syntax var ambientlightsensor = new ambientlightsensor(options) parameters options optional
currently only one option is supported: frequency: the desired number of times per second a sample should be taken, meaning the number of times per second that sensor.onreading will be called.
AnalyserNode.fftSize - Web APIs
example the following example shows basic usage of an audiocontext to create an analysernode, then requestanimationframe and <canvas> to collect time domain data repeatedly and draw an "oscilloscope style" output of the
current audio input.
... analyser.fftsize = 2048; var bufferlength = analyser.frequencybincount ; var dataarray = new uint8array(bufferlength); analyser.getbytetimedomaindata(dataarray); // draw an oscilloscope of the
current audio source function draw() { drawvisual = requestanimationframe(draw); analyser.getbytetimedomaindata(dataarray); canvasctx.fillstyle = 'rgb(200, 200, 200)'; canvasctx.fillrect(0, 0, width, height); canvasctx.linewidth = 2; canvasctx.strokestyle = 'rgb(0, 0, 0)'; canvasctx.beginpath(); var slicewidth = width * 1.0 / bufferlength; var ...
AnalyserNode.getByteFrequencyData() - Web APIs
the getbytefrequencydata() method of the analysernode interface copies the
current frequency data into a uint8array (unsigned byte array) passed into it.
... example the following example shows basic usage of an audiocontext to create an analysernode, then requestanimationframe and <canvas> to collect frequency data repeatedly and draw a "winamp bargraph style" output of the
current audio input.
AnalyserNode.getFloatTimeDomainData() - Web APIs
the getfloattimedomaindata() method of the analysernode interface copies the
current waveform, or time-domain, data into a float32array array passed into it.
... example the following example shows basic usage of an audiocontext to create an analysernode, then requestanimationframe and <canvas> to collect time domain data repeatedly and draw an "oscilloscope style" output of the
current audio input.
Animation() - Web APIs
although in the future other effects such as sequenceeffects or groupeffects might be possible, the only kind of effect
currently available is keyframeeffect.
...
currently the only timeline type available is documenttimeline, but in the future there my be timelines associated with gestures or scrolling, for example.
Animation.cancel() - Web APIs
when an animation is cancelled, its starttime and
currenttime are set to null.
... exceptions this method doesn't directly throw exceptions; however, if the animation's playstate is anything but "idle" when cancelled, the
current finished promise is rejected with a domexception named aborterror.
Animation.pause() - Web APIs
exceptions invalidstateerror the animation's
currenttime is unresolved (for example, if it's never been played or isn't
currently playing) and the end time of the animation is positive infinity.
... throws an invalidstateerror if the animation's
currenttime is unresolved (perhaps it hasn't started playing yet) and the end time of the animation is positive infinity.
Animation.playbackRate - Web APIs
animations have a playback rate that provides a scaling factor from the rate of change of the animation's timeline time values to the animation’s
current time.
... syntax var
currentplaybackrate = animation.playbackrate; animation.playbackrate = newrate; value takes a number that can be 0, negative, or positive.
Animation.startTime - Web APIs
syntax var animationstartedwhen = animation.starttime; animation.starttime = newstarttime; value a floating-point number representing the
current time in milliseconds, or null if no time is set.
... you can read this value to determine what the start time is
currently set at, and you can change this value to make the animation start at a different time.
Animation.updatePlaybackRate() - Web APIs
in such a case, setting the playbackrate on the animation directly may cause the animation's playback position to jump since its playback position on the main thread may have drifted from the playback position where it is
currently running.
... updateplaybackrate() is an asynchronous method that sets the speed of an animation after synchronizing with its
current playback position, ensuring that the resulting change in speed does not produce a sharp jump.
AudioBuffer.copyFromChannel() - Web APIs
channelnumber the channel number of the
current audiobuffer to copy the channel data from.
... the value of startinchannel is outside the
current range of samples that already exist in the source buffer; that is, it's greater than its
current length.
AudioBufferSourceNode.loopEnd - Web APIs
syntax audiobuffersourcenode.loopend = endoffsetinseconds; var endoffsetinseconds = audiobuffersourcenode.loopend; value a floating-point number indicating the offset, in seconds, into the audio buffer at which each loop will loop return to the beginning of the loop (that is, the
current play time gets reset to audiobuffersourcenode.loopstart).
...then the
current play position will loop back to the 20 second mark and continue playing until the 25 second mark, ad infinitum (or at least until stop() is called).
AudioNode.connect() - Web APIs
outputindex optional an index specifying which output of the
current audionode to connect to the destination.
... inputindex optional an index describing which input of the destination you want to connect the
current audionode to; the default is 0.
A basic ray-caster - Web APIs
after realizing, to my delight, that the nifty <canvas> element i'd been reading about was not only soon to be supported in firefox, but was already supported in the
current version of safari, i had to try a little experiment.
...after every interval an update function will repaint the canvas showing the
current view.
ChildNode.replaceWith() - Web APIs
with(node) { replacewith("foo"); } // referenceerror: replacewith is not defined polyfill you can polyfill the replacewith() method in internet explorer 10+ and higher with the following code: function replacewithpolyfill() { 'use-strict'; // for safari, and ie > 10 var parent = this.parentnode, i = arguments.length,
currentnode; if (!parent) return; if (!i) // if there are no arguments parent.removechild(this); while (i--) { // i-- decrements i and returns the value of i before the decrement
currentnode = arguments[i]; if (typeof
currentnode !== 'object'){
currentnode = this.ownerdocument.createtextnode(
currentnode); } else if (
currentnode.parentnode){
currentnode.parentnode.removec...
...hild(
currentnode); } // the value of "i" below is after the decrement if (!i) // if
currentnode is the first argument (
currentnode === arguments[0]) parent.replacechild(
currentnode, this); else // if
currentnode isn't the first parent.insertbefore(
currentnode, this.nextsibling); } } if (!element.prototype.replacewith) element.prototype.replacewith = replacewithpolyfill; if (!characterdata.prototype.replacewith) characterdata.prototype.replacewith = replacewithpolyfill; if (!documenttype.prototype.replacewith) documenttype.prototype.replacewith = replacewithpolyfill; specification specification status comment domthe definition of 'childnode.replacewith()' in that specification.
Client.url - Web APIs
the url read-only property of the client interface returns the url of the
current service worker client.
... example self.addeventlistener('notificationclick', function(event) { console.log('on notification click: ', event.notification.tag); event.notification.close(); // this looks to see if the
current is already open and // focuses if it is event.waituntil(clients.matchall({ type: 'window' }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus' in client) return client.focus(); } if (clients.openwindow) return clients.openwindow('/'); })); }); specifications specification status comment service workersthe definition of 'url' in that specification.
Clients.matchAll() - Web APIs
available options are: includeuncontrolled: a boolean — if set to true, the matching operation will return all service worker clients who share the same origin as the
current service worker.
... otherwise, it returns only the service worker clients controlled by the
current service worker.
CompositionEvent.data - Web APIs
syntax mydata = compositionevent.data value a domstring representing the event data: for compositionstart events, this is the
currently selected text that will be replaced by the string being composed.
... for compositionupdate, this is the string as it stands
currently as editing is ongoing.
CompositionEvent.locale - Web APIs
the locale read-only property of the compositionevent interface returns the locale of
current input method (for example, the keyboard layout locale if the composition is associated with ime).
... syntax mylocale = compositionevent.locale value a domstring representing the locale of
current input method.
console - Web APIs
console.groupend() exits the
current inline group.
... to exit the
current group, simply call console.groupend().
ConstantSourceNode.offset - Web APIs
to access the offset parameter's
current value, access the parameter's value property, as shown in the syntax box above.
...with the linkage above in place, that can be done using this simple event handler: function handleclickevent(event) { volumeslidercontrol.value = constantsource.offset.value; } all this function has to do is fetch the
current value of the slider control we're using to control the paired nodes' gains, then store that value into the constantsourcenode's offset parameter.
ContentIndex.delete() - Web APIs
the delete() method of the contentindex interface unregisters an item from the
currently indexed content.
...we receive a reference to the
current serviceworkerregistration, which allows us to access the index property and thus access the delete method.
ContentIndex.getAll() - Web APIs
needs to be under the scope of the
current service worker.
... registration = await navigator.serviceworker.ready; // get our index entries const entries = await registration.index.getall(); // create a containing element const readinglistelem = document.createelement('div'); // test for entries if (!array.length) { // if there are no entries, display a message const message = document.createelement('p'); message.innertext = 'you
currently have no articles saved for offline reading.' readinglistelem.append(message); } else { // if entries are present, display in a list of links to the content const listelem = document.createelement('ul'); for (const entry of entries) { const listitem = document.createelement('li'); const anchorelem = document.createelement('a'); anchorelem.innertext = entr...
CrashReportBody - Web APIs
current possible reasons are: oom: the browser ran out of memory.
... some sample json might look like this: { "type": "crash", "age": 42, "url": "https://example.com/", "user_agent": "mozilla/5.0 (x11; linux x86_64; rv:60.0) gecko/20100101 firefox/60.0", "body": { "reason": "oom" } } note: crash reports are always delivered to the endpoint group named default; there is
currently no way to override this.
CustomEvent - Web APIs
event.
currenttarget read only a reference to the
currently registered target for the event.
... this is the object to which the event is
currently slated to be sent.
DOMException - Web APIs
transactioninactiveerror a request was placed against a transaction that is
currently not active or is finished (no legacy code value and constant name).
... notallowederror the request is not allowed by the user agent or the platform in the
current context, possibly because the user denied permission (no legacy code value and constant name).
DOMTokenList.forEach() - Web APIs
syntax tokenlist.foreach(callback [, thisarg]); parameters callback function to execute for each element, eventually taking three arguments:
currentvalue the
current element being processed in the array.
...
currentindex the index of the
current element being processed in the array.
DataTransfer.clearData() - Web APIs
agstarthandler); draggable.addeventlistener('dragend', dragendhandler); dropable.addeventlistener('dragover', dragoverhandler); dropable.addeventlistener('dragleave', dragleavehandler); dropable.addeventlistener('drop', drophandler); function dragstarthandler (event) { status.innerhtml = 'drag in process'; // change target element's border to signify drag has started event.
currenttarget.style.border = '1px dashed blue'; // start by clearing existing clipboards; this will affect all types since we // don't give a specific type.
...t's id for data) event.datatransfer.setdata('text/plain', event.target.id); data.innerhtml = event.datatransfer.getdata('text/plain'); } function dragendhandler (event) { if (!dropped) { status.innerhtml = 'drag canceled'; } data.innerhtml = event.datatransfer.getdata('text/plain') || 'empty'; // change border to signify drag is no longer in process event.
currenttarget.style.border = '1px solid black'; if (dropped) { // remove all event listeners draggable.removeeventlistener('dragstart', dragstarthandler); draggable.removeeventlistener('dragend', dragendhandler); dropable.removeeventlistener('dragover', dragoverhandler); dropable.removeeventlistener('dragleave', dragleavehandler); dropable.removeeventlistener('dro...
DocumentTimeline.DocumentTimeline() - Web APIs
the documenttimeline() constructor of the web animations api creates a new instance of the documenttimeline object associated with the active document of the
current browsing context.
...
currently the only supported option is the origintime member which specifies the zero time for the documenttimeline as a real number of milliseconds relative to the navigationstart moment of the active document for the
current browsing context.
DocumentTimeline - Web APIs
constructor documenttimeline() creates a new documenttimeline object associated with the active document of the
current browsing context.
... animationtimeline.
currenttime returns the time value in milliseconds for this timeline or null if it is inactive.
DynamicsCompressorNode - Web APIs
dynamicscompressornode.reduction read only is a float representing the amount of gain reduction
currently applied by the compressor to the signal.
... // create a mediaelementaudiosourcenode // feed the htmlmediaelement into it var source = audioctx.createmediaelementsource(myaudio); // create a compressor node var compressor = audioctx.createdynamicscompressor(); compressor.threshold.setvalueattime(-50, audioctx.
currenttime); compressor.knee.setvalueattime(40, audioctx.
currenttime); compressor.ratio.setvalueattime(12, audioctx.
currenttime); compressor.attack.setvalueattime(0, audioctx.
currenttime); compressor.release.setvalueattime(0.25, audioctx.
currenttime); // connect the audiobuffersourcenode to the destination source.connect(audioctx.destination); button.onclick = function() { var active = button.getatt...
EXT_disjoint_timer_query.queryCounterEXT() - Web APIs
the ext_disjoint_timer_query.querycounterext() method of the webgl api records the
current time into the corresponding query object.
... syntax void ext.querycounterext(query, target); parameters query a webglquery object for which to record the
current time.
Element: MSManipulationStateChanged event - Web APIs
bubbles unknown cancelable unknown interface msmanipulationevent event handler property unknown get manipulation states using the laststate and
currentstate properties.
... examples // listen for panning state change events outerscroller.addeventlistener("msmanipulationstatechanged", function(e) { // check to see if they lifted while pulled to the top if (e.
currentstate == ms_manipulation_state_inertia && outerscroller.scrolltop === 0) { refreshitemsasync(); } }); specifications not part of any specification.
Element.classList - Web APIs
s, "classlist")) polyfillclasslist(this); return this.classlist; }, configurable: 0, set: function(val){this.classname = val} }); } catch(e) { // less performant fallback for older browsers (ie 6-8): window[" ucl"] = polyfillclasslist; // the below code ensures polyfillclasslist is applied to all
current and future elements in the doc.
...it's
currently unable to polyfill out-of-document-elements (e.g.
Element.requestFullscreen() - Web APIs
currently, the only option is navigationui, which controls whether or not to show navigation ui while the element is in full-screen mode.
...the rejection handler receives one of the following exception values: typeerror the typeerror exception may be delivered in any of the following situations: the document containing the element isn't fully active; that is, it's not the
current active document.
Event.target - Web APIs
it is different from event.
currenttarget when the event handler is called during the bubbling or capturing phase of the event.
... // make a list const ul = document.createelement('ul'); document.body.appendchild(ul); const li1 = document.createelement('li'); const li2 = document.createelement('li'); ul.appendchild(li1); ul.appendchild(li2); function hide(evt) { // e.target refers to the clicked <li> element // this is different than e.
currenttarget, which would refer to the parent <ul> in this context evt.target.style.visibility = 'hidden'; } // attach the listener to the list // it will fire when each <li> is clicked ul.addeventlistener('click', hide, false); specifications specification status comment domthe definition of 'event.target' in that specification.
Event.timeStamp - Web APIs
syntax time = event.timestamp; value this value is the number of milliseconds elapsed from the beginning of the
current document's lifetime till the event was created.
... example html <p> focus this iframe and press any key to get the
current timestamp for the keypress event.
Event - Web APIs
event.
currenttarget read only a reference to the
currently registered target for the event.
... this is the object to which the event is
currently slated to be sent.
EventTarget.removeEventListener() - Web APIs
notes if an eventlistener is removed from an eventtarget while it is processing an event, it will not be triggered by the
current actions.
... calling removeeventlistener() with arguments that do not identify any
currently registered eventlistener on the eventtarget has no effect.
ExtendableEvent - Web APIs
var cache_version = 1; var
current_caches = { prefetch: 'prefetch-cache-v' + cache_version }; self.addeventlistener('install', function(event) { var urlstoprefetch = [ './static/pre_fetched.txt', './static/pre_fetched.html', 'https://www.chromium.org/_/rsrc/1302286216006/config/customlogo.gif' ]; console.log('handling install event.
... resources to pre-fetch:', urlstoprefetch); event.waituntil( caches.open(
current_caches['prefetch']).then(function(cache) { return cache.addall(urlstoprefetch.map(function(urltoprefetch) { return new request(urltoprefetch, {mode: 'no-cors'}); })).then(function() { console.log('all resources have been fetched and cached.'); }); }).catch(function(error) { console.error('pre-fetching failed:', error); }) ); }); important: when fetching resources, it's very important to use {mode: 'no-cors'} if there is any chance that the resources are served off of a server that doesn't support cors.
FeaturePolicy - Web APIs
the featurepolicy interface of the feature policy api represents the set of policies applied to the
current execution context.
...feature whose name appears on the list might not be allowed by the feature policy of the
current execution context and/or might not be accessible because of user's permissions.
Cross-global fetch usage - Web APIs
when a cross-origin fetch involving a relative url is initiated from an <iframe>, the relative url used to be resolved against the
current global location, rather than the iframe's location.
...frame.contentwindow.fetch() the url passed to fetch needs to be relative the problem in the past we would resolve the relative url against the
current global, for example: let absolute = new url(relative, window.location.href) this is not a problem as such.
FileError - Web APIs
invalid_state_err 7 the operation cannot be performed on the
current state of the interface object.
... not_readable_err 4 the file or directory cannot be read, typically due to permission problems that occur after a reference to a file has been acquired (for example, the file or directory is con
currently locked by another application).
HTMLProgressElement - Web APIs
htmlprogresselement.positionread only returns a double value returning the result of dividing the
current value (value) by the maximum value (max); if the progress bar is an indeterminate progress bar, it returns -1.
... htmlprogresselement.value is a double value that reflects the
current value; if the progress bar is an indeterminate progress bar, it returns 0.
HTMLScriptElement - Web APIs
examples dynamically importing scripts let's create a function that imports new scripts within a document creating a <script> node immediately before the <script> that hosts the following code (through document.
currentscript).
... function loaderror(oerror) { throw new urierror("the script " + oerror.target.src + " didn't load correctly."); } function prefixscript(url, onloadfunction) { var newscript = document.createelement("script"); newscript.onerror = loaderror; if (onloadfunction) { newscript.onload = onloadfunction; } document.
currentscript.parentnode.insertbefore(newscript, document.
currentscript); newscript.src = url; } this next function, instead of prepending the new scripts immediately before the document.
currentscript element, appends them as children of the <head> tag.
HTMLTextAreaElement - Web APIs
this is "forward" if selection was performed in the start-to-end direction of the
current locale, or "backward" for the opposite direction.
... tabindex long: returns / sets the position of the element in the tabbing navigation order for the
current document.
HTMLTrackElement: cuechange event - Web APIs
the cuechange event fires when a texttrack has changed the
currently displaying cues.
... bubbles no cancelable no interface event event handler oncuechange examples on the texttrack you can set up a listener for the cuechange event on a texttrack using the addeventlistener() method: track.addeventlistener('cuechange', function () { let cues = track.activecues; // array of
current cues }); or you can just set the oncuechange event handler property: track.oncuechange = function () { let cues = track.activecues; // array of
current cues } on the track element the underlying texttrack, indicated by the track property, receives a cuechange event every time the
currently-presented cue is changed.
Recommended Drag Types - Web APIs
stbox ondragenter="return checkdrag(event)" ondragover="return checkdrag(event)" ondrop="dodrop(event)"/> <script> function checkdrag(event) { return event.datatransfer.types.contains("application/x-moz-file"); } function dodrop(event) { var file = event.datatransfer.mozgetdataat("application/x-moz-file", 0); if (file instanceof components.interfaces.nsifile) { event.
currenttarget.appenditem(file.leafname); } } </script> in this example, the event returns false only if the data transfer contains the application/x-moz-file type.
...the following sample offers an overview of this advanced case: //
currentevent is an existing drag operation event
currentevent.datatransfer.setdata("text/x-moz-url", url);
currentevent.datatransfer.setdata("application/x-moz-file-promise-url", url);
currentevent.datatransfer.setdata("application/x-moz-file-promise-dest-filename", leafname);
currentevent.datatransfer.mozsetdataat('application/x-moz-file-promise', new dataprovider(success,error), ...
Headers.delete() - Web APIs
the delete() method of the headers interface deletes a header from the
current headers object.
... example creating an empty headers object is simple: var myheaders = new headers(); //
currently empty you could add a header to this using headers.append: myheaders.append('content-type', 'image/jpeg'); myheaders.get('content-type'); // returns 'image/jpeg' you can then delete it again: myheaders.delete('content-type'); myheaders.get('content-type'); // returns null, as it has been deleted specifications specification status comment fetchthe definition of 'd...
History.go() - Web APIs
syntax history.go([delta]) parameters delta optional the position in the history to which you want to move, relative to the
current page.
... examples to move back one page (the equivalent of calling back()): history.go(-1) to move forward a page, just like calling forward(): history.go(1) to move forward two pages: history.go(2); to move backwards by two pages: history.go(-2); and, finally either of the following statements will reload the
current page: history.go(); history.go(0); specifications specification status comment html living standardthe definition of 'history.go()' in that specification.
IDBCursor.advance() - Web APIs
invalidstateerror the cursor is
currently being iterated or has iterated past its end.
... note that in each iteration of the loop, you can grab data from the
current record under the cursor object using cursor.value.foo.
IDBCursor.continue() - Web APIs
invalidstateerror the cursor is
currently being iterated or has iterated past its end.
...also note that in each iteration of the loop, you can grab data from the
current record under the cursor object using cursor.value.foo.
IDBCursor.source - Web APIs
this function never returns null or throws an exception, even if the cursor is
currently being iterated, has iterated past its end, or its transaction is not active.
...also note that in each iteration of the loop, you can grab data from the
current record under the cursor object using cursor.value.foo.
IDBCursorWithValue - Web APIs
idbcursorwithvalue.value read only returns the value of the
current cursor.
...also note that in each iteration of the loop, you can grab data from the
current record under the cursor object using cursor.value.foo.
IDBDatabase.objectStoreNames - Web APIs
the objectstorenames read-only property of the idbdatabase interface is a domstringlist containing a list of the names of the object stores
currently in the connected database.
... syntax var list[] = idbdatabase.objectstorenames; value a domstringlist containing a list of the names of the object stores
currently in the connected database.
IDBFactory.open() - Web APIs
syntax for the
current standard: var idbopendbrequest = indexeddb.open(name); var idbopendbrequest = indexeddb.open(name, version); parameters name the name of the database.
... example example of calling open with the
current specification's version parameter: var request = window.indexeddb.open("todolist", 4); in the following code snippet, we make a request to open a database, and include handlers for the success and error cases.
IDBIndex.keyPath - Web APIs
the keypath property of the idbindex interface returns the key path of the
current index.
... the key path of the
current index is logged to the console: it should be returned as lname.
IDBIndex.locale - Web APIs
the locale read-only property of the idbindex interface returns the locale of the index (for example en-us, or pl) if it had a locale value specified upon its creation (see createindex()'s optionalparameters.) note that this property always returns the
current locale being used in this index, in other words, it never returns "auto".
...+ '<td>' + cursor.value.company + '</td>' + '<td>' + cursor.value.email + '</td>' + '<td>' + cursor.value.phone + '</td>' + '<td>' + cursor.value.age + '</td>'; tableentry.appendchild(tablerow); cursor.continue(); } else { console.log('entries all displayed.'); } }; }; specification not
currently part of any specification.
IDBIndex.name - Web APIs
invalidstateerror the index, or its object store, has been deleted; or the
current transaction is not an upgrade transaction.
... transactioninactiveerror the
current transaction is not active.
IDBIndex.objectStore - Web APIs
the objectstore property of the idbindex interface returns the name of the object store referenced by the
current index.
... the
current object store is logged to the console: it should be returned something like this: idbobjectstore { name: "contactslist", keypath: "id", indexnames: domstringlist[7], transaction: idbtransaction, autoincrement: false } finally, we iterate through each record, and insert the data into an html table.
IDBIndex.unique - Web APIs
syntax var isunique = idbindex.unique; value a boolean: value effect true the
current index does not allow duplicate values for a key.
... false the
current index allows duplicate key values.
IDBObjectStore.clear() - Web APIs
this is for deleting all the
current data out of an object store.
... example in the following code snippet, we open a read/write transaction on our database and clear all the
current data out of the object store using clear().
IDBObjectStore.name - Web APIs
invalidstateerror either the object store has been deleted or the
current transaction is not an upgrade transaction; you can only rename indexes during upgrade transactions; that is, when the mode is "versionchange".
... transactioninactiveerror the
current transaction is not active.
IdleDeadline.timeRemaining() - Web APIs
the timeremaining() method on the idledeadline interface returns the estimated number of milliseconds remaining in the
current idle period.
... syntax timeremaining = idledeadline.timeremaining(); return value a domhighrestimestamp value (which is a floating-point number) representing the number of milliseconds the user agent estimates are left in the
current idle period.
IntersectionObserverEntry.intersectionRect - Web APIs
the intersectionobserverentry interface's read-only intersectionrect property is a domrectreadonly object which describes the smallest rectangle that contains the entire portion of the target element which is
currently visible within the intersection root.
... syntax var intersectionrect = intersectionobserverentry.intersectionrect; value a domrectreadonly which describes the part of the target element that's
currently visible within the root's intersection rectangle.
KeyboardEvent.code - Web APIs
angle is the
current amount of rotation applied to the ship, in degrees; it starts at 0° (pointing straight up).
...this function computes the new position of the ship given the distance moved and the
current direction the ship is facing.
KeyboardEvent.getModifierState() - Web APIs
the keyboardevent.getmodifierstate() method returns the
current state of the specified modifier key: true if the modifier is active (that is the modifier key is pressed or locked), otherwise, false.
... "accel" virtual modifier note: the "accel" virtual modifier has been effectively deprecated in
current drafts of the dom3 events specification.
KeyboardLayoutMap.forEach() - Web APIs
syntax keyboardlayoutmap.foreach(function callback(
currentvalue[, index[, array]]) { //your iterator }[, thisarg]); parameters callback 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.
Location: replace() - Web APIs
the replace() method of the location interface replaces the
current resource with the one at the provided url.
... the difference from the assign() method is that after using replace() the
current page will not be saved in session history, meaning the user won't be able to use the back button to navigate to it.
MSManipulationEvent - Web APIs
properties property description
currentstateread only returns the
current state of a manipulation event.
... example interface msmanipulationevent extends uievent { readonly
currentstate: number; readonly inertiadestinationx: number; readonly inertiadestinationy: number; readonly laststate: number; initmsmanipulationevent(typearg: string, canbubblearg: boolean, cancelablearg: boolean, viewarg: window, detailarg: number, laststate: number,
currentstate: number): void; readonly ms_manipulation_state_active: number; readonly ms_manipulation_state_cancell...
MediaKeyStatusMap.forEach() - Web APIs
syntax mediakeystatusmap.foreach(callback[, thisarg]) parameters callback function to execute for each element, taking three arguments:
currentvalue the
current element being processed in the array.
... index the index of the
current element being processed in the array.
MediaPositionState.duration - Web APIs
the mediapositionstate dictionary's duration property is used when calling the mediasession method setpositionstate() to provide the user agent with the overall total duration in seconds of the media
currently being performed.
... for example, a browser might use this information along with the position property and the navigator.mediasession.playbackstate, as well as the session's metadata to provide an integrated common user interface showing the
currently playing media as well as standard pause, play, forward, reverse, and other controls.
MediaQueryList.matches - Web APIs
the matches read-only property of the mediaquerylist interface is a boolean that returns true if the document
currently matches the media query list, or false if not.
... syntax var matches = <varm>mediaquerylist.matches; value a boolean which is true if the document
currently matches the media query list; otherwise, it's false.
Notification - Web APIs
notification.permission read only a string representing the
current permission to display notifications.
... examples assume this basic html: <button onclick="notifyme()">notify me!</button> it's possible to send a notification as follows — here we present a fairly verbose and complete set of code you could use if you wanted to first check whether notifications are supported, then check if permission has been granted for the
current origin to send notifications, then request permission if required, before then sending a notification.
Notifications API - Web APIs
first, the user needs to grant the
current origin permission to display system notifications, which is generally done when the app or site initialises, using the notification.requestpermission() method.
...once a choice has been made, the setting will generally persist for the
current session.
OVR_multiview2 - Web APIs
currently, there is no way to use multiview to render to a multisampled backbuffer, so you should create contexts with antialias: false.
...most vr headsets have two views, but there are prototypes of headset with ultra-wide fov using 4 views which is
currently the maximum number of views supported by multiview.
OfflineAudioContext.resume() - Web APIs
if the context is not
currently suspended or the rendering has not started, the promise is rejected with invalidstateerror.
... invalidstateerror if the context is not
currently suspended or the rendering has not started.
OscillatorNode.detune - Web APIs
syntax var oscillator = audioctx.createoscillator(); oscillator.detune.setvalueattime(100, audioctx.
currenttime); // value in cents note: though the audioparam returned is read-only, the value it represents is not.
... // create web audio api context var audioctx = new (window.audiocontext || window.webkitaudiocontext)(); // create oscillator node var oscillator = audioctx.createoscillator(); oscillator.type = 'square'; oscillator.frequency.setvalueattime(440, audioctx.
currenttime); // value in hertz oscillator.detune.setvalueattime(100, audioctx.
currenttime); // value in cents oscillator.start(); specifications specification status comment web audio apithe definition of 'detune' in that specification.
OscillatorNode.frequency - Web APIs
syntax var oscillator = audioctx.createoscillator(); oscillator.frequency.setvalueattime(440, audioctx.
currenttime); // value in hertz note: though the audioparam returned is read-only, the value it represents is not.
... // create web audio api context var audioctx = new (window.audiocontext || window.webkitaudiocontext)(); // create oscillator node var oscillator = audioctx.createoscillator(); oscillator.type = 'square'; oscillator.frequency.setvalueattime(440, audioctx.
currenttime); // value in hertz oscillator.start(); specifications specification status comment web audio apithe definition of 'frequency' in that specification.
OscillatorNode.stop() - Web APIs
if the time is equal to or before the
current audio context time, the oscillator will stop playing immediately.
... // create web audio api context var audioctx = new (window.audiocontext || window.webkitaudiocontext)(); // create oscillator node var oscillator = audioctx.createoscillator(); oscillator.connect(audioctx.destination); oscillator.start(); oscillator.stop(audioctx.
currenttime + 2); // stop 2 seconds after the
current time specifications specification status comment web audio apithe definition of 'stop' in that specification.
OverconstrainedError.OverconstrainedError() - Web APIs
the overconstrainederror constructor creates a new overconstrainederror object which indicates that the set of desired capabilities for the
current mediastreamtrack cannot
currently be met.
... when this event is thrown on a mediastreamtrack, it is muted until either the
current constraints can be established or until satisfiable constraints are applied.
OverconstrainedError - Web APIs
the overconstrainederror interface of the media capture and streams api indicates that the set of desired capabilities for the
current mediastreamtrack cannot
currently be met.
... when this event is thrown on a mediastreamtrack, it is muted until either the
current constraints can be established or until satisfiable constraints are applied.
Page Visibility API - Web APIs
the page visibility api provides events you can watch for to know when a document becomes visible or hidden, as well as features to look at the
current visibility state of the page.
... document.visibilitystate read only a domstring indicating the document's
current visibility state.
PaintWorklet - Web APIs
properties paintworklet.devicepixelratio returns the
current device's ratio of physical pixels to logical pixels.
... css.paintworklet.addmodule() the addmodule() method, inhertied from the worklet interface loads the module in the given javascript file and adds it to the
current paintworklet.
PannerNode.coneInnerAngle - Web APIs
this value determines the volume of the sound outside of both inner and outer cone // setting it to 0 means there is no sound, so we can clearly hear when we leave the cone // 0 is also the default panner.coneoutergain = 0; // increase the z position to ensure the cone has an effect // (otherwise the sound is located at the same position as the listener) panner.positionz.setvalueattime(1, context.
currenttime); having set up the pannernode, we can now schedule some updates to its y-axis rotation: // calculate the vector for no rotation // this means the sound will play at full volume const [x1, y1, z1] = yrotationtovector(0); // schedule the no-rotation vector immediately panner.orientationx.setvalueattime(x1, context.
currenttime); panner.orientationy.setvalueattime(y1, context.
currenttime); pan...
...ner.orientationz.setvalueattime(z1, context.
currenttime); // calculate the vector for -22.4 degrees // since our coneouterangle is 45, this will just about make the sound audible // if we set it to +/-22.5, the sound volume will be 0, as the threshold is exclusive const [x2, y2, z2] = yrotationtovector(-22.4); panner.orientationx.setvalueattime(x2, context.
currenttime + 2); panner.orientationy.setvalueattime(y2, context.
currenttime + 2); panner.orientationz.setvalueattime(z2, context.
currenttime + 2); finally, let's connect all our nodes and start the oscillator!
PannerNode.coneOuterAngle - Web APIs
this value determines the volume of the sound outside of both inner and outer cone // setting it to 0 means there is no sound, so we can clearly hear when we leave the cone // 0 is also the default panner.coneoutergain = 0; // increase the z position to ensure the cone has an effect // (otherwise the sound is located at the same position as the listener) panner.positionz.setvalueattime(1, context.
currenttime); having set up the pannernode, we can now schedule some updates to its y-axis rotation: // calculate the vector for no rotation // this means the sound will play at full volume const [x1, y1, z1] = yrotationtovector(0); // schedule the no-rotation vector immediately panner.orientationx.setvalueattime(x1, context.
currenttime); panner.orientationy.setvalueattime(y1, context.
currenttime); pan...
...ner.orientationz.setvalueattime(z1, context.
currenttime); // calculate the vector for -22.4 degrees // since our coneouterangle is 45, this will just about make the sound audible // if we set it to +/-22.5, the sound volume will be 0, as the threshold is exclusive const [x2, y2, z2] = yrotationtovector(-22.4); panner.orientationx.setvalueattime(x2, context.
currenttime + 2); panner.orientationy.setvalueattime(y2, context.
currenttime + 2); panner.orientationz.setvalueattime(z2, context.
currenttime + 2); finally, let's connect all our nodes and start the oscillator!
PannerNode.coneOuterGain - Web APIs
this value determines the volume of the sound outside of both inner and outer cone // setting it to 0 means there is no sound, so we can clearly hear when we leave the cone // 0 is also the default panner.coneoutergain = 0; // increase the z position to ensure the cone has an effect // (otherwise the sound is located at the same position as the listener) panner.positionz.setvalueattime(1, context.
currenttime); having set up the pannernode, we can now schedule some updates to its y-axis rotation: // calculate the vector for no rotation // this means the sound will play at full volume const [x1, y1, z1] = yrotationtovector(0); // schedule the no-rotation vector immediately panner.orientationx.setvalueattime(x1, context.
currenttime); panner.orientationy.setvalueattime(y1, context.
currenttime); pan...
...ner.orientationz.setvalueattime(z1, context.
currenttime); // calculate the vector for -22.4 degrees // since our coneouterangle is 45, this will just about make the sound audible // if we set it to +/-22.5, the sound volume will be 0, as the threshold is exclusive const [x2, y2, z2] = yrotationtovector(-22.4); panner.orientationx.setvalueattime(x2, context.
currenttime + 2); panner.orientationy.setvalueattime(y2, context.
currenttime + 2); panner.orientationz.setvalueattime(z2, context.
currenttime + 2); finally, let's connect all our nodes and start the oscillator!
PannerNode.orientationX - Web APIs
this value determines the volume of the sound outside of both inner and outer cone // setting it to 0 means there is no sound, so we can clearly hear when we leave the cone // 0 is also the default panner.coneoutergain = 0; // increase the z position to ensure the cone has an effect // (otherwise the sound is located at the same position as the listener) panner.positionz.setvalueattime(1, context.
currenttime); having set up the pannernode, we can now schedule some updates to its y-axis rotation: // calculate the vector for no rotation // this means the sound will play at full volume const [x1, y1, z1] = yrotationtovector(0); // schedule the no-rotation vector immediately panner.orientationx.setvalueattime(x1, context.
currenttime); panner.orientationy.setvalueattime(y1, context.
currenttime); pan...
...ner.orientationz.setvalueattime(z1, context.
currenttime); // calculate the vector for -22.4 degrees // since our coneouterangle is 45, this will just about make the sound audible // if we set it to +/-22.5, the sound volume will be 0, as the threshold is exclusive const [x2, y2, z2] = yrotationtovector(-22.4); panner.orientationx.setvalueattime(x2, context.
currenttime + 2); panner.orientationy.setvalueattime(y2, context.
currenttime + 2); panner.orientationz.setvalueattime(z2, context.
currenttime + 2); finally, let's connect all our nodes and start the oscillator!
PannerNode.orientationY - Web APIs
this value determines the volume of the sound outside of both inner and outer cone // setting it to 0 means there is no sound, so we can clearly hear when we leave the cone // 0 is also the default panner.coneoutergain = 0; // increase the z position to ensure the cone has an effect // (otherwise the sound is located at the same position as the listener) panner.positionz.setvalueattime(1, context.
currenttime); having set up the pannernode, we can now schedule some updates to its y-axis rotation: // calculate the vector for no rotation // this means the sound will play at full volume const [x1, y1, z1] = yrotationtovector(0); // schedule the no-rotation vector immediately panner.orientationx.setvalueattime(x1, context.
currenttime); panner.orientationy.setvalueattime(y1, context.
currenttime); pan...
...ner.orientationz.setvalueattime(z1, context.
currenttime); // calculate the vector for -22.4 degrees // since our coneouterangle is 45, this will just about make the sound audible // if we set it to +/-22.5, the sound volume will be 0, as the threshold is exclusive const [x2, y2, z2] = yrotationtovector(-22.4); panner.orientationx.setvalueattime(x2, context.
currenttime + 2); panner.orientationy.setvalueattime(y2, context.
currenttime + 2); panner.orientationz.setvalueattime(z2, context.
currenttime + 2); finally, let's connect all our nodes and start the oscillator!
PannerNode.orientationZ - Web APIs
this value determines the volume of the sound outside of both inner and outer cone // setting it to 0 means there is no sound, so we can clearly hear when we leave the cone // 0 is also the default panner.coneoutergain = 0; // increase the z position to ensure the cone has an effect // (otherwise the sound is located at the same position as the listener) panner.positionz.setvalueattime(1, context.
currenttime); having set up the pannernode, we can now schedule some updates to its y-axis rotation: // calculate the vector for no rotation // this means the sound will play at full volume const [x1, y1, z1] = yrotationtovector(0); // schedule the no-rotation vector immediately panner.orientationx.setvalueattime(x1, context.
currenttime); panner.orientationy.setvalueattime(y1, context.
currenttime); pan...
...ner.orientationz.setvalueattime(z1, context.
currenttime); // calculate the vector for -22.4 degrees // since our coneouterangle is 45, this will just about make the sound audible // if we set it to +/-22.5, the sound volume will be 0, as the threshold is exclusive const [x2, y2, z2] = yrotationtovector(-22.4); panner.orientationx.setvalueattime(x2, context.
currenttime + 2); panner.orientationy.setvalueattime(y2, context.
currenttime + 2); panner.orientationz.setvalueattime(z2, context.
currenttime + 2); finally, let's connect all our nodes and start the oscillator!
ParentNode - Web APIs
parentnode.queryselector() returns the first element with the
current element as root that matches the specified group of selectors.
... parentnode.queryselectorall() returns a nodelist representing a list of elements with the
current element as root that matches the specified group of selectors.
PasswordCredential.idName - Web APIs
the idname property of the passwordcredential interface returns a usvstring, representing the name that will be used for the id field, when submitting the
current object to a remote endpoint via fetch.
... syntax var idname = passwordcredential.idname passwordcredential.idname = "userid" value a usvstring represents the name used for the id field, when submitting the
current object to a remote endpoint via fetch.
PasswordCredential.passwordName - Web APIs
the passwordname property of the passwordcredential interface returns a usvstring, depicting the name used by the password field, when submitting the
current object to a remote endpoint via fetch.
... syntax var passwordname = passwordcredential.passwordname passwordcredential.passwordname = "passcode" value a usvstring representing the password field name, used when submitting the
current object to a remote endpoint via fetch.
PasswordCredential - Web APIs
passwordcredential.idname secure context a usvstring containing the name that will be used for the id field when submitting the
current object to a remote endpoint via fetch.
... passwordcredential.passwordname secure context a usvstring representing the name that will be used for the password field when submitting the
current object to a remote endpoint via fetch.
PaymentAddress.toJSON() - Web APIs
requires the comma-delineated list in dom.payments.request.supportedregions to contain one or more of the supported 2-character iso locales,
currently us and ca.disabled from version 62: this feature is behind the dom.payments.request.enabled preference (needs to be set to true).
...requires the comma-delineated list in dom.payments.request.supportedregions to contain one or more of the supported 2-character iso locales,
currently us and ca.disabled from version 62: this feature is behind the dom.payments.request.enabled preference (needs to be set to true).
PaymentMethodChangeEvent.methodName - Web APIs
the read-only methodname property of the paymentmethodchangeevent interface is a string which uniquely identifies the payment handler
currently selected by the user.
... syntax var methodname = paymentmethodchangeevent.methodname; value a domstring which uniquely identifies the
currently-selected payment handler.
performance.measure() - Web APIs
the measure() method creates a named timestamp in the browser's performance entry buffer between marks, the navigation start time, or the
current time.
...if it is omitted, then the
current time is used.
PerformanceNavigationTiming.domComplete - Web APIs
the domcomplete read-only property returns a timestamp representing the time value equal to the time immediately before the user agent sets the
current document readiness of the
current document to complete.
... syntax perfentry.domcomplete; return value a timestamp representing a time value equal to the time immediately before the user agent sets the
current document readiness of the
current document to complete.
PerformanceNavigationTiming.domContentLoadedEventEnd - Web APIs
the domcontentloadedeventend read-only property returns a timestamp representing the time value equal to the time immediately after the
current document's domcontentloaded event completes.
... syntax perfentry.domcontentloadedeventend; return value a timestamp representing the time value equal to the time immediately after the
current document's domcontentloaded event completes.
PerformanceNavigationTiming.domContentLoadedEventStart - Web APIs
the domcontentloadedeventstart read-only property returns a timestamp representing the time value equal to the time immediately before the user agent fires the domcontentloaded event at the
current document.
... syntax perfentry.domcontentloadedeventstart; return value a timestamp representing the time value equal to the time immediately before the user agent fires the domcontentloaded event at the
current document.
PerformanceNavigationTiming.domInteractive - Web APIs
the dominteractive read-only property returns a timestamp representing the time value equal to the time immediately before the user agent sets the
current document readiness of the
current document to interactive.
... syntax perfentry.dominteractive; return value a timestamp representing the time value equal to the time immediately before the user agent sets the
current document readiness of the
current document to interactive.
PerformanceNavigationTiming.loadEventEnd - Web APIs
the loadeventend read-only property returns a timestamp which is equal to the time when the load event of the
current document is completed.
... syntax perfentry.loadeventend; return value a timestamp representing the time when the load event of the
current document is completed.
PerformanceNavigationTiming.loadEventStart - Web APIs
the loadeventstart read-only property returns a timestamp representing the time value equal to the time immediately before the load event of the
current document is fired.
... syntax perfentry.loadeventstart; return value a timestamp representing a time value equal to the time immediately before the load event of the
current document is fired.
Using Service Workers - Web APIs
when no pages are using the
current version, the new worker activates and becomes responsible for fetches.
... self.addeventlistener('activate', (event) => { var cachekeeplist = ['v2']; event.waituntil( caches.keys().then((keylist) => { return promise.all(keylist.map((key) => { if (cachekeeplist.indexof(key) === -1) { return caches.delete(key); } })); }) ); }); developer tools chrome has chrome://inspect/#service-workers, which shows
current service worker activity and storage on a device, and chrome://serviceworker-internals, which shows more detail and allows you to start/stop/debug the worker process.
ShadowRoot.delegatesFocus - Web APIs
this is
currently an experimental non-standard feature, available only in chrome.
...let hostelem = shadow.delegatesfocus; specifications this feature is not
currently in a specification.
SourceBuffer.mode - Web APIs
its sourcebuffer.updating property is
currently true), the last media segment appended to this sourcebuffer is incomplete, or this sourcebuffer has been removed from the mediasource.
... example this snippet sets the sourcebuffer mode to 'sequence' if it is
currently set to 'segments', thus setting the play order to the sequence in which media segments are appended.
SourceBuffer.updating - Web APIs
the updating read-only property of the sourcebuffer interface indicates whether the sourcebuffer is
currently being updated — i.e.
... whether an sourcebuffer.appendbuffer(), sourcebuffer.appendstream(), or sourcebuffer.remove() operation is
currently in progress.
SpeechRecognition.lang - Web APIs
the lang property of the speechrecognition interface returns and sets the language of the
current speechrecognition.
... syntax var mylang = myspeechrecognition.lang; myspeechrecognition.lang = 'en-us'; value a domstring representing the bcp 47 language tag for the
current speechrecognition.
SpeechRecognitionEvent.results - Web APIs
the results read-only property of the speechrecognitionevent interface returns a speechrecognitionresultlist object representing all the speech recognition results for the
current session.
... specifically this object will contain all final results that have been returned, followed by the
current best hypothesis for all interim results.
SpeechSynthesis.speaking - Web APIs
the speaking read-only property of the speechsynthesis interface is a boolean that returns true if an utterance is
currently in the process of being spoken — even if speechsynthesis is in a paused state.
...this is quite a long sentence to say.'); var utterance2 = new speechsynthesisutterance('we should say another sentence too, just to be on the safe side.'); synth.speak(utterance1); synth.speak(utterance2); var amispeaking = synth.speaking; // will return true if utterance 1 or utterance 2 are
currently being spoken specifications specification status comment web speech apithe definition of 'speaking' in that specification.
SpeechSynthesis - Web APIs
speechsynthesis.speaking read only a boolean that returns true if an utterance is
currently in the process of being spoken — even if speechsynthesis is in a paused state.
... speechsynthesis.getvoices() returns a list of speechsynthesisvoice objects representing all the available voices on the
current device.
Storage.getItem() - Web APIs
function setstyles() { var
currentcolor = localstorage.getitem('bgcolor'); var
currentfont = localstorage.getitem('font'); var
currentimage = localstorage.getitem('image'); document.getelementbyid('bgcolor').value =
currentcolor; document.getelementbyid('font').value =
currentfont; document.getelementbyid('image').value =
currentimage; htmlelem.style.backgroundcolor = '#' +
currentcolor; pelem.style.fontfamily = cu...
...rrentfont; imgelem.setattribute('src',
currentimage); } note: to see this used within a real world example, see our web storage demo.
Storage - Web APIs
if(!localstorage.getitem('bgcolor')) { populatestorage(); } setstyles(); function populatestorage() { localstorage.setitem('bgcolor', document.getelementbyid('bgcolor').value); localstorage.setitem('font', document.getelementbyid('font').value); localstorage.setitem('image', document.getelementbyid('image').value); } function setstyles() { var
currentcolor = localstorage.getitem('bgcolor'); var
currentfont = localstorage.getitem('font'); var
currentimage = localstorage.getitem('image'); document.getelementbyid('bgcolor').value =
currentcolor; document.getelementbyid('font').value =
currentfont; document.getelementbyid('image').value =
currentimage; htmlelem.style.backgroundcolor = '#' +
currentcolor; pelem.style.fontfamily = cu...
...rrentfont; imgelem.setattribute('src',
currentimage); } note: to see this running as a complete working example, see our web storage demo.
StorageEstimate.quota - Web APIs
example in this example, we obtain the usage estimates and present the percentage of storage capacity
currently used to the user.
... html content <label> you’re
currently using about <output id="percent"> </output>% of your available storage.
StorageEstimate.usage - Web APIs
example in this example, we obtain the usage estimates and present the percentage of storage capacity
currently used to the user.
... html content <label> you’re
currently using about <output id="percent"> </output>% of your available storage.
Using the Storage Access API - Web APIs
since it does not know whether it
currently has access to storage, it should first call document.hasstorageaccess().
...}); note that access requests are automatically denied unless the embedded content is
currently processing a user gesture such as a tap or click — so this code needs to be run inside some kind of user gesture-based event handler, for example: btn.addeventlistener('click', () => { // run code here }); ...
Using readable streams - Web APIs
if there is more stream to read, you process the
current chunk then run the function again.
...
current chunk = ' + chunk; list2.appendchild(listitem); result += chunk; // read some more, and call this function again return reader.read().then(processtext); }); } closing and cancelling streams we’ve already shown examples of using readablestreamdefaultcontroller.close() to close a reader.
Using writable streams - Web APIs
only chrome
currently has basic writable streams implemented.
... this
currently only has one method available on it — writablestreamdefaultcontroller.error(), which when invoked causes future interactions with the stream to error.
StylePropertyMapReadOnly.forEach() - Web APIs
syntax stylepropertymapreadonly.foreach(function callback(
currentvalue[, index[, array]]) { //your code }[, thisarg]); parameters callback the function to execute for each element, taking three arguments:
currentvalue the value of the
current element being processed.
... indexoptional the index of the
current element being processed.
SyncEvent.lastChance - Web APIs
the syncevent.lastchance read-only property of the syncevent interface returns true if the user agent will not make further synchronization attempts after the
current attempt.
... syntax var lastchance = syncevent.lastchance value a boolean that indicates whether the user agent will not make further synchronization attempts after the
current attempt.
Text.replaceWholeText() - Web APIs
the replaced nodes are removed, including the
current node, unless it was the recipient of the replacement text.
... the returned node is the
current node unless the
current node is read only, in which case the returned node is a newly created text node of the same type which has been inserted at the location of the replacement.
TextTrack: cuechange event - Web APIs
the cuechange event fires when a texttrack has changed the
currently displaying cues.
... bubbles no cancelable no interface event event handler property globaleventhandlers.oncuechange examples on the texttrack you can set up a listener for the cuechange event on a texttrack using the addeventlistener() method: track.addeventlistener('cuechange', function () { let cues = track.activecues; // array of
current cues }); or you can just set the oncuechange event handler property: track.oncuechange = function () { let cues = track.activecues; // array of
current cues } on the track element the underlying texttrack, indicated by the track property, receives a cuechange event every time the
currently-presented cue is changed.
TextTrackList.onremovetrack - Web APIs
example this simple example just fetches the
current number of text tracks in the first media element whenever a track is removed from the media element.
... document.queryselectorall("video, audio")[0].texttracks.onremovetrack = function(event) { mytrackcount = document.queryselectorall("video, audio")[0].texttracks.length; }; the
current number of text tracks remaining in the media element is obtained from texttracklist property length.
TouchEvent() - Web APIs
toucheventinit optional is a toucheventinit dictionary, having the following fields: "touches", optional and defaulting to [], of type touch[], that is a list of objects for every point of contact
currently touching the surface.
... "targettouches", optional and defaulting to [], of type touch[], that is a list of objects for every point of contact that is touching the surface and started on the element that is the target of the
current event.
TouchEvent.touches - Web APIs
touches is a read-only touchlist listing all the touch objects for touch points that are
currently in contact with the touch surface, regardless of whether or not they've changed or what their target element was at touchstart time.
...the touchevent.touches property is a touchlist object and containing a list of touch objects for every point of contact
currently touching the surface.
TouchEvent - Web APIs
touchevent.targettouchesread only a touchlist of all the touch objects that are both
currently in contact with the touch surface and were also started on the same element that is the target of the event.
... touchevent.touches read only a touchlist of all the touch objects representing all
current points of contact with the surface, regardless of target or changed status.
TreeWalker.nextSibling() - Web APIs
the treewalker.nextsibling() method moves the
current node to its next sibling, if any, and returns the found sibling.
... if there is no such node, return null and the
current node is not changed.
TreeWalker.parentNode() - Web APIs
the treewalker.parentnode() method moves the
current node to the first visible ancestor node in the document order, and returns the found node.
... if no such node exists, or if it is above the treewalker's root node, returns null and the
current node is not changed.
TreeWalker.previousSibling() - Web APIs
the treewalker.previoussibling() method moves the
current node to its previous sibling, if any, and returns the found sibling.
... if there is no such node, return null and the
current node is not changed.
UIEvent - Web APIs
uievent.layerx read only returns the horizontal coordinate of the event relative to the
current layer.
... uievent.layery read only returns the vertical coordinate of the event relative to the
current layer.
USBInterface - Web APIs
usbinterface.alternateread only returns the
currently selected alternative configuration of this interface.
... usbinterface.claimedread only returns whether or not this interface has been claimed by the
current page by calling usbdevice.claiminterface().
VideoTrackList.onremovetrack - Web APIs
example this simple example just fetches the
current number of video tracks in the media element whenever a track is removed from the media element.
... document.queryselector("my-video").videotracks.onremovetrack = function(event) { mytrackcount = document.queryselector("my-video").videotracks.length; }; the
current number of video tracks remaining in the media element is obtained from videotracklist property length.
VideoTrackList.selectedIndex - Web APIs
the read-only videotracklist property selectedindex returns the index of the
currently selected track, if any, or -1 otherwise.
... syntax var index = videotracklist.selectedindex; value a number indicating the index of the
currently selected track, if any, or -1 otherwise.
-webkit-text-stroke - CSS: Cascading Style Sheets
formal definition initial valueas each of the properties of the shorthand:-webkit-text-stroke-width: 0-webkit-text-stroke-color:
currentcolorapplies toall elementsinheritedyescomputed valueas each of the properties of the shorthand:-webkit-text-stroke-width: absolute <length>-webkit-text-stroke-color: computed coloranimation typeas each of the properties of the shorthand:-webkit-text-stroke-width: discrete-webkit-text-stroke-color: a color formal syntax <length> | <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | ...
...<hex-color> | <named-color> |
currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
:in-range - CSS: Cascading Style Sheets
the :in-range css pseudo-class represents an <input> element whose
current value is within the range limits specified by the min and max attributes.
... /* selects any <input>, but only when it has a range specified, and its value is inside that range */ input:in-range { background-color: rgba(0, 255, 0, 0.25); } this pseudo-class is useful for giving the user a visual indication that a field's
current value is within the permitted limits.
:out-of-range - CSS: Cascading Style Sheets
the :out-of-range css pseudo-class represents an <input> element whose
current value is outside the range limits specified by the min and max attributes.
... /* selects any <input>, but only when it has a range specified, and its value is outside that range */ input:out-of-range { background-color: rgba(255, 0, 0, 0.25); } this pseudo-class is useful for giving the user a visual indication that a field's
current value is outside the permitted limits.
prefers-reduced-data - CSS: Cascading Style Sheets
user preferences
currently no user agent implements this feature, although various operating systems do support such preferences and if this media query is ever implemented user agents will likely rely on the settings provided by the operating system.
... examples note: no browser
currently implements this feature so the following example will not work.
prefers-reduced-transparency - CSS: Cascading Style Sheets
user preferences
currently no user agent implements this feature, although various operating systems do support such preferences and if this media query is ever implemented user agents will likely rely on the settings provided by the operating systems.
... examples note: no browser
currently implements this feature so the following example will not work.
Variable fonts guide - CSS: Cascading Style Sheets
for comparison, it is typical in a typographic system for a magazine to use 10–15 or more different weight and width combinations throughout the publication — giving a much wider range of styles than
currently typical on the web (or indeed practical for performance reasons alone).
...the five
currently registered axes are weight, width, slant, italic, and optical size.
Basic Concepts of grid layout - CSS: Cascading Style Sheets
note: this feature shipped in firefox 71, which is
currently the only browser to implement subgrid.
... in the
current specification, we would edit the above nested grid example to change the track definition of grid-template-columns: repeat(3, 1fr), to grid-template-columns: subgrid.
Pseudo-classes - CSS: Cascading Style Sheets
index of standard pseudo-classes :active :any-link :blank :checked :
current :default :defined :dir() :disabled :drop :empty :enabled :first :first-child :first-of-type :fullscreen :future :focus :focus-visible :focus-within :has() :host :host() :host-context() :hover :indeterminate :in-range :invalid :is() :lang() :last-child :last-of-type :left :link :local-link :not() :nth-child() :nth-col() :nth-last-child() :nt...
... selectors level 4 working draft defined :any-link, :blank, :local-link, :scope, :drop, :
current, :past, :future, :placeholder-shown, :user-invalid, :nth-col(), :nth-last-col(), :is() and :where().
animation-play-state - CSS: Cascading Style Sheets
syntax /* single animation */ animation-play-state: running; animation-play-state: paused; /* multiple animations */ animation-play-state: paused, running, running; /* global values */ animation-play-state: inherit; animation-play-state: initial; animation-play-state: unset; values running the animation is
currently playing.
... paused the animation is
currently paused.
border-block-end - CSS: Cascading Style Sheets
formal definition initial valueas each of the properties of the shorthand:border-top-width: mediumborder-top-style: noneborder-top-color:
currentcolorapplies toall elementsinheritednocomputed valueas each of the properties of the shorthand:border-top-width: the absolute length or 0 if border-top-style is none or hiddenborder-top-style: as specifiedborder-top-color: computed coloranimation typeas each of the properties of the shorthand:border-block-end-color: a colorborder-block-end-style: discreteborder-block-end-width: a length formal sy...
...ntax <'border-top-width'> | <'border-top-style'> | <'color'>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> |
currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-block - CSS: Cascading Style Sheets
formal definition initial valueas each of the properties of the shorthand:border-top-width: mediumborder-top-style: noneborder-top-color:
currentcolorapplies toall elementsinheritednocomputed valueas each of the properties of the shorthand:border-top-width: the absolute length or 0 if border-top-style is none or hiddenborder-top-style: as specifiedborder-top-color: computed coloranimation typediscrete formal syntax <'border-top-width'> | <'border-top-style'> | <'color'>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color>...
... | <named-color> |
currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-bottom-color - CSS: Cascading Style Sheets
syntax /* <color> values */ border-bottom-color: red; border-bottom-color: #ffbb00; border-bottom-color: rgb(255, 0, 0); border-bottom-color: hsla(100%, 50%, 25%, 0.75); border-bottom-color:
currentcolor; border-bottom-color: transparent; /* global values */ border-bottom-color: inherit; border-bottom-color: initial; border-bottom-color: unset; the border-bottom-color property is specified as a single value.
... formal definition initial value
currentcolorapplies toall elements.
border-bottom - CSS: Cascading Style Sheets
formal definition initial valueas each of the properties of the shorthand:border-bottom-width: mediumborder-bottom-style: noneborder-bottom-color:
currentcolorapplies toall elements.
...properties of the shorthand:border-bottom-color: a colorborder-bottom-style: discreteborder-bottom-width: a length formal syntax <line-width> | <line-style> | <color>where <line-width> = <length> | thin | medium | thick<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset<color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> |
currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-color - CSS: Cascading Style Sheets
formal definition initial valueas each of the properties of the shorthand:border-top-color:
currentcolorborder-right-color:
currentcolorborder-bottom-color:
currentcolorborder-left-color:
currentcolorapplies toall elements.
...color: computed colorborder-left-color: computed colorborder-right-color: computed colorborder-top-color: computed coloranimation typeas each of the properties of the shorthand:border-bottom-color: a colorborder-left-color: a colorborder-right-color: a colorborder-top-color: a color formal syntax <color>{1,4}where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> |
currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-inline-end-color - CSS: Cascading Style Sheets
initial value
currentcolorapplies toall elementsinheritednocomputed valuecomputed coloranimation typea color values <'color'> the color of the border.
... formal definition initial value
currentcolorapplies toall elementsinheritednocomputed valuecomputed coloranimation typea color formal syntax <'border-top-color'> examples html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; border: 10px solid blue; border-inline-end-color: red; } specifications specification status comment css logical properties and values level 1the definition of 'border-inline-end-color' in that specification.
border-left - CSS: Cascading Style Sheets
formal definition initial valueas each of the properties of the shorthand:border-left-width: mediumborder-left-style: noneborder-left-color:
currentcolorapplies toall elements.
...f the properties of the shorthand:border-left-color: a colorborder-left-style: discreteborder-left-width: a length formal syntax <line-width> | <line-style> | <color>where <line-width> = <length> | thin | medium | thick<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset<color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> |
currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-right - CSS: Cascading Style Sheets
formal definition initial valueas each of the properties of the shorthand:border-right-width: mediumborder-right-style: noneborder-right-color:
currentcolorapplies toall elements.
...he properties of the shorthand:border-right-color: a colorborder-right-style: discreteborder-right-width: a length formal syntax <line-width> | <line-style> | <color>where <line-width> = <length> | thin | medium | thick<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset<color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> |
currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-top - CSS: Cascading Style Sheets
formal definition initial valueas each of the properties of the shorthand:border-top-width: mediumborder-top-style: noneborder-top-color:
currentcolorapplies toall elements.
...h of the properties of the shorthand:border-top-color: a colorborder-top-style: discreteborder-top-width: a length formal syntax <line-width> | <line-style> | <color>where <line-width> = <length> | thin | medium | thick<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset<color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> |
currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
box-shadow - CSS: Cascading Style Sheets
if not specified, it defaults to
currentcolor.
...&& <length>{2,4} && <color>?where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> |
currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
column-rule - CSS: Cascading Style Sheets
formal definition initial valueas each of the properties of the shorthand:column-rule-width: mediumcolumn-rule-style: nonecolumn-rule-color:
currentcolorapplies tomulticol elementsinheritednocomputed valueas each of the properties of the shorthand:column-rule-color: computed colorcolumn-rule-style: as specifiedcolumn-rule-width: the absolute length; 0 if the column-rule-style is none or hiddenanimation typeas each of the properties of the shorthand:column-rule-color: a colorcolumn-rule-style: discretecolumn-rule-width: a length formal syntax...
... <'column-rule-width'> | <'column-rule-style'> | <'column-rule-color'> examples example 1 /* same as "medium dotted
currentcolor" */ p.foo { column-rule: dotted; } /* same as "medium solid blue" */ p.bar { column-rule: solid blue; } /* same as "8px solid
currentcolor" */ p.baz { column-rule: solid 8px; } p.abc { column-rule: thick inset blue; } example 2 html <p class="content-box"> this is a bunch of text split into three columns.
cross-fade() - CSS: Cascading Style Sheets
syntax important: the specification and
current implementations have different syntaxes.
...&& <image><cf-final-image> = <image> | <color>where <image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> |
currentcolor | <deprecated-system-color>where <image()> = image( <image-tags>?
cursor - CSS: Cascading Style Sheets
keyword values move your mouse over values to see their live appearance in your browser: category css value example description general auto the ua will determine the cursor to display based on the
current context.
... no-drop an item may not be dropped at the
current location.
<display-box> - CSS: Cascading Style Sheets
due to a bug in browsers this will
currently remove the element from the accessibility tree — screen readers will not look at what's inside.
... accessibility concerns
current implementations in most browsers will remove from the accessibility tree any element with a display value of contents.
filter - CSS: Cascading Style Sheets
if not specified, the color used depends on the browser - it is usually the value of the <color> property, but note that safari
currently paints a transparent shadow in this case.
...)<grayscale()> = grayscale( <number-percentage> )<hue-rotate()> = hue-rotate( <angle> )<invert()> = invert( <number-percentage> )<opacity()> = opacity( [ <number-percentage> ] )<saturate()> = saturate( <number-percentage> )<sepia()> = sepia( <number-percentage> )where <number-percentage> = <number> | <percentage><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> |
currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
mask-composite - CSS: Cascading Style Sheets
the mask-composite css property represents a compositing operation used on the
current mask layer with the mask layers below it.
... values for the composition the
current mask layer is referred to as source, while all layers below it are referred to as destination.
mask - CSS: Cascading Style Sheets
<compositing-operator> sets the compositing operation used on the
current mask layer.
...)<gradient> = <linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()><box> = border-box | padding-box | content-boxwhere <image-tags> = ltr | rtl<image-src> = <url> | <string><color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> |
currentcolor | <deprecated-system-color><image-set-option> = [ <image> | <string> ] <resolution><id-selector> = <hash-token><cf-mixing-image> = <percentage>?
outline - CSS: Cascading Style Sheets
defaults to
currentcolor if absent.
... how to design useful and usable focus indicators wcag 2.1: understanding success criterion 2.4.7: focus visible formal definition initial valueas each of the properties of the shorthand:outline-color: invert, for browsers supporting it,
currentcolor for the otheroutline-style: noneoutline-width: mediumapplies toall elementsinheritednocomputed valueas each of the properties of the shorthand:outline-color: for the keyword invert, the computed value is invert.
scroll-snap-type-x - CSS: Cascading Style Sheets
mandatory the visual viewport of this scroll container will rest on a snap point if it isn't
currently scrolled horizontally.
... proximity the visual viewport of this scroll container may come to rest on a snap point if it isn't
currently scrolled horizontally considering the user agent's scroll parameters.
scroll-snap-type-y - CSS: Cascading Style Sheets
mandatory the visual viewport of this scroll container will rest on a snap point if it isn't
currently scrolled vertically.
... proximity the visual viewport of this scroll container may come to rest on a snap point if it isn't
currently scrolled vertically considering the user agent's scroll parameters.
scroll-snap-type - CSS: Cascading Style Sheets
mandatory the visual viewport of this scroll container will rest on a snap point if it isn't
currently scrolled.
... proximity the visual viewport of this scroll container may come to rest on a snap point if it isn't
currently scrolled considering the user agent's scroll parameters.
text-combine-upright - CSS: Cascading Style Sheets
] examples digits the digits value requires less markup than the all value when digits are being combined, but it is
currently not very widely supported by browsers.
... html <p lang="ja" class="exampletext">平成20年4月16日に</p> css .exampletext { writing-mode: vertical-lr; text-combine-upright: digits 2; font: 36px serif; } results screenshotlive sample all the all value requires markup around every piece of horizontal text, but it is
currently supported by more browsers than the digits value.
Adding captions and subtitles to HTML5 video - Developer guides
the text colour of the text track cues you can write: ::cue { color:#ccc; } if the webvtt file uses voice spans, which allow cues to be defined as having a particular "voice": 0 00:00:00.000 --> 00:00:12.000 <v test>[test]</v> then this specific 'voice' will be stylable like so: ::cue(v[voice='test']) { color:#fff; background:#0095dd; } note: some of the styling of cues with ::cue
currently works on chrome, opera, and safari, but not yet on firefox.
... radiant media player supports multi-languages webvtt closed captions note: you can find an excellent list of html5 video players and their
current "state" at html5 video player comparison.
Media buffering, seeking, and time ranges - Developer guides
; } and the following javascript provides our functionality: window.onload = function(){ var myaudio = document.getelementbyid('my-audio'); myaudio.addeventlistener('progress', function() { var duration = myaudio.duration; if (duration > 0) { for (var i = 0; i < myaudio.buffered.length; i++) { if (myaudio.buffered.start(myaudio.buffered.length - 1 - i) < myaudio.
currenttime) { document.getelementbyid("buffered-amount").style.width = (myaudio.buffered.end(myaudio.buffered.length - 1 - i) / duration) * 100 + "%"; break; } } } }); myaudio.addeventlistener('timeupdate', function() { var duration = myaudio.duration; if (duration > 0) { document.getelementbyid('progress-amount').style.width = ...
...((myaudio.
currenttime / duration)*100) + "%"; } }); } the progress event is fired as data is downloaded, this is a good event to react to if we want to display download or buffering progress.
Overview of events and handlers - Developer guides
(the talk is available from several sources, including this one.)
currently, all execution environments for javascript code use events and event handling.
... although this list is
currently incomplete.
Rich-Text Editing in Mozilla - Developer guides
when using contenteditable, calling execcommand will affect the
currently active editable element.
...internet explorer, however, does not allow javascript to change the
current document's designmode.
Introduction to HTML5 - Developer guides
you can find a list of all of the html5 features that gecko
currently supports on the main html5 page.
...also, if you are not
currently using utf-8, it's recommended that you switch to it in your web pages, as it simplifies character handling in documents using different scripts.
Index - Developer guides
currently, to support all browsers we need to specify two formats, although with the adoption of mp3 and mp4 formats in firefox and opera, this is changing fast.
...there are a number of possible scenarios: 39 svg-in-opentype draft, fonts, guide, needscontent the svg-in-opentype work is
currently in the hands of the mpeg group.
The HTML autocomplete attribute - HTML: Hypertext Markup Language
when creating a new account or changing passwords, this should be used for an "enter your new password" or "confirm new password" field, as opposed to a general "enter your
current password" field that might be present.
... "
current-password" the user's
current password.
HTML attribute: minlength - HTML: Hypertext Markup Language
once submission fails, some browsers will display an error message indicating the minimum length required and the
current length.
... input { border: 2px solid
currentcolor; } input:invalid { border: 2px dashed red; } input:invalid:focus { background-image: linear-gradient(pink, lightgreen); } specifications specification status html living standardthe definition of 'minlength attribute' in that specification.
<input type="color"> - HTML: Hypertext Markup Language
false); function watchcolorpicker(event) { document.queryselectorall("p").foreach(function(p) { p.style.color = event.target.value; }); } selecting the value if the <input> element's implementation of the color type on the user's browser doesn't support a color well, but is instead a text field for entering the color string directly, you can use the select() method to select the text
currently in the edit field.
...we handle that event using the updateall() function, using event.target.value to obtain the final selected color: function updateall(event) { document.queryselectorall("p").foreach(function(p) { p.style.color = event.target.value; }); } this sets the color of every <p> block so that its color attribute matches the
current value of the color input, which is referred to using event.target.
<input type="range"> - HTML: Hypertext Markup Language
="10"></option> <option value="20"></option> <option value="30"></option> <option value="40"></option> <option value="50" label="50%"></option> <option value="60"></option> <option value="70"></option> <option value="80"></option> <option value="90"></option> <option value="100" label="100%"></option> </datalist> screenshot live note:
currently, no browser fully supports these features.
... standards according to the specification, making it vertical requires adding css to change the dimensions of the control so that it's taller than it is wide, like this: css #volume { height: 150px; width: 50px; } html <input type="range" id="volume" min="0" max="11" value="7" step="1"> result screenshotlive sample unfortunately, no major browsers
currently support vertical range controls directly.
<input type="time"> - HTML: Hypertext Markup Language
appearance chrome and opera in chrome/opera the time control is simple, with slots to enter hours and minutes in 12 or 24-hour format depending on operating system locale, and up and down arrows to increment and decrement the
currently selected component.
...here we make use of the :valid and :invalid css properties to style the input based on whether or not the
current value is valid.
<input type="week"> - HTML: Hypertext Markup Language
the control's user interface varies from browser to browser; cross-browser support is
currently a bit limited, with only chrome/opera and microsoft edge supporting it at this time.
...here we make use of the :valid and :invalid css properties to style the input based on whether or not the
current value is valid.
<object> - HTML: Hypertext Markup Language
if not specified, the default is the base uri of the
current document.
... tabindexhtml 4 onlyobsolete since html5 the position of the element in the tabbing navigation order for the
current document.
<select>: The HTML Select element - HTML: Hypertext Markup Language
note: according to the html5 specification, the default value for size should be 1; however, in practice, this has been found to break some web sites, and no other browser
currently does that, so mozilla has opted to continue to return 0 for the time being with firefox.
... warning: the mechanism for selecting multiple non-contiguous items via the keyboard described below
currently only seems to work in firefox.
<summary>: The Disclosure Summary element - HTML: Hypertext Markup Language
basic example a simple example showing the use of <summary> in a <details> element: <details open> <summary>overview</summary> <ol> <li>cash on hand: $500.00</li> <li>
current invoice: $75.30</li> <li>due date: 5/6/19</li> </ol> </details> summaries as headings you can use heading elements in <summary>, like this: <details open> <summary><h4>overview</h4></summary> <ol> <li>cash on hand: $500.00</li> <li>
current invoice: $75.30</li> <li>due date: 5/6/19</li> </ol> </details> this
currently has some spacing issues that could be addresse...
... html in summaries this example adds some semantics to the <summary> element to indicate the label as important: <details open> <summary><strong>overview</strong></summary> <ol> <li>cash on hand: $500.00</li> <li>
current invoice: $75.30</li> <li>due date: 5/6/19</li> </ol> </details> specifications specification status comment html living standardthe definition of '<summary>' in that specification.
Cross-Origin Resource Sharing (CORS) - HTTP
preflighted requests and redirects not all browsers
currently support following redirects after a preflighted request.
... if a redirect occurs after a preflighted request, some browsers
currently will report an error message such as the following.
Feature Policy - HTTP
for every feature controlled by feature policy, the feature is only enabled in the
current document or frame if its origin matches the allowed list of origins.
... the
current set of policy-controlled features fall into two broad categories: enforcing best practices for good user experiences.
ETag - HTTP
for example, when editing mdn, the
current wiki content is hashed and put into an etag in the response: etag: "33a64df551425fcc55e4d42a148795d9f25f89d4" when saving changes to a wiki page (posting data), the post request will contain the if-match header containing the etag values to check freshness against.
...if a user visits a given url again (that has an etag set), and it is stale (too old to be considered usable), the client will send the value of its etag along in an if-none-match header field: if-none-match: "33a64df551425fcc55e4d42a148795d9f25f89d4" the server compares the client's etag (sent with if-none-match) with the etag for its
current version of the resource, and if both values match (that is, the resource has not changed), the server sends back a 304 not modified status, without a body, which tells the client that the cached version of the response is still good to use (fresh).
Feature-Policy: geolocation - HTTP
the http feature-policy header geolocation directive controls whether the
current document is allowed to use the geolocation interface.
... when this policy is enabled, calls to get
currentposition() and watchposition() will cause those functions' callbacks to be invoked with a positionerror code of permission_denied.
Referer - HTTP
the referer request header contains the address of the previous web page from which a link to the
currently requested page was followed.
... header type request header forbidden header name yes syntax referer: <url> directives <url> an absolute or partial address of the previous web page from which a link to the
currently requested page was followed.
Set-Cookie - HTTP
if omitted, defaults to the host of the
current document url, not including subdomains.
...if the request originated from a different url than the
current one, no cookies with the samesite=strict attribute are sent.
Link prefetching FAQ - HTTP
standardization of this technique is part of the scope of html 5, see the
current working draft, section §5.11.3.13.
... in the
current implementation (mozilla 1.2), idle time is determined using the nsiwebprogresslistener api.
PUT - HTTP
request has body yes successful response has body no safe no idempotent yes cacheable no allowed in html forms no syntax put /new.html http/1.1 example request put /new.html http/1.1 host: example.com content-type: text/html content-length: 16 <p>new file</p> responses if the target resource does not have a
current representation and the put request successfully creates one, then the origin server must inform the user agent by sending a 201 (created) response.
... http/1.1 201 created content-location: /new.html if the target resource does have a
current representation and that representation is successfully modified in accordance with the state of the enclosed representation, then the origin server must send either a 200 (ok) or a 204 (no content) response to indicate successful completion of the request.
204 No Content - HTTP
the http 204 no content success status response code indicates that the request has succeeded, but that the client doesn't need to go away from its
current page.
... the common use case is to return 204 as a result of a put request, updating a resource, without changing the
current content of the page displayed to the user.
CSS Houdini
no guide or reference has
currently been written for this api.
... no guide or reference has
currently been written for this api.
Introduction - JavaScript
this guide includes some javascript features which are only
currently available in the latest versions of firefox, so using the most recent version of firefox is recommended.
... single-line input in the web console the web console shows you information about the
currently loaded web page, and also includes a javascript interpreter that you can use to execute javascript expressions in the
current page.
Iterators and generators - JavaScript
here is the fibonacci generator using next(x) to restart the sequence: function* fibonacci() { let
current = 0; let next = 1; while (true) { let reset = yield
current; [
current, next] = [next, next +
current]; if (reset) {
current = 0; next = 1; } } } const sequence = fibonacci(); console.log(sequence.next().value); // 0 console.log(sequence.next().value); // 1 console.log(sequence.next().value); // 1 console.log(sequence.next().value); // 2 conso...
...this exception will be thrown from the
current suspended context of the generator, as if the yield that is
currently suspended were instead a throw value statement.
Loops and iteration - JavaScript
when you use continue without a label, it terminates the
current iteration of the innermost enclosing while, do-while, or for statement and continues execution of the loop with the next iteration.
...if continue is encountered, the program terminates the
current iteration of checkj and begins the next iteration.
Using Promises - JavaScript
guarantees unlike old-fashioned passed-in callbacks, a promise comes with some guarantees: callbacks will never be called before the completion of the
current run of the javascript event loop.
...result3) */ timing to avoid surprises, functions passed to then() will never be called synchronously, even with an already-resolved promise: promise.resolve().then(() => console.log(2)); console.log(1); // 1, 2 instead of running immediately, the passed-in function is put on a microtask queue, which means it runs later when the queue is emptied at the end of the
current run of the javascript event loop, i.e.
ReferenceError: "x" is not defined - JavaScript
this variable needs to be declared, or you need to make sure it is available in your
current script or scope.
... var foo = 'bar'; foo.substring(1); // "ar" wrong scope a variable needs to be available in the
current context of execution.
arguments.callee - JavaScript
the arguments.callee property contains the
currently executing function.
...it can be used to refer to the
currently executing function inside the function body of that function.
Array.prototype.every() - JavaScript
syntax arr.every(callback(element[, index[, array]])[, thisarg]) parameters callback a function to test for each element, taking three arguments: element the
current element being processed in the array.
... index optional the index of the
current element being processed in the array.
Array.prototype.filter() - JavaScript
it accepts three arguments: element the
current element being processed in the array.
... indexoptional the index of the
current element being processed in the array.
Array.prototype.find() - JavaScript
syntax arr.find(callback(element[, index[, array]])[, thisarg]) parameters callback function to execute on each value in the array, taking 3 arguments: element the
current element in the array.
... index optional the index (position) of the
current element in the array.
Array.prototype.findIndex() - JavaScript
it takes three arguments: element the
current element being processed in the array.
... index optional the index of the
current element being processed in the array.
Array.prototype.some() - JavaScript
syntax arr.some(callback(element[, index[, array]])[, thisarg]) parameters callback a function to test for each element, taking three arguments: element the
current element being processed in the array.
... indexoptional the index of the
current element being processed in the array.
Date - JavaScript
static methods date.now() returns the numeric value corresponding to the
current time—the number of milliseconds elapsed since january 1, 1970 00:00:00 utc, with leap seconds ignored.
...(negative values are returned for prior times.) date.prototype.gettimezoneoffset() returns the time-zone offset in minutes for the
current locale.
Object.defineProperty() - JavaScript
annot try to mix both: object.defineproperty(o, 'conflict', { value: 0x9f91102, get() { return 0xdeadbeef; } }); // throws a typeerror: value appears // only in data descriptors, // get appears only in accessor descriptors modifying a property when the property already exists, object.defineproperty() attempts to modify the property according to the values in the descriptor and the object's
current configuration.
... a typeerror is thrown when attempts are made to change non-configurable property attributes (except value and writable, if permitted) unless the
current and new values are the same.
String.prototype.charAt() - JavaScript
var str = 'a \ud87e\udc04 z'; // we could also use a non-bmp character directly for (var i = 0, chr; i < str.length; i++) { if ((chr = getwholechar(str, i)) === false) { continue; } // adapt this line at the top of each loop, passing in the whole string and // the
current iteration and returning a variable to represent the // individual character console.log(chr); } function getwholechar(str, i) { var code = str.charcodeat(i); if (number.isnan(code)) { return ''; // position not found } if (code < 0xd800 || code > 0xdfff) { return str.charat(i); } // high surrogate (could change last hex to 0xdb7f to treat high private // surrogates a...
... let str = 'a\ud87e\udc04z' // we could also use a non-bmp character directly for (let i = 0, chr; i < str.length; i++) { [chr, i] = getwholecharandi(str, i) // adapt this line at the top of each loop, passing in the whole string and // the
current iteration and returning an array with the individual character // and 'i' value (only changed if a surrogate pair) console.log(chr) } function getwholecharandi(str, i) { let code = str.charcodeat(i) if (number.isnan(code)) { return '' // position not found } if (code < 0xd800 || code > 0xdfff) { return [str.charat(i), i] // normal character, keeping 'i' the same } //...
TypedArray.prototype.every() - JavaScript
syntax typedarray.every(callback[, thisarg]) parameters callback function to test for each element, taking three arguments:
currentvalue the
current element being processed in the typed array.
... index the index of the
current element being processed in the typed array.
TypedArray.prototype.find() - JavaScript
syntax typedarray.find(callback[, thisarg]) parameters callback function to execute on each value in the typed array, taking three arguments: element the
current element being processed in the typed array.
... index the index of the
current element being processed in the typed array.
TypedArray.prototype.findIndex() - JavaScript
syntax typedarray.findindex(callback[, thisarg]) parameters callback function to execute on each value in the typed array, taking three arguments: element the
current element being processed in the typed array.
... index the index of the
current element being processed in the typed array.
TypedArray.prototype.forEach() - JavaScript
syntax typedarray.foreach(callback[, thisarg]) parameters callback function that produces an element of the new typed array, taking three arguments:
currentvalue the
current element being processed in the typed array.
... index the index of the
current element being processed in the array.
TypedArray.prototype.map() - JavaScript
syntax typedarray.map(mapfn[, thisarg]) parameters mapfn a callback function that produces an element of the new typed array, taking three arguments:
currentvalue the
current element being processed in the typed array.
... index optional the index of the
current element being processed in the typed array.
TypedArray.prototype.some() - JavaScript
syntax typedarray.some(callback[, thisarg]) parameters callback function to test for each element, taking three arguments:
currentvalue the
current element being processed in the typed array.
... index the index of the
current element being processed in the typed array.
WeakRef - JavaScript
garbage collection work can be split up over time using incremental and con
current techniques.
... notes on weakrefs some notes on weakrefs: if your code has just created a weakref for a target object, or has gotten a target object from a weakref's deref method, that target object will not be reclaimed until the end of the
current javascript job (including any promise reaction jobs that run at the end of a script job).
Destructuring assignment - JavaScript
however, if you leave out the right-hand side assignment, the function will look for at least one argument to be supplied when invoked, whereas in its
current form, you can simply call drawchart() without supplying any parameters.
... the
current design is useful if you want to be able to call the function without supplying any parameters, the other can be useful when you want to ensure an object is passed to the function.
yield - JavaScript
if an optional value is passed to the generator's next() method, that value becomes the value returned by the generator's
current yield operation.
... unfortunately, next() is asymmetric, but that can’t be helped: it always sends a value to the
currently suspended yield, but returns the operand of the following yield.
break - JavaScript
the break statement terminates the
current loop, switch, or label statement and transfers program control to the statement following the terminated statement.
... a break statement, with or without a following label, cannot be used within the body of a function that is itself nested within the
current loop, switch, or label statement that the break statement is intended to break out of.
continue - JavaScript
the continue statement terminates execution of the statements in the
current iteration of the
current or labeled loop, and continues execution of the loop with the next iteration.
... the continue statement can include an optional label that allows the program to jump to the next iteration of a labeled loop statement instead of the
current loop.
for...in - JavaScript
in general, it is best not to add, modify, or remove properties from the object during iteration, other than the property
currently being visited.
... there is no guarantee whether an added property will be visited, whether a modified property (other than the
current one) will be visited before or after it is modified, or whether a deleted property will be visited before it is deleted.
Statements and declarations - JavaScript
break terminates the
current loop, switch, or label statement and transfers program control to the statement following the terminated statement.
... continue terminates execution of the statements in the
current iteration of the
current or labeled loop, and continues execution of the loop with the next iteration.
<math> - MathML
it can have one of the following values: block, which means that this element will be displayed outside the
current span of text, as a block that can be positioned anywhere without changing the meaning of the text; inline, which means that this element will be displayed inside the
current span of text, and cannot be moved out of it without changing the meaning of that text.
... recommendation
current specification mathml 2.0the definition of 'the top-level math element' in that specification.
<marker> - SVG: Scalable Vector Graphics
value type: top|center|bottom|<coordinate> ; default value: 0; animatable: yes viewbox this attribute defines the bound of the svg viewport for the
current svg fragment.
...acity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-
current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria...
<svg> - SVG: Scalable Vector Graphics
value type: <number> ; default value: none; animatable: no viewbox the svg viewport coordinates for the
current svg fragment.
...acity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-
current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria...
<symbol> - SVG: Scalable Vector Graphics
value type: <length>|<percentage>|top|center|bottom ; default value: 0; animatable: yes viewbox this attribute defines the bound of the svg viewport for the
current symbol.
...acity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-
current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria...
<use> - SVG: Scalable Vector Graphics
there is
currently no defined way to set a cross-origin policy for use elements.
...acity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-
current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria...
SVG 2 support in Mozilla - SVG: Scalable Vector Graphics
9) externalresourcesrequired attribute removed implementation status unknown auto value for width and height in <image> implementation status unknown referencing entire document with <use> implementation status unknown lang attribute on <desc> and <title> implemented (bug 721920) css transforms on outermost <svg> not affecting svgsvgelement.
currentscale or svgsvgelement.
currenttranslate implementation status unknown rootelement attribute deprecated implementation status unknown svgelementinstance and svgelementinstancelist and corresponding attributes on svguseelement removed implementation status unknown <use> event flow following shadow dom spec.
...ibutes removed from <svg> implementation status unknown svgsvgelement.forceredraw() deprecated turned into a no-op (bug 733764) svgsvgelement.deselectall() deprecated not yet deprecated (bug 1302705) <switch> not affecting <style> implementation status unknown requiredfeatures attribute removed implementation status unknown svgsvgelement.
currentview and svgsvgelement.use
currentview removed svgsvgelement.
currentview was never implemented, svgsvgelement.use
currentview not removed yet (bug 1174097) svgunknownelement not implemented (bug 1239218) lang attribute without namespace implemented (bug 721920) svgsvgelement.viewport removed never implemented xml:base attribute removed implementatio...
Patterns - SVG: Scalable Vector Graphics
as a slight aside, in gecko circles seem to have trouble drawing if their radius is set to something less than 0.075 (it is
currently unknown whether this is a bug in the pattern element or not).
...to create something like this, both the pattern and its contents must be drawn in the
current userspace, so they don't change shape if the object does: <pattern id="pattern" x="10" y="10" width="50" height="50" patternunits="userspaceonuse"> <rect x="0" y="0" width="50" height="50" fill="skyblue"/> <rect x="0" y="0" width="25" height="25" fill="url(#gradient2)"/> <circle cx="25" cy="25" r="20" fill="url(#gradient1)" fill-opacity="0.5"/> </pattern> of course, this means the pattern won't scale i...
Same-origin policy - Web security
a script can set the value of document.domain to its
current domain or a superdomain of its
current domain.
... if set to a superdomain of the
current domain, the shorter superdomain is used for same-origin checks.
generate-id - XPath
if omitted, the
current context node will be used.
... notes the same id must be generated every time for the same node in the
current document in the
current transformation.
Introduction to using XPath in JavaScript - XPath
this adapter works like the dom level 3 method lookupnamespaceuri on nodes in resolving the namespaceuri from a given prefix using the
current information available in the node's hierarchy at the time lookupnamespaceuri is called.
... snapshots do not change with document mutations, so unlike the iterators, the snapshot does not become invalid, but it may not correspond to the
current document, for example, the nodes may have been moved, it might contain nodes that no longer exist, or new nodes could have been added.
<xsl:copy> - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:copy> element transfers a shallow copy (the node and any associated namespace node) of the
current node to the output document.
... it does not copy any children or attributes of the
current node.
<xsl:number> - XSLT: Extensible Stylesheet Language Transformations
the processor looks at all ancestors of the
current node and the
current node itself, stopping when it reaches a match for the from attribute, if there is one.
...the processor starts at the
current node and proceeds in reverse document order, stopping if it reaches a match to any from attribute.
<circle> - SVG: Scalable Vector Graphics
acity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-
current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria...
<ellipse> - SVG: Scalable Vector Graphics
acity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-
current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria...
<foreignObject> - SVG: Scalable Vector Graphics
acity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-
current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria...
<g> - SVG: Scalable Vector Graphics
acity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-
current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria...
<line> - SVG: Scalable Vector Graphics
acity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-
current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria...
<path> - SVG: Scalable Vector Graphics
acity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-
current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria...
<polygon> - SVG: Scalable Vector Graphics
acity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-
current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria...
<polyline> - SVG: Scalable Vector Graphics
acity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-
current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria...
<rect> - SVG: Scalable Vector Graphics
acity, fill-rule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-
current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria...
<solidcolor> - SVG: Scalable Vector Graphics
--> <solidcolor id="mycolor" solid-color="gold" solid-opacity="0.8"/> <!-- lineargradient with a single color stop is a less elegant way to achieve the same effect, but it works in
current browsers.
<stop> - SVG: Scalable Vector Graphics
value type:
currentcolor|<color>|<icccolor>; default value: black; animatable: yes stop-opacity this attribute defines the opacity of the gradient stop.
<text> - SVG: Scalable Vector Graphics
ule, filter, mask, opacity, pointer-events, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, text-anchor, transform, vector-effect, visibility aria attributes aria-activedescendant, aria-atomic, aria-autocomplete, aria-busy, aria-checked, aria-colcount, aria-colindex, aria-colspan, aria-controls, aria-
current, aria-describedby, aria-details, aria-disabled, aria-dropeffect, aria-errormessage, aria-expanded, aria-flowto, aria-grabbed, aria-haspopup, aria-hidden, aria-invalid, aria-keyshortcuts, aria-label, aria-labelledby, aria-level, aria-live, aria-modal, aria-multiline, aria-multiselectable, aria-orientation, aria-owns, aria-placeholder, aria-posinset, aria-pressed, aria-readonly, aria-relevant, aria...