Search completed in 0.99 seconds.
WritableStreamDefaultWriter.WritableStreamDefaultWriter() - Web APIs
the writablestream
defaultwriter() constructor creates a new writablestream
defaultwriter object instance.
... syntax var writablestream
defaultwriter = new writablestream
defaultwriter(stream); parameters stream the writablestream to be written to.
... return value an instance of the writablestream
defaultwriter object.
...And 4 more matches
ReadableStreamDefaultReader.ReadableStreamDefaultReader() - Web APIs
the readablestream
defaultreader() constructor creates and returns a readablestream
defaultreader object instance.
... syntax var readablestream
defaultreader = new readablestream
defaultreader(stream); parameters stream the readablestream to be read.
... return value an instance of the readablestream
defaultreader object.
...And 2 more matches
TrackDefault.TrackDefault() - Web APIs
the track
default() constructor of the track
default interface constructs and returns a new track
default object.
... syntax var track
default = new track
default(type, language, label, kinds, bytestreamtrackid); parameters type a domstring specifying a media segment data type for the sourcebuffer to contain.
... language a domstring specifying a
default language for the sourcebuffer to use when an initialization segment does not contain language information for a new track.
...And 2 more matches
TrackDefaultList.TrackDefault() - Web APIs
the track
default() getter method of the track
defaultlist interface allows the track
default objects in the list to be accessed with an array operator (i.e.
... [].) syntax var mytrack
default = track
defaultlist[index]; parameters index the index position of the track
default object you want to return.
... returns a track
default object.
... errors no specific errors are returned, but if the supplied index is great than or equal to track
defaultlist.length, the operation will return undefined.
TrackDefaultList.TrackDefaultList() - Web APIs
the track
defaultlist() constructor of the track
defaultlist interface constructs and returns a new track
defaultlist object.
... syntax var track
defaultlist = new track
defaultlist(track
defaults); parameters track
defaults a sequence (array) of track
default objects.
Default parameters - JavaScript
default function parameters allow named parameters to be initialized with
default values if no value or undefined is passed.
... syntax function [name]([param1[ =
defaultvalue1 ][, ..., paramn[ =
defaultvaluen ]]]) { statements } description in javascript, function parameters
default to undefined.
... however, it's often useful to set a different
default value.
...And 12 more matches
WritableStreamDefaultWriter - Web APIs
the writablestream
defaultwriter interface of the the streams api is the object returned by writablestream.getwriter() and once created locks the writer to the writablestream ensuring that no other streams can write to the underlying sink.
... constructor writablestream
defaultwriter() creates a new writablestream
defaultwriter object instance.
... properties writablestream
defaultwriter.closedread only allows you to write code that responds to an end to the streaming process.
...And 10 more matches
ReadableStreamDefaultController - Web APIs
the readablestream
defaultcontroller interface of the streams api represents a controller allowing control of a readablestream's state and internal queue.
...
default controllers are for streams that are not byte streams.
...readablestream
defaultcontroller instances are created automatically during readablestream construction.
...And 7 more matches
Event.preventDefault() - Web APIs
the event interface's prevent
default() method tells the user agent that if the event does not get explicitly handled, its
default action should not be taken as it normally would be.
... as noted below, calling prevent
default() for a non-cancelable event, such as one dispatched via eventtarget.dispatchevent(), without specifying cancelable: true has no effect.
... syntax event.prevent
default(); examples blocking
default click handling toggling a checkbox is the
default action of clicking on a checkbox.
...And 6 more matches
JS_DefaultValue
this article covers features introduced in spidermonkey 1.8.6 converts a javascript object to a primitive value, using the semantics of that object's internal [[
defaultvalue]] hook.
... syntax bool js_
defaultvalue(jscontext *cx, js::handle<jsobject*> obj, jstype hint, js::mutablehandle<js::value> vp); name type description cx jscontext * the context in which to perform the conversion.
... hint jstype the hint to pass to the [[
defaultvalue]] hook when converting the object.
...And 5 more matches
TrackDefault - Web APIs
the track
default interface provides a sourcebuffer with kind, label, and language information for tracks that do not contain this information in the initialization segments of a media chunk.
... a track
default object is provided to a sourcebuffer object by setting its sourcebuffer.track
defaults property.
... constructor track
default() constructs and returns a new track
default object.
...And 5 more matches
NPN_InvokeDefault - Archive of obsolete content
« gecko plugin api reference « scripting plugins summary invokes the
default method, if one exists, on the given npobject.
... syntax #include <npruntime.h> bool npn_invoke
default(npp npp, npobject *npobj, const npvariant *args, uint32_t argcount, npvariant *result); parameters the function has the following parameters: npp the npp indicating which plugin wants to call the
default method on the object.
... npobj the object on which to invoke the
default method.
...And 4 more matches
JSObjectOps.defaultValue
the javascript engine calls the jsobjectops.
defaultvalue and jsclass.convert callbacks to convert objects to primitive values.
... description the jsobjectops.
defaultvalue callback corresponds to the [[
defaultvalue]] method defined in ecma 262-3 §8.6.2.6.
... many expressions in the ecmascript language, such as a+b, involve implicit conversion of the operands using [[
defaultvalue]].
...And 4 more matches
ReadableStreamDefaultReader - Web APIs
the readablestream
defaultreader interface of the streams api represents a
default reader that can be used to read stream data supplied from a network (e.g.
... constructor readablestream
defaultreader() creates and returns a readablestream
defaultreader object instance.
... properties readablestream
defaultreader.closed read only allows you to write code that responds to an end to the streaming process.
...And 4 more matches
:default - CSS: Cascading Style Sheets
the :
default css pseudo-class selects form elements that are the
default in a group of related elements.
... what this selector matches is defined in html standard §4.16.3 pseudo-classes — it may match the <button>, <input type="checkbox">, <input type="radio">, and <option> elements: a
default option element is the first one with the selected attribute, or the first enabled option in dom order.
... multiple <select>s can have more than one selected option, so all will match :
default.
...And 4 more matches
Default Preferences - Archive of obsolete content
introduction a key part of any extension is the
default settings that come with it.
... mozilla provides a simple way of shipping
default settings by allowing
default preferences.
...one with user supplied prefs, another with
default prefs.
...And 3 more matches
CSP: default-src - HTTP
the http content-security-policy (csp)
default-src directive serves as a fallback for the other csp fetch directives.
... for each of the following directives that are absent, the user agent looks for the
default-src directive and uses this value for it: child-src connect-src font-src frame-src img-src manifest-src media-src object-src prefetch-src script-src script-src-elem script-src-attr style-src style-src-elem style-src-attr worker-src csp version 1 directive type fetch directive syntax one or more sources can be allowed for the
default-src policy: content-security-policy:
default-src <source>; content-security-policy:
default-src <source> <source>; sources <source> can be one of the following: <host-source> internet hosts by name or ip address, as well as an optional url scheme and/or port number.
... examples no inheritance with
default-src if there are other directives specified,
default-src does not influence them.
...And 3 more matches
IsDefaultNamespace - Archive of obsolete content
the following is a snippet to get is
defaultnamespace() supported across other browsers.
... note that all gecko-based browsers (including firefox) support node.is
defaultnamespace.
... // http://www.w3.org/tr/dom-level-3-core/core.html#node3-is
defaultnamespace // http://www.w3.org/tr/dom-level-3-core/namespaces-algorithms.html#is
defaultnamespacealgo function is
defaultnamespace(node, namespaceuri) { if (node.is
defaultnamespace) { return node.is
defaultnamespace(namespaceuri); } switch (node.nodetype) { case 1: // element_node if (!node.prefix) { return (node.namespaceuri === namespaceuri); } if (node.attributes.length) { for (var i=0; i < node.attributes.length; i++) { var att = node.attributes[i]; if (att...
...And 2 more matches
JS_SetDefaultLocale
this article covers features introduced in spidermonkey 24 set and reset the
default locale for the ecmascript internationalization api.
... syntax bool js_set
defaultlocale(jsruntime *rt, const char *locale); void js_reset
defaultlocale(jsruntime *rt); name type description rt jsruntime * pointer to a js runtime locale const char * string represents locale.
... description js_set
defaultlocale sets the
default locale for the ecmascript internationalization api (intl.collator, intl.numberformat, intl.datetimeformat).
...And 2 more matches
Event.defaultPrevented - Web APIs
the
defaultprevented read-only property of the event interface returns a boolean indicating whether or not the call to event.prevent
default() canceled the event.
... note: you should use this instead of the non-standard, deprecated getprevent
default() method (see bug 691151).
... syntax var
defaultwasprevented = event.
defaultprevented; value a boolean, where true indicates that the
default user agent action was prevented, and false indicates that it was not.
...And 2 more matches
HTMLMediaElement.defaultMuted - Web APIs
the htmlmediaelement.
defaultmuted property reflects the muted html attribute, which indicates whether the media element's audio output should be muted by
default.
... syntax var dmuted = video.
defaultmuted; audio.
defaultmuted = true; value a boolean.
... a value of true means that the audio output will be muted by
default.
...And 2 more matches
RTCPeerConnection.getDefaultIceServers() - Web APIs
the get
defaulticeservers() method of the rtcpeerconnection interface returns an array of objects based on the rtciceserver dictionary, which indicates what, if any, ice servers the browser will use by
default if none are provided to the rtcpeerconnection in its rtcconfiguration.
... however, browsers are not required to provide any
default ice servers at all.
... syntax var
defaulticeservers = rtcpeerconnection.get
defaulticeservers(); return value an array of ice servers, specified as objects based on rtciceserver, which the browser will use if none are specified in the configuration of the rtcpeerconnection.
...And 2 more matches
ReadableStreamDefaultController.close() - Web APIs
the close() method of the readablestream
defaultcontroller interface closes the associated stream.
...if you want to completely get rid of the stream and discard any enqueued chunks, you'd use readablestream.cancel() or readablestream
defaultreader.cancel().
... syntax readablestream
defaultcontroller.close(); parameters none.
...And 2 more matches
ReadableStreamDefaultReader.cancel() - Web APIs
the cancel() method of the readablestream
defaultreader interface cancels the stream, signaling a loss of interest in the stream by a consumer.
...to read those chunks still and not completely get rid of the stream, you'd use readablestream
defaultcontroller.close().
... syntax var promise = readablestream
defaultreader.cancel(reason); parameters reason optional a domstring providing a human-readable reason for the cancellation.
...And 2 more matches
TrackDefaultList - Web APIs
the track
defaultlist interface represents a simple container list for multiple track
default objects.
... the track
defaultlist associated with a particular sourcebuffer can be retrieved using the sourcebuffer.track
defaults property.
... constructor track
defaultlist() constructs and returns a new track
defaultlist object.
...And 2 more matches
Window.getDefaultComputedStyle() - Web APIs
the get
defaultcomputedstyle() method gives the
default computed values of all the css properties of an element, ignoring author styling.
... syntax var style = window.get
defaultcomputedstyle(element [, pseudoelt]); parameters element the element for which to get the computed style.
... example simple example var elem1 = document.getelementbyid("elemid"); var style = window.get
defaultcomputedstyle(elem1); longer example <style> #elem-container { position: absolute; left: 100px; top: 200px; height: 100px; } </style> <div id="elem-container">dummy</div> <div id="output"></div> <script> var elem = document.getelementbyid("elem-container"); var thecssprop = window.get
defaultcomputedstyle(elem).position; document.getelementbyid("output").innerhtml = th...
...And 2 more matches
WritableStreamDefaultController - Web APIs
the writablestream
defaultcontroller interface of the the streams api represents a controller allowing control of a writablestream's state.
... when constructing a writablestream, the underlying sink is given a corresponding writablestream
defaultcontroller instance to manipulate.
...writablestream
defaultcontroller instances are created automatically during writablestream construction.
...And 2 more matches
WritableStreamDefaultWriter.close() - Web APIs
the close() method of the writablestream
defaultwriter interface closes the associated writable stream.
... syntax var promise = writablestream
defaultwriter.close(); parameters none.
...inside this function it calls the stream's getwriter() method, which returns an instance of writablestream
defaultwriter.
...And 2 more matches
WritableStreamDefaultWriter.ready - Web APIs
the ready read-only property of the writablestream
defaultwriter interface returns a promise that resolves when the desired size of the stream's internal queue transitions from non-positive to positive, signaling that it is no longer applying backpressure.
... syntax var promise = writablestream
defaultwriter.ready; value a promise.
... function sendmessage(message, writablestream) { //
defaultwriter is of type writablestream
defaultwriter var
defaultwriter = writablestream.getwriter(); var encoder = new textencoder(); var encoded = encoder.encode(message, {stream: true}); encoded.foreach(function(chunk) { // make sure the stream and its writer are able to // receive data.
...And 2 more matches
WritableStreamDefaultWriter.write() - Web APIs
the write() property of the writablestream
defaultwriter interface writes a passed chunk of data to a writablestream and its underlying sink, then returns a promise that resolves to indicate the success or failure of the write operation.
... syntax var promise = writablestream
defaultwriter.write(chunk); parameters chunk a block of binary data to pass to the writablestream.
...inside this function it calls the stream's getwriter() method, which returns an instance of writablestream
defaultwriter.
...And 2 more matches
Opening a Link in the Default Browser - Archive of obsolete content
xulrunner applications may have situation where they wish to open a uri in the
default browser.
...extps.loaduri(uritoopen, null); by
default, the external protocol service will warn the user about opening the link in another application.
... to suppress this warning for particular protocols that are safe to open in the
default application, you must set
default prefs (thunderbird sets the following prefs): // suppress external-load warning for standard browser schemes pref("network.protocol-handler.warn-external.http", false); pref("network.protocol-handler.warn-external.https", false); pref("network.protocol-handler.warn-external.ftp", false); you can also check whether an external handler for a scheme exists.
...his is how you do it: var extps = components.classes["@mozilla.org/uriloader/external-protocol-service;1"] .getservice(components.interfaces.nsiexternalprotocolservice); if (extps.externalprotocolhandlerexists("http")) { // handler for http:// urls exists } link within an iframe to enable a link inside an html document that is the "src" of an iframe to be opened in the
default browser, setting the preference: pref("network.protocol-handler.expose-all", false); seems to work.
:-moz-system-metric(windows-default-theme) - Archive of obsolete content
the :-moz-system-metric(windows-
default-theme) css pseudo-class matches an element if the user is currently using one of the following themes in windows: luna, royale, zune, or aero (i.e., vista basic, vista standard, or aero glass).
... example html content <p id="
defaultthemes"> this paragraph should have a green background with luna/royale/zune/aero windows themes and red with other themes.
... </p> <p id="non
defaultthemes"> this paragraph should have a green background with windows classic or third-party themes and red with other themes.
... </p> <p id="notsupported">theme detection is not supported.</p> css content #
defaultthemes, #non
defaultthemes { background-color: #ffa0a0; } #
defaultthemes:-moz-system-metric(windows-
default-theme) { background-color: #a0ffa0; } #non
defaultthemes:not(-moz-system-metric(windows-
default-theme)) { background-color: #a0ffa0; } #notsupported:-moz-system-metric(windows-
default-theme), #notsupported:not(:-moz-system-metric(windows-
default-theme)) { display: none; } specifications not part of any specification.
PR_GetDefaultIOMethods
gets the
default i/o methods table.
... syntax #include <prio.h> const priomethods* pr_get
defaultiomethods(void); returns if successful, the function returns a pointer to a priomethods structure.
... description after using pr_get
defaultiomethods to identify the
default i/o methods table, you can select elements from that table with which to build your own layer's methods table.
... you may not modify the
default i/o methods table directly.
JS_GetDefaultFreeOp
this article covers features introduced in spidermonkey 17 return
default jsfreeop for the runtime.
... syntax jsfreeop * js_get
defaultfreeop(jsruntime *rt); name type description rt jsruntime * a pointer to the runtime.
... description js_get
defaultfreeop returns
default jsfreeop for the runtime.
... see also mxr id search for js_get
defaultfreeop js_freeop jsfreeop bug 737365 ...
JS_GetPropertyDefault
this article covers features introduced in spidermonkey 1.8.5 finds a specified property and retrieves its value or provided
default value.
... syntax bool js_getproperty
default(jscontext *cx, jsobject *obj, const char *name, jsval def, js::mutablehandle<js::value> vp); bool js_getpropertybyid
default(jscontext *cx, jsobject *obj, jsid id, jsval def, js::mutablehandle<js::value> vp); name type description cx jscontext * a context.
... def js::handlevalue
default value if the property is not found.
... description js_getproperty
default examines a specified js object obj and its prototype chain for a property with the specified name.
Document.defaultView - Web APIs
in browsers, document.
defaultview returns the window object associated with a document, or null if none is available.
... syntax var win = document.
defaultview; this property is read-only.
... specifications specification status comment html living standardthe definition of 'document.
defaultview' in that specification.
... living standard no change html5the definition of 'document.
defaultview' in that specification.
HTMLMediaElement.defaultPlaybackRate - Web APIs
the htmlmediaelement.
defaultplaybackrate property indicates the
default playback rate for the media.
... syntax var dspeed = video.
defaultplaybackrate; audio.
defaultplaybackrate = 1.0; value a double.
... example var obj = document.createelement('video'); console.log(obj.
defaultplaybackrate); // 1 specifications specification status comment html living standardthe definition of 'htmlmediaelement.
defaultplaybackrate' in that specification.
... living standard no change from html5 html5the definition of 'htmlmediaelement.
defaultplaybackrate' in that specification.
ReadableStreamDefaultController.enqueue() - Web APIs
the enqueue() method of the readablestream
defaultcontroller interface enqueues a given chunk in the associated stream.
... syntax readablestream
defaultcontroller.enqueue(chunk); parameters chunk the chunk to enqueue.
... exceptions typeerror the source object is not a readablestream
defaultcontroller.
... when a button is pressed, the generation is stopped, the stream is closed using readablestream
defaultcontroller.close(), and another function is run, which reads the data back out of the stream.
ReadableStreamDefaultController.error() - Web APIs
the error() method of the readablestream
defaultcontroller interface causes any future interactions with the associated stream to error.
... syntax readablestream
defaultcontroller.error(e); parameters e the error you want future interactions to fail with.
... exceptions typeerror the source object is not a readablestream
defaultcontroller, or the stream is not readable for some other reason.
... examples the a readable stream with an underlying push source and backpressure support example in the spec provides a good example of using readablestream
defaultcontroller.desiredsize to manually detect when the stream is full and apply backpressure, and also of using error() to manually trigger a stream error if another part of the system it relies on fails.
ReadableStreamDefaultReader.read() - Web APIs
the read() method of the readablestream
defaultreader interface returns a promise providing access to the next chunk in the stream's internal queue.
... syntax var promise = readablestream
defaultreader.read(); parameters none.
... exceptions typeerror the source object is not a readablestream
defaultreader, or the stream has no owner.
...it is read using a readablestream
defaultreader created using getreader().
ReadableStreamDefaultReader.releaseLock() - Web APIs
the releaselock() method of the readablestream
defaultreader interface releases the reader's lock on the stream.
... a reader’s lock cannot be released while it still has a pending read request, i.e., if a promise returned by the reader’s readablestream
defaultreader.read() method has not finished.
... syntax readablestream
defaultreader.releaselock(); parameters none.
... exceptions typeerror the source object is not a readablestream
defaultreader, or a read request is pending.
AudioParam.defaultValue - Web APIs
the
defaultvalue read-only property of the audioparam interface represents the initial value of the attributes as defined by the specific audionode creating the audioparam.
... syntax var
defaultval = audioparam.
defaultvalue; value a floating-point number.
... example const audioctx = new audiocontext(); const gainnode = audioctx.creategain(); const
defaultval = gainnode.gain.
defaultvalue; console.log(
defaultval); // 1 console.log(
defaultval === gainnode.gain.value); // true specifications specification status comment web audio apithe definition of '
defaultvalue' in that specification.
Node.isDefaultNamespace() - Web APIs
the node.is
defaultnamespace() method accepts a namespace uri as an argument and returns a boolean with a value of true if the namespace is the
default namespace on the given node or false if not.
... syntax result = node.is
defaultnamespace(namespaceuri); parameters namespaceuri is a string representing the namespace against which the element will be checked.
... example var xulns = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; var el = document.getelementsbytagnamens(xulns, 'textbox')[0]; alert(el.is
defaultnamespace(xulns)); // true specifications specification status comment domthe definition of 'node: is
defaultnamespace' in that specification.
ReadableStreamDefaultController.desiredSize - Web APIs
the desiredsize read-only property of the readablestream
defaultcontroller interface returns the desired size required to fill the stream's internal queue.
... syntax var desiredsize = readablestream
defaultcontroller.desiredsize; value an integer.
... examples the a readable stream with an underlying push source and backpressure support example in the spec provides a good example of using desiredsize to manually detect when the stream is full and apply backpressure, and also of using readablestream
defaultcontroller.error() to manually trigger a stream error if another part of the system it relies on fails.
SpeechSynthesisVoice.default - Web APIs
the
default read-only property of the speechsynthesisvoice interface returns a boolean indicating whether the voice is the
default voice for the current app (true), or not (false.) note: for some devices, it might be the
default voice for the voice's language.
... syntax var ami
default = speechsynthesisvoiceinstance.
default; value a boolean.
... examples for(i = 0; i < voices.length ; i++) { var option = document.createelement('option'); option.textcontent = voices[i].name + ' (' + voices[i].lang + ')'; if(voices[i].
default) { option.textcontent += ' --
default'; } option.setattribute('data-lang', voices[i].lang); option.setattribute('data-name', voices[i].name); voiceselect.appendchild(option); } specifications specification status comment web speech apithe definition of '
default' in that specification.
TrackDefault.byteStreamTrackID - Web APIs
the bytestreamtrackid read-only property of the track
default interface returns the id of the specific track that the sourcebuffer should apply to.
... if not specified in the constructor, this value will be an empty string and the sourcebuffer can contain any tracks of the specified track
default.type.
... syntax var myid = track
default.bytestreamtrackid; value a domstring.
List of default Accept values - HTTP
this article documents the
default values for the http accept header for specific inputs and browser versions.
...
default values these are the values sent when the context doesn't give better information.
...lue comment firefox text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 (since firefox 66) text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 (in firefox 65) text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 (before) in firefox 65 and earlier, this value can be modified using the network.http.accept.
default parameter.
toolkit.defaultChromeFeatures - Archive of obsolete content
type: string specified by:
default prefs of xulrunner applications
default: "chrome,dialog=no,all" example: pref("toolkit.
defaultchromefeatures", "chrome,resizable=no,dialog=no"); the toolkit.
defaultchromefeatures preference allows simple xulrunner-based applications to specify what features are passed to window.open() when the main application window is opened.
... see also: xulrunner:specifying startup chrome window, dom:window.open, toolkit.
defaultchromeuri, toolkit.singletonwindowtype.
toolkit.defaultChromeURI - Archive of obsolete content
type: string specified by:
default prefs of xulrunner applications
default: none example: pref("toolkit.
defaultchromeuri", "chrome://myapp/content/"); the toolkit.
defaultchromeuri preference allows simple xulrunner-based applications to open a new window when the application is launched.
...see also: xulrunner:specifying startup chrome window, toolkit.
defaultchromefeatures, toolkit.singletonwindowtype.
DefaultKeyBinding
« nsiaccessible page summary provides localized string of global keyboard accelerator for
default action, such as ctrl+o for open file (ctrl + o).
... attribute astring
defaultkeybinding; see also nsiaccessible.getkeybindings() nsiaccessible.keyboardshortcut ...
ReadableStreamDefaultReader.closed - Web APIs
the closed read-only property of the readablestream
defaultreader interface returns a promise that fulfills if the stream becomes closed or the reader's lock is released, or rejects if the stream errors.
... syntax var closed = readablestream
defaultreader.closed; value a promise.
SourceBuffer.trackDefaults - Web APIs
the track
defaults property of the sourcebuffer interface specifies the
default values to use if kind, label, and/or language information is not available in the initialization segment of the media to be appended to the sourcebuffer.
... syntax var mytrack
defaults = sourcebuffer.track
defaults; sourcebuffer.track
defaults = mytrack
defaultlist; value a track
defaultlist object.
TrackDefault.kinds - Web APIs
the kinds read-only property of the track
default interface returns
default kinds for an associated sourcebuffer to use when an initialization segment does not contain label information for a new track.
... syntax var mykinds = track
default.kinds; value an array of domstrings.
TrackDefault.label - Web APIs
the label read-only property of the track
default interface returns the
default label for an associated sourcebuffer to use when an initialization segment does not contain label information for a new track.
... syntax var mylabel = track
default.label; value a domstring.
TrackDefault.language - Web APIs
the language read-only property of the track
default interface returns a
default language for an associated sourcebuffer to use when an initialization segment does not contain language information for a new track.
... syntax var mylanguage = track
default.language; value a domstring.
TrackDefault.type - Web APIs
the type read-only property of the track
default interface returns the type of track that this sourcebuffer's media segment data relates to (i.e.
... audio, video, or text track.) syntax var mytype = track
default.type; value a domstring — one of audio, video or text.
TrackDefaultList.length - Web APIs
the length read-only property of the track
defaultlist interface returns the number of track
default objects in the list.
... syntax var mylistlength = track
defaultlist.length; value an unsigned long number.
Window.defaultStatus - Web APIs
syntax var smsg = window.
defaultstatus; window.
defaultstatus = smsg; parameters smsg is a string containing the text to be displayed by
default in the statusbar.
... example <html> <body onload="window.
defaultstatus='hello!';"/> <button onclick="window.confirm('are you sure you want to quit?');">confirm</button> </body> </html> notes to set the status once the window has been opened, use window.status.
WritableStreamDefaultController.error() - Web APIs
the error() method of the writablestream
defaultcontroller interface causes any future interactions with the associated stream to error.
... syntax writablestream
defaultcontroller.error(e); parameters e a domstring representing the error you want future interactions to fail with.
sslfnc.html
nss_init nss_initreadwrite nss_nodb_init ssl_optionset
default ssl_optionget
default ssl_cipherprefset
default ssl_cipherprefget
default ssl_clearsessioncache ssl_configserversessionidcache ssl_configmpserversidcache ssl_inheritmpserversidcache nss_init sets up configuration files and performs other tasks required to run network security services.
... the policy flags for all cipher suites are turned off by
default, disallowing all cipher suites.
... the policy flags for all cipher suites are turned off by
default, disallowing all cipher suites.
...And 83 more matches
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
instead of configuring end user individual preferences files (~/.mozilla/
default/randomdir/prefs.js) we now use a centralized
default set of preferences.
... this centralized preference file can lock preferences (lockpref) or initialize them (
defaultpref) based on environment variables (user, home...) and/or ldap queries (fetch email address, common name , language, homepage etc...) from the enterprise directory.
... file location (not tested since 2012 ...) in thunderbird , firefox, the javascript preference file that calls the centralized preference file is located in $install_dir_moz_app/
defaults/pref, for example in thunderbird this would be repectively for windows/linux: c:\program files\mozilla thunderbird\
defaults\pref /usr/lib/thunderbird/
default/pref ( it used to be in /usr/lib/thunderbird-version#/
default/pref as in /usr/lib/thunderbird-5/
default/pref ) for the record/history purpose ...
...And 55 more matches
Index - Archive of obsolete content
18 interacting with page scripts add-on sdk, add-ons, extensions by
default, content scripts loaded by add-ons and scripts loaded by web pages are insulated from each other: 19 loading content scripts no summary!
... 190 is
defaultnamespace no summary!
... 227
default preferences a key part of any extension is the
default settings that come with it.
...And 47 more matches
Experimental features in Firefox
release channel version added enabled by
default?
... release channel version added enabled by
default?
... release channel version added enabled by
default?
...And 37 more matches
x - SVG: Scalable Vector Graphics
value list of <length>
default value none animatable yes feblend for <feblend>, x defines the minimum x coordinate for the rendering area of the primitive.
... value <length> | <percentage>
default value 0% animatable yes fecolormatrix for <fecolormatrix>, x defines the minimum x coordinate for the rendering area of the primitive.
... value <length> | <percentage>
default value 0% animatable yes fecomponenttransfer for <fecomponenttransfer>, x defines the minimum x coordinate for the rendering area of the primitive.
...And 34 more matches
y - SVG: Scalable Vector Graphics
value list of <length>
default value none animatable yes feblend for <feblend>, y defines the minimum y coordinate for the rendering area of the primitive.
... value <length> | <percentage>
default value 0% animatable yes fecolormatrix for <fecolormatrix>, y defines the minimum y coordinate for the rendering area of the primitive.
... value <length> | <percentage>
default value 0% animatable yes fecomponenttransfer for <fecomponenttransfer>, y defines the minimum y coordinate for the rendering area of the primitive.
...And 34 more matches
Component; nsIPrefBranch
this object may be obtained from the preferences service (nsiprefservice) and used to get and set
default and/or user preferences across the application.
... method overview void addobserver(in string adomain, in nsiobserver aobserver, in boolean aholdweak); void clearuserpref(in string aprefname); void deletebranch(in string astartingat); boolean getboolpref(in string aprefname, requires gecko 54 [optional] in boolean a
defaultvalue); string getcharpref(in string aprefname,requires gecko 54 [optional] in string a
defaultvalue); requires gecko 58 utf8tring getstringpref(in string aprefname, [optional] in utf8string a
defaultvalue); void getchildlist(in string astartingat, [optional] out unsigned long acount, [array, size_is(acount), retval] out string achildarray); void getcomplexvalue(i...
...n string aprefname, in nsiidref atype, [iid_is(atype), retval] out nsqiresult avalue); long getintpref(in string aprefname,requires gecko 54 [optional] in long a
defaultvalue); long getpreftype(in string aprefname); void lockpref(in string aprefname); boolean prefhasuservalue(in string aprefname); boolean prefislocked(in string aprefname); void removeobserver(in string adomain, in nsiobserver aobserver); void resetbranch(in string astartingat); void setboolpref(in string aprefname, in long avalue); void setcharpref(in string aprefname, in string avalue); requires gecko 58 void setstringpref(in string aprefname, in utf8string avalue); void setcomplexvalue(in string aprefname, in nsiidref atype, in ns...
...And 25 more matches
CustomizableUI.jsm
onwidgetreset(anode, acontainer) fired after a reset to
default placements moves a widget's node to a different location.
... anode is the widget's node, acontainer is the area it was moved into (nb: it might already have been there and been moved to a different position!) onwidgetundomove(anode, acontainer) fired after undoing a reset to
default placements moves a widget's node to a different location.
... anode is the widget's node, acontainer is the area it was moved into (nb: it might already have been there and been moved to a different position!) onareareset(aarea, acontainer) fired after a reset to
default placements is complete on an area's dom node.
...And 24 more matches
NSS tools : modutil
modutil can add and delete pkcs #11 modules, change passwords on security databases, set
defaults, list module contents, enable or disable slots, enable or disable fips 140-2 compliance, and assign
default providers for cryptographic operations.
... -
default modulename specify the security mechanisms for which the named module will be a
default provider.
...the
default nss pkcs #11 module cannot be deleted.
...And 24 more matches
NSS tools : modutil
modutil can add and delete pkcs #11 modules, change passwords on security databases, set
defaults, list module contents, enable or disable slots, enable or disable fips 140-2 compliance, and assign
default providers for cryptographic operations.
... -
default modulename specify the security mechanisms for which the named module will be a
default provider.
...the
default nss pkcs #11 module cannot be deleted.
...And 23 more matches
height - SVG: Scalable Vector Graphics
value <length> | <percentage>
default value 100% animatable yes fecolormatrix for <fecolormatrix>, height defines the vertical length for the rendering area of the primitive.
... value <length> | <percentage>
default value 100% animatable yes fecomponenttransfer for <fecomponenttransfer>, height defines the vertical length for the rendering area of the primitive.
... value <length> | <percentage>
default value 100% animatable yes fecomposite for <fecomposite>, height defines the vertical length for the rendering area of the primitive.
...And 22 more matches
width - SVG: Scalable Vector Graphics
value <length> | <percentage>
default value 100% animatable yes fecolormatrix for <fecolormatrix>, width defines the horizontal length for the rendering area of the primitive.
... value <length> | <percentage>
default value 100% animatable yes fecomponenttransfer for <fecomponenttransfer>, width defines the horizontal length for the rendering area of the primitive.
... value <length> | <percentage>
default value 100% animatable yes fecomposite for <fecomposite>, width defines the horizontal length for the rendering area of the primitive.
...And 22 more matches
Index - Archive of obsolete content
68 complete
defaultindex xul attributes, xul reference no summary!
... 88
default xul attributes, xul reference no summary!
... 89
defaultbutton xul attributes, xul reference no summary!
...And 21 more matches
Textbox (XPFE autocomplete) - Archive of obsolete content
attributes accesskey, alwaysopenpopup, autocompletesearch, autocompletesearchparam, autofill, autofillaftermatch, autofill, complete
defaultindex, crop, disableautocomplete, disableautocomplete, disabled, disablehistory, enablehistory, focused, forcecomplete, forcecomplete, highlightnonmatches, ignoreblurwhilesearching, ignoreblurwhilesearching, inputtooltiptext, label, maxlength, maxrows, minresultsforpopup, minresultsforpopup, nomatch, onchange, onerrorcommand, oninput, onsearchcomplete, ontextcommand, ontextentered, ontextrevert, o...
...ntextreverted, open, readonly, searchsessions, showcommentcolumn, showcommentcolumn, showpopup, size, tabindex, tabscrolling, tabscrolling, timeout, type, useraction, value properties accessible, alwaysopenpopup, autofill, autofillaftermatch, complete
defaultindex, crop, disableautocomplete, disabled, editable, focused, forcecomplete, highlightnonmatches, ignoreblurwhilesearching, inputfield, issearching, iswaiting, label, maxlength, maxrows, minresultsforpopup, nomatch, open, popup, popupopen, resultspopup, searchcount, searchparam, searchsessions, selectionend, selectionstart, sessioncount, showcommentcolumn, showpopup, size, tabindex, tabscrolling, textlength, textvalue, timeout, type, useraction, value methods addsession, clearresults, get
defaultsession, getresu...
...if false, the
default value, the popup will be hidden.
...And 20 more matches
NSS tools : certutil
the certificate database should already exist; if one is not present, this command option will initialize one by
default.
...the key database should already exist; if one is not present, this option will initialize one by
default.
...output
defaults to standard out unless you use -o output-file argument.
...And 20 more matches
filter - CSS: Cascading Style Sheets
if one filter is none, it is replaced with the filter functions list of the other one using the filter function
default values, then all filter functions are interpolated according to their specific rules.
...d-table"> <thead> <tr> <th style="text-align: left;" scope="col">original image</th> <th style="text-align: left;" scope="col">live example</th> <th style="text-align: left;" scope="col">svg equivalent</th> <th style="text-align: left;" scope="col">static example</th> </tr> </thead> <tbody> <tr> <td><img alt="test_form.jpg" id="img1" class="internal
default" src="/files/3710/test_form_2.jpg" style="width: 100%;" /></td> <td><img alt="test_form.jpg" id="img2" class="internal
default" src="/files/3710/test_form_2.jpg" style="width: 100%;" /></td> <td> <div class="svg-container"> <svg id="img3" overflow="visible" viewbox="0 0 212 161" color-interpolation-filters="srgb"> <filter id="svgblur" x="-5%" y="-5%" widt...
...h="110%" height="110%"> <fegaussianblur in="sourcegraphic" stddeviation="3.5"/> </filter> <image xlink:href="/files/3710/test_form_2.jpeg" filter="url(#svgblur)" width="212px" height="161px"/> </svg> </div> </td> <td><img alt="test_form_s.jpg" id="img4" class="internal
default" src="/files/3711/test_form_2_s.jpg" style="width: 100%;" /></td> </tr> </tbody> </table> html { height:100%; } body { font: 14px/1.286 "lucida grande", "lucida sans unicode", "dejavu sans", lucida, arial, helvetica, sans-serif; color: rgb(51, 51, 51); height:100%; overflow:hidden; } #img2 { width:100%; height:auto; -webkit-filter:blur(5px); -ms-filter:blur(5px); filter:blur(5px); } table.standard-table { border: 1px solid rgb(1...
...And 20 more matches
Preferences - Archive of obsolete content
it is similar to nsisupportsstring, except that when there is no user value, getcomplexvalue() gets the
default value from a locale file (thus making the
default value localizable).
...let's say you want to make the
default value for the extensions.myext.welcomemessage preference localizable.
... you should do the following: add this line to some .properties file (for all of your locales), say to chrome://myext/locale/
defaults.properties: extensions.myext.welcomemessage=localized
default value add the
default value for extensions.myext.welcomemessage, pointing to that properties file, by adding the following line to your file with
default preferences (see below).
...And 19 more matches
NSS Tools modutil
you can use the tool to add and delete pkcs #11 modules, change passwords, set
defaults, list module contents, enable or disable slots, enable or disable fips 140-2 compliance, and assign
default providers for cryptographic operations.
... -
default modulename specify the security mechanisms for which the named module will be a
default provider.
... -un
default modulename specify the security mechanisms for which the named module will not be a
default provider.
...And 19 more matches
Places utilities for JavaScript
by
default its only included in browser.xul.
...uri aoverrideuri); array unwrapnodes(string blob, string atype); nsitransaction maketransaction(string data, string type, nsinavhistoryresultnode container, int index, boolean copy); nsinavhistoryresult getfoldercontents(int afolderid, boolean aexcludeitems, boolean aexpandqueries); boolean showaddbookmarkui(nsiuri auri, string atitle, string adescription, int a
defaultinsertionpoint, boolean ashowpicker, boolean aloadinsidebar, string akeyword, string apostdata); boolean showminimaladdbookmarkui(nsiuri auri, string atitle, string adescription, int a
defaultinsertionpoint, boolean ashowpicker, boolean aloadinsidebar, string akeyword, string apostdata); boolean showaddlivemarkui(nsiuri afeeduri, nsiuri asiteuri, string atitle, string adescription...
..., int a
defaultinsertionpoint, boolean ashowpicker); boolean showminimaladdlivemarkui(nsiuri afeeduri, nsiuri asiteuri, string atitle, string adescription, int a
defaultinsertionpoint, boolean ashowpicker); boolean showminimaladdmultibookmarkui(array nsiuri aurilist); boolean showbookmarkproperties(int aid); boolean showfolderproperties(int aid); boolean showaddfolderui(string atitle, int a
defaultinsertionpoint, boolean ashowpicker); array object getannotationsforuri(nsiuri auri); array object getannotationsforitem(int aitemid); void setannotationsforuri(nsiuri auri, object aannos); void setannotationsforuri(int aitemid, object aannos); getviewfornode(nsidomnode anode); void markpageastyped(string aur...
...And 18 more matches
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
if this attribute is not specified, the
default type adopted is text.
... the available types are as follows: type description basic examples spec button a push button with no
default behavior displaying the value of the value attribute, empty by
default.
...displays a spinner and adds
default validation when supported.
...And 18 more matches
NSS environment variables
this was allowed by
default before nss 3.12.3.
...pkcs #11 module logger 3.6 nss_
default_db_type string ("dbm", "sql", or "extern") determines the
default database type to open if the app does not specify.
...
default is stdout.
...And 17 more matches
certutil
the certificate database should already exist; if one is not present, this option will initialize one by
default.
... the key database should already exist; if one is not present, this option will initialize one by
default.
...output
defaults to standard out unless you use -o output-file argument.
...And 17 more matches
Applying styles and colors - Web APIs
« previousnext » in the chapter about drawing shapes, we used only the
default line and fill styles.
...by
default, the stroke and fill color are set to black (css color value #000000).
... note: when you set the strokestyle and/or fillstyle property, the new value becomes the
default for all shapes being drawn from then on.
...And 17 more matches
textbox - Archive of obsolete content
only one line of text is displayed by
default.
... attributes cols, decimalplaces, disabled, emptytext, hidespinbuttons, increment, label, max, maxlength, min, multiline, newlines, onblur, onchange, onfocus, oninput, placeholder, preference, readonly, rows, searchbutton, size, spellcheck, tabindex, timeout, type, value, wrap, wraparound properties accessibletype, clickselectsall, decimalplaces, decimalsymbol,
defaultvalue, disabled, editor, emptytext, increment, inputfield, label, max, maxlength, min, placeholder, readonly, searchbutton, selectionend, selectionstart, size, spinbuttons, tabindex, textlength, timeout, type, value, valuenumber, wraparound methods decrease, increase, reset, select, setselectionrange style classes plain examples <vbox> <label control="your-name" value="enter your na...
...the
default is 0, which doesn't show any decimal places.
...And 16 more matches
Introduction to CSS layout - Learn web development
css page layout techniques allow us to take elements contained in a web page and control where they are positioned relative to their
default position in normal layout flow, the other elements around them, their parent container, or the main viewport/window.
... normal flow normal flow is how the browser lays out html pages by
default when you do nothing to control page layout.
... let's look at a quick html example: <p>i love my cat.</p> <ul> <li>buy cat food</li> <li>exercise</li> <li>cheer up friend</li> </ul> <p>the end!</p> by
default, the browser will display this code as follows: note here how the html is displayed in the exact order in which it appears in the source code, with elements stacked up on top of one another — the first paragraph, followed by the unordered list, followed by the second paragraph.
...And 16 more matches
source-editor.jsm
to use it, you first need to import the code module into your javascript scope: components.utils.import("resource:///modules/source-editor.jsm"); warning: much of the functionality of the source editor is implemented by a secondary code module (by
default, source-editor-orion.jsm).
...when using the
default orion editor, this is a xul <xul:iframe> element.
... constant value description sourceeditor.prefs.component "devtools.editor.component" a string indicating the name of the source editor engine to use; this is "orion" by
default.
...And 16 more matches
PKCS #11 Module Specs
if the application/library does not find its application/library specific data, it should use it's
defaults for this pkcs #11 library.
...'0' means that tokens on this library should not supply trust information (
default).
... valid slotparams values are: slotflags - comma separated list of cipher groups which this slot is expected to be the
default implementation for (case-insensitive).
...And 16 more matches
NSS Tools certutil
output
defaults to standard out unless you use -ooutput-file argument.
...the key database should already exist; if one is not present, this option will initialize one by
default.
...the certificate database should already exist; if one is not present, this option will initialize one by
default.
...And 15 more matches
Parser API
by
default, the parsing returns a program object (see below) representing the parsed abstract syntax tree (ast).
... additional options may be provided via the options object, which can include any of the following properties: loc boolean
default: true when loc is true, the parser includes source location information in the returned ast nodes.
... source string
default: null a description of the input source; typically a filename, path, or url.
...And 15 more matches
WebIDL bindings
if you don't have to set any annotations, then you don't need to add an entry either and the code generator will simply assume the
defaults here.
... in all cases, optional arguments which do not have a
default value are represented by wrapping const optional<>& around the representation of the argument type.
...optional arguments which do have a
default value are just represented by the argument type itself, set to the
default value if the argument was not in fact passed in.
...And 15 more matches
Drag Operations - Web APIs
the draggable attribute in a web page, there are certain cases where a
default drag behavior is used.
...for other elements, they must be part of a selection for a
default drag to occur.
...however, this behavior is only the
default drag behavior, if no listeners adjust the data to be dragged.
...And 15 more matches
xlink:href - SVG: Scalable Vector Graphics
value <iri>
default value none animatable yes altglyph for <altglyph>, xlink:href defines the reference either to a <glyph> element in an svg document fragment or to an <altglyphdef> element.
... value <iri>
default value none animatable no animate, animatecolor, animatemotion, animatetransform, set for <animate>, <animatecolor>, <animatemotion>, <animatetransform>, and <set>, xlink:href defines the reference to the element which is the target of this animation and which therefore will be modified over time.
... value <iri>
default value none animatable no color-profile for <color-profile>, xlink:href defines the location of an icc profile resource.
...And 15 more matches
A brief guide to Mozilla preferences
they are:
default preference files firefox ships
default preferences in several files, all in the application directory: greprefs.js - preferences shared by all applications using the mozilla platform services/common/services-common.js - preferences for some shared services code, this should arguably be included in some other file
defaults/pref/services-sync.js -
default preferences for firefox sync, a...
... browser/app/profile/firefox.js -
defaults specific to firefox browser/app/profile/firefox-branding.js -
defaults specific to the specific kind of firefox being installed (nightly, aurora, beta, release) browser/
defaults/preferences/firefox-l10n.js -
defaults specific to the installed language of firefox.
...file a configuration file, usually with .cfg extension, may be called from a
default pref file via the general.config.filename preference.
...And 14 more matches
Intl.NumberFormat() constructor - JavaScript
takes either "short" (
default) or "long".
...there is no
default value; if the style is "currency", the currency property must be provided.
...possible values are: "symbol" to use a localized currency symbol such as €, this is the
default value, "narrowsymbol" to use a narrow format symbol ("$100" rather than "us$100"), "code" to use the iso currency code, "name" to use a localized currency name such as "dollar", currencysign in many locales, accounting format means to wrap the number with parentheses instead of appending a minus sign.
...And 14 more matches
Search Extension Tutorial (Draft) - Archive of obsolete content
changing
default search setting from extensions many add-ons, for monetization or other reasons, change several search-related settings at install time.
...the most technically sound method of achieving this, and the only acceptable way of changing preferences such that they are automatically restored on add-on uninstall, is to make such changes in the
default preference branch, as explained below.
...changing
default preference values there are two common ways of changing
default preference values.
...And 13 more matches
UI pseudo-classes - Learn web development
:checked, :indeterminate, and :
default: respectively target checkboxes and radio buttons that are checked, in an indeterminate state (neither checked or not checked), and the
default selected option when the page loads (e.g.
...or example, if we apply the following css to the above html: input:required { border: 1px solid black; } input:optional { border: 1px solid silver; } the required controls would have a black border, and the optional control will have a silver border, like so: you can also try submitting the form without filling it in, to see the client-side validation error messages browsers give you by
default.
...form controls are optional by
default, so you could just do your optional styling by
default, and add styles on top for required controls.
...And 13 more matches
fill - SVG: Scalable Vector Graphics
value <paint>
default value black animatable yes note: as a presentation attribute fill can be used as a css property.
... value freeze (keep the state of the last animation frame) | remove (keep the state of the first animation frame)
default value remove animatable no animatecolor warning: as of svg animation 2 <animatecolor> is deprecated and shouldn't be used.
... value freeze (keep the state of the last animation frame) | remove (keep the state of the first animation frame)
default value remove animatable no animatemotion for <animatemotion>, fill defines the final state of the animation.
...And 13 more matches
Animated PNG graphics
terminology the
default image is the image described by the standard 'idat' chunks, and is the image that is displayed by decoders that do not support apng.
...it is strongly recommended that when any error is encountered decoders should discard all subsequent frames, stop the animation, and revert to displaying the
default image.
... a decoder which detects an error before the animation has started should display the
default image.
...And 12 more matches
attr() - CSS: Cascading Style Sheets
/* simple usage */ attr(data-count); attr(title); /* with type */ attr(src url); attr(data-count number); attr(data-width px); /* with fallback */ attr(data-count number, 0); attr(src url, ""); attr(data-width px, inherit); attr(data-something, "
default"); syntax values attribute-name is the name of an attribute on the html element referenced in the css.
...if omitted, it
defaults to string.
... the list of valid values are: keyword associated type comment
default value string <string> the attribute value is treated as a css <string>.
...And 12 more matches
ui/button/toggle - Archive of obsolete content
ons to create a button you must give it an id, an icon, and a label: var { togglebutton } = require("sdk/ui/button/toggle"); var button = togglebutton({ id: "my-button", label: "my button", icon: { "16": "./firefox-16.png", "32": "./firefox-32.png" }, onchange: function(state) { console.log(state.label + " checked state: " + state.checked); } }); by
default, the button appears in the firefox toolbar: however, users can move it to the firefox menu panel: badged buttons new in firefox 36.
...by
default the badge's color is red, but you can set your own color using the badgecolor property, specified as a css <color> value: var { togglebutton } = require("sdk/ui/button/toggle"); var button = togglebutton({ id: "my-button1", label: "my button1", icon: "./icon-16.png", onchange: changed, badge: 0, badgecolor: "#00aaaa" }); function changed(state) { button.badge = state.badge + 1; if (state.checked) { button.badgecolor = "#aa00aa"; } else { button.badgecolor = "#00aaaa"; } } specifying multiple icons you can specify just one icon, or multiple icons in different sizes.
...initially the buttons in all tabs and windows will display the label value inherited from the global state: browser: label = "my
default" w1 t1 > displays "my
default" t2 > displays "my
default" w2 t3 > displays "my
default" t4 > displays "my
default" if you then set a label specific to t3 as "my t3 label", then set a label state specific to w2 as "my w2 label", then the button displayed when t3 is the active tab will still show "my t3 label", but the button d...
...And 11 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.
... title name: this
defaults to the name of the directory in which you are running jpm init.
... version description entry point (which maps to "main" in package.json) author engines (supported applications) license most of these fields have a
default, which is shown in brackets after the question.
...And 11 more matches
textbox (Toolkit autocomplete) - Archive of obsolete content
attributes accesskey, autocompletepopup, autocompletesearch, autocompletesearchparam, complete
defaultindex, completeselectedindex,crop, disableautocomplete, disabled, disablekeynavigation, enablehistory, focused, forcecomplete, highlightnonmatches, ignoreblurwhilesearching, inputtooltiptext, label, maxlength, maxrows, minresultsforpopup, nomatch, onchange, oninput, onsearchcomplete, ontextentered, ontextreverted, open, readonly,showcommentcolumn, showimagecolumn, size, tabindex, tabscrolling, tim...
...eout, type, value properties accessibletype, complete
defaultindex, controller, crop, disableautocomplete, disablekeynavigation, disabled, editable, focused, forcecomplete, highlightnonmatches, ignoreblurwhilesearching, inputfield, label, maxlength, maxrows, minresultsforpopup, open, popup, popupopen, searchcount, searchparam, selectionend, selectionstart, showcommentcolumn, showimagecolumn,size, tabindex, tabscrolling, textlength, textvalue, timeout, type, value methods getsearchat, onsearchcomplete, ontextentered, ontextreverted, select, setselectionrange examples <textbox type="autocomplete" autocompletesearch="history"/> attributes accesskey type: character this should be set to a character that is used as a shortcut key.
... search-autocomplete requires seamonkey 2.1 the user's
default search engine's suggestions are searched.
...And 11 more matches
Index
42 components.utils.isxraywrapper when privileged javascript in gecko accesses objects belonging to less-privileged code (such as untrusted web content), it does so, by
default, with "xray vision": a mechanism that filters out certain changes to the objects that could cause them to behave in unexpected ways.
...the first action should be equivalent to the msaa
default action.
... 253
defaultkeybinding provides localized string of global keyboard accelerator for
default action, such as ctrl+o for open file (ctrl + o).
...And 11 more matches
nsIPromptService
button
default flags these flags are used to select which button is the
default.
... constant value description button_pos_0_
default 0 button_pos_1_
default 16777216 button_pos_2_
default 33554432 button_delay_enable button_delay_enable causes the buttons to be initially disabled.
...button 0 is the
default button unless one of the button
default flags is specified (see button
default flags).
...And 11 more matches
Object.defineProperty() - JavaScript
this method allows these extra details to be changed from their
defaults.
... by
default, values added using object.defineproperty() are immutable and not enumerable.
...they share the following optional keys (note: the
default value is in the case of defining properties using object.defineproperty()): configurable true if and only if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.
...And 11 more matches
New Skin Notes - Archive of obsolete content
--dria the
default link color is to bright.
...if this is going to be the
default skin used by editors, they are unacceptably small.
...--nickolay do you know if there's a localsettings variable to have the edit-section links off by
default?
...And 10 more matches
Elements - Archive of obsolete content
it should usually declare xbl as the
default namespace (unless an xbl namespace prefix is used) and it may additionally declare other namespace prefixes used in your binding.
... helloworld.html: <!doctype html public "-//w3c//dtd html 4.01//en"> <html> <head> <title>hello world!</title> <style type="text/css"> p { -moz-binding: url(hello.xml#
default); } #p03 { -moz-binding: url(hello.xml#hello2); } </style> </head> <body> <p>
default content</p> <p>
default content</p> <p id="p03">
default content</p> </body> </html> hello.xml: <?xml version="1.0"?> <bindings xmlns="http://www.mozilla.org/xbl" xmlns:html="http://www.w3.org/1999/xhtml"> <binding id="
default"> <content><html:b>hello world!
...
default encoding in xml documents (including xbl files) is utf-8.
...And 10 more matches
prefwindow - Archive of obsolete content
you can pass the id of a particular pane as the fourth argument to opendialog to open a specific pane by
default.
...normally, you would not set this attribute as it will be set automatically such that the
default pane is the same as the one showing when the preferences dialog was last closed.
...the preference window will not run correctly if you do not set this preference in your application's
defaults (see bug 485150 for more information).
...And 10 more matches
Other form controls - Learn web development
<textarea> also takes a closing tag, and any
default text you want it to contain should be put between the opening and closing tags.
... in contrast, the <input> is an empty element with no closing tag — any
default value is put inside the value attribute.
... visually, the text entered wraps and the form control is by
default resizable.
...And 10 more matches
Styling web forms - Learn web development
by
default, some widgets do not inherit font-family and font-size from their parents.
... many browsers use the system
default appearance instead.
...on the left is the
default rendering of an <input type="text">, <input type="date">, <select>, <textarea>, <input type="submit">, and a <button> in chrome on macos, with the platform's
default font style in use.
...And 10 more matches
Index
94 jsconvertop jsapi reference, reference, référence(2), spidermonkey jsconvertop callback specifies conversion behavior for objects having this class, implementing the ecmascript [[
defaultvalue]] behavior for them.
...this callback overrides a portion of spidermonkey's
default [[enumerate]] internal method.
... 128 jsobject jsapi reference, spidermonkey objects are made up of the following parts: 129 jsobjectop jsapi reference, obsolete, spidermonkey the callbacks of this type are: 130 jsobjectops.
defaultvalue jsapi reference, obsolete, spidermonkey the jsobjectops.
defaultvalue callback corresponds to the [[
defaultvalue]] method defined in ecma 262-3 §8.6.2.6.
...And 10 more matches
imgIEncoder
png: ---- transparency=[yes|no|none] --
default: "yes" overrides
default from input format.
... apng: ----- the following options can be used with startimageencode(): transparency=[yes|no|none] --
default: "yes" overrides
default from input format.
...skipfirstframe=[yes|no] --
default: "no" controls display of the first frame in animations.
...And 10 more matches
Standard OS Libraries
this comes shipped by
default with all installations of windows operating systems since win98.
... components.utils.import('resource://gre/modules/ctypes.jsm'); var gdk = ctypes.open('libgdk-x11-2.0.so.0'); // types var gint = ctypes.int; var gdkdevice = ctypes.structtype('gdkdevice'); var gdkmodifiertype = ctypes.int; var gdkwindow = ctypes.structtype('gdkwindow'); var void = ctypes.void_t; // https://developer.gnome.org/gdk3/stable/gdk3-windows.html#gdk-get-
default-root-window var gdk_get_
default_root_window = gdk.declare('gdk_get_
default_root_window', ctypes.
default_abi, gdkwindow.ptr // return - the root window, which is top most parent of all windows ); // in gdk2 we have to use gdk_window_get_pointer, but in gdk3 it was deprecated and have to use gdk_window_get_device_position https://developer.gnome.org/gdk3/stable/gdk3-windows.html#gdk-window-...
...get-pointer var gdk_window_get_pointer = gdk.declare('gdk_window_get_pointer', ctypes.
default_abi, gdkwindow.ptr, // return - the window containing the pointer (as with gdk_window_at_pointer()), or null if the window containing the pointer isn’t known to gdk.
...And 10 more matches
PannerNode - Web APIs
its
default value is 0, meaning that no sound can be heard.
...the
default value is "inverse".
...the
default is value is 1.
...And 10 more matches
Cross-browser Flexbox mixins - CSS: Cascading Style Sheets
values: row (
default) | row-reverse | column | column-reverse spec: https://drafts.csswg.org/css-flexbox/#flex-direction-property @mixin flex-direction($value: row) { @if $value == row-reverse { -webkit-box-direction: reverse; -webkit-box-orient: horizontal; -moz-box-direction: reverse; -moz-box-orient: horizontal; } @else if $value == column { -webkit-box-direction: normal; -webkit-bo...
... values: nowrap (
default) | wrap | wrap-reverse spec: https://drafts.csswg.org/css-flexbox/#flex-wrap-property @mixin flex-wrap($value: nowrap) { // no webkit/ff box fallback.
... values: row (
default) | nowrap spec: https://drafts.csswg.org/css-flexbox/#flex-flow-property @mixin flex-flow($values: (row nowrap)) { // no webkit/ff box fallback.
...And 10 more matches
Content Security Policy (CSP) - HTTP
browsers that don't support it still work with servers that implement it, and vice-versa: browsers that don't support csp simply ignore it, functioning as usual,
defaulting to the standard same-origin policy for web content.
...(sometimes you may see mentions of the x-content-security-policy header, but that's an older version and you don't need to specify it anymore.) alternatively, the <meta> element can be used to configure a policy, for example: <meta http-equiv="content-security-policy" content="
default-src 'self'; img-src https://*; child-src 'none';"> threats mitigating cross site scripting a primary goal of csp is to mitigate and report xss attacks.
...your policy should include a
default-src policy directive, which is a fallback for other resource types when they don't have policies of their own (for a complete list, see the description of the
default-src directive).
...And 10 more matches
ui/button/action - Archive of obsolete content
buttons to create a button you must give it an id, an icon, and a label: 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: function(state) { console.log("button '" + state.label + "' was clicked"); } }); by
default, the button appears in the firefox toolbar: however, users can move it to the firefox menu panel using the toolbar customization feature: badged buttons new in firefox 36.
...by
default the badge's color is red, but you can set your own color using the badgecolor property, specified as a css <color> value: var { togglebutton } = require("sdk/ui/button/toggle"); var button = togglebutton({ id: "my-button1", label: "my button1", icon: "./icon-16.png", onchange: changed, badge: 0, badgecolor: "#00aaaa" }); function changed(state) { button.badge = state.badge + 1; if (state.checked) { button.badgecolor = "#aa00aa"; } else { button.badgecolor = "#00aaaa"; } } specifying multiple icons you can specify just one icon, or multiple icons in different sizes.
... by
default, the button has global state: that is, its properties are the same across all open windows and tabs, and updating them updates the button's state across all open windows and tabs.
...And 9 more matches
Styling links - Learn web development
link states the first thing to understand is the concept of link states — different states that links can exist in, which can be styled using different pseudo-classes: link (unvisited): the
default state that a link resides in, when it isn't in any other state.
...
default styles the following example illustrates what a link will behave like by
default (the css is simply enlarging and centering the text to make it stand out more.) <p><a href="#">a simple link</a></p> p { font-size: 2rem; text-align: center; } note: all the links in the examples in this page are fake links — a # (hash, or pound sign) is put in place of the real url.
... you'll notice a few things as you explore the
default styles: links are underlined.
...And 9 more matches
Handling common accessibility problems - Learn web development
using native keyboard accessibility certain html features can be selected using only the keyboard — this is
default behavior, available since the early days of the web.
... you can try this out using our native-keyboard-accessibility.html example (see the source code) — open this in a new tab, and try pressing the tab key; after a few presses, you should see the tab focus start to move through the different focusable elements; the focused elements are given a highlighted
default style in every browser (it differs slightly between different browsers) so that you can tell what element is focused.
...most modern browsers follow the tab pattern described above (you can also do shift + tab to move backwards through the focusable elements), but some browsers have their own idiosyncracies: firefox for the mac doesn't do tabbing by
default.
...And 9 more matches
Configuring Build Options
the
default options are the most well-supported, so it is preferable to add as few options as possible.
...firefox is the
default.
... choose one of the following options to add to your mozconfig file: browser (firefox) ac_add_options --enable-application=browser note: this is the
default mail (thunderbird) ac_add_options --enable-application=comm/mail mozilla suite (seamonkey) ac_add_options --enable-application=suite calendar (lightning extension, uses thunderbird) ac_add_options --enable-application=comm/mail ac_add_options --enable-calendar selecting build options the build options you choose depends on what application you are building and what you will be using the build for.
...And 9 more matches
NSS tools : pk12util
the
default is to return information in a pretty-print ascii format, which displays the information about the certificates and public keys in the p12 file.
...tart error o 15 - error read from import file o 16 - pkcs12 decode error o 17 - pkcs12 decoder verify error o 18 - pkcs12 decoder validate bags error o 19 - pkcs12 decoder import bags error o 20 - key db conversion version 3 to version 2 error o 21 - cert db conversion version 7 to version 5 error o 22 - cert and key dbs patch error o 23 - get
default cert db error o 24 - find cert by nickname error o 25 - create export context error o 26 - pkcs12 add password itegrity error o 27 - cert and key safes creation error o 28 - pkcs12 add cert and key error o 29 - pkcs12 encode error examples importing keys and certificates the most basic usage of pk12util for importing a certificate or key is the pkcs...
... pk12util -l p12file [-h tokenname] [-r] [-d [sql:]directory] [-p dbprefix] [-k slotpasswordfile|-k slotpassword] [-w p12filepasswordfile|-w p12filepassword] for example, this prints the
default ascii output: # pk12util -l certs.p12 enter password for pkcs12 file: key(shrouded): friendly name: thawte freemail member's thawte consulting (pty) ltd.
...And 9 more matches
nsIDOMEvent
nseventptr getinternalnsevent(); violates the xpcom interface guidelines boolean getprevent
default(); deprecated since gecko 16.0 void initevent(in domstring eventtypearg, in boolean canbubblearg, in boolean cancelablearg); boolean isdispatchstopped(); violates the xpcom interface guidelines void preventbubble(); obsolete since gecko 24 void preventcapture(); obsolete since gecko 24 void prevent
default(); void serialize(in ipcmessageptr am...
... cancelable boolean used to indicate whether or not an event can have its
default action prevented.
... if the
default action can be prevented the value is true, else the value is false.
...And 9 more matches
EventTarget.addEventListener() - Web APIs
passive a boolean that, if true, indicates that the function specified by listener will never call prevent
default().
... if a passive listener does call prevent
default(), the user agent will do nothing other than generate a console warning.
...if not specified, usecapture
defaults to false.
...And 9 more matches
KeyboardEvent() - Web APIs
keyboardeventinitoptional is a keyboardeventinit dictionary, having the following fields: "key", optional and
defaulting to "", of type domstring, that sets the value of keyboardevent.key.
... "code", optional and
defaulting to "", of type domstring, that sets the value of keyboardevent.code.
... "location", optional and
defaulting to 0, of type unsigned long, that sets the value of keyboardevent.location.
...And 9 more matches
<textarea> - HTML: Hypertext Markup Language
setting these is a good idea for consistency, as browser
defaults can differ.
...
default content entered between the opening and closing tags.
...if it is not specified, the
default value is 20.
...And 9 more matches
switch - JavaScript
case valuen: //statements executed when the //result of expression matches valuen [break;] [
default: //statements executed when none of //the values match the value of the expression [break;]] } expression an expression whose result is matched against each case clause.
...
default optional a
default clause; if provided, this clause is executed if the value of expression doesn't match any of the case clauses.
...(if multiple cases match the provided value, the first case that matches is selected, even if the cases are not equal to each other.) if no matching case clause is found, the program looks for the optional
default clause, and if found, transfers control to that clause, executing the associated statements.
...And 9 more matches
href - SVG: Scalable Vector Graphics
value <url>
default value none animatable yes animate, animatemotion, animatetransform, set for the <animate>, <animatemotion>, <animatetransform>, and <set>, href defines a url referring to the element which is the target of this animation element and which therefore will be modified over time.
... value <url>
default value none animatable no discard for <discard>, href defines a url referring the target element to discard.
... value <url>
default value none animatable no feimage for <feimage>, href defines a url referring to an image resource or to an element.
...And 9 more matches
How to convert an overlay extension to restartless - Archive of obsolete content
well, xul overlays and windows, jsm files, chrome & resource mappings with localization,
default preferences, but no xpcom components of your own.
...even though it says that the
default type is "text", firefox will attempt to autodetect and fail, resulting in an error message in the console.
... step 4: manually handle
default preferences normal extensions load
default preferences from a standardized file automatically.
...And 8 more matches
Handling Preferences - Archive of obsolete content
preferences are used to store settings and information to change their
default behavior.
...the following files are used:
default preferences: these are stored in the directory
defaults/pref in the firefox installation directory.
...preferences with non-
default values are highlighted in bold.
...And 8 more matches
Numeric Controls - Archive of obsolete content
as with other textboxes, the
default value can be specified with the value attribute.
...<textbox type="number" min="1" max="20"/> as the
default value isn't specified, it will
default to 1, the minimum value.
...if the minimum value is not specified, it has a
default value of 0.
...And 8 more matches
OS.File for the main thread
example: read the contents of a file as text the following snippet opens a file "file.txt" and read its contents as a string, using the
default encoding (utf-8).
... example: write a string to a file the following snippet writes the text "this is some text" to a string "file.txt", using the
default encoding (utf-8).
...estrenamed.txt if the file is located in directory c:\jean\ var promise = os.file.move(os.path.join('c:', 'jean', 'test.txt'), os.path.join('c:', 'jean', 'testrenamed.txt')); promise.then( function() { console.log('rename successful') }, function(arejectreason) { console.log('rename failed, arejectreason = ', arejectreason) } ) the nooverwrite true is important, as
default is false which means if a file in the directory exists already with the same name it will no longer be there after this "rename" operation, which is a "move".
...And 8 more matches
DMD
this is the
default mode.
... adb shell am start -n org.mozilla.fennec_$username/.app trigger use the existing memory-report dumping hook: adb shell am broadcast -a org.mozilla.gecko.memory_dump in logcat, you should see output similar to this: i/dmd (20731): opened /storage/emulated/0/download/memory-reports/dmd-
default-20731.json.gz for writing ...
... i/geckoconsole(20731): nsimemoryinfodumper dumped reports to /storage/emulated/0/download/memory-reports/unified-memory-report-
default-20731.json.gz the path is where the memory reports and dmd reports get dumped to.
...And 8 more matches
NSS tools : pk12util
the
default is to return information in a pretty-print ascii format, which displays the information about the certificates and public keys in the p12 file.
...kcs11 get slot error o 14 - pkcs12 decoder start error o 15 - error read from import file o 16 - pkcs12 decode error o 17 - pkcs12 decoder verify error o 18 - pkcs12 decoder validate bags error o 19 - pkcs12 decoder import bags error o 20 - key db conversion version 3 to version 2 error o 21 - cert db conversion version 7 to version 5 error o 22 - cert and key dbs patch error o 23 - get
default cert db error o 24 - find cert by nickname error o 25 - create export context error o 26 - pkcs12 add password itegrity error o 27 - cert and key safes creation error o 28 - pkcs12 add cert and key error o 29 - pkcs12 encode error examples importing keys and certificates the most basic usage of pk12util for importing a certificate or key is the pkcs#12 input file (-i) and some way to sp...
... pk12util -l p12file [-h tokenname] [-r] [-d [sql:]directory] [-p dbprefix] [-k slotpasswordfile|-k slotpassword] [-w p12filepasswordfile|-w p12filepassword] for example, this prints the
default ascii output: # pk12util -l certs.p12 enter password for pkcs12 file: key(shrouded): friendly name: thawte freemail member's thawte consulting (pty) ltd.
...And 8 more matches
Bytecode Descriptions
notable exceptions are arrow functions and derived or
default class constructors.
...format: jof_object classconstructor operands: (uint32_t nameindex, uint32_t sourcestart, uint32_t sourceend) stack: ⇒ constructor create and push a
default constructor for a base class.
... a
default constructor behaves like constructor() {}.
...And 8 more matches
nsIBrowserSearchService
method overview void addengine(in astring engineurl, in long datatype, in astring iconurl, in boolean confirm, [optional] in nsisearchinstallcallback callback); void addenginewithdetails(in astring name, in astring iconurl, in astring alias, in astring description, in astring method, in astring url); void get
defaultengines([optional] out unsigned long enginecount, [retval, array, size_is(enginecount)] out nsisearchengine engines); nsisearchengine getenginebyalias(in astring alias); nsisearchengine getenginebyname(in astring aenginename); void getengines([optional] out unsigned long enginecount, [retval, array, size_is(enginecount)] out nsisearchengine engines);...
... void getvisibleengines([optional] out unsigned long enginecount, [retval, array, size_is(enginecount)] out nsisearchengine engines); void init([optional] in nsibrowsersearchinitobserver observer); void moveengine(in nsisearchengine engine, in long newindex); void removeengine(in nsisearchengine engine); void restore
defaultengines(); attributes attribute type description currentengine nsisearchengine the currently active search engine.
...
defaultengine nsisearchengine the
default search engine.
...And 8 more matches
nsIPrefService
inherits from: nsisupports last changed in gecko 1.7 method overview nsiprefbranch getbranch(in string aprefroot); nsiprefbranch get
defaultbranch(in string aprefroot); void readuserprefs(in nsifile afile); void resetprefs(); void resetuserprefs(); void savepreffile(in nsifile afile); methods getbranch() call to get a preferences "branch" which accesses user preference data.
...when using a get method a user set value will be returned if one exists, otherwise a
default value will be returned.
... get
defaultbranch() call to get a preferences branch which accesses only the
default preference data.
...And 8 more matches
MouseEvent() - Web APIs
mouseeventinit optional is a mouseeventinit dictionary, having the following fields: "screenx", optional and
defaulting to 0, of type long, that is the horizontal position of the mouse event on the user's screen; setting this value doesn't move the mouse pointer.
... "screeny", optional and
defaulting to 0, of type long, that is the vertical position of the mouse event on the user's screen; setting this value doesn't move the mouse pointer.
... "clientx", optional and
defaulting to 0, of type long, that is the horizontal position of the mouse event on the client window of user's screen; setting this value doesn't move the mouse pointer.
...And 8 more matches
WritableStream.WritableStream() - Web APIs
the controller parameter passed to this method is a writablestream
defaultcontroller.
...the controller parameter passed to this method is a writablestream
defaultcontroller that can be used by the developer to control the stream as more chunks are submitted for writing.
...the controller parameter passed to this method is a writablestream
defaultcontroller, which can be used to control the stream at the end of writing.
...And 8 more matches
Standard metadata names - HTML: Hypertext Markup Language
several browsers, like firefox and opera, use this as the
default description of bookmarked pages.
...this is the
default behaviour.
... the value of the content property for color-scheme may be one of the following: normal the document is unaware of color schemes and should simply be rendered using the
default color palette.
...And 8 more matches
Details of the object model - JavaScript
a simple object hierarchy with the following objects: employee has the properties name (whose value
defaults to the empty string) and dept (whose value
defaults to "general").
...it adds the reports property (whose value
defaults to an empty array, intended to have an array of employee objects as its value).
...it adds the projects property (whose value
defaults to an empty array, intended to have an array of strings as its value).
...And 8 more matches
Autoplay guide for media and Web Audio APIs - Web media technologies
by
default, the autoplay feature policy is set to 'self' (including the single quote characters), indicating that autoplay is permitted as they're hosted on the same domain as the document.
...to autoplay videos like these, you have two options: don't have an audio track, or have an audio track but configure the <video> element to mute the audio by
default, like this: <video src="/videos/awesomevid.webm" controls autoplay muted> this video element is configured to include the user controls (typically play/pause, scrubbing through the video's timeline, volume control, and muting); also, since the muted attribute is included, the video will autoplay but with the audio muted.
...this is currently false by
default (except in nightly builds, where it's true by
default).
...And 8 more matches
<pattern> - SVG: Scalable Vector Graphics
value type: <length>|<percentage>;
default value: 0; animatable: yes href this attribute reference a template pattern that provides
default values for the <pattern> attributes.
... value type: <url>;
default value: none; animatable: yes patterncontentunits this attribute defines the coordinate system for the contents of the <pattern>.
... value type: userspaceonuse|objectboundingbox;
default value: userspaceonuse; animatable: yes note: this attribute has no effect if a viewbox attribute is specified on the <pattern> element.
...And 8 more matches
preferences/service - Archive of obsolete content
example: var name = "extensions.checkcompatibility.nightly"; require("sdk/preferences/service").set(name, false); get(name,
defaultvalue) gets the application preference name.
... parameters name : string
defaultvalue : string,number,boolean preference value.
... returns string,number,boolean : preference value, returns
defaultvalue if no preference is set, returns undefined if
defaultvalue is not provided.
...And 7 more matches
StringView - Archive of obsolete content
upon the javascript arraybuffer interface to create a highly extensible library that anyone can extend by adding methods to the object stringview.prototype to create a collection of methods for such string-like objects (since now: stringviews) which work strictly on arrays of numbers rather than on creating new immutable javascript strings to work with unicode encodings other than javascript's
default utf-16 domstrings introduction as web applications become more and more powerful, adding features such as audio and video manipulation, access to raw data using websockets, and so forth, it has become clear that there are times when it would be helpful for javascript code to be able to quickly and easily manipulate raw binary data.
...|*| http://www.gnu.org/licenses/lgpl-3.0.html |*| \*/ function stringview (vinput, sencoding /* optional (
default: utf-8) */, noffset /* optional */, nlength /* optional */) { var ftaview, awhole, araw, fputoutptcode, fgetoutptchrsize, ninptlen, nstartidx = isfinite(noffset) ?
...tutf8charcode; fgetoutptchrsize = stringview.getutf8charlength; ftaview = uint8array; break encswitch; case "utf-16": fputoutptcode = stringview.pututf16charcode; fgetoutptchrsize = stringview.getutf16charlength; ftaview = uint16array; break encswitch; case "utf-32": ftaview = uint32array; ntranscrtype &= 14; break encswitch;
default: /* case "ascii", or case "binarystring" or unknown cases */ ftaview = uint8array; ntranscrtype &= 14; } typeswitch: switch (typeof vinput) { case "string": /* the input argument is a primitive string: a new buffer will be created.
...And 7 more matches
JXON - Archive of obsolete content
which do not contain other element nodes, text nodes, cdatasection nodes or attr nodes) have the
default value true (see the code considerations).
...gpl-3.0-standalone.html |*| \*/ function parsetext (svalue) { if (/^\s*$/.test(svalue)) { return null; } if (/^(?:true|false)$/i.test(svalue)) { return svalue.tolowercase() === "true"; } if (isfinite(svalue)) { return parsefloat(svalue); } if (isfinite(date.parse(svalue))) { return new date(svalue); } return svalue; } function getjxontree (oxmlparent) { var vresult = /* put here the
default value for empty nodes!
...which do not contain other element nodes, text nodes, cdatasection nodes or attr nodes) have the
default value true.
...And 7 more matches
Repackaging Firefox - Archive of obsolete content
the distro extension all the changes you will want to make (for example, changing the
default homepage or adding
default bookmarks) can be encapsulated into a firefox extension.
... if you already have an extension that you want to bundle with firefox, and don't want to bundle an extra extension solely to set a few
defaults, you can do everything you need to do in your existing extension.
...this xpi has the following contents chrome.manifest components/partnerbookmarks.js
defaults/preferences/partner.js install.rdf locale/ar/partner.properties locale/cs/partner.properties locale/da/partner.properties locale/de/partner.properties locale/el/partner.properties locale/en-gb/partner.properties locale/partner.properties locale/es-ar/partner.properties locale/es-es/partner.properties locale/fi/partner.properties locale/fr/partner.properties locale/he/partner.properties locale/hu...
...And 7 more matches
ContextMenus - Archive of obsolete content
to cancel a context menu event, you can use the prevent
default method of the event object.
... function checkcontextmenu(event) { if (event.target.localname == "textbox") event.prevent
default(); } function init() { var container = document.getelementbyid("container"); container.addeventlistener("contextmenu", checkcontextmenu, true); } the 'checkcontextmenu' function checks to see if the textbox was the target of the context menu and, if so, cancels the event using the prevent
default method.
...for example, the following will attach a context menu with the id 'contentareacontextmenu' to a browser element: <browser context="contentareacontextmenu"> indicating the
default item on some platforms, one of the items in a context menu is marked as being a
default operation.
...And 7 more matches
XUL element attributes - Archive of obsolete content
stretch this is the
default value.
...this attribute, if true, which is the
default, allows a datasource to negate an earlier assertion.
...this attribute, if true, which is the
default, allows a datasource to negate an earlier assertion.
...And 7 more matches
HTML forms in legacy browsers - Learn web development
here are two ways to define buttons within html forms: the <input> element with its attribute type set to the values button, submit, reset or image the <button> element <input> the <input> element can make things a little difficult if you want to apply some css by using the element selector: <input type="button" value="click me"> if we remove the border on all inputs, can we restore the
default appearance on input buttons only?
... input { /* this rule turns off the
default rendering for the input types that have a border, including buttons defined with an input element */ border: 1px solid #ccc; } input[type="button"] { /* this does not restore the
default rendering */ border: none; } input[type="button"] { /* these don't either!
... actually there is no standard way to do it in any browser */ border: auto; border: initial; } input[type="button"] { /* this will come the closest to restoring
default rendering, when supported.
...And 7 more matches
Componentizing our React app - Learn web development
in this code, we define the function and export it on the same line: export
default function todo() { return ( ); } this is ok so far, but our component has to return something!
... go back to src/app.js, copy the first <li> from inside the unordered list, and paste it into todo.js so that it reads like this: export
default function todo() { return ( <li classname="todo stack-small"> <div classname="c-cb"> <input id="todo-0" type="checkbox"
defaultchecked={true} /> <label classname="todo-label" htmlfor="todo-0"> eat </label> </div> <div classname="btn-group"> <button type="button" classname="btn"> edit <span classname="visually-hidden">eat</span> </button> <button type="button" classname="btn btn__danger"> delete <span classname="visually-hidden">eat</span> </button> </div> </li> ); } note: components must always return something.
... putting all that together, your todo() function should read like this: export
default function todo(props) { return ( <li classname="todo stack-small"> <div classname="c-cb"> <input id="todo-0" type="checkbox"
defaultchecked={true} /> <label classname="todo-label" htmlfor="todo-0"> {props.name} </label> </div> <div classname="btn-group"> <button type="button" classname="btn"> edit <span classname="visually...
...And 7 more matches
Creating our first Vue component - Learn web development
inside the <script> tags, add a
default exported object export
default {}, which is your component object.
... your file should now look like this: <template> </template> <script> export
default {}; </script> we can now begin to add actual content to our todoitem.
... your <script> contents should now look like this: import todoitem from './components/todoitem.vue'; export
default { name: 'app', components: { todoitem } }; this is the same way that the helloworld component was registered by the vue cli earlier.
...And 7 more matches
Introducing a complete toolchain - Learn web development
like many tools made more recently prettier comes with "sensible
defaults".
... that means that you'll be able to use prettier without having to configure anything (if you are happy with the
defaults).
...it's a key ingredient of a good toolchain and one that many development projects will include by
default.
...And 7 more matches
Enc Dec MAC Output Public Key as CSR
nclude #include #include #include #include #include /* nss headers */ #include #include #include #include #include #include #include #include #include #include #include #include /* our samples utilities */ #include "util.h" #define buffersize 80 #define digestsize 16 #define ptext_mac_buffer_size 96 #define ciphersize 96 #define blocksize 32 #define
default_key_bits 1024 #define cipher_header "-----begin cipher-----" #define cipher_trailer "-----end cipher-----" #define enckey_header "-----begin wrapped enckey-----" #define enckey_trailer "-----end wrapped enckey-----" #define mackey_header "-----begin wrapped mackey-----" #define mackey_trailer "-----end wrapped mackey-----" #define iv_header ...
... */ #ifndef port_errortostring #ifndef sec_error_base #define sec_error_base (-0x2000) #define port_errortostring(err) pr_errortostring((err), pr_language_i_
default) #endif #endif /* * print usage message and exit */ static void usage(const char *progname) { fprintf(stderr, "\nusage: %s -c -d [-z ] " "[-p | -f ] -s -r -i -o \n\n", progname); fprintf(stderr, "%-20s specify 'g' for generating rsa keypair for wrapping\n\n", "g"); fprintf(stderr, "%-20s specify 'e' for encrypt operation\n\n", ...
..., "%-7s for decrypt, it takes .enc and .header\n", ""); fprintf(stderr, "%-7s as input files and produces as a final output file.\n\n", ""); exit(-1); } /* map option letter enumerated commad type */ static commandtype option2command(const char* c) { switch (*c) { case 'g': return gen_csr; case 'e': return encrypt; case 'd': return decrypt;
default: return unknown; } } /* * wrap the symkey using public key */ secstatus wrapkey(pk11symkey* key, seckeypublickey *pubkey, secitem **wrappedkey) { secstatus rv; secitem *data = (secitem *)port_zalloc(sizeof(secitem)); if (!data) { pr_fprintf(pr_stderr, "error while allocating memory\n"); rv = secfailure; goto cleanup; } data->len = seckey_publi...
...And 7 more matches
sample2
#include <prtypes.h> #include <plstr.h> /* nss headers */ #include <cryptohi.h> #include <keyhi.h> #include <pk11priv.h> #include <cert.h> #include <base64.h> #include <secerr.h> #include <secport.h> #include <secoid.h> #include <secmodt.h> #include <secoidt.h> #include <sechash.h> /* our samples utilities */ #include "util.h" /* constants */ #define blocksize 32 #define modblocksize 128 #define
default_key_bits 1024 /* header file constants */ #define enckey_header "-----begin wrapped enckey-----" #define enckey_trailer "-----end wrapped enckey-----" #define mackey_header "-----begin wrapped mackey-----" #define mackey_trailer "-----end wrapped mackey-----" #define iv_header "-----begin iv-----" #define iv_trailer "-----end iv-----" #define mac_header "-----begin mac-----" #define mac_trailer "...
...*/ #ifndef port_errortostring #define port_errortostring(err) pr_errortostring((err), pr_language_i_
default) #endif /* sample 6 commands */ typedef enum { generate_csr, add_cert_to_db, save_cert_to_header, encrypt, decrypt, sign, verify, unknown } commandtype; typedef enum { symkey = 0, mackey = 1, iv = 2, mac = 3, pad = 4, pubkey = 5, lab = 6, certenc= 7, certvfy= 8, sig = 9 } headertype; /* * print usage message and exit */ static void usage(const char *progname) { fprintf(stderr, "\nusage: %s %s %s ...
... = ns_cert_enc_header; trailer = ns_cert_enc_trailer; break; case certvfy: header = ns_cert_vfy_header; trailer = ns_cert_vfy_trailer; break; case sig: header = ns_sig_header; trailer = ns_sig_trailer; break; case lab: header = lab_header; trailer = lab_trailer; pr_fprintf(outfile, "%s\n", header); pr_fprintf(outfile, "%s\n", buf); pr_fprintf(outfile, "%s\n\n", trailer); return secsuccess; break;
default: return secfailure; } pr_fprintf(outfile, "%s\n", header); printashex(outfile, buf, len); pr_fprintf(outfile, "%s\n\n", trailer); return secsuccess; } /* * read cryptographic parameters from the header file */ secstatus readfromheaderfile(const char *filename, headertype type, secitem *item, prbool ishexdata) { secstatus rv = secsuccess; prfiledesc* file = null; secitem filedata; secitem outbuf; ...
...And 7 more matches
sslintro.html
initialization initialization includes setting up configuration files, setting global
defaults, and setting up callback functions.
... ssl_optionset
default.
... 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).
...And 7 more matches
JSClass
use null or js_propertystub (spidermonkey 31 or older) for
default behavior.
... use null or js_deletepropertystub (spidermonkey 31 or older) for
default behavior.
...this is the
default getter for the class.
...And 7 more matches
Shell global objects
options is an optional object that may have these properties: isrunonce use the isrunonce compiler option (
default: false) noscriptrval use the no-script-rval compiler option (
default: false) filename filename for error messages and debug info linenumber starting line number for error messages and debug info columnnumber starting column number for error messages and debug info global global in which to execute the code newcontext if true, create and use a new cx (
default: false) catc...
...if present, options may have properties saying how the code should be compiled: noscriptrval use the no-script-rval compiler option (
default: false) filename filename for error messages and debug info linenumber starting line number for error messages and debug info columnnumber starting column number for error messages and debug info element if present with value v, convert v to an object o and mark the source as being attached to the dom element o.
...a negative value (
default) means that the execution time is unlimited.
...And 7 more matches
nsIHTMLEditor
inherits from: nsisupports last changed in gecko 5.0 (firefox 5.0 / thunderbird 5.0 / seamonkey 2.2) method overview void add
defaultproperty(in nsiatom aproperty, in astring aattribute, in astring avalue); void addinsertionlistener(in nsicontentfilter infilter); void align(in astring aalign); boolean breakisvisible(in nsidomnode anode); boolean candrag(in nsidomevent aevent); void checkselectionstateforanonymousbuttons(in nsiselection aselection); nsidomelement createanonymouselement(in astring atag, in nsidomnode aparentnode, in astring aanonclass, in boolean aiscreatedhidden); nsidomelement createelementwith
defaults(in astring ata...
...ion(in nsidomelement aanchorelement); boolean isanonymouselement(in nsidomelement aelement); void makeorchangelist(in astring alisttype, in boolean entirelist, in astring abullettype); boolean nodeisblock(in nsidomnode node); void pastenoformatting(in long aselectiontype); void rebuilddocumentfromsource(in astring asourcestring); void removeall
defaultproperties(); void removeallinlineproperties(); void remove
defaultproperty(in nsiatom aproperty, in astring aattribute, in astring avalue); void removeinlineproperty(in nsiatom aproperty, in astring aattribute); void removeinsertionlistener(in nsicontentfilter infilter); void removelist(in astring alisttype); void replaceheadcontentswithhtml(in...
... constants constant value description eleft 0 ecenter 1 eright 2 ejustify 3 methods add
defaultproperty() registers a
default style property with the editor.
...And 7 more matches
DevTools API - Firefox Developer Tools
get
defaulttools() returns an array of tooldefinition objects for the built-in tools.
... toolbox.hosttype.bottom host type for the
default toolbox host at the bottom of the browser window.
...
default: 99 visibilityswitch string, optional.
...And 7 more matches
Network request list - Firefox Developer Tools
network request list by
default, the network monitor shows a list of all the network requests made in the course of loading the page.
... each request is displayed in its own row: by
default, the network monitor is cleared each time you navigate to a new page or reload the current page.
... the reset columns command on the context menu also resets the width of the columns to the
default values.
...And 7 more matches
PointerEvent.PointerEvent() - Web APIs
pointereventinitoptional is a pointereventinit dictionary, having the following fields: pointerid — optional and
defaulting to 0, of type long, that sets the value of the instance's pointerevent.pointerid.
... width — optional and
defaulting to 1, of type double, that sets the value of the instance's pointerevent.width.
... height — optional and
defaulting to 1, of type double, that sets the value of the instance's pointerevent.height.
...And 7 more matches
Touch() - Web APIs
"clientx", optional and
defaulting to 0, of type double, that is the horizontal position of the touch on the client window of user's screen, excluding any scroll offset.
... "clienty", optional and
defaulting to 0, of type double, that is the vertical position of the touch on the client window of the user's screen, excluding any scroll offset.
... "screenx", optional and
defaulting to 0, of type double, that is the horizontal position of the touch on the user's screen.
...And 7 more matches
Using CSS gradients - CSS: Cascading Style Sheets
<div class="simple-linear"></div> div { width: 120px; height: 120px; } .simple-linear { background: linear-gradient(blue, pink); } changing the direction by
default, linear gradients run from top to bottom.
...by
default, colors are evenly spaced along the gradient.
... <div class="auto-spaced-linear-gradient"></div> div { width: 120px; height: 120px; } .auto-spaced-linear-gradient { background: linear-gradient(red, yellow, blue, orange); } positioning color stops you don't have to leave your color stops at their
default positions.
...And 7 more matches
<input type="number"> - HTML: Hypertext Markup Language
you can set a
default value for the input by including a number inside the value attribute, like so: <input id="number" type="number" value="42"> additional attributes in addition to the attributes commonly supported by all <input> types, inputs of type number support these attributes: attribute description list the id of the <datalist> element that contains the optional pre-defined a...
...only values which are equal to the basis for stepping (min if specified, value otherwise, and an appropriate
default value if neither of those is provided) are valid.
... the
default stepping value for number inputs is 1, allowing only integers to be entered—unless the stepping base is not an integer.
...And 7 more matches
export - JavaScript
syntax there are two types of exports: named exports (zero or more exports per module)
default exports (one per module) // exporting individual features export let name1, name2, …, namen; // also var, const export let name1 = …, name2 = …, …, namen; // also var, const export function functionname(){...} export class classname {...} // export list export { name1, name2, …, namen }; // renaming exports export { variable1 as name1, variable2 as name2, …, namen }; // exporting...
... destructured assignments with renaming export const { name1, name2: bar } = o; //
default exports export
default expression; export
default function (…) { … } // also class, function* export
default function name1(…) { … } // also class, function* export { name1 as
default, … }; // aggregating modules export * from …; // does not set the
default export export * as name1 from …; // draft ecmascript® 2o21 export { name1, name2, …, namen } from …; export { import1 as name1, import2 as name2, …, namen } from …; export {
default } from …; namen identifier to be exported (so that it can be imported via import in another script).
... description there are two different types of export, named and
default.
...And 7 more matches
import - JavaScript
syntax import
defaultexport from "module-name"; import * as name from "module-name"; import { export1 } from "module-name"; import { export1 as alias1 } from "module-name"; import { export1 , export2 } from "module-name"; import { foo , bar } from "module-name/path/to/specific/un-exported/file"; import { export1 , export2 as alias2 , [...] } from "module-name"; import
defaultexport, { export1 [ , [...] ] } from "modul...
...e-name"; import
defaultexport, * as name from "module-name"; import "module-name"; var promise = import("module-name");
defaultexport name that will refer to the
default export from the module.
... importing
defaults it is possible to have a
default export (whether it is an object, a function, a class, etc.).
...And 7 more matches
kernelUnitLength - SVG: Scalable Vector Graphics
if the attribute is not specified, the
default value is one pixel in the offscreen bitmap, which is a pixel-based coordinate system, and thus potentially not scalable.
... if a negative or zero value is specified the
default value will be used instead.
... value <number-optional-number>
default value pixel in offscreen bitmap animatable yes <number-optional-number> the first number is the x value.
...And 7 more matches
<a> - SVG: Scalable Vector Graphics
svg { height:100% } <svg viewbox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <!-- a link around a shape --> <a href="/docs/web/svg/element/circle"> <circle cx="50" cy="40" r="35"/> </a> <!-- a link around a text --> <a href="/docs/web/svg/element/text"> <text x="50" y="90" text-anchor="middle"> <circle> </text> </a> </svg> /* as svg does not provide a
default visual style for links, it's considered best practice to add some */ @namespace svg url(http://www.w3.org/2000/svg); /* necessary to select only svg <a> elements, and not also html’s.
... value type: <string> ;
default value: none; animatable: no href the url or url fragment the hyperlink points to.
... value type: <url> ;
default value: none; animatable: yes hreflang the human language of the url or url fragment that the hyperlink points to.
...And 7 more matches
<radialGradient> - SVG: Scalable Vector Graphics
value type: <length> ;
default value: 50%; animatable: yes cy this attribute defines the y coordinate of the end circle of the radial gradient.
... value type: <length> ;
default value: 50%; animatable: yes fr this attribute defines the radius of the start circle of the radial gradient.
... value type: <length> ;
default value: 50%; animatable: yes fx this attribute defines the x coordinate of the start circle of the radial gradient.
...And 7 more matches
<svg> - SVG: Scalable Vector Graphics
value type: <string> ;
default value: none; animatable: no contentscripttype deprecated since svg 2 the
default scripting language used by the svg fragment.
... value type: <string> ;
default value: application/ecmascript; animatable: no contentstyletype deprecated since svg 2 the
default style sheet language used by the svg fragment.
... value type: <string> ;
default value: text/css; animatable: no height the displayed height of the rectangular viewport.
...And 7 more matches
panel - Archive of obsolete content
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.
... file now references "get-text.js" inside a <script> tag: <html> <head> <style type="text/css" media="all"> textarea { margin: 10px; } body { background-color: gray; } </style> </head> <body> <textarea rows="13" cols="33" id="edit-box"></textarea> <script src="get-text.js"></script> </body> </html> styling panel content the panel's
default style is different for each operating system: this helps to ensure that the panel's style is consistent with the dialogs displayed by firefox and other applications, but means you need to take care when applying your own styles.
... the
default alignment along each axis is centered: so to display a panel centred along the vertical or horizontal axis, just omit that axis: // show the panel centered horizontally and // aligned to the bottom of the content area require("sdk/panel").panel({ position: { bottom: 0 } }).show(); // show the panel centered vertically and // aligned to the left of the content area require("sdk/panel...
...And 6 more matches
Install Manifests - Archive of obsolete content
link in the extension's context menu will show this dialog, rather than the
default.
...the
default value is false.
...if this property is not specified, a
default icon is used.
...And 6 more matches
A XUL Bestiary - Archive of obsolete content
in other words, a chrome url like the global pointer above picks up a file called global.css, and the help pointer above could also be written as chrome://help/content, because the name of the package itself is "help." viewing chromes other than mozilla's there is a special flag you can use to start mozilla with some chrome other than the
default.
...each package directory typically has three subdirectories, content, skin, and locale, in which the xul, css, and localization information are defined, respectively: navigator/ content/
default/ navigator.xul ...
... skin/
default/ navigator.css nav-icon.gif ...
...And 6 more matches
Element Positioning - Archive of obsolete content
some elements, such as textboxes have a
default size, which will be used.
...they simply obey their specified widths and heights, and if the size wasn't specified, the element's
default size is just large enough to fit the contents.
...their
default size is still calculated the same as for inflexible elements.
...And 6 more matches
More Event Handlers - Archive of obsolete content
prevent
default action if no event handlers have been registered for an event, then after completing the capturing and bubbling phases, the element will handle the event in a
default way.
...the
default action is to display the popup.
... if the
default action is prevented, the popup will not be displayed.
...And 6 more matches
preference - Archive of obsolete content
attributes disabled, instantapply, inverted, name, onchange, readonly, tabindex, type properties
defaultvalue, disabled, hasuservalue, inverted, locked, name, preferences, readonly, tabindex, type, value, valuefrompreferences methods reset examples <preferences> <preference id="pref_id" name="preference.name" type="int"/> </preferences> see preferences system for a complete example.
... properties
defaultvalue (readonly) returns the
default value of the preference.
... if the preference has no
default value, this property returns null.
...And 6 more matches
Advanced form styling - Learn web development
the following live example shows you what they look like in your system —
default on the left, and with the above css applied on the right (find it here also if you want to test it on other systems).
...this is because non-macos chrome browsers no longer use the webkit rendering engine, which enabled aqua appearance by
default for certain form controls.
... this can be fixed using our friend appearance: none;, which disables the
default aqua appearance: input[type="search"] { -webkit-appearance: none; appearance: none; } in the example below, you can see two identical styled search boxes.
...And 6 more matches
HTML text fundamentals - Learn web development
tician and my name is trish.</p>\n<p>my legs are made of cardboard and i am married to a fish.</p>'; 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(e){ if (e.keycode === 9) { e.prevent
default(); insertatcaret('\t'); } if (e.keycode === 27) { textarea.blur(); } }; function insertatcaret(text) { var scrollpos = textarea.scrolltop; var caretpos = textarea.selectionstart; var front = (textarea.value).substring(0, caretpos); var back = (textarea.value).substring(textarea.selectionend, textarea.value.length); textarea.value = front + text + back; caretpos = care...
...in this context the <h1> element is also a semantic element, which gives the text it wraps around the role (or meaning) of "a top level heading on your page." <h1>this is a top level heading</h1> by
default, the browser will give it a large font size to make it look like a heading (although you could style it to look like anything you wanted using css).
...); var htmlsolution = '<ul>\n<li>milk</li>\n<li>eggs</li>\n<li>bread</li>\n<li>hummus</li>\n</ul>'; 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(e){ if (e.keycode === 9) { e.prevent
default(); insertatcaret('\t'); } if (e.keycode === 27) { textarea.blur(); } }; function insertatcaret(text) { var scrollpos = textarea.scrolltop; var caretpos = textarea.selectionstart; var front = (textarea.value).substring(0, caretpos); var back = (textarea.value).substring(textarea.selectionend, textarea.value.length); textarea.value = front + text + back; caretpos = care...
...And 6 more matches
Adding a new todo form: Vue events, methods, and models - Learn web development
add a blank <template> and a <script> tag like before: <template></template> <script> export
default {}; </script> let's add in an html form that lets you enter a new todo item and submit it into the app.
... add this like so: export
default { methods: { onsubmit() { console.log('form submitted') } } } next we need to bind the method to our <form> element's submit event handler.
...to prevent the browser from posting to the server, we need to stop the event’s
default action from bubbling up through the page (event.prevent
default(), in vanilla javascript).
...And 6 more matches
L20n Javascript API
ctx.localize(['hello', 'new'], function(l10n) { var node = document.queryselector('[data-l10n-id=hello]'); node.textcontent = l10n.entities.hello.value; node.classlist.remove('hidden'); }); ctx.registerlocales(
defaultlocale: string?, availablelocales: array<string>?) register the
default locale of the context instance, as well as all other locales available to the context instance before the language negotiation.
... ctx.registerlocales('en-us', ['ar', 'es-ar', 'es-es', 'en-us', 'fr', 'pl']);
defaultlocale is the original language of the context instance and will be used as the last fallback locale if other locales are registered.
... if it is undefined, or if registerlocales hasn't been called at all, the context instance will create a special locale called i-
default to be used as the
default.
...And 6 more matches
JSS Provider Notes
by
default, the jca provider will be installed in the list of providers maintained by the java.security.security class.
...by
default, the jss provider carries out all operations except messagedigest on the internal key storage token, a software token included in jss/nss.
... messagedigest operations take place by
default on the internal crypto token, another internal software token in jss/nss.
...And 6 more matches
Mozilla-JSS JCA Provider notes
by
default, the jca provider will be installed in the list of providers maintained by the java.security.security class.
...by
default, the jss provider carries out all operations except messagedigest on the internal key storage token, a software token included in jss/nss.
... messagedigest operations take place by
default on the internal crypto token, another internal software token in jss/nss.
...And 6 more matches
Enc Dec MAC Using Key Wrap CertReq PKCS10 CSR
*/ /* nspr headers */ #include <prthread.h> #include <plgetopt.h> #include <prerror.h> #include <prinit.h> #include <prlog.h> #include <prtypes.h> #include <plstr.h> /* nss headers */ #include <keyhi.h> #include <pk11priv.h> /* our samples utilities */ #include "util.h" /* constants */ #define blocksize 32 #define modblocksize 128 #define
default_key_bits 1024 /* header file constants */ #define enckey_header "-----begin wrapped enckey-----" #define enckey_trailer "-----end wrapped enckey-----" #define mackey_header "-----begin wrapped mackey-----" #define mackey_trailer "-----end wrapped mackey-----" #define iv_header "-----begin iv-----" #define iv_trailer "-----end iv----...
...s_cert_vfy_trailer; break; case sig: header = ns_sig_header; trailer = ns_sig_trailer; break; case lab: header = lab_header; trailer = lab_trailer; pr_fprintf(outfile, "%s\n", header); pr_fprintf(outfile, "%s\n", buf); pr_fprintf(outfile, "%s\n\n", trailer); return secsuccess; break;
default: return secfailure; } pr_fprintf(outfile, "%s\n", header); printashex(outfile, buf, len); pr_fprintf(outfile, "%s\n\n", trailer); return secsuccess; } /* * read cryptographic parameters from the header file */ secstatus readfromheaderfile(const char *filename, headertype type, secitem *item, prbool ishexdata) { secstatus rv ...
...ader = lab_header; trailer = lab_trailer; break; case certenc: header = ns_cert_enc_header; trailer = ns_cert_enc_trailer; break; case certvfy: header = ns_cert_vfy_header; trailer = ns_cert_vfy_trailer; break; case sig: header = ns_sig_header; trailer = ns_sig_trailer; break;
default: rv = secfailure; goto cleanup; } rv = filetoitem(&filedata, file); nonbody = (char *)filedata.data; if (!nonbody) { pr_fprintf(pr_stderr, "unable to read data from input file\n"); rv = secfailure; goto cleanup; } /* check for headers and trailers and remove them */ if ((body = strstr(nonbody, header)) != null) { ...
...And 6 more matches
Embedded Dialog API
xul dialogs are part of the gecko package; they are the
default dialog posing mechanism.
...a
default (xul) implementation of each is provided as part of the gecko package.
... to replace these
default dialogs with its own versions, an application must replace the component which implements them.
...And 6 more matches
nsIDOMWindowUtils
void sendcompositionevent(in astring atype, in astring adata, in astring alocale); obsolete since gecko 38.0 void sendcontentcommandevent(in astring atype, [optional] in nsitransferable atransferable); void getclassname(in object aobj); boolean sendkeyevent(in astring atype, in long akeycode, in long acharcode, in long amodifiers, [optional] in boolean aprevent
default); obsolete since gecko 15.0 boolean sendkeyevent(in astring atype, in long akeycode, in long acharcode, in long amodifiers, [optional] in unsigned long aadditionalflags); deprecated since gecko 38.0 void sendmouseevent(in astring atype, in float ax, in float ay, in long abutton, in long aclickcount, in long amodifiers, [optional] in boolean aignorerootscrollframe); v...
... key_flag_prevent_
default 0x0001 get
defaultprevented() returns true if this is specified to aadditionalflags of sendkeyevent().
... boolean sendkeyevent( in astring atype, in long akeycode, in long acharcode, in long amodifiers, in unsigned long aadditionalflags optional ); deprecated since gecko 38.0 boolean sendkeyevent( in astring atype, in long akeycode, in long acharcode, in long amodifiers, in boolean aprevent
default optional ); obsolete since gecko 15.0 parameters atype event type.
...And 6 more matches
nsIDocShell
defaults to true.
...
default is true, which lets content control the window.
... forcedcharset nsiatom a character set to override the page's
default character set while processing; this is tried before using any other character set during page loads.
...And 6 more matches
nsINavBookmarksService
constants constant value description
default_index -1 this is the
default index; this value should be used for apis that allow passing in an index where the index is not known or is not required to be specified, such as when appending an item to a folder.
... aindex the index to insert at, or
default_index to append to the end of the list.
... index the index to insert at, or
default_index to append to the end of the list.
...And 6 more matches
nsIScriptableIO
the
default character set is utf-8; to read text in another character set, set the acharset argument to the desired character set.
...by
default, the buffer size is 1024 bytes; however, the size may be changed by specifying the abuffersize parameter.
...by
default, streams are interpreted in utf-8.
...And 6 more matches
Using readable streams - Web APIs
by invoking readablestream
defaultreader.releaselock().
...revious example can be reduced by one step, as response.body is synchronous and so doesn't need the promise: // fetch the original image fetch('./tortoise.png') // retrieve its body as readablestream .then(response => { const reader = response.body.getreader(); reading the stream now you’ve got your reader attached, you can read data chunks out of the stream using the readablestream
defaultreader.read() method.
...if so, there are no more chunks to read (the value is undefined) so we return out of the function and close the custom stream with readablestream
defaultcontroller.close(): if (done) { controller.close(); return; } note: close() is part of the new custom stream, not the original stream we are discussing here.
...And 6 more matches
Using writable streams - Web APIs
writing to actually write content to the stream we call the sendmessage() function, passing it a message to be written and the stream to write to: sendmessage("hello, world.", writablestream); the sendmessage() definition looks like so: function sendmessage(message, writablestream) { //
defaultwriter is of type writablestream
defaultwriter const
defaultwriter = writablestream.getwriter(); const encoder = new textencoder(); const encoded = encoder.encode(message, { stream: true }); encoded.foreach((chunk) => {
defaultwriter.ready .then(() => { return
defaultwriter.write(chunk); }) .then(() => { console.log("chunk written to sink."); }) ...
...
defaultwriter.ready .then(() => {
defaultwriter.close(); }) .then(() => { console.log("all chunks written"); }) .catch((err) => { console.log("stream error:", err); }); } so here we create a writer to write the chunks to the stream using writablestream.getwriter().
... this creates a writablestream
defaultwriter instance.
...And 6 more matches
Using Web Workers - Web APIs
for example, you can't directly manipulate the dom from inside a worker, or use some
default methods and properties of the window object.
... the event doesn't bubble and is cancelable; to prevent the
default action from taking place, the worker can call the error event's prevent
default() method.
... first, we create a queryableworker class that takes the url of the worker, a
default listener, and an error handler, and this class is going to keep track of a list of listeners and help us communicate with the worker: function queryableworker(url,
defaultlistener, onerror) { var instance = this, worker = new worker(url), listeners = {}; this.
defaultlistener =
defaultlistener || function() {}; if (onerror) {worker.onerror = onerror;} this.post...
...And 6 more matches
revert - CSS: Cascading Style Sheets
thus, it resets the property to its inherited value if it inherits from its parent or to the
default value established by the user agent's stylesheet (or by user styles, if any exist).
... if used by a site's own styles (the author origin), revert rolls back the property's cascaded value to the user's custom style, if one exists; otherwise, it rolls the style back to the user agent's
default style.
... if used in a user's custom stylesheet, or if the style was applied by the user (the user origin), revert rolls back the cascaded value to the user agent's
default style.
...And 6 more matches
Adding captions and subtitles to HTML5 video - Developer guides
h, german, and spanish — so we will reference all three of the relevant vtt files by adding <track> elements inside our html5 <video> element: <video id="video" controls preload="metadata"> <source src="video/sintel-short.mp4" type="video/mp4"> <source src="video/sintel-short.webm" type="video/webm"> <track label="english" kind="subtitles" srclang="en" src="captions/vtt/sintel-en.vtt"
default> <track label="deutsch" kind="subtitles" srclang="de" src="captions/vtt/sintel-de.vtt"> <track label="español" kind="subtitles" srclang="es" src="captions/vtt/sintel-es.vtt"> </video> as you can see, each <track> element has the following attributes set: kind is given a value of subtitles, indicating the type of content the files contain label is given a value indicating which languag...
... the
default attribute is set on the english <track> element, indicating to the browser that this is the
default subtitle file definition to use when subtitles have been turned on and the user has not made a specific selection.
... initial setup as with all the other buttons, one of the first things we need to do is store a handle to the subtitles' button: var subtitles = document.getelementbyid('subtitles'); we also initially turn off all subtitles, in case the browser turns any of them on by
default: for (var i = 0; i < video.texttracks.length; i++) { video.texttracks[i].mode = 'hidden'; } the video.texttracks property contains an array of all the text tracks attached to the video.
...And 6 more matches
<mo> - MathML
form specifies the role of the operator in an enclosed expression, which affects spacing and other
default properties.
...(it is the
default value if the operator is the first argument in a <mrow> element with more than one argument.) infix, for separators.
... (it is the
default value if the operator is not included in a <mrow> element.) postfix, closing fences.
...And 6 more matches
<mtable> - MathML
possible values are: axis (
default): the vertical center of the table aligns on the environment's axis (typically the minus sign).
...possible values are: left, center (
default) and right.
...possible values are: none (
default), solid and dashed.
...And 6 more matches
preserveAspectRatio - SVG: Scalable Vector Graphics
xmidymid (the
default) - force uniform scaling.
... meet or slice reference the meet or slice reference is optional and, if provided, must be one of the following keywords: meet (the
default) - scale the graphic such that: aspect ratio is preserved the entire viewbox is visible within the viewport the viewbox is scaled up as much as possible, while still meeting the other criteria in this case, if the aspect ratio of the graphic does not match the viewport, some of the viewport will extend beyond the bounds of the viewbox (i.e., the area into which the viewbox ...
...
default value xmidymid meet animatable yes image for <image>, preserveaspectratio defines how the referenced image should fit in the rectangle define by the <image> element.
...And 6 more matches
<linearGradient> - SVG: Scalable Vector Graphics
orm="rotate(90)"> <stop offset="5%" stop-color="gold" /> <stop offset="95%" stop-color="red" /> </lineargradient> </defs> <!-- using my linear gradient --> <circle cx="5" cy="5" r="4" fill="url('#mygradient')" /> </svg> attributes gradientunits this attribute defines the coordinate system for attributes x1, x2, y1, y2 value type: userspaceonuse|objectboundingbox ;
default value: objectboundingbox; animatable: yes gradienttransform this attribute provides additional transformation to the gradient coordinate system.
... value type: <transform-list> ;
default value: identity transform; animatable: yes href this attribute defines a reference to another <lineargradient> element that will be used as a template.
... value type: <url> ;
default value: none; animatable: yes spreadmethod this attribute indicates how the gradient behaves if it starts or ends inside the bounds of the shape containing the gradient.
...And 6 more matches
<rect> - SVG: Scalable Vector Graphics
value type: <length>|<percentage> ;
default value: 0; animatable: yes y the y coordinate of the rect.
... value type: <length>|<percentage> ;
default value: 0; animatable: yes width the width of the rect.
... value type: auto|<length>|<percentage> ;
default value: auto; animatable: yes height the height of the rect.
...And 6 more matches
Namespaces crash course - SVG: Scalable Vector Graphics
the declaration defines the
default namespace, so the user agent knows that all the <svg> element's descendants also belong to the same namespace.
...(in fact uris are used so frequently that the term "namespace uri" is commonly used instead of "namespace name".) redeclaring the
default namespace so if all the descendants of the root element are also defined to be in the
default namespace, how do you mix in content from another namespace?
...you just redefine the
default namespace.
...And 6 more matches
simple-prefs - Archive of obsolete content
"preferences": [{ "name": "somepreference", "title": "some preference title", "description": "some short description for the preference", "type": "string", "value": "this is the
default string value" }, { "description": "how many of them we have.", "name": "myinteger", "type": "integer", "value": 8, "title": "how many?" }] } each preference is defined by a group of attributes.
... value a
default value for the preference.
...the type of the stored value depends on the
default value.
...And 5 more matches
/loader - Archive of obsolete content
unless you have specific needs it's best to stick to an sdk-compatible configuration, like this: let { loader } = require('toolkit/loader'); let loader = loader({ // please note: illustrated `paths` is expected to be a
default base, // but depending on your use case you may have more mappings.
...if omitted
defaults to system principal.
...
defaults to {}.
...And 5 more matches
platform/xpcom - Archive of obsolete content
contractidtocid('@me.org/helloworld'); var wrapper = components.classesbyid[id].createinstance(ci.nsisupports); the xpcom module exports a function factorybycontract to simplify this technique: var wrapper = xpcom.factorybycontract('@me.org/helloworld').createinstance(ci.nsisupports); registration by
default, factories are registered and unregistered automatically.
... log: function(message) { console.log(new date().gettime() + ' : ' + message); } }); // register the service using the contract id var service = service({ contract: contractid, component: timestampedlogger }); // access the service using getservice() var wrapper = cc[contractid].getservice(ci.nsisupports); var logger = wrapper.wrappedjsobject; logger.log('a timestamped message'); by
default, services are registered and unregistered automatically.
... registering and unregistering by
default, factories and services are registered with xpcom automatically when they are created, and unregistered automatically when the add-on that created them is unloaded.
...And 5 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.
... experimental options -a app, --app=app by
default, cfx run uses firefox as the host application.
... experimental options -a app, --app=app by
default, cfx test uses firefox as the host application.
...And 5 more matches
Enhanced Extension Installation - Archive of obsolete content
~/.mozilla/firefox/abcdefgh.
default/extensions/ the firefox application directory, e.g.
... if the item is not compatible, the extension system asks the appropriate update service (either the one specified by the item, or the
default one) if there is remote compatibility information that supercedes the compatibility information held by the item.
... finalization for themes, the item is immediately installed fully, rather than awaiting the next restart, since themes do not supply xpcom components, preferences
defaults etc.
...And 5 more matches
Adding Toolbars and Toolbar Buttons - Archive of obsolete content
firefox allows all of this by
default, and if you don't pay attention to the details we describe here, your toolbar may not be as easy to customize as the rest.
...in most cases this is not what you want as
default behavior, because it would be very hard for the user to discover your buttons.
... <window id="main-window"> <toolbox id="navigator-toolbox"> <toolbar id="xulschoolhello-toolbar" toolbarname="&xulschoolhello.toolbarname.label;" accesskey="&xulschoolhello.toolbar.accesskey;" customizable="true" mode="icons" context="toolbar-context-menu"
defaultset="xulschoolhello-hello-world-button" insertbefore="personaltoolbar" /> </toolbox> </window> (note for mac os x: <window id="main-window"> and </window> are not required) our toolbar is added as a child of the toolbox element in the main browser window.
...And 5 more matches
jspage - Archive of obsolete content
";case 3:return(/\s/).test(a.nodevalue)?"textnode":"whitespace";}}else{if(typeof a.length=="number"){if(a.callee){return"arguments"; }else{if(a.item){return"collection";}}}}return typeof a;}function $unlink(c){var b;switch($type(c)){case"object":b={};for(var e in c){b[e]=$unlink(c[e]); }break;case"hash":b=new hash(c);break;case"array":b=[];for(var d=0,a=c.length;d<a;d++){b[d]=$unlink(c[d]);}break;
default:return c;}return b;}var browser=$merge({engine:{name:"unknown",version:0},platform:{name:(window.orientation!=undefined)?"ipod":(navigator.platform.match(/mac|win|linux/i)||["other"])[0].tolowercase()},features:{xpath:!!(document.evaluate),air:!!(window.runtime),query:!!(document.queryselector)},plugins:{},engines:{presto:function(){return(!window.opera)?false:((arguments.callee.caller)?960:((doc...
...tkeys:function(){var a=[]; hash.each(this,function(c,b){a.push(b);});return a;},getvalues:function(){var a=[];hash.each(this,function(b){a.push(b);});return a;},toquerystring:function(a){var b=[]; hash.each(this,function(f,e){if(a){e=a+"["+e+"]";}var d;switch($type(f)){case"object":d=hash.toquerystring(f,e);break;case"array":var c={};f.each(function(h,g){c[g]=h; });d=hash.toquerystring(c,e);break;
default:d=e+"="+encodeuricomponent(f);}if(f!=undefined){b.push(d);}});return b.join("&");}});hash.alias({keyof:"indexof",hasvalue:"contains"}); var event=new native({name:"event",initialize:function(a,f){f=f||window;var k=f.document;a=a||f.event;if(a.$extended){return a;}this.$extended=true;var j=a.type; var g=a.target||a.srcelement;while(g&&g.nodetype==3){g=g.parentnode;}if(j.test(/key/)){var b=a.which|...
...:browser.engine.gecko})()){l=false; }}}}return $extend(this,{event:a,type:j,page:i,client:c,rightclick:e,wheel:h,relatedtarget:l,target:g,code:b,key:m,shift:a.shiftkey,control:a.ctrlkey,alt:a.altkey,meta:a.metakey}); }});event.keys=new hash({enter:13,up:38,down:40,left:37,right:39,esc:27,space:32,backspace:8,tab:9,"delete":46});event.implement({stop:function(){return this.stoppropagation().prevent
default(); },stoppropagation:function(){if(this.event.stoppropagation){this.event.stoppropagation();}else{this.event.cancelbubble=true;}return this;},prevent
default:function(){if(this.event.prevent
default){this.event.prevent
default(); }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){ret...
...And 5 more matches
XUL accessibility guidelines - Archive of obsolete content
by
default, the tab order is determined by the order of the elements in the underlying code.
... toolbarbuttons by
default, toolbar buttons cannot receive focus with a keyboard.
... system
defaults maintain system
defaults.
...And 5 more matches
panel - Archive of obsolete content
if it is not set, it
defaults to the platform behavior.
...the
default is none.
... ignorekeys type: boolean if false, the
default value, the escape key may be used to close the panel.
...And 5 more matches
HTML: A good basis for accessibility - Learn web development
for example, a control button to play a video on your site could be marked up like this: <div>play video</div> but as you'll see in greater detail later on, it makes sense to use the correct element for the job: <button>play video</button> not only do html <button>s have some suitable styling applied by
default (which you will probably want to override), they also have built-in keyboard accessibility — users can navigate between buttons using the tab key and activate their selection using return or enter.
... one key aspect of the accessibility of ui controls is that by
default, browsers allow them to be manipulated by the keyboard.
...the focused elements are given a highlighted
default style in every browser (it differs slightly between different browsers) so that you can tell what element is focused.
...And 5 more matches
HTML: A good basis for accessibility - Learn web development
for example, a control button to play a video on your site could be marked up like this: <div>play video</div> but as you'll see in greater detail later on, it makes sense to use the correct element for the job: <button>play video</button> not only do html <button>s have some suitable styling applied by
default (which you will probably want to override), they also have built-in keyboard accessibility — users can navigate between buttons using the tab key and activate their selection using return or enter.
... one key aspect of the accessibility of ui controls is that by
default, browsers allow them to be manipulated by the keyboard.
...the focused elements are given a highlighted
default style in every browser (it differs slightly between different browsers) so that you can tell what element is focused.
...And 5 more matches
Fundamental text and font styling - Learn web development
color can accept any css color unit, for example: p { color: red; } this will cause the paragraphs to become red, rather than the standard browser
default black, like so: <h1>tommy the cat</h1> <p>well i remember it as though it were a meal ago...</p> <p>said tommy the cat as he reeled back to clear whatever foreign matter may have nestled its way into his mighty throat.
...the browser will only apply a font if it is available on the machine the website is being accessed on; if not, it will just use a browser
default font.
...
default fonts css defines five generic names for fonts: serif, sans-serif, monospace, cursive and fantasy.
...And 5 more matches
Basic native form controls - Learn web development
single line text fields a single line text field is created using an <input> element whose type attribute value is set to text, or by omitting the type attribute altogether (text is the
default value).
... the following screenshot shows
default, focused and disabled text input types in firefox 71 and safari on macos and in chrome 79 and edge 18 on windows 10.
...both use the checked attribute to indicate whether the widget is checked by
default or not.
...And 5 more matches
Making decisions in your code — conditionals - Learn web development
here's some more pseudocode, to give you an idea: switch (expression) { case choice1: run this code break; case choice2: run this code instead break; // include as many cases as you like
default: actually, just run this code } here we've got: the keyword switch, followed by a set of parentheses.
... the keyword
default, followed by exactly the same code pattern as one of the cases (bullets 3–5), except that
default does not have a choice after it, and you don't need to break statement as there is nothing to run after this in the block anyway.
... this is the
default option that runs if none of the choices match.
...And 5 more matches
Mozilla’s UAAG evaluation report
mozilla doesn't support <marquee> by
default.
... lines that can be added to the user's prefs.js file, for controlling popup behavior: turn window.open off for particular sites: user_pref("capability.policy.popupsites.sites", "http://www.annoyingsite1.com http://www.popupsite2.com"); user_pref("capability.policy.popupsites.windowinternal.open", "noaccess"); or turn it off everywhere: user_pref("capability.policy.
default.windowinternal.open", "noaccess"); override popping up new windows on target=anything: user_pref("browser.target_new_blocked", true); override popup windows at beginning of new page load (blocks most popup advertisements): user_pref("dom.disable_open_during_load", true); 5.4 selection and focus in viewport.
...it does, however, support the look and feel of widgets on various operating systems, when the classic theme is selected (on by
default).
...And 5 more matches
Command line options
-createprofile profile_name create a new profile in the
default directory, but do not start the application.
... -search term search term with your
default search engine.
... -set
defaultbrowser set the application as the
default browser.
...And 5 more matches
Mozilla DOM Hacking Guide
when should domclassinfo be used to add a new interface to an existing dom object to expose a new dom object to javascript to add a new js external constructor, like "new image()" to bypass the
default behavior of xpconnect to implement a "replaceable" property to mess with the prototypes of dom objects example of functionality implemented using domclassinfo: constructors of dom objects in the global scope (e.g.
...domclassinfo does almost everything for you, from prototypes to implementing a
default tostring() method on your object.
... add the dom object domclassinfo in the sclassinfodata array (nsdomclassinfo.cpp): ns_define_classinfo_data(dom_object_name, scriptable_helper_class, scriptable_flags) for the domimplementation object, the lines would be: ns_define_classinfo_data(domimplementation, nsdomgenericsh, dom_
default_scriptable_flags) the place where you have to add the domclassinfo in that array should be obvious.
...And 5 more matches
A guide to searching crash reports
as the fine print says, the
default date range is the past week.
... the
default search: signature facet if you click on the "search" button, you will get results like the ones in the following screenshot.
... by
default, the "signature facet" tab is selected.
...And 5 more matches
NSS tools : signtool
the
default is signtool.
...if the -c# option is not used with either the -j or the -z option, the
default compression value used by both the -j and -z options is 6.
...by
default, it produces only rsa certificates with 1024-byte keys in the internal token.
...And 5 more matches
JSAPI reference
n_weight_base obsolete since javascript 1.9.1 js_setthreadstacklimit obsolete since jsapi 13 js_setscriptstackquota obsolete since javascript 1.8.6 js_setoptions obsolete since jsapi 27 js_getoptions obsolete since jsapi 27 js_toggleoptions obsolete since jsapi 27 enum jsversion jsversion_ecma_3 jsversion_1_6 jsversion_1_7 jsversion_1_8 jsversion_ecma_5 jsversion_
default jsversion_unknown jsversion_latest js_getimplementationversion js_getversion js_setversionforcompartment added in spidermonkey 31 js_stringtoversion js_versiontostring js_setversion obsolete since jsapi 25 js::currentglobalornull added in spidermonkey 31 js_getglobalforscopechain obsolete since jsapi 25 js_getglobalobject obsolete since jsapi 24 js_setglobalobject ob...
...these functions also allow spidermonkey to account the number of bytes allocated: js_malloc js_free js_realloc js_strdup struct jsfreeop added in spidermonkey 17 js_freeop added in spidermonkey 17 js_get
defaultfreeop added in spidermonkey 17 javascript objects, strings, and floating-point numbers are garbage collected.
... js_setprototype js_getprivate js_setprivate js_freezeobject added in spidermonkey 1.8.5 js_deepfreezeobject added in spidermonkey 1.8.5 js_isextensible added in spidermonkey 1.8.5 js_preventextensions added in spidermonkey 45 js_instanceof js_hasinstance js_isnative added in spidermonkey 17 js::toprimitiveadded in spidermonkey 45 js::newfunctionfromspecadded in spidermonkey 45 js_
defaultvalueobsolete since jsapi 44 js_get_class obsolete since jsapi 13 js_sealobject obsolete since javascript 1.8.5 js_getparent obsolete since jsapi 39 js_setparent obsolete since jsapi 39 standard objects enum jsprotokey added in spidermonkey 24 js_getclassobject js_getclassprototype js::protokeytoid added in spidermonkey 38 js_idtoprotokey added in spidermonkey 31 js::identifystandard...
...And 5 more matches
nsIExternalProtocolService
and you can ask it to load the url using the
default handler.
...ription(in autf8string ascheme); nsihandlerinfo getprotocolhandlerinfo(in acstring aprotocolscheme); nsihandlerinfo getprotocolhandlerinfofromos(in acstring aprotocolscheme, out boolean afound); boolean isexposedprotocol(in string aprotocolscheme); void loaduri(in nsiuri auri, [optional] in nsiinterfacerequestor awindowcontext); void loadurl(in nsiuri aurl); void setprotocolhandler
defaults(in nsihandlerinfo ahandlerinfo, in boolean aoshandlerexists); methods externalprotocolhandlerexists() check whether a handler for a specific protocol exists.
...if neither the application nor the os knows about a handler for the protocol, the object this method returns will represent a
default handler for unknown content.
...And 5 more matches
Thunderbird Configuration Files
on windows vista/xp/2000, the path is usually %appdata%\thunderbird\profiles\xxxxxxxx.
default\, where xxxxxxxx is a random string of 8 characters.
... on windows 95/98/me, the path is usually c:\windows\application data\thunderbird\profiles\xxxxxxxx.
default\ on linux, the path is usually ~/.thunderbird/xxxxxxxx.
default/ on mac os x, the path is usually ~/library/thunderbird/profiles/xxxxxxxx.
default/ %appdata% is a shorthand for the application data path on windows 2000/xp/vista.
...the path examples above refers to the
default profile that is automatically created when you start thunderbird for the first time.
...And 5 more matches
Add to iPhoto
in c, these are declared thusly: void cfrelease(cftyperef cf); void cfretain(cftyperef cf); in javascript, this translates to: this.cfrelease = this.lib.declare("cfrelease", ctypes.
default_abi, ctypes.void_t, ctypes.voidptr_t); // input: object to release this.cfretain = this.lib.declare("cfretain", ctypes.
default_abi, ctypes.void_t, ctypes.voidptr_t); // input: object to retain these methods are used to...
... this.cfstringcreatewithcharacters = this.lib.declare("cfstringcreatewithcharacters", ctypes.
default_abi, this.cfstringref, // returns a new cfstringref ctypes.voidptr_t, // allocator ctypes.jschar.ptr, // pointer to the unicode string ctypes.int32_t); // length of the string cfstringcreatewithcharacters() is used to create a new cfstri...
... let's take a look at two of the routines declared here: this.cfurlcreatefromfilesystemrepresentation = this.lib.declare("cfurlcreatefromfilesystemrepresentation", ctypes.
default_abi, this.cfurlref, // returns ctypes.voidptr_t, // input: allocator ctypes.unsigned_char.ptr, // input: pointer to string cfindex, // input: string length ctypes.bool) // input: isdirectory...
...And 5 more matches
Settings - Firefox Developer Tools
you can choose between the
default setting at the bottom of the windows, or move the tools to the left or right side of the screen.
...to see the settings, open any of the developer tools, and then: click the "settings" command in the menu: or press f1 to toggle between the active tool and the settings pane the settings pane looks something like this: categories
default firefox developer tools this group of checkboxes determines which tools are enabled in the toolbox.
... new tools are often included in firefox but not enabled by
default.
...And 5 more matches
DOMMatrixReadOnly - Web APIs
these have the
default value of 1.
...by
default, the x and z axes are scaled by 1 and the y axis has no
default scaling value.
... the
default origin is (0, 0, 0).
...And 5 more matches
Touch events - Web APIs
function handlestart(evt) { evt.prevent
default(); console.log("touchstart."); var el = document.getelementbyid("canvas"); var ctx = el.getcontext("2d"); var touches = evt.changedtouches; for (var i = 0; i < touches.length; i++) { console.log("touchstart:" + i + "..."); ongoingtouches.push(copytouch(touches[i])); var color = colorfortouch(touches[i]); ctx.beginpath(); ctx.arc(touches[i].pagex, touches[i].pagey, 4...
..., 0, 2 * math.pi, false); // a circle at the start ctx.fillstyle = color; ctx.fill(); console.log("touchstart:" + i + "."); } } this calls event.prevent
default() to keep the browser from continuing to process the touch event (this also prevents a mouse event from also being delivered).
... function handlemove(evt) { evt.prevent
default(); var el = document.getelementbyid("canvas"); var ctx = el.getcontext("2d"); var touches = evt.changedtouches; for (var i = 0; i < touches.length; i++) { var color = colorfortouch(touches[i]); var idx = ongoingtouchindexbyid(touches[i].identifier); if (idx >= 0) { console.log("continuing touch "+idx); ctx.beginpath(); console.log("ctx.moveto(" + ongoingtou...
...And 5 more matches
WritableStream - Web APIs
writablestream.getwriter() returns a new instance of writablestream
defaultwriter and locks the stream to that instance.
...inside this function it calls the stream's getwriter() method, which returns an instance of writablestream
defaultwriter.
... const list = document.queryselector('ul'); function sendmessage(message, writablestream) { //
defaultwriter is of type writablestream
defaultwriter const
defaultwriter = writablestream.getwriter(); const encoder = new textencoder(); const encoded = encoder.encode(message, { stream: true }); encoded.foreach((chunk) => {
defaultwriter.ready .then(() => { return
defaultwriter.write(chunk); }) .then(() => { console.log("chunk written to sink."); }) .catch((err) => { console.log("chunk error:", err); }); }); // call ready again to...
...And 5 more matches
Box alignment in CSS Grid Layout - CSS: Cascading Style Sheets
the first area, is showing the
default behavior of align-self, which is to stretch.
...-area: a; } .item2 { grid-area: b; align-self: start; } .item3 { grid-area: c; align-self: end; } .item4 { grid-area: d; align-self: center; } <div class="wrapper"> <div class="item1">item 1</div> <div class="item2">item 2</div> <div class="item3">item 3</div> <div class="item4">item 4</div> </div> items with an intrinsic aspect ratio the specification details that the
default behavior in align-self is to stretch, except for items which have an intrinsic aspect ratio, in this case they behave as start.
... the reason for this, is that if items with an aspect ratio are set to stretch, this
default would distort them.
...And 5 more matches
CSS grids, logical values, and writing modes - CSS: Cascading Style Sheets
i have added dir="rtl" to the html element, which switches the writing mode from the
default for an english language document of ltr.
...the writing-mode property can have values of: horizontal-tb vertical-rl vertical-lr sideways-rl sideways-lr the value horizontal-tb is the
default for text on the web.
...the first uses the
default horizontal-tb, and the second uses vertical-rl.
...And 5 more matches
<color> - CSS: Cascading Style Sheets
this lets you use the color value on properties that do not receive it by
default.
... mozilla system color extensions -moz-button
default the border color that goes around buttons that represent the
default action for a dialog box.
... -moz-nativehyperlinktext
default platform hyperlink color.
...And 5 more matches
Creating a cross-browser video player - Developer guides
as well as working fullscreen, the player features custom controls rather than just using the browser
defaults.
... </object> <!-- offer download --> <a href="video/tears-of-steel-battle-clip-medium.mp4">download mp4</a> </video> <figcaption>© blender foundation | <a href="http://mango.blender.org">mango.blender.org</a></figcaption> </figure> even though this player will define its own custom control set, the controls attribute is still added to the <video> element, and the player's
default control set is switched off later with javascript.
... the code above would allow playback of the video in most browsers, using the browser's
default control set.
...And 5 more matches
<input type="checkbox"> - HTML: Hypertext Markup Language
<input> elements of type checkbox are rendered by
default as boxes that are checked (ticked) when activated, like you might see in an official government paper form.
... if the value attribute was omitted, the
default value for the checkbox is on, so the submitted data in that case would be subscribe=on.
...if you wanted to submit a
default value for the checkbox when it is unchecked, you could include an <input type="hidden"> inside the form with the same name and value, generated by javascript perhaps.
...And 5 more matches
<input type="radio"> - HTML: Hypertext Markup Language
it's fairly uncommon to actually want to allow the form to be submitted without any of the radio buttons in a group selected, so it is usually wise to have one
default to the checked state.
... see selecting a radio button by
default below.
...r on the submit event, which is sent when the user clicks the "submit" button: var form = document.queryselector("form"); var log = document.queryselector("#log"); form.addeventlistener("submit", function(event) { var data = new formdata(form); var output = ""; for (const entry of data) { output = output + entry[0] + "=" + entry[1] + "\r"; }; log.innertext = output; event.prevent
default(); }, false); try this example out and see how there's never more than one result for the contact group.
...And 5 more matches
Connection management in HTTP/1.x - HTTP
short-lived connections the original model of http, and the
default one in http/1.0, is short-lived connections.
... this model is the
default model used in http/1.0 (if there is no connection header, or if its value is set to close).
... http/1.0 connections are not persistent by
default.
...And 5 more matches
JavaScript modules - JavaScript
see node's ecmascript modules documentation for more details.disabled from version 8.5.0: this feature is behind the --experimental-modules runtime flag.
default keyword with exportchrome full support 61edge full support 16 full support 16 full support 15disabled disabled from version 15: this feature is behind the experimental javascript features preference.firefox ...
...
default exports versus named exports the functionality we've exported so far has been comprised of named exports — each item (be it a function, const, etc.) has been referred to by its name upon export, and that name has been used to refer to it on import as well.
... there is also a type of export called the
default export — this is designed to make it easy to have a
default function provided by a module, and also helps javascript modules to interoperate with existing commonjs and amd module systems (as explained nicely in es6 in depth: modules by jason orendorff; search for "
default exports").
...And 5 more matches
Intl.DateTimeFormat() constructor - JavaScript
to use the browser's
default locale, omit this argument or pass undefined.
...possible values are "lookup" and "best fit"; the
default is "best fit".
...the only value implementations must recognize is "utc"; the
default is the runtime's
default time zone.
...And 5 more matches
Intl.NumberFormat.prototype.resolvedOptions() - JavaScript
numberingsystem the value provided for this properties in the options argument, if present, or the value requested using the unicode extension key "nu" or filled in as a
default.
... notation the value provided for this property in the options argument, if present, or "standard filled in as a
default.
... compactdisplay the value provided for this property in the options argument, or "short" filled in as a
default.
...And 5 more matches
Intl.PluralRules() constructor - JavaScript
possible values are "lookup" and "best fit"; the
default is "best fit".
...this is the
default value.
...possible values are from 1 to 21; the
default is 1.
...And 5 more matches
<altGlyph> - SVG: Scalable Vector Graphics
value type: <list-of-coordinates> ;
default value: absolute x-coordinate of ancestor <text> or <tspan>; animatable: yes y this attribute defines the corresponding absolute y-coordinates for rendering the element.
... value type: <list-of-coordinates> ;
default value: absolute y-coordinate of ancestor <text> or <tspan>; animatable: yes dx this attribute indicates a shift along the x-axis on the position of the element.
... value type: <list-of-coordinates> ;
default value: relative x-coordinate of ancestor <text> or <tspan>; animatable: yes dy this attribute indicates a shift along the x-axis on the position of the element.
...And 5 more matches
<marker> - SVG: Scalable Vector Graphics
value type: <length> ;
default value: 3; animatable: yes markerunits this attribute defines the coordinate system for the attributes markerwidth, markerheight and the contents of the <marker>.
... value type: userspaceonuse|strokewidth ;
default value: strokewidth; animatable: yes markerwidth this attribute defines the width of the marker viewport.
... value type: <length> ;
default value: 3; animatable: yes orient this attribute defines the orientation of the marker relative to the shape it is attached to.
...And 5 more matches
<symbol> - SVG: Scalable Vector Graphics
value type: <length>|<percentage> ;
default value: auto; animatable: yes preserveaspectratio this attribute defines how the svg fragment must be deformed if it is embedded in a container with a different aspect ratio.
...;
default value: xmidymid meet; animatable: yes refx this attribute determines the x coordinate of the reference point of the symbol.
... value type: <length>|<percentage>|left|center|right ;
default value: 0; animatable: yes refy this attribute determines the y coordinate of the reference point of the symbol.
...And 5 more matches
<text> - SVG: Scalable Vector Graphics
this is different than being hidden by
default, as setting the display property won't show the text.
... value type: <length>|<percentage> ;
default value: 0; animatable: yes y the y coordinate of the starting point of the text baseline.
... value type: <length>|<percentage> ;
default value: 0; animatable: yes dx shifts the text position horizontally from a previous text element.
...And 5 more matches
<textPath> - SVG: Scalable Vector Graphics
value type: <url> ;
default value: none; animatable: yes lengthadjust where length adjustment should be applied to the text: the space between glyphs, or both the space and the glyphs themselves.
... value type: spacing|spacingandglyphs;
default value: spacing; animatable: yes method which method to render individual glyphs along the path.
... value type: align|stretch ;
default value: align; animatable: yes path the path on which the text should be rendered.
...And 5 more matches
Introduction to using XPath in JavaScript - XPath
implementing a
default namespace resolver we create a namespace resolver using the creatensresolver method of the document object.
...there is no way in xpath to pick up the
default namespace as applied to a regular element reference (e.g., p[@id='_myid'] for xmlns='http://www.w3.org/1999/xhtml').
... to match
default elements in a non-null namespace, you either have to refer to a particular element using a form such as ['namespace-uri()='http://www.w3.org/1999/xhtml' and name()='p' and @id='_myid'] (this approach works well for dynamic xpath's where the namespaces might not be known) or use prefixed name tests, and create a namespace resolver mapping the prefix to the namespace.
...And 5 more matches
File I/O - Archive of obsolete content
defprofrt d the root of the
default profile directory (for example /root/.mozilla).
... defrt d %curprocd%/
defaults - the root directory of all
defaults directories.
... desk f dfltdwnld f the
default downloads directory (for example, ~/downloads on mac os x).
...And 4 more matches
Finding window handles - Archive of obsolete content
.getinterface(ci.nsibasewindow); var nswindowstring = basewindow.nativehandle; components.utils.import('resource://gre/modules/ctypes.jsm'); var objc = ctypes.open(ctypes.libraryname('objc')); // types let id = ctypes.voidptr_t; let sel = ctypes.voidptr_t; // constants let nil = ctypes.voidptr_t(0); //common functions let sel_registername = objc.declare('sel_registername', ctypes.
default_abi, sel, ctypes.char.ptr); let objc_msgsend = objc.declare('objc_msgsend', ctypes.
default_abi, id, id, sel, '...'); /* https://developer.apple.com/library/mac/documentation/cocoa/reference/applicationkit/classes/nsapplication_class/index.html#//apple_ref/occ/instp/nsapplication/orderfront: * [nswindowptr orderfront:nil] */ var orderfront = sel_registername('orderfront:'); var nswindowptr =...
...ctypes.unsigned_int : ctypes.unsigned_long; var xid = card32; var gdk = ctypes.open('libgdk-x11-2.0.so.0'); var gdk_x11_drawable_get_xid = gdk.declare('gdk_x11_drawable_get_xid', ctypes.
default_abi, xid, gdkdrawable.ptr); var gdkwindowptrstring = basewindow.nativehandle; var gdkwinptr = gdkwindow.ptr(ctypes.uint64(gdkwindowptrstring)); var gdkdrawptr = ctypes.cast(gdkwinptr, gdkdrawable.ptr); var xidofwin = gdk_x11_drawable_get_xid(gdkdrawptr); gdkwindow* to gtkwindow* how to get the gtkwindow* from the gdkwindow*?
...kwindow = ctypes.structtype('gtkwindow'); var gtkwidget = ctypes.structtype('gtkwidget'); /***** this part is from the gdkwindow* to gtkwindow* example above var gdkwindowptrstring = basewindow.nativehandle; var gdkwinptr = gdkwindow.ptr(ctypes.uint64(gdkwindowptrstring)); var gdk = ctypes.open('libgdk-x11-2.0.so.0'); var gdk_window_get_user_data = gdk.declare('gdk_window_get_user_data', ctypes.
default_abi, ctypes.void_t, gdkwindow.ptr, gpointer.ptr); var gptr = gpointer(); gdk_window_get_user_data(gdkwinptr, gptr.address()); var gtkwinptr = ctypes.cast(gptr, gtkwindow.ptr); // we now have gtkwindow* */ // lets take it back to gdkwindow* var gtk = ctypes.open('libgtk-x11-2.0.so.0'); var gtk_widget_get_window = gtk.declare('gtk_widget_get_window', ctypes.
default_abi, gdkwindow.ptr, gtkwidget.
...And 4 more matches
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
createinstance(components.interfaces.nsiconverterinputstream); cvstream.init(stream, "utf-8", 1024, components.interfaces.nsiconverterinputstream.
default_replacement_character); var content = ""; var data = {}; while (cvstream.readstring(4096, data)) { content += data.value; } cvstream.close(); return content.replace(/\r\n?/g, "\n"); } catch (ex) { } return null; }, _writefile method creates a new file for the nslfile object passed as a parameter, and writes the text string, also passed ...
... table 5: files used in phase 3 fixme: make the table cleaner name purpose sessionstore-prefs.js file sets
defaults for preferences.
... this should always be located inside
defaults\preferences prefs.xul the preference panel fixme: figure 16: source file structure deciding the format for your preferences next you need to determine the names, types, and values for your preferences (table 6).
...And 4 more matches
Block and Line Layout Cheat Sheet - Archive of obsolete content
by
default it is set in willreflow(), and unset in didreflow().
...this is set by
default for document, table cell inner, and absolutely positioned wrapper frames.
...this is set by
default for document frames, area frames, table cell inner frames, absolutely positioned wrapper frames, and floated frames when the frame is created.
...And 4 more matches
dialog - Archive of obsolete content
attributes buttonaccesskeyaccept, buttonaccesskeycancel, buttonaccesskeydisclosure, buttonaccesskeyextra1, buttonaccesskeyextra2, buttonaccesskeyhelp, buttonalign, buttondir, buttondisabledaccept, buttonlabelaccept, buttonlabelcancel, buttonlabeldisclosure, buttonlabelextra1, buttonlabelextra2, buttonlabelhelp, buttonorient, buttonpack, buttons,
defaultbutton, title properties buttons,
defaultbutton methods acceptdialog, canceldialog, centerwindowonscreen, getbutton, movetoalertposition examples <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?> <dialog id="donothing" title="dialog example" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" buttons="accept,cancel"...
...this button will also be the
default button.
...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).
...And 4 more matches
scale - Archive of obsolete content
the
default value is horizontal which displays a horizontal scale.
...the
default value is 1.
...the
default value is 0.
...And 4 more matches
toolbar - Archive of obsolete content
it is a type of box that
defaults to horizontal orientation.
... 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"/> <toolbarbutton id="nav-groups" ac...
...when set to false, the
default, the toolbar is visible.
...And 4 more matches
tree - Archive of obsolete content
relevant accessbility guidelines provide alternative access (for example, via menus) to column picker and for header behaviors like sorting (these have no
default keyboard access).
...the
default value is false.
...(
default in listbox and richlistbox.) multiple multiple rows may be selected at once.
...And 4 more matches
Common Firefox theme issues and solutions - Archive of obsolete content
to test this please go to bug 324777 using the
default theme and activate the "click me" link.
...to accomplish this copy the file chrome://mozapps/skin/extensions/extensions.svg from the
default theme into the mozapps/extensions/ folder of your theme and add the following style rule to the css file extensions.css: .addon[active="false"] .icon { filter: url("chrome://mozapps/skin/extensions/extensions.svg#greyscale"); opacity:0.3; } about:memory about:memory nodes do not collapse the styling of about:memory is a little messed up in that nodes do not collapse as they should when cli...
...this issue is fixed by adding the following css instructions to the file browser/preferences/aboutpermissions.css: .site-favicon { height: 16px; width: 16px; -moz-margin-end: 4px; list-style-image: url("chrome://mozapps/skin/places/
defaultfavicon.png"); } web developer tools web developer toolbar {to be added} web console web console buttons do not change appearance on the web console (tools > web developer > web console), the toolbar buttons on the left-hand side do not change their appearance between their toggled on and toggled off status as a result it is not possible to determine which buttons are enabled.
...And 4 more matches
Old Proxy API - Archive of obsolete content
the
default object semantics are implemented in the javascript engine, often written in lower-level languages like c++.
...there are two kinds of proxies: object proxies var proxy = proxy.create(handler, proto); and function proxies : var proxy = proxy.createfunction(handler, calltrap, constructtrap); where: proto is an optional object representing the proxy’s prototype (
defaults to null if none is provided).
...if the derived trap is undefined, a
default implementation using the fundamental traps is used.
...And 4 more matches
Mozilla XForms User Interface - Archive of obsolete content
it can have the following representations: text field -
default representation.
... checkbox - used for boolean instance data datepicker -
default representation for date data types.
...it can have the following presentations: text -
default representation for data of most types, especially static text.
...And 4 more matches
CSS and JavaScript accessibility best practices - Learn web development
make sure your headings stand out from your body text, typically big and bold like the
default styling.
...s — the way you get to new places on the web: <p>visit the <a href="https://www.mozilla.org">mozilla homepage</a>.</p> some very simple link styling is shown below: a { color: #ff0000; } a:hover, a:visited, a:focus { color: #a60000; text-decoration: none; } a:active { color: #000000; background-color: #a60000; } the standard link conventions are underlined and a different color (
default: blue) in their standard state, another color variation when the link has previously been visited (
default: purple), and yet another color when the link is activated (
default: red).
... providing custom controls for html5 <video>s that are accessible to keyboard-only users, along with a direct link to the video that can be used to access it if javascript is not available (the
default <video> browser controls aren't keyboard accessible in most browsers).
...And 4 more matches
The box model - Learn web development
<h1>) and <p> all use block as their outer display type by
default.
... the <a> element, used for links, <span>, <em> and <strong> are all examples of elements that will display inline by
default.
...by
default, the elements inside a box are laid out in normal flow, which means that they behave just like any other block and inline elements (as explained above).
...And 4 more matches
Positioning - Learn web development
what if you want to slightly alter the position of some boxes inside a layout from their
default layout flow position, to give a slightly quirky, distressed feel?
... static positioning static positioning is the
default that every element gets — it just means "put the element into its normal position in the document layout flow — nothing special to see here." to demonstrate this, and get your example set up for future sections, first add a class of positioned to the second <p> in the html: <p class="positioned"> ...
...this is fine — as we said before, static positioning is the
default behavior!
...And 4 more matches
The HTML5 input types - Learn web development
note that a@b is a valid email address according to the
default provided constraints.
... this is because the email input type allows intranet email addresses by
default.
...on devices with dynamic keyboards, the
default keyboard will often display some or all of the colon, period, and forward slash as
default keys.
...And 4 more matches
Your first form - Learn web development
in our simple example, we use the value <input/text> for the first input — the
default value for this attribute.
...with an @ symbol by
default) to appear on devices with dynamic keyboards, like smartphones.
...this has an impact on a specific feature of forms: the way you define the
default value.
...And 4 more matches
Advanced text formatting - Learn web development
this is usually a feeling, thought, or piece of additional background information.</dd> </dl> the browser
default styles will display description lists with the descriptions indented somewhat from the terms.
...he drink that gets the world running in the morning.</dd>\n <dd>a light brown color.</dd>\n</dl>'; const 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(e){ if (e.keycode === 9) { e.prevent
default(); insertatcaret('\t'); } if (e.keycode === 27) { textarea.blur(); } }; function insertatcaret(text) { const scrollpos = textarea.scrolltop; const caretpos = textarea.selectionstart; const front = (textarea.value).substring(0, caretpos); const back = (textarea.value).substring(textarea.selectionend, textarea.value.length); textarea.value = front + text + back; caretpo...
...he enclosed text is an extended quotation.</p> to turn this into a block quote, we would just do this: <p>here below is a blockquote...</p> <blockquote cite="/docs/web/html/element/blockquote"> <p>the <strong>html <code><blockquote></code> element</strong> (or <em>html block quotation element</em>) indicates that the enclosed text is an extended quotation.</p> </blockquote> browser
default styling will render this as an indented paragraph, as an indicator that it is a quote; the paragraph above the quotation is there to demonstrate that.
...And 4 more matches
Routing in Ember - Learn web development
an ember application has a
default "application" route, which is tied to the app/templates/application.hbs template.
...it contains the following contents: import emberrouter from '@ember/routing/router'; import config from './config/environment'; export
default class router extends emberrouter { location = config.locationtype; rooturl = config.rooturl; } router.map(function() { this.route('completed'); this.route('active'); }); the highlighted lines were added when the 2nd and 3rd commands above were run.
... creating the "index" route did not add a route definition line to router.js, because like with url navigation and javascript module loading, "index" is a special word that indicates the
default route to render, load, etc.
...And 4 more matches
React interactivity: Events and state - Learn web development
this function should prevent the
default behavior of the submit event.
...it should end up looking something like this: function handlesubmit(e) { e.prevent
default(); alert('hello, world!'); } to use this function, add an onsubmit attribute to the <form> element, and set its value to the handlesubmit function: <form onsubmit={handlesubmit}> now if you head back to your browser and click on the "add" button, your browser will show you an alert dialog with the words "hello, world!" — or whatever you chose to write there.
...update it as follows: function handlesubmit(e) { e.prevent
default(); props.addtask("say hello!"); } clicking on the "add" button in your browser will prove that the addtask() callback function works, but it'd be nice if we could get the alert to show us what we're typing in our input field!
...And 4 more matches
Profile Manager
by
default, profile manager will manage firefox profiles, but you can also use it to work with profiles of other xulrunner apps, like thunderbird or seamonkey.
... by
default, this means it tracks a list of firefox applications that are installed on your system, and a list of profiles for use by firefox.
... when launched, profile manager will look in some
default locations for installed versions of firefox (or other application you're using profile manager with).
...And 4 more matches
NSPR build instructions
configure options although nspr uses autoconf, its configure script has two
default values that are different from most open source projects.
... if the os vendor provides a compiler (for example, sun and hp), nspr uses that compiler instead of gcc by
default.
... nspr build generates a debug build by
default.
...And 4 more matches
NSS 3.12.6 release notes
new in nss 3.12.6 ssl3 & tls renegotiation indication extension (rfc 5746) by
default, nss 3.12.6 uses the new tls renegotiation indication extension for tls renegotiation but allows simple ssl/tls connections (without renegotiation) with peers that don't support the tls renegotiation indication extension.
... the behavior of nss for renegotiation can be changed through api function calls, or with the following environment variables: nss_ssl_enable_renegotiation values: [0|n|n]: ssl_renegotiate_never never allow renegotiation - that was the
default for 3.12.5 release.
...this setting was the
default prior 3.12.5 and makes products vulnerable.
...And 4 more matches
NSS 3.14 release notes
new features: support for tls 1.1 (rfc 4346) experimental support for dtls 1.0 (rfc 4347) and dtls-srtp (rfc 5764) support for aes-ctr, aes-cts, and aes-gcm support for keying material exporters for tls (rfc 5705) in addition to the above new features, the following major changes have been introduced: support for certificate signatures using the md5 hash algorithm is now disabled by
default.
... export and des cipher suites are disabled by
default.
... non-ecc aes and triple des cipher suites are enabled by
default.
...And 4 more matches
NSS 3.48 release notes
notable changes in nss 3.48 tls 1.3 is the
default maximum tls version.
... tls extended master secret is enabled by
default, where possible.
... the master password pbe now uses 10,000 iterations by
default when using the
default sql (key4.db) storage.
...And 4 more matches
NSS Tools pk12util
if not specified the directory
defaults to $home/.netscape (when $home exists in the environment), or to ./.netscape (when $home does not exist in the environment).
...if no algorithm is specified, the tool
defaults to using "pkcs12 v2 pbe with sha1 and 3key triple des-cbc" for private key encryption.
... for historical export control reasons "pkcs12 v2 pbe with sha1 and 40 bit rc4" is the
default for the overall package encryption when not in fips mode and no package encryption when in fips mode.
...And 4 more matches
Mork
meta-tables are used to establish some facts about the table as well as the
default row scope.
...most files will have just two dictionaries: the column scope dictionary ('c') and the value scope dictionary ('v', the
default).
...furthermore, the scope of the mid also serves as the
default scope of rows defined within the table.
...And 4 more matches
Components.utils.Sandbox
as of gecko 13 (firefox 13.0 / thunderbird 13.0 / seamonkey 2.10), if you don't specify a sandbox name it will
default to the caller's filename.
... passing a content window object, setting wantxrays:true (
default) and using an extended principal provides a clean, isolated execution environment in which javascript code that needs web apis (such as accessing the window's dom) can be executed without interference from untrusted content code.
...
default: true.
...And 4 more matches
nsIFaviconService
long adatalen, in autf8string amimetype, in prtime aexpiration); obsolete since gecko 22.0 void setfavicondatafromdataurl(in nsiuri afaviconuri, in astring adataurl, in prtime aexpiration); obsolete since gecko 22.0 void setfaviconurlforpage(in nsiuri apageuri, in nsiuri afaviconuri); obsolete since gecko 22.0 attributes attribute type description
defaultfavicon nsiuri the
default favicon uri.
...unlike the other get functions, we needn't have heard of the page or its favicon: the
default one will be returned in this case.
... when compared to getfaviconlinkforicon() method, this method only adds the extra level of indirection, looking up the favicon based on the page uri and using the
default if not found.
...And 4 more matches
nsIMarkupDocumentViewer
default = true.
...1 - depending on context,
default is arabic numerals 2 - depending on context,
default is hindi numerals 3 - arabic numerals 4 - hindi numerals.
... the
default direction for the layout of bidirectional text.
...And 4 more matches
nsIWebBrowserFind
by
default, the implementation will search the focused frame, or if there is no focused frame, the web browser content area.
... it does not by
default search subframes or iframes.
...
default is false.
...And 4 more matches
Using COM from js-ctypes
speech synthesis example let's start with following c++ code, which invokes microsoft speech api and says "hello, firefox!" with system
default voice, then wait until the speaking done.
... #include <sapi.h> int main(void) { if (succeeded(coinitialize(null))) { ispvoice* pvoice = null; hresult hr = cocreateinstance(clsid_spvoice, null, clsctx_all, iid_ispvoice, (void**)&pvoice); if (succeeded(hr)) { pvoice->speak(l"hello, firefox!", spf_
default, null); pvoice->release(); } } // msdn documentation says that even if coinitalize fails, counitialize // must be called couninitialize(); return 0; } to run the code, save it as test.cpp, and run following command in the directory (needs visual studio).
...; void* displayui; /* end ispvoice */ }; int main(void) { if (succeeded(coinitialize(null))) { struct myispvoice* pvoice = null; hresult hr = cocreateinstance(&clsid_spvoice, null, clsctx_all, &iid_ispvoice, (void**)&pvoice); if (succeeded(hr)) { pvoice->lpvtbl->speak(pvoice, l"hello, firefox!", spf_
default, null); pvoice->lpvtbl->release(pvoice); } } // msdn documentation says that even if coinitalize fails, counitialize // must be called couninitialize(); return 0; } converting c code to js-ctypes code now we have working c code.
...And 4 more matches
AddressErrors - Web APIs
t britain, japan, china, and germany."; let shippingaddress = ev.target.shippingaddress; let shippingaddresserrors = {}; let updatedetails = {}; if (!validcountries.includes(shippingaddress.country)) { ev.target.shippingoptions = []; shippingaddresserrors.country = invalidcountryerror; updatedetails = { error: genericaddresserror, shippingaddresserrors, ...
defaultpaymentdetails }; } ev.updatewith(updatedetails); } see handling address changes for a description of how this code works.
... javascript payment request data first, we declare the variables supportedhandlers, which is compatible with paymentmethoddata, and
defaultpaymentdetails, which is a paymentdetailsupdate object.
... let supportedhandlers = [ { supportedmethods: "basic-card", data: { supportednetworks: ["visa", "mastercard", "amex", "discover"], supportedtypes: ["credit", "debit"] } } ]; let
defaultpaymentdetails = { total: {label: 'donation', amount: {currency: 'usd', value: '65.00'}}, displayitems: [ { label: 'original donation amount', amount: {currency: 'usd', value: '65.00'} } ], shippingoptions: [ { id: 'standard', label: 'standard shipping', amount: {currency: 'usd', value: '0.00'}, selected: true } ] }; supportedhandlers describes the supported payment handlers and the details for those.
...And 4 more matches
Using the CSS Typed Object Model - Web APIs
<p> <a href="https://example.com">link</a> </p> <dl id="regurgitation"></dl> we add javascript to grab our unstyled link and return back a definition list of all the
default css property values impacting the link using computedstylemap().
... // get the element const myelement = document.queryselector('a'); // get the <dl> we'll be populating const styleslist = document.queryselector('#regurgitation'); // retrieve all computed styles with computedstylemap() const
defaultcomputedstyles = myelement.computedstylemap(); // iterate thru the map of all the properties and values, adding a <dt> and <dd> for each for (const [prop, val] of
defaultcomputedstyles) { // properties const cssproperty = document.createelement('dt'); cssproperty.appendchild(document.createtextnode(prop)); styleslist.appendchild(cssproperty); // values const cssvalue = document.createelement('dd'); cssvalue.appendchild(document.createtextnode(val)); styleslist.appendchild(cssvalue); } the computedstylemap() method returns a stylepropertymapreadonly objec...
... did you realize how many
default css properties a link had?
...And 4 more matches
Using Fetch - Web APIs
the spec changed the
default credentials policy to same-origin.
... // example post method implementation: async function postdata(url = '', data = {}) { //
default options are marked with * const response = await fetch(url, { method: 'post', // *get, post, put, delete, etc.
... mode: 'cors', // no-cors, *cors, same-origin cache: 'no-cache', // *
default, no-cache, reload, force-cache, only-if-cached credentials: 'same-origin', // include, *same-origin, omit headers: { 'content-type': 'application/json' // 'content-type': 'application/x-www-form-urlencoded', }, redirect: 'follow', // manual, *follow, error referrerpolicy: 'no-referrer', // no-referrer, *no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url body: json.stringify(data) // body data type must match "content-type" header }); return response.json(); // parses json response into native javascript objects } postdata('https://example.com/answer', { answer: 42 }) .then(data => { co...
...And 4 more matches
Option() - Web APIs
syntax var optionelementreference = new option(text, value,
defaultselected, selected); parameters text optional a domstring representing the content of the element, i.e.
...if this is not specified, a
default value of "" (empty string) is used.
...
defaultselected optional a boolean that sets the selected attribute value, i.e.
...And 4 more matches
PannerNode.PannerNode() - Web APIs
options optional a panneroptions dictionary object defining the properties you want the pannernode to have (it also inherits the options defined in the audionodeoptions dictionary.): panningmodel: the pannernode.panningmodel you want the pannernode to have (the
default is equalpower.) distancemodel: the pannernode.distancemodel you want the pannernode to have (the
default is inverse.) positionx: the pannernode.positionx you want the pannernode to have (the
default is 0.) positiony: the pannernode.positiony you want the pannernode to have (the
default is 0.) positionz: the pannernode.positionz you want the pannernode to have (the
default is 0.) orienta...
...tionx: the pannernode.orientationx you want the pannernode to have (the
default is 1.) orientationy: the pannernode.orientationy you want the pannernode to have (the
default is 0.) orientationz: the pannernode.orientationz you want the pannernode to have (the
default is 0.) refdistance: the pannernode.refdistance you want the pannernode to have.
... the
default is 1, and negative values are not allowed.
...And 4 more matches
Request() - Web APIs
the
default is get.
...the
default is cors.
...the
default is same-origin.
...And 4 more matches
Using Service Workers - Web APIs
using a service worker you can easily set an app up to use cached assets first, thus providing a
default experience even when offline, before then getting more data from the network (commonly known as offline first).
... setting up to play with service workers many service workers features are now enabled by
default in newer versions of supporting browsers.
... chrome canary: go to chrome://flags and turn on experimental-web-platform-features; restart browser (note that some features are now enabled by
default in chrome.) opera: go to opera://flags and enable support for serviceworker; restart browser.
...And 4 more matches
Streams API - Web APIs
readablestream
defaultreader represents a
default reader that can be used to read stream data supplied from a network (e.g.
... readablestream
defaultcontroller represents a controller allowing control of a readablestream's state and internal queue.
...
default controllers are for streams that are not byte streams.
...And 4 more matches
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.
... "changedtouches", optional and
defaulting to [], of type touch[], that is a list of objects for every point of contact which contributed to the event.
...And 4 more matches
WebGLRenderingContext.getTexParameter() - Web APIs
possible values: pname return type description possible return values available in a webgl 1 context gl.texture_mag_filter glenum texture magnification filter gl.linear (
default value), gl.nearest.
... gl.texture_min_filter glenum texture minification filter gl.linear, gl.nearest, gl.nearest_mipmap_nearest, gl.linear_mipmap_nearest, gl.nearest_mipmap_linear (
default value), gl.linear_mipmap_linear.
... gl.texture_wrap_s glenum wrapping function for texture coordinate s gl.repeat (
default value), gl.clamp_to_edge, gl.mirrored_repeat.
...And 4 more matches
WebGLRenderingContext.texParameter[fi]() - Web APIs
pname description param available in webgl 1 gl.texture_mag_filter texture magnification filter gl.linear (
default value), gl.nearest.
... gl.texture_min_filter texture minification filter gl.linear, gl.nearest, gl.nearest_mipmap_nearest, gl.linear_mipmap_nearest, gl.nearest_mipmap_linear (
default value), gl.linear_mipmap_linear.
... gl.texture_wrap_s wrapping function for texture coordinate s gl.repeat (
default value),gl.clamp_to_edge, gl.mirrored_repeat.
...And 4 more matches
Window.open() - Web APIs
these features include options such as the window's
default size and position, whether or not to include toolbar, and so forth.
...if url is an empty string, then a new blank, empty window (url about:blank) is created with the
default toolbars of the main window.
...if windowname does not specify an existing window and the windowfeatures parameter is not provided (or if the windowfeatures parameter is an empty string), then the new secondary window will render the
default toolbars of the main window.
...And 4 more matches
XRWebGLLayer() - Web APIs
the
default value is true.
... the
default value is true.
...the
default is true.
...And 4 more matches
outline - CSS: Cascading Style Sheets
this is because the style
defaults to none.
... a notable exception is input elements, which are given
default styling by browsers.
...
defaults to currentcolor if absent.
...And 4 more matches
HTML attribute: step - HTML: Hypertext Markup Language
if not explicitly included, step
defaults to 1 for number and range, and 1 unit type (minute, week, month, day) for the date/time input types.
... the
default stepping value for number inputs is 1, allowing only integers to be entered, unless the stepping base is not an integer.
... the
default stepping value for time is 1 second, with 900 being equal to 15 minutes.
...And 4 more matches
<audio>: The Embed Audio element - HTML: Hypertext Markup Language
in a similar manner to the <img> element, we include a path to the media we want to embed inside the src attribute; we can include other attributes to specify information such as whether we want it to autoplay and loop, whether we want to show the browser's
default audio controls, etc.
...its
default value is false.
... the
default value is different for each browser.
...And 4 more matches
<button>: The Button element - HTML: Hypertext Markup Language
by
default, html buttons are presented in a style resembling the platform the user agent runs on, but you can change buttons’ appearance with css.
...possible values: application/x-www-form-urlencoded: the
default if the attribute is not used.
...this is the
default if the attribute is not specified.
...And 4 more matches
<video>: The Video Embed element - HTML: Hypertext Markup Language
in a similar manner to the <img> element, we include a path to the media we want to display inside the src attribute; we can include other attributes to specify information such as video width and height, whether we want it to autoplay and loop, whether we want to show the browser's
default video controls, etc.
... muted a boolean attribute that indicates the
default setting of the audio contained in the video.
...its
default value is false, meaning that the audio will be played when the video is played.
...And 4 more matches
HTML documentation index - HTML: Hypertext Markup Language
by
default, a block-level element occupies the entire space of its parent element (container), thereby creating a "block." this article helps to explain what this means.
...if no size is specified, or an invalid value is specified, the input has no size declared, and the form control will be the
default width based on the user agent.
... 66 <basefont> element, fonts, html, layout, obsolete, reference, style, web, basefont the obsolete html base font element (<basefont>) sets a
default font face, size, and color for the other elements which are descended from its parent element.
...And 4 more matches
HTTP Index - HTTP
18 list of
default accept values accept, content negotiation, http, reference this article documents the
default values for the http accept header for specific inputs and browser versions.
...cross-origin resource policy complements cross-origin read blocking (corb), which is a mechanism to prevent some cross-origin reads by
default.
...the apis that are restricted are: 81 csp:
default-src csp, content-security-policy, directive, http, reference, security,
default,
default-src, source the http content-security-policy (csp)
default-src directive serves as a fallback for the other csp fetch directives.
...And 4 more matches
Functions - JavaScript
function parameters starting with ecmascript 2015, there are two new kinds of parameters:
default parameters and rest parameters.
...
default parameters in javascript, parameters of functions
default to undefined.
... however, in some situations it might be useful to set a different
default value.
...And 4 more matches
Intl.Collator() constructor - JavaScript
possible values are "upper", "lower", or "false" (use the locale's
default).
...possible values are "lookup" and "best fit"; the
default is "best fit".
...possible values are "sort" and "search"; the
default is "sort".
...And 4 more matches
dx - SVG: Scalable Vector Graphics
value list of <length>
default value none animatable yes fedropshadow for <fedropshadow>, dx defines the x offset of the droped shadow.
... value <number>
default value 2 animatable yes feoffset for <feoffset>, dx defines the x offset of the filter input graphic.
... value <number>
default value 0 animatable yes glyphref warning: as of svg2 <glyphref> is deprecated and shouldn't be used.
...And 4 more matches
dy - SVG: Scalable Vector Graphics
value list of <length>
default value none animatable yes fedropshadow for <fedropshadow>, dy defines the y offset of the dropped shadow.
... value <number>
default value 2 animatable yes feoffset for <feoffset>, dy defines the y offset of the filter input graphic.
... value <number>
default value 0 animatable yes glyphref warning: as of svg2 <glyphref> is deprecated and shouldn't be used.
...And 4 more matches
pathLength - SVG: Scalable Vector Graphics
value <number>
default value none animatable yes ellipse for <ellipse>, pathlength lets authors specify a total length for the ellipse, in user units.
... value <number>
default value none animatable yes line for <line>, pathlength lets authors specify a total length for the line, in user units.
... value <number>
default value none animatable yes path for <path>, pathlength lets authors specify a total length for the path, in user units.
...And 4 more matches
<tspan> - SVG: Scalable Vector Graphics
value type: <length>|<percentage> ;
default value: none; animatable: yes y the y coordinate of the starting point of the text baseline.
... value type: <length>|<percentage> ;
default value: none; animatable: yes dx shifts the text position horizontally from a previous text element.
... value type: <length>|<percentage> ;
default value: none; animatable: yes dy shifts the text position vertically from a previous text element.
...And 4 more matches
querystring - Archive of obsolete content
globals functions stringify(fields, separator, assignment) serializes an object containing name:value pairs into a query string: querystring.stringify({ foo: 'bar', baz: 4 }); // => 'foo=bar&baz=4' by
default '&' and'=' are used as separator and assignment characters, but you can override this using additional optional parameters: querystring.stringify({ foo: 'bar', baz: 4 }, ';', ':'); // => 'foo:bar;baz:4' parameters fields : object the data to convert to a query string.
...by
default this is "&".
...by
default this is "=".
...And 3 more matches
The Box Model - Archive of obsolete content
it's an invisible rectangular container with no styling at all (divs may have some
default styling, though).
...an hbox is oriented horizontally by
default, meaning that its child nodes are displayed next to each other from left to right.
... a vbox is oriented vertically by
default, its child nodes displayed one below the other from top to bottom.
...And 3 more matches
Setting up an extension development environment - Archive of obsolete content
to quickly achieve our task of creating just a developer profile, we will start the application with the parameters: /path/to/firefox -no-remote -p profilename without these parameters, the
default behavior of your mozilla applications is to only open the everyday user profile: named
default.
...(linux, mac os x, windows instructions.) you'll see the list of available user profiles one which is
default (stable) and other (unstable) profile(s) created automatically when you run other versions of firefox earlier.
... choose
default and uncheck "don't ask at startup" checkbox.
...And 3 more matches
Promises - Archive of obsolete content
* @optional * * @return {promise<jsonstore>} */ function jsonstore(name,
default_={}) { return task.spawn(function* () { // determine the correct path for the file.
... let addon = yield aom.getaddonbyid(addon_id); let dir = yield addon.getdatadirectory(); this.path = os.path.join(dir, name + ".json"); // read the file's contents, or fall back to
defaults.
... try { this.data = json.parse( yield os.file.read(this.path, { encoding: "utf-8" })); } catch (e if e.becausenosuchfile) { this.data = json.parse(json.stringify(
default_)); } // create a saver to write our json-stringified data to our // path, at 1000ms minimum intervals.
...And 3 more matches
Migrate apps from Internet Explorer to Mozilla - Archive of obsolete content
the first div will have a width of 40px, since it uses units, but the second div won't get a width, and thus will
default to 100% width.
... returnvalue prevent
default() used to prevent the event's
default action from occurring.
...mozilla
defaults to using css for the generated markup.
...And 3 more matches
confirm - Archive of obsolete content
defaults to "confirm" (or the localized equivalent).
...itle_cancel: a 'cancel' button button_title_yes: a 'yes' button button_title_no: a 'no' button button_title_save: a 'save' button button_title_dont_save: a 'don't save' button button_title_revert: a 'revert' button button_title_is_string: custom title specified by the corresponding abuttonxtitle parameter other constants button_pos_0_
default: specifies button 0 as the
default button.
... unless specified otherwise, this is the
default.
...And 3 more matches
PopupEvents - Archive of obsolete content
<panel id="time-panel" onpopupshowing="this.lastchild.value = (new date()).tolocaleformat('%t')"> <label value="time:"/> <label id="time"/> </panel> <toolbarbutton label="show time" popup="time-panel"/> you can prevent a menu or popup from appearing by calling the prevent
default method of the event from within a popupshowing listener.
... the
default operation of the popupshowing event is to continue showing the popup.
... the prevent
default method will stop this from happening and the popup will not be opened.
...And 3 more matches
Positioning - Archive of obsolete content
default positioning of popups a top level menu popup is, by
default, placed with the upper edge of the popup flush with the lower edge of the menu or button it is associated with.
... a submenu, however, is placed by
default to the right of the parent menu item, such that the top edge of the menu is aligned with the top edge of the parent menu item.
... for popups attached using the popup or context attributes, the
default position to appear is with the upper left corner (or upper right corner in right to left locales) at the position where the mouse was clicked.
...And 3 more matches
Complete - Archive of obsolete content
it uses this name as the
default file name throughout.
... where you see a url in the code with no file name, the application uses this
default file name and an extension appropriate for the type of file expected.
... install.js installation script for seamonkey chrome directory containing the extension code chrome/allcustom.jar the extension jar
defaults/preferences directory containing a preferences file inside the jar there are three directories: content xul, javascript and other content that does not depend on the locale or theme locale files for each locale skin files for each theme version checks firefox etc.
...And 3 more matches
Using Remote XUL - Archive of obsolete content
we set this value to the mozilla.org home page by
default so that page loads into the iframe when we first load the xul document.
...without it, the iframe's size would be a fixed
default and wouldn't change when the user resized their window.
...-writing-guidelines.html" /> </menupopup> </menu> <menu label="tools"> <menupopup> <menuitem label="view source" value="https://lxr.mozilla.org/seamonkey/" /> <menuitem label="tree status" value="https://tinderbox.mozilla.org/showbuilds.cgi?tree=seamonkey" /> <menuitem label="new checkins" value="https://bonsai.mozilla.org/cvsquery.cgi?treeid=
default&..." /> <menuitem label="submit a bug" value="https://bugzilla.mozilla.org/" /> </menupopup> </menu> <button label="faq" value="https://www.mozilla.org/faq.html" /> <button label="search" value="https://www.mozilla.org/search.html" /> </menubar> <iframe src="https://www.mozilla.org/" flex="1" /> </window> the menupopup elemen...
...And 3 more matches
Specifying Startup Chrome Window - Archive of obsolete content
main chrome window in order to specify the main chrome window of your xulrunner application, you'll need to add a preferences file to your application directory structure and add a preference named toolkit.
defaultchromeuri to that file.
...it's directory structure is as follows: xulmine ├───chrome ├───components └───
defaults └───preferences in
defaults/preferences, there is a file named xulmine.js.
... its contents are: pref("toolkit.
defaultchromeuri", "chrome://xulmine/content/xulmine.xul"); the toolkit.
defaultchromeuri preference specifies that the xul window at chrome://xulmine/content/xulmine.xul is the main application window.
...And 3 more matches
Extentsions FAQ - Archive of obsolete content
these two links should give you a starting point: http://www..xulplanet.com/tutorials/...u/advmenu.html http://www.xulplanet.com/tutorials/x...dommodify.html request for a thunderbird extension that can automatically detect the
default domain when composing e-mails via autodetect.
... <https://bugzilla.mozilla.org/show_bug.cgi?id=312818> "thunderbird requires domain in addresses and doesn't always add
default" there is an extension that allows what you want attached to one of the comments in this bug.
...use the dom api (http://www.w3schools.com/dom/
default.asp has a good tutorial).
...And 3 more matches
XForms Input Element - Archive of obsolete content
the
default value is 'false'.
...representations the xforms input element can be represented by the following widgets for the spcified data types (or types derived from these data types): text field - the
default widget when no type is specified or the data is of type xsd:string (xhtml/xul) checkbox - used for xsd:boolean instance data.
...text field displaying a text field is the
default presentation.
...And 3 more matches
Images, media, and form elements - Learn web development
this means that it has a size in both the horizontal (x) and vertical (y) dimensions, and will be displayed using the intrinsic dimensions of the file by
default.
...for example, in a flex or grid layout elements are stretched by
default to fill the entire area.
...just keep in mind that replaced elements, when they become part of a grid or flex layout, have different
default behaviors, essentially to avoid them being stretched strangely by the layout.
...And 3 more matches
Styling tables - Learn web development
unfortunately, it doesn't look good when rendered on the screen (see it live at punk-bands-unstyled.html): with only the
default browser styling it looks cramped, hard to read, and boring.
... link the css to the html by placing the following line of html inside your <head>: <link href="style.css" rel="stylesheet" type="text/css"> spacing and layout the first thing we need to do is sort out the spacing/layout —
default table styling is so cramped!
...: 3px solid purple; } thead th:nth-child(1) { width: 30%; } thead th:nth-child(2) { width: 20%; } thead th:nth-child(3) { width: 15%; } thead th:nth-child(4) { width: 35%; } th, td { padding: 20px; } the most important parts to note are as follows: a table-layout value of fixed is generally a good idea to set on your table, as it makes the table behave a bit more predictably by
default.
...And 3 more matches
Flexbox - Learn web development
this is because the
default values given to flex items (the children of the flex container) are set up to solve common problems such as this.
... flexbox provides a property called flex-direction that specifies what direction the main axis runs in (what direction the flexbox children are laid out in) — by
default this is set to row, which causes them to be laid out in a row in the direction your browser's
default language works in (left to right, in the case of an english browser).
... by
default, the value is stretch, which stretches all flex items to fill the parent in the direction of the cross axis.
...And 3 more matches
Beginner's guide to media queries - Learn web development
note: media types are optional; if you do not indicate a media type in your media query then the media query will
default to being for all media types.
... if we know the user cannot hover, we could display some interactive features by
default.
...this means that you probably don't need to do a lot of layout for small devices — order your source well and you will have a readable layout by
default.
...And 3 more matches
Normal Flow - Learn web development
prerequisites: the basics of html (study introduction to html), and an idea of how css works (study introduction to css.) objective: to explain how browsers layout web pages by
default, before we begin to make changes.
... how are elements laid out by
default?
... by
default, a block level element's content is 100% of the width of its parent element, and as tall as its content.
...And 3 more matches
CSS FAQ - Learn web development
how do i restore the
default value of a property?
... initially css didn't provide a "
default" keyword and the only way to restore the
default value of a property is to explicitly re-declare that property.
... for example: /* heading
default color is black */ h1 { color: red; } h1 { color: black; } this has changed with css 2; the keyword initial is now a valid value for a css property.
...And 3 more matches
Styling lists - Learn web development
tbread.</dd> <dt>halloumi</dt> <dd>a semi-hard, unripened, brined cheese with a higher-than-usual melting point, usually made from goat/sheep milk.</dd> <dt>green salad</dt> <dd>that green healthy stuff that many of us just use to garnish kebabs.</dd> </dl> if you go to the live example now and investigate the list elements using browser developer tools, you'll notice a couple of styling
defaults: the <ul> and <ol> elements have a top and bottom margin of 16px (1em) and a padding-left of 40px (2.5em.) the list items (<li> elements) have no set
defaults for spacing.
...the
default value is outside, which causes the bullets to sit outside the list items, as seen above.
...ished example, we have styled the unordered list like so (on top of what you've already seen above): ul { padding-left: 2rem; list-style-type: none; } ul li { padding-left: 2rem; background-image: url(star.svg); background-position: 0 0; background-size: 1.6rem 1.6rem; background-repeat: no-repeat; } here we've done the following: set the padding-left of the <ul> down from the
default 40px to 20px, then set the same amount on the list items.
...And 3 more matches
How to build custom form controls - Learn web development
.select .active, .select:focus { outline: none; /* this box-shadow property is not exactly required, however it's imperative to ensure active state is visible, especially to keyboard users, that we use it as a
default value.
... .select { /* the computations are made assuming 1em == 16px which is the
default value in most browsers.
...izing : border-box; height : 100%; width : 2em; padding-top : .1em; border-left : .2em solid #000; border-radius: 0 .1em .1em 0; background-color : #000; color : #fff; text-align : center; } next, let's style the list of options: .select .optlist { z-index : 2; /* we explicitly said the list of options will always be on top of the down arrow */ /* this will reset the
default style of the ul element */ list-style: none; margin : 0; padding: 0; box-sizing : border-box; /* if the values are smaller than the control, the list of options will be as wide as the control itself */ min-width : 100%; /* in case the list is too long, its content will overflow vertically (which will add a vertical scrollbar automatically) but never horizontally (b...
...And 3 more matches
Index - Learn web development
you can then collaborate on code projects, and the system is open-source by
default, meaning that anyone in the world can find your github code, use it, learn from it, and improve on it.
...you should understand that
default css avoids making overflowing content invisible.
... 148 normal flow beginner, css, layout, learn, float, grid, normal flow now that you understand normal flow, and how the browser lays things out by
default, move on to understand how to change this
default display to create the layout needed by your design.
...And 3 more matches
Introduction to events - Learn web development
preventing
default behavior sometimes, you'll come across a situation where you want to prevent an event from doing what it does by
default.
...if they are, we call the prevent
default() function on the event object — which stops the form submission — and then display an error message in the paragraph below our form to tell the user what's wrong: const form = document.queryselector('form'); const fname = document.getelementbyid('fname'); const lname = document.getelementbyid('lname'); const para = document.queryselector('p'); form.onsubmit = function(e) { if (fname.valu...
...e === '' || lname.value === '') { e.prevent
default(); para.textcontent = 'you need to fill in both names!'; } } obviously, this is pretty weak form validation — it wouldn't stop the user validating the form with spaces or numbers entered into the fields, for example — but it is ok for example purposes.
...And 3 more matches
Third-party APIs - Learn web development
in this case we specify the coordinates of the center of the map, a map layer of type map to show (created using the mapquest.tilelayer() method), and the
default zoom level.
... adding different controls the map has a number of different controls available; by
default it just shows a zoom control.
... you can expand the controls available using the map.addcontrol() method; add this to your code, inside the window.onload handler: map.addcontrol(l.mapquest.control()); the mapquest.control() method just creates a simple full-featured control set, and it is placed in the top-right hand corner by
default.
...And 3 more matches
Server-side web frameworks - Learn web development
the field definitions may also specify their maximum size,
default values, selection list options, help text for documentation, label text for forms etc.
...the team_level is a choice field, so we also provide a mapping between choices to be displayed and data to be stored, along with a
default value.
... #list our other teams ) team_level = models.charfield(max_length=3,choices=team_levels,
default='u11') the django model provides a simple query api for searching the database.
...And 3 more matches
Getting started with Ember - Learn web development
a note on todomvc and accessibility the todomvc project has a few issues in terms of adhering to accessible/
default web practices.
... there are a couple of github issues open about this on the todomvc family of projects: add keyboard access to demos re-enable outline on focusable elements ember has a strong commitment to being accessible by
default and there is an entire section of the ember guides on accessibility on what it means for website / app design.
...(good suggestions are your "desktop" or "documents" directories, so that it is easy to find): ember new todomvc or, on windows: npx ember-cli new todomvc this generates a production-ready application development environment that includes the following features by
default: development server with live reload.
...And 3 more matches
Ember resources and troubleshooting - Learn web development
for framework-specific things, there is the ember-inspector add-on, which allows inspection of: routes & controllers components services promises data (i.e: from a remote api — from ember-data, by
default) deprecation information render performance for general javascript debugging, check out our guides on javascript debugging as well as interacting with the browser's other debugging tools.
... in any
default ember project, there will be two main javascript files, vendor.js and {app-name}.js.
...note that sourcemaps are enabled by
default.
...And 3 more matches
Command line crash course - Learn web development
linux/unix as hinted at above, linux/unix systems have a terminal available by
default, listed among your applications.
...you could stick with the
default command prompt (cmd), and many tools will work ok, but you’ll find everything easier if you have better parity with unix tools.
...all the operating systems (assuming a
default setup) will launch their terminal program in your "home" directory, and from there you’re likely to want to move to a different place.
...And 3 more matches
Package management basics - Learn web development
type the following command, making sure you are inside the parcel-experiment directory: npm init you will now be asked some questions; npm will then create a
default package.json file based on the answers: name: a name to identify the app.
... just press return to accept the
default parcel-experiment.
... version: the starting version number for the app: again, just press return to accept the
default 1.0.0.
...And 3 more matches
Accessibility API cross-reference
no
default semantics in html, but semantics and other accessibility features may be provided with aria.
... a line that splits 2 areas from each other separator (either in menu or splits panes) separator (in menu only) separator separator <hr> adjust in increments from min to max values slider slider slider slider <input type=range> a system sound sound n/a n/a n/a no
default semantics in html, but semantics and other accessibility features may be provided with aria.
... see also div n/a n/a n/a <span> span kind of like a dial, but controls the value in a related field spinbutton n/a n/a spinbutton uneditable text statictext label label see aria-readonly the text nodes of html elements are uneditable by
default, apart from <input type=text>, or those with a contenteditable attribute entire status bar.
...And 3 more matches
Gecko info for Windows accessibility vendors
if it is role_pane or role_document then this should be treated as a document for the
default modality of the screen reader.
... iaccessible methods that we support: get_accparent get_accchildcount get_accchild get_accname get_accvalue get_accdescription get_accrole get_accstate get_accfocus get_acc
defaultaction acclocation accselect acchittest accdo
defaultaction accnavigate get_acckeyboardshortcut msaa support: iaccessible events and unique id's what msaa events do we support?
... enum { navrelation_
default_button = 0x100d }; when used within an html form or a xul dialog, the navrelation_
default_button relation will return the iaccessible for the
default button.
...And 3 more matches
Accessible Toolkit Checklist
default tab order should be in document order.
...[important, but no need to implement up/down/left/right] accdo
defaultaction: perform the action described by get_acc
defaultaction.
...eader flag to xml/scripts so that apps can alter behavior use system highlight color where possible for item selection, but never use that exact color in more than 1 place at a time, otherwise screen reader will read everything with that color whenever highlight changes pay attention to spi_getcaretwidth for the correct width of the caret pay attention to 'route mouse pointer to
default button' setting it's possible that the user wants mnemonics hidden except when the alt key is pressed.
...And 3 more matches
HTTP logging
go to the "logging section" adjust the location of the log file if you don't like the
default adjust the list of modules that you want to log: this list has the exact same format as the moz_log environment variable (see below).
... generally the
default list is ok, unless a mozilla developer has told you to modify it.
...2:5,nssockettransport:5,nshostresolver:5,cookie:5 set moz_log_file=%temp%\log.txt "c:\program files\mozilla firefox\firefox.exe" for 32-bit windows: set moz_log=timestamp,rotate:200,nshttp:5,cache2:5,nssockettransport:5,nshostresolver:5,cookie:5 set moz_log_file=%temp%\log.txt "c:\program files (x86)\mozilla firefox\firefox.exe" (these instructions assume that you installed firefox to the
default location, and that drive c: is your windows startup disk.
...And 3 more matches
Eclipse CDT Manual Setup
however, its
default formats are not a good match to mozilla's style rules.
...however, you may still want to tweak those settings if you'll be editing other file types in eclipse.) select "c/c++ > editor" and set "workspace
default" to "doxygen".
...select the "builder settings" tab, untick "use
default build command", set the build command to "just-print-mozilla-build.py" or, if you're on mac, to "bash -l -c 'just-print-mozilla-build.py'" (on mac eclipse doesn't seem to pick up the environment properly, so it's necessary to invoke just-print-mozilla-build.py indirectly through bash).
...And 3 more matches
Mozilla Port Blocking
by
default, mozilla now blocks access to specific ports which are used by vulnerable services in order to prevent security vulnerabilites due to "cross-protocol scripting".
..."access to the port number given has been disabled for security reasons." "establishing a connection to an unsafe or otherwise banned port was prohibited" "0x804b0013 (ns_error_port_access_not_allowed)" if your product or web site uses a port which is blocked by mozilla's
default port blocking rules, you can either change the port of your service to a unblocked value (recommended if possible) or ask your mozilla users to enable the port.
...modifying mozilla's port blocking at run time users can modify the
default port blocking through the addition of preferences containing comma delimited lists of port numbers to the user.js file (for single users with the user_pref(…) command) in the user's profile directory.
...And 3 more matches
Profiling with the Firefox Profiler
tip: threads that are annotated with "[
default]" are in the parent (aka "ui", aka "browser chrome", aka "main") process and those annotated with "[tab]" are in the web content (aka "child") processes.
...in this case, we have the 'geckomain [
default]' process' main thread, a content process' main thread, and the main thread of the compositor process.
...so, for example, when a thread is blocked, like 'geckomain [tab]', on a thread like 'geckomain [
default]', we can see what's occurring on the latter thread that is preventing it from responding to the former.
...And 3 more matches
AsyncTestUtils extended framework
the following is a list of frequently used attributes where the
default value is listed after the attribute name.
...note that the
default is subject to change, so if you want 10, say 10, instead of relying on the
default.
...the
default is that every message is its own thread; no message is a reply to any other message.
...And 3 more matches
NSS 3.12.5 release_notes
all ssl/tls renegotiation is disabled by
default in nss 3.12.5.
... this
default setting can also be changed within the application by using the following existing api functions: secstatus ssl_optionset(prfiledesc *fd, print32 option, prbool on) secstatus ssl_optionset
default(print32 option, prbool on) there is now a new value for "option", which is: ssl_enable_renegotiation the corresponding new values for ssl_enable_renegotiation are: ...
...ssl_renegotiate_never: never renegotiate at all (
default).
...And 3 more matches
NSS 3.35 release notes
notable changes in nss 3.35 previously, nss used the dbm file format by
default.
... starting with version 3.35, nss uses the sql file format by
default.
... below, are explanations that could be helpful for environments that need to adopt to the new
default.
...And 3 more matches
NSS functions
d later ssl_authcertificatehook mxr 3.2 and later ssl_badcerthook mxr 3.2 and later ssl_certdbhandleset mxr 3.2 and later ssl_canbypass mxr 3.11.7 and later ssl_cipherpolicyget mxr 3.2 and later ssl_cipherpolicyset mxr 3.2 and later ssl_cipherprefget mxr 3.2 and later ssl_cipherprefget
default mxr 3.2 and later ssl_cipherprefset mxr 3.2 and later ssl_cipherprefset
default mxr 3.2 and later ssl_clearsessioncache mxr 3.2 and later ssl_configmpserversidcache mxr 3.2 and later ssl_configsecureserver mxr 3.2 and later ssl_configserversessionidcache mxr 3.2 and later ssl_datapending mxr...
...nd later ssl_getstatistics mxr 3.2 and later ssl_handshakecallback mxr 3.2 and later ssl_importfd mxr 3.2 and later ssl_inheritmpserversidcache mxr 3.2 and later ssl_invalidatesession mxr 3.2 and later ssl_localcertificate mxr 3.4 and later ssl_optionget mxr 3.2 and later ssl_optionget
default mxr 3.2 and later ssl_optionset mxr 3.2 and later ssl_optionset
default mxr 3.2 and later ssl_peercertificate mxr 3.2 and later ssl_preencryptedfiletostream mxr 3.2 and later ssl_preencryptedstreamtofile mxr 3.2 and later ssl_rehandshake mxr 3.2 and later ssl_rehandshakewithtimeout mxr 3.
... function name/documentation source code replacement in nss 3.2 ssl_enable mxr ssl_optionset ssl_enablecipher mxr ssl_cipherprefset
default ssl_enable
default mxr ssl_optionset
default ssl_redohandshake mxr ssl_rehandshake ssl_setpolicy mxr ssl_cipherpolicyset certificate functions the public functions listed here are used to interact with certificate databases.
...And 3 more matches
SpiderMonkey Build Documentation
to generate a compile_commands.json with the spidermonkey configure script, enable the compiledb backend, like this: /bin/sh ../configure.in <options> --enable-build-backends=compiledb,recursivemake (recursivemake is there as you'd likely also want to be able to build!) windows builds since version 28, threadsafe builds are the
default, and should work out of the box on all posix platforms.
...4.a \ c:/mozilla-build/msys/local/lib/libplds4.a \ c:/mozilla-build/msys/local/lib/libplc4.a" if you get symbol loading or dynamic library errors, you can force the correct nspr to load with: path="$path;c:/mozilla-build/msys/local/lib/" ./js specifying installation directories make install puts files in the following directories by
default.
... building spidermonkey as a static library by
default, spidermonkey builds as a shared library.
...And 3 more matches
JS_PropertyStub
default implementations of the required callbacks in jsclass.
...it behaves exactly like a property callback that accepts the
default property behavior: it does nothing and returns true.
...it behaves exactly like a property callback that accepts the
default property behavior: it does nothing and returns true.
...And 3 more matches
Places Developer Guide
bookmarks.
default_index, // the position of the bookmark in its parent folder.
... bookmarks.
default_index); // the position of the new folder in its parent folder.
... bookmarks.
default_index); // the position of the separator in its parent folder.
...And 3 more matches
Querying Places
the
defaults for these objects will result in a query that returns all of your browser history in a flat list: chromeutils.definemodulegetter(this, "placesutils", "resource://gre/modules/placesutils.jsm"); // no query options set will get all history, sorted in database order, // which is nsinavhistoryqueryoptions.sort_by_none.
... results_as_uri: this is the
default, and returns one result node of type result_type_uri for each uri that matches the query.
... for sorting, you will generally want to use sort_by_none (the
default) since this will return items in their "natural" order as specified by the user in the bookmarks manager.
...And 3 more matches
Using the Places favicon service
otherwise, nsifaviconservice.setandloadfaviconforpage() will use the
default expiration time.
... currently, the
default expiration time is set to one day in the future.
...if the page has no favicon, or we have never heard of the page, this function will return a "chrome:" uri of the
default favicon.
...And 3 more matches
nsIEditorSpellCheck
wstring getpersonaldictionaryword(); wstring getsuggestedword(); 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 save
defaultdictionary(); obsolete since gecko 9.0 void setcurrentdictionary(in astring dictionary); void setfilter(in nsitextservicesfilter filter); void uninitspellchecker(); void updatecurrentdictionary(); methods addwordtodictionary() adds the specified word to the current personal dictionary.
... save
defaultdictionary() obsolete since gecko 9.0 (firefox 9.0 / thunderbird 9.0 / seamonkey 2.6)this feature is obsolete.
...saves the currently selected dictionary as the
default.
...And 3 more matches
nsILoadGroup
defaultloadrequest nsirequest accesses the
default load request for the group.
... each time a number of requests are added to a group, the
defaultloadrequest may be set to indicate that all of the requests are related to a base request.
... the load group inherits its load flags from the
default load request.
...And 3 more matches
nsIMsgIncomingServer
acstring oldname, in acstring newname); void performbiff(in nsimsgwindow amsgwindow); void performexpand(in nsimsgwindow amsgwindow); void removefiles(); void setboolattribute(in string name, in boolean value); void setboolvalue(in string attr, in boolean value); void setcharattribute(in string name, in acstring value); void setcharvalue(in string attr, in acstring value); void set
defaultlocalpath(in nsilocalfile a
defaultlocalpath); void setfilevalue(in string relpref, in string abspref, in nsilocalfile avalue); void setfilterlist(in nsimsgfilterlist afilterlist); void setintattribute(in string name, in long value); void setintvalue(in string attr, in long value); void setunicharattribute(in string name, in astring value); void setunicharvalue(in string attr, in astrin...
... biffminutes long biffstate unsigned long canbe
defaultserver boolean read only.
...
defaultcopiesandfoldersprefstoserver boolean if the server supports fcc/sent/etc,
default prefs can point to the server.
...And 3 more matches
nsIMsgProtocolInfo
method overview long get
defaultserverport(in boolean issecure); attributes attribute type description candelete boolean true if an account of this type may be deleted.
...
defaultdobiff boolean true if the biff should be enabled by
default for the account type.
...
defaultlocalfilepath nsilocalfile the
default path under which all server data for this account type will be stored.
...And 3 more matches
nsIPrintingPrompt
windows: the gfx layer no longer supports
default toolkit behavior for displaying the native print dialog.
...
defaults for platform service: showprintdialog - displays a native dialog showpagesetup() - displays a xul dialog showprogress() - displays a xul dialog summary for windows embedders: stated once again: there is no "fallback" native platform support in gfx for the displaying of the native print dialog.
... the current
default implementation for windows display a native print dialog but a xul-based progress dialog.
...And 3 more matches
nsIXPConnect
obsolete since gecko 2.0 void get
defaultsecuritymanager(out nsixpcsecuritymanager amanager, out pruint16 flags); nsixpcfunctionthistranslator getfunctionthistranslator(in nsiidref aiid); jsobjectptr getjsobjectofwrapper(in jscontextptr ajscontext, in jsobjectptr ajsobj); [noscript, notxpcom] nsisupports getnativeofwrapper(in jscontextptr ajscontext, in jsobjectptr ajsobj); void getsecuritymanagerfor...
... void set
defaultsecuritymanager(in nsixpcsecuritymanager amanager, in pruint16 flags); nsixpcfunctionthistranslator setfunctionthistranslator(in nsiidref aiid, in nsixpcfunctionthistranslator atranslator); void setreportalljsexceptions(in boolean reportalljsexceptions); void setsafejscontextforcurrentthread(in jscontextptr cx); void setsecuritymanagerforjscontext(in jscontextp...
... return value missing description exceptions thrown missing exception missing description get
defaultsecuritymanager() void get
defaultsecuritymanager( out nsixpcsecuritymanager amanager, out pruint16 flags ); parameters amanager missing description flags missing description exceptions thrown missing exception missing description getfunctionthistranslator() nsixpcfunctionthistranslator getfunctionthistranslator( in nsiidref aiid ); parameters aiid missing description ...
...And 3 more matches
nsIAbCard/Thunderbird3
birthyear, birthmonth, birthday webpage1 (work), webpage2 (home) custom1, custom2, custom3, custom4 notes integral properties: lastmodifieddate popularityindex prefermailformat (see nsiabprefermailformat) boolean properties: allowremotecontent inherits from: nsiabitem method overview nsivariant getproperty(in autf8string name, in nsivariant
defaultvalue); [noscript] astring getpropertyasastring(in string name); [noscript] autf8string getpropertyasautf8string(in string name); [noscript] pruint32 getpropertyasuint32(in string name); [noscript] boolean getpropertyasbool(in string name); void setproperty(in autf8string name, in nsivariant value); [noscript] void setpropertyasastring(in strin...
... nsivariant getproperty(in autf8string name, in nsivariant
defaultvalue); parameters name the case-sensitive name of the property to get.
...
defaultvalue the value to return if the property does not exist.
...And 3 more matches
Using Objective-C from js-ctypes
it uses the
default system voice and waits until the speaking is done.
... let objc_msgsend_id = lib.declare("objc_msgsend", ctypes.
default_abi, id, id, sel, "..."); let objc_msgsend_bool = lib.declare("objc_msgsend", ctypes.
default_abi, bool, id, sel, "..."); let objc_msgsend_void = lib.declare("objc_msgsend", ctypes.
default_abi, ctypes.void_t, id, sel, "..."); the first two cases are both integers (including pointer), so we c...
... let objc_msgsend = lib.declare("objc_msgsend", ctypes.
default_abi, id, id, sel, "..."); declaring a dedicated function for bool might be more efficient, directly getting the primitive value.
...And 3 more matches
CSS Grid Inspector: Examine grid layouts - Firefox Developer Tools
grid display settings: display line numbers: turn the line numbers shown for each grid overlay on and off (on by
default).
... display area names: turn area names on and off, in the case of grids with named grid areas (on by
default, where relevant).
... extend lines infinitely: by
default, grid lines/tracks are only shown inside the element with display: grid set on it; when toggling this option on, the grid lines extend to the edge of the viewport along each axis.
...And 3 more matches
Console messages - Firefox Developer Tools
this is not shown by
default: you can opt to see timestamps by selecting show timestamps in the console settings menu (gear icon in the console toolbar).
... by
default, the console is cleared each time you navigate to a new page or reload the current page.
... message categories network network log messages are not shown by
default.
...And 3 more matches
Document.execCommand() - Web APIs
syntax document.execcommand(acommandname, ashow
defaultui, avalueargument) return value a boolean that is false if the command is unsupported or disabled.
... ashow
defaultui a boolean indicating whether the
default user interface should be shown.
...(not supported by internet explorer.)
defaultparagraphseparator changes the paragraph separator used when new paragraphs are created in editable text regions.
...And 3 more matches
Element: auxclick event - Web APIs
bubbles yes cancelable yes interface mouseevent event handler property onauxclick preventing
default actions for the vast majority of browsers that map middle click to opening a link in a new tab, including firefox, it is possible to cancel this behavior by calling prevent
default() from within an auxclick event handler.
... when listening for auxclick events originating on elements that do not support input or navigation, you will often want to explicitly prevent other
default actions mapped to the down action of the middle mouse button.
...this can be done by preventing the
default behaviour of the mousedown or pointerdown event.
...And 3 more matches
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.
... center:
default.
...And 3 more matches
Event.returnValue - Web APIs
the event property returnvalue indicates whether the
default action for this event has been prevented or not.
... it is set to true by
default, allowing the
default action to occur.
... setting this property to false prevents the
default action.
...And 3 more matches
HTMLInputElement.stepDown() - Web APIs
the method, when invoked, decrements the value by (step * n), where n
defaults to 1 if not specified, and step
defaults to the
default value for step if not specified.
...mytime.step(), with no parameter, would have resulted in 16:45, as n
defaults to 1.
...the
default value for the parameter, if not is passed, is 1.
...And 3 more matches
HTMLInputElement.stepUp() - Web APIs
the htmlinputelement.stepup() method increments the value of a numeric type of <input> element by the value of the step attribute, or the
default step value if the step attribute is not explicitly set.
... the method, when invoked, increments the value by (step * n), where n
defaults to 1 if not specified, and step
defaults to the
default value for step if not specified.
... input type
default step value example step declaration date 1 (day) 7 day (one week) increments: <input type="date" min="2019-12-25" step="7"> month 1 (month) 12 month (one year) increments: <input type="month" min="2019-12" step="12"> week 1 (week) two week increments: <input type="week" min="2019-w23" step="2"> time 60 (seconds) 900 second (15 minute) increments: <input type="time" min="09:00" step="900"> datetime-local 1 (day) same day of the week: <input type="datetime-local" min="019-12-25t19:30" step="7"> number 1 0.1 increments <input type="number" min="0" step="0.1" max="10"> range 1 increments by 2: <input type="range" min="0" step="2" max=...
...And 3 more matches
HTMLMarqueeElement - Web APIs
if no value is specified, the
default value is scroll.
...if no value is specified, the
default value is left.
...if no value is specified, the
default value is −1, which means the marquee will scroll continuously.
...And 3 more matches
HTMLOutputElement - Web APIs
htmloutputelement.
defaultvalue a domstring representing the
default value of the element, initially the empty string.
... modes this element behaves in one of two modes:
default mode and value mode.
...
default mode initially, the element is in
default mode, and so the contents of the element represent both the value of the element and its
default value.
...And 3 more matches
Using IndexedDB - Web APIs
by
default this flag is not set.
...by
default, where no mode is specified, transactions open in readonly mode.
...a more subtle point here is that the
default behavior of an error is to abort the transaction in which it occurred.
...And 3 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.
...
defaults and variables first we have the
default constraint sets, as strings.
... let video
defaultconstraintstring = '{\n "width": 320,\n "height": 240,\n "framerate": 30\n}'; let audio
defaultconstraintstring = '{\n "samplesize": 16,\n "channelcount": 2,\n "echocancellation": false\n}'; these
defaults ask for a pretty common camera configuration, but don't insist on any property being of special importance.
...And 3 more matches
MutationObserverInit - Web APIs
the
default value is false.
...the
default value is false.
...the
default value is true if either of attributefilter or attributeoldvalue is specified, otherwise the
default value is false.
...And 3 more matches
ReadableStream.ReadableStream() - Web APIs
the controller parameter passed to this method is a readablestream
defaultcontroller or a readablebytestreamcontroller, depending on the value of the type property.
...the controller parameter passed to this method is a readablestream
defaultcontroller or a readablebytestreamcontroller, depending on the value of the type property.
...if it is not included, the passed controller will be a readablestream
defaultcontroller.
...And 3 more matches
WebGLRenderingContext.vertexAttribPointer() - Web APIs
if you are using webgl 2, you can specify the index yourself in the vertex shader code and override the
default used by the graphics card, e.g.
...
default attribute values the vertex shader code may include a number of attributes, but we don't need to specify the values for each attribute.
... instead, we can supply a
default value that will be identical for all vertices.
...And 3 more matches
Web audio spatialization basics - Web APIs
the
default values for these work well: listener.forwardx.value = 0; listener.forwardy.value = 0; listener.forwardz.value = -1; listener.upx.value = 0; listener.upy.value = 1; listener.upz.value = 0; the forward properties represent the 3d coordinate position of the listener's forward direction (e.g.
...we can set this to: equalpower — the
default and the general way panning is figured out hrtf — this stands for 'head-related transfer function' and looks to take into account the human head when figuring out where the sound is.
...by
default, both are 360 degrees.
...And 3 more matches
Web Authentication API - Web APIs
browser calls authenticatormakecredential() on authenticator - internally, the browser will validate the parameters and fill in any
defaults, which become the authenticatorresponse.clientdatajson.
... browser calls authenticatorgetcredential() on authenticator - internally, the browser will validate the parameters and fill in any
defaults, which become the authenticatorresponse.clientdatajson.
... // sample arguments for registration var createcredential
defaultargs = { publickey: { // relying party (a.k.a.
...And 3 more matches
Using the Web Speech API - Web APIs
generally, the
default speech recognition system available on the device will be used for the speech recognition — most modern oses have a speech recognition system for issuing voice commands.
...but it is not needed for this simple demo, so we are just specifying one (which is actually the
default anyway.) recognition.grammars = speechrecognitionlist; recognition.continuous = false; recognition.lang = 'en-us'; recognition.interimresults = false; recognition.maxalternatives = 1; starting the speech recognition after grabbing references to the output <div> and the html element (so we can output diagnostic messages and update the app background color later on), we implement an onclick han...
... firefox os 2.5+ supports it, by
default, and without the need for any permissions.
...And 3 more matches
XRRenderStateInit - Web APIs
this is null by
default.
...this is 1000 meters (1 kilometer) by
default.
...this is 0.1 meters (10 centimeters) by
default.
...And 3 more matches
Alternative style sheets - CSS: Cascading Style Sheets
for example: <link href="reset.css" rel="stylesheet" type="text/css"> <link href="
default.css" rel="stylesheet" type="text/css" title="
default style"> <link href="fancy.css" rel="alternate stylesheet" type="text/css" title="fancy"> <link href="basic.css" rel="alternate stylesheet" type="text/css" title="basic"> in this example, the styles "
default style", "fancy", and "basic" will be listed in the page style submenu, with "
default style" pre-selected.
... preferred (no rel="alternate", with title="..." specified): applied by
default, but disabled if an alternate stylesheet is selected.
... alternate (rel="alternate stylesheet", title="..." must be specified): disabled by
default, can be selected.
...And 3 more matches
Linear-gradient Generator - CSS: Cascading Style Sheets
width: 420px; margin: 0; border: 1px solid #ddd; background-color: #fff; display: table; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .ui-color-picker .picking-area { width: 198px; height: 198px; margin: 5px; border: 1px solid #ddd; position: relative; float: left; display: table; } .ui-color-picker .picking-area:hover { cursor:
default; } /* hsv format - hue-saturation-value(brightness) */ .ui-color-picker .picking-area { background: url("images/picker_mask.png"); background: -moz-linear-gradient(bottom, #000 0%, rgba(0, 0, 0, 0) 100%), -moz-linear-gradient(left, #fff 0%, rgba(255, 255, 255, 0) 100%); background: -webkit-linear-gradient(bottom, #000 0%, rgba(0, 0, 0, 0) 100%), -webkit-linear-gradient(left, #fff 0%,...
...eight: 150%; } /* button */ #controls .button { height: 24px; padding: 0 10px; background-color: #379b4a; border-radius: 3px; font-size: 14px; color: #fff; display: inline; float: left; } #controls .button[data-state='disabled'] { background-color: #ccc !important; color: #777 !important; } #controls .button[data-state='disabled']:hover { background-color: #ccc !important; cursor:
default !important; } #controls .button:hover { cursor: pointer; background-color: #208b20; } /* active point */ .ui-input-slider { height: 24px; line-height: 20px; } #delete-point { margin: 0 58px 0 0; float: right !important; } #controls .ui-color-picker[data-topic="picker"] { margin: 20px 0 0 0; } #controls .ui-input-slider[data-topic="axis-rotation"] { } #controls .ui-dropdown { width...
... getprecision, createslider : createslider, }; })(); /** * ui-slidersmanager */ var slidermanager = (function slidermanager() { 'use strict'; var subscribers = {}; var sliders = []; function trackmouse(elem, callback, startfunc, endfunc) { startfunc = startfunc || function(e) {}; endfunc = endfunc || function(e) {}; elem.addeventlistener('mousedown', function(e) { e.prevent
default(); startfunc(e); document.addeventlistener('mousemove', callback); document.addeventlistener('mouseup', function up(e) { document.removeeventlistener('mousemove', callback); document.removeeventlistener('mouseup', up); endfunc(e); }); }); elem.addeventlistener('click', function(e) { e.stoppropagation(); }); } var slider = function(node) { var topic = node.g...
...And 3 more matches
font-size - CSS: Cascading Style Sheets
al values */ font-size: inherit; font-size: initial; font-size: unset; the font-size property is specified in one of the following ways: as one of the absolute-size or relative-size keywords as a <length> or a <percentage>, relative to the parent element's font size values xx-small, x-small, small, medium, large, x-large, xx-large, xxx-large absolute-size keywords, based on the user's
default font size (which is medium).
... note: to maximize accessibility, it is generally best to use values that are relative to the user's
default font size.
...if you haven't set the font size anywhere on the page, then it is the browser
default, which is often 16px.
...And 3 more matches
HTML attribute: min - HTML: Hypertext Markup Language
if omitted, <input type="number">, any integer is valid, but floats, like 4.2, are not valid, as step
defaults to 1.
...in both cases, if omitted, the value
defaults to 1.
... syntax for min values for other elements input type syntax example <meter> <number> <meter id="fuel" min="0" max="100" low="33" high="66" optimum="80" value="40"> at 40/100</meter> impact on step the value of min and step define what are valid values, even if the step attribute is not included, as step
defaults to 0.
...And 3 more matches
HTML attribute reference - HTML: Hypertext Markup Language
autocapitalize global attribute sets whether input is automatically capitalized when entered by user autocomplete <form>, <input>, <select>, <textarea> indicates whether controls in this form can by
default have their values automatically completed by the browser.
...
default <track> indicates that the track should be enabled unless the user's preferences indicate something different.
...can be get (
default) or post.
...And 3 more matches
<img>: The Image Embed element - HTML: Hypertext Markup Language
auto
default: no preference for the decoding mode.
... 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).
...this is the
default if no policy is otherwise specified.
...And 3 more matches
<input type="image"> - HTML: Hypertext Markup Language
there are three permitted values: application/x-www-form-urlencoded this, the
default value, sends the form data as a string after url encoding the text using an algorithm such as encodeuri().
...this is the
default value.
...this is the
default value used if none is specified.
...And 3 more matches
<input type="time"> - HTML: Hypertext Markup Language
you can set a
default value for the input by including a valid time in the value attribute when creating the <input> element, like so: <label for="appt-time">choose an appointment time: </label> <input id="appt-time" type="time" name="appt-time" value="13:30"> you can also get and set the date value in javascript using the htmlinputelement.value property, for example: var timecontrol = document.queryselector('in...
...only values which are equal to the basis for stepping (min if specified, value otherwise, and an appropriate
default value if neither of those is provided) are valid.
...the
default value of step is 60, indicating 60 seconds (or 1 minute, or 60,000 milliseconds).
...And 3 more matches
<input type="url"> - HTML: Hypertext Markup Language
id placeholder an exemplar value to display in the input field whenever it is empty readonly a boolean attribute indicating whether or not the contents of the input should be read-only size a number indicating how many characters wide the input field should be spellcheck controls whether or not to enable spell checking for the input field, or if the
default spell checking configuration should be used list the values of the list attribute is the id of a <datalist> element located in the same document.
...the value must be a number greater than zero, and the
default value is 20.
... "" (empty string) or no value follow the element's
default behavior for spell checking.
...And 3 more matches
Using Feature Policy - HTTP
if you do not specify a policy for a feature, then a
default allowlist will be used.
... the
default allowlist is specific to each feature.
... features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
...And 3 more matches
Feature Policy - HTTP
these policies restrict what apis the site can access or modify the browser's
default behavior for certain features.
... examples of what you can do with feature policy: change the
default behavior of autoplay on mobile and third party videos.
...if you do not specify a policy for a feature, then a
default allowlist will be used.
...And 3 more matches
The arguments object - JavaScript
for example: let listhtml = list('u', 'one', 'two', 'three'); /* listhtml is: "<ul><li>one</li><li>two</li><li>three</li></ul>" */ rest,
default, and destructured parameters the arguments object can be used in conjunction with rest,
default, and destructured parameters.
... function foo(...args) { return args; } foo(1, 2, 3); // [1, 2, 3] while the presence of rest,
default, or destructured parameters does not alter the behavior of the arguments object in strict mode code, there are subtle differences for non-strict code.
... in strict-mode code, the arguments object behaves the same whether or not a function is passed rest,
default, or destructured parameters.
...And 3 more matches
Functions - JavaScript
to return a value other than the
default, a function must have a return statement that specifies the value to return.
... a function without a return statement will return a
default value.
... in the case of a constructor called with the new keyword, the
default value is the value of its this parameter.
...And 3 more matches
Media - Progressive web apps (PWAs)
this css (below) removes the navigation area when printing the document: @media print { #nav-area {display: none;} } some common media types are: screen color device display print printed paged media projection projected display all all media (the
default) more details there are other ways to specify the media type for a set of rules.
...for example, the mozilla browser supplies
default margins, headers, and footers for printing.
...place your mouse over the items in this list to see the actual pointer shapes in your browser: selector selects pointer indicating a link wait indicating that the program cannot accept input progress indicating that the program is working, but can still accept input
default the
default (usually an arrow) an outline property creates an outline that is often used to indicate keyboard focus.
...And 3 more matches
Mobile first - Progressive web apps (PWAs)
this article offers some related ideas, looking at the concept of mobile first — the practice of designing a website so that the
default layout/configuration is for mobile devices, and layouts and features for desktop browsers are then layered on top of that
default.
... first things first — mobile as a
default you may think that concentrating on the mobile experience first sounds pointless, as we are more used to dealing with desktop sites, and we surely need to consider the full gamut of features for the overall experience across desktop, mobile, etc., before then paring it down to a mobile experience that is simpler, more streamlined, or whatever.
... this rings true, yes, but in our experience mobile first is more about having the mobile implementation as a
default layer to build on.
...And 3 more matches
<mask> - SVG: Scalable Vector Graphics
value type: <length> ;
default value: 120%; animatable: yes maskcontentunits this attribute defines the coordinate system for the contents of the <mask>.
... value type: userspaceonuse|objectboundingbox ;
default value: userspaceonuse; animatable: yes maskunits this attribute defines defines the coordinate system for attributes x, y, width and height on the <mask>.
... value type: userspaceonuse|objectboundingbox ;
default value: objectboundingbox; animatable: yes x this attribute defines the x-axis coordinate of the top-left corner of the masking area.
...And 3 more matches
<use> - SVG: Scalable Vector Graphics
value type: <url> ;
default value: none; animatable: yes xlink:href an <iri> reference to an element/fragment that needs to be duplicated.
... value type: <iri> ;
default value: none; animatable: yes x the x coordinate of the use element.
... value type: <coordinate> ;
default value: 0; animatable: yes y the y coordinate of the use element.
...And 3 more matches
SVG documentation index - SVG: Scalable Vector Graphics
it
defaults to the baseline with the same name as the computed value of the alignment-baseline property.
... 49 contentscripttype deprecated, svg, svg attribute the contentscripttype attribute specifies the
default scripting language for the given document fragment on the <svg> element.
...it also indicates the
default alignment baseline of any boxes participating in baseline alignment in the box’s alignment context.
...And 3 more matches
<xsl:stylesheet> - XSLT: Extensible Stylesheet Language Transformations
default-collation specifies the
default collation used by all xpath expressions appearing in attributes or text value templates that have the element as an ancestor, unless overridden by another
default-collation attribute on an inner element.
...
default-mode defines the
default value for the mode attribute of all <xsl:template> and <xsl:apply-templates> elements within its scope.
...
default-validation defines the
default value of the validation attribute of all relevant instructions appearing within its scope.
...And 3 more matches
Interacting with page scripts - Archive of obsolete content
by
default, content scripts loaded by add-ons and scripts loaded by web pages are insulated from each other: content scripts can't interact directly with page scripts or access javascript objects they create page scripts can't interact directly with content scripts or access objects they create.
... communicating with page scripts there are two different ways a content script can communicate with a page script: using the dom postmessage() api using custom dom events using the dom postmessage api note that before firefox 31 code in content scripts can't use window to access postmessage() and addeventlistener() and instead must use document.
defaultview.
.../ listen.js window.addeventlistener('message', function(event) { console.log(event.data); // message from page script console.log(event.origin); }, false); postmessage() before firefox 31 if your add-on is running in a version of firefox before firefox 31, then your content script can't access the postmessage() or addeventlistener() apis using window, but must access them using document.
defaultview instead.
...And 2 more matches
Content Scripts - Archive of obsolete content
jpm doesn't make a "data" directory by
default, so you must add it and put your content scripts in there.
...jpm doesn't make a "data" directory by
default, so you must add it and put your content scripts in there.
... the
default value is "end".
...And 2 more matches
Getting Started (jpm) - Archive of obsolete content
for now, just press enter to accept the
default for each property.
... once you've supplied a value or accepted the
default for these properties, you'll be shown the complete contents of "package.json" and asked to accept it.
...lowing code: var buttons = require('sdk/ui/button/action'); var tabs = require("sdk/tabs"); var button = buttons.actionbutton({ id: "mozilla-link", label: "visit mozilla", icon: { "16": "./icon-16.png", "32": "./icon-32.png", "64": "./icon-64.png" }, onclick: handleclick }); function handleclick(state) { tabs.open("http://www.mozilla.org/"); } note that "entry point"
defaults to "index.js" in jpm, meaning that your main file is "index.js", and it is found directly in your add-on's root.
...And 2 more matches
Chapter 4: Using XPCOM—Implementing advanced processes - Archive of obsolete content
on windows vista, it will be located at c:\users\username\appdata\roaming\mozilla\firefox\profiles\random number.
default\ ; on windows xp or 2000, it will be c:\documents and settings\username\application data\mozilla\firefox\profiles\random number.
default\ ; on linux, it will be ~/.mozilla/firefox/random number.
default/ ; on mac os x, it will be ~/library/application support/firefox/profiles/random number.
default/ in the interests of security, delete these lines from prefs.js after finishing these tests.
... note that firefox itself and its extensions have privileges set by
default after installation and registration.
... .createinstance(components.interfaces.nsifileinputstream); filestream.init(file, 1, 0, false); var converterstream = components.classes['@mozilla.org/intl/converter-input-stream;1'] .createinstance(components.interfaces.nsiconverterinputstream); converterstream.init(filestream, charset, filestream.available(), converterstream.
default_replacement_character); var out = {}; converterstream.readstring(filestream.available(), out); var filecontents = out.value; converterstream.close(); filestream.close(); alert(filecontents); outputting text files fixme: not sure this example is relevant in an english context, maybe something from the snippets listing 16 shows how to take text internally represented as unicode and output it to ...
...And 2 more matches
Setting Up a Development Environment - Archive of obsolete content
make is a
default tool in most unix-based systems.
...the "bash -c" part forces komodo to use bash, which for some reason can't be set properly as the
default command shell.
... you should also set up your environment so that xpidl.exe (or just xpidl on other systems) is in the
default executable path, and also add a variable called gecko_sdk, that points to your sdk build: export gecko_sdk=/path/to/your/sdk our build system should pick it up from there.
...And 2 more matches
Index of archived content - Archive of obsolete content
ustomizing the download progress bar delayed execution dialogs and prompts downloading files drag & drop embedding svg examples and demos from articles file i/o finding window handles forms related code snippets html in xul for rich tooltips html to dom is
defaultnamespace js xpcom javascript debugger service javascript timers javascript daemons management label and description lookupnamespaceuri lookupprefix miscellaneous modules on page load page loading po...
... xml-related code snippets xml:base support in old browsers xpath getattributens common pitfalls communication between html and your extension creating custom firefox extensions with the mozilla build system custom about: urls
default preferences deploying a plugin as an extension developing add-ons displaying web content in an extension without security issues downloading json and javascript in extensions enhanced extension installation extension etiquette extension library extension packaging extension samples extension themin...
...unner applications custom app bundles for mac os x debugging a xulrunner application deploying xulrunner dialogs in xulrunner getting started with xulrunner how to enable locale switching in a xulrunner application macfaq make your xulrunner app match the system locale opening a link in the
default browser specifying startup chrome window using crash reporting in a xulrunner application using ldap xpcom with xulrunner using soap in xulrunner 1.9 what xulrunner provides windows and menus in xulrunner xul application packaging xulrunner 1.8.0.1 release notes xulrunner 1.8.0.4 release no...
...And 2 more matches
Example Sticky Notes - Archive of obsolete content
ml public "-//w3c//dtd html 4.01//en" "http://www.w3.org/tr/html401/strict.dtd"> <html> <head> <title>xbl demo : sticky notes</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <style type="text/css"> body { background-color: #ffffff; color: #000000; font: 1em verdana, sans-serif; } h1 { font-size: 1.5em; } /* binding: */ .sticker { -moz-binding: url(notes.xml#
default); } </style> </head> <body> <h1><a href="http://developer.mozilla.org/en/docs/xbl:xbl_1.0_reference">xbl</a> demo : sticky notes</h1> <div class="sticker"><p>acme, inc.
... all namespaces above are supported by
default and they do not require any additional downloads or initializations.
... --> <binding id="
default"> <!-- a separate binding.
...And 2 more matches
Writing to Files - Archive of obsolete content
the
default character set is 'utf-8' but this can be changed using an additional, yet optional, argument to the newoutputstream method.
...the
default when writing is to create a new file when the file to write to does not exist, and replace the existing file if it does.
...writing text files characters are written to a text input stream using a specified character encoding, which
defaults to utf-8.
...And 2 more matches
Namespaces - Archive of obsolete content
there's only one other thing to know: "
default namespace".
... every xml element has a "
default namespace", and this is used with xul elements all the time.
...this signifies to the xml parser that http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul is the
default namespace for the element and its descendant elements (unless further overridden by a
default namespace on a descendant element), and that any element without a namespace (i.e., no prefix and colon) belongs to the
default namespace.
...And 2 more matches
MenuButtons - Archive of obsolete content
<toolbarbutton type="menu" image="cookies.png"> <menupopup> <menuitem label="block cookies" type="checkbox"/> <menuitem label="clear cookies"/> </menupopup> </toolbarbutton> the 'menu-button' button the 'menu-button' type of button is used when you want to attach a menu to a button but want to have a
default action carried out when the button is pressed by itself.
... this is accomplished by dividing the button into two parts, one with the label and image to carry out the
default command and the second to show the menu.
... you might want to set the first item in the example above as the
default button, so it indicates to the user that the command is carried out when the main button is pressed.
...And 2 more matches
Adding Properties to XBL-defined Elements - Archive of obsolete content
this example isn't quite correct because the field is not assigned a
default value.
... to do this, add the
default value as the content of the field tag.
... for example: <field name="number"> 25 </field> this will assign the value 25 as the
default value of the number field.
...And 2 more matches
Adding Style Sheets - Archive of obsolete content
mozilla applies a
default style sheet to each xul window.
... in many cases, it will suffice to leave the
defaults as is.
...in mozilla, this will be translated as the file global.css, which contains
default style information for xul elements.
...And 2 more matches
Open and Save Dialogs - Archive of obsolete content
default directory and filters there are two features you can set of the dialog before it is displayed.
... the first is the
default directory that is displayed when the dialog is opened.
... you can set the
default directory by setting the displaydirectory property of the file picker object to a directory.
...And 2 more matches
Scroll Bars - Archive of obsolete content
the
default is horizontal, which creates a scroll bar that extends from left to right.
...the
default value is 0.
...the
default value is 100.
...And 2 more matches
Splitters - Archive of obsolete content
set this to open, the
default, to have the split panel initially open, or set it to collapsed to have one of the panels shrunk down (collapsed) and the other occupying all of the space.
...if you set this to none, which is also the
default, the splitter grippy does not collapse when clicked.
...the
default value is closest.
...And 2 more matches
window - Archive of obsolete content
it is by
default a horizontally oriented box.
...by
default, the window will have a platform-specific frame around it.
... to set an icon for the window, create a platform-specific icon file <windowid>.ico and/or <windowid>.xpm and place or install these files into the <mozilla-directory>/chrome/icons/
default/ directory.
...And 2 more matches
Getting started with XULRunner - Archive of obsolete content
here is the subfolder structure: + myapp/ | +-+ chrome/ | | | +-+ content/ | | | | | +-- main.xul | | | | | +-- main.js | | | +-- chrome.manifest | +-+
defaults/ | | | +-+ preferences/ | | | +-- prefs.js | +-- application.ini | +-- chrome.manifest notice that there are 5 files in the folder structure: application.ini, chrome.manifest (2), prefs.js, and main.xul.
...here is the chrome/chrome.manifest: content myapp content/ as mentioned in step 3, the
default location of the chrome.manifest has changed in xulrunner 2.0, so we also need a simple chrome.manifest in the application root which will include the the manifest in our chrome root.
...here is mine: pref("toolkit.
defaultchromeuri", "chrome://myapp/content/main.xul"); /* debugging prefs, disable these before you deploy your application!
...And 2 more matches
XULRunner tips - Archive of obsolete content
save the dom_inspector-*.xpi package to a temporary directory unzip the package copy the following files: chrome/inspector.jar to the chrome directory of your xulrunner application components/inspector-cmdline.js to your components directory
defaults/preferences/inspector.js to your preferences directory open your chrome.manifest file and add these lines: content inspector jar:inspector.jar!/content/inspector/ xpcnativewrappers=no locale inspector en-us jar:inspector.jar!/locale/inspector/ skin inspector modern/1.0 jar:inspector.jar!/skin/modern/inspector/ skin inspector ...
... making windows display correct application name and icon when buttons are grouped by
default, the task bar on windows might group windows belonging to the same process into one button to save space.
...entime", 4000); pref("alerts.height", 50); if you are missing preferences that a dialog requires, you will get the following errors: component returned failure code: 0x8000ffff (ns_error_unexpected) [nsiprefbranch.getboolpref] error: dialog has no properties source file: chrome://mozapps/content/downloads/u...ontenttype.xul line: 1 enabling password manager these preferences seem to be the
default in firefox, however, they are missing in xulrunner.
...And 2 more matches
Building a Theme - Archive of obsolete content
the remaining directories will be extracted from the
default theme.
...themes are compatible by
default, unless you set strict compatibility mode for your theme.
...this is why we copied the
default styles in the setup step.
...And 2 more matches
Theme changes in Firefox 2 - Archive of obsolete content
changes to the
default theme the table below lists all the changes made in the
default theme for firefox 2; you can use this information as a starting point for figuring out the changes you need to make.
...these look like this in the
default theme: the first icon (green here) indicates that an add-on has an update available.
...in the
default theme, these look something like this: the top row contains dimmed versions of the icons below them.
...And 2 more matches
The global XML object - Archive of obsolete content
the following example defines the foocount() method, which returns the amount of <foo> elements in the xml: xml.prototype.function::foocount = function foocount() { return this..foo.length(); }; <foobar><foo/><foo/><foo/></foobar>.foocount() // returns 3 ignorecomments true by
default.
... <bar/> </foo>; element.comments().length(); // returns 0 element.toxmlstring(); // returns <foo><bar/></foo> xml.ignorecomments = false; element = <foo> <!-- my comment --> <bar/> </foo>; element.comments().length(); // returns 1 element.toxmlstring(); // returns <foo><!-- my comment --><bar/></foo> ignoreprocessinginstructions true by
default.
... <?process x="false"?> </foo>; element.toxmlstring(); // returns <foo><bar/></foo> xml.ignoreprocessinginstructions = false; var element = <foo> <?process x="true"?> <bar/> <?process x="false"?> </foo>; element.toxmlstring(); // returns <foo><?process x="true"?><bar/><?process x="false"?></foo> ignorewhitespace true by
default.
...And 2 more matches
Building up a basic demo with A-Frame - Game development
the end result is 3d web experiences, which are vr-enabled by
default.
... a-frame takes care of setting up everything you need: a
default light source and camera are included, so the cube is visible.
...add this just before the closing </a-scene> element: <a-camera position="0 1 4" cursor-visible="true" cursor-scale="2" cursor-color="#0095dd" cursor-opacity="0.5"> </a-camera> we've also defined a cursor for the given camera, using the cursor-* attributes (by
default it is invisible.) — we've set its scale so it will more easily visible, its color, and some opacity so it won't completely covering the objects behind it.
...And 2 more matches
Building up a basic demo with Three.js - Game development
there are a few different renderers: webgl is the
default, and others you can use are canvas, svg, css, and dom.
...the setclearcolor() method sets our background to a light gray colour, instead of the
default black one.
...the
default value is 50.
...And 2 more matches
Visual typescript game engine - Game development
appuseaccountssystem: boolean = false; networking is disabled by
default.
... * @property drawreference * @type string */ private drawreference: string = "frame"; /** * aspectratio
default value, can be changed in run time.
... *
default value is 12034 */ private rtcserverport: number = 12034; /** * connectorport is access port used to connect * session web socket.
...And 2 more matches
Index - MDN Web Docs Glossary: Definitions of Web-related terms
for example, <p> is by
default a block-level element, whereas <a> is an inline element — you can put several links next to one another in your html source and they will sit on the same line as one another in the rendered output.
... 167 gaia boot2gecko, firefox os, gaia, glossary, infrastructure, intro the user interface and
default application suite of the firefox os platform.
...by
default, the browser uses a single thread to run all the javascript in your page, as well as to perform layout, reflows, and garbage collection.
...And 2 more matches
Practical positioning examples - Learn web development
general setup to begin with, add the following between your opening and closing <style> tags: html { font-family: sans-serif; } * { box-sizing: border-box; } body { margin: 0; } this is just some general setup to set a sans-serif font on our page, use the border-box box-sizing model, and get rid of the
default <body> margin.
...first, add the following rule at the bottom of your css to remove the
default padding-left and margin-top from the unordered list: .info-box ul { padding-left: 0; margin-top: 0; } note: we are using descendant selectors with .info-box at the start of the chain throughout this example — this is so that we can insert this feature into a page with other content already on it, without fear of interfering with the styles applied to other parts of the page.
... the second rule we'll add here makes it so that a panel with a class of active-panel set on it will have a z-index of 1 applied to it, which will make it sit above the other panels (positioned elements have a z-index of 0 by
default, which would put them below).
...And 2 more matches
Client-side form validation - Learn web development
note how the invalid input gets focus, a
default error message ("please fill out this field") appears, and the form is prevented from being sent.
...in the above example we've not included a step attribute, so the value
defaults to 1.
... } else { // if there is still an error, show the correct error showerror(); } }); form.addeventlistener('submit', function (event) { // if the email field is valid, we let the form submit if(!email.validity.valid) { // if it isn't, we display an appropriate error message showerror(); // then we prevent the form from being sent by canceling the event event.prevent
default(); } }); function showerror() { if(email.validity.valuemissing) { // if the field is empty // display the following error message.
...And 2 more matches
Getting started with HTML - Learn web development
on.value = 'show solution'; } updatecode(); }); var htmlsolution = '<em>this is my text.</em>'; 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(e){ if (e.keycode === 9) { e.prevent
default(); insertatcaret('\t'); } if (e.keycode === 27) { textarea.blur(); } }; function insertatcaret(text) { var scrollpos = textarea.scrolltop; var caretpos = textarea.selectionstart; var front = (textarea.value).substring(0, caretpos); var back = (textarea.value).substring(textarea.selectionend, textarea.value.length); textarea.value = front + text + back; caretpos = care...
...(the spacing is due to
default css styling that the browser applies to paragraphs.) note: html5 redefined the element categories: see element content categories.
...while the names correlate by
default, changing the css display type doesn't change the category of the element, and doesn't affect which elements it can contain and which elements it can be contained in.
...And 2 more matches
From object to iframe — other embedding technologies - Learn web development
18171785211" width="600" height="450" frameborder="0" style="border:0" allowfullscreen>\n</iframe>'; let 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(e){ if (e.keycode === 9) { e.prevent
default(); insertatcaret('\t'); } if (e.keycode === 27) { textarea.blur(); } }; function insertatcaret(text) { const scrollpos = textarea.scrolltop; const caretpos = textarea.selectionstart; const front = (textarea.value).substring(0, caretpos); const back = (textarea.value).substring(textarea.selectionend, textarea.value.length); textarea.value = front + text + back; caretpo...
... browsers that don't support iframes </a> </p> </iframe> this example includes the basic essentials needed to use an <iframe>: allowfullscreen if set, the <iframe> is able to be placed in fullscreen mode using the full screen api (somewhat beyond scope for this article.) frameborder if set to 1, this tells the browser to draw a border between this frame and other frames, which is the
default behaviour.
... note: github pages allow content to be served via https by
default, so is useful for hosting content.
...And 2 more matches
Ember interactivity: Events, classes and state - Learn web development
to create a header class to go with your header component, type this in to your terminal: ember generate component-class header this will create the following empty class file — todomvc/app/components/header.js: import component from '@glimmer/component'; export
default class headercomponent extends component { } inside this file we will implement the event handler code.
... update the content to the following: import component from '@glimmer/component'; import { action } from '@ember/object'; export
default class headercomponent extends component { @action onkeydown({ target, key }) { let text = target.value.trim(); let hasvalue = boolean(text); if (key === 'enter' && hasvalue) { alert(text); target.value = '' } } } the @action decorator is the only ember-specific code here (aside from extending from the component superclass, and the ember-specific items we are importing using javascript module syntax) — the rest of the file is vanilla javascript, and would work in any application.
...ce todo-data this should give you a terminal output like so: installing service create app/services/todo-data.js installing service-test create tests/unit/services/todo-data-test.js this creates a todo-data.js file inside the todomvc/app/services directory to contain our service, which initially contains an import statement and an empty class: import service from '@ember/service'; export
default class tododataservice extends service { } first of all, we want to define what a todo is.
...And 2 more matches
React interactivity: Editing, filtering, conditional rendering - Learn web development
first, import usestate into the todo component like we did before with the app component, by updating the first import statement to this: import react, { usestate } from "react"; we'll now use this to set an isediting state, the
default state of which should be false.
...">renaming {props.name}</span> </button> <button type="submit" classname="btn btn__primary todo-edit"> save <span classname="visually-hidden">new name for {props.name}</span> </button> </div> </form> ); const viewtemplate = ( <div classname="stack-small"> <div classname="c-cb"> <input id={props.id} type="checkbox"
defaultchecked={props.completed} onchange={() => props.toggletaskcompleted(props.id)} /> <label classname="todo-label" htmlfor={props.id}> {props.name} </label> </div> <div classname="btn-group"> <button type="button" classname="btn"> edit <span classname="visually-hidden">{props.name}</span> </button> <button ...
...to see the editing template, you will have to change the
default isediting state from false to true in your code for now; we will look at making the edit button toggle this in the next section!
...And 2 more matches
Beginning our React todo list - Learn web development
an classname="visually-hidden"> tasks</span> </button> </div> <h2 id="list-heading"> 3 tasks remaining </h2> <ul role="list" classname="todo-list stack-large stack-exception" aria-labelledby="list-heading" > <li classname="todo stack-small"> <div classname="c-cb"> <input id="todo-0" type="checkbox"
defaultchecked={true} /> <label classname="todo-label" htmlfor="todo-0"> eat </label> </div> <div classname="btn-group"> <button type="button" classname="btn"> edit <span classname="visually-hidden">eat</span> </button> <button type="button" classname="btn btn__danger"> delete <span c...
...setting a value of true means that the button is pressed by
default.
...a <ul> is treated like a list by
default, but the styles we're about to add will break that functionality.
...And 2 more matches
Starting our Svelte Todo list app - Learn web development
to get rid of this, remove the name prop from src/main.js; it should now look like so: import app from './app.svelte' const app = new app({ target: document.body }) export
default app now if you check your testing server url you'll see our todos.svelte component being rendered: adding static markup for the moment we will start with a static markup representation of our app, so you can see what it will look like.
...setting a value of true means that the button is pressed by
default.
...a <ul> is treated like a list by
default, but the styles we're about to add will break that functionality.
...And 2 more matches
TypeScript support in Svelte - Learn web development
for example, if you start adding an ms property to the alert component call, typescript will infer from the
default value that the ms property should be a number: and if you pass something that is not a number it will complain about it: the application template has a validate script configured that runs svelte-check against your code.
...ing the corresponding types, like so: export let ms = 3000 let visible: boolean let timeout: number const onmessagechange = (message: string, ms: number) => { cleartimeout(timeout) if (!message) { // hide alert if message is empty note: there's no need to specify the ms type with export let ms:number = 3000 because typescript is already inferring it from its
default value.
...you'll notice there are no warnings — typescript infers the type of the filter variable from the
default value.
...And 2 more matches
Introduction to automated testing - Learn web development
, on a command line, by navigating to the location you want and running the following command: mkdir node-test to make this directory an npm project, you just need to go inside your test directory and initialize it, with the following: cd node-test npm init this second command will ask you many questions to find out the information required to set up the project; you can just select the
defaults for now.
...inside this file, put the following: const gulp = require('gulp'); gulp.task('
default', function() { console.log('gulp running'); }); this requires the gulp module we installed earlier, and then runs a basic task that does nothing except for printing a message to the terminal — this is useful for letting us know that gulp is working.
... to use each plugin, you need to first install it via npm, then require any dependencies at the top of the gulpfile.js file, then add your test(s) to the bottom of it, and finally add the name of your task inside the
default task.
...And 2 more matches
The Firefox codebase: CSS Guidelines
omit units on 0 values do this: margin: 0; not this: margin: 0px; use expanded syntax it is often harder to understand what the shorthand is doing and the shorthand can also hide some unwanted
default values.
... writing cross-platform css firefox supports many different platforms and each of those platforms can contain many different configurations: windows 7, 8 and 10
default theme aero basic (windows 7, 8) windows classic (windows 7) high contrast (all versions) linux macos file structure the browser/ directory contains styles specific to firefox the toolkit/ directory contains styles that are shared across all toolkit applications (thunderbird and seamonkey) under each of those two directories, there is a themes directory containing 4 sub-dir...
... if not, as a last resort, using system colors also works for non-
default windows themes or linux.
...And 2 more matches
Obsolete Build Caveats and Tips
this note below seems redundant as this is true by
default https://msdn.microsoft.com/en-us/library/dh8che7s%28v=vs.110%29.aspx note: starting with gecko 7.0, you should no longer include "-zc:wchar_t-" in the command line when building on windows.
...by
default, a similar-to-release build is done.
...this also used to be necessary for building a
default gecko 1.9.2 through 8 with visual c++ express editions (see atlbase.h for more).
...And 2 more matches
Runtime Directories
default application installation and user profile directories firefox os application directory user profile directory temporary directory windows vista/7 c:\program files\mozilla firefox\ c:\users\<username>\appdata\roaming\mozilla\firefox\ (or %appdata%\mozilla\firefox\) c:\users\<username>\appdata\local\mozilla\firefox\ (or %localappdata%\mozilla\firefox) and c:\users\<username>\appdata\local\virtualstore\program files\mozilla firefox\ windows 2000/xp c:\program files\mozilla firefox\ c:\documents and settings\<username>\application data\mozilla\firefox\ (or %appdata%\mozilla\firefox\) c:\documents and settings\<username>\local settings\application data\mozilla\firefox\ os x /applications/firefox.app ~/...
...library/application support/firefox/profiles/xxxxxxxx.
default/ ~/library/caches/firefox/profiles/xxxxxxxx.
default/ linux ????
... ~/.mozilla/firefox/xxxxxxxx.
default/ n/d thunderbird os application directory user profile directory temporary directory windows vista/7 c:\program files\mozilla thunderbird\ c:\users\<username>\appdata\roaming\thunderbird\ (or %appdata%\thunderbird\) c:\users\<username>\appdata\local\thunderbird\ (or %localappdata%\thunderbird\) and c:\users\<username>\appdata\local\virtualstore\program files\mozilla thunderbird\ windows 2000/xp c:\program files\mozilla thunderbird\ c:\documents and settings\<username>\application data\thunderbird\ (or %appdata%\thunderbird\) c:\documents and settings\<username>\local settings\application data\thunderbird\ os x /applications/thunderbird.app ~/library/thunderbird/pro...
...And 2 more matches
mach
the
default mozconfig search logic is applied.
...$ cd objdir-firefox $ mach build adding mach to your shell's search path if you add mach to your path (by modifying the path environment variable to include your source directory, or by copying mach to a directory in the
default path like /usr/local/bin) then you can type mach anywhere in your source directory or your objdir.
... text encoding issues (especially on windows where latin-1 is not the
default system encoding).
...And 2 more matches
How to implement a custom autocomplete search component
the component uses the autocompletesearchparam attribute or searchparam property to allow the developer to define the
default directory otherwise only paths beginning with / or ~/ will be autocompleted.
...rce://gre/modules/xpcomutils.jsm'); const class_id = components.id('x753d830-ba1e-11e0-962b-0800200c9a66'); // ← change this const class_name = "basic autocomplete"; const contract_id = '@mozilla.org/autocomplete/search;1?name=basic-autocomplete'; /** * @constructor * * @implements {nsiautocompleteresult} * * @param {string} searchstring * @param {number} searchresult * @param {number}
defaultindex * @param {string} errordescription * @param {array.<string>} results * @param {array.<string>|null=} comments */ function providerautocompleteresult(searchstring, searchresult,
defaultindex, errordescription, results, comments) { this._searchstring = searchstring; this._searchresult = searchresult; this._
defaultindex =
defaultindex; this._errordescription = errordescription; ...
...this._results = results; this._comments = comments; } providerautocompleteresult.prototype = { _searchstring: "", _searchresult: 0, _
defaultindex: 0, _errordescription: "", _results: [], _comments: [], /** * @return {string} the original search string */ get searchstring() { return this._searchstring; }, /** * @return {number} the result code of this result object, either: * result_ignored (invalid searchstring) * result_failure (failure) * result_nomatch (no matches found) * result_success (matches found) */ get searchresult() { return this._searchresult; }, /** * @return {number} the index of the
default item that should be entered if * none is selected */ get
defaultindex() { return this._
defaultin...
...And 2 more matches
API-provided widgets
possible types are button for simple button widgets (the
default) view for buttons that open a panel or subview, depending on where they are placed.
... tooltiptext string to use for the tooltip of the widget label string to use for the label of the widget removable whether the widget is removable (optional,
default: true).
... nb: if you specify false here, you must provide a
defaultarea, too.
...And 2 more matches
Download
launcherpath string local file path of the application to be used to launch the target file, or null if the file should be launched with the
default application associated with the contenttype property or the extension of the target file.
...the
default value is null before the download starts.
...the
default is false.
...And 2 more matches
Fonts for Mozilla's MathML engine
note:cambria math is installed by
default on windows 7 and later versions and should ensure relatively good mathml rendering.
... an enhancement request has been submitted to microsoft to install latin modern math and stix by
default.
...enhancement requests have been submitted to apple to ship opentype math fonts in the
default installation.
...And 2 more matches
Fonts for Mozilla 2.0's MathML engine
starting in gecko 13.0 (firefox 13.0 / thunderbird 13.0 / seamonkey 2.10), mathjax fonts are used as the
default fonts for mathematical text and symbol stretching.
...all the fonts mentioned above may already be installed by
default on your system or can easily be installed via your software manager.
... reset old preferences if users have previously changed the "font.mathfont-family" preference for a previous version of mozilla, then it is best to reset this to the
default value.
...And 2 more matches
Mozilla Web Developer FAQ
in the css2 box layout model the
default vertical sizing of layout boxes and the
default vertical alignment of images is different from the behavior of old browsers.
... in the standards mode and in the almost standards mode mozilla does not suppress the
default margins of the first and last child element in table cells.
... therefore, the
default margins for paragraphs apply even with markup such as <td><p>foo</p></td>.
...And 2 more matches
Productization guide
productization is the choice of ''
default'' search engines, content and protocol handlers, bookmarks, links to recommended sites on the in-product pages, etc.
...for example, a search provider can deliver a very good quality of search results — but only in a specific country or language, and we have to take this into account when considering
default search engines for a locale.
... hence there is a need to customize the set of
default web services on a per-locale basis in order to ensure a good user experience across all locales.
...And 2 more matches
L20n HTML Bindings
<link rel="localization" href="../locales/manifest.json"> an example of the manifest file (all keys are required): { "locales": [ "en-us", "pl"], "
default_locale": "en-us", "resources": [ "../locales/{{locale}}/strings.l20n", "/shared/{{locale}}/date.l20n"¨ ] } make html elements localizable use the data-l10n-id attribute on an html element to mark it as localizable.
...</p> the input element is not on the
default whitelist but since it's present in the source html, it is also allowed in the translation.
...it doesn't have any specific locale code (internally, it's called i-
default in compliance to rfc 2277).
...And 2 more matches
NSS_3.12_release_notes.html
ellia nss_camellia_cbc camellia_block_size new macros for rsa (see blapit.h): rsa_max_modulus_bits rsa_max_exponent_bits new macros in certt.h: x.509 v3 ku_encipher_only cert_max_serial_number_bytes cert_max_dn_bytes pkix cert_rev_m_do_not_test_using_this_method cert_rev_m_test_using_this_method cert_rev_m_allow_network_fetching cert_rev_m_forbid_network_fetching cert_rev_m_allow_implicit_
default_source cert_rev_m_ignore_implicit_
default_source cert_rev_m_skip_test_on_missing_source cert_rev_m_require_info_on_missing_source cert_rev_m_ignore_missing_fresh_info cert_rev_m_fail_on_missing_fresh_info cert_rev_m_stop_testing_on_fresh_info cert_rev_m_continue_testing_on_fresh_info cert_rev_mi_test_each_method_separately cert_rev_mi_test_all_local_information_first cert_rev_mi_no_overall_info_r...
... tls session ticket extension (off by
default) see ssl_enable_session_tickets in ssl.h new ssl error codes (see sslerr.h) ssl_error_unsupported_extension_alert ssl_error_certificate_unobtainable_alert ssl_error_unrecognized_name_alert ssl_error_bad_cert_status_response_alert ssl_error_bad_cert_hash_value_alert ssl_error_rx_unexpected_new_session_ticket ssl_error_rx_malformed_new_session_ticket new tls cipher suites (see sslproto.h): t...
...bug 407866: contributed improvement to security/nss/lib/freebl/mpi/mp_comba.c bug 410587: ssl_getchannelinfo returns secsuccess on invalid arguments bug 416508: fix a _msc_ver typo in sha512.c, and use sec_begin_protos/sec_end_protos in secport.h bug 419242: 'all' is not the
default makefile target in lib/softoken and lib/softoken/legacydb bug 419523: export cert_newtempcertificate.
...And 2 more matches
NSS 3.20 release notes
ssl_enableweakdheprimegroup - enable the use of weak dhe group parameters that are smaller than
default minimum size of the library.
... for backward compatibility reasons, the server side implementation of the tls library keeps all dhe ciphersuites disabled by
default.
... they can be enabled with the new socket option ssl_enable_server_dhe and the ssl_optionset or the ssl_optionset
default api.
...And 2 more matches
NSS API Guidelines
specifically, this library provides nss_init() for establishing
default certificate, key, module databases, and initializing a
default random number generator.
... the arena_threadmark preprocessor definition (
default in debug builds), and code it encloses, will add some checking for the following situation: thread a marks the arena, and allocates some memory from it.
...you can think of the heap as a
default arena you can't destroy.
...And 2 more matches
Python binding for NSS
many methods/functions provide sane
default (keyword) parameters freeing the python programmer from having to specify all parameters yet allowing them to be overriden when necessary.
...as of python 2.7 deprecation warnings are no longer reported by
default.
... the following module functions were added: ssl.get_ssl_version_from_major_minor ssl.get_
default_ssl_version_range ssl.get_supported_ssl_version_range ssl.set_
default_ssl_version_range ssl.ssl_library_version_from_name ssl.ssl_library_version_name ssl.get_cipher_suite_info ssl.ssl_cipher_suite_name ssl.ssl_cipher_suite_from_name the following deprecated module functions were removed: ssl.nssinit ssl.nss_i...
...And 2 more matches
Build instructions
default is debug, non-optimized build.
...
default is to build with the native compiler.
...
default is 32-bit abi, except on platforms that do not support a 32-bit abi.
...And 2 more matches
NSS tools : ssltab
-p port change the
default rendezvous port (1924) to another port.
...the simplest way to use the debugging tool is to execute the following command from a command shell: $ ssltap www.netscape.com the program waits for an incoming connection on the
default port 1924.
...this is because, by
default, the tool closes down after the first connection is complete, so the browser is not able to load images.
...And 2 more matches
NSS tools : ssltap
-p port change the
default rendezvous port (1924) to another port.
...the simplest way to use the debugging tool is to execute the following command from a command shell: $ ssltap www.netscape.com the program waits for an incoming connection on the
default port 1924.
...this is because, by
default, the tool closes down after the first connection is complete, so the browser is not able to load images.
...And 2 more matches
OLD SSL Reference
ssl, pkcs #11, and the
default security databases setting up the certificate and key databases setting up the ca db and certificate setting up the server db and certificate setting up the client db and certificate verifying the server and client certificates building nss programs chapter 3 selected ssl types and structures ...
... ssl initialization functions nss_init nss_initreadwrite nss_nodb_init ssl_optionset
default ssl_optionget
default ssl_cipherprefset
default ssl_cipherprefget
default ssl_clearsessioncache ssl_configserversessionidcache initializing multi-processing with a shared ssl server cache ssl_configmpserversidcache ssl_inheritmpserversidcache ...
...ssl_revealurl ssl_revealpinarg ssl handshake functions ssl_forcehandshake ssl_rehandshake ssl_resethandshake nss shutdown function nss_shutdown deprecated functions ssl_enable
default ssl_enable ssl_enablecipher ssl_setpolicy ssl_redohandshake chapter 5 certificate functions this chapter describes the functions and related types used to work with a certificate database such as the cert7.db database provided with communicator.
...And 2 more matches
NSS_3.12.3_release_notes.html
this was allowed by
default before nss 3.12.3.
... nss_use_decoded_cka_ec_point boolean (any non-empty value to enable) tells nss to send ec key points across the pkcs#11 interface in the non-standard unencoded format that was used by
default before nss 3.12.3.
...this behavior was the
default before nss 3.12.3.
...And 2 more matches
NSS Tools ssltap
-p port change the
default rendezvous port (1924) to another port.
...the simplest way to use the debugging tool is to execute the following command from a command shell: ssltap www.netscape.com:80 the program waits for an incoming connection on the
default port 1924.
...this is because, by
default, the tool closes down after the first connection is complete, so the browser is not able to load images.
...And 2 more matches
NSS tools : ssltap
-p port change the
default rendezvous port (1924) to another port.
...the simplest way to use the debugging tool is to execute the following command from a command shell: $ ssltap www.netscape.com the program waits for an incoming connection on the
default port 1924.
...this is because, by
default, the tool closes down after the first connection is complete, so the browser is not able to load images.
...And 2 more matches
JS_NewObject
js_newobject: if this is null, a
default prototype object is used.
... obsolete since jsapi 38 js_newobject now always uses a
default prototype object.
...if parent is null, a
default parent object is used.
...And 2 more matches
extIPreferenceBranch
method overview boolean has(in astring aname) extipreference get(in astring aname) nsivariant getvalue(in astring aname, in nsivariant a
defaultvalue) void setvalue(in astring aname, in nsivariant avalue) void reset() attributes attribute type description root readonly attribute astring the name of the branch root.
...returns a
default value if the preference does not exist.
... nsivariant getvalue(in astring aname, in nsivariant a
defaultvalue) parameters aname the name of a preference a
defaultvalue the
default value of a preference.
...And 2 more matches
XPCOM array guide
the objects must define a
default constructor and a copy constructor.
... ownership nsiarray xpcom object yes no no no reference counted, weak/strong nsimutablearray xpcom object yes no yes no reference counted, weak/strong nscomarray<t> xpcom object no yes yes* no reference counted, strong nstarray<t> any that has a
default constructor and copy constructor no yes yes* no can hold objects directly, in which case it owns them.
... nsautotarray<t,n> any that has a
default constructor and copy constructor no yes yes* yes can hold objects directly, in which case it owns them.
...And 2 more matches
An Overview of XPCOM
when a class inherits from another class, the inheriting class may override the
default behaviors of the base class without having to copy all of that class's code, in effect creating a more specific class, as in the following example: simple class inheritance class shape { private: int m_x; int m_y; public: virtual void draw() = 0; shape(); virtual ~shape(); }; class circle : public shape { private: int m_radius; public: virtual draw(); c...
...some methods such as addref and release do not return the
default return type.
... variable mappings nsrefcnt
default reference count type.
...And 2 more matches
nsIFilePicker
defaultextension astring the extension for the type of files you want to work with.
...
defaultstring astring the filename, including extension, that should be suggested to the user as a
default.
...set this to choose a particular filter to be selected by
default.
...And 2 more matches
nsIMacDockSupport
about dockmenu by
default firefox adds two menu items to the dock menu.
...this is created by using the dockmenu attribute of nsimacdocksupport here: http://mxr.mozilla.org/mozilla-release/source/browser/base/content/browser.js#1562 this is seen here: if you were to copy and follow that example you would replace the
default native menu.
...t.getelementbyid('mainpopupset'); mainpopupset.appendchild(macmenu); let dockmenuelement = macmenu; //document.getelementbyid("menu_mac_dockmenu");66 let nativemenu = cc["@mozilla.org/widget/standalonenativemenu;1"].createinstance(ci.nsistandalonenativemenu); console.log('dockmenuelement:', dockmenuelement); nativemenu.init(dockmenuelement); docksupport.dockmenu = nativemenu; this replaces the
default menu with this one menuitem that says "show most recent window".
...And 2 more matches
nsIMsgIdentity
johnnospam@doe.com organization astring optional organization composehtml boolean should we compose with html by
default?
... attachsignature boolean should we attach a signature by
default?
... attachvcard boolean should we attach a vcard by
default?
...And 2 more matches
nsINavHistoryQuery
the
default value is "-1", and in that case all items are matched regardless of their visit count.
...the
default value is "-1", and in that case all items are matched regardless of their visit count.
...when unset (
default), the uri will request an exact match of the specified uri.
...And 2 more matches
nsITaskbarPreviewButton
this is false by
default.
...this is true by
default.
...this is null by
default.
...And 2 more matches
nsITextInputProcessor
var do
default = tip.keydown(keyevent); when you dispatch keyup event, just do this: var keyevent = new keyboardevent("", { key: "a", code: "keya", keycode: keyboardevent.dom_vk_a }); var do
default = tip.keyup(keyevent); startcomposition(), flushpendingcomposition(), commitcomposition(), commitcompositionwith(), and cancelcomposition() can take a keyboardevent which causes modifying the composition state...
... key_
default_prevented 0x00000001 one of akeyflags.
... when this is specified,
defaultprevented attribute of dispatching keyboard events true.
...And 2 more matches
nsPIPromptService
this is the
default value of the first text field.
...this is the
default value of the second text field.
...this is the
default checkbox state and the result of it.
...And 2 more matches
Index
on window and mac, the cached compose window is on by
default.
... initially, the training.dat file is empty (there was discussion of shipping with a
default file) on spam detection, the user can choose to move spam to a special "junk" folder the user can configure junk mail can be automatically purged from the "junk" folder to analyze a message for spam, we need the entire message, not just the headers.
...the data will come from a custom header labeled x-superfluous 114 using mapi with thunderbird's windows 7 developer builds thunderbird debug, thunderbird mapi (messaging application programming interface) is a windows feature that allows applications to send files via a system's
default mail application.
...And 2 more matches
Using js-ctypes
os x /* build a str255 ("pascal style") string from the passed-in string */ function makestr(str) { return string.fromcharcode(str.length) + str; } components.utils.import("resource://gre/modules/ctypes.jsm"); var carbon = ctypes.open("/system/library/frameworks/carbon.framework/carbon"); stdalert = carbon.declare("standardalert", /* function name */ ctypes.
default_abi, /* abi type */ ctypes.int16_t, /* return type */ ctypes.int16_t, /* alert type */ ctypes.char.ptr, /* primary text */ ctypes.char.ptr, /* secondary text */ ctypes.uint32_t, /* alert param */ ctypes.int16...
...it uses the
default abi, returns a 16-bit integer (which is a carbon oserr value), and accepts an integer (the alert type), two strings, a pointer to a parameter block, which we aren't using, and another integer, which is used to return the hit item.
...apple.com/library/mac/documentation/corefoundation/reference/cfusernotificationref/index.html#//apple_ref/c/func/cfusernotificationdisplaynotice * sint32 cfusernotificationdisplaynotice ( * cftimeinterval timeout, * cfoptionflags flags, * cfurlref iconurl, * cfurlref soundurl, * cfurlref localizationurl, * cfstringref alertheader, * cfstringref alertmessage, * cfstringref
defaultbuttontitle * ); */ var cfusernotificationdisplaynotice = libcf.declare("cfusernotificationdisplaynotice", ctypes.
default_abi, sint32, // return cftimeinterval, // timeout cfoptionflags, // flags cfurlref, // iconurl cfurlref, // soundurl cfurlref, // localizationurl cfstringref, // alertheader cfstringref, // alertmessage cfstringref //
defaultbuttontitle ); /* https://...
...And 2 more matches
Index - Firefox Developer Tools
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: 34 index tools found 158 pages: 35 json viewer firefox includes a json viewer.
... 38 aggregate view before firefox 48, this was the
default view of a heap snapshot.
... after firefox 48, the
default view is the tree map view, and you can switch to the aggregate view using the dropdown labeled "view:": 39 basic operations before firefox 50, the memory tool is not enabled by
default.
...And 2 more matches
Examine and edit CSS - Firefox Developer Tools
to view user-agent styles (i.e., browser-
default css rules), enable "inspector > show browser styles" under the developer tool settings panel.
... strict search by
default, the search box highlights all declarations which contain any part of the string.
... clicking the arrow next to the property name (or pressing enter or space while it is selected) shows the rule that set this value, along with a link to the source filename and line number: by
default, this view only shows values that have been explicitly set by the page: to see all values, click the "browser styles" box.
...And 2 more matches
AudioWorkletProcessor() - Web APIs
defaults to 1.
...
defaults to 1.
...note that there are
default values for the first two properties, so even if there are no options object passed to the audioworkletnode constructor, the options object passed by the node to the audioworkletprocessor constructor will exist and at minimum have numberofinputs and numberofoutputs.
...And 2 more matches
CSS.registerProperty() - Web APIs
the css.registerproperty() method registers custom properties, allowing for property type checking,
default values, and properties that do or do not inherit their value.
... registering a custom property allows you to tell the browser how the custom property should behave; what are allowed types, whether the custom property inherits its value, and what the
default value of the custom property is.
...
defaults to "*".
...And 2 more matches
Using the CSS properties and values API - Web APIs
the css properties and values api — part of the css houdini umbrella of apis — allows the registration of css custom properties, allowing for property type checking,
default values, and properties that do or do not inherit their value.
... registering a custom property registering a custom property allows you to tell the browser how the custom property should behave; what are allowed types, whether the custom property inherits its value, and what the
default value of the custom property is.
... css.registerproperty the following will register a css custom properties, --my-prop, using css.registerproperty, as a color, give it a
default value, and have it not inherit its value: window.css.registerproperty({ name: '--my-prop', syntax: '<color>', inherits: false, initialvalue: '#c0ffee', }); @property the same registration can take place in css.
...And 2 more matches
Drawing shapes with canvas - Web APIs
to the right, you see this canvas with the
default grid overlayed.
...later in this tutorial we'll see how we can translate the origin to a different position, rotate the grid and even scale it, but for now we'll stick to the
default.
... arc(x, y, radius, startangle, endangle, anticlockwise) draws an arc which is centered at (x, y) position with radius r starting at startangle and ending at endangle going in the given direction indicated by anticlockwise (
defaulting to clockwise).
...And 2 more matches
Drawing text - Web APIs
function draw() { var ctx = document.getelementbyid('canvas').getcontext('2d'); ctx.font = '48px serif'; ctx.stroketext('hello world', 10, 50); } <canvas id="canvas" width="300" height="100"></canvas> draw(); styling text in the examples above we are already making use of the font property to make the text a bit larger than the
default size.
...the
default font is 10px sans-serif.
...the
default value is start.
...And 2 more matches
CustomEvent - Web APIs
event.
defaultprevented read only indicates whether or not the call to event.prevent
default() canceled the event.
...ideally, you should try to use event.prevent
default() and event.
defaultprevented instead, but you can use returnvalue if you choose to do so.
... event.prevent
default() cancels the event (if it is cancelable).
...And 2 more matches
DelayNode() - Web APIs
the
default is 0.
...
defaults to 1.
... desktopmobilechromeedgefirefoxinternet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetdelaynode() constructorchrome full support 55notes full support 55notes notes before version 59, the
default values were not supported.edge full support ≤79firefox full support 53ie no support noopera full support 42safari ?
...And 2 more matches
Element: cut event - Web APIs
bubbles yes cancelable yes interface clipboardevent event handler property oncut the event's
default action is to copy the current selection (if any) to the system clipboard and remove it from the document.
... a handler for this event can modify the clipboard contents by calling setdata(format, data) on the event's clipboardevent.clipboarddata property, and cancelling the
default action using event.prevent
default().
... note though that cancelling the
default action will also prevent the document from being updated.
...And 2 more matches
GlobalEventHandlers.onpointerdown - Web APIs
if the pointerdown event isn't canceled through a call to prevent
default(), most user agents will fire a mousedown event, so that sites not using pointer events will work.
... var targetbox = document.getelementbyid("target"); targetbox.onpointerdown = handledown; function handledown(evt) { var action; switch(evt.pointertype) { case "mouse": action = "clicking"; break; case "pen": action = "tapping"; break; case "touch": action = "touching"; break;
default: action = "interacting with"; break; } targetbox.innerhtml = "<strong>thanks for " + action + " me!</strong>"; evt.prevent
default(); } this simply uses onpointerdown to establish the function handledown() as the event handler for pointer down events.
... then the event's prevent
default() method is called to ensure that the mousedown event isn't triggered, potentially causing events to be handled twice if we had a handler for those events in case pointer event support is missing.
...And 2 more matches
HTML Drag and Drop API - Web APIs
define the drag image by
default, the browser supplies an image that appears beside the pointer during a drag operation.
... // note: change "example.gif" to a real image url or the image // will not be created and the
default drag image will be used.
... function dragstart_handler(ev) { ev.datatransfer.dropeffect = "copy"; } for more details, see: drag effects define a drop zone by
default, the browser prevents anything from happening when dropping something onto most html elements.
...And 2 more matches
Intersection Observer API - Web APIs
defaults to the browser viewport if not specified or if null.
...
defaults to all zeros.
...the
default is 0 (meaning as soon as even one pixel is visible, the callback will be run).
...And 2 more matches
KeyboardEvent.getModifierState() - Web APIs
if (event.getmodifierstate("control") + event.getmodifierstate("alt") + event.getmodifierstate("meta") > 1) { return; } // handle shortcut key with standard modifier if (event.getmodifierstate("accel")) { switch (event.key.tolowercase()) { case "c": if (event.getmodifierstate("shift")) { // handle accel + shift + c event.prevent
default(); // consume the key event } break; case "k": if (!event.getmodifierstate("shift")) { // handle accel + k event.prevent
default(); // consume the key event } break; } return; } // do somethig different for arrow keys if scrolllock is locked.
... if ((event.getmodifierstate("scrolllock") || event.getmodifierstate("scroll") /* hack for ie */) && !event.getmodifierstate("control") && !event.getmodifierstate("alt") && !event.getmodifierstate("meta")) { switch (event.key) { case "arrowdown": case "down": // hack for ie and old gecko event.prevent
default(); // consume the key event break; case "arrowleft": case "left": // hack for ie and old gecko // do something different if scrolllock is locked.
... event.prevent
default(); // consume the key event break; case "arrowright": case "right": // hack for ie and old gecko // do something different if scrolllock is locked.
...And 2 more matches
MessageEvent.MessageEvent() - Web APIs
this can be of any data type, and will
default to null if not specified.
...this
defaults to an empty string ("") if not specified.
...this
defaults to an empty string ("") if not specified.
...And 2 more matches
OscillatorNode.OscillatorNode() - Web APIs
if the
default values of the properties are acceptable, you can optionally use the audiocontext.createoscillator() factory method instead.
...any properties omitted from the object will take on the
default value as documented.
...the
default is 'sine'.
...And 2 more matches
OscillatorNode - Web APIs
its basic property
defaults (see audionode for definitions) are: number of inputs 0 number of outputs 1 channel count mode max channel count 2 (not used in the
default count mode) channel interpretation speakers constructor oscillatornode() creates a new instance of an oscillatornode object, optionally providing an object specifying
default values for the node's pro...
... if the
default values are acceptable, you can simply call the baseaudiocontext.createoscillator() factory method.
...the
default value is 440 hz (a standard middle-a note).
...And 2 more matches
Pointer events - Web APIs
mpare cached id with this event's id and process accordingly if (id == ev.identifier) process_id(ev); // call the appropriate pointer type handler switch (ev.pointertype) { case "mouse": process_mouse(ev); break; case "pen": process_pen(ev); break; case "touch": process_touch(ev); break;
default: console.log("pointertype " + ev.pointertype + " is not suported"); } // call the tilt handler if (ev.tiltx != 0 && ev.tilty != 0) process_tilt(ev.tiltx, ev.tilty); // call the pressure handler process_pressure(ev.pressure); // if this event is not primary, call the non primary handler if (!ev.isprimary) process_non_primary(ev); } fu...
...</div> </body> </html> touch-action css property the touch-action css property is used to specify whether or not the browser should apply its
default (native) touch behavior (such as zooming or panning) to a region.
... a value of auto means the browser is free to apply its
default touch behavior (to the specified region) and the value of none disables the browser's
default touch behavior for the region.
...And 2 more matches
ServiceWorkerContainer.register() - Web APIs
since a service worker can't have a scope broader than its own location, only use the scope option when you need a scope that is narrower than the
default.
...by
default, the scope value for a service worker registration is set to the directory where the service worker script is located.
... the following example uses the
default value of scope (by omitting it).
...And 2 more matches
TouchEvent - Web APIs
using with addeventlistener() and prevent
default() it's important to note that in many cases, both touch and mouse events get sent (in order to let non-touch-specific code still interact with the user).
... if you use touch events, you should call prevent
default() to keep the mouse event from being sent as well.
... the exception to this is chrome, starting with version 56 (desktop, chrome for android, and android webview), where the
default value for the passive option for touchstart and touchmove is true and calls to prevent
default() will have no effect.
...And 2 more matches
Multi-touch interaction - Web APIs
it also calls prevent
default() to keep the browser from applying further event handling (for example, mouse event emulation).
... ev.prevent
default(); // cache the touch points for later processing of 2-touch pinch/zoom if (ev.targettouches.length == 2) { for (var i=0; i < ev.targettouches.length; i++) { tpcache.push(ev.targettouches[i]); } } if (logevents) log("touchstart", ev, true); update_background(ev); } touch move handler the touchmove handler calls prevent
default() for the same reason mentioned above, and invokes the pinch/zoom handler.
... // ev.prevent
default(); if (logevents) log("touchmove", ev, false); // to avoid too much color flashing many touchmove events are started, // don't update the background if two touch points are active if (!(ev.touches.length == 2 && ev.targettouches.length == 2)) update_background(ev); // set the target element's border to dashed to give a clear visual // indication the element received a move event.
...And 2 more matches
self.createImageBitmap() - Web APIs
either none (
default) or flipy.
...one of none, premultiply, or
default (
default).
...either none or
default (
default).
...And 2 more matches
WritableStream.getWriter() - Web APIs
the getwriter() method of the writablestream interface returns a new instance of writablestream
defaultwriter and locks the stream to that instance.
... return value a writablestream
defaultwriter object instance.
...inside this function it calls the stream's getwriter() method, which returns an instance of writablestream
defaultwriter.
...And 2 more matches
Implementing a Microsoft Active Accessibility (MSAA) Server - Accessibility
get_acc
defaultaction: get a description or name of the
default action for this component, such as "jump" for links.
... accdo
defaultaction: perform the action described by get_acc
defaultaction.
...there's a very good chance they won't ask for more than the states marked [important]: state_unavailable [important] state_selected [important] state_focused [important] state_pressed state_checked [important] state_mixed state_readonly [important] state_hottracked state_
default [important] state_expanded [important] state_collapsed [important] state_busy [important] state_floating state_marqueed state_animated state_invisible state_offscreen [important] state_sizeable state_moveable state_selfvoicing state_focusable [important] state_selectable [important] state_linked [important] state_traversed [important] ...
...And 2 more matches
@namespace - CSS: Cascading Style Sheets
syntax /*
default namespace */ @namespace url(xml-namespace-url); @namespace "xml-namespace-url"; /* prefixed namespace */ @namespace prefix url(xml-namespace-url); @namespace prefix "xml-namespace-url"; description the defined namespaces can be used to restrict the universal, type, and attribute selectors to only select elements within that namespace.
... @namespace can be used to define the
default namespace for the style sheet.
... when a
default namespace is defined, all universal and type selectors (but not attribute selectors, see note below) apply only to elements in that namespace.
...And 2 more matches
all - CSS: Cascading Style Sheets
unset specifies that all the element's properties should be changed to their inherited values if they inherit by
default, or to their initial values if not.
... body { font-size: small; background-color: #f0f0f0; color:blue; } blockquote { background-color: skyblue; color: red; } the <blockquote> uses the browser's
default styling together with a specific background and text color.
... body { font-size: small; background-color: #f0f0f0; color:blue; } blockquote { background-color: skyblue; color: red; } blockquote { all: unset; } the <blockquote> doesn't use the browser
default styling: it is an inline element now (initial value), its background-color is transparent (initial value), but its font-size is still small (inherited value) and its color is blue (inherited value).
...And 2 more matches
font-family - CSS: Cascading Style Sheets
system-ui glyphs are taken from the
default user interface font on a given platform.
... ui-serif the
default user interface serif font.
... ui-sans-serif the
default user interface sans-serif font.
...And 2 more matches
overscroll-behavior-block - CSS: Cascading Style Sheets
/* keyword values */ overscroll-behavior-block: auto; /*
default */ overscroll-behavior-block: contain; overscroll-behavior-block: none; /* global values */ overscroll-behavior-block: inherit; overscroll-behavior-block: initial; overscroll-behavior-block: unset; syntax the overscroll-behavior-block property is specified as a keyword chosen from the list of values below.
... values auto the
default scroll overflow behavior occurs as normal.
... contain
default scroll overflow behavior is observed inside the element this value is set on (e.g.
...And 2 more matches
overscroll-behavior-inline - CSS: Cascading Style Sheets
/* keyword values */ overscroll-behavior-inline: auto; /*
default */ overscroll-behavior-inline: contain; overscroll-behavior-inline: none; /* global values */ overscroll-behavior-inline: inherit; overscroll-behavior-inline: initial; overscroll-behavior-inline: unset; syntax the overscroll-behavior-inline property is specified as a keyword chosen from the list of values below.
... values auto the
default scroll overflow behavior occurs as normal.
... contain
default scroll overflow behavior is observed inside the element this value is set on (e.g.
...And 2 more matches
overscroll-behavior-x - CSS: Cascading Style Sheets
/* keyword values */ overscroll-behavior-x: auto; /*
default */ overscroll-behavior-x: contain; overscroll-behavior-x: none; /* global values */ overscroll-behavior-x: inherit; overscroll-behavior-x: initial; overscroll-behavior-x: unset; syntax the overscroll-behavior-x property is specified as a keyword chosen from the list of values below.
... values auto the
default scroll overflow behavior occurs as normal.
... contain
default scroll overflow behavior is observed inside the element this value is set on (e.g.
...And 2 more matches
quotes - CSS: Cascading Style Sheets
that's the question!</q> css q { quotes: '"' '"' "'" "'"; } q::before { content: open-quote; } q::after { content: close-quote; } result auto quotes for most browsers, the
default value of quotes is auto (firefox 70+), or the browser otherwise had this
default behavior (chromiums, safari, edge), so this example works without it being explicitly being set.
... full support 14safari ios full support 9samsung internet android full support 1.0auto keywordchrome no support nonotes no support nonotes notes this value is not supported, but the
default browser behavior is to choose appropriate quotes for the user's language settingedge no support nonotes no support nonotes notes this value is not supported, but the
default browser behavior is to choose appropriate quotes for the user's language settingfirefox full support ...
... 70ie no support nonotes no support nonotes notes this value is not supported, but the
default browser behavior is to choose appropriate quotes for the user's language settingopera no support nonotes no support nonotes notes this value is not supported, but the
default browser behavior is to choose appropriate quotes for the user's language settingsafari no support nonotes no support nonotes notes this value is not supported, but the
default browser behavior is to choose appropriate quotes for the user's language sett...
...And 2 more matches
Making content editable - Developer guides
note: in firefox 63 beta/dev edition, some of the rich-text editing features have been disabled by
default, for better cross-browser compatibility.
... if you want to use a different paragraph separator, the above browsers all support document.execcommand, which provides a
defaultparagraphseparator command to allow you to change it.
... for example, to use <p> elements: document.execcommand("
defaultparagraphseparator", false, "p"); additionally, firefox supports the non-standard argument, br, for
defaultparagraphseparator since firefox 55.
...And 2 more matches
<details>: The Details disclosure element - HTML: Hypertext Markup Language
the
default closed state displays only the triangle and the label inside <summary> (or a user agent-defined
default string if no <summary>).
... this might look like the following: here we see a standard disclosure widget with the label "system requirements", in its
default closed state.
... by
default when closed, the widget is only tall enough to display the disclosure triangle and summary.
...And 2 more matches
<form> - HTML: Hypertext Markup Language
the
default value means the same encoding as the page.
... sentences (
default): capitalize the first letter of each sentence.
... autocomplete indicates whether input elements can by
default have their values automatically completed by the browser.
...And 2 more matches
<input type="datetime-local"> - HTML: Hypertext Markup Language
you can set a
default value for the input by including a date and time inside the value attribute, like so: <label for="party">enter a date and time for your party booking:</label> <input id="party" type="datetime-local" name="partydate" value="2017-06-01t08:30"> one thing to note is that the displayed date and time formats differ from the actual value; the displayed date and time are formatted according to the us...
...only values which are equal to the basis for stepping (min if specified, value otherwise, and an appropriate
default value if neither of those is provided) are valid.
...the
default value of step is 60, indicating 60 seconds (or 1 minute, or 60,000 milliseconds).
...And 2 more matches
<input type="month"> - HTML: Hypertext Markup Language
you can set a
default value for the input control by including a month and year inside the value attribute, like so: <label for="bday-month">what month were you born in?</label> <input id="bday-month" type="month" name="bday-month" value="2017-06"> one thing to note is that the displayed date format differs from the actual value; most user agents display the month and year in a locale-appropriate form, based on ...
...only values which are equal to the basis for stepping (min if specified, value otherwise, and an appropriate
default value if neither of those is provided) are valid.
...the
default value of step is 1 month.
...And 2 more matches
<input type="submit"> - HTML: Hypertext Markup Language
<input type="submit" value="send request"> if you don't specify a value, the button will have a
default label, chosen by the user agent.
... this label is likely to be something along the lines of "submit" or "submit query." here's an example of a submit button with a
default label in your browser: <input type="submit"> additional attributes in addition to the attributes shared by all <input> elements, submit button inputs support the following attributes: attribute description formaction the url to which to submit the form's data; overrides the form's action attribute, if any formenctype a string specifying the encoding type to use for the form data formmethod the http method (get or post) to use when submitting the form.
...there are three permitted values: application/x-www-form-urlencoded this, the
default value, sends the form data as a string after url encoding the text using an algorithm such as encodeuri().
...And 2 more matches
<input type="week"> - HTML: Hypertext Markup Language
you can set a
default value for the input by including a value inside the value attribute, like so: <label for="week">what week would you like to start?</label> <input id="week" type="week" name="week" value="2017-w01"> one thing to note is that the displayed format may differ from the actual value, which is always formatted yyyy-www.
...only values which are equal to the basis for stepping (min if specified, value otherwise, and an appropriate
default value if neither of those is provided) are valid.
...the
default value of step is 1, indicating 1week.
...And 2 more matches
<th> - HTML: Hypertext Markup Language
its
default value is 1.
... values higher than 1000 will be considered as incorrect and will be set to the
default value (1).
...its
default value is 1; if its value is set to 0, it extends until the end of the table section (<thead>, <tbody>, <tfoot>, even if implicitly defined), that the cell belongs to.
...And 2 more matches
<tt>: The Teletype Text element (obsolete) - HTML: Hypertext Markup Language
the obsolete html teletype text element (<tt>) creates inline text which is presented using the user agent's
default monospace font face.
... <p>enter the following at the telnet command prompt: <code>set localecho</code><br /> the telnet client should display: <tt>local echo is on</tt></p> result overriding the
default font you can override the browser's
default font—if the browser permits you to do so, which it isn't required to do—using css: css tt { font-family: "lucida console", "menlo", "monaco", "courier", monospace; } html <p>enter the following at the telnet command prompt: <code>set localecho</code><br /> the telnet client should display: <tt>local echo is on</tt></p> result...
... usage notes the <tt> element is, by
default, rendered using the browser's
default non-proportional font.
...And 2 more matches
MIME types (IANA media types) - HTTP
if no charset is specified, the
default is ascii (us-ascii) unless overridden by the user agent's settings.
... important mime types for web developers application/octet-stream this is the
default for binary files.
... text/plain this is the
default for textual files.
...And 2 more matches
SameSite cookies - HTTP
this is the
default value in modern browsers.
... none used to be the
default value, but recent browser versions made lax the
default value to have reasonably robust defense against some classes of cross-site request forgery (csrf) attacks.
... cookies without samesite
default to samesite=lax recent versions of modern browsers provide a more secure
default for samesite to your cookies and so the following message might appear in your console: some cookies are misusing the “samesite“ attribute, so it won’t work as expected.
...And 2 more matches
Control flow and error handling - JavaScript
a switch statement looks like this: switch (expression) { case label_1: statements_1 [break;] case label_2: statements_2 [break;] …
default: statements_def [break;] } javascript evaluates the above switch statement as follows: the program first looks for a case clause with a label matching the value of expression and then transfers control to that clause, executing the associated statements.
... if no matching label is found, the program looks for the optional
default clause: if a
default clause is found, the program transfers control to that clause, executing the associated statements.
... if no
default clause is found, the program resumes execution at the statement following the end of switch.
...And 2 more matches
Date.UTC() - JavaScript
if omitted,
defaults to 1.
...if omitted,
defaults to 0.
...if omitted,
defaults to 0.
...And 2 more matches
Intl.DateTimeFormat - JavaScript
static methods intl.datetimeformat.supportedlocalesof() returns an array containing those of the provided locales that are supported without having to fall back to the runtime's
default locale.
... examples using datetimeformat in basic use without specifying a locale, datetimeformat uses the
default locale and
default options.
... var date = new date(date.utc(2012, 11, 20, 3, 0, 0)); // tolocalestring without arguments depends on the implementation, // the
default locale, and the
default time zone console.log(new intl.datetimeformat().format(date)); // → "12/19/2012" if run with en-us locale (language) and time zone america/los_angeles (utc-0800) using locales this example shows some of the variations in localized date and time formats.
...And 2 more matches
Intl.DisplayNames() constructor - JavaScript
possible values are "lookup" and "best fit"; the
default is "best fit".
... style the formatting style to use, the
default is "long".
... "narrow" "short" "long" type the type to use, the
default is "language".
...And 2 more matches
Proxy - JavaScript
examples basic example in this simple example, the number 37 gets returned as the
default value when the property name is not in the object.
... let validator = { set: function(obj, prop, value) { if (prop === 'age') { if (!number.isinteger(value)) { throw new typeerror('the age is not an integer'); } if (value > 200) { throw new rangeerror('the age seems invalid'); } } // the
default behavior to store the value obj[prop] = value; // indicate success return true; } }; const person = new proxy({}, validator); person.age = 100; console.log(person.age); // 100 person.age = 'young'; // throws an exception person.age = 300; // throws an exception extending constructor a function proxy could easily extend a constructor with a new constructor.
... let view = new proxy({ selected: null }, { set: function(obj, prop, newval) { let oldval = obj[prop]; if (prop === 'selected') { if (oldval) { oldval.setattribute('aria-selected', 'false'); } if (newval) { newval.setattribute('aria-selected', 'true'); } } // the
default behavior to store the value obj[prop] = newval; // indicate success return true; } }); let i1 = view.selected = document.getelementbyid('item-1'); //giving error here, i1 is null console.log(i1.getattribute('aria-selected')); // 'true' let i2 = view.selected = document.getelementbyid('item-2'); console.log(i1.getattribute('aria-selected')); // 'false' console.log(i2.getattrib...
...And 2 more matches
Nullish coalescing operator (??) - JavaScript
in other words, if you use || to provide some
default value to another variable foo, you may encounter unexpected behaviors if you consider some falsy values as usable (eg.
...rightexpr examples using the nullish coalescing operator in this example, we will provide
default values but keep values other than null or undefined.
..."
default for a"; const valb = emptytext ??
...And 2 more matches
this - JavaScript
since the following code is not in strict mode, and because the value of this is not set by the call, this will
default to the global object, which is window in a browser.
...var a = 'global'; function whatsthis() { return this.a; // the value of this is dependent on how the function is called } whatsthis(); // 'global' as this in the function isn't set, so it
defaults to the global/window object whatsthis.call(obj); // 'custom' as this in the function is set to obj whatsthis.apply(obj); // 'custom' as this in the function is set to obj this and object conversion function add(c, d) { return this.a + this.b + c + d; } var o = {a: 1, b: 3}; // the first parameter is the object to use as // 'this', subsequent parameters are passed as // arguments in the f...
...var obj = { bar: function() { var x = (() => this); return x; } }; // call bar as a method of obj, setting its this to obj // assign a reference to the returned function to fn var fn = obj.bar(); // call fn without setting this, would normally
default // to the global object or undefined in strict mode console.log(fn() === obj); // true // but caution if you reference the method of obj without calling it var fn2 = obj.bar; // calling the arrow function's this from inside the bar method() // will now return window, because it follows the this from fn2.
...And 2 more matches
viewBox - SVG: Scalable Vector Graphics
value <number>?, <number>?, <number>?, <number>
default value none animatable yes pattern for <pattern>, viewbox defines the position and dimension for the content of the pattern tile.
... value <number>?, <number>?, <number>?, <number>
default value none animatable yes svg for <svg>, viewbox defines the position and dimension for the content of the <svg> element.
... value <number>?, <number>?, <number>?, <number>
default value none animatable yes symbol for <symbol>, viewbox defines the position and dimension for the content of the <symbol> element.
...And 2 more matches
<ellipse> - SVG: Scalable Vector Graphics
value type: <length>|<percentage> ;
default value: 0; animatable: yes cy the y position of the ellipse.
... value type: <length>|<percentage> ;
default value: 0; animatable: yes rx the radius of the ellipse on the x axis.
... value type: auto|<length>|<percentage> ;
default value: auto; animatable: yes ry the radius of the ellipse on the y axis.
...And 2 more matches
<line> - SVG: Scalable Vector Graphics
value type: <length>|<percentage>|<number> ;
default value: 0; animatable: yes x2 defines the x-axis coordinate of the line ending point.
... value type: <length>|<percentage>|<number> ;
default value: 0; animatable: yes y1 defines the y-axis coordinate of the line starting point.
... value type: <length>|<percentage>|<number> ;
default value: 0; animatable: yes y2 defines the y-axis coordinate of the line ending point.
...And 2 more matches
Communicating With Other Scripts - Archive of obsolete content
using <script> tags, either embedded in the page or linked to it using the src attribute, there are a couple of ways a content script can communicate with it: using the dom postmessage() api using custom dom events using the dom postmessage api note that before firefox 31 code in content scripts can't use window to access postmessage() and addeventlistener() and instead must use document.
defaultview.
...en.js window.addeventlistener('message', function(event) { console.log(event.data); // message from page script console.log(event.origin); }, false); using postmessage() before firefox 31 if your add-on is running in a version of firefox before firefox 31, then your content script can't access the postmessage() or addeventlistener() apis using window, but must access them using document.
defaultview instead.
... so the content scripts in the above examples need to be rewritten like this: // content-script.js document.
defaultview.postmessage("message from content script", "http://my-domain.org/"); // content-script.js document.
defaultview.addeventlistener('message', function(event) { console.log(event.data); // message from page script console.log(event.origin); }, false); using custom dom events as an alternative to using postmessage() you can use custom dom events to communicate between page scripts and content scripts.
...sharing requires an extra step: the content script needs to explicitly clone the message payload into the page script's scope using the global cloneinto() function: var messenger = document.getelementbyid("message"); messenger.addeventlistener("click", sendcustomevent, false); function sendcustomevent() { var greeting = {"greeting" : "hello world"}; var cloned = cloneinto(greeting, document.
defaultview); var event = document.createevent('customevent'); event.initcustomevent("addon-message", true, true, cloned); document.documentelement.dispatchevent(event); } messaging from page script to content script sending messages using custom dom events from the page script to the content script is just the same, but in reverse.
widget - Archive of obsolete content
e it using the data.url() method of the self module: var data = require("sdk/self").data; require("sdk/widget").widget({ id: "my-widget", label: "my widget", contenturl: data.url("my-content.html") }); this widget contains an entire web page: require("sdk/widget").widget({ id: "hello-display", label: "my hello widget", content: "hello!", width: 50 }); widgets are quite small by
default, so this example used the width property to grow it in order to show all the text.
...if not given, a
default width is used.
...script
defaults to true.
...ment for the widget is inserted into the dom, but before the dom content itself has been loaded "ready": load content scripts once dom content has been loaded, corresponding to the domcontentloaded event "end": load content scripts once all the content (dom, js, css, images) for the widget has been loaded, at the time the window.onload event fires this property is optional and
defaults to "end".
console - Archive of obsolete content
but see the discussion of logging levels: by
default, messages logged using log(), info(), trace(), or warn() won't be logged in these situations.
...l log calls to: all any console method debug debug(), error(), exception(), info(), log(), time(), timeend(), trace(), warn() info error(), exception(), info(), log(), time(), timeend(), trace(), warn() warn error(), exception(), warn() error error(), exception() off nothing setting the logging level the logging level
defaults to "error".
... there are two system preferences that can be used to override this
default: extensions.sdk.console.loglevel: if set, this determines the logging level for all installed sdk-based add-ons.
... when you install an add-on into firefox, the logging level will be "error" by
default (that is, unless you have set one of the two preferences).
Bookmarks - Archive of obsolete content
for example, to create a new folder in the bookmarks menu: var menufolder = bmsvc.bookmarksmenufolder; // bookmarks menu folder var newfolderid = bmsvc.createfolder(menufolder, "folder name here", bmsvc.
default_index); this code locates the bookmarks menu's folder, then creates a new folder named "folder name here" in it.
... specifying
default_index as the index at which to insert the new folder places it at the end of the list.
... var ios = components.classes["@mozilla.org/network/io-service;1"] .getservice(components.interfaces.nsiioservice); var uri = ios.newuri("http://google.com/", null, null); var newbkmkid = bmsvc.insertbookmark(newfolderid, uri, bmsvc.
default_index, ""); this example instantiates the nsiioservice and uses it to create an nsiuri referring to the google web site, then calls nsinavbookmarksservice.insertbookmark() to create a new bookmark to google, placing it at the end of the bookmarks folder referenced by newbkmkid.
... var ios = components.classes["@mozilla.org/network/io-service;1"] .getservice(components.interfaces.nsiioservice); var uri = ios.newuri("http://mozilla.com/", null, null); if (!bmsvc.isbookmarked(uri)) { bmsvc.insertbookmark(bmsvc.toolbarfolder, uri, bmsvc.
default_index, "mozilla"); } this example looks to see if the user already has a bookmark for the mozilla web site, and, if not, creates one, adding it to the user's bookmarks toolbar.
Dialogs and Prompts - Archive of obsolete content
add ok and cancel buttons in an order that is consistent with os
default (but the button set and layout is highly customizable, see below).
...extra2 is positioned at the left side of the dialog (by
default).
... example: <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" ondialogaccept="alert('ok!');"> <hbox> <label value="hey!"/> <spacer flex="1"/> <vbox> <button dlgtype="accept"/> <button dlgtype="cancel"/> </vbox> </hbox> </dialog>
default button since firefox 1.5, there are
defaultbutton attributes and properties on the <dialog> element bug 284776.
... the possible values for the attribute are the names of buttons listed above, and the
default is "accept", for compatibility with previous versions.
JavaScript Daemons Management - Archive of obsolete content
the
default value is 100.
...the
default value is infinity.
... daemon global object properties daemon.context an empty object used as the
default this object when the thisobject is not specified during the construction of the daemon.
...its
default value is daemon.context.
Toolbar - Archive of obsolete content
adding a toolbar button there are two tutorials available: an elaborate step by step tutorial for beginners: custom toolbar button a tutorial describing the steps needed to add a toolbar button assuming you already have a working extension and know the basics of extension development: creating toolbar buttons adding button by
default when you create and deploy your extension and include a toolbar button for it by overlaying the customize toolbarpalette, it is not available by
default.
...the following code will place your button on the toolbar by
default.
... notes insert your button by
default only once, at first run, or when an extension update adds a new button.
... please only add your button by
default if it adds real value to the user and will be a frequent entry point to your extension.
Extension Etiquette - Archive of obsolete content
to maintain the
default theme, avoid the use of an icon next to the menu items.
... about dialogs there is a
default popup about dialog that is created from install.rdf data; creating a new xul about box is usually unnecessary.
... descriptions use something that is descriptive, but that would fit in the
default add-on manager width.
...however, please make sure the
default set of preferences is adequate — don't require people to tweak options in order to get your extension's core functionality.
Chapter 3: Introduction to XUL—How to build a more intuitive UI - Archive of obsolete content
the
default value for ordinal is 1.
... the textbox element uses the value attribute to set its
default content; content entered by the user also can be captured using the value attribute.
...by
default, the first menu item is selected, but any menu can be preselected by adding selected="true" to it.
... opening a page if you specify a uri value for the src attribute in the browser element, that uri will be opened by
default.
Adding windows and dialogs - Archive of obsolete content
if this value is null or empty, the
default toolbars of the main window will be added to the new one, which is rarely what you want.
...there are also subtle aspects about window size, margins and paddings that are not the same for all systems, so you should avoid making dialogs from scratch or overriding the
default dialog css styles.
...see the firefox preferences window for an example of this: sections are defined using groupbox elements, but their style is quite different from the
default.
...if the user closes and then reopens your window, all the controls are reset to their
defaults, which may not be what you want.
Appendix E: DOM Building and Insertion (HTML & XUL) - Archive of obsolete content
json templating jsontodom.namespaces = { html: "http://www.w3.org/1999/xhtml", xul: "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" }; jsontodom.
defaultnamespace = jsontodom.namespaces.html; function jsontodom(jsontemplate, doc, nodes) { function namespace(name) { var reelemnameparts = /^(?:(.*):)?(.*)$/.exec(name); return { namespace: jsontodom.namespaces[reelemnameparts[1]], shortname: reelemnameparts[2] }; } // note that 'elemnameorarray' is: either the full element name (eg.
...parse element namespace prefix (if none exists,
default to
defaultnamespace), and create element var elemns = namespace(elemnameorarray); var elem = doc.createelementns(elemns.namespace || jsontodom.
defaultnamespace, elemns.shortname); // set element's attributes and/or callback functions (eg.
... continue; } var attrns = namespace(key); if (typeof val == "function") { // special case for function attributes; don't just add them as 'on...' attributes, but as events, using addeventlistener elem.addeventlistener(key.replace(/^on/, ""), val, false); } else { // note that the
default namespace for xml attributes is, and should be, blank (ie.
...ot in any namespace) elem.setattributens(attrns.namespace || "", attrns.shortname, val); } } // create and append this element's children var childelems = array.slice(arguments, 2); childelems.foreach(function(childelem) { if (childelem != null) { elem.appendchild( childelem instanceof doc.
defaultview.node ?
Local Storage - Archive of obsolete content
the structure could be something like this: s435l.
default (your profile directory) xulschool log.txt somedbfile.sqlite the directory service and the nsifile interface are used to create the local directory.
...this is the
default behavior when firefox is uninstalled: the profile information remains intact and it will be there waiting for you if firefox is installed again.
... have an initial database file in your
defaults directory that you can copy to the user's profile.
...you can reach the
defaults directory at profd/extensions/your_extension_id.xpi/
defaults for packed extensions or profd/extensions/your_extension_id/
defaults for unpacked extensions.
The Essentials of an Extension - Archive of obsolete content
beginning with firefox 11, add-ons will
default to compatible and firefox will mostly ignore the version range.
...since most other systems are unix-based, the "unix" skin is the
default, with no flags.
...there isn't much styling you can do to a minimal menu and a very simple alert message, so the hello world extension only includes an empty css file and the compulsory global skin file: <?xml-stylesheet type="text/css" href="chrome://global/skin/" ?> <?xml-stylesheet type="text/css" href="chrome://xulschoolhello/skin/browseroverlay.css" ?> the global skin css file holds the
default styles for all xul elements and windows.
... note that the tools menu is hidden by
default on firefox 4 and above, on windows and some linux distributions.
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, postdata, referrerurl ) the following code will open a url in a new tab, an existing tab, or an existing window based on which mouse button was pressed and which hotkeys (ex: ctrl) are being held.
... tabbrowser.selectedtab = currenttab; // focus *this* browser window in case another one is currently focused tabbrowser.ownerdocument.
defaultview.focus(); found = true; } } if (!found) { // our tab isn't open.
... var browserenumerator = wm.getenumerator("navigator:browser"); var tabbrowser = browserenumerator.getnext().gbrowser; // create tab var newtab = tabbrowser.addtab(url); newtab.setattribute(attrname, "xyz"); // focus tab tabbrowser.selectedtab = newtab; // focus *this* browser window in case another one is currently focused tabbrowser.ownerdocument.
defaultview.focus(); } } the function can be called like so: openandreuseonetabperattribute("myextension-myattribute", "http://developer.mozilla.org/").
... gbrowser.tabcontainer.advanceselectedtab(-1, true); detecting page load see also code snippets:on page load function examplepageload(event) { if (event.originaltarget instanceof components.interfaces.nsidomhtmldocument) { var win = event.originaltarget.
defaultview; if (win.frameelement) { // frame within a tab was loaded.
Adding preferences to an extension - Archive of obsolete content
establish the
defaults in order to set a
default preference for the stock to monitor, we need to add a new folder to our extension's package, called "
defaults", which in turn contains another folder called "preferences".
... inside that, we create a file,
defaults.js, that describes the
default value of our preferences: pref("extensions.stockwatcher2.symbol", "goog"); the standard for third-party preferences, such as those used in extensions, is to use the string "extensions", a period, the name of the extension, another period, then a preference name, as seen in the example above.
...by
default, we would have access to all preferences, but we only want access to those belonging to our own extension, so we specify that we want to access the "extensions.stockwatcher2" branch.
...all we need to do is add a popupset describing the menu to the statusbar, as follows: <popupset> <menupopup id="stockmenu"> <menuitem label="refresh now"
default="true" oncommand="stockwatcher.refreshinformation()"/> <menuseparator/> <menuitem label="apple (aapl)" oncommand="stockwatcher.watchstock('aapl')"/> <menuitem label="google (goog)" oncommand="stockwatcher.watchstock('goog')"/> <menuitem label="microsoft (msft)" oncommand="stockwatcher.watchstock('msft')"/> <menuitem label="yahoo!
Images, Tables, and Mysterious Gaps - Archive of obsolete content
the image is sitting in a line because images are, by
default, inline content.
...the baseline's exact placement is dependent on the "
default" font for the line box (represented by the red box), which is determined by the value of font-family for the element that contains the line box.
... note where the image sits by
default: its bottom edge is aligned with the baseline of the line box.
... this placement can be changed with vertical-align-- we'll talk about that in a bit-- but almost nobody ever changes the value from its
default.
Autodial for Windows NT - Archive of obsolete content
if a
default dialup connection is configured, we use that one.
... if more than one dialup connection is configured, and none is selected as the
default, we display a list of dialup connections and let the user choose one.
...select "dial whenever a network connection is not present" or "always dial my
default connection".
...or pehaps we should assume mozilla users can configure the autodial service and disable the helper by
default, but netscape users need a little more help, and enable it for them.
In-Depth - Archive of obsolete content
possible are (this is probably an incomplete list): none - (!important may be needed) will override the operating system
default.
... use this when you want one or two controls to look different from the operating systems
defaults.
...the image that is listed there by
default (chrome://navigator/skin/icons/btn1.gif) is actually a bunch of images grouped together in one file, so somewhere one of the css attributes is telling it what portion of the larger image to cut out and display.
...by
default, mozilla 1.2 doesn't support images on the right hand side of the toolbars, but that can be changed with some xbl hacking.
Reading textual data - Archive of obsolete content
you can fallback to the
default character encoding stored in preferences (intl.charset.
default, a localized pref value) when reading from a file, the question is harder to answer.
... using the system character encoding may work (xxx insert text how to get it), or again the
default character encoding from preferences.
...using utf-8 for this example: */ "utf-8"; const replacementchar = components.interfaces.nsiconverterinputstream.
default_replacement_character; var is = components.classes["@mozilla.org/intl/converter-input-stream;1"] .createinstance(components.interfaces.nsiconverterinputstream); is.init(fis, charset, 1024, replacementchar); now you can read string from is: var str = {}; var numchars = is.readstring(4096, str); if (numchars != 0 /* eof */) var read_string = str.value; to read the entire s...
...the last (4th) argument to init specifies which character they get replaced with; nsiconverterinputstream.
default_replacement_character is u+fffd replacement character, which is often a good choice.
Running Tamarin performance tests - Archive of obsolete content
82.0 80.0 2.5 sunspider/access-fannkuch.as 153.0 155.0 -1.3 sunspider/access-nbody.as 176.0 178.0 -1.1 sunspider/access-nsieve.as 65.0 68.0 -4.4 sunspider/bitops-3bit-bits-in-byte.as 12.0 13.0 -7.7 sunspider/bitops-bits-in-byte.as 36.0 36.0 0.0 by
default tests sunspider and sunspider-as3 (optimized for as3) and run.
...e builtin.abc (used to be location of global.abc) -b --builtinabc location of builtin.abc -s --shellabc location of shell_toplevel.abc -x --exclude comma separated list of directories to skip -h --help display help and exit -t --notime do not generate timestamps (cleaner diffs) -f --forcerebuild force rebuild all test files -c --config sets the config string [
default os-tvm] -q --quiet display minimum output during testrun -l --log also log all output to given logfile --summaryonly only display final summary --rebuildtests rebuild the tests only - do not run against vm --showtimes shows the time for each test --ascargs args to pass to asc on rebuild of test files --vmargs args to pass to vm --timeo...
...ut max time to run all tests --testtimeout max time to let a test run, in sec (
default -1 = never timeout) --html also create an html output file --notimecheck do not recompile .abc if timestamp is older than .as --java location of java executable (
default=java) --javaargs arguments to pass to java --random run tests in random order --seed explicitly specify random seed for --random -s --avm2 second avmplus command to use --avmname nickname for avm to use as column header --avm2name nickname for avm2 to use as column header --detail display results in 'old-style' format --raw output all raw test values -i --iterations number of times to repeat test -l --log ...
... --aotout where the resulting binaries should be put (
defaults to the location of the as file).
Tamarin build documentation - Archive of obsolete content
the work for that fix also included some changes to the configure.py
default behavior to decouple the --target switch from sdk choice: there is a new switch, --mac-sdk, that selects the 10.4u, 10.5 or 10.6 sdk.
... if you pass '--mac-sdk=105' or '--mac-sdk=106' you will get the gcc/g++
default for the machine you're building on.
...to build tamarin: copy tamarin/platform/win32/armasm.rules to c:/program files/microsoft visual studio 9.0/vc/vcproject
defaults build "builtin.h" following the instructions below in the section "compiling and running applications" do the same for shell_toplevel.h, starting in avmplus/shell, using the command "python shell_toplevel.py" open the tamarin project file "platform/win32/avmplus2008.sln".
...for example, if you chose the win32 debug_debugger configuration your build will be under \tamarin-redux\platform\win32\obj_9\shell\debug_debugger by
default.
The new nsString class implementation (1999) - Archive of obsolete content
justification the nsstring class is a wide character string class used throughout all of gecko (and other modules) as the
default implementation.
...by
default, nsstrings use a 2-byte ucs2 character storage model.
...all nsstring subclasses provide their own
default allocator implementations, but programmers are free to use their own.
... in the new prototype nsstrimpl and nsstring classes, the allocator is an intrinsic member installed during construction of the string (by
default they share a global allocator).
Venkman Introduction - Archive of obsolete content
by
default, properties of type function are not displayed, in order to conserve space in the view.
... at the time of this writing, the local variables view's
default sort order and grouping are not adjustable.
... the call stack view the call stack view is on the left portion of the window by
default, at the bottom.
... debugging extensions although at first glance it might seem that venkman cannot debug extensions, doing so is in fact fully supported; it's just disabled by
default.
setPackageFolder - Archive of obsolete content
setpackagefolder sets the
default package folder.
...description the setpackagefolder method to set the
default package folder that is saved with the root node.
... when the package folder is set, it is used as the
default for forms of addfile and other methods that have an optional localdirspec parameter.
...if you call setpackagefolder multiple times, the last folder set is the folder that is saved in the client version registry and used as the
default for other installations.
MenuItems - Archive of obsolete content
the first menuitem is checked by
default, as indicated by the checked attribute set to the value true.
... the second menuitem is not checked by
default.
...this becomes the
default value for the menu.
... if you do not set one, none of the items in that group will be checked by
default.
Simple Query Syntax - Archive of obsolete content
in the simple syntax, the builder will use the
default query shown above, although the variable names are randomly generated.
...instead, the builder uses a
default query, and the action is placed directly inside the <template> element.
...first, it evaluates the
default query as above, except that no variables are used, or at least, not ones that are used externally.
...after the
default query statements are evaluated, the data network will look something like this: (?1 = http://www.xulplanet.com/rdf/myphotos, ?2 = http://www.xulplanet.com/ndeakin/images/t/palace.jpg) (?1 = http://www.xulplanet.com/rdf/myphotos, ?2 = http://www.xulplanet.com/ndeakin/images/t/canal.jpg) (?1 = http://www.xulplanet.com/rdf/myphotos, ?2 = http://www.xulplanet.com/ndeakin/images/t/obselisk.jpg) the numbers are used here for the variable names, but they are really just randomly generated so you can't refer to them in any way.
Commands - Archive of obsolete content
by
default, only textboxes have a controller that does anything.
...you could even override the
default handling of a command with careful placement of the controller.
... override
default controller we attach this controller to the listbox by calling the appendcontroller method of the listbox's controllers.
...the
default textbox controller never gets called because the command dispatcher found the controller above to handle the command first.
Creating a Window - Archive of obsolete content
this file contains all the
default declarations for all of the xul elements.
...this is the
default value, so you may leave the attribute off entirely if you wish to have vertical orientation.
...if this is not specified, the
default window will open.
... (usually the browser window.) for example, we could open the find files dialog with either of the following: mozilla -chrome chrome://findfile/content/findfile.xul mozilla -chrome resource:/chrome/findfile/content/findfile.xul if you run this command from a command-line (assuming you have one on your platform), the find files dialog will open by
default instead of the mozilla browser window.
List Controls - Archive of obsolete content
the list box will
default to a suitable size, but you can control the size with the rows attribute.
...the selected attribute is used to indicate the value that is selected by
default.
... editable menulist by
default, you can only select choices from the list.
...because the label attribute was not used in this example, the
default value will be blank.
Using Spacers - Archive of obsolete content
unless you specify information about the width and height of an element, the
default size of an element is determined by its contents.
...if you create a button with a very long label, the button's
default size will be large enough to hold the entire label.
... other elements, such as the text box have chosen a suitable
default size.
...once the
default sizes of the children of a box are determined, the flexibility values are used to divide up the remaining empty space in the box.
XUL Structure - Archive of obsolete content
by
default, mozilla applications parse xul files and scripts, and store a pre-compiled version in memory for the remainder of the application session.
...the classic.jar file describes the
default theme provided with firefox.
...it also defines the
default appearance and functionality of the various common xul widgets such as textboxes and buttons.
... the files located in the global part of a skin package contain the
default look for all of the xul interface elements.
Writing Skinnable XUL and CSS - Archive of obsolete content
for example, the skin for the navigator package should contain a file called navigator.css that determines the
default look of all xul windows posed from this package.
...by obeying this restriction, your package will be almost entirely skinnable by changing only the global
defaults.
... derived skin files should not attempt to change the
default look for a widget.
...in doing so, you have redefined the
default look for the widget, which will make the ui in your window different from others that properly inherit from the same base skin file you do.
XUL Changes for Firefox 1.5 - Archive of obsolete content
dialog:
defaultbutton property the <dialog> binding now supports the
defaultbutton property.
... setting this property changes the
default button of the dialog.
... it can be set either to one of the buttons of the <dialog> binding (using their names); or to none - in which case no button is set to be the
default.
... <tabbox> the <tabbox> element now supports a selectedindex attribute to specify the tab to be selected by
default.
datepicker - Archive of obsolete content
if not specified, the datepicker
defaults to the current day.
...the
default value is determined by the locale, so only use this attribute if you want to override it.
...this is the
default value so do not specify the type attribute if this kind is desired.
...osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related interfaces nsidomxulcontrolelement ...
notificationbox - Archive of obsolete content
aredocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata appendnotification( label , value , image , priorit...
... is
default - if true, this is the
default button.
... there can be only one
default button.
... if no button has this set, the first button in the array is the
default.
treecol - Archive of obsolete content
on firefox 2.x and 3.x, all operating systems other than mac os x already use these styles by
default.
... sortactive type: boolean this should be set to true for the column which should be sorted by
default.
...the
default is a text column that displays the content as text.
...osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata style classes the following class may be used to sty...
Creating a Windows Inno Setup installer for XULRunner applications - Archive of obsolete content
a xulrunner application has no installer by
default; however, these instructions can help you to easily create a windows installer with inno setup.
... myapp/ application.ini chrome/
default/ myapp.exe (copy xulrunner-stub.exe and rename) xulrunner/ please test your application before deploying it.
... [setup] appname=my app appvername=my app 1.0 apppublisher=mark finkle apppublisherurl=http://developer.mozilla.org/en/docs/getting_started_with_xulrunner appsupporturl=http://developer.mozilla.org/en/docs/getting_started_with_xulrunner appupdatesurl=http://developer.mozilla.org/en/docs/getting_started_with_xulrunner
defaultdirname={pf}\my app
defaultgroupname=my app allownoicons=yes outputdir=..\build\output outputbasefilename=myapp-1.0-win32 ; setupiconfile= compression=lzma solidcompression=yes [languages] name: english; messagesfile: compiler:
default.isl [components] name: main; description: my app; types: full compact custom; flags: fixed name: runtime; description: xul runner runtime; types: full custom [tas...
...ler\myapp\myapp.exe; destdir: {app}; components: main; flags: ignoreversion source: c:\develop\xulrunnerinstaller\myapp\application.ini; destdir: {app}; components: main; flags: ignoreversion source: c:\develop\xulrunnerinstaller\myapp\chrome\*; excludes: .svn; destdir: {app}\chrome; components: main; flags: ignoreversion recursesubdirs createallsubdirs source: c:\develop\xulrunnerinstaller\myapp\
defaults\*; excludes: .svn; destdir: {app}\
defaults; components: main; flags: ignoreversion recursesubdirs createallsubdirs source: c:\develop\xulrunnerinstaller\myapp\xulrunner\*; destdir: {app}\xulrunner; components: runtime; flags: ignoreversion recursesubdirs createallsubdirs ; note: don't use "flags: ignoreversion" on any shared system files [icons] name: {group}\my app; filename: {app}\myapp.exe n...
How to enable locale switching in a XULRunner application - Archive of obsolete content
normally the application locale is inherited from the os environment of the host system, however there are situations when you might want to give users the option to override the
default setting and choose a different locale.
...modify the application preferences first, you need to tell xulrunner that your application wishes to ignore the
default os locale and that it will do its own choosing instead.
...
defaults/preferences/prefs.js /* don't inherit os locale */pref("intl.locale.matchos", "false");/* choose own fallback locale; later it can be overridden by the user */pref("general.useragent.locale", "en-gb"); note that some distributions of xulrunner or firefox don't honour the "intl.locale.matchos" setting, so in those cases you won't be able to override the os locale [debian iceweasel bug #417961].
...it saves the new locale to the user application preferences (thereby overriding the
default prefs.js above) and then asks xulrunner to restart.
Theme changes in Firefox 4 - Archive of obsolete content
controlling the actual icon size used by add-on toolbar buttons the iconsize attribute of the browser's toolbar elements now has a different
default value on each toolbar independently.
...
default values of the iconsize attribute on browser toolbars if the theme doesn't override the value of the iconsize attribute, the following
defaults are used: toolbar element id
default iconsize value menu bar #toolbar-menubar small navigation bar #nav-bar small or large depending on user preference.
... overriding the
default values themes can override the value of the iconsize attribute on each toolbar by specifying a special value for the counter-reset css property on the toolbar itself.
... examples the
default windows theme wants to force small icons on the navigation bar regardless of the user preference.
-moz-window-shadow - Archive of obsolete content
in firefox 3.5 the
default changed, with all windows having a shadow.
... initial value
defaultapplies toall elements that create native windows, e.g.
... values
default the window will have a shadow with the
default window shadow style.
... formal syntax
default | menu | tooltip | sheet | none example .kui-panel { -moz-window-shadow: none; } ...
Processing XML with E4X - Archive of obsolete content
it's been disabled by
default for chrome in firefox 17, and completely removed in firefox 21.
...for backwards compatibility, e4x
defaults to ignoring comments and cdata sections.
...
default default xml namespace = "http://www.w3.org/1999/xhtml"; // no need now to specify a namespace in the html tag var xhtml = <html><head><title></title></head><body> <p>text</p></body></html>; alert(xhtml.head); // no need to specify a namespace on subelements here either non-
default var xhtml = <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>embedded svg demo</title> </...
...ad> <body> <h1>embedded svg demo</h1> <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 100 100"> <circle cx="50" cy="50" r="20" stroke="orange" stroke-width="2px" fill="yellow" /> </svg> </body> </html>; alert(xhtml.name().localname); // alerts "html" alert(xhtml.name().uri); // alerts "http://www.w3.org/1999/xhtml" to access elements that are within a non-
default namespace, first create a namespace object encapsulating the uri for that namespace: var svgns = new namespace('http://www.w3.org/2000/svg'); this can now be used in e4x queries by using namespace::localname in place of a normal element specifier: var svg = xhtml..svgns::svg; alert(svg); // shows the <svg> portion of the document using generators/iterators with e4x as of javascript 1.7, it...
Building Mozilla XForms - Archive of obsolete content
for xforms, you will need to add the following line: ac_add_options --enable-extensions="
default,xforms" # if you're using a mozilla source before 2010-11-06 (e.g.
... an old firefox 3.6 release) use this instead (see bug 601570 for details): ac_add_options --enable-extensions="
default,xforms,schema-validation" a complete .mozconfig file for a release build might look like that: .
...2 on a dual core processor) ac_add_options --enable-extensions="
default,xforms" ac_add_options --disable-debug ac_add_options --enable-optimize ac_add_options --disable-tests for a debug build, you could use this configuration: .
... $topsrcdir/browser/config/mozconfig mk_add_options moz_co_project=browser mk_add_options moz_objdir=@topsrcdir@/obj-@config_guess@ ac_add_options --enable-extensions="
default,xforms" ac_add_options --enable-debug ac_add_options --disable-optimize ac_add_options --disable-tests building now that you have everything ready, you can rebuild mozilla with the same command you used before to build firefox without xforms.
Parsing microformats in JavaScript - Archive of obsolete content
defaultgetter() uses the microformat patterns to decide what the correct text for a given microformat property is.
... propertyvalue = microformats.parser.
defaultgetter(propnode, parentnode, datatype); parameters propnode the dom node to check.
...the
default is "text".
...this calls
defaultgetter() internally.
Mobile touch controls - Game development
andler); document.addeventlistener("touchmove", touchhandler); the touchhandler function looks like this: function touchhandler(e) { if(e.touches) { playerx = e.touches[0].pagex - canvas.offsetleft - playerwidth / 2; playery = e.touches[0].pagey - canvas.offsettop - playerheight / 2; output.innerhtml = "touch: "+ " x: " + playerx + ", y: " + playery; e.prevent
default(); } } if the touch occurs (touches object is not empty), then we will have all the info we need in that object.
...the prevent
default() function is needed to prevent the browser from moving — without it you'd have the
default behaviour, and the canvas would be dragged around the page, which would show the browser scroll bars and look messy.
...phaser starts two pointers by
default, so two fingers can perform an action at once.
...the initialization of virtual joystick looks like this: this.pad = this.game.plugins.add(phaser.virtualjoystick); this.stick = this.pad.addstick(30, 30, 80, 'generic'); in the create() function of the game state we're creating a virtual pad and a generic stick that has four directional virtual buttons by
default.
Overflowing content - Learn web development
css tries to avoid "data loss" let's consider two examples that demonstrate the
default behavior of css when there is overflow.
...the
default value of overflow is visible.
... with this
default, we can see content when it overflows.
...you should understand that
default css avoids making overflowing content invisible.
Responsive design - Learn web development
in marcotte's original exploration this meant flexible grids (using floats) and media queries, however in the almost 10 years since that article was written, working responsively has become the
default.
... modern layout technologies modern layout methods such as multiple-column layout, flexbox, and grid are responsive by
default.
...by setting width=device-width you are overriding apple's
default width=960px with the actual width of the device, so your media queries will work as intended.
...it encompasses a number of css and html features and techniques and is now essentially just how we build websites by
default.
Installing basic software - Learn web development
by
default windows includes notepad and macos comes with textedit.
... linux distros vary; ubuntu comes with gedit by
default.
... windows: firefox, chrome, opera, internet explorer, microsoft edge, brave (windows 10 comes with edge by
default; if you have windows 7 or above, you can install internet explorer 11; otherwise, you should install an alternative browser).
... macos: firefox, chrome, opera, safari, brave (macos and ios come with safari by
default).
HTML table basics - Learn web development
we won't focus on css in this module, but we have provided a minimal css stylesheet for you to use that will make your tables more readable than the
default you get without any styling.
... tables are not automatically responsive: when you use proper layout containers (such as <header>, <section>, <article>, or <div>), their width
defaults to 100% of their parent element.
... tables on the other hand are sized according to their content by
default, so extra measures are needed to get table layout styling to effectively work across a variety of devices.
... note: table headings come with some
default styling — they are bold and centered even if you don't add your own styling to the table, to help them stand out.
Ember app structure and componentization - Learn web development
this already exists, and its contents currently look like so: {{!-- the following component displays ember's
default welcome message.
...--}} {{outlet}} <welcomepage /> is a component provided by an ember addon that renders the
default welcome page we saw in the previous article, when we first navigated to our server at localhost:4200.
...this is because the
default css absolutely positions the checkbox + label with negative top and left values to move it next to the input, rather than it being inside the "main" section.
...by
default, generate component generates template-only components, because in large applications, template-only components end up being the majority of the components.
Advanced Svelte: Reactivity, lifecycle, accessibility - Learn web development
these frameworks, by
default, basically re-run all our javascript on every change against this virtual dom, and apply different methods to cache expensive calculations and optimize execution.
... put the following contents inside it: <script> import { createeventdispatcher } from 'svelte' const dispatch = createeventdispatcher() let name = '' const addtodo = () => { dispatch('addtodo', name) name = '' } const oncancel = () => name = '' </script> <form on:submit|prevent
default={addtodo} on:keydown={e => e.key === 'escape' && oncancel()}> <h2 class="label-wrapper"> <label for="todo-0" class="label__lg">what needs to be done?</label> </h2> <input bind:value={name} type="text" id="todo-0" autocomplete="off" class="input input__lg" /> <button type="submit" disabled={!name} class="btn btn__primary btn__lg">add</button> </form> here we are binding the <input> ...
...spatch = createeventdispatcher() let name = '' let nameel // reference to the name input dom node const addtodo = () => { dispatch('addtodo', name) name = '' nameel.focus() // give focus to the name input } const oncancel = () => { name = '' nameel.focus() // give focus to the name input } </script> <form on:submit|prevent
default={addtodo} on:keydown={e => e.key === 'escape' && oncancel()}> <h2 class="label-wrapper"> <label for="todo-0" class="label__lg">what needs to be done?</label> </h2> <input bind:value={name} bind:this={nameel} type="text" id="todo-0" autocomplete="off" class="input input__lg" /> <button type="submit" disabled={!name} class="btn btn__primary btn__lg">add</button> </form> try the app out...
...in the following example, the first three declarations are props, and the rest are exported values: <script> export let bar = 'optional
default initial value' // prop export let baz = undefined // prop export let format = n => n.tofixed(2) // prop // these are readonly export const thisis = 'readonly' // read-only export export function greet(name) { // read-only export alert(`hello ${name}!`) } export const greet = ...
Dynamic behavior in Svelte: working with variables and props - Learn web development
you can also specify a
default initial value for a prop.
...this is because we are currently not passing any value into it from app.svelte, so it's using the
default value.
...update the newtodo form's opening tag like so: <form on:submit|prevent
default={addtodo}> the on:eventname directive supports adding modifiers to the dom event with the | character.
... in this case, the prevent
default modifier tells svelte to generate the code to call event.prevent
default() before running the handler.
Getting started with Vue - Learn web development
the vue cli will
default to this package manager from now on.
...most importantly, your <script> tag needs to have a
default exported js object.
... in the case of app.vue, our
default export sets the name of the component to app and registers the helloworld component by adding it into the components property.
... import helloworld from './components/helloworld.vue'; export
default { name: 'app', components: { //you can register components locally here.
Adding a new CSS property
issues about how to write such a specification (including things such as whether it is appropriate to use prefixes or when properties should be inherited by
default) are not covered here.
... remember that each style struct contains only properties that inherit by
default or only properties that do not.
... so first, you need to add a member variable (or variables) to the chosen style struct in nsstylestruct.h and fix the
default constructor and the copy constructor of that struct in nsstylestruct.cpp.
... the
default constructor must initialize the variable to match the initial value of the property, as described in the "initial value:" line in the specification's definition of the property.
Cookies Preferences in Mozilla
the
default values given are for firefox 3.
... network.cookie.cookiebehavior
default value: 0 0 = accept all cookies by
default 1 = only accept from the originating site (block third party cookies) 2 = block all cookies by
default 3 = use p3p settings (note: this is only applicable to older mozilla suite and seamonkey versions.) 4 = storage access policy: block cookies from trackers network.cookie.lifetimepolicy
default value: 0 0 = accept cookies normally 1 = prompt for each cookie (prompting was removed in firefox 44) 2 = accept for current session only 3 = accept for n days network.cookie.lifetime.days
default value: 90 only used if network.cookie.lifetimepolicy is set to 3 sets the number of days that the lifetime of cookies should be limited to.
... network.cookie.alwaysacceptsessioncookies
default value: false only used if network.cookie.lifetimepolicy is set to 1 true = accepts session cookies without prompting false = prompts for session cookies network.cookie.thirdparty.sessiononly
default value: false true = restrict third party cookies to the session only false = no restrictions on third party cookies network.cookie.maxnumber
default value: 1000 configures the maximum amount of cookies to be stored valid range is from 0-65535, rfc 2109 and 2965 require this to be at least 300 network.cookie.maxperhost
default value: 50 configures the maximum amount of cookies to be stored per host valid range is from 0-65535, rfc 2109 and 2965 require this to be at least 20 network.cookie.disablecookieformailnews
default value: true...
... network.cookie.prefsmigrated
default value: false migration pref for users with older profiles (before mozilla 1.7).
Debugging on Mac OS X
on macos 10.15+, downloaded try builds will not launch by
default because notarization is required.
...bug 1522409 was filed to automate codesigning local builds to enable hardened runtime by
default and eliminate this discrepancy.
... one important issue that the mozilla .lldbinit file fixes is that by
default some breakpoints will be listed as "pending", and xcode will not stop at them.
... note that with the
default configuration, some breakpoints will be listed as "pending", and xcode will not stop at them.
Debugging on Windows
this will also create a visual c++ mozilla project in the directory of the executable by
default.
...by
default vc++ displays "{...}" and you need to click the small + icon to expand the members.
...by
default it will be: vc++ 6.0: c:\program files\microsoft visual studio\common\msdev98\bin\autoexp.dat vc++ 7.0: c:\program files\microsoft visual studio .net 2003\common7\packages\debugger\autoexp.dat the file has information about the format in the beginning, and after a little practice you should be well on your way.
... note that unlike unix, the
default for windows is not warn, it's to pop up a dialog.
Makefile - variables
extra_components ns
defaultclh.manifest, javascript xpcomm files extra_dso_libs extra_dso_ldopts extra_js_modules extra_pp_components xpcomm files to pre-process before installation.
... simple_programs suppress_
default_rules inhibit processing of makefile tier targets/directory processing will be unordered.
... xpidl_module module name to use when generating .xpt files,
default to module.
...
default=$(dist)/bin xpi_name if set final_target=$(dist)/xpi-stage/$(xpi_name) dist_subdir if set final_target will be $(dist)/bin/$(dist_subdir) [ metro build ] l10n.mk and localization variable description en_us_binary_url server url from which wget will ftp binaries.
Embedding Tips
embedders may wish to override some of the
default service implementations with their own.
... for example, the
default prompt service uses xul to render prompt dialogs and embedders may wish to render them in a way more appropriate for their application and platform..
... the
default useragent is set using the value from your application.ini/nsxreappdata.
... you can override this
default using the "general.useragent.override" preference.
HTTP Cache
it's only accessible on the
default chrome process.
...the
default size of this meta data memory pool is only 250kb and is controlled by a new browser.cache.disk.metadata_memory_limit preference.
...the decay time is controlled by the browser.cache.frecency_half_life_hours preference and
defaults to 6 hours.
... the memory pool is represented by two lists (strong refering ordered arrays) of cacheentry objects: sorted by expiration time (that
default to 0xffffffff) sorted by frecency (
defaults to 0) we have two such pools, one for memory-only entries actually representing the memory-only cache and one for disk cache entries for which we only keep the meta data.
Internationalized Domain Names (IDN) Support in Mozilla Browsers
real world examples punycode there are real world examples of idn that you can test with netscape 7.1, which uses punycode as the
default idn encoding.
... for example, most sample links on the following test pages can be used without any further setting: http://www.nunames.nu/eu-lang-test.htm (domain names with latin 1 accented characters) http://www.nunames.nu/lldemo/
default.htm (domain names in other languages) on july 10, 2003 and thereafter, you can access a large number of japanese domain name sites under the .jp top domain with no further setting on netscape 7.1/mozilla 1.4: http://mitsuketa-nihongo.jp race (row-based ascii compatible encoding) almost all idn registration data are expected to change to punycode by the end of 2003.
...this will change the
default from puncycode to race.
... don't forget to set the value of these preferences to "
default" once you are finished with testing!
Dict.jsm
method overview dict copy(); boolean del(string akey); object get(string akey, [optional] object a
default); boolean has(string akey); array listitems(); array listkeys(); array listvalues(); void set(string akey, object avalue); string tojson(); string tostring(); properties attribute type description count number the number of items in the dictionary.
... object get( string akey, [optional] object a
default ); parameters akey the key whose value should be returned.
... a
default optional the value to return if the specified key isn't found.
... if you don't specify a
default value, undefined is returned for keys that aren't found.
Sqlite.jsm
defaults to true.
...there is no
default value which means no automatic memory minimization will occur.
... these functions receive the following arguments: readonly (optional) if true the clone will be read-only,
default is false.
...the
default is transaction_deferred.
Mozilla Style System Documentation
each of the structs includes either only features that are inherited by
default or single properties that are set to the initial value by
default (see css26.1.1), which is essential for the ruletree.
...as stated above, each style struct contains only features that are inherited by
default or those that are set to their initial value ("reset") by
default.
...for those structs where all the values are inherited by
default, a style context can often (when none of the rules matched by the style context specifies any properties in the struct, or when explicit inherit is used) use the same struct as its parent style context.
... for the structs where all the properties are reset by
default, if no explicit inherit values or em or similar units are used, the style struct can be cached on the rule node rather than the style context and shared between all style contexts pointing to that rule node.
GC and CC logs
on desktop firefox you can override the
default location of the log files by setting the moz_cc_log_directory environment variable.
... by
default, they go to a temporary directory which differs per os - it's /tmp/ on linux/bsd, $localappdata\temp\ on windows, and somewhere in /var/folders/ on mac (whatever the directory service returns for tmpd/ns_os_temp_dir).
...by
default, the file is created in some temp directory, and the path to the file is printed to the error console.
...the
default value is all, which will log all ccs.
Research and prep
productization is the process of determining a user's choice of
default search engines, content and protocol handlers (rss readers, web mail and web calendar), bookmarks, and links to recommended sites on the in-product pages as it relates to their locale.
... ensure that your suggestions follow these parameters: search there are typically five search plug-ins listed for firefox desktop (only four for firefox mobile): generic search the
default option should expose the quickest path to the best result on the world wide web for the user (indexing a large portion of the global www).
... local search a good test is if you were to run a set of comparative queries; the secondary engine should produce the best local language results and the primary/
default position should produce the best global results.
...your selections for
default rss readers and content handlers should follow these guidelines: be translated in your language (because it makes the application unusable if it's not in your language provide for the intended user experience (e.g., minimal to no advertisements within the user experience) no more than three (if possible) choices.
An overview of NSS Internals
you might decide to modify the
default trust provided by nss.
...in addition, nss ships with a
default policy that defines which cipher suites are enabled by
default.
...but if you don't care about modifying the
default trust permanently (recorded on disk), you can use the no-database init calls.
...at the time of writing nss and the mozilla applications still use the older database file format by
default, where each application has its own nss database.
JSS FAQ
if i don't call setcipherpolicy, is the domestic policy used by
default?
...g.java org/mozilla/jss/pkix/crmf/certtemplate.java org/mozilla/jss/pkix/primitive/name.java org/mozilla/jss/provider/javax/crypto/jsssecretkeyfactoryspi.java org/mozilla/jss/util/utf8converter.java org/mozilla/jss/util/base64inputstream.java jss/samples/pqggen.java jss/samples/pkcs12.java if i don't call setcipherpolicy, is the domestic policy used by
default?
... yes, domestic is the
default because we call nss_setdomesticpolicy() during cryptomanager.initialize().
... in version previous to jss 3.1, jss removes the
default sun provider on startup.
NSS 3.18 release notes
notable changes in nss 3.18 the highest tls protocol version enabled by
default has been increased from tls 1.0 to tls 1.2.
... similarly, the highest dtls protocol version enabled by
default has been increased from dtls 1.0 to dtls 1.2.
... the
default key size used by certutil when creating an rsa key pair has been increased from 1024 bits to 2048 bits.
... on mac os x, by
default the softokn shared library will link with the sqlite library installed by the operating system, if it is version 3.5 or newer.
NSS 3.27.1 release notes
notable changes in nss 3.27.1 availability of the tls 1.3 (draft) implementation has been re-disabled in the
default build.
...nss 3.27 set this value on by
default, allowing tls 1.3 (draft) to be disabled using nss_disable_tls_1_3, although the maximum version used by
default remained tls 1.2.
...because nss 3.27 enabled compilation of tls 1.3 (draft) by
default, it caused those applications to enable tls 1.3 (draft).
... bugs fixed in nss 3.27.1 the following bug has been fixed in nss 3.27.1: re-disable tls 1.3 by
default compatibility nss 3.27.1 shared libraries are backwards compatible with all older nss 3.x shared libraries.
NSS 3.28 release notes
nss includes support for the x25519 key exchange algorithm (bug 957105), which is supported and enabled by
default in all versions of tls.
... request to test and prepare for tls 1.3 this release contains improved support for tls 1.3, however, the code that supports tls 1.3 is still disabled by
default (not built).
... for the future nss 3.29 release, it is planned that standard builds of nss will support the tls 1.3 protocol (although the maximum tls protocol version enabled by
default will remain at tls 1.2).
... nss will now no longer assume that
default signature schemes are supported by a peer if there was no commonly supported signature scheme.
NSS tools : cmsutil
-d dbdir specify the key/certificate database directory (
default is ".") -e envfile specify a file containing an enveloped message for a set of recipients to which you would like to send an encrypted message.
...-i infile use infile as a source of data (
default is stdin).
...-o outfile use outfile as a destination of data (
default is stdout).
...-u certusage set type of cert usage (
default is certusageemailsigner).
NSS tools : vfychain
modutil can add and delete pkcs #11 modules, change passwords on security databases, set
defaults, list module contents, enable or disable slots, enable or disable fips 140-2 compliance, and assign
default providers for cryptographic operations.
...options -a the following certfile is base64 encoded -b yymmddhhmmz validate date (
default: now) -d directory database directory -f enable cert fetching from aia url -o oid set policy oid for cert validation(format oid.1.2.3) -p use pkix library to validate certificate by calling: * cert_verifycertificate if specified once, * cert_pkixverifycert if specified twice and more.
... -r following certfile is raw binary der (
default) -t following cert is explicitly trusted (overrides db trust) -u usage 0=ssl client, 1=ssl server, 2=ssl stepup, 3=ssl ca, 4=email signer, 5=email recipient, 6=object signer, 9=protectedobjectsigner, 10=ocsp responder, 11=any ca -v verbose mode.
...possible types are "donotuse", "forbidfetching", "ignore
defaultsrc", "requireinfo" and "failifnoinfo".
gtstd.html
ssl, pkcs #11, and the
default security databases setting up the certificate and key databases building nss programs ssl, pkcs #11, and the
default security databases the basic relationships among the nss libraries are described in introduction to network security services.
... before running the sample programs, it's important to understand the relationships between the ssl interface, the pkcs #11 interface, pkcs #11 modules, and the
default netscape security databases.
... netscape provides three built-in modules with nss and with server and client products: the
default netscape internal pkcs #11 module comes with two built-in tokens: the generic crypto services token performs all cryptographic operations, such as encryption, decryption, and hashing.
...the security module database tool allows you to add and delete pkcs #11 modules, change passwords, set
defaults, list module contents, enable or disable slots, enable or disable fips-140-1 compliance, and assign
default providers for cryptographic operations.
sslcrt.html
getting certificate information cert_findcertbyname cert_getcertnicknames cert_freenicknames cert_get
defaultcertdb nss_findcertkeatype cert_findcertbyname finds the certificate in the certificate database with a specified dn.
... cert_get
defaultcertdb returns a handle to the
default certificate database.
... syntax #include <cert.h> certcertdbhandle *cert_get
defaultcertdb(void); returns the function returns the certcertdbhandle for the
default certificate database.
... description this function is useful for determining whether the
default certificate database has been opened.
NSS Tools cmsutil
-d dbdir specify the key/certificate database directory (
default is ".") -e envfile specify a file containing an enveloped message for a set of recipients to which you would like to send an encrypted message.
... -i infile use infile as a source of data (
default is stdin).
... -o outfile use outfile as a destination of data (
default is stdout).
... -u certusage set type of cert usage (
default is <tt>certusageemailsigner)</tt>.
NSS tools : cmsutil
-d dbdir specify the key/certificate database directory (
default is ".") -e envfile specify a file containing an enveloped message for a set of recipients to which you would like to send an encrypted message.
... -i infile use infile as a source of data (
default is stdin).
... -o outfile use outfile as a destination of data (
default is stdout).
... -u certusage set type of cert usage (
default is certusageemailsigner).
NSS tools : vfychain
modutil can add and delete pkcs #11 modules, change passwords on security databases, set
defaults, list module contents, enable or disable slots, enable or disable fips 140-2 compliance, and assign
default providers for cryptographic operations.
... options -a the following certfile is base64 encoded -b yymmddhhmmz validate date (
default: now) -d directory database directory -f enable cert fetching from aia url -o oid set policy oid for cert validation(format oid.1.2.3) -p use pkix library to validate certificate by calling: * cert_verifycertificate if specified once, * cert_pkixverifycert if specified twice and more.
... -r following certfile is raw binary der (
default) -t following cert is explicitly trusted (overrides db trust) -u usage 0=ssl client, 1=ssl server, 2=ssl stepup, 3=ssl ca, 4=email signer, 5=email recipient, 6=object signer, 9=protectedobjectsigner, 10=ocsp responder, 11=any ca -v verbose mode.
...possible types are "donotuse", "forbidfetching", "ignore
defaultsrc", "requireinfo" and "failifnoinfo".
Introduction to the JavaScript shell
note: starting with spidermonkey 44 (firefox 44 / thunderbird 44 / seamonkey 2.41), the standard, web-compatible javascript version is used by
default (and not js1.7+ anymore).
...(
default if no filename is provided.) --no-ion disables the optimizing jit compiler.
...kind is either 'all' (
default) to count all things or one of 'object', 'double', 'string', 'function', 'qname', 'namespace', 'xml' to count only things of that kind.
...status
defaults to 0 if omitted.
Web Replay
default true.
...
default false.
...
default false architecture there are several main components to the project: the record/replay infrastructure records enough information during recording so that the replayed process can run and produce the same observable behaviors.
... core xpcom and mozglue lock classes and mozilla::atomic atomics are recorded by
default, but many locks and atomics don't actually need to be recorded in order to correctly replay.
A Web PKI x509 certificate primer
firefox uses a
default set of x.509v3 root certificates for various certification authorities (cas).
... the root certificates included by
default have their "trust bits" set to indicate if the ca's root certificates may be used to verify certificates for ssl servers, s/mime email users, and/or digitally-signed code objects without having to ask users for further permission or information.
... cas apply to have their root certificates included by
default in mozilla products by following the mozilla ca certificate policy and applying for inclusion as per ca:how_to_apply.
... users may override the
default root certificate settings using the certificate manager.
Frecency algorithm
the word "frecency" itself is a combination of the words "frequency" and "recency." the
default frecency value for all valid entries is -1.
...0 (places.frecency.
defaultvisitbonus) ..
...10 (places.frecency.
defaultbucketweight, bucket size in places.frecency.
defaultbucketcutoff) ..
...) * weight final frecency score for visited uri = ceiling(total visit count * sum of points for sampled visits / number of sampled visits) example this is an example of a frecency calculation for a uri that is bookmarked and has been visited twice recently (once yesterday, and once last week by clicking a link), and two other times more than 90 days ago: 0
default score +140 100 * (140/100.0) - first bucket weight and bookmarked bonus +84 70 * (120/100.0) - second bucket weight and followed-link bonus +14 10 * (140/100.0) - fifth bucket weight and bookmarked bonus +14 10 * (140/100.0) - fifth bucket weight and bookmarked bonus -- 252 (4 * 252 / 4) - final frecency score notes ...
Manipulating bookmarks using Places
for example, to create a new folder in the bookmarks menu: var menufolder = bmsvc.bookmarksmenufolder; // bookmarks menu folder var newfolderid = bmsvc.createfolder(menufolder, "folder name here", bmsvc.
default_index); this code locates the bookmarks menu's folder, then creates a new folder named "folder name here" in it.
... specifying
default_index as the index at which to insert the new folder places it at the end of the list.
... var ios = components.classes["@mozilla.org/network/io-service;1"] .getservice(components.interfaces.nsiioservice); var uri = ios.newuri("http://google.com/", null, null); var newbkmkid = bmsvc.insertbookmark(newfolderid, uri, bmsvc.
default_index, ""); this example instantiates the nsiioservice and uses it to create an nsiuri referring to the google web site, then calls nsinavbookmarksservice.insertbookmark() to create a new bookmark to google, placing it at the end of the bookmarks folder referenced by newbkmkid.
... var ios = components.classes["@mozilla.org/network/io-service;1"] .getservice(components.interfaces.nsiioservice); var uri = ios.newuri("http://mozilla.com/", null, null); if (!bmsvc.isbookmarked(uri)) { bmsvc.insertbookmark(bmsvc.toolbarfolder, uri, bmsvc.
default_index, "mozilla"); } this example looks to see if the user already has a bookmark for the mozilla web site, and, if not, creates one, adding it to the user's bookmarks toolbar.
nsIAppShellService
if it was not, the
default hidden window was used.
... nsixulwindow createtoplevelwindow( in nsixulwindow aparent, in nsiuri aurl, in boolean ashowwindow, in boolean aload
defaultpage, in pruint32 achromemask, in long ainitialwidth, in long ainitialheight, in nsiappshell aappshell ); parameters aparent the parent window.
... aload
defaultpage obsolete since gecko 1.8 controls whether the window should try to load a
default content page on its own.
...wlessbrowser( in bool aischrome ); var webnav = services.appshell.createwindowlessbrowser(true); var docshell = webnav.queryinterface(ci.nsiinterfacerequestor).getinterface(ci.nsidocshell); var systemprincipal = cc["@mozilla.org/systemprincipal;1"].createinstance(ci.nsiprincipal); docshell.createaboutblankcontentviewer(systemprincipal); var contentwindow = docshell.contentviewer.domdocument.
defaultview; // when you are done with it, destroy it if (webnav.close) { webnav.close() }; // only available in firefox 46+, and is needed for good measure webnav = null; // in firefox <= 45 setting to null will cause it to get gc'ed which will destroy it registertoplevelwindow() add a window to the application's registry of windows.
nsIDBFolderInfo
?????????"] .createinstance(components.interfaces.nsidbfolderinfo); method overview long andflags(in long flags); void changeexpungedbytes(in long delta); void changenummessages(in long delta); void changenumunreadmessages(in long delta); boolean getbooleanproperty(in string propertyname, in boolean
defaultvalue); void getcharacterset(out acstring charset, out boolean overriden); void getcharactersetoverride(out boolean charactersetoverride); obsolete since gecko 1.8 string getcharptrcharacterset(); string getcharptrproperty(in string propertyname); void getlocale(in nsstring result); native code only!
...obsolete since gecko 1.8 astring getproperty(in string propertyname); nsidbfolderinfo gettransferinfo(); unsigned long getuint32property(in string propertyname, in unsigned long
defaultvalue); void initfromtransferinfo(in nsidbfolderinfo transferinfo); long orflags(in long flags); void setbooleanproperty(in string propertyname, in boolean apropertyvalue); void setcharacterset(in string charset); void setcharactersetoverride(in boolean charactersetoverride); obsolete since gecko 1.8 void setcharptrproperty(in string apropertyname, in string apropertyvalue)...
... delta missing description exceptions thrown missing exception missing description changenumunreadmessages() void changenumunreadmessages( in long delta ); parameters delta missing description exceptions thrown missing exception missing description getbooleanproperty() boolean getbooleanproperty( in string propertyname, in boolean
defaultvalue ); parameters propertyname missing description
defaultvalue missing description return value missing description exceptions thrown missing exception missing description getcharacterset() void getcharacterset( out acstring charset, out boolean overriden ); parameters charset missing description overriden missing ...
...return value missing description exceptions thrown missing exception missing description getuint32property() unsigned long getuint32property( in string propertyname, in unsigned long
defaultvalue ); parameters propertyname missing description
defaultvalue missing description return value missing description exceptions thrown missing exception missing description initfromtransferinfo() void initfromtransferinfo( in nsidbfolderinfo transferinfo ); parameters transferinfo missing description exceptions thrown miss...
nsIDOMChromeWindow
inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview void beginwindowmove(in nsidomevent mousedownevent); void getattention(); void getattentionwithcyclecount(in long acyclecount); void maximize(); void minimize(); void notify
defaultbuttonloaded(in nsidomelement
defaultbutton); void restore(); void setcursor(in domstring cursor); attributes attribute type description browserdomwindow nsibrowserdomwindow the related nsibrowserdomwindow instance which provides access to yet another layer of utility functions by chrome script.
...notify
defaultbuttonloaded() when a document has been loaded, the document can notify the
default button of the document to the window by using this method.
...if some xul applications create a dialog like window which has a
default button but it's not created by the dialog/wizard element, the applications should call this method for the accessibility and the usability on windows at onload event.
... void notify
defaultbuttonloaded( in nsidomelement
defaultbutton ); parameters
defaultbutton the
default button element of the window.
nsIDownloadManager
defaultdownloadsdirectory nsilocalfile returns the platform
default downloads directory.
... the path is dependent on two user configurable prefs set in preferences: browser.download.folderlist defines the
default download location for files: 0: files are downloaded to the desktop by
default.
... 1: files are downloaded to the system's downloads folder by
default.
...if this preference is invalid, the download directory falls back to the
default.
nsIHttpChannel
setresponseheader(in acstring header, in acstring value, in boolean merge); void visitoriginalresponseheaders(in nsihttpheadervisitor avisitor); void visitrequestheaders(in nsihttpheadervisitor avisitor); void visitresponseheaders(in nsihttpheadervisitor avisitor); constants constant description referrer_policy_no_referrer_when_downgrade
default; indicates not to pass on the referrer when downgrading from https to http referrer_policy_no_referrer indicates no referrer will be sent referrer_policy_origin only send the origin of the referring uri referrer_policy_origin_when_xorigin same as the
default; only send the origin of the referring uri for cross-origin requests referrer_policy_unsafe_url...
... this attribute is true by
default, though other factors may prevent pipelining.
... requestmethod acstring set or get the http request method (
default is "get").
...since firefox 50 the preference
defaults to true.
nsIIOService
this gives the protocol handler ultimate control over its own security policy while ensuring reasonable,
default protection.
...this
defaults to the principal of aloadingnode, so when aloadingnode is passed this can be left as null.
... this
defaults to the principal of aloadingnode, so when aloadingnode is passed this can be left as null.
...this
defaults to the principal of aloadingnode, so when aloadingnode is passed this can be left as null.
nsIParserUtils
by
default, the sanitizer doesn't try to avoid leaking information that the content was viewed to third parties.
... that is, by
default, for example <img> with a source pointing to an http server potentially controlled by a third party is not removed.
... by
default, non-dangerous non-css presentational html elements and attributes or forms are not removed.
... by
default, comments and css is removed.
nsIScrollable
inherits from: nsiscrollable last changed in gecko 29.0 (firefox 29.0 / thunderbird 29.0 / seamonkey 2.26) method overview long getcurscrollpos(in long scrollorientation); obsolete since gecko 29.0 long get
defaultscrollbarpreferences(in long scrollorientation); void getscrollbarvisibility(out boolean verticalvisible, out boolean horizontalvisible); void getscrollrange(in long scrollorientation, out long minpos, out long maxpos); obsolete since gecko 29.0 void setcurscrollpos(in long scrollorientation, in long curpos); obsolete since gecko 29.0 void setcurscrollposex(in l...
...ong curhorizontalpos, in long curverticalpos); obsolete since gecko 29.0 void set
defaultscrollbarpreferences(in long scrollorientation, in long scrollbarpref); void setscrollrange(in long scrollorientation, in long minpos, in long maxpos); obsolete since gecko 29.0 void setscrollrangeex(in long minhorizontalpos, in long maxhorizontalpos, in long minverticalpos, in long maxverticalpos); obsolete since gecko 29.0 constants scroll orientations scroll orientations a scrollbar can be in.
... return value get
defaultscrollbarpreferences() long get
defaultscrollbarpreferences( in long scrollorientation ); parameters scrollorientation an integer representing the orientation of the scrollbar.
... set
defaultscrollbarpreferences() void set
defaultscrollbarpreferences( in long scrollorientation, in long scrollbarpref ); parameters scrollorientation an integer representing the orientation of the scrollbar.
nsIServerSocket
pass -1 to use the
default value.
... the
default value is 5.
...pass -1 to use the
default value.
... the
default value is 5.
nsIStandardURL
to create an instance, use: var standardurl = components.classes["@mozilla.org/network/standard-url;1"] .createinstance(components.interfaces.nsistandardurl); method overview void init(in unsigned long aurltype, in long a
defaultport, in autf8string aspec, in string aorigincharset, in nsiuri abaseuri); attributes attribute type description mutable boolean control whether or not this url can be modified.
...void init( in unsigned long aurltype, in long a
defaultport, in autf8string aspec, in string aorigincharset, in nsiuri abaseuri ); parameters aurltype one of the constants listed above.
... a
defaultport if the port parsed from the url string matches this port, then the port will be removed from the canonical form of the url.
...if null, then provide abaseuri implements this interface, the origin charset of abaseuri will be assumed, otherwise
defaulting to utf-8 (that is, no charset transformation from aspec).
nsITaskbarWindowPreview
window preview behavior by
default, windows implements much of the behavior for applications in a standard way.
...by
default, however, windows handles this drawing by itself.
... in addition, these previews are visible by
default.
...note: by
default, all buttons are hidden.
nsITransport
asegmentsize if open_unbuffered is not set, then this parameter specifies the size of each buffer segment (pass 0 to use
default value).
... asegmentcount if open_unbuffered is not set, then this parameter specifies the maximum number of buffer segments (pass 0 to use
default value).
... asegmentsize if open_unbuffered is not set, then this parameter specifies the size of each buffer segment (pass 0 to use
default value).
... asegmentcount if open_unbuffered is not set, then this parameter specifies the maximum number of buffer segments (pass 0 to use
default value).
nsIWebBrowserPersist
it is best to set this value explicitly unless you are prepared to accept the
default values.
...may also be combined with encode_flags_lf_linebreaks and if neither is specified, the platform
default format is used.
...may also be combined with encode_flags_cr_linebreaks and if neither is specified, the platform
default format is used.
... aoutputcontenttype the desired mime type format to save the document and all sub-documents into or nsnull to use the
default behavior.
nsIWinTaskbar
by
default, there is a single taskbar preview per top level window (excluding pop-ups).
...
defaultgroupid astring the
default application user model id the application registers with the system.
... for xulrunner applications, the
defaultgroupid attribute is configured using application.ini settings, and is of the format "vendor.application.version".
... for example, if the vendor is configured to "foobar systems", the application's name is "squashweb", and the application's version is 1.0, the
defaultgroupid attribute would be "foobar systems.squashweb.1.0".
Reference Manual
null-dereference safeguards an nscomptr will also assert at runtime if you try to dereference it when it is void, e.g., nscomptr<nsifoo> foo; // note:
default initialized to |0| foo->dosomething(); // ns_precondition: "you can't dereference a null nscomptr with operator->()" a similar precondition intervenes on behalf of operator*.
...nscomptr<t> = t*, nscomptr<t> = dont_queryinterface( t* ) the
default behavior, shown in the table as t*, is to addref the new value, but not to call queryinterface against it.
... //
default construction, followed by // assignment is not as efficient...
...the case using the temporary, however, uses construction to put the value into the nscomptr, which (though slightly more complicated in source) is more efficient than
default construction followed by assignment, the course of events followed by the simpler example.
Activity Manager examples
if the
default implementation of nsiactivityprocess, nsiactivitywarning and nsiactivityevent are not sufficient for the activity initiator, activity developers can provide their own components to extend the capabilities.
...
default implementations can be found in nsactivity.js file.
... if activity developers would like to extend the
default ui representation of the activity types, they can provide their own xbl elements for their own activity types.
...ponents.classes["@mozilla.org/activity-manager;1"].getservice(nsiam); let process = components.classes["@mozilla.org/activity-process;1"].createinstance(nsiap); // assuming folder is an instance of nsimsgfolder interface // localization is omitted, initiator is not provided process.init("processing folder: " + folder.prettiestname, null); // note that we don't define a custom icon,
default process icon // will be used process.contexttype = "account"; // group this activity by account process.contextobj = folder.server; // account in question gactivitymanager.addactivity(process); // step 2: showing some progress let percent = 50; process.setprogress(percent, "junk processing 25 of 50 messages", 25, 50); // step 3: removing the process and adding an event using process' att...
Using MAPI with Thunderbird's Windows 7 developer builds
mapi (messaging application programming interface) is a windows feature that allows applications to send files via a system's
default mail application.
... the thunderbird installer sets the installed build as the
default mapi/mail client.
... if you want to set a debug build as the
default mail client, you need configure it manually: in the objdir/mozilla/dist/bin directory, copy mozmapi32.dll to mozmapi32_inuse.dll and mapiproxy to mapiproxy_inuse.dll.
... (be sure to copy - not move - these files.) in the uninstall sub-directory of the bin directory, run these two commands: helper.exe /setas
defaultappglobal helper.exe /setas
defaultappuser create an elevated shell and register the mapi proxy.dll as a com server.
Using the Multiple Accounts API
you can add (and eventually delete) servers and have a
default server.
... var server = smtpservice.createsmtpserver(); server.hostname = "smtp.myisp.com"; the
default smtp server is the first server in the list in your preferences.
... 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.
... eventually there will be the concept of a session
default server, and a permenant
default server.
Mozilla
the
default values given are for firefox 3.
... productization guide productization is the choice of ''
default'' search engines, content and protocol handlers, bookmarks, links to recommended sites on the in-product pages, etc.
...for example, a search provider can deliver a very good quality of search results — but only in a specific country or language, and we have to take this into account when considering
default search engines for a locale.
... hence there is a need to customize the set of
default web services on a per-locale basis in order to ensure a good user experience across all locales.
Plug-in Basics - Plugins
i found other way how check which paths support firefox : $ strace -y /usr/bin/firefox 2>&1 | grep acces | grep -v search | grep plugins access("/home/user_name/.mozilla/firefox/dqh2nb5k.
default-1441864569209/plugins", f_ok) = -1 enoent (no such file or directory) access("/home/user_name/.mozilla/plugins", f_ok) = -1 enoent (no such file or directory) access("/usr/lib64/firefox/browser/plugins", f_ok) = -1 enoent (no such file or directory) access("/usr/lib/mozilla/plugins", f_ok) = 0 this output i have after close firefox.
...note, however, that plug-ins are windowed by
default, because windowed plug-ins are in general easier to develop and more stable to use.
...though the object element is the preferred way to invoke plug-ins (see using the object element for plug-in display), the embed element can be used for backward compatibility with netscape 4.x browsers, and in cases where you specifically want to prompt the user to install a plug-in, because the
default plug-in is only automatically invoked when you use the embed element.
...for a visible plug-in, you must include width and height if you use type; no
default value is used.
Browser Console - Firefox Developer Tools
nb: the browser console command line (to execute javascript expressions) is disabled by
default.
...by
default, only error messages are logged to the console, although you can change this in the browser's preferences.
... browser console command line the browser console command line is disabled by
default.
...on windows, the following code will add a new item to the browser's main menu: var parent = window.document.getelementbyid("appmenuprimarypane"); var makethetea = gbrowser.ownerdocument.
defaultview.document.createelementns("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menuitem"); makethetea.setattribute("label", "a nice cup of tea?"); parent.appendchild(makethetea); on macos, this similar code will add a new item to the "tools" menu: var parent = window.document.getelementbyid("menu_toolspopup"); var makethetea = gbrowser.ownerdocument.
defaultview.document.createel...
Inspecting web sockets - Firefox Developer Tools
the following filters are available: all displays all messages (by
default, except control messages).
... sent displays only messages sent by the browser (by
default, except control messages).
... received displays only messages received from the server (by
default, except control messages).
... columns in the response pane in the response pane, you can choose to show the following information about each frame: data size time opcode maskbit finbit the data and time columns are visible by
default, but you can customize the interface to see more columns by choosing which ones to show from the context menu that is opened by right-clicking in the table header.
Edit fonts - Firefox Developer Tools
they are applied to the element as part of the browser's
default styling (times new roman for most browsers), and no author-defined font has been supplied.
... the url to the font file in the case of web fonts not available on your system, or "system" in the case of fonts loaded from your computer (either
default system fonts, or web fonts that you've also got installed on your system).
...the
default text for the sample is "abc" but the preview text can be edited by clicking on the input field at the top of the section and entering a new value.
... the first image shows the font as it is used on the page with
default settings.
Toolbox - Firefox Developer Tools
by
default, the window appears docked to the bottom side of the firefox window, but you can detach it if you like.
... docking mode by
default, the toolbox appears docked to the bottom of the browser window, but you can also dock it to the right-hand side of the window, or make it a standalone window, using buttons in the toolbar.
...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).
... the following tools are not included in the toolbar by
default, but you can add them in the settings: highlight painted area 3d view (note that this is not available in firefox 40) scratchpad grab a color from the page take a screenshot of the entire page: take a screenshot of the complete web page and saves it in your downloads directory toggle rulers for the page measure a portion of the page: measure a part of the website by selecting areas within the page toolbox controls finally there's a row of buttons to: close the window toggle the window between attached to the bottom of the browser window, and attached to the side of the browser window toggle the window between standalone and attached to the browser window access developer tool settings settings see the separate ...
The JavaScript input interpreter - Firefox Developer Tools
you can enter multiple lines of javascript by
default in this mode, pressing enter after each one.
...if unspecified, element
defaults to document.
...if unspecified, element
defaults to document.
...if unspecified, element
defaults to document.
Web Console remoting - Firefox Developer Tools
for example: ["pageerror", "consoleapi", "networkactivity", "fileactivity"] the web console actor does not start any listeners by
default.
...the
default source url for evaluation is "debugger eval code".
... in firefox 23: we renamed the error and errormessage properties to exception and exceptionmessage respectively, to avoid conflict with the
default properties used when protocol errors occur.
... autocomplete and more the autocomplete request packet: { "to": "conn0.console9", "type": "autocomplete", "text": "d", "cursor": 1 } the response packet: { "from": "conn0.console9", "matches": [ "decodeuri", "decodeuricomponent", "
defaultstatus", "devicepixelratio", "disableexternalcapture", "dispatchevent", "domyxhr", "document", "dump" ], "matchprop": "d" } there's also the clearmessagescache request packet that has no response.
AudioBufferSourceNode - Web APIs
its
default value is 0 (meaning no detuning), and its nominal range is -∞ to ∞.
...its
default value is false.
...its
default value is 0 (meaning that at the beginning of each loop, playback begins at the start of the audio buffer).
...the
default value is 0.
BiquadFilterNode() - Web APIs
the
defaults for all are as follows: q: 1 detune: 0 frequency: 350 gain: 0 lowpass: (
default) allows frequencies below a cutoff frequency to pass through, and attenuates frequencies above the cutoff.
... desktopmobilechromeedgefirefoxinternet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetbiquadfilternode() constructorchrome full support 55notes full support 55notes notes before chrome 59, the
default values were not supported.edge full support ≤79firefox full support 53ie no support noopera full support 42notes full support 42notes notes before opera 46, the
default va...
... webview android full support 55notes full support 55notes notes before version 59, the
default values were not supported.chrome android full support 55notes full support 55notes notes before chrome 59, the
default values were not supported.firefox android full support 53opera android full support 42notes full support 42notes notes before opera 46, the
default values were not supported.safari ios ?
... samsung internet android full support 6.0notes full support 6.0notes notes before samsung internet 7.0, the
default values were not supported.legend full support full support no support no support compatibility unknown compatibility unknownsee implementation notes.see implementation notes.
CacheStorage.match() - Web APIs
it
defaults to false.
... ignoremethod: a boolean that, when set to true, prevents matching operations from validating the request http method (normally only get and head are allowed.) it
defaults to false.
...it
defaults to false.
... if not, open the v1 cache using open(), put the
default network request in the cache using cache.put() and return a clone of the
default network request using return response.clone().
Transformations - Web APIs
until now, we only used the
default grid and changed the size of the overall canvas for our needs.
... function draw() { var ctx = document.getelementbyid('canvas').getcontext('2d'); ctx.fillrect(0, 0, 150, 150); // draw a rectangle with
default settings ctx.save(); // save the
default state ctx.fillstyle = '#09f'; // make changes to the settings ctx.fillrect(15, 15, 120, 120); // draw a rectangle with new settings ctx.save(); // save the current state ctx.fillstyle = '#fff'; // make changes to the settings ctx.globalalpha = 0.5; ctx.fillrect(30, 30, 90, 90); // draw a rectang...
...ttings ctx.restore(); // restore previous state ctx.fillrect(45, 45, 60, 60); // draw a rectangle with restored settings ctx.restore(); // restore original state ctx.fillrect(60, 60, 30, 30); // draw a rectangle with restored settings } <canvas id="canvas" width="150" height="150"></canvas> draw(); the first step is to draw a large rectangle with the
default settings.
... by
default, one unit on the canvas is exactly one pixel.
DOMMatrix - Web APIs
the
default vector is [0, 0, 0].
...by
default, the y and z axes' scaling factors are both 1, but the scaling factor for x must be specified.
... the
default origin is (0, 0, 0).
...by
default, the scaling factor is 1 for all three axes, and the origin is (0, 0, 0).
DOMMatrixReadOnly.scale() - Web APIs
if not supplied, this
defaults to the value of scalex.
... if no origin is supplied, this
defaults to 0.
... if no origin is supplied, this
defaults to 0.
... if no origin is supplied, this
defaults to 0.
DOMPointInit - Web APIs
the
default value is 0.
...the
default is 0.
...the
default value is 0.
...the
default is 1.
Document.importNode() - Web APIs
note: in the dom4 specification, deep was an optional argument with a
default value of true.
... this
default has changed in the latest spec!
... the new
default value is false.
... starting with gecko 29.0 (firefox 29 / thunderbird 29 / seamonkey 2.26)), a shallow clone is
defaulted instead of a deep clone.
Event.cancelable - Web APIs
event listeners that handle multiple kinds of events may want to check cancelable before invoking their prevent
default() methods.
... event.prevent
default(); } else { // the event cannot be canceled, so it is not safe // to call prevent
default() on it.
... to cancel an event, call the prevent
default() method on the event.
... this keeps the implementation from executing the
default action that is associated with the event.
Event - Web APIs
event.
defaultprevented read only indicates whether or not the call to event.prevent
default() canceled the event.
...ideally, you should try to use event.prevent
default() and event.
defaultprevented instead, but you can use returnvalue if you choose to do so.
... event.prevent
default() cancels the event (if it is cancelable).
... event.getprevent
default() returns the value of event.
defaultprevented.
FetchEvent - Web APIs
fetchevent.respondwith() prevent the browser's
default fetch handling, and provide (a promise for) a response yourself.
... examples this fetch event uses the browser
default for non-get requests.
... self.addeventlistener('fetch', event => { // let the browser do its
default thing // for non-get requests.
... if (event.request.method != 'get') return; // prevent the
default, and handle the request ourselves.
GainNode() - Web APIs
the
default is 1.
... desktopmobilechromeedgefirefoxinternet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetgainnode() constructorchrome full support 55notes full support 55notes notes before chrome 59, the
default values were not supported.edge full support ≤79firefox full support 53ie no support noopera full support 42safari ?
... webview android full support 55notes full support 55notes notes before chrome 59, the
default values were not supported.chrome android full support 55notes full support 55notes notes before chrome 59, the
default values were not supported.firefox android full support 53opera android full support 42safari ios ?
... samsung internet android full support 6.0notes full support 6.0notes notes before samsung internet 7.0, the
default values were not supported.legend full support full support no support no support compatibility unknown compatibility unknownsee implementation notes.see implementation notes.
HTMLCanvasElement.getContext() - Web APIs
this option is only available, if the flag gfx.canvas.willreadfrequently.enable is set to true (which, by
default, is only the case for b2g/firefox os).
... (blink only) storage: string that indicates which storage is used ("persistent" by
default).
...possible values are: "
default": let the user agent decide which gpu configuration is most suitable.
... this is the
default value.
HTMLCanvasElement.toDataURL() - Web APIs
the htmlcanvaselement.todataurl() method returns a data uri containing a representation of the image in the format specified by the type parameter (
defaults to png).
...the
default format type is image/png.
... if this argument is anything else, the
default value for image quality is used.
... the
default value is 0.92.
HTMLInputElement - Web APIs
defaultchecked boolean: returns / sets the
default state of a radio button or checkbox as originally specified in html that created this object.
... properties not yet categorized
defaultvalue string: returns / sets the
default value as originally specified in the html that created this object.
... htmlinputelement.stepdown() decrements the value by (step * n), where n
defaults to 1 if not specified.
... htmlinputelement.stepup() increments the value by (step * n), where n
defaults to 1 if not specified.
HTMLMediaElement - Web APIs
htmlmediaelement.
defaultmuted a boolean that reflects the muted html attribute, which indicates whether the media element's audio output should be muted by
default.
... htmlmediaelement.
defaultplaybackrate a double indicating the
default playback rate for the media.
...this number is a total for all channels, and by
default is set to be the number of channels * 1024 (e.g., 2 channels * 1024 samples = 2048 total).
... htmlmediaelement.sinkid read only returns a domstring that is the unique id of the audio device delivering output, or an empty string if it is using the user agent
default.
File drag and drop - Web APIs
the following code snippet shows how this is done with a <div> element: <div id="drop_zone" ondrop="drophandler(event);"> <p>drag one or more files to this drop zone ...</p> </div> typically, an application will include a dragover event handler on the drop target element and that handler will turn off the browser's
default drag behavior.
... function drophandler(ev) { console.log('file(s) dropped'); // prevent
default behavior (prevent file from being opened) ev.prevent
default(); if (ev.datatransfer.items) { // use datatransferitemlist interface to access the file(s) for (var i = 0; i < ev.datatransfer.items.length; i++) { // if dropped items aren't files, reject them if (ev.datatransfer.items[i].kind === 'file') { var file = ev.datatransfer.items[i].getasfile(); consol...
...file[' + i + '].name = ' + ev.datatransfer.files[i].name); } } } prevent the browser's
default drag behavior the following dragover event handler calls prevent
default() to turn off the browser's
default drag and drop handler.
... function dragoverhandler(ev) { console.log('file(s) in drop zone'); // prevent
default behavior (prevent file from being opened) ev.prevent
default(); } see also html drag and drop api drag operations html5 living standard: drag and drop ...
IIRFilterNode() - Web APIs
the filter needs these values to work and with the vast range of filters available, there is no
default.
... desktopmobilechromeedgefirefoxinternet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetiirfilternode() constructorchrome full support 55notes full support 55notes notes before version 59, the
default values were not supported.edge full support ≤79firefox full support 53ie no support noopera full support 42safari ?
... webview android full support 55notes full support 55notes notes before version 59, the
default values were not supported.chrome android full support 55notes full support 55notes notes before version 59, the
default values were not supported.firefox android full support 53opera android full support 42safari ios ?
... samsung internet android full support 6.0notes full support 6.0notes notes before samsung internet 7.0, the
default values were not supported.legend full support full support no support no support compatibility unknown compatibility unknownsee implementation notes.see implementation notes.
KeyboardEvent.key - Web APIs
for a given key press, the sequence of keyboardevents fired is as follows assuming that event.prevent
default is not called: a keydown event is first fired.
... window.addeventlistener("keydown", function (event) { if (event.
defaultprevented) { return; // do nothing if the event was already processed } switch (event.key) { case "down": // ie/edge specific value case "arrowdown": // do something for "down arrow" key press.
... break;
default: return; // quit when this doesn't handle the key event.
... } // cancel the
default action to avoid it being handled twice event.prevent
default(); }, true); specification specification status comment ui eventsthe definition of 'keyboardevent.key' in that specification.
Node - Web APIs
by
default, it clones the content of the node.
... node.is
defaultnamespace() accepts a namespace uri as an argument and returns a boolean with a value of true if the namespace is the
default namespace on the given node or false if not.
...supplying null for the prefix will return the
default namespace.
... added the following methods: comparedocumentposition(), issamenode(), lookupprefix(), is
defaultnamespace(), lookupnamespaceuri(), isequalnode(), getfeature(), setuserdata(), and getuserdata().
Notification.Notification() - Web APIs
it
defaults to auto, which just adopts the browser's language setting behavior, but you can override that behaviour by setting values of ltr and rtl (although most browsers seem to ignore these settings.) lang: the notification's language, as specified using a domstring representing a bcp 47 language tag.
...the
default is false, which means they won't be notified.
...the
default value is false.
...the
default is false, which means it won't be silent.
RTCConfiguration - Web APIs
the
default value is 0 (meaning no candidate prefetching will occur).
...if the policy isn't specified, all is assumed by
default, allowing all candidates to be considered.
...if this value is set (it
defaults to null), the rtcpeerconnection will not connect to a remote peer unless it can successfully authenticate with the given name.
...the
default is "require".
RTCIceCandidateInit - Web APIs
the
default is the empty string.
...the
default is null.
...the
default is null.
...this property has no
default value and is not present unless set explicitly.
RTCPeerConnection() - Web APIs
the
default value is 0 (meaning no candidate prefetching will occur).
...if this value is set (it
defaults to null), the rtcpeerconnection will not connect to a remote peer unless it can successfully authenticate with the given name.
...the
default is "require".
... return value a newly-created rtcpeerconnection object, configured as described by configuration, if specified; otherwise, configured to appropriate basic
defaults.
RTCPeerConnection.createOffer() - Web APIs
the
default is false.
...the
default behavior is to offer to receive audio only if the local side is sending audio, not otherwise.
...the
default behavior is to offer to receive video only if the local side is sending video, not otherwise.
...this option
defaults to true (voice activity detection enabled).
RTCPeerConnectionIceEvent() - Web APIs
options a dictionary of type rtcpeerconnectioninit, which may contain one or more of the following fields: "candidate" (optional,
default is null): a rtcicecandidate representing the ice candidate being concerned by the event.
... "url" (optional,
default is null): the url of the stun or turn server which was used to gather the candidate.
... "bubbles" (optional,
default is false): inherited from eventinit(), this boolean option indicates whether or not the event must bubble.
... "cancelable" (optional,
default is false, inherited from eventinit(), this boolean indicates whether or not the event can be canceled.
SVGGraphicsElement: cut event - Web APIs
bubbles yes cancelable yes interface clipboardevent event handler property oncut the eventʼs
default action is to copy the current selection (if any) to the system clipboard and remove it from the document.
... a handler for this event can modify the clipboard contents by calling setdata(format, data) on the event's clipboardevent.clipboarddata property, and cancelling the
default action using event.prevent
default().
... note though that cancelling the
default action will also prevent the document from being updated.
... so an event handler which wants to emulate the
default action for "cut" while modifying the clipboard must also manually remove the selection from the document.
SpeechRecognition - Web APIs
if not specified, this
defaults to the html lang attribute value, or the user agent's language setting if that isn't set either.
...
defaults to single (false.) speechrecognition.interimresults controls whether interim results should be returned (true) or not (false.) interim results are results that are not yet final (e.g.
...the
default value is 1.
...the
default is the user agent's
default speech service.
SpeechSynthesisUtterance.pitch - Web APIs
if unset, a
default value of 1 will be used.
... syntax //
default 1 speechsynthesisutteranceinstance.pitch = 1.5; value a float representing the pitch value.
... it can range between 0 (lowest) and 2 (highest), with 1 being the
default pitch for the current platform or voice.
... inputform.onsubmit = function(event) { event.prevent
default(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selectedoptions[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } utterthis.pitch = 1.5; synth.speak(utterthis); inputtxt.blur(); } specifications specification status...
TextTrack.mode - Web APIs
safari additionally requires the
default boolean attribute to be set to true when implementing your own video player controls in order for the subtitles cues to be shown.
...this is the
default value, unless the text track has the
default boolean attribute is specified, in which case the
default is showing.
...this is the
default value if the text track's
default boolean attribute is specified.
... usage notes the
default mode is disabled, unless the
default boolean attribute is specified, in which case the
default mode is showing.
WaveShaperNode.WaveShaperNode() - Web APIs
the
default is 'none'.
... desktopmobilechromeedgefirefoxinternet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetwaveshapernode() constructorchrome full support 55notes full support 55notes notes before chrome 59, the
default values were not supported.edge full support ≤79firefox full support 53ie no support noopera full support 42safari ?
... webview android full support 55notes full support 55notes notes before chrome 59, the
default values were not supported.chrome android full support 55notes full support 55notes notes before chrome 59, the
default values were not supported.firefox android full support 53opera android full support 42safari ios ?
... samsung internet android full support 6.0notes full support 6.0notes notes before samsung internet 7.0, the
default values were not supported.legend full support full support no support no support compatibility unknown compatibility unknownsee implementation notes.see implementation notes.
Starting up and shutting down a WebXR session - Web APIs
webxr availability as a new and still in development api, webxr support is limited to specific devices and browsers; and even on those, it may not be enabled by
default.
... let webxrpolyfill = null; function getxr(usepolyfill) { let tempxr; let temppoly; switch(usepolyfill) { case "if-needed": if (!navigator.xr) { webxrpolyfill = new webxrpolyfill(); } tempxr = navigator.xr; break; case "yes": webxrpolyfill = new webxrpolyfill(); tempxr = navigator.xr; break; case "no":
default: tempxr = navigator.xr; break; } return tempxr; } const xr = getxr("no"); // get the native xrsystem object const xr = getxr("yes"); // always returns an xrsystem from the polyfill const xr = getxr("if-needed"); // use the polyfill only if navigator.xr missing the returned xrsystem object can then be used according to the documentation provided here on mdn.
...the input value into getoffsetreferencespace() is an xrrigidtransform encapsulating the player's position and orientation as specified in the
default world coordinates.
... session.onvisibilitychange = (event) => { switch(event.session.visibilitystate) { case "hidden": myframerate = 10; break; case "blurred-visible": myframerate = 30; break; case "visible":
default: myframerate = 60; break; } }; this example changes a variable myframerate depending on the visibility state as it changes.
Using the Web Animations API - Web APIs
browser support the basic web animations api features discussed in this article are available by
default in firefox 48+ and chrome 36+.
... so to recap, the keys are equally spaced by
default unless you specify an offset on a key.
...we aren’t listing an easing value here because, unlike css animations where the
default animation-timing-function is ease, in the web animations api the
default easing is linear — which is what we want here.
...: document.getelementbyid("alice").animate( [ { transform: 'rotate(0) translate3d(-50%, -50%, 0)', color: '#000' }, { color: '#431236', offset: 0.3}, { transform: 'rotate(360deg) translate3d(-50%, -50%, 0)', color: '#000' } ], { duration: 3000, iterations: infinity } ); what’s more, if we only wanted to specify the duration of the animation and not its iterations (by
default, animations iterate once), we could pass in the milliseconds alone: document.getelementbyid("alice").animate( [ { transform: 'rotate(0) translate3d(-50%, -50%, 0)', color: '#000' }, { color: '#431236', offset: 0.3}, { transform: 'rotate(360deg) translate3d(-50%, -50%, 0)', color: '#000' } ], 3000); controlling playback with play(), pause(), reverse(), and updateplaybackrate() w...
Advanced techniques: Creating and sequencing audio - Web APIs
however, instead of using the standard waves that come by
default, we're going to create our own using the periodicwave interface and values set in a wavetable.
... initial oscillator we'll set up our first oscillatornode the same way as our sweep sound, except we won't use a wavetable to set a bespoke wave — we'll just use the
default sine wave: let osc = audioctx.createoscillator(); osc.type = 'sine'; osc.frequency.value = 880; now we're going to create a gainnode, as it's the gain value that we will oscillate with our second, low frequency oscillator: let amp = audioctx.creategain(); amp.gain.setvalueattime(1, audioctx.currenttime); creating the second, low frequency, oscillator we'll now create a second — square — ...
...n of our first sine wave: let lfo = audioctx.createoscillator(); lfo.type = 'square'; lfo.frequency.value = 30; connecting the graph the key here is connecting the graph correctly, and also starting both oscillators: lfo.connect(amp.gain); osc.connect(amp).connect(audioctx.destination); lfo.start(); osc.start(); osc.stop(audioctx.currenttime + pulsetime); note: we also don't have to use the
default wave types for either of these oscillators we're creating — we could use a wavetable and the periodic wave method as we did before.
... let's start by setting up our
default bpm (beats per minute), which will also be user-controllable via — you guessed it — another range input.
WheelEvent() - Web APIs
wheeleventinit optional is a wheeleventinit dictionary, having the following fields: "deltax", optional and
defaulting to 0.0, is a double representing the horizontal scroll amount in the deltamode unit.
... "deltay", optional and
defaulting to 0.0, is a double representing the vertical scroll amount in the deltamode unit.
... "deltaz", optional and
defaulting to 0.0, is a double representing the scroll amount for the z-axis in the deltamode unit.
... "deltamode", optional and
defaulting to 0, is a unsigned long representing the unit of the delta values scroll amount.
Window.prompt() - Web APIs
syntax result = window.prompt(message,
default); parameters message optional a string of text to display to the user.
...
default optional a string containing the
default value displayed in the text input field.
... note that in internet explorer 7 and 8, if you do not provide this parameter, the string "undefined" is the
default value.
...i'm a scorpio too!"); } // there are many ways to use the prompt feature sign = window.prompt(); // open the blank prompt window sign = prompt(); // open the blank prompt window sign = window.prompt('are you feeling lucky'); // open the window with text "are you feeling lucky" sign = window.prompt('are you feeling lucky', 'sure'); // open the window with text "are you feeling lucky" and
default value "sure" when the user clicks the ok button, text entered in the input field is returned.
Window: unhandledrejection event - Web APIs
you can prevent this by calling prevent
default() on the promiserejectionevent; see preventing
default handling below for an example.
... window.addeventlistener("unhandledrejection", event => { console.warn(`unhandled promise rejection: ${event.reason}`); }); you can also use the onunhandledrejection event handler property to set up the event listener: window.onunhandledrejection = event => { console.warn(`unhandled promise rejection: ${event.reason}`); }; preventing
default handling many environments (such as node.js) report unhandled promise rejections to the console by
default.
... you can prevent that from happening by adding a handler for unhandledrejection events that—in addition to any other tasks you wish to perform—calls prevent
default() to cancel the event, preventing it from bubbling up to be handled by the runtime's logging code.
... // prevent the
default handling (such as outputting the // error to the console) event.prevent
default(); }); specifications specification status comment html living standardthe definition of 'unhandledrejection' in that specification.
Using XMLHttpRequest - Web APIs
a brief introduction to the submit methods an html <form> can be sent in four ways: using the post method and setting the enctype attribute to application/x-www-form-urlencoded (
default); using the post method and setting the enctype attribute to text/plain; using the post method and setting the enctype attribute to multipart/form-data; using the get method (in this case the enctype attribute will be ignored).
...if you are using the post method the server will receive a string similar to one of the following three examples, depending on the encoding type you are using: method: post; encoding type: application/x-www-form-urlencoded (
default): content-type: application/x-www-form-urlencoded foo=bar&baz=the+first+line.%0d%0athe+second+line.%0d%0a method: post; encoding type: text/plain: content-type: text/plain foo=bar baz=the first line.
..." onsubmit="ajaxsubmit(this); return false;"> <fieldset> <legend>registration example</legend> <p> first name: <input type="text" name="firstname" /><br /> last name: <input type="text" name="lastname" /> </p> <p> <input type="submit" value="submit" /> </p> </fieldset> </form> <h2>using the post method</h2> <h3>enctype: application/x-www-form-urlencoded (
default)</h3> <form action="register.php" method="post" onsubmit="ajaxsubmit(this); return false;"> <fieldset> <legend>registration example</legend> <p> first name: <input type="text" name="firstname" /><br /> last name: <input type="text" name="lastname" /> </p> <p> <input type="submit" value="submit" /> </p> </fieldset> </form> <h3>enctype: text/plain</h3> <...
..." onsubmit="ajaxsubmit(this); return false;"> <fieldset> <legend>registration example</legend> <p> first name: <input type="text" name="firstname" /><br /> last name: <input type="text" name="lastname" /> </p> <p> <input type="submit" value="submit" /> </p> </fieldset> </form> <h2>using the post method</h2> <h3>enctype: application/x-www-form-urlencoded (
default)</h3> <form action="register.php" method="post" onsubmit="ajaxsubmit(this); return false;"> <fieldset> <legend>registration example</legend> <p> first name: <input type="text" name="firstname" /><br /> last name: <input type="text" name="lastname" /> </p> <p> <input type="submit" value="submit" /> </p> </fieldset> </form> <h3>enctype: text/plain</h3> <...
XRWebGLLayerInit.framebufferScaleFactor - Web APIs
the xrwebgllayerinit dictionary's framebufferscalefactor property, when specified upon instantiating a new xrwebgllayer using its constructor, xrwebgllayer(), specifies the scaling factor to use when determining the size of the frame buffer to use when rendering the scene, relative to the
default xr device display resolution.
... you can determine the scaling factor that you would need to apply to match the
default frame buffer resolution by using the xrwebgllayer.getnativeframebufferscalefactor() static function.
... syntax let layerinit = { framebufferscalefactor: scalefactor }; let gllayer = new xrwebgllayer(xrsession, gl, layerinit); let gllayer = new xrwebgllayer(xrsession, gl, { framebufferscalefactor: scalefactor }); value a floating-point value indicating a multiplier to apply to the
default frame buffer resolution in order to determine the resolution of the frame buffer for the xrwebgllayer.
... example in this example, a new xrwebgllayer is created for a webxr session, xrsession, with a frame buffer whose resolution is half that of the
default display resolution of the xr device.
ARIA: grid role - Accessibility
the
default value is false.
...the
default value is false.
...; do { result = moveto(i, event.target.dataset.col); i++; } while (result == false); break; case "pagedown": var i = maxrow; var result; do { result = moveto(i, event.target.dataset.col); i--; } while (result == false); break; case "enter": alert(event.target.textcontent); break; } event.prevent
default(); }); html <table role="grid" aria-labelledby="calendarheader"> <caption id="calendarheader">september 2018</caption> <thead role="rowgroup"> <tr role="row"> <td></td> <th role="columnheader" aria-label="sunday">s</th> <th role="columnheader" aria-label="monday">m</th> <th role="columnheader" aria-label="tuesday">t</th> <th role="columnheader" aria-lab...
...; do { result = moveto(i, event.target.dataset.col); i++; } while (result == false); break; case "pagedown": var i = maxrow; var result; do { result = moveto(i, event.target.dataset.col); i--; } while (result == false); break; case "enter": alert(event.target.textcontent); break; } event.prevent
default(); }); more examples data grid examples layout grids examples w3c/wai tutorial: tables accessibility concerns even if the keyboard use is properly implemented, some users might not be aware that they have to use the arrow keys.
ARIA: button role - Accessibility
if the attribute is omitted or set to its
default value of aria-pressed="undefined", the element does not support being pressed.
... html <h1>aria button example</h1> <ul id="namelist"></ul> <label for="newname">enter your name: </label> <input type="text" id="newname"> <span role="button" tabindex="0" onclick="handlecommand()" onkeydown="handlecommand()">add name</span> css [role="button"] { padding: 2px; background-color: navy; color: white; cursor:
default; } [role="button"]:hover, [role="button"]:focus, [role="button"]:active { background-color: white; color: navy; } ul { list-style: none; } javascript function handlecommand(event) { // handles both mouse clicks and keyboard // activate with enter or space // get the new name value from the input element let newnameinput = document.getelementbyid('newname'); let...
...ent; } button:active, button:focus, [role="button"][aria-pressed="true"] { border: 2px solid #000; } javascript function handlebtnclick(event) { togglebutton(event.target); } function handlebtnkeydown(event) { // check to see if space or enter were pressed if (event.key === " " || event.key === "enter" || event.key === "spacebar") { // "spacebar" for ie11 support // prevent the
default action to stop scrolling when space is pressed event.prevent
default(); togglebutton(event.target); } } function togglebutton(element) { var audio = document.getelementbyid('audio'); // check to see if the button is pressed var pressed = (element.getattribute("aria-pressed") === "true"); // change aria-pressed to the opposite state element.setattribute("aria-pressed", !pressed...
... where possible, it is recommended to use native html buttons (<button>, <input type="button">, <input type="submit">, <input type="reset"> and <input type="image">) rather than the button role, as native html buttons are supported by all user agents and assistive technology and provide keyboard and focus requirements by
default, without need for additional customization.
Keyboard-navigable JavaScript widgets - Accessibility
using tabindex by
default, when people use the tab key to browse a webpage, only interactive elements (like links, form controls) get focused.
... the order in which elements gain focus when using a keyboard, is the source order by
default.
... elements with a positive tabindex are put before the
default interactive elements on the page, which means page authors will have to set (and maintain) tabindex values for all focusable elements on the page whenever they use one or more positive values for tabindex.
...tabindex="0") yes in tab order relative to element's position in document (note that interactive elements like <a> have this behavior by
default, they don't need the attribute).
Keyboard - Accessibility
most interactive elements are focusable by
default; you can make an element focusable by adding a tabindex=0 attribute value to it.
...a value of zero indicates that the element is part of the
default focus order, which is based on the ordering of elements in the html document.
... a positive value puts the element ahead of those in the
default ordering; elements with positive values are focused in the order of their tabindex values (1, then 2, then 3, etc.).
... standard focusable elements such as links and input fields are given special styling by the browser by
default, so you might not need to specify focus styling for such elements, unless you want the focus styling to be more distinctive.
OpenType font features guide - CSS: Cascading Style Sheets
some fonts will have one or more of these features enabled by
default (kerning and
default ligatures are common examples), while others are left to the designer or developer to choose to enable in specific scenarios.
...this is generally on by
default (as recommended by the opentype specification).
...(meaning that if kerning is on by
default, it will still be on even with a value of none being supplied here.) font feature settings font-feature-settings is the 'low level syntax' that allows explicit access to every named available opentype feature.
...this is helpful if you have a feature like ligatures enabled by
default but you would like to turn them off, like so: .no-ligatures { font-feature-settings: "liga" 0, "dlig" 0; } more on font-feature-settings codes 'the complete css demo for opentype features' (can't vouch for the truth of the name, but it's pretty big) a list of opentype features on wikipedia using css feature detection for implementation since not all properties are evenly implemented, i...
Auto-placement in CSS Grid Layout - CSS: Cascading Style Sheets
5px; background-color: #fff4e6; } .wrapper > div { border: 2px solid #ffa94d; border-radius: 5px; background-color: #ffd8a8; padding: 1em; color: #d9480f; } .wrapper { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 10px; } <div class="wrapper"> <div>one</div> <div>two</div> <div>three</div> <div>four</div> <div>five</div> </div>
default rules for auto-placement as you can see with the above example, if you create a grid all child items will lay themselves out one into each grid cell.
... the
default flow is to arrange items by row.
... sizing rows in the implicit grid the
default for automatically created rows in the implicit grid is for them to be auto-sized.
...otherwise they will stay by
default in the order that they are entered in the document source.
Mozilla CSS extensions - CSS: Cascading Style Sheets
sizing :-moz-system-metric(images-in-menus) :-moz-system-metric(mac-graphite-theme) :-moz-system-metric(scrollbar-end-backward) :-moz-system-metric(scrollbar-end-forward) :-moz-system-metric(scrollbar-start-backward) :-moz-system-metric(scrollbar-start-forward) :-moz-system-metric(scrollbar-thumb-proportional) :-moz-system-metric(touch-enabled) :-moz-system-metric(windows-
default-theme) -moz-user-focus -moz-user-input -moz-user-modify -moz-window-dragging -moz-window-shadow formerly proprietary properties that are now standard note: to maximize the compatibility of your css, you should use the unprefixed standard properties instead of the prefixed ones listed below.
... border-style and outline-style -moz-bg-insetobsolete since gecko 1.9 -moz-bg-outsetobsolete since gecko 1.9 -moz-bg-solidobsolete since gecko 1.9 <color> keywords -moz-activehyperlinktext -moz-hyperlinktext -moz-visitedhyperlinktext -moz-button
default -moz-buttonhoverface -moz-buttonhovertext -moz-
default-background-color -moz-
default-color -moz-cellhighlight -moz-cellhighlighttext -moz-field -moz-fieldtext -moz-dialog -moz-dialogtext -moz-dragtargetzone -moz-mac-accentdarkestshadow -moz-mac-accentdarkshadow -moz-mac-accentface -moz-mac-accentlightesthighlight -moz-mac-accentlightshadow -moz-mac-accentregularhighlight -moz-ma...
...ridobsolete since gecko 62 -moz-inline-stackobsolete since gecko 62 -moz-inline-table -moz-gridobsolete since gecko 62 -moz-grid-groupobsolete since gecko 62 -moz-grid-lineobsolete since gecko 62 -moz-groupbox -moz-deckobsolete since gecko 62 -moz-popupobsolete since gecko 62 -moz-stackobsolete since gecko 62 -moz-markerobsolete since gecko 62 empty-cells -moz-show-background (
default value in quirks mode) font -moz-button -moz-info -moz-desktop -moz-dialog (also a color) -moz-document -moz-workspace -moz-window -moz-list -moz-pull-down-menu -moz-field (also a color) font-family -moz-fixed image-rendering -moz-crisp-edges <length> -moz-calc list-style-type -moz-arabic-indic -moz-bengali -moz-cjk-earthly-branch -moz-cjk-heavenly-st...
... @-moz-document media features -moz-mac-graphite-theme -moz-maemo-classic -moz-device-pixel-ratio -moz-os-version -moz-scrollbar-end-backward -moz-scrollbar-end-forward -moz-scrollbar-start-backward -moz-scrollbar-start-forward -moz-scrollbar-thumb-proportional -moz-touch-enabled -moz-windows-accent-color-in-titlebar -moz-windows-classic -moz-windows-compositor -moz-windows-
default-theme -moz-windows-glass -moz-windows-theme other -moz-alt-content (see bug 11011) ...
Viewport concepts - CSS: Cascading Style Sheets
the values returned for the outerwidth and outerheight depend on the browser: firefox reports the new value in css pixels, but chrome returns the length in the
default pixel size.
... <svg height="300" width="400"></svg> in this examples, the viewport has an aspect ratio of 3::4, and is, but
default, 400 by 300 units, with a unit generally being a css pixel.
...to tell a mobile browser to use the viewport width instead of the
default 980px as the width of the screen, developers can include a viewport meta tag, like the following: <meta name="viewport" content="width=device-width"> the width property controls the size of the viewport.
...there are other properties, including maximum-scale, minimum-scale, and user-scalable, which control whether users can zoom the page in or out, but the
default values are the best for accessibility and user experience, so these can be omitted.
border - CSS: Cascading Style Sheets
this is because the style
defaults to none.
...
defaults to medium if absent.
...
defaults to none if absent.
...
defaults to currentcolor if absent.
box-sizing - CSS: Cascading Style Sheets
by
default in the css box model, the width and height you assign to an element is applied only to the element's content box.
...for example, if you have four boxes with width: 25%;, if any has left or right padding or a left or right border, they will not by
default fit on one line within the constraints of the parent container.
... the box-sizing property can be used to adjust this behavior: content-box gives you the
default css box-sizing behavior.
... values content-box this is the initial and
default value as specified by the css standard.
counters() - CSS: Cascading Style Sheets
the counters are rendered in the style indicated,
defaulting to decimal if no style is specified.
... /* simple usage - style
defaults to decimal */ counters(countername, '-'); /* changing the counter display */ counters(countername, '.', upper-roman) a counter has no visible effect by itself.
...if omitted, the counter-style
defaults to decimal <string> any number of text characters.
...)where <counter-style> = <counter-style-name> | symbols()where <counter-style-name> = <custom-ident> examples
default value compared to upper roman html <ol> <li> <ol> <li></li> <li></li> <li></li> </ol> </li> <li></li> <li></li> <li> <ol> <li></li> <li> <ol> <li></li> <li></li> <li></li> </ol> </li> </ol> </li> </ol> css ol { counter-reset: listcounter; } li { counter-increment: listcounter; } li::marker { content: counters(listcounter, '.', u...
flex - CSS: Cascading Style Sheets
defaults to 1 when omitted.
...
defaults to 1 when omitted.
...
defaults to 0 when omitted.
...f7f8; resize: horizontal; overflow: hidden; display: flex; margin: 1em; } .item { margin: 1em; padding: 0.5em; width: 110px; min-width: 0; background-color: #1b5385; color: white; font-family: monospace; font-size: 13px; } .initial { flex: initial; } .auto { flex: auto; } .none { flex: none; } .four { flex: 4; } .two { flex: 2; } .one { flex: 1; } by
default flex items don't shrink below their minimum content size.
font-feature-settings - CSS: Cascading Style Sheets
syntax /* use the
default settings */ font-feature-settings: normal; /* set values for opentype feature tags */ font-feature-settings: "smcp"; font-feature-settings: "smcp" on; font-feature-settings: "swsh" 2; font-feature-settings: "smcp", "swsh" 2; /* global values */ font-feature-settings: inherit; font-feature-settings: initial; font-feature-settings: unset; whenever possible, web authors should instead use the font-variant shorthand property or an associated longhand ...
... values normal text is laid out using
default settings.
...if no value is set, the
default is 1.
...feature-settings: "smcp" on; } /* convert both upper and lowercase to small caps (affects punctuation also) */ .allsmallcaps { font-feature-settings: "c2sc", "smcp"; } /* use zeros with a slash through them to differentiate from "o" */ .nicezero { font-feature-settings: "zero"; } /* enable historical forms */ .hist { font-feature-settings: "hist"; } /* disable common ligatures, usually on by
default */ .noligs { font-feature-settings: "liga" 0; } /* enable tabular (monospaced) figures */ td.tabular { font-feature-settings: "tnum"; } /* enable automatic fractions */ .fractions { font-feature-settings: "frac"; } /* use the second available swash character */ .swash { font-feature-settings: "swsh" 2; } /* enable stylistic set 7 */ .fancystyle { font-family: gabriola; /* available on windo...
<image> - CSS: Cascading Style Sheets
css determines an object's concrete size using (1) its intrinsic dimensions; (2) its specified size, defined by css properties like width, height, or background-size; and (3) its
default size, determined by the kind of property the image is used with: kind of object (css property)
default object size background-image the size of the element's background positioning area list-style-image the size of a 1em character border-image-source the size of the element's border image area cursor the browser-defined size matchin...
... if the specified size defines only the width or only the height, the missing value is determined using the intrinsic ratio, if there is any, the intrinsic dimensions if the specified value matches, or the
default object size for that missing value.
... if the specified size defines neither the width nor the height, the concrete object size is calculated so that it matches the intrinsic aspect ratio of the image but without exceeding the
default object size in any dimension.
... if the image has no intrinsic aspect ratio, the intrinsic aspect ratio of the object it applies to is used; if this object has none, the missing width or height are taken from the
default object size.
overscroll-behavior-y - CSS: Cascading Style Sheets
/* keyword values */ overscroll-behavior-y: auto; /*
default */ overscroll-behavior-y: contain; overscroll-behavior-y: none; /* global values */ overscroll-behavior-y: inherit; overscroll-behavior-y: initial; overscroll-behavior-y: unset; initial valueautoapplies tonon-replaced block-level elements and non-replaced inline-block elementsinheritednocomputed valueas specifiedanimation typediscrete syntax the overscroll-behavior-y property is specified as a keyword chosen from the list of values below.
... values auto the
default scroll overflow behavior occurs as normal.
... contain
default scroll overflow behavior is observed inside the element this value is set on (e.g.
... none no scroll chaining occurs to neighbouring scrolling areas, and
default scroll overflow behavior is prevented.
overscroll-behavior - CSS: Cascading Style Sheets
/* keyword values */ overscroll-behavior: auto; /*
default */ overscroll-behavior: contain; overscroll-behavior: none; /* two values */ overscroll-behavior: auto contain; /* global values */ overscroll-behavior: inherit; overscroll-behavior: initial; overscroll-behavior: unset; by
default, mobile browsers tend to provide a "bounce" effect or even a page refresh when the top or bottom of a page (or other scroll area) is reached.
... values auto the
default scroll overflow behavior occurs as normal.
... contain
default scroll overflow behavior is observed inside the element this value is set on (e.g.
... none no scroll chaining occurs to neighbouring scrolling areas, and
default scroll overflow behavior is prevented.
text-emphasis - CSS: Cascading Style Sheets
if neither filled nor open is present, this is the
default.
...this is the
default shape in horizontal writing modes when no other shape is given.
...this is the
default shape in vertical writing modes when no other shape is given.
...if no color is present, it
defaults to currentcolor.
Video player styling basics - Developer guides
each button has some basic styling: .controls button { border:none; cursor:pointer; background:transparent; background-size:contain; background-repeat:no-repeat; } by
default, all <button> elements have a border, so this is removed.
... progress bar the <progress> element has the following basic style set up: .controls progress { display:block; width:100%; height:81%; margin-top:0.125rem; border:none; color:#0095dd; -moz-border-radius:2px; -webkit-border-radius:2px; border-radius:2px; } like the <button> elements, <progress> also has a
default border, which is removed here.
...even though the browser's
default video control set has been turned off, many browsers make them accessible by right clicking on the html5 video.
...if a user uses the
default controls, the defined media api events — such as play and pause — are raised so this can be taken advantage of to ensure that the custom control buttons are kept in sync.
Applying color to HTML elements using CSS - HTML: Hypertext Markup Language
text-decoration-color by
default, text decorations (such as underlines, strikethroughs, etc) use the color property as their colors.
...by
default, that's black.
...most browsers, by
default, remove background images when printing documents.
... the
default value of color-adjust, economy, indicates that the browser is allowed to make appearance changes as it deems necessary in order to try to optimize the legibility and/or print economy of the content, given the type of output device the document is being drawn onto.
HTML attribute: rel - HTML: Hypertext Markup Language
the rel attribute has no
default value.
... <!-- a persistent style sheet --> <link rel="stylesheet" href="
default.css"> <!-- alternate style sheets --> <link rel="alternate stylesheet" href="highcontrast.css" title="high contrast"> with an hreflang attribute that differs from the document language, it indicates a translation.
...when included with <a> and <area> and supported, the
default cursor will be help instead of pointer.
...the type attribute is not needed as it's a text/css stylesheet, as that is the
default value.
<area> - HTML: Hypertext Markup Language
this is a user agent’s
default behavior, if no policy is otherwise specified.
...the
default relationship, if no other is given, is void.
...the specifications for html defines the values rect, which defines a rectangular region; circle, which defines a circular region; poly, which defines a polygon; and
default, which indicates the entire region beyond any defined shapes.
... the following keywords have special meanings: _self (
default): show the resource in the current browsing context.
<basefont> - HTML: Hypertext Markup Language
the obsolete html base font element (<basefont>) sets a
default font face, size, and color for the other elements which are descended from its parent element.
...the document text in the
default style is rendered in the first font face that the client's browser supports.
... if no font listed is installed on the local system, the browser typically
defaults to the proportional or fixed-width font for that system.
...numeric values range from 1 to 7 with 1 being the smallest and 3 the
default.
<fieldset>: The Field Set element - HTML: Hypertext Markup Language
by
default browsers display such controls grayed out.
... its display value is block by
default, and it establishes a block formatting context.
...by
default there is a 2px groove border surrounding the contents, and a small amount of
default padding.
... the element has min-inline-size: min-content by
default.
<font> - HTML: Hypertext Markup Language
the document text in the
default style is rendered in the first font face that the client's browser supports.
... if no font listed is installed on the local system, the browser typically
defaults to the proportional or fixed-width font for that system.
...numeric values range from 1 to 7 with 1 being the smallest and 3 the
default.
... it can be defined using a relative value, like +2 or -3, which set it relative to the value of the size attribute of the <basefont> element, or relative to 3, the
default value, if none does exist.
<input type="date"> - HTML: Hypertext Markup Language
you can set a
default value for the input with a date inside the value attribute, like so: <input type="date" value="2017-06-01"> the displayed date format will differ from the actual value — the displayed date is formatted based on the locale of the user's browser, but the parsed value is always formatted yyyy-mm-dd.
...only values which are equal to the basis for stepping (min if specified, value otherwise, and an appropriate
default value if neither of those is provided) are valid.
...the
default value of step is 1, indicating 1 day.
... validation by
default, <input type="date"> doesn't validate the entered value beyond its format.
<input type="email"> - HTML: Hypertext Markup Language
the value must be a number greater than zero, and the
default value is 20.
... <input type="email" size="32" minlength="3" maxlength="64"> providing
default options as always, you can provide a
default value for an email input box by setting its value attribute: <input type="email" value="
default@example.com"> offering suggested values taking it a step farther, you can provide a list of
default options from which the user can select by specifying the list attribute.
... <input type="email" size="40" list="
defaultemails"> <datalist id="
defaultemails"> <option value="jbond007@mi6.defence.gov.uk"> <option value="jbourne@unknown.net"> <option value="nfury@shield.org"> <option value="tony@starkindustries.com"> <option value="hulk@grrrrrrrr.arg"> </datalist> with the <datalist> element and its <option>s in place, the browser will offer the specified values as potential values for the e-mail address...
... <label for="emailaddress">email</label><br/> <input id="emailaddress" type="email" placeholder="user@example.gov" list="
defaultemails" size="64" maxlength="256" multiple> <datalist id="
defaultemails"> <option value="jbond007@mi6.defence.gov.uk"> <option value="jbourne@unknown.net"> <option value="nfury@shield.org"> <option value="tony@starkindustries.com"> <option value="hulk@grrrrrrrr.arg"> </datalist> specifications specification status comment html living standardthe definitio...
<input type="search"> - HTML: Hypertext Markup Language
id placeholder an exemplar value to display in the input field whenever it is empty readonly a boolean attribute indicating whether or not the contents of the input should be read-only size a number indicating how many characters wide the input field should be spellcheck controls whether or not to enable spell checking for the input field, or if the
default spell checking configuration should be used list the values of the list attribute is the id of a <datalist> element located in the same document.
...the value must be a number greater than zero, and the
default value is 20.
...if not provided, or an invalid value is given, the browser's
default maximum number of entries is used.
...they are basically equivalent in behavior, but user agents may choose to style them differently by
default (and, of course, sites may use stylesheets to apply custom styles to them).
<keygen> - HTML: Hypertext Markup Language
defaults to an empty string if not specified.
...the
default value is rsa.
...valid values are "rsa", which is the
default, "dsa" and "ec".
...(note: choice of the number of key strengths,
default values for each strength, and the ui by which the user is offered a choice, are outside of the scope of this specification.) the <keygen> element is only valid within an html form.
<summary>: The Disclosure Summary element - HTML: Hypertext Markup Language
default label text if a <details> element's first child is not a <summary> element, the user agent will use a
default string (typically "details") as the label for the disclosure box.
...
default style per the html specification, the
default style for <summary> elements includes display: list-item.
... this makes it possible to change or remove the icon displayed as the disclosure widget next to the label from the
default, which is typically a triangle.
... warning: because the <summary> element has a
default role of button (which strips all roles from child elements), this example will not work for users of assistive technologies such as screen readers.
<td>: The Table Data Cell element - HTML: Hypertext Markup Language
its
default value is 1.
... values higher than 1000 will be considered as incorrect and will be set to the
default value (1).
...its
default value is 1; if its value is set to 0, it extends until the end of the table section (<thead>, <tbody>, <tfoot>, even if implicitly defined), that the cell belongs to.
... the
default value when this attribute is not specified is left.
Resource URLs - HTTP
threats because some of the information shared by resource: urls is available to websites, a web page could run internal scripts and inspect internal resources of firefox, including the
default preferences, which could be a serious security and privacy issue.
...for example: http://searchfox.org/mozilla-central/rev/48ea452803907f2575d81021e8678634e8067fc2/browser/app/profile/firefox.js#575 web sites can easily collect firefox
default preferences by overriding this pref() function and using the script resource:///
defaults/preferences/firefox.js.
... furthermore, some
default values of preferences differ between build configurations, such as platform and locale, which means web sites could identify individual users using this information.
... now this behavior is prohibited by
default.
HTTP conditional requests - HTTP
http uses strong validation by
default, and it specifies when weak validation can be used.
...this is mandatory for some conditional headers, and the
default for the others.
...by
default, unless the etag is prefixed with 'w/', it performs a strong validation.
...by
default, unless the etag is prefixed with 'w/', it performs a strong validation.
Content negotiation - HTTP
browsers are free to use the value of the header that they think is the most adequate; an exhaustive list of
default values for common browsers is available.
...the
default value identity is at the lowest priority (unless otherwise declared).
...a
default value is often set according the language of the graphical interface of the user agent, but most browsers allow to set different language preferences.
...most user-agents provide a
default value for the accept-language header, adapted to the user interface language and end users often do not modify it, either by not knowing how, or by not being able to do it, as in an internet café for instance.
Content-Disposition - HTTP
header type response header (for the main body) general header (for a subpart of a multipart body) forbidden header name no syntax as a response header for the main body the first parameter in the http context is either inline (
default value, indicating it can be displayed inside the web page, or as the web page) or attachment (indicating it should be downloaded; most browsers presenting a 'save as' dialog, prefilled with the value of the filename parameters if present).
... a name with a value of '_charset_' indicates that the part is not an html field, but the
default charset to use for parts without explicit charset information.
...when used in combination with content-disposition: attachment, it is used as the
default filename for an eventual "save as" dialog presented to the user.
...most browsers will propose to save it under the cool.html filename (by
default).
Content-Security-Policy-Report-Only - HTTP
content-security-policy-report-only:
default-src https:; report-uri /csp-violation-report-endpoint/ if you still want to receive reporting, but also want to enforce a policy, use the content-security-policy header with the report-uri directive.
... content-security-policy:
default-src https:; report-uri /csp-violation-report-endpoint/ violation report syntax the report json object contains the following data: blocked-uri the uri of the resource that was blocked from loading by the content security policy.
... content-security-policy-report-only:
default-src 'none'; style-src cdn.example.com; report-uri /_/csp-reports the html of signup.html looks like this: <!doctype html> <html> <head> <title>sign up</title> <link rel="stylesheet" href="css/style.css"> </head> <body> ...
...a browser capable of enforcing csp will send the following violation report as a post request to http://example.com/_/csp-reports, when the document is visited: { "csp-report": { "document-uri": "http://example.com/signup.html", "referrer": "", "blocked-uri": "http://example.com/css/style.css", "violated-directive": "style-src cdn.example.com", "original-policy": "
default-src 'none'; style-src cdn.example.com; report-uri /_/csp-reports", "disposition": "report" } } as you can see, the report includes the full path to the violating resource in blocked-uri.
Content-Security-Policy - HTTP
connect-src restricts the urls which can be loaded using script interfaces
default-src serves as a fallback for the other fetch directives.
... content-security-policy:
default-src 'self' http://example.com; connect-src 'none'; content-security-policy: connect-src http://example.com/; script-src http://example.com/ examples example: disable unsafe inline/eval, only allow loading of resources (images, fonts, scripts, etc.) over https: // header content-security-policy:
default-src https: // meta tag <meta http-equiv="...
...content-security-policy" content="
default-src https:"> example: pre-existing site that uses too much inline code to fix but wants to ensure resources are loaded only over https and to disable plugins: content-security-policy:
default-src https: 'unsafe-eval' 'unsafe-inline'; object-src 'none' example: do not implement the above policy yet; instead just report violations that would have occurred: content-security-policy-report-only:
default-src https:; report-uri /csp-violation-report-endpoint/ see mozilla web security guidelines for more examples.
... content security policy 1.0 obsolete defines connect-src,
default-src, font-src, frame-src, img-src, media-src, object-src, report-uri, sandbox, script-src, and style-src.
Feature-Policy: fullscreen - HTTP
by
default, top-level documents and their same-origin child frames can request and enter fullscreen mode.
... features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
...
default policy the
default value is 'self'.
Feature-Policy: geolocation - HTTP
by
default, the geolocation api can be used within top-level documents and their same-origin child frames.
... features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
...the
default value is 'self'.
Feature-Policy: publickey-credentials-get - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
...
default policy the
default allowlist is 'self'.
... definition of publickey-credentials-get directive,
default allowlist.
Feature-Policy: sync-xhr - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
...
default policy by
default the policy is set to *, which means synchronous requests are allowed in all frames.
... whatwg spec
default policy is *.
Feature-Policy: unsized-media - HTTP
this restriction solves "layout instability" problem caused by providing
default dimensions for images whose size is not specified in advance so that image doesn't change size after loading.
... features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
...
default value the
default value for unsized-media is '*', that is unsized media elements are allowed for all origins by
default.
Feature-Policy: usb - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
...
default policy the
default value is 'self'.
... draft
default allow list is 'self'.
Inheritance and the prototype chain - JavaScript
// o.[[prototype]].[[prototype]] is object.prototype and there is no 'd' property by
default, check its prototype.
...more information is available for firefox developer tools, chrome devtools, and edge devtools.) function dosomething(){} console.log( dosomething.prototype ); // it does not matter how you declare the function, a // function in javascript will always have a
default // prototype property.
... // (ps: there is one exception that arrow function doesn't have a
default prototype property) var dosomething = function(){}; console.log( dosomething.prototype ); as seen above, dosomething() has a
default prototype property, as demonstrated by the console.
...by
default, the __proto__ of any function's prototype property is window.object.prototype.
Classes - JavaScript
turn this; } static eat() { return this; } } let obj = new animal(); obj.speak(); // the animal object let speak = obj.speak; speak(); // undefined animal.eat() // class animal let eat = animal.eat; eat(); // undefined if we rewrite the above using traditional function-based syntax in non–strict mode, then this method calls is automatically bound to the initial this value, which by
default is the global object.
... as seen above, the fields can be declared with or without a
default value.
...the species pattern lets you override
default constructors.
... for example, when using methods such as map() that returns the
default constructor, you want these methods to return a parent array object, instead of the myarray object.
SyntaxError: "use strict" not allowed in function with non-simple parameters - JavaScript
the javascript exception "'use strict' not allowed in function" occurs when a "use strict" directive is used at the top of a function with
default parameters, rest parameters, or destructuring parameters.
... message edge: cannot apply strict mode on functions with non-simple parameter list firefox: syntaxerror: "use strict" not allowed in function with
default parameter syntaxerror: "use strict" not allowed in function with rest parameter syntaxerror: "use strict" not allowed in function with destructuring parameter chrome: syntaxerror: illegal 'use strict' directive in function with non-simple parameter list error type syntaxerror.
... a "use strict" directive is written at the top of a function that has one of the following parameters:
default parameters rest parameters destructuring parameters a "use strict" directive is not allowed at the top of such functions per the ecmascript specification.
... examples function statement in this case, the function sum has
default parameters a=1 and b=2: function sum(a = 1, b = 2) { // syntaxerror: "use strict" not allowed in function with
default parameter 'use strict'; return a + b; } if the function should be in strict mode, and the entire script or enclosing function is also okay to be in strict mode, you can move the "use strict" directive outside of the function: 'use strict'; function sum(a = 1, b = 2) { return a + b; } function expression a function expression can use yet another workaround: var sum = function sum([a, b]) { // syntaxerror: "use strict" not allowed in function with destructuring parameter 'use strict'; return a + b; }; this can be converted to the following expression: var sum = (function() { 'use s...
Date.prototype.toLocaleTimeString() - JavaScript
the
default value for each date-time component property is undefined, but if the hour, minute, second properties are all undefined, then hour, minute, and second are assumed to be "numeric".
... examples using tolocaletimestring() in basic use without specifying a locale, a formatted string in the
default locale and with
default options is returned.
... var date = new date(date.utc(2012, 11, 12, 3, 0, 0)); // tolocaletimestring() without arguments depends on the implementation, // the
default locale, and the
default time zone console.log(date.tolocaletimestring()); // → "7:00:00 pm" if run in en-us locale with time zone america/los_angeles checking for support for locales and options arguments the locales and options arguments are not supported in all browsers yet.
...1, 20, 3, 0, 0)); // an application may want to use utc and make that visible var options = { timezone: 'utc', timezonename: 'short' }; console.log(date.tolocaletimestring('en-us', options)); // → "3:00:00 am gmt" // sometimes even the us needs 24-hour time console.log(date.tolocaletimestring('en-us', { hour12: false })); // → "19:00:00" // show only hours and minutes, use options with the
default locale - use an empty array console.log(date.tolocaletimestring([], { hour: '2-digit', minute: '2-digit' })); // → "20:01" specifications specification ecmascript (ecma-262)the definition of 'date.prototype.tolocaletimestring' in that specification.
Intl.Collator.prototype.resolvedOptions() - JavaScript
usage sensitivity ignorepunctuation the values provided for these properties in the options argument or filled in as
defaults.
... collation the value requested using the unicode extension key "co", if it is supported for locale, or "
default".
... numeric casefirst the values requested for these properties in the options argument or using the unicode extension keys "kn" and "kf" or filled in as
defaults.
... examples using the resolvedoptions method var de = new intl.collator('de', { sensitivity: 'base' }) var usedoptions = de.resolvedoptions(); usedoptions.locale; // "de" usedoptions.usage; // "sort" usedoptions.sensitivity; // "base" usedoptions.ignorepunctuation; // false usedoptions.collation; // "
default" usedoptions.numeric; // false specifications specification ecmascript internationalization api (ecma-402)the definition of 'intl.collator.prototype.resolvedoptions' in that specification.
Intl.Collator.supportedLocalesOf() - JavaScript
the intl.collator.supportedlocalesof() method returns an array containing those of the provided locales that are supported in collation without having to fall back to the runtime's
default locale.
...possible values are "lookup" and "best fit"; the
default is "best fit".
... return value an array of strings representing a subset of the given locale tags that are supported in collation without having to fall back to the runtime's
default locale.
...the language tags returned are those for which the runtime supports a locale in collation that the locale matching algorithm used considers a match, so that it wouldn't have to fall back to the
default locale.
Intl.DateTimeFormat.prototype.resolvedOptions() - JavaScript
"gregory" numberingsystem the values requested using the unicode extension keys "ca" and "nu" or filled in as
default values.
... timezone the value provided for this property in the options argument; undefined (representing the runtime's
default time zone) if none was provided.
... warning: applications should not rely on undefined being returned, as future versions may return a string value identifying the runtime’s
default time zone instead.
... hour12 the value provided for this property in the options argument or filled in as a
default.
Intl.DateTimeFormat.supportedLocalesOf() - JavaScript
the intl.datetimeformat.supportedlocalesof() method returns an array containing those of the provided locales that are supported in date and time formatting without having to fall back to the runtime's
default locale.
...possible values are "lookup" and "best fit"; the
default is "best fit".
... return value an array of strings representing a subset of the given locale tags that are supported in date and time formatting without having to fall back to the runtime's
default locale.
...the language tags returned are those for which the runtime supports a locale in date and time formatting that the locale matching algorithm used considers a match, so that it wouldn't have to fall back to the
default locale.
Intl.DisplayNames.supportedLocalesOf() - JavaScript
the intl.displaynames.supportedlocalesof() method returns an array containing those of the provided locales that are supported in date and time formatting without having to fall back to the runtime's
default locale.
...possible values are "lookup" and "best fit"; the
default is "best fit".
... return value an array of strings representing a subset of the given locale tags that are supported in date and time formatting without having to fall back to the runtime's
default locale.
...the language tags returned are those for which the runtime supports a locale in date and time formatting that the locale matching algorithm used considers a match, so that it wouldn't have to fall back to the
default locale.
Intl.ListFormat.supportedLocalesOf() - JavaScript
the intl.listformat.supportedlocalesof() method returns an array containing those of the provided locales that are supported in date and time formatting without having to fall back to the runtime's
default locale.
...possible values are "lookup" and "best fit"; the
default is "best fit".
... return value an array of strings representing a subset of the given locale tags that are supported in date and time formatting without having to fall back to the runtime's
default locale.
...the language tags returned are those for which the runtime supports a locale in date and time formatting that the locale matching algorithm used considers a match, so that it wouldn't have to fall back to the
default locale.
Intl.NumberFormat.supportedLocalesOf() - JavaScript
the intl.numberformat.supportedlocalesof() method returns an array containing those of the provided locales that are supported in number formatting without having to fall back to the runtime's
default locale.
...possible values are "lookup" and "best fit"; the
default is "best fit".
... return value an array of strings representing a subset of the given locale tags that are supported in number formatting without having to fall back to the runtime's
default locale.
...the language tags returned are those for which the runtime supports a locale in number formatting that the locale matching algorithm used considers a match, so that it wouldn't have to fall back to the
default locale.
Intl.PluralRules.supportedLocalesOf() - JavaScript
the intl.pluralrules.supportedlocalesof() method returns an array containing those of the provided locales that are supported in plural formatting without having to fall back to the runtime's
default locale.
...possible values are lookup and best fit; the
default is best fit.
... return value an array of strings representing a subset of the given locale tags that are supported in plural formatting without having to fall back to the runtime's
default locale.
...the language tags returned are those for which the runtime supports a locale in plural formatting that the locale matching algorithm used considers a match, so that it wouldn't have to fall back to the
default locale.
Intl.RelativeTimeFormat() constructor - JavaScript
possible values are "lookup" and "best fit"; the
default is "best fit".
...possible values are: "always" (
default, e.g., 1 day ago), or "auto" (e.g., yesterday).
...possible values are: "long" (
default, e.g., in 1 month) "short" (e.g., in 1 mo.), or "narrow" (e.g., in 1 mo.).
... // create a relative time formatter in your locale // with
default values explicitly passed in.
Intl.RelativeTimeFormat.supportedLocalesOf() - JavaScript
the intl.relativetimeformat.supportedlocalesof() method returns an array containing those of the provided locales that are supported in date and time formatting without having to fall back to the runtime's
default locale.
...possible values are "lookup" and "best fit"; the
default is "best fit".
... return value an array of strings representing a subset of the given locale tags that are supported in date and time formatting without having to fall back to the runtime's
default locale.
...the language tags returned are those for which the runtime supports a locale in date and time formatting that the locale matching algorithm used considers a match, so that it wouldn't have to fall back to the
default locale.
Object.prototype.toString() - JavaScript
by
default, the tostring() method is inherited by every object descended from object.
... examples overriding the
default tostring method you can create a function to be called in place of the
default tostring() method.
... the following code defines the dog object type and creates thedog, an object of type dog: function dog(name, breed, color, sex) { this.name = name; this.breed = breed; this.color = color; this.sex = sex; } thedog = new dog('gabby', 'lab', 'chocolate', 'female'); if you call the tostring() method on this custom object, it returns the
default value inherited from object: thedog.tostring(); // returns [object object] the following code creates and assigns dogtostring() to override the
default tostring() method.
... dogtostring() { return `dog ${this.name} is a ${this.sex} ${this.color} ${this.breed}`; } with the preceding code in place, any time thedog is used in a string context, javascript automatically calls the dogtostring() function, which returns the following string: "dog gabby is a female chocolate lab" using tostring() to detect object class tostring() can be used with every object and (by
default) allows you to get its class.
Symbol.isConcatSpreadable - JavaScript
it can control behavior for arrays and array-like objects: for array objects, the
default behavior is to spread (flatten) elements.
... for array-like objects, the
default behavior is no spreading or flattening.
... property attributes of symbol.isconcatspreadable writable no enumerable no configurable no examples arrays by
default, array.prototype.concat() spreads (flattens) arrays into its result: let alpha = ['a', 'b', 'c'], let numeric = [1, 2, 3] let alphanumeric = alpha.concat(numeric) console.log(alphanumeric) // result: ['a', 'b', 'c', 1, 2, 3] when setting symbol.isconcatspreadable to false, you can disable the
default behavior: let alpha = ['a', 'b', 'c'], let numeric = [1, 2, 3] numeric[symbol.isconcatspreadable] = false let alphanumeric = alpha.concat(numeric) console.log(alphanumeric) // result: ['a', 'b', 'c', [1, 2, 3] ] ...
... array-like objects for array-like objects, the
default is to not spread.
Destructuring assignment - JavaScript
let a, b; [a, b] = [1, 2]; console.log(a); // 1 console.log(b); // 2
default values a variable can be assigned a
default, in the case that the value unpacked from the array is undefined.
...
default values a variable can be assigned a
default, in the case that the value unpacked from the object is undefined.
... const {a = 10, b = 5} = {a: 3}; console.log(a); // 3 console.log(b); // 5 assigning to new variables names and providing
default values a property can be both 1) unpacked from an object and assigned to a variable with a different name and 2) assigned a
default value in case the unpacked value is undefined.
... setting a function parameter's
default value function drawchart({size = 'big', coords = {x: 0, y: 0}, radius = 25} = {}) { console.log(size, coords, radius); // do some chart drawing } drawchart({ coords: {x: 18, y: 30}, radius: 30 }); in the function signature for drawchart above, the destructured left-hand side is assigned to an empty object literal on the right-hand side: {size = 'big', coords = {x: 0, y: 0}, radius = 2...
MathML attribute reference - MathML
possible values are: none (
default), solid and dashed.
...nfirst <mo>, <mspace> unimplemented indentalignlast <mo>, <mspace> unimplemented indentshift <mo>, <mspace> unimplemented indentshiftfirst <mo>, <mspace> unimplemented indentshiftlast <mo>, <mspace> unimplemented indenttarget <mo>, <mspace> unimplemented infixlinebreakstyle <mstyle> specifies the
default linebreakstyle to use for infix operators.
...the
default value is """.
...the
default value is """.
<ms> - MathML
by
default, string literals are displayed as enclosed by double quotes ("); by using the lquote and rquote attributes, you can set custom characters to display.
...the
default value is """.
...the following values are allowed: normal (
default value) ; example bold ; example italic ; example bold-italic ; example double-struck ; example bold-fraktur ; example script ; example bold-script ; example fraktur ; example sans-serif ; example bold-sans-serif ; example sans-serif-italic ; example sans-serif-bold-italic ; example monospace ; example initial ; مثال tailed ; مثال looped ; م�...
...the
default value is """.
Lazy loading - Web Performance
entry point splitting: separates code by entry point(s) in the app dynamic splitting: separates code where dynamic import() statements are used javascript script type module any script tag with type="module" is treated like a javascript module and is deferred by
default.
... css by
default, css is treated as a render blocking resource, so the browser won't render any processed content until the cssom is constructed.
... fonts by
default, font requests are delayed until the render tree is constructed, which can result in delayed text rendering.
... it is possible to override the
default behaviour and preload web font resources using <link rel="preload">, the css font-display property, and the font loading api.
The building blocks of responsive design - Progressive web apps (PWAs)
ex; display: -ms-flexbox; display: flex; } nav button { font-size: 6.8vw; -webkit-flex: 1; -moz-flex: 1; -ms-flex: 1; flex: 1; border-left: 1px solid rgba(100,100,100,0.4); } nav button:first-child { border-left: 0; } } in this last set of rules, we change the display value of the <nav> to flex to make it show (it was set to none in the
default css at the top of the stylesheet, as it wasn't needed for the other views.) we then use absolute positioning and z-index to make it take up no space in the document flow, and sit on top of the x-cards (this is why we gave the x-cards that top-margin earlier).
...all buttons in the app have been set to have a line-height of 2.5, in the
default css at the top of the stylesheet (check if you don't believe me.) and 6.8 x 2.5 = 17.
... another challenge is dealing with high resolution screens — raster graphics designed for low resolutions are in danger of appearing tiny when displayed on a high resolution screen, so devices often apply a
default zoom factor to rendered pages to avoid this.
...if you use the mobile first methodology, you will be creating your mobile layout inside your
default css, before any media queries have been applied.
calcMode - SVG: Scalable Vector Graphics
the
default mode is linear, however if the attribute does not support linear interpolation (e.g.
... four elements are using this attribute: <animate>, <animatecolor>, <animatemotion>, and <animatetransform> usage notes value discrete | linear | paced | spline
default value linear animatable no discrete this specifies that the animation function will jump from one value to the next without any interpolation.
...except for <animatemotion>, this is the
default value.
...for <animatemotion>, this is the
default value.
<circle> - SVG: Scalable Vector Graphics
value type: <length>|<percentage> ;
default value: 0; animatable: yes cy the y-axis coordinate of the center of the circle.
... value type: <length>|<percentage> ;
default value: 0; animatable: yes r the radius of the circle.
... value type: <length> ;
default value: 0; animatable: yes pathlength the total length for the circle's circumference, in user units.
... value type: <number> ;
default value: none; animatable: yes note: starting with svg2, cx, cy, and r are geometry properties, meaning those attributes can also be used as css properties for that element.
<foreignObject> - SVG: Scalable Vector Graphics
value type: <length>|<percentage> ;
default value: auto; animatable: yes width the width of the foreignobject.
... value type: <length>|<percentage> ;
default value: auto; animatable: yes x the x coordinate of the foreignobject.
... value type: <length>|<percentage> ;
default value: 0; animatable: yes y the y coordinate of the foreignobject.
... value type: <length>|<percentage> ;
default value: 0; animatable: yes note: starting with svg2, x, y, width, and height are geometry properties, meaning those attributes can also be used as css properties for that element.
<script> - SVG: Scalable Vector Graphics
value type: <string>;
default value: ?; animatable: yes href the url to the script to load.
... value type: <url> ;
default value: none; animatable: no type this attribute defines type of the script language to use.
... value type: <string>;
default value: application/ecmascript; animatable: no xlink:href deprecated since svg 2 the url to the script to load.
... value type: <url> ;
default value: none; animatable: no global attributes core attributes most notably: id styling attributes class, style event attributes global event attributes, document element event attributes usage notes categoriesnonepermitted contentany elements or character data specifications specification status comment scalable vector graphics (svg) 2the definition of '<script>' in that specification.
Scripting - SVG: Scalable Vector Graphics
one can override
default browser behaviors with the evt.prevent
default( ) method, add eventlisteners to objects with the syntax element.addeventlistener(event, function, usecapture), and set element properties with syntax svgelement.style.setproperty("fill-opacity", "0.0", "").
... preventing
default behavior in event code when writing drag and drop code, sometimes you'll find that text on the page gets accidently selected while dragging.
... or if you want to use the backspace key in your code, you want to override the browser's
default behavior when the backspace key is pressed, which is to go back to the previous page.
... the evt.prevent
default() method lets you do this.
Index - XSLT: Extensible Stylesheet Language Transformations
it
defaults to ascending if the parameter is empty (the first time the sorting happens, as there is no value for it in the xslt file).
...it is similar to the else or
default case in other programing languages.
... 42 <xsl:param> element, reference, xslt, param the <xsl:param> element establishes a parameter by name and, optionally, a
default value for that parameter.
...preserving whitespace is the
default setting, so this element only needs to be used to counteract an <xsl:strip-space> element.
page-worker - Archive of obsolete content
script
defaults to true.
... element for the page is inserted into the dom, but before the dom content itself has been loaded "ready": load content scripts once dom content has been loaded, corresponding to the domcontentloaded event "end": load content scripts once all the content (dom, js, css, images) for the page has been loaded, at the time the window.onload event fires this property is optional and
defaults to "end".
...script
defaults to true.
content/symbiont - Archive of obsolete content
element for the page is inserted into the dom, but before the dom content itself has been loaded "ready": load content scripts once dom content has been loaded, corresponding to the domcontentloaded event "end": load content scripts once all the content (dom, js, css, images) for the page has been loaded, at the time the window.onload event fires this property is optional and
defaults to "end".
...
defaults to true.
... allow permissions for the content, with a single boolean key called script which
defaults to true and indicates whether or not to execute scripts in the content.
Modifying Web Pages Based on URL - Archive of obsolete content
run jpm init, accepting all the
defaults open the file index.js and add the code above run jpm run open ietf.org in the browser window that opens.
...in particular, the pagemod constructor takes several additional options to control its behavior: by
default, content scripts are not attached to any tabs that are already open when the page-mod is created, and are attached to iframes as well as top-level documents.
... by
default, content scripts are attached after all the content (dom, js, css, images) for the page has been loaded, at the time the window.onload event fires.
Localization - Archive of obsolete content
you can just use the
default language strings as your identifier, and subsequently supply .properties files for all the additional locales you want to support.
... however, this approach makes it difficult to maintain an add-on which has many localizations, because you're using the
default language strings both as user interface strings and as keys to look up your translations.
... this means that if you want to change the wording of a string in the
default language, or fix a typo, then you break all your locale files.
LookupNamespaceURI - Archive of obsolete content
mlmode = document.contenttype, // mozilla only xmlnspattern = /^xmlns:(.*)$/; switch (node.nodetype) { case 1: // element_node (could also just test for node.element_node, etc., if supported in all browsers) if (node.namespaceuri != null && node.prefix === prefix) { // note: prefix could be "null" in the case we are looking for
default namespace return node.namespaceuri; } if (node.attributes.length) { for (i = 0; i < node.attributes.length; i++) { att = node.attributes[i]; if (xmlnspattern.test(att.name) && xmlnspattern.exec(att.name)[1] === prefix) { if (att.value) { ...
... return att.value; } return null; // unknown } if (att.name === 'xmlns' && prefix == null) { //
default namespace if (att.value) { return att.value; } return null; // unknown } } } if (node.parentnode && node.parentnode.nodetype !== 9) { // entityreferences may have to be skipped to get to it return lookupnamespaceurihelper(node.parentnode, prefix); } return null; case 9: // document_no...
...de case 12: // notation_node case 10: // document_type_node case 11: // document_fragment_node return null; // unknown case 2: // attribute_node if (node.ownerelement) { return lookupnamespaceurihelper(node.ownerelement, prefix); } return null; // unknown
default: // text_node (3), cdata_section_node (4), entity_reference_node (5), // processing_instruction_node (7), comment_node (8) if (node.parentnode) { // entityreferences may have to be skipped to get to it return lookupnamespaceurihelper(node.parentnode, prefix); } return null; // unkno...
Intercepting Page Loads - Archive of obsolete content
if (doc.
defaultview.frameelement) { // frame within a tab was loaded.
... // find the root document: while (doc.
defaultview.frameelement) { doc = doc.
defaultview.frameelement.ownerdocument; } } } } the second if validation is necessary if you need to make a distinction for html documents being loaded in inner page frames.
...in most cases you'll need to compare the page url with some string or regular expression: if (some_regular_expression.test(doc.
defaultview.location.href)) you can access and modify the dom of the loaded page, just like you normally would for xul and html documents.
Signing an XPI - Archive of obsolete content
hint: when applying for a certificate ensure that the organisation (o) contains your name and not the issuer's
default text, because this is what is displayed to users.
...i found mine in c:\documents and settings\tj\application data\mozilla\firefox\profiles\xxxxxxxx.
default\ where xxxxxxxx is a random string of characters.
...id" -d "c:\documents and settings\tj\application data\mozilla\firefox\profiles\xxxxxxxx.
default" enter password for pkcs12 file: re-enter password: pk12util: pkcs12 export successful c:\projects\codesigning> pk12util -i "certum code signing.pkcs12" -d .
No Proxy For configuration - Archive of obsolete content
new profiles contain the values "localhost, 127.0.0.1", by
default.
...or 10.0.* ip addresses with wildcards in quads 10.*.*.* preferences name network.proxy.no_proxies_on
default value localhost, 127.0.0.1 by
default "localhost" and "127.0.0.1" are excluded, since most people assume these should connect to the local system.
...filter comparison notable bugs bug 172083 - [meta] proxy: "no proxy for" items bug 80917 - proxy: "no proxy" w/ form based ui bug 91587 - proxy: "no proxy for"
default domain filtering fails w/ non-fqdn (e.g., http://web/) bug 201685 - no proxy for: support ipv6 address literals bug 136789 - proxy: no proxy ip entries do not block dns resolved ips bug 314712 - no proxy for: "hostname.domain.com" should block only "hostname.domain.com" bug 72444 - proxy: "bypass proxy server for local addresses" (ie pref) bug 260883 - "no proxy for" does not use fqdn wildca...
Notes on HTML Reflow - Archive of obsolete content
some reflows are immediate in response to user or script actions; for example, resizing the window or changing the document's
default font.
... stylechange, when the entire frame hierarchy must be traversed to recover from stylistic change; for example, a change in the
default font size.
... a style change reflow is performed when the presentation shell's global stylistic information is changed; e.g., addition or removal of a style sheet, a change to the shell's
default font.
Locked config settings - Archive of obsolete content
this file also needs to be "called" from c:\program files\mozilla.org\mozilla\
defaults\pref\all.js by appending the following line at the end: pref("general.config.filename", "mozilla.cfg"); note: newer versions of mozilla or firefox store the all.js file in greprefs rather than
defaults\pref the moz-byteshift.pl script allows to encode...: moz-byteshift.pl -s 13 <mozilla.cfg.txt >mozilla.cfg ...
...the lockpref command puts into place a locked preference, whereas the
defaultpref command merely puts into a place a
default value (which the user may override in his prefs.js file).
...note: in recent versions of mozilla (tested on windows and linux, with 1.5, 1.6 and 1.7b), the mozilla.cfg file needs to be placed in mozilla's root directory, rather than
default\pref where all.js resides.
Structure of an installable bundle - Archive of obsolete content
chrome.manifest, components,
defaults) in bootstrapped extensions are not processed by a supporting application.
... (>=2.0) /chrome.manifest chrome registration manifest (>=1.8) /components/* xpcom components (*.js, *.dll), and interface files from *.xpt (>=1.7) /
defaults/preferences/*.js
default preferences (>=1.7) /plugins/* npapi plugins (>=1.8) /chrome/icons/
default/* window icons (>=1.8) /icon.png extension icon, for display in the add-ons manager, 32px × 32px (>=1.9.2) /icon64.png extension icon, for display in the add-ons manager, 64px × 64px (>=2.0) /options.xul extension options, for display in the add-ons manager (>=7.0) ...
...when
default preferences are defined in several directories, the ones loaded later overwrite the earlier ones.
Creating a Help Content Pack - Archive of obsolete content
next, you'll need to insert a rdf:description element into the file, inside the rdf:rdf element just created: <rdf:description rdf:about="urn:root" nc:title="" nc:
defaulttopic="" nc:base=""> </rdf:description> fill in the attributes as follows: rdf:about must be urn:root or your pack won't work.
... nc:
defaulttopic will hold the rdf:id of the topic you want displayed when the viewer first loads if none has been specified.
...recall that in the content pack descriptor file you included an nc:
defaulttopic attribute, which
defaulted to "welcome".
Hidden prefs - Archive of obsolete content
the
default (defined in mailnews.js) is: pref("mail.addr_book.mapit_url.format", "http://www.mapquest.com/maps/map.adp...st&zipcode=@zi"); addressbook quick search query pref ("mail.addr_book.quicksearchquery.format" ) the format for this pref is: @v == the escaped value typed in the quick search bar in the addressbook every occurance of @v will be replaced.
...the
default (defined in mailnews.js) is: pref("mail.addr_book.quicksearchquery.format","?(or(primaryemail,c,@v)(displayname,c,@v)(firstname,c,@v)(lastname,c,@v))"); "and", "or" and "not" are valid.
...mail/news prefs "autcollect addresses" prefs from mailnews.js: // by
default, only collect addresses the user sends to (outgoing) pref("mail.collect_email_address_incoming", false); pref("mail.collect_email_address_outgoing", true); pref("mail.collect_email_address_newsgroup", false); // by
default, use the personal addressbook for collection pref("mail.collect_addressbook","moz-abmdbdirectory://abook.mab"); for the reasons why the
defaults changed, see this document on...
JavaScript crypto - Archive of obsolete content
cryptomechanismflags a bit vector indicating all cryptographic mechanisms should be turned on by
default (see below).
...setting these flags means you want your token to supply the
default implementation for these functions.
...g = 0x1<<7; pkcs11_mech_sha1_flag = 0x1<<8; pkcs11_mech_md5_flag = 0x1<<9; pkcs11_mech_md2_flag = 0x1<<10; pkcs11_mech_random_flag = 0x1<<27; //random number generator pkcs11_pub_readable_cert_flag = 0x1<<28; //stored certs can be read off the token w/o logging in pkcs11_disable_flag = 0x1<<30; //tell mozilla to disable this slot by
default cipher flags reserved important for cryptomechanismflags 0x1<<11, 0x1<<12, ...
Table Cellmap - Archive of obsolete content
83 union { 84 nstablecellframe* morigcell; 85 long mbits; 86 }; the idea behind this construction is a entry in the cellmap can be either the origin of a row- or colspan (a cell cell without a defined row- or colspan attribute assumes 1 as a
default value), or a entry which is only covered by a row- or colspan.
...the
default value of this attribute is one ("1").
...the
default value of this attribute is one ("1").
Using cross commit - Archive of obsolete content
(although it works without specifying -m on the command line if you are using x-enabled emacs on linux.) also note that if you don't specify any branches to commit on, cross-commit will commit to the trunk and the mozilla_1_8_branch by
default.
...this
defaults to 1.
... if no branches are specified, cross-commit will
default to landing on head and mozilla_1_8_branch.
Anonymous Content - Archive of obsolete content
by
default these stylesheets apply to the bound element and to all anonymous content generated by all bindings attached to the bound element.
...with this ordering a binding that defines a widget can define a
default look for the widget that can then be easily overridden by a client of the widget.
...by
default, stylesheets specified in bindings files are applied only to the bound element and to anonymous content generated by bindings attached to the element.
Event Handlers - Archive of obsolete content
(note that there is a possibility that this may change in the future.) handlers are attached to the bound element, and they are registered by
default for bubbling events.
...the
default value is bubbling, which means that the event handler will fire during the bubbling phase.
...since xbl handlers usually constitute the
default actions for a widget, this allows authors in the bound document to write events that potentially suppress the
default actions taken by the xbl handlers.
popupalign - Archive of obsolete content
if omitted, the
default is topleft.
...by
default the popup content appears with its top left point located directly underneath the point at which the user's mouse goes down (on tooltips the content is displaced by the height of the mouse cursor).
... the
default value for both popupanchor and popupalign is "none." ...
textbox.value - Archive of obsolete content
« xul reference home value type: string the
default value entered in a textbox.
... the attribute only holds the
default value and is never modified when the user enters text.
...for number boxes, the
default is 0 or the minimum value returned by the min property, whichever is higher.
Reading from Files - Archive of obsolete content
the
default character encoding is utf-8 which means that characters below value 128 will occupy a single byte whereas characters above value 128 will occupy multiple bytes, depending on their value.
...fortunately as a character is always at least one byte long in the
default utf-8 encoding, the number of characters will always be equal to or smaller than the number of bytes available.
...reading other character encodings the
default character encoding is utf-8.
findbar - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata close() return type: no return value closes the no...
... if the findbar hasn't been used before, find_normal is the
default.
... if the findbar hasn't been used before, find_normal is the
default.
Panels - Archive of obsolete content
the popup panel will, by
default, appear with its topleft corner just underneath the bottom edge of the button, much as a menu does.
...although no element within the popup panel is focused by
default, the user may focus the first element within the panel by pressing the tab key.
... if you want to set the focus to an element by
default when a panel is opened, adjust the focus within a popupshown event handler.
Tooltips - Archive of obsolete content
elements that use the tooltiptext attribute display the tooltip in a
default tooltip element, which typically looks like a small yellow box large enough to fit the text inside it.
... this
default tooltip is created automatically, so you don't normally need to use a tooltip element.
...if an element uses both attributes, the tooltiptext attribute is used with the
default tooltip.
Input Controls - Archive of obsolete content
value if you want the textbox to have
default text, supply it with the value attribute.
...the checked attribute can be used to indicate the
default state.
...set it to true to have a radio button selected by
default, or leave it out for other radio buttons.
More Button Features - Archive of obsolete content
positioning the images by
default, the image on a button will appear to the left of the text label.
...the
default value is horizontal which is used to place the image on the left or right.
...note that the two attributes are not specified when the
default value can be used.
Simple Menu Bars - Archive of obsolete content
of course, the latter is the
default.
...it is a type of box which
defaults to a vertical orientation.
...this attribute can be set to either true or false where the latter is the
default.
XBL Attribute Inheritance - Archive of obsolete content
this technique is used to set the
default value if the attribute is not present.
...however, if no label is present, it will be given a
default value of ok.
...for example, to create a labeled textbox (a textbox with a text description beside it) out of a label and a textbox element, the label will need to inherit its text from the value attribute and the textbox will also need to inherit its
default value from the value attribute as well.
Window icons - Archive of obsolete content
starting with firefox 1.5, thunderbird 1.5, and xulrunner 1.8, you can specify an icon for a xul window by putting files named mywindow.ico (for windows) and mywindow.xpm or mywindow16.xpm (linux), where mywindow is the id of the <window> you want to attach the icon to, in the chrome/icons/
default subfolder of your bundle.
... these icons will override the global icon files, which are located in app_dir/browser/chrome/icons/
default.
... older versions to support older applications, such as firefox 1.0, you need to copy the icons to app_dir/chrome/icons/
default manually on the first start (example code).
The Implementation of the Application Object Model - Archive of obsolete content
in the absence of any modifications to xul, etc., this is what would be used by
default to hold the tree for a remote xul file.
...the
default assumption if this attribute is not present is that local annotations are not allowed.
... one subtree nested inside another subtree can specify a different value for the persistent attribute, thus allowing the xul writer to specify a
default for the whole window, but to still selectively override it for certain subtrees.
browser - Archive of obsolete content
default is false.
... chrome (
default behaviour): a browser, intended to be used for loading privileged content using a chrome:// uri.
...aredocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata addprogresslistener( listener ) retur...
iframe - Archive of obsolete content
default is false.
... chrome (
default behaviour): a browser, intended to be used for loading privileged content using a chrome:// uri.
...osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related nsiaccessibleprovider ...
listbox - Archive of obsolete content
(
default in listbox and richlistbox.) multiple multiple rows may be selected at once.
... (
default in tree.) for trees, you can also use the following values: cell individual cells can be selected text rows are selected; however, the selection highlight appears only over the text of the primary column.
...aredocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata additemtoselection( item ) return type: no return...
menuitem - Archive of obsolete content
auto this, the
default value if the closemenu attribute is not specified, closes up the menu and all parent menus.
...the following values are accepted, or leave out the attribute entirely for
default handling: always the image is always checked to see whether it should be reloaded.
...osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata style classes menuitem-iconic use this class to h...
richlistbox - Archive of obsolete content
(
default in listbox and richlistbox.) multiple multiple rows may be selected at once.
... (
default in tree.) for trees, you can also use the following values: cell individual cells can be selected text rows are selected; however, the selection highlight appears only over the text of the primary column.
...aredocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata additemtoselection( item ) return type: no retur...
tab - Archive of obsolete content
selected type: boolean this attribute is set to true if the tab is selected by
default.
...the following values are accepted, or leave out the attribute entirely for
default handling: always the image is always checked to see whether it should be reloaded.
...osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata notes note: prior to gecko 1.9, disabling tabs fail...
tabbrowser - Archive of obsolete content
aredocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata addprogresslistener( listener ) return ...
...and if null or not specified, this parameter will
default to the browser.tabs.loadinbackground preference.
...if the event argument is supplied, the
default event handling will be prevented and propagation stopped.
timepicker - Archive of obsolete content
properties amindicator type: string the string value displayed for hours between midnight and noon,
defaulting to am.
... pmindicator type: string the string value displayed for hours between noon and midnight,
defaulting to pm.
...osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related interfaces nsidomxulcontrolelement ...
toolbarbutton - Archive of obsolete content
the
default value depends on the element.
...the following values are accepted, or leave out the attribute entirely for
default handling: always the image is always checked to see whether it should be reloaded.
...osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements toolbar, toolbargrippy, tool...
toolbox - Archive of obsolete content
it is a type of box but
defaults to vertical orientation.
...aredocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata appendcustomtoolbar( name, currentset ) firefox on...
...you can supply a comma-separated list of toolbar item ids as the second argument to add some items by
default.
tooltip - Archive of obsolete content
attributes crop,
default, label, noautohide, onpopuphidden, onpopuphiding, onpopupshowing, onpopupshown, page, position properties accessibletype, label, popupboxobject, position, state methods hidepopup, moveto, openpopup, openpopupatscreen, showpopup, sizeto examples <tooltip id="moretip" orient="vertical" style="background-color: #33dd00;"> <label value="click here to see more information"/> <label value="really!" style="color: red;"/> </t...
...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; }
default type: boolean if true, the tooltip is used as the
default popup for displaying tooltips in the window.
...aredocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata hidepopup() return type: no return valu...
Application Update - Archive of obsolete content
pref("app.update.url.manual", "http://yourserver.net/yourpage"); // a
default value for the "more information about this update" link // supplied in the "an update is available" page of the update wizard.
...//pref("app.update.url.override", ""); // interval: time between checks for a new version (in seconds) //
default=1 day pref("app.update.interval", 86400); // interval: time before prompting the user to download a new version that // is available (in seconds)
default=1 day pref("app.update.nagtimer.download", 86400); // interval: time before prompting the user to restart to install the latest // download (in seconds)
default=30 minutes pref("app.update.nagtimer.restart", 1800); // interval: when all registered timers should be checked (in milliseconds) //
default=5 seconds pref("app.update.timer", 600000); // whether or ...
...this is off in firefox by
default since we show a // upgrade start page instead!
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.
... mk_add_options moz_objdir=@topsrcdir@/../obj-xulrunner mk_add_options moz_co_project=xulrunner ac_add_options --enable-application=xulrunner ac_add_options --enable-extensions=python,
default ac_add_options --disable-javaxpcom ac_add_options --disable-activex ac_add_options --disable-activex-scripting ac_add_options --disable-tests ac_add_options --enable-optimize to check out all the required source code and build it the first time with no local client.mk file, execute cd /c/projects cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/client.mk cd mozilla make -f ...
...for 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.
Debugging a XULRunner Application - Archive of obsolete content
preferences should be in a .js file in the directory %appname%/
defaults/preferences/.
... /* debugging prefs */ pref("browser.dom.window.dump.enabled", true); pref("javascript.options.showinconsole", true); pref("javascript.options.strict", true); pref("nglayout.debug.disable_xul_cache", true); pref("nglayout.debug.disable_xul_fastload", true); don't forget to change these preferences back to their
defaults when you've finished debugging; leaving them as-is can significantly harm performance and usability.
...xulrunner.exe /path/to/application.ini -jsconsole by
default the js console only shows errors from web content.
XUL Application Packaging - Archive of obsolete content
optional -
default value is any xulrunner less than xulrunner 2 example: maxversion=1.8.0.* the [xre] section the xre section specifies various features of xulrunner startup that can be enabled enableextensionmanager specifies whether to enable extensions and extension management.
... optional -
default is 0 note: this option does not add menu items that make the extension/theme manager available in the ui; that is the responsibility of the application author.
... optional -
default is 0 note: the application author is responsible for implementing the nsiprofilemigrator interface; if an implementation is not found no migration will be performed.
calICalendarViewController - Archive of obsolete content
in many cases, acalendar will be the
defaultcalendar of the displaycalendar of the calicalendarview.
...otherwise, it should be set to a
default value, as determined by the application.
... the other values of the calievent (title, summary, alarm, etc) should likewise be set to
defaults.
NPClass - Archive of obsolete content
syntax struct npclass { uint32_t structversion; npallocatefunctionptr allocate; npdeallocatefunctionptr deallocate; npinvalidatefunctionptr invalidate; nphasmethodfunctionptr hasmethod; npinvokefunctionptr invoke; npinvoke
defaultfunctionptr invoke
default; nphaspropertyfunctionptr hasproperty; npgetpropertyfunctionptr getproperty; npsetpropertyfunctionptr setproperty; npremovepropertyfunctionptr removeproperty; npenumerationfunctionptr enumerate; npconstructfunctionptr construct; }; warning: don't call these routines directly.
... invoke
default called by npn_invoke
default() to invoke the
default method (if available) on a given npobject.
...locatefunctionptr)(npobject *npobj); typedef void (*npinvalidatefunctionptr)(npobject *npobj); typedef bool (*nphasmethodfunctionptr)(npobject *npobj, npidentifier name); typedef bool (*npinvokefunctionptr)(npobject *npobj, npidentifier name, const npvariant *args, uint32_t argcount, npvariant *result); typedef bool (*npinvoke
defaultfunctionptr)(npobject *npobj, const npvariant *args, uint32_t argcount, npvariant *result); typedef bool (*nphaspropertyfunctionptr)(npobject *npobj, npidentifier name); typedef bool (*npgetpropertyfunctionptr)(npobject *npobj, npidentifier name, ...
NPFullPrint - Archive of obsolete content
syntax typedef struct _npfullprint { npbool pluginprinted; /* true: print fullscreen */ npbool printone; /* true: print one copy */ /* to
default printer */ void* platformprint; /* platform-specific */ } npfullprint; fields the data structure has the following fields: pluginprinted determines whether the plug-in prints in full-page mode.
... false: (
default) plug-in renders its area of the page only (for embedded plug-in).
... true: print single copy of page to the
default printer.
NPP_NewStream - Archive of obsolete content
np_normal (
default): delivers stream data to the instance in a series of calls to npp_writeready and npp_write.
... implementation note: some plugins, notably silverlight, do not set this outparam, and rely on the outparam being initialized to a
default np_normal value.
...values: np_normal (
default): delivers stream data to the instance in a series of calls to npp_writeready and npp_write.
Sunbird Theme Tutorial - Archive of obsolete content
go to sunbird's program directory, then to the <tt>
defaults</tt> directory there.
...in sunbird, use the
default theme or some other theme.
... normal packaging in sunbird, use the
default theme or some other theme.
Settings - Archive of obsolete content
ignore caught exceptions if this option is set (it is set by
default) and "pause on exceptions" is set, then execution will pause on an exception only if that exception is not caught.
...
defaults to true.
...
defaults to true.
Back to the Server: Server-Side JavaScript On The Rise - Archive of obsolete content
onnect to the remote resource var u = new url( "http://www.mozilla.org/news.rdf" ); var c = u.openconnection(); c.connect(); // read in the raw data var s = new java.io.inputstreamreader( c.getinputstream() ); var b = new java.io.bufferedreader( s ); var l, str = ""; while( ( l = b.readline() ) != null ) { // skip if( l != "" ) { str = str + l + "\n"; } } // define the namespaces, first the
default, // then additional namespaces
default xml namespace = "http://purl.org/rss/1.0/"; var dc = new namespace( "http://purl.org/dc/elements/1.1/" ); var rdf = new namespace( "http://www.w3.org/1999/02/22-rdf-syntax-ns#" ); // use e4x to process the feed var x = new xml( str ); for each( var i in x..item ) { print( "title: " + i.title + "\n" ); print( "about: " + i.@rdf::about + "\n" ); print( "li...
...the
default namespace is defined along with two others, in particular dc and rdf.
...)", [ name, email, message ] ); } formprocessor.proxy = true; </script> the first statement which uses the jaxer.db namespace creates a new database table in the
default sqlite database if it doesn't already exist.
XForms Custom Controls - Archive of obsolete content
since firefox 4, xbl and xul are disabled by
default for all pages not loaded from a chrome:// url.
...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).
...select.xml - contains the base bindings for select and select1 xforms controls (except minimal/
default select1 that is hosted in select1.xml file) range.xml - contains the base bindings for the range xforms control.
XForms Select Element - Archive of obsolete content
possible values are open and closed,
default is closed.
... incremental - supported,
default value is true properties selection - see corresponding attribute incremental - see corresponding attribute type restrictions the select element can be bound to a node containing simple content capable of holding a sequence.
... representations the xforms select element can be represented by the following widgets for the specified appearance attribute values: list -
default representation (xhtml/xul) check group- used when appearance = 'full' (xhtml/xul) list displaying a listbox is the
default representation (xhtml/xul).
XForms Select1 Element - Archive of obsolete content
possible values are open and closed,
default is closed (see #representations section to refer if the attribute is supported for every representation).
... incremental - supported,
default value is true properties selection - see corresponding attribute incremental - see corresponding attribute type restrictions the select1 element can be bound to a node containing simple content.
... representations the xforms select1 element can be represented by the following widgets for the specified appearance attribute values: combobox -
default representation (xhtml/xul) listbox - used when appearance = 'compact' (xhtml/xul) radio group - used when appearance = 'full' (xhtml/xul) combobox displaying a combobox is the
default representation (xhtml/xul).
Fixing Table Inheritance in Quirks Mode - Archive of obsolete content
if the author had set a font size on the body element, for example, the font size of text within a table would match the user's
default, not the body style.
...in these browsers, a table's text would be the same size as the user's
default settings, regardless of the css assigned to ancestor elements such as body.
... the value -moz-initial is a proprietary value used to apply the user's (or browser's)
default setting for a given property to an element.
Windows Media in Netscape - Archive of obsolete content
object("mediaplayer.mediaplayer.1"); } else if (window.geckoactivexobject) { 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.
...79faa6" height="200" width="200"> <param name="uimode" value="full" /> <param name="autostart" value="true" /> <param name="url" value="preludesteel.wma" /> </object> <script type="text/javascript"> if(!document.playerex2.versioninfo) { // control not installed -- the versioninfo property returns null // redirect users to http://www.microsoft.com/windows/windowsmedia/download/
default.asp } else { //control was correctly created //proceed with scripting calls, etc.
...for example, the following uses dhtml behaviors to associate a set of behaviors with a span element, which is then interrogated for its version number (the script attempts to verify that the windows media player control is at version 9): <span style="behavior:url(#
default#clientcaps)" id="cc"></span> <script language=javascript> var cv = cc.getcomponentversion( "{6bf52a52-394a-11d3-b153-00c04f79faa6}", "componentid" ); if (cv == null || cv == "") { top.location.href = "http://foo.bar.foo/checkref"; } </script> netscape 7.1 does not support ie's dhtml behaviors.
Port - MDN Web Docs Glossary: Definitions of Web-related terms
ports are designated by numbers, and below 1024 each port is associated by
default with a specific protocol.
... for example, the
default port for the http protocol is 80 and the
default port for the https protocol is 443, so a http server waits for requests on those ports.
... each internet protocol is associated with a
default port: smtp (25), pop3 (110), imap (143), irc (194), and so on.
Backgrounds and borders - Learn web development
by
default, the large image is not scaled down to fit the box, so we only see a small corner of it, whereas the small image is tiled to fill the box.
... repeat — the
default; repeat in both directions.
... note: the
default background-position value is (0,0).
Cascade and inheritance - Learn web development
also significant here is the concept of inheritance, which means that some css properties by
default inherit values set on the current element's parent element, and some don't.
... which properties are inherited by
default and which aren't is largely down to common sense.
...the browser's
default styles, used when no other styling is set).
Legacy layout methods - Learn web development
by
default, its children (the <h1> and the two <div>s) will span 100% of the width of the body.
...we’ll leave these at the
defaults for now, however — it’s the grid we are really interested in here.
... note: normalize is a really useful little css library written by nicolas gallagher, which automatically does some useful basic layout fixes and makes
default element styling more consistent across browsers.
Getting started with CSS - Learn web development
changing the
default behavior of elements when we look at a well-marked up html document, even something as simple as our example, we can see how the browser is making the html readable by adding some
default styling.
...this happens because browsers have internal stylesheets containing
default styles, which they apply to all pages by
default; without them all of the text would run together in a clump and we would have to style everything from scratch.
... all modern browsers display html content by
default in pretty much the same way.
What text editors are available? - Learn web development
gs and colors play with indentation width, setting it to an appropriate setting for your needs check autosave and session saving settings configure any available plugins and investigate how to get new ones change color schemes adjust view settings and see how you can change the layout of the views check what programming languages/technologies your editor supports while you're learning the
default settings of most text editors should be fine to use, but it is important to become familiar with your chosen tools, so you can select the best one for your usage.
...windows supports .zip by
default.
... when you install a new text editor, your os will probably continue to open text files with its
default editor until you change the file association.
How can we design for all types of users? - Learn web development
if no parent can be found, the
default font size within the browser is considered as the base size for the calculation (usually the equivalent of 16 pixels).
... suppose we wanted a base font size of 16px and an h1 (main heading) at the equivalent of 32px, yet if within the h1 we find a span with the subheading class, it too must be rendered at the
default font size (usually 16px).
...if you want an elastic/responsive website, and you don't know what the browser's
default width is, you can use the max-width property to allow up to 70 characters per line and no more: div.container { max-width:70em; } alternative content for images, audio, and video websites often include stuff besides plain text.
Video and audio content - Learn web development
if the aspect ratio is not maintained by the sizes you set, the video will grow to fill the space horizontally, and the unfilled space will just be given a solid background color by
default.
... muted causes the media to play with the sound turned off by
default.
... add <audio> and <video> elements to the page; make them display the
default browser controls.
Build your own function - Learn web development
improving the function with parameters as it stands, the function is still not very useful — we don't want to just show the same
default message every time.
...} part of the code comes into play, and the paragraph is simply given
default padding and no icon, with no background panel color set either.
... this provides a
default state if no msgtype parameter is provided, meaning that it is an optional parameter!
Functions — reusable blocks of code - Learn web development
bear in mind that some built-in browser functions are not part of the core javascript language — some are defined as part of browser apis, which build on top of the
default language to provide even more functionality (refer to this early section of our course for more descriptions).
...if you don't, the function will generally adopt some kind of
default behavior.
... as an example, the array join() function's parameter is optional: let myarray = ['i', 'love', 'chocolate', 'frogs']; let madeastring = myarray.join(' '); // returns 'i love chocolate frogs' let madeastring = myarray.join(); // returns 'i,love,chocolate,frogs' if no parameter is included to specify a joining/delimiting character, a comma is used by
default.
Client-side storage - Learn web development
add this snippet below your previous code: // stop the form from submitting when a button is pressed form.addeventlistener('submit', function(e) { e.prevent
default(); }); now we need to add an event listener, the handler function of which will run when the "say hello" button is clicked.
...add this below your previous line: // define the adddata() function function adddata(e) { // prevent
default - we don't want the form to submit in the conventional way e.prevent
default(); // grab the values entered into the form fields and store them in an object ready for being inserted into the db let newitem = { title: titleinput.value, body: bodyinput.value }; // open a read/write db transaction, ready for adding the data let transaction = db.transaction(['notes_os'], 'readwrite'); //...
... displaydata(); }; transaction.onerror = function() { console.log('transaction not opened due to error'); }; } this is quite complex; breaking it down, we: run event.prevent
default() on the event object to stop the form actually submitting in the conventional manner (this would cause a page refresh and spoil the experience).
Fetching data from the server - Learn web development
this isn't strictly necessary here — xhr returns text by
default — but it is a good idea to get into the habit of setting this in case you want to fetch other types of data in the future.
...to fix this, add the following two lines at the bottom of your code (just above the closing </script> tag) to load verse 1 by
default, and make sure the <select> element always shows the correct value: updatedisplay('verse 1'); versechoose.value = 'verse 1'; serving your example from a server modern browsers will not run xhr requests if you just run the example from a local file.
... by
default, the site displays all the products, but you can use the form controls in the left hand column to filter them by category, or search term, or both.
Introduction to web APIs - Learn web development
third-party apis are not built into the browser by
default, and you generally have to retrieve their code and information from somewhere on the web.
...we don't include any
default browser controls.
...the gain node is then connected to the destination node so the sound can be played on your computer (the audiocontext.destination property represents whatever is the
default audiodestinationnode available on your computer's hardware, e.g.
Video and Audio APIs - Learn web development
here is a <a href="rabbit320.mp4">link to the video</a> instead.</p> </video> this creates a video player inside the browser like so: you can review what all the html features do in the article linked above; for our purposes here, the most interesting attribute is controls, which enables the
default set of playback controls.
... we give the controls an opacity of 0.5 by
default, so that they are less distracting when you are trying to watch the video.
... next, insert the following at the bottom of your code: media.removeattribute('controls'); controls.style.visibility = 'visible'; these two lines remove the
default browser controls from the video, and make the custom controls visible.
Useful string methods - Learn web development
);' + '\n listitem.textcontent = result;' + '\n list.appendchild(listitem);' + '\n }' + '\n}'; let solutionentry = jssolution; 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(e){ if (e.keycode === 9) { e.prevent
default(); insertatcaret('\t'); } if (e.keycode === 27) { textarea.blur(); } }; function insertatcaret(text) { const scrollpos = textarea.scrolltop; const caretpos = textarea.selectionstart; const front = (textarea.value).substring(0, caretpos); const back = (textarea.value).substring(textarea.selectionend, textarea.value.length); textarea.value = front + text + back; caretpo...
...(\'li\');' + '\n listitem.textcontent = result;' + '\n list.appendchild(listitem);' + '\n' + '\n}'; let solutionentry = jssolution; 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(e){ if (e.keycode === 9) { e.prevent
default(); insertatcaret('\t'); } if (e.keycode === 27) { textarea.blur(); } }; function insertatcaret(text) { const scrollpos = textarea.scrolltop; const caretpos = textarea.selectionstart; const front = (textarea.value).substring(0, caretpos); const back = (textarea.value).substring(textarea.selectionend, textarea.value.length); textarea.value = front + text + back; caretpo...
...element(\'li\');' + '\n listitem.textcontent = result;' + '\n list.appendchild(listitem);' + '\n}'; let solutionentry = jssolution; 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(e){ if (e.keycode === 9) { e.prevent
default(); insertatcaret('\t'); } if (e.keycode === 27) { textarea.blur(); } }; function insertatcaret(text) { const scrollpos = textarea.scrolltop; const caretpos = textarea.selectionstart; const front = (textarea.value).substring(0, caretpos); const back = (textarea.value).substring(textarea.selectionend, textarea.value.length); textarea.value = front + text + back; caretpo...
Getting started with React - Learn web development
note: if you have the yarn package manager installed, create-react-app will
default to using it instead of npm.
... </p> <a classname="app-link" href="https://reactjs.org" target="_blank" rel="noopener noreferrer" > learn react </a> </header> </div> ); } export
default app; the app.js file consists of three main parts: some import statements at the top, the app component in the middle, and an export statement at the bottom.
... </p> </header> </div> ); } export statements at the very bottom of the app.js file, the statement export
default app makes our app component available to other modules.
Componentizing our Svelte app - Learn web development
that's because the filter variable flows down from the todos component to the filterbutton component through the prop, but changes occurring in the filterbutton component don't flow back up to its parent — the data binding is one-way by
default.
... the editing ui (the upper half) will contain an <input> field and two buttons to cancel or save the changes: <div class="stack-small"> {#if editing} <form on:submit|prevent
default={onsave} class="stack-small" on:keydown={e => e.key === 'escape' && oncancel()}> <div class="form-group"> <label for="todo-{todo.id}" class="todo-label">new name for '{todo.name}'</label> <input bind:value={name} type="text" id="todo-{todo.id}" autocomplete="off" class="todo-text" /> </div> <div class="btn-group"> <button class="btn todo-cancel" on:click={oncancel} t...
...update yours now: <div class="stack-small"> {#if editing} <!-- markup for editing todo: label, input text, cancel and save button --> <form on:submit|prevent
default={onsave} class="stack-small" on:keydown={e => e.key === 'escape' && oncancel()}> <div class="form-group"> <label for="todo-{todo.id}" class="todo-label">new name for '{todo.name}'</label> <input bind:value={name} type="text" id="todo-{todo.id}" autocomplete="off" class="todo-text" /> </div> <div class="btn-group"> <button class="btn todo-cancel" on:click={oncancel} t...
Deployment and next steps - Learn web development
a look behind the svelte compilation process by
default, when you create a new app with npx degit sveltejs/template my-svelte-project, svelte will use rollup as the module bundler.
... if we have a look at the rollup.config.js file, we can see that the svelte compiler is just a rollup plugin: import svelte from 'rollup-plugin-svelte'; [...] import { terser } from 'rollup-plugin-terser'; const production = !process.env.rollup_watch; export
default { input: 'src/main.js', output: { sourcemap: true, format: 'iife', name: 'app', file: 'public/build/bundle.js' }, plugins: [ svelte({ // enable run-time checks when not in production dev: !production, // we'll extract any component css out into // a separate file - better for performance css: css => { css.write('public/build/bundle...
... to change the domain or build command, go to https://zeit.co/opensas/mdn-svelte-tutorial/settings accept all the
defaults, and you'll be fine.
Rendering a list of Vue components - Learn web development
export
default { name: 'app', components: { todoitem }, data() { return { todoitems: [ { label: 'learn vue', done: false }, { label: 'create a vue project with the cli', done: true }, { label: 'have fun', done: true }, { label: 'create a to-do list', done: false } ] }; } }; now that we have a list of items, we can use the v-for directive to disp...
... your app.vue <script> element contents should now look like this: import todoitem from './components/todoitem.vue'; import uniqueid from 'lodash.uniqueid' export
default { name: 'app', components: { todoitem }, data() { return { todoitems: [ { id: uniqueid('todo-'), label: 'learn vue', done: false }, { id: uniqueid('todo-'), label: 'create a vue project with the cli', done: true }, { id: uniqueid('todo-'), label: 'have fun', done: true }, { id: uniqueid('todo-'), label: 'create a to-do list', done: false } ...
... the <script> contents in your todoitem component should now look something like this: export
default { props: { label: {required: true, type: string}, done: {
default: false, type: boolean}, id: {required: true, type: string} }, data() { return { isdone : this.done, } }, } now, over in your app.vue component, pass item.id as a prop to the todoitem component.
Strategies for carrying out testing - Learn web development
studying analytics data now you should be able to go back to the analytics web homepage, and start looking at the data you've collected about your site (you need to leave a little bit of time for some data to actually be collected, of course.) by
default, you should see the reporting tab, like so: there is a huge amount of data you could look at using google analytics — customized reports in different categories, etc.
...you'll: provide a name for the new virtual machine choose which operating system and version you are installing on it set how much ram should be allocated (we'd recommend something like 2048mb, or 2gb) create a virtual hard disk (choose the
default options across the three dialog boxes containing create a virtual hard disk now, vdi (virtual disk image), and dynamically allocated).
... having multiple virtual machines is very useful, particularly for windows ie/edge testing — on windows, you are not able to have multiple versions of the
default browser installed side by side, so you might want to build up a library of virtual machines to handle different tests as required, e.g.: windows 10 with edge 14 windows 10 with edge 13 windows 8.1 with ie11 windows 8 with ie10 windows 7 with ie9 windows xp with ie8 windows xp with ie7 windows xp with ie6 note: another good thing about virtual machines is that the virtual disk images ...
Building Firefox with Debug Symbols
by
default, a release build of firefox will not generate debug symbols suitable for debugging or post-processing into the breakpad symbol format.
...this is enabled by
default so unless you have explcitly disabled it your build you should include symbols.
...by
default it uses "-g" on linux and macos.
Eclipse CDT
when eclipse's indexer tries to process the mozilla source, eclipse will need considerably more memory than the limits imposed by its
default configuration.
... keyboard shortcuts regarding key bindings (keyboard shortcuts), the bindings given below are the
defaults.
...when the object directory is inside the source directory (and not filtered out by a resource filter), then eclipse's "allow heuristic resolution of includes" option (enabled by
default) will generally allow the included headers to be found when eclipse processes source files, that don't have any build output parser data.
Limitations of chrome scripts
you'll get the shims for your add-on by
default, unless you set the multiprocesscompatible flag in your add-on's install manifest.
... nsiaboutmodule by
default, custom about: pages registered using nsiaboutmodule are loaded in the chrome process.
... you can change this
default in the code you use to register the about: uri.
Using the Browser API
when you press the keyboard's return button, the 'submit' event is fired, which we handle like this: urlform.addeventlistener('submit',function(e) { e.prevent
default(); browser.src = urlbar.value; urlbar.blur(); }); we first call prevent
default() to stop the form just submitting and reloading the page — which is really not what we want.
...try searching for "firefox" on the
default page when the app first loads.
... searchform.addeventlistener('submit',function(e) { e.prevent
default(); browser.findall(searchbar.value, 'case-sensitive'); searchactive = true; prev.disabled = false; next.disabled = false; searchbar.blur(); }); with this all done, you'll see your search results are highlighted; you can cycle through these using the htmliframeelement.findnext() method (specify forward and backward to go in either direction through the results), which is what our next t...
Script security
objects in a privileged scope are allowed complete access to objects in a less privileged scope, but by
default they see a restricted view of such objects, designed to prevent them from being tricked by the untrusted code.
... a gets access to all of b, by
default with xray vision, which it may choose to waive.
...the expanded principal gets full access to the content principals it contains, with xray vision by
default, and the content principals get no access to the expanded principal.
IME handling guide
and before dispatching ecomposition* events, this class removes ascii control characters from dispatching composition event's data in the
default settings.
...if the user uses such old chinese ime, "intl.ime.remove_placeholder_character_at_commit" pref may be useful but we don't support them anymore in
default settings (except if somebody will find a good way to fix this issue).
...typically, a process creates windows with
default im context.
AddonManager
autoupdate
default boolean whether add-ons should auto-update by
default (overrideable per add-on).
... corresponds to the extensions.autoupdate
default preference.
... autoupdate_
default indicates that the add-on should update automatically only if that's the global
default.
XPCOMUtils.jsm
if not // provided, the
default factory is used, which returns // |(new mycomponent()).queryinterface(iid)| in its createinstance().
... category: "some-category", // optional,
defaults to the object's classdescription entry: "entry name", // optional,
defaults to the object's contractid (unless // 'service' is specified) value: "...", // optional,
defaults to false.
...this parameter is optional and
defaults to aname.
Application Translation with Mercurial
the
default localization branch is aurora.
...install it into your
default firefox profile (you will have more than one profile when following this guide).
... paste the following content into the file: [ui] username = firstname lastname <mynick@example.com> merge = internal:merge [alias] qexport = export -g -r qtip qexportall = diff -r qparent [
defaults] commit = -v diff = -p -u 8 qdiff = -p -u 8 qnew = -u [diff] git = 1 showfunc = 1 unified = 8 [extensions] hgext.mq = progress = [hooks] put in your name and email address which later will be public on the internet after your translation patch got accepted and uploaded.
Localizing with Koala
the search bar is next to the right of the location bar, and by
default points to the google search.
...branch:
default.
... branch:
default.
gettext
for instance, in php the
default keyword for regular messages is gettext() and _().
... for messages with plural support, the
default keyword is ngettext().
...in php, however, the
default gettext functions don't support passing such additional argument.
MathML Torture Test
mathml torture test html content <p> render mathematics with: <select name="mathfont" id="mathfont"> <option value="
default" selected="selected">
default fonts</option> <option value="asana">asana</option> <option value="cambria">cambria</option> <option value="dejavu">dejavu</option> <option value="latinmodern">latin modern</option> <option value="libertinus">libertinus</option> <option value="lucidabright">lucida bright</option> <option value="minion">minion</option> <option value="stixtwo">stix two</option> <option value="texgyrebonum">tex gyre bonum</option> <option value="texgyrepagella">tex gyre pagella</option> <option value="texgyreschola">tex gyre schola</option> <option value="texgyretermes">tex gyre termes</option> <...
...th { font-family: tex gyre bonum math; } .texgyrepagella math { font-family: tex gyre pagella math; } .texgyreschola math { font-family: tex gyre schola math; } .texgyretermes math { font-family: tex gyre termes math; } .xits math { font-family: xits math; } javascript content function updatemathfont() { var mathfont = document.getelementbyid("mathfont").value; if (mathfont == "
default") { document.body.removeattribute("class"); } else { document.body.setattribute("class", mathfont); } } function load() { document.getelementbyid("mathfont").
...it compares the rendering by the xetex engine using the
default latin modern math font against the mathml rendering by your browser using the
default math font, or an alternative opentype math fonts.
tools/power/rapl
output the following is 10 seconds of output from a
default invocation of rapl.
...
defaults to 1000.
...the
default is 0, which is interpreted as "unlimited".
javascript.options.showInConsole
type:boolean
default value: false (true in debug builds) exists by
default: yes application support:firefox 1.0 status: active introduction:2002-02-26 bugs: bug 125181 bug 337875 values false only errors and warnings from content code are shown.
... true (
default) errors and warnings from both chrome and content are shown in the error console.
... note: since the web console was introduced in firefox 4 specifically for debugging content, the
default value for this preference has changed to true as of gecko 2.0.
reader.parse-on-load.force-enabled
by
default, the reader mode in firefox mobile is only enabled if the memory is greater than 384mb.
... type:boolean
default value: false exists by
default: yes application support:firefox mobile 23.0 status: active; last updated 2013-05-11 introduction: pushed to nightly on 2013-05-06 bugs: bug 867875 values true reader mode is enabled independent of memory available.
... false (
default) reader mode is only enabled if memory available exceeds a threshold (currenlty 384mb).
PL_NewHashTable
you can pass a value of 0 as numbuckets to create the
default number of buckets in the new table.
...you can specify a null value for allocops to use the
default allocation functions.
...note that the
default freeentry function does not free the value of the entry.
PR_GetLibraryPath
retrieves the current
default library path.
... returns a copy of the
default library pathname string.
... description this function retrieves the current
default library pathname, copies it, and returns the copy.
PR_SetLibraryPath
registers a
default library pathname with a runtime.
... syntax #include <prlink.h> prstatus pr_setlibrarypath(const char *path); parameters the function has this parameter: path a pointer to a character array that contains the directory path that the application should use as a
default.
...this may indicate that the function cannot allocate sufficient storage to make a copy of the path string description this function registers a
default library pathname with the runtime.
Building NSS
this is the
default.
...this is the
default.
...this is the
default.
4.3.1 Release Notes
all ssl/tls renegotiation is disabled by
default in nss 3.12.5 and therefore will be disabled by
default with jss 4.3.1.
...this
default setting can also be changed within the application by using the following jss methods: sslserversocket.enablerenegotiation(int mode) sslsocket.enablerenegotiation(int mode) sslsocket.enablerenegotiation
default(int mode) the mode of renegotiation that the peer must use can be set to the following: sslsocket.ssl_renegotiate_never - never renegotiate at all.
... (
default) sslsocket.ssl_renegotiate_unrestricted - renegotiate without restriction, whether or not the peer's client hello bears the renegotiation info extension (like we always did in the past).
NSS 3.15 release notes
tls client applications may enable this via a call to ssl_optionset
default(ssl_enable_ocsp_stapling, pr_true); added function secitem_reallocitemv2.
... the
default implementation of ssl_authcertificate has been updated to add certificate status responses stapled by the tls server to the ocsp cache.
... applications that use ssl_authcertificatehook to override the
default handler should add appropriate calls to ssl_peerstapledocspresponse and cert_cacheocspresponsefromsidechannel.
NSS 3.46 release notes
60eddc27a412531ae bug 1574670 - remove expired deutsche telekom root ca 2 root certificate sha-256 fingerprint: b6191a50d0c3977f7da99bcdaac86a227daeb9679ec70ba3b0c9d92271c170d3 bug 1566569 - remove swisscom root ca 2 root certificate sha-256 fingerprint: f09b122c7114f4a09bd4ea4f4a99d558b46e4c25cd81140d29c05613914c3841 upcoming changes to
default tls configuration the next nss team plans to make two changes to the
default tls configuration in nss 3.47, which will be released in october: tls 1.3 will be the
default maximum tls version.
... tls extended master secret will be enabled by
default, where possible.
...ug 1568776 - output paths relative to repository in nss coverity bug 1453408 - modutil -changepw fails in fips mode if password is an empty string bug 1564727 - use a pss spki when possible for delegated credentials bug 1493916 - fix ppc64 inline assembler for clang bug 1561588 - remove -wmaybe-uninitialized warning in p7env.c bug 1561548 - remove -wmaybe-uninitialized warning in pkix_pl_ldap
defaultclient.c bug 1512605 - incorrect alert description after unencrypted finished msg bug 1564715 - read /proc/cpuinfo when at_hwcap2 returns 0 bug 1532194 - remove or fix -ddebug_$user from make builds bug 1565577 - visual studio's cl.exe -?
NSS Config Options
future key words (not yet implemented): enable: turn on ciphersuites by
default.
... disable: turn off ciphersuites by
default without disallowing them by policy.
... ssl-
default-lock: turn off the ability for applications to change cipher suite states with ssl_enablecipher, ssl_disablecipher.
NSS Tools sslstrength
however, the port number is an optional argument, and if not given, will
default to the https port (443).
... restricting ciphers by
default, sslstrength assumes that all the preferences are on, so it will use any preferences in your policy.
... policy will
default to domestic if not specified.
PKCS11 Implement
the supplied library names are used as the
default library names; currently, these names should not include any double quotation marks.
...if your token requires authentication before executing these functions, your token cannot provide the
default implementation for them.
... (you can still use your token for other
default functions.) nss does not support replacement of
default functions.
NSS cryptographic module
the nss cryptographic module has two modes of operation: the non-fips (
default) mode and fips mode.
... the standard pkcs #11 function c_getfunctionlist or the equivalent nsc_getfunctionlist function returns pointers to the functions that implement the
default mode of operation.
... pkcs #11 data types pkcs #11 functions in the non-fips (
default) mode of operation pkcs #11 functions in the fips mode of operation nsc_moduledbfunc ...
NSS tools : crlutil
on unix the certificate database tool
defaults to $home/.netscape (that is, ~/.netscape).
... on windows nt the
default is the current directory.
...if this argument is not used the output destination
defaults to standard output.
NSS Tools crlutil
on unix the certificate database tool
defaults to $home/.netscape (that is, ~/.netscape).
... on windows nt the
default is the current directory.
...if this argument is not used the output destination
defaults to standard output.
NSS Tools sslstrength
however, the port number is an optional argument, and if not given, will
default to the https port (443).
... restricting ciphers by
default, sslstrength assumes that all the preferences are on, so it will use any preferences in your policy.
... policy will
default to domestic if not specified.
NSS tools : crlutil
on unix the certificate database tool
defaults to $home/.netscape (that is, ~/.netscape).
... on windows nt the
default is the current directory.
...if this argument is not used the output destination
defaults to standard output.
NSS tools : signver
by
default, the tools (certutil, pk12util, modutil) assume that the given security databases follow the more common legacy type.
...for example: # signver -a -s signature -d sql:/home/my/sharednssdb to set the shared database type as the
default type for the tools, set the nss_
default_db_type environment variable to sql: export nss_
default_db_type="sql" this line can be set added to the ~/.bashrc file to make the change permanent.
... most applications do not use the shared database by
default, but they can be configured to use them.
Rhino serialization
how rhino serialization works by
default, java serialization of an object also serializes objects that are referred to by that object.
...
default serialization would serialize the object or function we desired but would also serialize object.prototype or even possibly the entire top-level scope and everything it refers to!
...by
default, scriptableoutputstream excludes all the names defined using context.initstandardobjects.
Hacking Tips
$ gdb --args out/dist/bin/js ./foo.js […] spidermonkey unwinder is disabled by
default, to enable it type: enable unwinder .* spidermonkey (gdb) b js::math_cos (gdb) run […] #0 js::math_cos (cx=0x14f2640, argc=1, vp=0x7fffffff6a88) at js/src/jsmath.cpp:338 338 callargs args = callargsfromvp(argc, vp); (gdb) enable unwinder .* spidermonkey (gdb) backtrace 10 #0 0x0000000000f89979 in js::math_cos(jscontext*, unsigned int, js::value*) (cx=0x14f2640, argc=1, vp=0x7f...
...if gdb does not load the unwinder by
default, you can force it to, by using the source command with the js-gdb.py file.
...by
default the function writes to stdout, but a filename can be specified as an argument.
JSConvertOp
hint jstype the hint to pass to the [[
defaultvalue]] hook when converting the object.
... description jsconvertop callback specifies conversion behavior for objects having this class, implementing the ecmascript [[
defaultvalue]] behavior for them.
... jsclass hooks jsclass offers the following hook: the jsclass.convert callback implements the [[
defaultvalue]] behavior for objects having that class.
The Publicity Stream API
if not specified, will
default to the beginning of the stream.
...if not specified, will
default to now.
...if not specified, will
default to [25].
extISessionStorage
return type method boolean has(in astring aname) void set(in astring aname, in nsivariant avalue) nsivariant get(in astring aname, in nsivariant a
defaultvalue) attributes attribute type description events readonly attribute extievents the events object for the storage supports: "change" methods has() determines if a storage item exists with the given name.
...returns a
default value if the item does not exist.
... nsivariant get(in astring aname, in nsivariant a
defaultvalue) parameters aname the name of an item return value value of the item or the given
default value if no item exists with the given name.
Setting up the Gecko SDK
in the win32 dynamic-link library dialog that displays (see below), you can choose the
default selection "an empty dll project" as the type of dll.
... set lib=c:\program files\microsoft sdks\windows\v7.0\lib;c:\program files (x86)\microsoft visual studio 9.0\vc\lib;d:\projects\xulrunner-sdk\lib this tells the linker where the
default libraries to bind to are.
...ispecialthing { public: ns_decl_isupports ns_decl_ispecialthing cspecialthing(); private: ~cspecialthing(); protected: /* additional members */ nsstring mname; }; #endif cspecialthing.cpp #include "cspecialthing.h" ns_impl_isupports1(cspecialthing, ispecialthing) cspecialthing::cspecialthing() { /* member initializers and constructor code */ mname.assign(l"
default name"); } cspecialthing::~cspecialthing() { /* destructor code */ } /* attribute astring name; */ ns_imethodimp cspecialthing::getname(nsastring & aname) { aname.assign(mname); return ns_ok; } ns_imethodimp cspecialthing::setname(const nsastring & aname) { mname.assign(aname); return ns_ok; } /* long add (in long a, in long b); */ ns_imethodimp cspecialthing::add(print32 a,...
Mozilla internal string guide
all string classes support the following three ownership models dynamically: reference counted, copy-on-write, buffers (the
default) adopted buffers (a buffer that the string class owns, but is not reference counted, because it came from somewhere else) dependent buffers, that is, an underlying buffer that the string class does not own, but that the caller that constructed the string guarantees will outlive the string instance in addition, there is a special string class, ns[c]autostring, that additionally contains an int...
...these types are really just convenient notation for constructing an ns[c]s[ubs]tring with a non-
default ownership mode; they should not be thought of as different types.
...the syntax is: prbool findinreadable(const nsastring& pattern, nsastring::const_iterator start, nsastring::const_iterator end, nsstringcomparator& acomparator = ns
defaultstringcomparator()); to use this, start and end should point to the beginning and end of a string that you would like to search.
Components.utils.cloneInto
if omitted the
default value is false.
...if omitted the
default value is false.
...); } }; contentwindow.addonscriptobject = cloneinto(addonscriptobject, contentwindow, {clonefunctions: true}); // page script var test = document.getelementbyid("test"); test.addeventlistener("click", function() { window.addonscriptobject.greetme(); }, false); cloning objects that contain dom elements by
default, if the object you clone contains objects that are reflected from c++, such as dom elements, the cloning operation will fail with an error.
Components.utils.exportFunction
boolean,
defaulting to false.
...boolean,
defaulting to false.
...because structured cloning does not clone functions, this meant that the function may not return a function, and by
default, may not take any functions as arguments.
mozIStorageConnection
sqlite database page size constant constant value description
default_page_size 32768 the
default size for sqlite database pages.
... this is used by the storage api when creating new databases, and must match the sqlite_
default_page_size configured in db/sqlite3/src/makefile.in.
...this is false by
default.
GetKeyBindings
exceptions thrown ns_error_invalid_arg the given index doesn't correspond to
default action (not zero).
... remark key bindings are supported for
default action only.
... see also nsiaccessible.
defaultkeybinding nsiaccessible.keyboardshortcut ...
nsIAccessible
following methods are used to get them nsiaccessible.
defaultkeybinding(), nsiaccessible.getkeybindings(), nsiaccessible.keyboardshortcut.
...action number 0 is the
default action.
...
defaultkeybinding provides localized string of global keyboard accelerator for
default action, such as ctrl+o for open file.
nsIAuthPrompt
to create an instance, use: var authprompt = components.classes["@mozilla.org/login-manager/prompter;1"] .createinstance(components.interfaces.nsiauthprompt); method overview boolean prompt(in wstring dialogtitle, in wstring text, in wstring passwordrealm, in pruint32 savepassword, in wstring
defaulttext, out wstring result); boolean promptpassword(in wstring dialogtitle, in wstring text, in wstring passwordrealm, in pruint32 savepassword, inout wstring pwd); boolean promptusernameandpassword(in wstring dialogtitle, in wstring text, in wstring passwordrealm, in pruint32 savepassword, inout wstring user, inout wstring pwd); constants constant value desc...
... boolean prompt( in wstring dialogtitle, in wstring text, in wstring passwordrealm, in pruint32 savepassword, in wstring
defaulttext, out wstring result ); parameters dialogtitle the title of the dialog.
...one of the save_password_* constants
defaulttext the
default text for the text input dialog box.
nsIConverterInputStream
to create an instance, use: var converterinputstream = components.classes["@mozilla.org/intl/converter-input-stream;1"] .createinstance(components.interfaces.nsiconverterinputstream); method overview void init(in nsiinputstream astream, in string acharset, in long abuffersize, in prunichar areplacementchar); constants constant value description
default_replacement_character 0xfffd
default replacement character value.
...in case of a buffer size of less than or equal to 0, the
default size converter_buffer_size will be used.
...the
default replacement character is u+fffd.
nsIDOMParser
these values are automatically determined as defined below, but if you work with domparser from privileged code, you can override the
defaults by providing arguments to the domparser constructor or calling parser.init().
...if fewer than three parameters are passed, the remaining parameters will
default to null.
... the first parameter is the principal to use; this overrides the
default principal normally inherited.
nsIEventListenerService
system-group eventlisteners are called after all eventlisteners in
default-group handle the events.
... so, system-group eventlisteners can implement the
default action of the event.
... even if an event is stopped its propagation in
default-group, the event will be fired again in system-group.
nsIFrameLoader
method overview void activateframeevent(in astring atype, in boolean capture); void activateremoteframe(); void destroy(); void loadframe(); void loaduri(in nsiuri auri); void sendcrossprocesskeyevent(in astring atype, in long akeycode, in long acharcode, in long amodifiers, [optional] in boolean aprevent
default); void sendcrossprocessmouseevent(in astring atype, in float ax, in float ay, in long abutton, in long aclickcount, in long amodifiers, [optional] in boolean aignorerootscrollframe); void updatepositionandsize(in nsiframe aiframe); native code only!
... void sendcrossprocesskeyevent( in astring atype, in long akeycode, in long acharcode, in long amodifiers, [optional] in boolean aprevent
default ); parameters atype the event type.
... aprevent
default whether or not to prevent
default actions from being performed.
nsILoginManagerStorage
gecko 1.9.1 note
default values for the nsiloginmetainfo properties are created if the specified login doesn't explicitly specify them.
...initwithfile() implement this method to initialize the component, overriding the
default filename locations with those specified.
...if this is null, use the
default output file.
nsIPipe
segmentsize specifies the segment size in bytes (pass 0 to use
default value) segmentcount specifies the max number of segments (pass 0 to use
default value).
...the
default value for this parameter is a finite value.
... segmentallocator pass reference to nsimemory to have all pipe allocations use this allocator (pass null to use the
default allocator) remarks the reader and writer of a pipe do not have to be on the same thread.
nsIProtocolProxyService
pass 0 to specify the
default behavior.
...pass 0 to specify the
default behavior.
...pass pr_uint32_max to specify the
default timeout value, causing nsiproxyinfo::failovertimeout to be assigned the
default value.
nsITaskbarTabPreview
1.0 66 introduced gecko 1.9.2 inherits from: nsitaskbarpreview last changed in gecko 1.9.2 (firefox 3.6 / thunderbird 3.1 / fennec 1.0) tab preview support is disabled by
default in gecko 1.9.2 creating an nsitaskbartabpreview for a window will automatically hide that window's nsitaskbarwindowpreview; this is done by windows and cannot be prevented.
...this is null by
default.
...by
default, this is an empty string.
nsIToolkitProfileService
selectedprofile nsitoolkitprofile the profile that is marked as "
default=1" in the profiles.ini file.
...may be null, in which case a suitable
default will be chosen based on the profile name.
...if the path does not exist, it is created and the
defaults copied from the application directory.
nsIUpdateTimerManager
remarks note that the timer is not precise, and that the
default minimum interval is 2 minutes.
... preference the preference for the timer interval; this allows a preference to override the
default interval.
... this can be an empty string if the
default interval should not be overridden.
nsIXULBrowserWindow
method overview astring onbeforelinktraversal(in astring originaltarget, in nsiuri linkuri, in nsidomnode linknode, in prbool isapptab); void setjs
defaultstatus(in astring status); void setjsstatus(in astring status); void setoverlink(in astring link, in nsidomelement element); methods onbeforelinktraversal() called before traversing a link to determine the appropriate target into which to load the link.
...setjs
defaultstatus() sets the
default status according to javascript's version of the
default status.
... void setjs
defaultstatus( in astring status ); parameters status the status string.
MailNews fakeserver
it is off by
default.
...i tend to like using 1024 +
default port number myself.
...to enable/disable debugging, call setdebuglevel on your nsmailserver instance with one of the following options: const fsdebugnone = 0; // dump nothing const fsdebugrecv = 1; // dump just the received commands const fsdebugrecvsend = 2; // dump received + sent commands, no data const fsdebugall = 3; // dump everything debugging is set to "none" by
default.
Working with windows in chrome code
you can get a window object from a document using document.
defaultview.
...with xpcnativewrappers turned on (which is the
default in firefox 1.5+), your extension can safely access the dom of the content document, but not the content javascript.
... application.storage.set(keyname, data); var data = application.storage.get(keyname,
default); where: keyname is a string used to identify the data data is the data
default is the data value to return if keyname does not exists pros: its the "right way".
ABI
three different abis exist: ctypes.
default_abi, ctypes.stdcall_abi, and ctypes.winapi_abi.
... ctypes.
default_abi corresponds to cdecl; standard libraries use this abi.
... other all other operating systems use ctypes.
default_abi as their calling convention for all function declarations.
Flash Activation: Browser Comparison - Plugins
each of the major browsers has now implemented a feature where adobe flash content does not run by
default, but each of the browsers has implemented this feature and the user interface in slightly different ways.
... mozilla firefox google chrome microsoft edge setting name ask to activate html5 by
default click-to-run 'application/x-shockwave-flash' in navigator.mimetypes by
default when flash is inactive yes no no 'application/x-shockwave-flash' in navigator.mimetypes when user enables flash yes yes yes <object> with fallback content triggers ui yes, with exceptions no yes small/hidden flash triggers additional ui yes no n...
...this can be done by calling a javascript function when the plugin is activated: function plugincreated() { // we don't need to see the plugin, so hide it by resizing var plugin = document.getelementbyid('myplugin'); plugin.height = 0; plugin.width = 0; plugin.callpluginmethod(); } the html, by
default, specifies the flash object to be a size that makes it visible, like this: <!-- give the plugin an initial size so it is visible --> <object type="application/x-shockwave-flash" data="myapp.swf" id="myplugin" width="300" height="300"> <param name="callback" value="plugincreated()"> </object> the callback parameter defined in the html can be called in flash using its flash.external.exter...
Drawing and Event Handling - Plugins
an embedded plug-in can set the pluginprinted field in its printinfo parameter to false (the
default).
... a windowless plug-in is transparent by
default.
... windowless plug-ins are transparent by
default.
URLs - Plugins
if the plug-in instance document has no parent, the
default is _self.
...the
default is _self, if the plug-in instance document is already at the top.
...the following code sends a mail message with the
default headers from the client machine.
Accessibility Inspector - Firefox Developer Tools
semantic dom elements have roles assigned to them by
default that hint at what their purpose is.
... sometimes, however, you need to use some non-semantic markup (e.g., <div>s) to build a complex custom control, and the control won't have a
default role that reflects its purpose.
...this can be either a
default role provided by the browser, or a role given to it via a wai-aria role attribute.
DOM Property Viewer - Firefox Developer Tools
it is disabled by
default.
... enabling the dom property viewer the dom property viewer is not enabled by
default.
... to enable it, open the developer tool settings and check the "dom" box under "
default firefox developer tools".
Aggregate view - Firefox Developer Tools
before firefox 48, this was the
default view of a heap snapshot.
... after firefox 48, the
default view is the tree map view, and you can switch to the aggregate view using the dropdown labeled "view:": the aggregate view looks something like this: it presents a breakdown of the heap's contents, as a table.
... type this is the
default view, which looks something like this: it groups the things on the heap into types, including: javascript objects: such as function or array dom elements: such as htmlspanelement or window strings: listed as "strings" javascript sources: listed as "jsscript" internal objects: such as "js::shape".
Migrating from Firebug - Firefox Developer Tools
examine variables the watch side panel in firebug displays the window object (the global scope) by
default.
...the
default one is to edit them inline like within the style side panel.
... the devtools don't show by
default whether a cookie is secure, but this can be enabled by right-clicking the table header and checking secure from the context menu.
Style Editor - Firefox Developer Tools
actually instruct the preprocessor to generate a source map, for example by passing the --source-map argument to the lass command-line tool, but in some preprocessors like sass, source maps are generated by
default and you don't need to do anything.
... from firefox 35 onwards original sources are displayed by
default.
... keyboard shortcuts source editor shortcuts this table lists the
default shortcuts for the source editor.
Animation.timeline - Web APIs
by
default, the animation's timeline and the document's timeline are the same.
... syntax var animationstimeline = animation.timeline; animation.timeline = newtimeline; value a timeline object to use as the timing source for the animation, or null to use the
default, which is the document's timeline.
... examples here we set the animation's timeline to be the same as the document's timeline (this is the
default timeline for all animations, by the way): animation.timeline = document.timeline; specifications specification status comment web animationsthe definition of 'animation.timeline' in that specification.
AnimationPlaybackEvent.AnimationPlaybackEvent() - Web APIs
eventinitdict optional an optional eventinit dictionary object containing the following fields: bubbles optional
defaults to false, of type boolean, indicating if the event bubbles or not.
... cancelable optional
defaults to false, of type boolean, indicating if the event can be canceled or not.
... detail optional
defaults to null, of type any — an event-dependent value associated with the event.
Blob.slice() - Web APIs
the
default value is 0.
...the
default value is size.
...the
default value is an empty string.
Cache.delete() - Web APIs
it
defaults to false.
... ignoremethod: a boolean that, when set to true, prevents matching operations from validating the request http method (normally only get and head are allowed.) it
defaults to false.
...it
defaults to false.
Cache.keys() - Web APIs
it
defaults to false.
... ignoremethod: a boolean that, when set to true, prevents matching operations from validating the request http method (normally only get and head are allowed.) it
defaults to false.
...it
defaults to false.
Cache.match() - Web APIs
it
defaults to false.
... ignoremethod: a boolean that, when set to true, prevents matching operations from validating the request http method (normally only get and head are allowed.) it
defaults to false.
...it
defaults to false.
Cache.matchAll() - Web APIs
it
defaults to false.
... ignoremethod: a boolean that, when set to true, prevents matching operations from validating the request http method (normally only get and head are allowed.) it
defaults to false.
...it
defaults to false.
CanvasRenderingContext2D.imageSmoothingEnabled - Web APIs
the imagesmoothingenabled property of the canvasrenderingcontext2d interface, part of the canvas api, determines whether scaled images are smoothed (true,
default) or not (false).
...when enlarging images, the
default resizing algorithm will blur the pixels.
...the
default value is true.
Pixel manipulation with canvas - Web APIs
zoomctx.drawimage(canvas, math.min(math.max(0, x - 5), img.width - 10), math.min(math.max(0, y - 5), img.height - 10), 10, 10, 0, 0, 200, 200); because anti-aliasing is enabled by
default, we might want to disable the smoothing to see clear pixels.
...it returns a data uri containing a representation of the image in the format specified by the type parameter (
defaults to png).
...see security and tainted canvases in allowing cross-origin use of images and canvas canvas.todataurl('image/png')
default setting.
ChannelMergerNode - Web APIs
in the case that no value is given, it will
default to 6.
... number of inputs variable;
default to 6.
... number of outputs 1 channel count mode "max" channel count 2 (not used in the
default count mode) channel interpretation "speakers" constructor channelmergernode() creates a new channelmergernode object instance.
ChannelSplitterNode - Web APIs
in the case that no value is given, it will
default to 6.
... number of inputs 1 number of outputs variable;
default to 6.
...older implementations, as per earlier versions of the spec use 2 (not used in the
default count mode).
CloseEvent() - Web APIs
closeeventinit optional is a closeeventinit dictionary, having the following fields: "wasclean", optional and
defaulting to false, of type long, indicates if the connection has been closed cleanly or not.
... "code", optional and
defaulting to 0, of type unsigned short, that is the connection close code sent by the server.
... "reason", optional and
defaulting to '', of type domstring, that is a human-readable reason why the server closed the connection.
DataTransfer.mozCursor - Web APIs
the possible values are: auto uses the
default system behavior.
...
default uses the
default gecko behavior, which is to set the cursor to an arrow during the drag operation.
... note: if any value other than
default is set, auto is assumed.
DataTransfer.setDragImage() - Web APIs
if that file is present, it will be used as the drag image and if that file is not present, the browser will use its
default drag image.
...use the event target's id for the data ev.datatransfer.setdata("text/plain", ev.target.id); // create an image and use it for the drag image // note: change "example.gif" to an existing image or the image will not // be created and the
default drag image will be used.
... var img = new image(); img.src = 'example.gif'; ev.datatransfer.setdragimage(img, 10, 10); } function dragover_handler(ev) { console.log("dragover"); ev.prevent
default(); } function drop_handler(ev) { console.log("drop"); ev.prevent
default(); // get the data, which is the id of the drop target var data = ev.datatransfer.getdata("text"); ev.target.appendchild(document.getelementbyid(data)); } </script> <body> <h1>example of <code>datatransfer.setdragimage()</code></h1> <div> <p id="source" ondragstart="dragstart_handler(event);" draggable="true"> select this element, drag it to the drop zone and then release the selection to move the element.</p> </div> <div id="target" ondrop="drop_handler(event);" ondragover="dragover_handler(event);">drop zone</div> </body> </html> spe...
Document.cookie - Web APIs
consider also that: any of the following cookie attribute values can optionally follow the key-value pair, specifying the cookie to set/update, and preceded by a semi-colon separator: ;path=path (e.g., '/', '/mydir') if not specified,
defaults to the current path of the current document location.
...if not specified, this
defaults to the host portion of the current document location.
...this is the
default value in modern browsers.
Document.designMode - Web APIs
according to the specification, this property is meant to
default to "off".
...the earlier versions of chrome and ie
default to "inherit".
... starting in chrome 43, the
default is "off" and "inherit" is no longer supported.
Document: drag event - Web APIs
bubbles yes cancelable yes
default action continue the drag & drop operation.
...on the dragged elem dragged = event.target; // make it half transparent event.target.style.opacity = .5; }, false); document.addeventlistener("dragend", function(event) { // reset the transparency event.target.style.opacity = ""; }, false); /* events fired on the drop targets */ document.addeventlistener("dragover", function(event) { // prevent
default to allow drop event.prevent
default(); }, false); document.addeventlistener("dragenter", function(event) { // highlight potential drop target when the draggable element enters it if (event.target.classname == "dropzone") { event.target.style.background = "purple"; } }, false); document.addeventlistener("dragleave", function(event) { // reset background of potential drop target whe...
...n the draggable element leaves it if (event.target.classname == "dropzone") { event.target.style.background = ""; } }, false); document.addeventlistener("drop", function(event) { // prevent
default action (open as link for some elements) event.prevent
default(); // move dragged elem to the selected drop target if (event.target.classname == "dropzone") { event.target.style.background = ""; dragged.parentnode.removechild( dragged ); event.target.appendchild( dragged ); } }, false); specifications specification status comment html living standardthe definition of 'drag event' in that specification.
Element: contextmenu event - Web APIs
any right-click event that is not disabled (by calling the event's prevent
default() method) will result in a contextmenu event being fired at the targeted element.
... bubbles yes cancelable yes interface mouseevent event handler property oncontextmenu examples in this example, the
default action of the contextmenu event is canceled using prevent
default() when the contextmenu event is fired at the first paragraph.
... html <p id="nocontextmenu">the context menu has been disabled on this paragraph.</p> <p>but it has not been disabled on this one.</p> javascript nocontext = document.getelementbyid('nocontextmenu'); nocontext.addeventlistener('contextmenu', e => { e.prevent
default(); }); result specifications specification status comment html living standardthe definition of 'contextmenu' in that specification.
Element: copy event - Web APIs
bubbles yes cancelable yes interface clipboardevent event handler property oncopy the event's
default action is to copy the selection (if any) to the clipboard.
... a handler for this event can modify the clipboard contents by calling setdata(format, data) on the event's clipboardevent.clipboarddata property, and cancelling the event's
default action using event.prevent
default().
...css div.source, div.target { border: 1px solid gray; margin: .5rem; padding: .5rem; height: 1rem; background-color: #e9eef1; } js const source = document.queryselector('div.source'); source.addeventlistener('copy', (event) => { const selection = document.getselection(); event.clipboarddata.setdata('text/plain', selection.tostring().touppercase()); event.prevent
default(); }); result specifications specification status clipboard api and events working draft ...
Element: paste event - Web APIs
bubbles yes cancelable yes interface clipboardevent event handler property onpaste if the cursor is in an editable context (for example, in a <textarea> or an element with contenteditable attribute set to true) then the
default action is to insert the contents of the clipboard into the document at the cursor position.
... to override the
default behavior (for example to insert some different data or a transformation of the clipboard contents) an event handler must cancel the
default action using event.prevent
default(), and then insert its desired data manually.
...selector('div.target'); target.addeventlistener('paste', (event) => { let paste = (event.clipboarddata || window.clipboarddata).getdata('text'); paste = paste.touppercase(); const selection = window.getselection(); if (!selection.rangecount) return false; selection.deletefromdocument(); selection.getrangeat(0).insertnode(document.createtextnode(paste)); event.prevent
default(); }); result specifications specification status clipboard api and events working draft ...
Event() - Web APIs
the
default is false.
...the
default is false.
...the
default is false.
Using files from web applications - Web APIs
they just stop propagation of the event and prevent the
default action from occurring: function dragenter(e) { e.stoppropagation(); e.prevent
default(); } function dragover(e) { e.stoppropagation(); e.prevent
default(); } the real magic happens in the drop() function: function drop(e) { e.stoppropagation(); e.prevent
default(); const dt = e.datatransfer; const files = dt.files; handlefiles(files); } here, we retrieve the datatransfer f...
... the handlefiles() method follows: const fileselect = document.getelementbyid("fileselect"), fileelem = document.getelementbyid("fileelem"), filelist = document.getelementbyid("filelist"); fileselect.addeventlistener("click", function (e) { if (fileelem) { fileelem.click(); } e.prevent
default(); // prevent navigation to "#" }, false); fileelem.addeventlistener("change", handlefiles, false); function handlefiles() { if (!this.files.length) { filelist.innerhtml = "<p>no files selected!</p>"; } else { filelist.innerhtml = ""; const list = document.createelement("ul"); filelist.appendchild(list); for (let i = 0; i < this.files.length; i++) { const li = docu...
... } }; fd.append('myfile', file); // initiate a multipart/form-data upload xhr.send(fd); } window.onload = function() { const dropzone = document.getelementbyid("dropzone"); dropzone.ondragover = dropzone.ondragenter = function(event) { event.stoppropagation(); event.prevent
default(); } dropzone.ondrop = function(event) { event.stoppropagation(); event.prevent
default(); const filesarray = event.datatransfer.files; for (let i=0; i<filesarray.length; i++) { sendfile(filesarray[i]); } } } </script> </head> <body> <div> ...
HTMLBaseFontElement - Web APIs
the document text in the
default style is rendered in the first font face that the client's browser supports.
... if no font listed is installed on the local system, the browser typically
defaults to the proportional or fixed-width font for that system.
...numeric values range from 1 to 7 with 1 being the smallest and 3 the
default.
HTMLCanvasElement - Web APIs
when the attribute is not specified, or if it is set to an invalid value, like a negative, the
default value of 150 is used.
...when the attribute is not specified, or if it is set to an invalid value, like a negative, the
default value of 300 is used.
... htmlcanvaselement.todataurl() returns a data-url containing a representation of the image in the format specified by the type parameter (
defaults to png).
HTMLInputElement.setRangeText() - Web APIs
defaults to the current selectionstart value (the start of the user's current selection).
...
defaults to the current selectionend value (the end of the user's current selection).
...this is the
default.
HTMLOptionElement - Web APIs
htmloptionelement.
defaultselected is a boolean that contains the initial value of the selected html attribute, indicating whether the option is selected by
default or not.
...it has four values: the text to display, text, the value associated, value, the value of
defaultselected, and the value of selected.
... the
defaultselected property is no longer read-only.
HTMLElement.focus() - Web APIs
the focused element is the element which will receive keyboard and similar events by
default.
...a value of false for preventscroll (the
default) means that the browser will scroll the element into view after focusing it.
... obsolete notes if you call htmlelement.focus() from a mousedown event handler, you must call event.prevent
default() to keep the focus from leaving the htmlelement behaviour of the focus in relation to different html features like tabindex or shadow dom, which previously remained under-specified, were recently updated (as october of 2019).
IDBObjectStore.openCursor() - Web APIs
if a single valid key is passed, this will
default to a range containing only that key.
... if nothing is passed, this will
default to a key range that selects all the records in this object store.
...the
default is "next".
IDBObjectStore.openKeyCursor() - Web APIs
if a single valid key is passed, this will
default to a range containing only that key.
... if nothing is passed, this will
default to a key range that selects all the records in this object store.
...the
default is "next".
Browser storage limits and eviction criteria - Web APIs
storage is temporary by
default; developers can choose to use persistent storage for their sites using the storagemanager.persist() method available in the storage api.
...here's the actual mapping to directories under a user's firefox profile (other browsers may differ slightly): <profile>/storage — the main top-level directory for storages maintained by the quota manager (see below) <profile>/storage/permanent — persistent data storage repository <profile>/storage/temporary — temporary data storage repository <profile>/storage/
default —
default data storage repository note: after introducing storage api, the "permanent" folder can be considered obsolete; the "permanent" folder only stores indexeddb persistent-type databases.
... it doesn't matter if box mode is "best-effort" or "persistent" — data is stored under <profile>/storage/
default.
MSSiteModeEvent - Web APIs
prevent
default cancels the
default action of an event.
... cancelable gets a value that indicates whether you can cancel an event's
default action.
...
defaultprevented gets a value that indicates whether the
default action should be canceled.
MutationObserverInit.subtree - Web APIs
the
default value, false, indicates only the target node itself is to be monitored for changes.
...the
default, false, indicates that only the target node specified when calling mutationobserver.observe() is to be monitored for changes.
... for example, to watch the target node only for attribute changes, the mutationobserverinit passed into mutationobserver() can be: var options = { attributes: true, subtree: false }; since the
default value of subtree is false, line 3 is optional.
Navigator.msLaunchUri() - Web APIs
the uniform resource identifier (uri) contains the protocol for the
default service or app, such as mailto://test@contoso.com.
... usage notes if a
default protocol handler is available on the system that matches the uri, the successcallback is invoked, otherwise, the nohandlercallback is called.
...if multiple programs are registered on the system for the given protocol and no
default has been chosen, windows prompts the user to choose one.
msSaveBlob - Web APIs
syntax navigator.mssaveblob(blob,
defaultname); parameters blob a blob to be saved.
...
defaultname the file name to be used when saving file.
... notes when a site calls this method, the behavior is the same as when windows internet explorer downloads a file with the following in the header, where x-download-options removes the file open button from the browser file download dialog: content-length: <blob.size> content-type: <blob.type> content-disposition: attachment;filename=<
defaultname> x-download-options: noopen specifications not part of any specifications.
msSaveOrOpenBlob - Web APIs
syntax navigator.mssaveoropenblob(blob,
defaultname); parameters blob a blob to be saved.
...
defaultname the file name to be used when saving file.
... notes when a site calls this method, the behavior is the same as when windows internet explorer downloads a file with the following in the header: content-length: <blob.size> content-type: <blob.type> content-disposition: attachment;filename=<
defaultname> specifications not part of any specifications.
Node.cloneNode() - Web APIs
*note: in the dom4 specification (since gecko 13.0 (firefox 13 / thunderbird 13 / seamonkey 2.10)), the optional deep argument
defaults to true.
...although deep it still optional, it now
defaults to false.
... starting with gecko 29.0 (firefox 29 / thunderbird 29 / seamonkey 2.26)), a shallow clone is
defaulted instead of a deep clone.
Notification.onclick - Web APIs
}; the
default behavior is to move the focus to the viewport of the notification's related browsing context.
... if you don't want that behaviour, call prevent
default() on the event object.
... examples in the following example, we use an onclick handler to open a webpage in a new tab (specified by the inclusion of the '_blank' parameter) once a notification is clicked: notification.onclick = function(event) { event.prevent
default(); // prevent the browser from focusing the notification's tab window.open('http://www.mozilla.org', '_blank'); } specifications specification status comment notifications apithe definition of 'onclick' in that specification.
Using the Notifications API - Web APIs
it can have one of three possible values:
default the user hasn't been asked for permission yet, so notifications won't be displayed.
...on to actually ask the permissions function handlepermission(permission) { // whatever the user answers, we make sure chrome stores the information if(!('permission' in notification)) { notification.permission = permission; } // set the button to shown or hidden, depending on what the user answers if(notification.permission === 'denied' || notification.permission === '
default') { notificationbtn.style.display = 'block'; } else { notificationbtn.style.display = 'none'; } } // let's check if the browser supports notifications if (!('notification' in window)) { console.log("this browser does not support notifications."); } else { if(checknotificationpromise()) { notification.requestpermission() .then((permission) => { ...
..." + i, {tag: 'somanynotification'}); if (i++ == 9) { window.clearinterval(interval); } }, 200); } // if the user hasn't told if he wants to be notified or not // note: because of chrome, we are not sure the permission property // is set, therefore it's unsafe to check for the "
default" value.
OfflineAudioCompletionEvent.OfflineAudioCompletionEvent() - Web APIs
desktopmobilechromeedgefirefoxinternet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetofflineaudiocompletionevent() constructorchrome full support 57notes full support 57notes notes before chrome 59, the
default values were not supported.edge full support ≤79firefox full support 53ie no support noopera full support 42safari ?
... webview android full support 57notes full support 57notes notes before version 59, the
default values were not supported.chrome android full support 57notes full support 57notes notes before chrome 59, the
default values were not supported.firefox android full support 53opera android full support 42safari ios ?
... samsung internet android full support 6.0notes full support 6.0notes notes before samsung internet 7.0, the
default values were not supported.legend full support full support no support no support compatibility unknown compatibility unknownsee implementation notes.see implementation notes.
PannerNode.coneOuterGain - Web APIs
the coneoutergain property's
default value is 0, meaning that no sound can be heard outside the cone.
...the
default is 0, and its value can be in the range 0–1.
...le == 45 and coneinnerangle == 30, it means that when the sound is rotated // by between 15 (30/2) and 22.5 (45/2) degrees either direction, // the volume will decrease gradually panner.coneouterangle = 45; // 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...
Permissions.revoke() - Web APIs
the permissions.revoke() method of the permissions interface reverts a currently set permission back to its
default state, which is usually prompt.
...the
default is false.
...the
default is false.
Using the Permissions API - Web APIs
some apis have more complex permissiondescriptors containing additional information, which inherit from the
default permissiondescriptor.
...this works in exactly the same way as the permissions.query() method, except that it causes an existing permission to be reverted back to its
default state when the promise successfully resolves (which is usually prompt).
... function revokepermission() { navigator.permissions.revoke({name:'geolocation'}).then(function(result) { report(result.state); }); } the revoke() function has been disabled by
default starting in firefox 51, since its design has been brought into question in the web applications security working group.
Multi-touch interaction - Web APIs
to prevent the browser's
default touch behavior from overriding this application's pointer handling, the touch-action property is applied to the <body> element.
... function get_cache(ev) { // return the cache for this event's target element switch(ev.target.id) { case "target1": return evcache1; case "target2": return evcache2; case "target3": return evcache3;
default: log("error with cache handling",ev); } } function push_event(ev) { // save this event in the target's cache var cache = get_cache(ev); cache.push(ev); } function remove_event(ev) { // remove this event from the target's cache var cache = get_cache(ev); for (var i = 0; i < cache.length; i++) { if (cache[i].pointerid == ev.pointerid) { cache.splice(i, 1); break; } } } u...
...lue - three or more pointers down var evcache = get_cache(ev); switch (evcache.length) { case 0: // target element has no touch points ev.target.style.background = "white"; break; case 1: // single touch point ev.target.style.background = "yellow"; break; case 2: // two simultaneous touch points ev.target.style.background = "pink"; break;
default: // three or more simultaneous touches ev.target.style.background = "lightblue"; } } event logging these functions are used send to event activity to the application window (to support debugging and learning about the event flow).
PositionOptions - Web APIs
default: false.
...the
default value is infinity, meaning that getcurrentposition() won't return until the position is available.
...
default: 0.
PushEvent - Web APIs
nowebview android no support nochrome android full support 42firefox android full support 44 full support 44 full support 48notes notes push enabled by
default.opera android full support 37safari ios no support nosamsung internet android full support 4.0pushevent() constructor experimentalchrome full support 42edge full support 16di...
... nowebview android no support nochrome android full support 42firefox android full support 44 full support 44 full support 48notes notes push enabled by
default.opera android full support 37safari ios no support nosamsung internet android full support 4.0data experimentalchrome full support 57edge full support 16disabled ...
... nowebview android no support nochrome android full support 57firefox android full support 44 full support 44 full support 48notes notes push enabled by
default.opera android full support 43safari ios no support nosamsung internet android full support 4.0legend full support full support no support ...
ReadableStream.getReader() - Web APIs
undefined (or not specified at all — this is the
default), which results in a readablestream
defaultreader being created that can read individual chunks from a stream.
... return value a readablestream
defaultreader or readablestreambyobreader object instance, depending on the mode value.
... examples in the following simple example, a previously-created custom readablestream is read using a readablestream
defaultreader created using getreader().
SVGGraphicsElement: copy event - Web APIs
bubbles yes cancelable yes interface clipboardevent event handler property oncopy the event's
default action is to copy the selection (if any) to the clipboard.
... a handler for this event can modify the clipboard contents by calling setdata(format, data) on the event's clipboardevent.clipboarddata property, and cancelling the event's
default action using event.prevent
default().
...ttp://www.w3.org/1999/xhtml" placeholder="paste it here"/> </foreignobject> </svg> css input { font-size: 10px; width: 100%; height: 90%; box-sizing: border-box; border: 1px solid black; } javascript document.getelementsbytagname("text")[0].addeventlistener("copy", evt => { evt.clipboarddata.setdata('text/plain', document.getselection().tostring().touppercase()); evt.prevent
default(); }); result specifications specification status comment scalable vector graphics (svg) 2 candidate recommendation definition that the clipboard events apply to svg elements.
SVGGraphicsElement: paste event - Web APIs
bubbles yes cancelable yes interface clipboardevent event handler property onpaste if the cursor is in an editable context (for example, in a <textarea> or an element with contenteditable attribute set to true) then the
default action is to insert the contents of the clipboard into the document at the cursor position.
... to override the
default behavior (for example to insert some different data or a transformation of the clipboard contents) an event handler must cancel the
default action using event.prevent
default(), and then insert its desired data manually.
... <text x="5" y="30" id="element-to-paste-text" tabindex="1">paste it here</text> </svg> css input { font-size: 10px; width: 100%; height: 90%; box-sizing: border-box; border: 1px solid black; } javascript document.getelementbyid("element-to-paste-text").addeventlistener("paste", evt => { evt.target.textcontent = evt.clipboarddata.getdata("text/plain").touppercase(); evt.prevent
default(); }); result specifications specification status comment scalable vector graphics (svg) 2 candidate recommendation definition that the clipboard events apply to svg elements.
Using server-sent events - Web APIs
when using http/2, the maximum number of simultaneous http streams is negotiated between the server and the client (
defaults to 100).
... the php code for the example we're using here follows: date_
default_timezone_set("america/new_york"); header("cache-control: no-cache"); header("content-type: text/event-stream"); $counter = rand(1, 10); while (true) { // every second, send a "ping" event.
...you can take action on this programmatically by implementing the onerror callback on the eventsource object: evtsource.onerror = function(err) { console.error("eventsource failed:", err); }; closing event streams by
default, if the connection between the client and server closes, the connection is restarted.
SpeechSynthesisUtterance.rate - Web APIs
if unset, a
default value of 1 will be used.
...it can range between 0.1 (lowest) and 10 (highest), with 1 being the
default pitch for the current platform or voice, which should correspond to a normal speaking rate.
... inputform.onsubmit = function(event) { event.prevent
default(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selectedoptions[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } utterthis.rate = 1.5; synth.speak(utterthis); inputtxt.blur(); } specifications specification status ...
StereoPannerNode.StereoPannerNode() - Web APIs
the
default value is 0.
... desktopmobilechromeedgefirefoxinternet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetstereopannernode() constructorchrome full support 55notes full support 55notes notes before chrome 59, the
default values were not supported.edge full support ≤79firefox full support 53ie no support noopera full support 42safari no support nowebview android full support ...
... 55notes full support 55notes notes before chrome 59, the
default values were not supported.chrome android full support 55notes full support 55notes notes before chrome 59, the
default values were not supported.firefox android full support 53opera android full support 42safari ios no support nosamsung internet android full support 6.0notes full support 6.0notes notes before samsung internet 7.0, the
default value...
Supporting both TouchEvent and MouseEvent - Web APIs
consequently, if an application does not want mouse events fired on a specific touch target element, the element's touch event handlers should call prevent
default() and no additional mouse events will be dispatched.
... here is a code snippet of the touchmove event handler calling prevent
default().
... // touchmove handler function process_touchmove(ev) { // call prevent
default() to prevent any further handling ev.prevent
default(); } event order although the specific ordering of touch and mouse events is implementation-defined, the standard indicates the following order is typical: for single input: touchstart zero or more touchmove events, depending on movement of the finger(s) touchend mousemove mousedown mouseup click if the touchstart, touchmove or touchend event is canceled during an interaction, no mouse or click events will be fired, and the resulting sequence of events would just be: touchstart zero or more touchmove events, depending on movement of the finger(s) touchend community touch events community group mail list w3c #touchevents irc channel rela...
Using Touch Events - Web APIs
to prevent the emulated mouse events from being sent, use the prevent
default() method in the touch event handlers.
... // touchstart handler function process_touchstart(ev) { // use the event's data to call out to the appropriate gesture handlers switch (ev.touches.length) { case 1: handle_one_touch(ev); break; case 2: handle_two_touches(ev); break; case 3: handle_three_touches(ev); break;
default: gesture_not_supported(ev); break; } } access the attributes of a touch point.
... // touchmove handler function process_touchmove(ev) { // set call prevent
default() ev.prevent
default(); } best practices here are some best practices to consider when using touch events: minimize the amount of work that is done in the touch handlers.
WebGLRenderingContext.getParameter() - Web APIs
alue glfloat gl.depth_func glenum gl.depth_range float32array (with 2 elements) gl.depth_test glboolean gl.depth_writemask glboolean gl.dither glboolean gl.element_array_buffer_binding webglbuffer gl.framebuffer_binding webglframebuffer or null null corresponds to a binding to the
default framebuffer.
... gl.draw_framebuffer_binding webglframebuffer or null null corresponds to a binding to the
default framebuffer.
... gl.rasterizer_discard glboolean gl.read_buffer glenum gl.read_framebuffer_binding webglframebuffer or null null corresponds to a binding to the
default framebuffer.
WebGLRenderingContext.pixelStorei() - Web APIs
pixel storage parameters parameter name (for pname) description type
default value allowed values (for param) specified in gl.pack_alignment packing of pixel data into memory glint 4 1, 2, 4, 8 opengl es 2.0 gl.unpack_alignment unpacking of pixel data from memory.
... glboolean false true, false webgl gl.unpack_premultiply_alpha_webgl multiplies the alpha channel into the other color channels glboolean false true, false webgl gl.unpack_colorspace_conversion_webgl
default color space conversion or no color space conversion.
... glenum gl.browser_
default_webgl gl.browser_
default_webgl, gl.none webgl when using a webgl 2 context, the following values are available additionally: constant description type
default value allowed values (for param) specified in gl.pack_row_length number of pixels in a row.
WebGL best practices - Web APIs
for example, it is possible for the following to never complete without context loss: sync = glfencesync(gl_sync_gpu_commands_complete, 0); glclientwaitsync(sync, 0, gl_timeout_ignored); webgl doesn't have a swapbuffers call by
default, so a flush can help fill the gap, as well.
...(+/-2.0 max is probably not good enough for you) implicit
defaults the vertex language has the following predeclared globally scoped
default precision statements: precision highp float; precision highp int; precision lowp sampler2d; precision lowp samplercube; the fragment language has the following predeclared globally scoped
default precision statements: precision mediump int; precision lowp sampler2d; precision lowp samplercube; in webgl 1, "highp flo...
... however, for 2d resources that are never "zoomed out", don't pay the 30% memory surcharge for mipmaps: const tex = gl.createtexture(); gl.bindtexture(gl.texture_2d, tex); gl.texparameterf(gl.texture_2d, gl.texture_min_filter, gl.linear); //
defaults to nearest_mipmap_linear, for mipmapping!
Background audio processing using AudioWorklet - Web APIs
the first defines gain as a value between 0 and 1, with a
default value of 0.5.
... the second parameter is named frequency and
defaults to 440.0, with a range from 275 to 4186.009, inclusively.
... static get parameterdescriptors() { return [ { name: "gain",
defaultvalue: 0.5, minvalue: 0, maxvalue: 1 }, { name: "frequency",
defaultvalue: 440.0; minvalue: 27.5, maxvalue: 4186.009 } ]; } accessing your processor node's parameters is as simple as looking them up in the parameters object passed into your implementation of process().
Window: beforeunload event - Web APIs
according to the specification, to show the confirmation dialog an event handler should call prevent
default() on the event.
... examples the html specification states that authors should use the event.prevent
default() method instead of using event.returnvalue.
... event.prevent
default(); // chrome requires returnvalue to be set.
Window.openDialog() - Web APIs
window.opendialog() finds it useful because of its different
default assumptions.
...
default behavior the chrome and dialog features are always assumed on, unless explicitly turned off ("chrome=no").
... opendialog() treats the absence of the features parameter the same way window.open() does; that is, an empty string sets all features to off) except chrome and dialog, which
default to on.
window.requestIdleCallback() - Web APIs
e for androidfirefox for androidopera for androidsafari on iossamsung internetrequestidlecallback experimentalchrome full support 47edge full support 79firefox full support 55notes full support 55notes notes enabled by
default.
... no support 53 — 55notes notes implemented but disabled by
default.ie no support noopera full support 34safari no support nowebview android full support 47chrome android full support 47firefox android full support 55notes full support 55notes notes enabled by
default.
... no support 53 — 55notes notes implemented but disabled by
default.opera android full support 34safari ios no support nosamsung internet android full support 5.0legend full support full support no support no supportexperimental.
Window - Web APIs
a window for a given document can be obtained using the document.
defaultview property.
... window.
defaultstatus gets/sets the status bar text for the given window.
... window.get
defaultcomputedstyle() gets
default computed style for the specified element, ignoring author stylesheets.
WindowOrWorkerGlobalScope.fetch() - Web APIs
in chrome the
default is follow (before chrome 47 it
defaulted to manual).
... myimage.src = objecturl; }); in the fetch with init then request example (see fetch request init live), we do the same thing except that we pass in an init object when we invoke fetch(): const myimage = document.queryselector('img'); let myheaders = new headers(); myheaders.append('content-type', 'image/jpeg'); const myinit = { method: 'get', headers: myheaders, mode: 'cors', cache: '
default' }; let myrequest = new request('flowers.jpg'); fetch(myrequest, myinit).then(function(response) { // ...
... const myinit = { method: 'get', headers: { 'content-type': 'image/jpeg' }, mode: 'cors', cache: '
default' }; let myrequest = new request('flowers.jpg', myinit); specifications specification status comment fetchthe definition of 'fetch()' in that specification.
WindowOrWorkerGlobalScope.setInterval() - Web APIs
; this.pause = function () { clearinterval(nintervid); btyping = false; }; this.terminate = function () { ocurrent.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; } #info {...
...the
default value is 100.
...the
default value is infinity.
How to check the security state of an XMLHTTPRequest over SSL - Web APIs
alid, sec(36) errname = 'securityuntrustedcertificateissuererror'; break; case 90: // sec_error_inadequate_key_usage, sec(90) errname = 'securityinadequatekeyusageerror'; break; case 176: // sec_error_cert_signature_algorithm_disabled, sec(176) errname = 'securitycertificatesignaturealgorithmdisablederror'; break;
default: errname = 'securityerror'; break; } } else { // calculating the difference let sslerr = math.abs(nsinsserrorsservice.nss_ssl_error_base) - (status & 0xffff); switch (sslerr) { case 3: // ssl_error_no_certificate, ssl(3) errname = 'securitynocertificateerror'; break; case 4: // ssl_error_bad_certificate, ssl(4) ...
...sl_error_unsupported_certificate_type, ssl(8) errname = 'securityunsupportedcertificatetypeerror'; break; case 9: // ssl_error_unsupported_version, ssl(9) errname = 'securityunsupportedtlsversionerror'; break; case 12: // ssl_error_bad_cert_domain, ssl(12) errname = 'securitycertificatedomainmismatcherror'; break;
default: errname = 'securityerror'; break; } } } else { errtype = 'network'; switch (status) { // connect to host:port failed case 0x804b000c: // ns_error_connection_refused, network(13) errname = 'connectionrefusederror'; break; // network timeout error case 0x804b000e: // ns_error_net_timeout, network(14) errname = ...
...'networktimeouterror'; break; // hostname lookup failed case 0x804b001e: // ns_error_unknown_host, network(30) errname = 'domainnotfounderror'; break; case 0x804b0047: // ns_error_net_interrupt, network(71) errname = 'networkinterrupterror'; break;
default: errname = 'networkerror'; break; } } // xxx we have no tcperror implementation right now because it's really hard to // do on b2g18.
XMLHttpRequest.open() - Web APIs
async optional an optional boolean parameter,
defaulting to true, indicating whether or not to perform the operation asynchronously.
... user optional the optional user name to use for authentication purposes; by
default, this is the null value.
... password optional the optional password to use for authentication purposes; by
default, this is the null value.
XMLHttpRequest.responseType - Web APIs
if an empty string is set as the value of responsetype, the
default value of text is used.
... the values supported by responsetype are the following: "" an empty responsetype string is treated the same as "text", the
default type.
... xmlhttprequests are asynchronous by
default; they are only placed in synchronous mode by passing false as the value of the optional async parameter when calling open().
XSLTProcessor - Web APIs
this will make the xsltprocessor use the
default value for the parameter as specified in the stylesheet.
...the xsltprocessor will then use the
defaults specified in the xslt stylesheet.
...
default value: 0 possible values are: name value effect (none) 0 none disable_all_loads 1 disable loading external documents (via e.g.
Web APIs
tpsynchronizationsource rtcrtptransceiver rtcrtptransceiverdirection rtcrtptransceiverinit rtcsctptransport rtcsessiondescription rtcsessiondescriptioncallback rtcstats rtcstatsicecandidatepairstate rtcstatsreport rtcstatstype rtctrackevent rtctrackeventinit radionodelist range readablebytestreamcontroller readablestream readablestreambyobreader readablestreambyobrequest readablestream
defaultcontroller readablestream
defaultreader relativeorientationsensor renderingcontext report reportingobserver reportingobserveroptions request requestdestination resizeobserver resizeobserverentry response rsahashedimportparams rsahashedkeygenparams rsaoaepparams rsapssparams s svgaelement svgaltglyphdefelement svgaltglyphelement svgaltglyphitemelement svgangle svganimatecolorelement...
...svoice staticrange stereopannernode storage storageestimate storageevent storagemanager storagequota stylepropertymap stylepropertymapreadonly stylesheet stylesheetlist submitevent subtlecrypto syncevent syncmanager t taskattributiontiming text textdecoder textencoder textmetrics textrange texttrack texttrackcue texttracklist timeevent timeranges touch touchevent touchlist track
default track
defaultlist trackevent transferable transformstream transitionevent treewalker typeinfo u uievent ulongrange url urlsearchparams urlutilsreadonly usb usbalternateinterface usbconfiguration usbdevice usbendpoint usbintransferresult usbinterface usbisochronousintransferpacket usbisochronousintransferresult usbisochronousouttransferpacket usbisochronousouttransferresult ...
...ebglquery webglrenderbuffer webglrenderingcontext webglsampler webglshader webglshaderprecisionformat webglsync webgltexture webgltransformfeedback webgluniformlocation webglvertexarrayobject webkitcssmatrix websocket wheelevent window windowclient windoweventhandlers windoworworkerglobalscope worker workerglobalscope workerlocation workernavigator worklet writablestream writablestream
defaultcontroller writablestream
defaultwriter x xdomainrequest xmldocument xmlhttprequest xmlhttprequesteventtarget xmlhttprequestresponsetype xmlserializer xpathevaluator xpathexception xpathexpression xpathnsresolver xpathresult xrboundedreferencespace xrenvironmentblendmode xreye xrframe xrframerequestcallback xrhandedness xrinputsource xrinputsourcearray xrinputsourceevent xrinputsourceevent...
ARIA: document role - Accessibility
description by
default, web pages are treated as documents; assistive technologies (at) enter browse or read mode when entering a new web page.
... because ats with reading mode
default to that mode for all elements except for those with a widget or application role set, document role is only useful for focusable elements within a widget or application that should be read as static rich text.
...other values include the
default undefined which means the document is not collapsible.
ARIA: textbox role - Accessibility
the
default is a single line input, in which return or enter submits the form; in this case, it is preferable to use an html <input> with type="text".
... none (
default): predicted text is not offered.
...if false is set, or the the attribute is omitted and
defaults to false, the user expectation is that the control is a single line text box, and enter or return submits the form.
-webkit-touch-callout - CSS: Cascading Style Sheets
the -webkit-touch-callout css property controls the display of the
default callout shown when you touch and hold a touch target.
... /* keyword values */ -webkit-touch-callout:
default; -webkit-touch-callout: none; /* global values */ -webkit-touch-callout: initial; -webkit-touch-callout: inherit; -webkit-touch-callout: unset; syntax values
default the
default callout is displayed.
... formal definition initial value
defaultapplies toall elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax
default | none examples turn off touch callout .example { -webkit-touch-callout: none; } specifications not part of any standard.
Color picker tool - CSS: Cascading Style Sheets
width: 420px; margin: 0; border: 1px solid #ddd; background-color: #fff; display: table; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .ui-color-picker .picking-area { width: 198px; height: 198px; margin: 5px; border: 1px solid #ddd; position: relative; float: left; display: table; } .ui-color-picker .picking-area:hover { cursor:
default; } /* hsv format - hue-saturation-value(brightness) */ .ui-color-picker .picking-area { background: url('https://mdn.mozillademos.org/files/5707/picker_mask_200.png') center center; background: -moz-linear-gradient(bottom, #000 0%, rgba(0, 0, 0, 0) 100%), -moz-linear-gradient(left, #fff 0%, rgba(255, 255, 255, 0) 100%); background: -webkit-linear-gradient(bottom, #000 0%, rgba(0, 0, 0, 0...
...vity : setsensivity, getprecision : getprecision, createslider : createslider, }; })(); 'use strict'; window.addeventlistener("load", function() { colorpickertool.init(); }); var colorpickertool = (function colorpickertool() { /*========== get dom element by id ==========*/ function getelembyid(id) { return document.getelementbyid(id); } function allowdropevent(e) { e.prevent
default(); } /*========== make an element resizable relative to it's parent ==========*/ var uicomponent = (function uicomponent() { function makeresizable(elem, axis) { var valuex = 0; var valuey = 0; var action = 0; var resizestart = function resizestart(e) { e.stoppropagation(); e.prevent
default(); if (e.button !== 0) return; valuex = e.clientx - elem.clientw...
...'data-resize', axis); handle.addeventlistener('mousedown', resizestart); elem.appendchild(handle); }; /*========== make an element draggable relative to it's parent ==========*/ var makedraggable = function makedraggable(elem, endfunction) { var offsettop; var offsetleft; elem.setattribute('data-draggable', 'true'); var dragstart = function dragstart(e) { e.prevent
default(); e.stoppropagation(); if (e.target.getattribute('data-draggable') !== 'true' || e.target !== elem || e.button !== 0) return; offsetleft = e.clientx - elem.offsetleft; offsettop = e.clienty - elem.offsettop; document.addeventlistener('mousemove', mousedrag); document.addeventlistener('mouseup', dragend); }; var dragend = function dragend(e) { if (e...
Block and inline layout in normal flow - CSS: Cascading Style Sheets
the
default browser stylesheet adds spacing between the paragraphs by way of adding a margin to the top and bottom.
... by
default block elements will consume all of the space in the inline direction, so our paragraphs spread out and get as big as they can inside their containing block.
...due to the
default behaviour of these elements, an html document with no css styling at all, will display in a readable way.
Using CSS counters - CSS: Cascading Style Sheets
using counters manipulating a counter's value to use a css counter, it must first be initialized to a value with the counter-reset property (0 by
default).
...the generated text is the value of the innermost counter of the given name in scope at the given pseudo-element.the counter is rendered in the specified style (decimal by
default).
...the counters are rendered in the specified style (decimal by
default).
Using z-index - CSS: Cascading Style Sheets
the first part of this article, stacking without the z-index property, explains how stacking is arranged by
default.
... layer -3 layer -2 layer -1 layer 0 (
default rendering layer) layer 1 layer 2 layer 3 ...
... top layer (closest to the observer) notes: when no z-index property is specified, elements are rendered on the
default rendering layer 0 (zero).
appearance (-moz-appearance, -webkit-appearance) - CSS: Cascading Style Sheets
starting with gecko/firefox 80, these uses were changed to -moz-
default-appearance, which should never be used outside of internal stylesheets.
...this is the
default.
... div{ color: black; -moz-appearance: color-well; -webkit-appearance: color-well; } <div>lorem</div> safari input type=color continuous-capacity-level-indicator div{ color: black; -moz-appearance: continuous-capacity-level-indicator; -webkit-appearance: continuous-capacity-level-indicator; } <div>lorem</div> safari
default-button div{ color: black; -moz-appearance:
default-button; -webkit-appearance:
default-button; } <div>lorem</div> safari edge discrete-capacity-level-indicator div{ color: black; -moz-appearance: discrete-capacity-level-indicator; -webkit-appearance: discrete-capacity-level-indicator; } <div>lorem</div> safari ...
background-size - CSS: Cascading Style Sheets
using a width value only, in which case the height
defaults to auto.
...the background positioning area is determined by the value of background-origin (by
default, the padding box).
... note: svg images have a preserveaspectratio attribute that
defaults to the equivalent of contain.
box-shadow - CSS: Cascading Style Sheets
values inset if not specified (
default), the shadow is assumed to be a drop shadow (as if the box were raised above the content).
... if not specified, it
defaults to currentcolor.
...when the border-radius is set to 0, as is the
default, the corners of the shadow will be, well, corners.
Adapting to the new two-value syntax of display - CSS: Cascading Style Sheets
for example, an <h1> or a <p> are block-level by
default, and a <span> is inline-level.
... to deal with single values of display the specification explains what to do if only the outer value of block or inline is used: "if a <display-outside> value is specified but <display-inside> is omitted, the element’s inner display type
defaults to flow." this means that the behavior is exactly as it is in a single value world.
... if only an inner value of flex, grid, or flow-root is specified then the specification explains that the outer value should be set to block: "if a <display-inside> value is specified but <display-outside> is omitted, the element’s outer 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...
font-language-override - CSS: Cascading Style Sheets
/* keyword value */ font-language-override: normal; /* <string> values */ font-language-override: "eng"; /* use english glyphs */ font-language-override: "trk"; /* use turkish glyphs */ /* global values */ font-language-override: initial; font-language-override: inherit; font-language-override: unset; by
default, html's lang attribute tells browsers to display glyphs designed specifically for that language.
...this is the
default value.
...it also applies to ::first-letter and ::first-line.inheritedyescomputed valueas specifiedanimation typediscrete formal syntax normal | <string> examples using danish glyphs html <p class="para1">
default language setting.</p> <p class="para2">this is a string with the <code>font-language-override</code> set to danish.</p> css p.para1 { font-language-override: normal; } p.para2 { font-language-override: "dan"; } result specifications specification status comment css fonts module level 4the definition of 'font-language-override' in that specification.
font-optical-sizing - CSS: Cascading Style Sheets
syntax /* keyword values */ font-optical-sizing: none; font-optical-sizing: auto; /*
default */ /* global values */ font-optical-sizing: inherit; font-optical-sizing: initial; font-optical-sizing: unset; values none the browser will not modify the shape of glyphs for optimal viewing.
... description optical sizing is enabled by
default for fonts that have an optical size variation axis.
... this is the
default across browsers.</p> <p class="no-optical-sizing">this paragraph is not optically sized.
linear-gradient() - CSS: Cascading Style Sheets
if unspecified, it
defaults to to bottom.
... linear-gradient(red, orange, yellow, green, blue); linear-gradient(red 0%, orange 25%, yellow 50%, green 75%, blue 100%); by
default, colors transition smoothly from the color at one color stop to the color at the subsequent color stop, with the midpoint between the colors being the half way point between the color transition.
...the following three gradients are equivalent: linear-gradient(red 0%, orange 10%, orange 30%, yellow 50%, yellow 70%, green 90%, green 100%); linear-gradient(red, orange 10% 30%, yellow 50% 70%, green 90%); linear-gradient(red 0%, orange 10% 30%, yellow 50% 70%, green 90% 100%); by
default, if there is no color with a 0% stop, the first color declared will be at that point.
overflow - CSS: Cascading Style Sheets
specifying a value other than visible (the
default) creates a new block formatting context.
... setting one axis to visible (the
default) while setting the other to a different value results in visible behaving as auto.
...y: as specified, except with visible/clip computing to auto/hidden respectively if one of overflow-x or overflow-y is neither visible nor clipanimation typediscrete formal syntax [ visible | hidden | clip | scroll | auto ]{1,2} examples setting different overflow values for text p { width: 12em; height: 6em; border: dotted; overflow: visible; /* content is not clipped */ } visible (
default) sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium.
radial-gradient() - CSS: Cascading Style Sheets
if unspecified, it
defaults to center.
...if unspecified, it
defaults to ellipse.
... farthest-corner the
default value, the gradient's ending shape is sized so that it exactly meets the farthest corner of the box from its center.
repeating-conic-gradient() - CSS: Cascading Style Sheets
if omitted, the
default value is center, meaing the gradient will be centered, .
...when
defaulting to these values, the repeating arc is 360 degrees, and therefore doesn't repeat.
...the following two gradients are equivalent repeating-conic-gradient(red, orange, yellow, green, blue 50%); repeating-conic-gradient(from -45deg, red 45deg, orange, yellow, green, blue 225deg) by
default, colors transition smoothly from the color at one color stop to the color at the subsequent color stop, with the midpoint between the colors being the half way point between the color transition.
repeating-linear-gradient() - CSS: Cascading Style Sheets
if the first color does not have a color-stop-length, the color-stop-length
defaults to 0.
...this gradient doesn't repeat because the last color stop
defaults to 100% */ repeating-linear-gradient(0deg, blue, green 40%, red); /* a gradient repeating five times, going from the left to right, starting red, turning green, and back to red */ repeating-linear-gradient(to right, red 0%, green 10%, red 20%); values <side-or-corner> the position of the gradient line's starting point.
...if unspecified, it
defaults to to bottom.
Cross-browser audio basics - Developer guides
the controls attribute on the <audio> element is specified when we require the browser to provide us with
default playback controls.
...however, that can be a good approach, because the
default controls look different among various browsers.
...</audio> controls we specify the controls attribute when we require the browser to provide us with its
default playback controls.
Web Audio playbackRate explained - Developer guides
defaultplaybackrate and ratechange in addition to playbackrate, we also have a
defaultplaybackrate property available, which lets us set the
default playback rate: the playback rate to which the media resets; for example, if we change the source of the video, or (in some browsers) when an ended event is generated.
... so
defaultplaybackrate allows us to set the playback rate before playing the media, while playbackrate allows us to change it during media playback.
... ie9+ switches to the
default playback rate when an ended event is fired.
Audio and Video Delivery - Developer guides
we instruct the video to autoplay but to be muted by
default.
...the general technique for achieving this is to omit the controls attribute so that the
default browser controls are not displayed, create custom controls using html and css, then use javascript to link your controls to the audio/video api.
... if you need something extra, it's possible to add features that are not currently present in
default players, such as playback rate, quality stream switches or even audio spectrums.
Block formatting context - Developer guides
table cells (elements with display: table-cell, which is the
default for html table cells).
... table captions (elements with display: table-caption, which is the
default for html table captions).
... anonymous table cells implicitly created by the elements with display: table, table-row, table-row-group, table-header-group, table-footer-group (which is the
default for html tables, table rows, table bodies, table headers, and table footers, respectively), or inline-table.
Mouse gesture events - Developer guides
note: some operating systems, including mac os x and windows 7, provide
default actions when gesture events occur.
... if you handle a gesture event and wish to prevent the
default action from taking place as well, be sure to call the event's prevent
default() method.
...this is typically used to zoom in and out on content (this is the
default behavior in firefox, for example).
Localizations and character encodings - Developer guides
specifying the fallback encoding as of firefox 28, this section is obsolete, since the preference intl.charset.
default no longer exists.
... the fallback encoding is specified by the preference intl.charset.
default in intl.properties.
...(be sure to use a browser installation that has its settings left to the
defaults when investigating!) for locales where firefox has more market share than internet explorer, it's probably best not to change the fallback encoding even if it doesn't follow the guidance given above.
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.
... then, if the
default code path doesn't work in past versions of particular browsers and the breakage cannot be detected by sniffing for the absence of certain features your
default code path uses, it's ok to add hacks that are targeted to old versions of particular browsers by sniffing for those old browser versions.
...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.
<base>: The Document Base URL element - HTML: Hypertext Markup Language
if the document has no <base> elements, then baseuri
defaults to location.href.
... target a keyword or author-defined name of the
default browsing context to show the results of navigation from <a>, <area>, or <form> elements without explicit target attributes.
... the following keywords have special meanings: _self (
default): show the result in the current browsing context.
<input type="color"> - HTML: Hypertext Markup Language
providing a
default color you can update the simple example above to set a
default value, so that the color well is pre-filled with the
default color and the color picker (if any) will also
default to that color: <input type="color" value="#ff0000"> if you don't specify a value, the
default is #000000, which is black.
... var colorwell; var
defaultcolor = "#0000ff"; window.addeventlistener("load", startup, false); initialization once the page is loaded, our load event handler, startup(), is called: function startup() { colorwell = document.queryselector("#colorwell"); colorwell.value =
defaultcolor; colorwell.addeventlistener("input", updatefirst, false); colorwell.addeventlistener("change", updateall, false); colorwell.selec...
...t(); } this gets a reference to the color <input> element in a variable called colorwell, then sets the color input's value to the value in
defaultcolor.
<input type="tel"> - HTML: Hypertext Markup Language
the value must be a number greater than zero, and the
default value is 20.
... providing
default options as always, you can provide a
default value for an tel input box by setting its value attribute: <input id="telno" name="telno" type="tel" value="333-4444-4444"> offering suggested values taking it a step farther, you can provide a list of
default phone number values from which the user can select.
... <label for="telno">phone number: </label> <input id="telno" name="telno" type="tel" list="
defaulttels"> <datalist id="
defaulttels"> <option value="111-1111-1111"> <option value="122-2222-2222"> <option value="333-3333-3333"> <option value="344-4444-4444"> </datalist> with the <datalist> element and its <option>s in place, the browser will offer the specified values as potential values for the email address; this is typically presented as a popup or drop-down menu containing the su...
<input type="text"> - HTML: Hypertext Markup Language
id placeholder an exemplar value to display in the input field whenever it is empty readonly a boolean attribute indicating whether or not the contents of the input should be read-only size a number indicating how many characters wide the input field should be spellcheck controls whether or not to enable spell checking for the input field, or if the
default spell checking configuration should be used list the values of the list attribute is the id of a <datalist> element located in the same document.
...the value must be a number greater than zero, and the
default value is 20.
... "" (empty string) or no value follow the element's
default behavior for spell checking.
<link>: The External Resource Link element - HTML: Hypertext Markup Language
this is a user agent’s
default behavior, if no policy is otherwise specified.
...the
default value is iso-8859-1.
... <link href="
default.css" rel="stylesheet" title="
default style"> <link href="fancy.css" rel="alternate stylesheet" title="fancy"> <link href="basic.css" rel="alternate stylesheet" title="basic"> providing icons for different usage contexts you can include links to several different icons on the same page, and the browser will choose which one works best for its particular context using the rel and sizes values as...
<menu> - HTML: Hypertext Markup Language
(list menu is the
default state, unless the parent element is a <menu> in the context menu state.) if the element is in the context menu state: zero or more occurrences, in any order, of <menu> (context menu state only), <menuitem>, <hr>, <script>, and <template>.
...this value is the
default if the attribute is missing and the parent element is also a <menu> element.
...this value is the
default if the attribute is missing.
<samp>: The Sample Output element - HTML: Hypertext Markup Language
its contents are typically rendered using the browser's
default monospaced font (such as courier or lucida console).
... usage notes you can use a css rule to override the browser's
default font face for the <samp> element; however, it's possible that the browser's preferences may take precedence over any css you specify.
... the css to override the
default font face would look like this: samp { font-family: "courier"; } if you need an element which will serve as a container for output generated by your website or app's javascript code, you should instead use the <output> element.
<script>: The Script element - HTML: Hypertext Markup Language
the defer attribute has no effect on module scripts — they defer by
default.
... no-referrer-when-downgrade (
default): the referer header will not be sent to origins without tls (https).
... note: an empty string value ("") is both the
default value, and a fallback value if referrerpolicy is not supported.
<u>: The Unarticulated Annotation (Underline) element - HTML: Hypertext Markup Language
this is rendered by
default as a simple solid underline, but may be altered using css.
... be careful to avoid using the <u> element with its
default styling (of underlined text) in such a way as to be confused with a hyperlink, which is also underlined by
default.
... html <p>the class read <cite>moby dick</cite> in the first term.</p> result with
default style note that the
default styling for the <cite> element renders the text in italics.
<var>: The Variable element - HTML: Hypertext Markup Language
in contexts in which <var> is commonly used include: <code>: the html code element <kbd>: the html keyboard input element <samp>: the html sample output element if you encounter code that is mistakenly using <var> for style purposes rather than semantic purposes, you should either use a <span> with appropriate css or, an appropriate semantic element among the following: <em> <i> <q>
default style most browsers apply font-style to "italic" when rendering <var>.
... <p>a simple equation: <var>x</var> = <var>y</var> + 2 </p> the output: overriding the
default style using css, you can override the
default style for the <var> element.
... in this example, variable names are rendered using bold courier if it's available, otherwise it falls back to the
default monospace font.
HTML elements reference - HTML: Hypertext Markup Language
by
default, it renders text within it one font-size smaller, such as from small to x-small.
... <basefont> the obsolete html base font element (<basefont>) sets a
default font face, size, and color for the other elements which are descended from its parent element.
... <tt> the obsolete html teletype text element (<tt>) creates inline text which is presented using the user agent's
default monospace font face.
Configuring servers for Ogg media - HTTP
most servers don't by
default serve ogg media with the correct mime types, so you'll likely need to add the appropriate configuration for this.
... by
default, ffmpeg2theora uses one key frame every 64 frames (or about every 2 seconds at 30 frames per second), which works pretty well.
... preload is off by
default, so if getting to video is the point of your web page, your users may appreciate it if you include preload in your video elements.
Using HTTP cookies - HTTP
if unspecified, it
defaults to the same origin that set the cookie, excluding subdomains.
... browsers are migrating to have cookies
default to samesite=lax.
...firefox, by
default, blocks third-party cookies that are known to contain trackers.
Cross-Origin Resource Policy (CORP) - HTTP
corp is an additional layer of protection beyond the
default same-origin policy.
... cross-origin resource policy complements cross-origin read blocking (corb), which is a mechanism to prevent some cross-origin reads by
default.
... the policy is only effective for no-cors requests, which are issued by
default for cors-safelisted methods/headers.
Accept-Charset - HTTP
browsers usually don't send this header, as the
default value for each resource is usually correct and transmitting it would allow fingerprinting.
... in early versions of http/1.1, a
default character encoding was defined: iso-8859-1.
... this is no longer recommended, and now each content-type may have its own
default.
CSP: frame-ancestors - HTTP
csp version 2 directive type navigation directive
default-src fallback no.
...
default-src), but doesn't allow 'unsafe-eval' or 'unsafe-inline' for example.
... it will also not fall back to a
default-src setting.
CSP: script-src-attr - HTTP
csp version 3 directive type fetch directive
default-src fallback yes.
... if this directive is absent, the user agent will look for the script-src directive, and if both of them are absent, fallback to
default-src directive.
... examples fallback to script-src if script-src-attr is absent, user agent falls back to the script-src directive, and if that is absent as well, to
default-src.
CSP: script-src-elem - HTTP
csp version 3 directive type fetch directive
default-src fallback yes.
... if this directive is absent, the user agent will look for the script-src directive, and if both of them are absent, fallback to
default-src directive.
... examples fallback to script-src if script-src-elem is absent, user agent falls back to the script-src directive, and if that is absent as well, to
default-src.
Feature-Policy: accelerometer - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
...
default policy the
default value is 'self'.
Feature-Policy: ambient-light-sensor - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
...
default policy the
default value is 'self'.
Feature-Policy: autoplay - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
...
default policy the
default value in google chrome is 'self'.
Feature-Policy: battery - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
...
default policy the
default value is 'self'.
Feature-Policy: camera - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
...
default policy the
default value is 'self'.
Feature-Policy: display-capture - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
...
default policy the
default alowlist is 'self'.
Feature-Policy: document-domain - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
...
default policy the
default value is *.
Feature-Policy: encrypted-media - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
...
default policy the allow list is 'self'.
Feature-Policy: gyroscope - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
... the
default value is 'self'.
Feature-Policy: layout-animations - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
... the
default value is 'self'.
Feature-Policy: legacy-image-formats - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
... the
default value is 'self'.
Feature-Policy: magnetometer - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
... the
default value is 'self'.
Feature-Policy: microphone - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
... the
default value is 'self'.
Feature-Policy: midi - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
...
default policy the allow list is 'self'.
Feature-Policy: oversized-images - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
...
default value the
default value is '*'.
Feature-Policy: payment - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
...
default policy the payment feature's
default allowlist value is 'self'.
Feature-Policy: picture-in-picture - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
...
default policy as of june 2019, the spec draft and google chrome set
default allow list to *.
Feature-Policy: screen-wake-lock - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
...
default policy
default allow list for screen-wake-lock is 'self'.
Feature-Policy: unoptimized-images - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
... the
default value is 'self'.
Feature-Policy: vibrate - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
... the
default value is 'self'.
Feature-Policy: wake-lock - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
...
default policy
default allow list for wake-lock is 'self'.
web-share - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
...
default policy the
default value is 'self'.
Feature-Policy: xr-spatial-tracking - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
...
default policy the
default allowlist is 'self'.
Index - HTTP
browsers usually don't set this header as the
default value for each content type is usually correct and transmitting it would allow easier fingerprinting.
...the apis that are restricted are: 33 csp:
default-src csp, directive, http, reference, security the http content-security-policy (csp)
default-src directive serves as a fallback for the other csp fetch directives.
... for each of the following directives that are absent, the user agent will look for the
default-src directive and will use this value for it: 34 csp: font-src csp, directive, http, reference, security the http content-security-policy (csp) font-src directive specifies valid sources for fonts loaded using @font-face.
Referrer-Policy - HTTP
no-referrer-when-downgrade (
default) this is the
default behavior if no policy is specified, or if the provided value is invalid.
... there is effort from browsers in moving to a stricter
default value, namely strict-origin-when-cross-origin (see https://github.com/whatwg/fetch/pull/952), consider using this value (or a stricter one), if possible, when changing the referrer-policy.
...these resources follow a referrer policy as well: external css stylesheets use the
default policy (no-referrer-when-downgrade), unless it's overwritten via a referrer-policy http header on the css stylesheet’s response.
A re-introduction to JavaScript (JS tutorial) - JavaScript
'yes' : 'no'; the switch statement can be used for multiple branches based on a number or string: switch (action) { case 'draw': drawit(); break; case 'eat': eatit(); break;
default: donothing(); } if you don't add a break statement, execution will "fall through" to the next level.
... this is very rarely what you want — in fact it's worth specifically labeling deliberate fallthrough with a comment if you really meant it to aid debugging: switch (a) { case 1: // fallthrough case 2: eatit(); break;
default: donothing(); } the
default clause is optional.
... you can have expressions in both the switch part and the cases if you like; comparisons take place between the two using the === operator: switch (1 + 3) { case 2 + 2: yay(); break;
default: neverhappens(); } objects javascript objects can be thought of as simple collections of name-value pairs.
constructor - JavaScript
class person { constructor(name) { this.name = name; } introduce() { console.log(`hello, my name is ${this.name}`); } } const otto = new person('otto'); otto.introduce(); if you don't provide your own constructor, then a
default constructor will be supplied for you.
... if your class is a base class, the
default constructor is empty: constructor() {} if your class is a derived class, the
default constructor calls the parent constructor, passing along any arguments that were provided: constructor(...args) { super(...args); } that enables code like this to work: class validationerror extends error { printcustomermessage() { return `validation failed :-( (details: ${this.message})`; } } try { throw new validationerror("not a valid phone number"); } catch (error) { if (error instanceof validationerror) { console.log(error.name); // this is error instead of validationerror!
...the
default constructor then takes care of initializing the parent error from the argument it is given.
Array.prototype.fill() - JavaScript
the fill() method changes all elements in an array to a static value, from a start index (
default 0) to an end index (
default array.length).
...(note all elements in the array will be this exact value.) start optional start index,
default 0.
... end optional end index,
default arr.length.
Date.prototype.toLocaleDateString() - JavaScript
the
default value for each date-time component property is undefined, but if the weekday, year, month, day properties are all undefined, then year, month, and day are assumed to be "numeric".
... examples using tolocaledatestring() in basic use without specifying a locale, a formatted string in the
default locale and with
default options is returned.
... var date = new date(date.utc(2012, 11, 12, 3, 0, 0)); // tolocaledatestring() without arguments depends on the implementation, // the
default locale, and the
default time zone console.log(date.tolocaledatestring()); // → "12/11/2012" if run in en-us locale with time zone america/los_angeles checking for support for locales and options arguments the locales and options arguments are not supported in all browsers yet.
Date.prototype.toLocaleString() - JavaScript
the
default value for each date-time component property is undefined.
... examples using tolocalestring() in basic use without specifying a locale, a formatted string in the
default locale and with
default options is returned.
... let date = new date(date.utc(2012, 11, 12, 3, 0, 0)); // tolocalestring() without arguments depends on the // implementation, the
default locale, and the
default time zone console.log(date.tolocalestring()); // → "12/11/2012, 7:00:00 pm" if run in en-us locale with time zone america/los_angeles checking for support for locales and options arguments the locales and options arguments are not supported in all browsers yet.
Intl.DisplayNames.prototype.resolvedOptions() - JavaScript
style the value provided for this property in the options argument of the constructor or the
default value ("long").
... type the value provided for this property in the options argument of the constructor or the
default value ("language").
... fallback the value provided for this property in the options argument of the constructor or the
default value ("code").
Intl.ListFormat() constructor - JavaScript
possible values are "lookup" and "best fit"; the
default is "best fit".
...possible values are "conjunction" that stands for "and"-based lists (
default, e.g., a, b, and c), or "disjunction" that stands for "or"-based lists (e.g., a, b, or c).
...possible values are: "long" (
default, e.g., a, b, and c); "short" (e.g., a, b, c), or "narrow" (e.g., a b c).
Intl.ListFormat.prototype.resolvedOptions() - JavaScript
style the value provided for this property in the options argument of the constructor or the
default value ("long").
... type the value provided for this property in the options argument of the constructor or the
default value ("conjunction").
... examples using resolvedoptions const delistformatter = new intl.listformat("de-de", { style: "short" }); const usedoptions = de.resolvedoptions(); console.log(usedoptions.locale); // "de-de" console.log(usedoptions.style); // "short" console.log(usedoptions.type); // "conjunction" (the
default value) specifications specification intl.listformatthe definition of 'resolvedoptions()' in that specification.
Intl.RelativeTimeFormat.prototype.resolvedOptions() - JavaScript
possible values are: "long" (
default, e.g., in 1 month) "short" (e.g., in 1 mo.), or "narrow" (e.g., in 1 mo.).
...possible values are: "always" (
default, e.g., 1 day ago), or "auto" (e.g., yesterday).
... numberingsystem the value requested using the unicode extension key "nu" or filled in as a
default.
Intl - JavaScript
if the locales argument is not provided or is undefined, the runtime's
default locale is used.
...if the application doesn't provide a locales argument, or the runtime doesn't have a locale that matches the request, then the runtime's
default locale is used.
...if the options argument is not provided or is undefined,
default values are used for all properties.
Object.prototype.valueOf() - JavaScript
by
default, the valueof method is inherited by every object descended from object.
...when you create a custom object, you can override object.prototype.valueof() to call a custom method instead of the
default object method.
... overriding valueof for custom objects you can create a function to be called in place of the
default valueof method.
String.prototype.charAt() - JavaScript
if the index cannot be converted to the integer or no index is provided, the
default is 0, so the first character of str is returned.
... if no index is provided to charat(), the
default is 0.
... examples displaying characters at different locations in a string the following example displays characters at different locations in the string "brave new world": var anystring = 'brave new world'; console.log("the character at index 0 is '" + anystring.charat() + "'"); // no index was provided, used 0 as
default console.log("the character at index 0 is '" + anystring.charat(0) + "'"); console.log("the character at index 1 is '" + anystring.charat(1) + "'"); console.log("the character at index 2 is '" + anystring.charat(2) + "'"); console.log("the character at index 3 is '" + anystring.charat(3) + "'"); console.log("the character at index 4 is '" + anystring.charat(4) + "'"); console.log("the character at index 999 is '" + anystring.charat(999) + "'"); these lines...
Symbol.toStringTag - JavaScript
the symbol.tostringtag well-known symbol is a string valued property that is used in the creation of the
default string description of an object.
... property attributes of symbol.tostringtag writable no enumerable no configurable no examples
default tags object.prototype.tostring.call('foo'); // "[object string]" object.prototype.tostring.call([1, 2]); // "[object array]" object.prototype.tostring.call(3); // "[object number]" object.prototype.tostring.call(true); // "[object boolean]" object.prototype.tostring.call(undefined); // "[object undefined]" object.prototype.tostring.call(null); // "[object null]" // ...
...and more custom classes
default to object tag when creating your own class, javascript
defaults to the "object" tag: class validatorclass {} object.prototype.tostring.call(new validatorclass()); // "[object object]" custom tag with tostringtag now, with the help of tostringtag, you are able to set your own custom tag: class validatorclass { get [symbol.tostringtag]() { return 'validator'; } } object.prototype.tostring.call(new validatorclass()); // "[object validator]" tostringtag available on all dom prototype ...
Symbol - JavaScript
static properties symbol.asynciterator a method that returns the
default asynciterator for an object.
... symbol.iterator a method returning the
default iterator for an object.
... symbol.tostringtag a string value used for the
default description of an object.
<mfenced> - MathML
the
default value is ")" and any white space is trimmed.
...the
default value is "(" and any white space is trimmed.
...the
default value is ",".
<mfrac> - MathML
otherwise, if set to false (which is the
default value), numerator and denominator are on top of each other.
...possible values are: left, center (
default), and right.
...possible values are: left, center (
default), and right.
<mstyle> - MathML
infixlinebreakstyle specifies the
default linebreakstyle to use for infix operators.
...the
default value is 8pt.
...the
default value is 0.71.
Critical rendering path - Web Performance
block level elements, by definition, have a
default width of 100% of the width of their parent.
...without it, the browser uses the
default viewport width, which on by-
default full screen browsers is generally 960px.
... on by-
default full screen browsers, like your phone's browser, by setting <meta name="viewport" content="width=device-width">, the width will be the width of the device instead of the
default viewport width.
Add to Home screen - Progressive web apps (PWAs)
note: at the time of writing, the functionality described below was only supported in newer versions of chrome — by
default on windows, and behind the #enable-desktop-pwas flag on macos.
...we can then use a handler like the one below to handle the installation: window.addeventlistener('beforeinstallprompt', (e) => { // prevent chrome 67 and earlier from automatically showing the prompt e.prevent
default(); // stash the event so it can be triggered later.
...edprompt.prompt(); // wait for the user to respond to the prompt deferredprompt.userchoice.then((choiceresult) => { if (choiceresult.outcome === 'accepted') { console.log('user accepted the a2hs prompt'); } else { console.log('user dismissed the a2hs prompt'); } deferredprompt = null; }); }); }); so here we: call event.prevent
default() to stop chrome 67 and earlier from calling the install prompt automatically (this behavior changed in chrome 68).
attributeType - SVG: Scalable Vector Graphics
<animate>, <animatecolor>, <animatetransform>, and <set> html, body, svg { height: 100%; } <svg viewbox="0 0 250 250" xmlns="http://www.w3.org/2000/svg"> <rect x="50" y="50" width="100" height="100"> <animate attributetype="xml" attributename="y" from="0" to="50" dur="5s" repeatcount="indefinite"/> </rect> </svg> usage notes value css | xml | auto
default value auto animatable no css this value specifies that the value of attributename is the name of a css property defined as animatable.
... xml this value specifies that the value of attributename is the name of an xml attribute defined as animatable in the
default xml namespace for the target element.
...user agents first search through the list of css properties for a matching property name, and if none is found, search the
default xml namespace for the element.
contentScriptType - SVG: Scalable Vector Graphics
the contentscripttype attribute specifies the
default scripting language for the given document fragment on the <svg> element.
... this attribute sets the
default scripting language used to process the value strings in event attributes.
... usage notes value one of the content types specified in the media types
default value application/ecmascript animatable no specifications specification status comment scalable vector graphics (svg) 1.1 (second edition)the definition of 'contentscripttype' in that specification.
cx - SVG: Scalable Vector Graphics
value <length-percentage>
default value 0 animatable yes note: starting with svg2 cx, is a geometry property, meaning this attribute can also be used as css property for circles.
... value <length-percentage>
default value 0 animatable yes note: starting with svg2 cx, is a geometry property, meaning this attribute can also be used as css property for ellipses.
... value <length>
default value 50% animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 34 10" xmlns="http://www.w3.org/2000/svg"> <defs> <radialgradient cx="0" id="mygradient000"> <stop offset="0%" stop-color="gold" /> <stop offset="50%" stop-color="green" /> <stop offset="100%" stop-color="white" /> </radialgradient> <radialgradient cx="50%" id="mygradient050"> <stop offset="0%" stop-color="gold" /> <stop offset="50%" stop-color="green" /> <stop offset="100%" stop-color="white" /> </radialgradient> <radialgradient cx="100%" id="mygradient100"> <st...
cy - SVG: Scalable Vector Graphics
value <length> | <percentage>
default value 0 animatable yes note: starting with svg2, cy is a geometry property meaning this attribute can also be used as a css property for circles.
... value <length> | <percentage>
default value 0 animatable yes note: starting with svg2, cy is a geometry property meaning this attribute can also be used as a css property for ellipses.
... value <length>
default value 50% animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 34 10" xmlns="http://www.w3.org/2000/svg"> <defs> <radialgradient cy="0" id="mygradient000"> <stop offset="0%" stop-color="gold" /> <stop offset="50%" stop-color="green" /> <stop offset="100%" stop-color="white" /> </radialgradient> <radialgradient cy="50%" id="mygradient050"> <stop offset="0%" stop-color="gold" /> <stop offset="50%" stop-color="green" /> <stop offset="100%" stop-color="white" /> </radialgradient> <radialgradient cy="100%" id="mygradient100"> <st...
d - SVG: Scalable Vector Graphics
value <string>
default value none animatable yes glyph warning: as of svg2 <glyph> is deprecated and shouldn't be used.
... value <string>
default value none animatable yes note: the point of origin (the coordinate 0,0) is usually the upper left corner of the context.
... value <string>
default value none animatable yes path commands path commands are instructions that define a path to be drawn.
horiz-adv-x - SVG: Scalable Vector Graphics
three elements are using this attribute: <font>, <glyph>, and <missing-glyph> font for <font> elements, horiz-adv-x specifies the
default horizontal advance of a glyph in horizontal orientation.
... value <number>
default value none animatable no <number> this value indicates the horizontal advance of the glyph.
... value <number>
default value <font>ʼs horiz-adv-x value animatable no <number> this value indicates the horizontal advance of the glyph.
in2 - SVG: Scalable Vector Graphics
value sourcegraphic | sourcealpha | backgroundimage | backgroundalpha | fillpaint | strokepaint | <filter-primitive-reference>
default value sourcegraphic for first filter primitive, otherwise result of previous filter primitive animatable yes fecomposite for <fecomposite>, in2 defines the second input image to the compositing operation.
... value sourcegraphic | sourcealpha | backgroundimage | backgroundalpha | fillpaint | strokepaint | <filter-primitive-reference>
default value sourcegraphic for first filter primitive, otherwise result of previous filter primitive animatable yes fedisplacementmap for <fedisplacementmap>, in2 defines the second input image, which is used to displace the pixels in the image defined in the in attribute.
... value sourcegraphic | sourcealpha | backgroundimage | backgroundalpha | fillpaint | strokepaint | <filter-primitive-reference>
default value sourcegraphic for first filter primitive, otherwise result of previous filter primitive animatable yes specifications specification status comment filter effects module level 1the definition of 'in2 for <fedisplacementmap>' in that specification.
stroke-linejoin - SVG: Scalable Vector Graphics
0.05" fill="pink" /> <circle cx="3" cy="2" r="0.05" fill="pink" /> <circle cx="5" cy="5.5" r="0.05" fill="pink" /> </g> <use xlink:href="#highlight" x="6" /> <use xlink:href="#highlight" x="12" /> <use xlink:href="#highlight" x="2" y="6" /> <use xlink:href="#highlight" x="8" y="6" /> </svg> usage context value arcs | bevel |miter | miter-clip | round
default value miter animatable yes arcs note: the arcs value as been introduced in svg2 and it isn't widely supported yet, see browser compatibility bellow for details.
... example html,body,svg { height:100% } <svg viewbox="0 -1 10 7" xmlns="http://www.w3.org/2000/svg"> <!-- effect of the "miter" value --> <path d="m1,5 l2,-3 l2,3" stroke="black" fill="none" stroke-linejoin="miter" /> <!-- effect of the "miter" value on a sharp angle where de
default miter limit is exceeded --> <path d="m7,5 l0.75,-3 l0.75,3" stroke="black" fill="none" stroke-linejoin="miter" /> <!-- the following red dotted line show where the miter value falls back to the bevel value --> <path d="m0,0 h10" stroke="red" stroke-dasharray="0.05" stroke-width="0.025"/> <!-- the following pink lines highlight the position of the path for each stroke -->...
... example html,body,svg { height:100% } <svg viewbox="0 -1 10 7" xmlns="http://www.w3.org/2000/svg"> <!-- effect of the "miter-clip" value --> <path d="m1,5 l2,-3 l2,3" stroke="black" fill="none" stroke-linejoin="miter-clip" /> <!-- effect of the "miter-clip" value on a sharp angle where de
default miter limit is exceeded --> <path d="m7,5 l0.75,-3 l0.75,3" stroke="black" fill="none" stroke-linejoin="miter-clip" /> <!-- the following red dotted line show where the clip should happen --> <path d="m0,0 h10" stroke="red" stroke-dasharray="0.05" stroke-width="0.025"/> <!-- the following pink lines highlight the position of the path for each stroke --> <g> <path d="m1,5 ...
vert-adv-y - SVG: Scalable Vector Graphics
three elements are using this attribute: <font>, <glyph>, and <missing-glyph> font for <font> elements, vert-adv-y specifies the
default vertical advance for a glyph in vertical orientation.
... value <number>
default value 1 em as of units-per-em animatable no <number> this value indicates the
default vertical advance of the glyph in vertical direction glyph, missing-glyph for <glyph> and <missing-glyph> elements, vert-adv-y specifies the vertical advance for a glyph in vertical orientation.
... value <number>
default value <font>ʼs vert-adv-y value animatable no <number> this value indicates the vertical advance of the glyph in vertical direction specifications specification status comment scalable vector graphics (svg) 1.1 (second edition)the definition of 'vert-adv-y for <glyph> and <missing-glyph>' in that specification.
<animateMotion> - SVG: Scalable Vector Graphics
value type: <number>*;
default value: none; animatable: no path this attribute defines the path of the motion, using the same syntax as the d attribute.
... value type: <string>;
default value: none; animatable: no rotate this attribute defines a rotation applied to the elment animated along a path, usually to make it pointing in the direction of the animation.
... value type: <number>|auto|auto-reverse;
default value: 0; animatable: no note: for <animatemotion> the
default value for the calcmode attribute is paced animation attributes animation timing attributes begin, dur, end, min, max, restart, repeatcount, repeatdur, fill animation value attributes calcmode, values, keytimes, keysplines, from, to, by other animation attributes most notably: attributename, additive, accumulate animation event attributes most notably: onbegin, onend, onrepeat global attributes core attributes most notably: id styling attributes class, style event attributes global event attributes, document element event attributes usage notes this element implements the svganimatemotionelement interface.
<feDropShadow> - SVG: Scalable Vector Graphics
value type: <number>;
default value: 2; animatable: yes dy this attribute defines the y offset of the drop shadow.
... value type: <number>;
default value: 2; animatable: yes stddeviation this attribute defines the standard deviation for the blur operation in the drop shadow.
... value type: <number>;
default value: 2; animatable: yes global attributes core attributes most notably: id styling attributes class, style filter primitive attributes height, in, result, x, y, width presentation attributes most notably: flood-color, flood-opacity usage notes categoriesfilter primitive elementpermitted contentany number of the following elements, in any order:<animate>, <script>, <set> specifications specification status comment filter effects module level 1the definition of '<fedropshadow>' in that specification.
<polygon> - SVG: Scalable Vector Graphics
html,body,svg { height:100% } <svg viewbox="0 0 200 100" xmlns="http://www.w3.org/2000/svg"> <!-- example of a polygon with the
default fill --> <polygon points="0,100 50,25 50,75 100,0" /> <!-- example of the same polygon shape with stroke and no fill --> <polygon points="100,100 150,25 150,75 200,0" fill="none" stroke="black" /> </svg> attributes points this attribute defines the list of points (pairs of x,y absolute coordinates) required to draw the polygon.
... value type: <number>+ ;
default value: ""; animatable: yes pathlength this attribute lets specify the total length for the path, in user units.
... value type: <number> ;
default value: none; animatable: yes global attributes core attributes most notably: id, tabindex styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, 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, ...
<stop> - SVG: Scalable Vector Graphics
value type: <number>|<percentage>;
default value: 0; animatable: yes stop-color this attribute defines the color of the gradient stop.
... value type: currentcolor|<color>|<icccolor>;
default value: black; animatable: yes stop-opacity this attribute defines the opacity of the gradient stop.
... value type: <opacity>;
default value: 1; animatable: yes global attributes core attributes most notably: id styling attributes class, style event attributes global event attributes, document element event attributes presentation attributes most notably: color, display, stop-color, stop-opacity, visibility usage notes categoriesgradient elementpermitted contentany number of the following elements, in any order:<animate>, <animatecolor>, <set> specifications specification status comment scalable vector graphics (svg) 2the definition of '<stop>' in that specification.
<style> - SVG: Scalable Vector Graphics
value type: <string>;
default value: text/css; animatable: no media this attribute defines to which media the style applies.
... value type: <string>;
default value: all; animatable: no title this attribute the title of the style sheet which can be used to switch between alternate style sheets.
... value type: <string>;
default value: none; animatable: no global attributes core attributes most notably: id styling attributes class, style event attributes global event attributes, document element event attributes usage notes categoriesnonepermitted contentany elements or character data specifications specification status comment scalable vector graphics (svg) 2the definition of '<style>' in that specification.
How to fix a website with blocked mixed content - Web security
starting with firefox 23, firefox blocks active mixed content by
default.
... your website may break if your website delivers https pages, all active mixed content delivered via http on this pages will be blocked by
default.
...passive mixed content is displayed by
default, but users can set a preference to block this type of content, as well.
Using custom elements - Web Components
note: custom elements are supported by
default in firefox, chrome, and edge (76).
... // create a shadow root this.attachshadow({mode: 'open'}); // sets and returns 'this.shadowroot' // create (nested) span elements const wrapper = document.createelement('span'); wrapper.setattribute('class','wrapper'); const icon = wrapper.appendchild(document.createelement('span')); icon.setattribute('class','icon'); icon.setattribute('tabindex', 0); // insert icon from defined attribute or
default icon const img = icon.appendchild(document.createelement('img')); img.src = this.hasattribute('img') ?
... this.getattribute('img') : 'img/
default.png'; const info = wrapper.appendchild(document.createelement('span')); info.setattribute('class','info'); // take attribute content and put it inside the info span info.textcontent = this.getattribute('data-text'); // create some css to apply to the shadow dom const style = document.createelement('style'); style.textcontent = '.wrapper {' + // css truncated for brevity // attach the created elements to the shadow dom this.shadowroot.append(style,wrapper); finally, we register our custom element on the customelementregistry using the define() method we mentioned earlier — in the parameters we specify the element name, and then the class name that defines its functionality: customelements.define('popup-info', popupinfo); it is now available to use...
Using shadow DOM - Web Components
note: shadow dom is supported by
default in firefox (63 and onwards), chrome, opera, and safari.
...think for example of a <video> element, with the
default browser controls exposed.
...); icon.setattribute('class', 'icon'); icon.setattribute('tabindex', 0); let info = document.createelement('span'); info.setattribute('class', 'info'); // take attribute content and put it inside the info span let text = this.getattribute('data-text'); info.textcontent = text; // insert icon let imgurl; if(this.hasattribute('img')) { imgurl = this.getattribute('img'); } else { imgurl = 'img/
default.png'; } let img = document.createelement('img'); img.src = imgurl; icon.appendchild(img); styling the shadow dom after that we create a <style> element and populate it with some css to style it: // create some css to apply to the shadow dom let style = document.createelement('style'); style.textcontent = ` .wrapper { position: relative; } .info { font-size: 0.8rem; width: 200px; dis...
Using templates and slots - Web Components
so for example: <template id="my-paragraph"> <style> p { color: white; background-color: #666; padding: 5px; } </style> <p>my paragraph</p> </template> now we can use it by just adding it to our html document: <my-paragraph></my-paragraph> note: templates are well-supported in browsers; the shadow dom api is supported by
default in firefox (version 63 onwards), chrome, opera, safari, and edge (starting with version 79).
... so, if we want to add a slot into our trivial example, we could update our template's paragraph element like this: <p><slot name="my-text">my
default text</slot></p> if the slot's content isn't defined when the element is included in the markup, or if the browser doesn't support slots, <my-paragraph> just contains the fallback content "my
default text".
... because the second <element-details> doesn’t explicitly reference the "attributes" named slot from its shadow root, its content for that named slot gets filled with the
default content for it from the shadow root.
Compiling a New C/C++ Module to WebAssembly - WebAssembly
if we don’t specify this, emscripten will just output asm.js, as it does by
default.
...it is enabled by
default in firefox 52+ and chrome 57+/latest opera (you can also run wasm code in firefox 47+ by enabling the javascript.options.wasm flag in about:config, or chrome (51+) and opera (38+) by going to chrome://flags and enabling the experimental webassembly flag.) note: if you try to open generated html file (hello.html) directly from your local hard drive (e.g.
... to start with, save the following code as hello3.c in a new directory: #include <stdio.h> #include <emscripten/emscripten.h> int main(int argc, char ** argv) { printf("hello world\n"); } #ifdef __cplusplus extern "c" { #endif void emscripten_keepalive myfunction(int argc, char ** argv) { printf("myfunction called\n"); } #ifdef __cplusplus } #endif by
default, emscripten-generated code always just calls the main() function, and other functions are eliminated as dead code.
Window: deviceproximity event - Archive of obsolete content
note: this event has been disabled by
default in firefox 62, behind the device.sensors.proximity.enabled preference (bug 1462308).
... bubbles no cancelable no interface deviceproximityevent target
defaultview (window)
default action none event handler property window.ondeviceproximity specification proximity sensor other properties property type description value read only double (float) the measured proximity of the distant device (distance in centimetres).
page-mod - Archive of obsolete content
name: contentscriptwhen type: string by
default, content scripts are attached after all the content (dom, js, css, images) for the document has been loaded, at the time the window.onload event fires.
... this property
defaults to "end".
lang/functional - Archive of obsolete content
the
default hashfunction just uses the first argument to the memoized function as the key.
... options : object by
default the function is called as soon as it is invoked (the leading edge of the wait period), and at the end of wait (the trailing edge of the wait period).
system/events - Archive of obsolete content
this object has three attributes: type: the event type name subject: the event subject object data: the event data string strong : boolean
default is false, a weak reference, which means it can be garbage collected at any time if there are no other references to it.
... strong : boolean
default is false, a weak reference, which means it can be garbage collected at any time if there are no other references to it.
ui/toolbar - Archive of obsolete content
showing and hiding toolbars by
default, a toolbar is shown when it is created, although you can specify that a toolbar should be hidden initially by passing hidden:true as an option in its constructor.
...
defaults to false.
cfx to jpm - Archive of obsolete content
with cfx, this
defaults to "lib/main.js", although it can be set to a different file using the main field in package.json.
... in jpm, the entry point
defaults to "index.js".
Implementing the widget - Archive of obsolete content
script the widget's content script just listens for left- and right- mouse clicks and posts the corresponding message to the add-on code: this.addeventlistener('click', function(event) { if(event.button == 0 && event.shiftkey == false) self.port.emit('left-click'); if(event.button == 2 || (event.button == 0 && event.shiftkey == true)) self.port.emit('right-click'); event.prevent
default(); }, true); save this in your data/widget directory as widget.js.
... data.url('widget/pencil-on.png') : data.url('widget/pencil-off.png'); }); widget.port.on('right-click', function() { console.log('show annotation list'); }); } the annotator is inactive by
default.
Logging - Archive of obsolete content
the console.log() method prints an informational message: console.log("hello world"); try it out: create a new directory, and navigate to it execute jpm init, accepting all the
defaults open "index.js" and add the line above execute jpm run firefox will start, and the following line will appear in the command window you used to execute jpm run: info: hello world!
... but note that by
default, calls to console.log() will not result in any output in the error console for any installed add-ons: this includes add-ons installed using the add-on builder or using tools like the extension auto-installer.
Using third-party modules (jpm) - Archive of obsolete content
in your add-on code, you can require() modules 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".
... note: in more recent versions of firefox, the menu bar may not be visible by
default.
Downloading Files - Archive of obsolete content
if you want to open a login prompt, you can use the
default prompt by calling the window watcher's getnewauthprompter() method.
...var privacy = privatebrowsingutils.privacycontextfromwindow(urlsourcewindow); var hardcodedusername = "ericjung"; var hardcodedpassword = "foobar"; persist.progresslistener = { queryinterface: xpcomutils.generateqi(["nsiauthprompt"]), // implements nsiauthprompt prompt: function(dialogtitle, text, passwordrealm, savepassword,
defaulttext, result) { result.value = hardcodedpassword; return true; }, promptpassword: function(dialogtitle, text, passwordrealm, savepassword, pwd) { pwd.value = hardcodedpassword; return true; }, promptusernameandpassword: function(dialogtitle, text, passwordrealm, savepassword, user, pwd) { user.value = hardcodedusername; pwd.value = hardcodedpassword; return true...
Label and description - Archive of obsolete content
the
default style for these xul elements includes white-space: wrap;.
... note: if running in a xulrunner application add the following preferences to your
default preferences file: pref("network.protocol-handler.expose.http", false); pref("network.protocol-handler.warn-external.http", false); change or add additional protocols (https or ftp) as needed.
On page load - Archive of obsolete content
if(doc.location.href.search("forum") > -1) alert("a forum page is loaded"); // add event listener for page unload aevent.originaltarget.
defaultview.addeventlistener("unload", function(event){ myextension.onpageunload(event); }, true); }, onpageunload: function(aevent) { // do something } }; current firefox trunk nightlies will fire the onpageload function for not only documents, but xul:images (favicons in tabbrowser).
... if(gbrowser) gbrowser.addeventlistener("domcontentloaded", this.onpageload, false); }, onpageload: function(aevent) { var doc = aevent.originaltarget; // doc is document that triggered the event var win = doc.
defaultview; // win is the window for the doc // test desired conditions and do something // if (doc.nodename != "#document") return; // only documents // if (win != win.top) return; //only top window.
Jetpack Processes - Archive of obsolete content
note: the jetpack service, provided by nsijetpackservice, is not included by
default in firefox 4.
...by
default, a handle is rooted in the javascript interpreter's garbage collector, meaning that even if a process throws it away, it will not be garbage collected unless the other process explicitly does something to indicate that it is no longer needed.
Offering a context menu for form controls - Archive of obsolete content
firefox 3 changed the behavior of right-click on form controls to no longer display a context menu by
default.
... as a result, all controls in the window will support a context menu when right-clicked, since we've changed the core behavior of context menus to override their
default behavior of doing nothing on form controls.
Adding Events and Commands - Archive of obsolete content
for example: <button label="&xulschoolhello.
defaultgreeting.label;" oncommand="xulschoolchrome.browseroverlay.changegreeting(event);" /> then on the javascript code you would have something like this: changegreeting : function(aevent) { // more stuff aevent.target.setattribute("label", somenewgreeting); } the target in this example is the button element, so clicking on it will change its text.
...this can lead to unexpected behavior for the user since most events have a
default behavior associated to them.
Adding sidebars - Archive of obsolete content
--> </tabpanel> </tabpanels> </tabbox> the first tab is selected by
default, but you can change the
default selection by setting the selected attribute to true in the « xul reference « element.
...in the following example, the second child will be displayed, not the first which would be the
default.
Custom XUL Elements with XBL - Archive of obsolete content
notice how the
default namespace for the document is xbl, and the xul namespace is defined as "xul".
... <field name="fieldname">
defaultvalue</field> from inside your binding methods, you can access fields with: this.fieldname you can also access them from outside of the element, if you have a reference to it: elementref.fieldname just like with js objects, all fields are publicly accessible, and we use a "_" to indicate a field is "private".
List of Mozilla-Based Applications - Archive of obsolete content
content management system uses xul and xpcom aicpcu/iia exam app exam delivery software aliwal geocoder geocoding & data on a map amarok xul remote remote control for amarok music player ample sdk javascript gui-framework aol instant messenger im client uses nss apache web server doesn't use nss by
default, but can be configured to use nss with mod_nss ssl module apicawatch site performance monitoring tool uses firefox as part of its monitoring package astyle css editor editing tool atmail webmail client aviva for java mainframe connectivity product uses mozilla rhino babelgum internet tv service basilisk pre-...
...er for powerpc-based macs timberwolf browser for amiga os4 based on firefox - project page mozilla thunderbird email 47 million dl tomtom home 2 pc application to manage tomtom gps devices review article from gps magazine; over 2.4m users topstyle html, xhtml and css editor seems to have optional gecko embedding but doesn't use it by
default toxtox media browser for tv 5000 downloads trixul gui toolkit uses mozilla spidermonkey trustedbird email client thunderbird bundled with a set of extensions (formerly known as milimail) tuneup music collection organizer listed on xulrunner hall of fame but haven't seen information elsewhere tuxguitar tabulature editor use...
Environment variables affecting crash reporting - Archive of obsolete content
additionally, on mac os x, you can set an application
default setting to allow apple's crash reporter tool to run alongside the breakpad crash reporter.
... run this on the command line:
defaults write org.mozilla.firefox oscrashreporter 1 note that you will get two crash dialogs with this setting, one from the os and one from mozilla.
Source code directories overview - Archive of obsolete content
profile contains c interfaces, c code, xul and javascript scripts for creating new user profiles, managing existing user profiles, migrating profiles from mozilla classic and using
default profiles for popular isps (e.g.
... themes contains the
default themes for mozilla, modern and classic.
How Thunderbird and Firefox find their configuration files - Archive of obsolete content
here is an example of what this may look like: [general] startwithlastprofile=1 [profile0] name=
default isrelative=1 path=profiles/
default.uda if you want to point this to a location of your choice (for example h:\thunderbird), you need to perform to changes: set isrelative to be 0 update the path to point to the desired place.
...you'd obtain a file such as the following: [general] startwithlastprofile=1 [profile0] name=
default isrelative=0 path=h:\thunderbird a discussion about this file can be found here ...
Getting Started - Archive of obsolete content
directories in \mozilla\chrome\classic\skin\classic there are a number of different directories which contain the skin information for the
default packages that come with mozilla.
...the
default widgets are defined here, and anything that is modified will change throughout mozilla.
Dehydra Function Reference - Archive of obsolete content
the
default namespace is this the directories in sys.include_path are searched for the file, and the current working directory is searched last.
...the
default value is the following directories: the directory of the dehydra script being processed the libs directory next to the gcc_dehydra.so plugin user script may add additional directories sys.aux_base_name exposes the base filename part of the file being compiled sys.frontend exposes the compiler frontend (e.g.
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.
Makefile.mozextension.2 - Archive of obsolete content
either remove (clean it), or choose individual targets to build."; exit 1; } @echo $(mkdir) $(project) $(mkdir) $(project)/content $(project)/locale $(project)/locale/en-us $(project)/components/ $(project)/
defaults/ $(project)/
defaults/preferences/ $(project)/locale/de-de $(project)/skin make_xpi: $(mkdir) $(project)/chrome && \ cd $(project) && \ $(zipprog) -r chrome/$(project).jar content locale skin && \ $(zipprog) -r $(project).xpi chrome.manifest install.rdf components
defaults chrome && cd ..
...real_install: $(cp) chrome/$(project).jar ~/.mozilla/
default/32p27fdr.slt/chrome/ #################################### ###### define chrome_manifest content $(project) content/ overlay chrome://browser/content/browser.xul chrome://$(project)/content/overlay.xul locale $(project) en-us locale/ skin $(project) classic/1.0 skin/ style chrome://global/content/customizetoolbar.xul chrome://$(project)/skin/overlay.css endef export chrome_manifest chrome.manifest: @echo generating $(project)/chrome.manifest @echo "$$chrome_manifest" > $(project)/chrome.manifest ###### #firefox {ec8030f7-c20a-464f-9b0e-13a3a9e973...
Metro browser chrome tests - Archive of obsolete content
running the metro browser chrome tests to run mochitest, first build mozilla with your changes; then run ./mach mochitest-metro this will launch metro browser chrome tests in the
default immersive browser.
... for information on setting your local build as the
default, visit the windows 8 integration wiki page.
Configuration - Archive of obsolete content
the file must be located in the web app home directory: splashscreen.html include uris that should be opened in the web app, rather than in the
default browser.
...separate multiple uris with commas: *google.com, *yahoo.com exclude urls that should be opened in the
default browser, rather than in the web app.
Proxy UI - Archive of obsolete content
for example, firefox 3: [ ] no proxy [ ] auto-detect proxy settings for this network [ ] manual proxy configuration: [ ] automatic proxy configuration url: behavior
default value: "no proxy" is selected all other "type" radio buttons are enabled, but not selected.
...if configured, socks is used as a
default: if the protocol was proxyable and did not match any of the previous protocols), then use socks.
PyDOM - Archive of obsolete content
once you set the script type for a node, it is the
default for that node and all children.
... this means that if you set the script-type to python for the window, python is the
default script type for all child elements in the window.
Static Analysis for Windows Code under Linux - Archive of obsolete content
build gcc corss-compiler with plugin support by
default gcc does not support plugins.
...you can obtain mozilla 2 code by: hg clone http://hg.mozilla.org/mozilla-central/ and compose a .mozconfig file for cross-compiling mozilla with static analysis hooked: #specify the cross compile cross_compile=1 ac_add_options --enable-application=browser ac_add_options --host=i686-linux ac_add_options --target=i686-mingw32 ac_add_options --enable-
default-toolkit=cairo-windows mk_add_options moz_objdir=@topsrcdir@/../mozilla-mingw # mozilla trunk uses many vista only features on windows, so we should disable some components to make it buildable with mingw32.
Supporting private browsing mode - Archive of obsolete content
in such a case, it is considered good practice for the extension to enable respecting the private browsing mode based on a preference specific to that extension, and set that preference to true by
default.
... for example, the fire.fm extension has a preference called "disable station history and scrobble when firefox is in private mode", and disabling publishing of that information inside the private browsing mode by
default.
Tamarin-central rev 703:2cee46be9ce0 - Archive of obsolete content
os
default-jitinterpretedaggressive jit mac (os/x 10.4 intel, 2ghz dual core)tc-703 vs tc-700: 0.0%tc-703 vs flash10: 1.1% slowertc-703 vs tc-700: 17.4% fastertc-703 vs flash10: 165.3% fastertc-703 vs tc-700: 0.1% fastertc-703 vs flash10: 0.8% slower windows (xp pro, 2.13ghz dual core)tc-703 vs tc-700: 0.6% fastertc-703 vs flash10: 0.8% fastertc-703 vs tc-700: 16.4% fastertc-703 vs flash10...
... os
default-jitinterpretedaggressive jit mac (os/x 10.4 intel, 2ghz dual core)tc-703 vs tc-700: 2.0% smallertc-703 vs tc-663: 7.8% smallertc-703 vs tc-700: 7.1% largertc-703 vs tc-663: 14.6% largertc-703 vs tc-700: 16.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-6...
XML in Mozilla - Archive of obsolete content
another exception is an entity whose system identifier is a relative path, and the xml declaration states that the document is not standalone (
default), in which case mozilla will try to look for the entity under <bin>/res/dtd directory.
...mozilla will read internal (dtd) subsets, and in special circumstances external dtds as explained above and will use this information to recognize id type attributes,
default attribute values, and general entities.
Creating XPI Installer Modules - Archive of obsolete content
though the chrome directory still includes subdirectories of uncompressed files by
default, a new way to aggregate and distribute the files has improved performance, made the ui components more portable and easier to install, and made the installation process a much easier one.
...since we are not updating the mozilla ui to provide special access to this window (e.g., an item in the tasks menu or elsewhere), the measure of the success of the installation of the barley package is that the user can, as before, invoke our software by using a special startup option: mozilla -chrome chrome://barley/content this option tells mozilla to load a chrome other than the
default, which is the main browser window.
getFolder - Archive of obsolete content
the value of foldername must be one of the following (info is based on mozilla 1.7 stable branch, might also work in other versions): "chrome" "components" "current user" "
defaults" "file:///" "os drive" "plugins" "preferences" "profile" "program" "temporary" "mac apple menu" "mac control panel" "mac desktop" "mac documents" "mac extension" "mac fonts" "mac shutdown" "mac startup" "mac system" ...
... "mac trash" "mac preferences" "macosx
default download" "macosx home" "macosx internet sites" "macosx local applications" "macosx local desktop" "macosx local documents" "macosx local frameworks" "macosx local internet plugin" "macosx local preferences" "macosx movie documents" "macosx music documents" "macosx picture documents" "macosx user applications" "macosx user desktop" "macosx user documents" "macosx user frameworks" "macosx user internet plugin" "macosx user preferences" "unix lib" "unix local" "w...
Learn XPI Installer Scripting by Example - Archive of obsolete content
first, a quick scan of the contents of the xpi file (which you can open using with any unzip utility) reveals the following high-level directory structure: install.js bin\ chrome\ components
defaults\ icons\ plugins\ res\ note that this high-level structure parallels the directory structure of the installed browser very closely: as you will see in the installation script, the contents of the archive are installed onto the file system in much the same way that they are stored in the archive itself, though it's possible to rearrange things arbitrarily upon installation--to create ne...
... the install log is created in the product directory by
default (where the browser executable is).
buttons - Archive of obsolete content
this button will also be the
default button.
... 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).
popupanchor - Archive of obsolete content
this point (either directly under the mouse or attached to one of the four corners) is called the originating point.by
default the popup content appears with its top left point located directly underneath the point at which the user's mouse goes down (on tooltips the content is displaced by the height of the mouse cursor).
...the
default value for both popupanchor and popupalign is "none." ...
seltype - Archive of obsolete content
(
default in listbox and richlistbox.) multiple multiple rows may be selected at once.
... (
default in tree.) for trees, you can also use the following values: cell individual cells can be selected text rows are selected; however, the selection highlight appears only over the text of the primary column.
spellcheck - Archive of obsolete content
« xul reference home spellcheck type: boolean if true, spell checking is enabled by
default for the text box; if false, spell checking is disabled by
default.
... if not specified, this
defaults to false the html the spellcheck attribute uses values of true or false (you cannot simply add the spellcheck attribute to a given element): <!-- spellcheck everything!
close - Archive of obsolete content
general info specification xul interface event bubbles no cancelable no target window
default action the window is closed.
... example window.addeventlistener("close", function( event ) { // make the close button ineffective event.prevent
default(); }, false); ...
command - Archive of obsolete content
general info specification xul interface xulcommandevent bubbles yes cancelable yes target element
default action none properties property type description target read only eventtarget the event target (the topmost target in the dom tree).
... view read only windowproxy document.
defaultview (window of the document) detail read only long (float) unused; always zero.
popupshowing - Archive of obsolete content
the
default action of the event can be prevented to prevent the popup to appear.
... general info specification xul interface popupevent bubbles yes cancelable yes target element
default action a popup is displayed properties property type description target read only eventtarget the event target (the topmost target in the dom tree).
XUL Events - Archive of obsolete content
the
default action of the event can be prevented to prevent the popup to appear.popupshownthe popupshown event is executed when a <menupopup>, <panel> or <tooltip> has become visible.radiostatechangethe radiostatechange event is executed when the state of a <radio> element has changed.valuechangethe valuechange event is executed when the value of an element, <progress> for example, has changed.
...if you call event.prevent
default() within the listener the window will not close.
Getting File Information - Archive of obsolete content
if the file is not present, the 'filesize' variable will not be changed from the
default value of 0.
... the
default permissions for files when created through an output stream is 0644, which means that the file is readable and writable by the owner of the file and read only for others.
PopupKeys - Archive of obsolete content
for a panel, the only key that is handled by
default is the escape key to close the panel.
...note that the last argument here is true to listen for events during the capturing phase of event propagation: window.addeventlistener("keypress", someaction, true); however, the
default listener provides all the suitable responses to keys, so there shouldn't be a need to handle keys yourself.
Property - Archive of obsolete content
allnotifications allowevents alwaysopenpopup amindicator applocale autocheck autofill autofillaftermatch boxobject browsers builder builderview buttons canadvance cangoback cangoforward canrewind checked checkstate child children classname clickselectsall clientheight clientwidth collapsed color columns command commandmanager complete
defaultindex container contentdocument contentprincipal contenttitle contentview contentvieweredit contentviewerfile contentwindow contextmenu control controller controllers crop current currentindex currentitem currentnotification currentpage currentpane currentset currenturi customtoolbarcount database datasources date dateleadingzero datevalue de...
...cimalplaces decimalsymbol
defaultbutton
defaultvalue description dir disableautocomplete disableautocomplete disableautoselect disabled disablekeynavigation dlgtype docshell documentcharsetinfo editable editingcolumn editingrow editingsession editor editortype emptytext deprecated since gecko 2 enablecolumndrag eventnode firstordinalcolumn firstpermanentchild flex focused focuseditem forcecomplete group handlectrlpageupdown handlectrltab hasuservalue height hidden hideseconds highlightnonmatches homepage hour hourleadingzero id ignoreblurwhilesearching image increment inputfield inverted is24hourclock ispm issearching iswaiting itemcount label labelelement lastpermanentchild lastselected ...
Creating Dialogs - Archive of obsolete content
this is a convenient way to supply
default values to the fields in the dialog.
... amongst other useful attributes are buttonlabelaccept - label to appear on the accept button egsave buttonaccesskeyaccept - access key to use for the accept button egs
defaultbutton - button is activated when the enter key is pressed note: the label attributes are required by remote sites and are probably missing in the above examples due to bug 224996.
Creating a Skin - Archive of obsolete content
#find-button { list-style-image: url("chrome://global/skin/checkbox/images/cbox-check.jpg"); font-weight: bold; } #cancel-button { list-style-image: url("chrome://global/skin/icons/images/close-button.jpg"); } button:hover { color: #000066; } we add some images to the buttons and make the find button have bold text to indicate that it is the
default button.
...don't expect the user to be using the
default one.
Progress Meters - Archive of obsolete content
the value determined is the
default if you do not specify this attribute.
... <textbox id="find-text"/> <html:progress value="50" max="100" style="margin: 4px;"/> <button id="find-button" label="find"
default="true"/> the value has been set to 50% so that we can see the meter on the window.
Stacks and Decks - Archive of obsolete content
we've already seen that buttons may contain other things besides the
default.
... example 3 : source view <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> three pages exist here, the
default being the third one.
Styling a Tree - Archive of obsolete content
treechildren::-moz-tree-row(readonly) { border: 1px solid red; } treechildren::-moz-tree-row(readonly, unread) { background-color: rgb(80%, 80%, 80%); }
default properties the properties list for tree elements contain a small number of
default properties, which you can also use in a style sheet.
... next, we'll look at how to modify the
default skin.
Tabboxes - Archive of obsolete content
moreover, the tabbox element is much like a regular container box with a
default vertical orientation, whereas the tabs element is much like a container box with a
default horizontal orientation.
...we'll create an options tab (and select it by
default) that will contain some options for searching.
Trees and Templates - Archive of obsolete content
the sortdirection attribute (note the mixed case) is used to set the direction in which the column will be sorted by
default.
... the final attribute, sortactive should be set to true for one column, the one that you would like to be sorted by
default.
Using the standard theme - Archive of obsolete content
by
default, no style is associated with xul extension windows or dialogs.
...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.
box - Archive of obsolete content
the
default orientation is horizontal.
...osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements vbox, hbox ...
button - Archive of obsolete content
the
default value depends on the element.
...osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related interfaces nsiaccessibleprovider, nsidomx...
editor - Archive of obsolete content
however, an issue is that if you specify the src attribute initially on the editor tag in the xul file, the document does not become editable by
default.
...osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related interfaces nsiaccessibleprovider ...
hbox - Archive of obsolete content
this is equivalent to the box element, except it
defaults to horizontal orientation.
...osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements box, vbox ...
image - Archive of obsolete content
the following values are accepted, or leave out the attribute entirely for
default handling: always the image is always checked to see whether it should be reloaded.
...osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata style classes alert-icon class that a...
key - Archive of obsolete content
in order to use (non-
default) key commands within specific elements, you will need to listen for key events.
...osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata details on key, keycode, and modifiers attributes fo...
label - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata style classes the following classes may be used to sty...
... the caption is in the "value" attribute remember that the label element has a "value" attribute, unlike value in html whereas buttons, checkboxes use label="foo" as the attribute <label label="a caption"/> <!-- wrong --> <label value="a caption"/> <label value="click the button"/> <button label="a button"/> <checkbox label="a decision" value="1"/> wrapping by
default, label text does not wrap.
listcell - Archive of obsolete content
by
default it only contains text but iconic and checkbox listcells are also available.
...osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata style classes listcell-iconic use this class to h...
listitem - Archive of obsolete content
by
default it contains a single listcell element of type and class appropriate to that of the listitem.
...osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata style classes the following classes may be used to s...
menu - Archive of obsolete content
this is the
default value for menulists.
...aredocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata appenditem( label, value ) return type:...
menubar - Archive of obsolete content
when set to false, the
default, the grippy will be shown.
...osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements menu, menuitem, menulist, menupo...
menulist - Archive of obsolete content
this is the
default value for menulists.
...aredocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata appenditem( label, value, description ) return type...
param - Archive of obsolete content
type type: one of the values below the type of the parameter's value integer 32 bit integer int64 64 bit integer double double-precision floating-point number string string literal, the
default value properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, toolti...
...osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
preferences - Archive of obsolete content
attribute nsiprefbranch
defaultbranch; the root branch of the tree with
default values.
...osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related preferences system documentation: int...
progressmeter - Archive of obsolete content
the
default value if not specified is 100 such that the value may be used as a percentage.
...osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related interfaces nsiaccessibleprovider ...
radiogroup - Archive of obsolete content
the radiogroup
defaults to vertical orientation.
...aredocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata appenditem( label, value ) return type...
rule - Archive of obsolete content
when no query element is used in a template, a
default query is used and the simple query syntax may be used for rdf datasources.
...osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
script - Archive of obsolete content
if you omit this attribute, the
default (and older) javascript version is used (like you get when including a javascript file from web content without specifying a version number).
...osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
separator - Archive of obsolete content
it is functionally equivalent to a spacer except it
defaults to a small size (usually 1.5 ems).
...osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata style classes the following classes may be used to s...
vbox - Archive of obsolete content
this is equivalent to the box element, except it
defaults to vertical orientation.
...osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements box, hbox ...
where - Archive of obsolete content
otherwise, the
default value is false, to indicate that the value should match with the same case.
...osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
toolkit.singletonWindowType - Archive of obsolete content
preference type: string specified by:
default prefs of xulrunner applications
default: none example: pref("toolkit.singletonwindowtype", "xulmine"); by
default, the toolkit.
defaultchromeuri preference will cause xulrunner to open a new main application window each time an application is invoked.
...see also: xulrunner:specifying startup chrome window, toolkit.
defaultchromefeatures ...
xulauncher - Archive of obsolete content
-f "$1" ] then echo "\"$1\" is not a file" exit fi # define some variables ############################################################################## wd=/tmp ext=".xul" xulfile=`basename $1` xulname=${xulfile%$ext} xuldir="$wd/$xulname/chrome/$xulname/" xulprefdir="$wd/$xulname/
defaults/preferences" xulappini="$wd/$xulname/application.ini" xulmanifest="$wd/$xulname/chrome/chrome.manifest" xulprefs="$wd/$xulname/
defaults/preferences/prefs.js" # make minimal directory structure ############################################################################## mkdir -p $xuldir mkdir -p $xulprefdir # create application.ini file #######################################################...
...cher.sh name=$xulname version=0.0.1 buildid=`date +%y%m%d` [gecko] minversion=1.8 maxversion=1.9 ">$xulappini # create chrome.manifest file ############################################################################## echo " content $xulname file:$xulname/ ">$xulmanifest # create prefs.js file ############################################################################## echo " pref(\"toolkit.
defaultchromeuri\", \"chrome://$xulname/content/$xulfile\"); /* debugging prefs */ pref(\"browser.dom.window.dump.enabled\", true); pref(\"javascript.options.showinconsole\", true); pref(\"javascript.options.strict\", true); pref(\"nglayout.debug.disable_xul_cache\", true); pref(\"nglayout.debug.disable_xul_fastload\", true); ">$xulprefs # copy xul file to right location and run it #####################...
2006-11-10 - Archive of obsolete content
build problem firefox 2.0 on fc3 november 10th: vin downloaded the latest firefox 2 rc3 and tried to build it on fc3 with the following options: ./configure --enable-application=browser --prefix=$prefix --enable-extensions=
default,spatialnavigation then he tried running "make" and received the following error: /usr/bin/ld: testtarray.o(.text+0x2237): unresolvable relocation against symbol `nstarray_base::semptyhdr' /usr/bin/ld: final link failed: nonrepresentable section on output collect2: ld returned 1 exit status gmake[3]: *** [testtarray] error 1 gmake[3]: leaving directory `/usr/mozilla2/src/mozilla/xpcom/tests' g...
...make[2]: *** [libs] error 2 gmake[2]: leaving directory `/usr/mozilla2/src/mozilla/xpcom' gmake[1]: *** [tier_2] error 2 gmake[1]: leaving directory `/usr/mozilla2/src/mozilla' make: *** [
default] error 2 he is not sure what is wrong with his build, and is asking for help on how to resolve the build error.
2006-11-24 - Archive of obsolete content
the build is working properly with the
default toolkit, but when he tries to add ac_add_options --enable-
default-toolkit=gtk2 to his .mozconfig file he gets an error.
... if you build dependencies with non-
default toolkit or on a non tier-1 platform you'll need to disable svg in your mozconfig.
Writing a plugin for Mac OS X - Archive of obsolete content
the three symbols that must always be visible are: np_initialize() np_getentrypoints() np_shutdown() the sample plugin is written entirely in c, using a standard xcode build configuration, so by
default all of its symbols are c-style and visible.
... if you want to implement your plugin in c++ or objective-c++, you need to tell the compiler to export them in c format by using extern "c" in the header, like this: #pragma gcc visibility push(
default) extern "c" { nperror np_initialize(npnetscapefuncs *browserfuncs); nperror np_getentrypoints(nppluginfuncs *pluginfuncs); void np_shutdown(void); } #pragma gcc visibility pop you can check to be sure your symbols are visible and in standard c format by using the nm utility provided among the mac os x developer tools: [user@foo mymac] nm basicplugin ...
Making sure your theme works with RTL locales - Archive of obsolete content
example toolbar[iconsize="large"][mode="icons"] #back-button { -moz-image-region: rect(0px 396px 34px 360px); } toolbar[iconsize="large"][mode="icons"] #back-button:-moz-locale-dir(rtl) { -moz-image-region: rect(0px 516px 34px 480px); } this specifies the
default, left-to-right version of the button, then offers an override if the user's interface is being rendered in right-to-left mode.
...that's how the
default theme works, so you can use it as an example.
Scratchpad - Archive of obsolete content
first you need to check "scratchpad" in the "
default firefox developer tools" section of the settings page.
... ctrl + n close scratchpad ctrl + w cmd + w ctrl + w pretty print the code in scratchpad ctrl + p cmd + p ctrl + p show autocomplete suggestions ctrl + space ctrl + space ctrl + space show inline documentation ctrl + shift + space ctrl + shift + space ctrl + shift + space source editor shortcuts this table lists the
default shortcuts for the source editor.
-ms-accelerator - Archive of obsolete content
initial valuefalseapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete syntax /* the object is not a keyboard shortcut (the
default) */ -ms-accelerator: false /* the object is a keyboard shortcut */ -ms-accelerator: true values false the object is not a keyboard shortcut.
...the user presses the alt key and holds it while pressing the character to move input focus to the object, and to invoke the
default event associated with the object.
-ms-filter - Archive of obsolete content
t.gradient( <properties> ) where <properties> = [ <enabled> | <endcolor> | <endcolorstr> | <gradienttype> | <startcolor> | <startcolorstr> ]# where <enabled> = 'enabled=' [ true | false ] <endcolor> = 'startcolor=' <color> <endcolorstr> = 'startcolorstr=' <color> <gradienttype> = 'gradienttype=' <integer> <startcolor> = 'startcolor=' <color> <startcolorstr> = 'startcolorstr=' <color> enabled
default: true set to false to disable.
... gradienttype
default: 0 (equivalent to linear-gradient(to bottom, …)) set to a non-zero value to make the gradient horizontal (equivalent to linear-gradient(to right, …)) startcolor the end color, supports only opaque colors in the #rrggbb notation.
-ms-scroll-translation - Archive of obsolete content
this property's initial value is inherit on all elements, except the <html> element, where it
defaults to none.
... the
default css templates for windows apps using javascript, "ui-light.css" and "ui-dark.css", set this property to vertical-to-horizontal by
default on the <html> element.
Namespaces - Archive of obsolete content
you can declare the
default namespace for your e4x objects by placing the statement:
default xml namespace = "http://www.w3.org/1999/xhtml"; within the same scope as your e4x.
...
default xml namespace = "http://www.w3.org/1999/xhtml"; var a = <p>some text</p>;
default xml namespace = "http://www.mozilla.org/keymaster/gat...re.is.only.xul"; var b = <label>more text</label>; a.appendchild(b); gives <p xmlns="http://www.w3.org/1999/xhtml"> some text <label xmlns="http://www.mozilla.org/keymaster/gat...re.is.only.xul">more text</label> </p> name() using name() on an xml object returns a qname object (qualified name).
ECMAScript 2015 support in Mozilla - Archive of obsolete content
_proto__ has been standardized object.is() (firefox 22) object.setprototypeof() (firefox 31) object.assign() (firefox 34) object.getownpropertysymbols() (firefox 33) additions to the date object date.prototype is an ordinary object (firefox 41) generic date.prototype.tostring (firefox 41) date.prototype[@@toprimitive] (firefox 44) new promise object promise (firefox 24, enabled by
default in firefox 29) new proxy object proxy (firefox 18) preventextensions() trap (firefox 22) isextensible() trap (firefox 31) getprototypeof() and setprototypeof() traps (firefox 49) new reflect object reflect (firefox 42) additions to the regexp object regexp sticky (y) flag (firefox 38) regexp unicode (u) flag (firefox 46) generic regexp.prototype.tostring (firefox 39) regexp.p...
...1) let (js 1.7, firefox 2) (es2015 compliance bug 950547 implemented in firefox 51) destructuring assignment (js 1.7, firefox 2) (es2015 compliance bug 1055984) statements for...of (firefox 13) works in terms of .iterator() and .next() (firefox 17) use "@@iterator" property (firefox 27) use symbol.iterator property (firefox 36) functions rest parameters (firefox 15)
default parameters (firefox 15) parameters without
defaults after
default parameters (firefox 26) destructured parameters with
default value assignment (firefox 41) arrow functions (firefox 22) generator function (firefox 26) yield (firefox 26) yield* (firefox 27) arguments[@@iterator] (firefox 46) other features binary and octal numeric literals (firefox 25) template...
Object.prototype.__noSuchMethod__ - Archive of obsolete content
} id the name of the non-existent method that was called args an array of the arguments passed to the method description by
default, an attempt to call a method that doesn't exist on an object results in a typeerror being thrown.
... if this method cannot be called, either as if undefined by
default, if deleted, or if manually set to a non-function, the javascript engine will revert to throwing typeerrors.
XForms Output Element - Archive of obsolete content
representations the xforms output element can be represented by the following widgets for the specified data types (or types derived from these data types): text -
default representation for instance data of most types, especially static text (xhtml/xul).
... text displaying the data as text is the
default presentation.
Window: devicelight event - Archive of obsolete content
note: this event has been disabled by
default in firefox 62, behind the device.sensors.ambientlight.enabled preference (bug 1462308).
... bubbles no cancelable no interface sensorcallback target
defaultview (window) other properties property type description value read only double (float) the sensor data for ambient light in lux.
Describing microformats in JavaScript - Archive of obsolete content
value the property's
default value.
... the microformat is registered with the microformat api by calling microformats.add(), like this: microformats.add("adr", adr_definition); note: to be clear: since the adr microformat is included by
default in firefox 3 and later, you don't need to add it yourself if you wish to make use of it.
Player paddle and controls - Game development
to do that we can use the system's
default input (mouse or touch, depending on platform) and set the paddle position to where the input position is.
...to fix that we can set the
default position (if an input position is not yet defined) to be the middle of the screen.
Constructor - MDN Web Docs Glossary: Definitions of Web-related terms
syntax // this is a generic
default constructor class
default function
default() { } // this is an overloaded constructor class overloaded // with parameter arguments function overloaded(arg1, arg2, ...,argn){ } to call the constructor of the class in javascript, use a new operator to assign a new object reference to a variable.
... function
default() { } // a new reference of a
default object assigned to a // local variable
defaultreference var
defaultreference = new
default(); learn more general knowledge constructor on wikipedia technical reference the constructor in object oriented programming for javascript on mdn new operator in javascript on mdn ...
Microsoft Internet Explorer - MDN Web Docs Glossary: Definitions of Web-related terms
microsoft edge is currently the
default windows browser.
...internet explorer on wikipedia internet explorer versions on wikipedia learning about internet explorer http://windows.microsoft.com/en-us/internet-explorer/download-ie http://windows.microsoft.com/en-us/windows7/getting-started-with-internet-explorer-9 http://windows.microsoft.com/en-us/internet-explorer/internet-explorer-help http://windows.microsoft.com/en-us/internet-explorer/make-ie-
default-browser#ie=ie-11 technical reference http://windows.microsoft.com/en-us/internet-explorer/products/ie-8/system-requirements http://windows.microsoft.com/en-us/internet-explorer/products/ie-9/system-requirements http://support.microsoft.com/kb/969393 ...
Semantics - MDN Web Docs Glossary: Definitions of Web-related terms
semantics in html in html, for example, the <h1> element is a semantic element, which gives the text it wraps around the role (or meaning) of "a top level heading on your page." <h1>this is a top level heading</h1> by
default, most browser's user agent stylesheet will style an <h1> with a large font size to make it look like a heading (although you could style it to look like anything you wanted).
... html should be coded to represent the data that will be populated and not based on its
default presentation styling.
Mobile accessibility - Learn web development
to go back to the
default mode, enter the local context menu again by swiping up and right, select "
default", and then double-tap to activate.
... 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 CSS comprehension - Learn web development
the
default margin applied to the <h2> and <p> elements by the browser will interfere with our design, so write a rule that targets all these elements and sets their margin to 0.
... note: bear in mind that the second ruleset sets font-size: 10px; on the <html> element — this means that for any descendants of <html>, an em will be equal to 10px rather than 16px as it is by
default.
Organizing your CSS - Learn web development
you will typically have rules set up for: body p h1, h2, h3, h4, h5 ul and ol the table properties links in this section of the stylesheet we are providing
default styling for the type on the site, setting up a
default style for data tables and lists and so on.
...} after this section we could define a few utility classes, for example a class that removes the
default list style for lists we're going to display as flex items or in some other way.
Grids - Learn web development
by
default these display in normal flow so the boxes display one below the other.
... by
default, tracks created in the implicit grid are auto sized, which in general means that they are large enough to fit their content.
What is CSS? - Learn web development
what you are seeing is the browser's
default styles — very basic styles that the browser applies to html to make sure it will be basically readable even if no explicit styling is specified by the author of the page.
... for more on browser/
default styles, check out the following video: what is css for?
Web fonts - Learn web development
you can use the font stack to specify preferable fonts, followed by web-safe alternatives, followed by the
default system font, but this adds overhead in terms of testing to make sure that your designs look ok with each font, etc.
... now you can use these fonts in your font stacks, just like any web safe or
default system font.
How do I use GitHub Pages? - Learn web development
you can then collaborate on code projects, and the system is open-source by
default, meaning that anyone in the world can find your github code, use it, learn from it, and improve on it.
... go to the github pages section again, and you should see a line of the form "your site is ready to be published at https://xxxxxx." if you click on this url, you should go to a live version of your example, provided the home page is called index.html — it goes to this entry point by
default.
What are browser developer tools? - Learn web development
(an added bonus: this method straight-away highlights the code of the element you right-clicked.) the inspector: dom explorer and css editor the developer tools usually open by
default to the inspector, which looks something like the following screenshot.
... exploring the css editor by
default, the css editor displays the css rules applied to the currently selected element: these features are especially handy: the rules applied to the current element are shown in order of most-to-least-specific.
Sending forms through JavaScript - Learn web development
form.addeventlistener( "submit", function ( event ) { event.prevent
default(); senddata(); } ); } ); here's the live result: you can even get more involved with the process by using the form's elements property to get a list of all of the data elements in the form and manually manage them one at a time.
... const form = document.getelementbyid( "theform" ); // ...to take over the submit event form.addeventlistener( 'submit', function ( event ) { event.prevent
default(); senddata(); } ); } ); here's the live result: conclusion depending on the browser and the type of data you are dealing with, sending form data through javascript can be easy or difficult.
CSS basics - Learn web development
that happens because browsers apply
default styling to the <h1> element (among others).
...to eliminate the gap, we overwrite the browser's
default styling with the setting margin: 0;.
Add a hitmap on top of an image - Learn web development
<area> elements are empty elements, but do require four attributes: shape coords shape takes one of four values: circle, rect, poly, and
default.
... (a
default <area> occupies the entire image, minus any other hotspots you’ve defined.) the shape you choose determines the coordinate information you’ll need to provide in coords.
Images in HTML - Learn web development
th"\n width="200"\n height="171"\n title="a t-rex on display in the manchester university museum">'; 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(e){ if (e.keycode === 9) { e.prevent
default(); insertatcaret('\t'); } if (e.keycode === 27) { textarea.blur(); } }; function insertatcaret(text) { var scrollpos = textarea.scrolltop; var caretpos = textarea.selectionstart; var front = (textarea.value).substring(0, caretpos); var back = (textarea.value).substring(textarea.selectionend, textarea.value.length); textarea.value = front + text + back; caretpos = care...
...171">\n <figcaption>a t-rex on display in the manchester university museum</figcaption>\n</figure>'; 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(e){ if (e.keycode === 9) { e.prevent
default(); insertatcaret('\t'); } if (e.keycode === 27) { textarea.blur(); } }; function insertatcaret(text) { var scrollpos = textarea.scrolltop; var caretpos = textarea.selectionstart; var front = (textarea.value).substring(0, caretpos); var back = (textarea.value).substring(textarea.selectionend, textarea.value.length); textarea.value = front + text + back; caretpos = care...
Responsive images - Learn web development
you may have noticed that the last slot width has no media condition (this is the
default that is chosen when none of the media conditions are true).
...this provides a
default case that will apply when none of the media conditions return true (you could actually remove the second <source> element in this example), and a fallback for browsers that don't support the <picture> element.
Looping code - Learn web development
t = \'blast off!\';\n } else {\n para.textcontent = i;\n }\n\n output.appendchild(para);\n\n i--;\n}'; let solutionentry = jssolution; 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(e){ if (e.keycode === 9) { e.prevent
default(); insertatcaret('\t'); } if (e.keycode === 27) { textarea.blur(); } }; function insertatcaret(text) { const scrollpos = textarea.scrolltop; const caretpos = textarea.selectionstart; const front = (textarea.value).substring(0, caretpos); const back = (textarea.value).substring(textarea.selectionend, textarea.value.length); textarea.value = front + text + back; caretpo...
... \'.\';\nadmitted.textcontent = admitted.textcontent.slice(0,admitted.textcontent.length-2) + \'.\';'; let solutionentry = jssolution; 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(e){ if (e.keycode === 9) { e.prevent
default(); insertatcaret('\t'); } if (e.keycode === 27) { textarea.blur(); } }; function insertatcaret(text) { const scrollpos = textarea.scrolltop; const caretpos = textarea.selectionstart; const front = (textarea.value).substring(0, caretpos); const back = (textarea.value).substring(textarea.selectionend, textarea.value.length); textarea.value = front + text + back; caretpo...
Drawing graphics - Learn web development
canvases with no explicit width and height
default to 300 pixels wide by 150 pixels high.
... add the following to the previous example, again below the previous javascript lines: ctx.strokestyle = 'rgb(255, 255, 255)'; ctx.strokerect(25, 25, 175, 200); the
default width of strokes is 1 pixel; you can adjust the linewidth property value to change this (it takes a number representing the number of pixels wide the stroke is).
Arrays - Learn web development
emtext;\n list.appendchild(listitem);\n}\n\ntotalbox.textcontent = \'total: $\' + total.tofixed(2);'; let solutionentry = jssolution; 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(e){ if (e.keycode === 9) { e.prevent
default(); insertatcaret('\t'); } if (e.keycode === 27) { textarea.blur(); } }; function insertatcaret(text) { const scrollpos = textarea.scrolltop; const caretpos = textarea.selectionstart; const front = (textarea.value).substring(0, caretpos); const back = (textarea.value).substring(textarea.selectionend, textarea.value.length); textarea.value = front + text + back; caretp...
...ry.length >= 5) {\n myhistory.pop();\n }\n\n searchinput.value = \'\';\n searchinput.focus();\n }\n}'; let solutionentry = jssolution; 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(e){ if (e.keycode === 9) { e.prevent
default(); insertatcaret('\t'); } if (e.keycode === 27) { textarea.blur(); } }; function insertatcaret(text) { const scrollpos = textarea.scrolltop; const caretpos = textarea.selectionstart; const front = (textarea.value).substring(0, caretpos); const back = (textarea.value).substring(textarea.selectionend, textarea.value.length); textarea.value = front + text + back; caretpo...
Silly story generator - Learn web development
replaces the
default name "bob" in the story with a custom name, only if a custom name is entered into the "enter custom name" text field before the generate button is pressed.
... converts the
default us weight and temperature quantities and units in the story into uk equivalents if the uk radio button is checked before the generate button is pressed.
Inheritance in JavaScript - Learn web development
we have defined a new constructor, and it has a prototype property, which by
default just contains an object with a reference to the constructor function itself.
... the example below shows the two features in action: // check the
default value console.log(snape.subject) // returns "dark arts" // change the value snape.subject = "balloon animals" // sets _subject to "balloon animals" // check it again and see if it matches the new value console.log(snape.subject) // returns "balloon animals" note: you can find this example on github as es2015-getters-setters.html (see it live also).
Website security - Learn web development
while all that sounds very ominous, the good news is that if you're using a server-side web framework, it will almost certainly enable "by
default" robust and well-thought-out defense mechanisms against a number of the more common attacks.
...many web frameworks automatically sanitize user input from html forms by
default.
Ember Interactivity: Footer functionality, conditional rendering - Learn web development
enter the following terminal command to do so: ember generate component-class footer next, go and find the newly-created todomvc/app/components/footer.js file and update it to the following: import component from '@glimmer/component'; import { inject as service } from '@ember/service'; export
default class footercomponent extends component { @service('todo-data') todos; } now we need to go back to our todo-data.js file and add some functionality that will allow us to return the number of incomplete todos (useful for showing how many are left), and clear the completed todos out of the list (which is what the “clear completed” functionality needs).
... creating a todo class run the following command in your terminal: ember generate component-class todo now go to the newly-created todomvc/app/components/todo.js file and update the contents to look like so, to give the todo component access to the service: import component from '@glimmer/component'; import { inject as service } from '@ember/service'; export
default class todocomponent extends component { @service('todo-data') todos; } next, go back again to our todo-data.js service file and add the following action just below the previous ones, which will allow us to toggle a completion state for each todo: @action togglecompletion(todo) { todo.iscompleted = !todo.iscompleted; } updating the template to show completed state finally, we w...
Getting started with Svelte - Learn web development
top-level variables is the way svelte handles the component state, and they are reactive by
default.
...this file is the entry point for our app, and it initially looks like this: import app from './app.svelte'; const app = new app({ target: document.body, props: { name: 'world' } }); export
default app; main.js starts by importing the svelte component that we are going to use.
Working with Svelte stores - Learn web development
0.67 0 12.432 0zm8.309 20c-1.058 0-1.833-.652-1.093-3.524l1.214-5.092c.211-.814.246-1.141 0-1.141-.317 0-1.689.562-2.502 1.117l-.528-.88c2.572-2.186 5.531-3.467 6.801-3.467 1.057 0 1.233 1.273.705 3.23l-1.391 5.352c-.246.945-.141 1.271.106 1.271.317 0 1.357-.392 2.379-1.207l.6.814c12.098 19.02 9.365 20 8.309 20z"/></svg> <p>{ $alert }</p> </div> {/if} here we first create the prop ms with a
default value of 3000 (milliseconds).
... so, to implement a custom store that saves its content to web storage, we will need a writable store that: initially reads the value from web storage, and if it's not present initializes it with a
default value.
Handling common HTML and CSS problems - Learn web development
note: historically web developers used to use css files called resets, which removed all the
default browser styling applied to html, and then applied their own styles for everything over the top — this was done to make styling on a project more consistent, and reduce possible cross browser issues, especially for things like layout.
...the best equivalent we have in modern times is normalize.css, a neat bit of css that builds slightly on the
default browser styling to make things more consistent and fix some layout issues.
Deploying our app - Learn web development
we've not encountered branches at all, but the (terribly named) "master" branch is the
default place for our work and it's what git starts on.
... it's also the
default branch that netlify will look for, which is convenient.
Mozilla accessibility architecture
the nsiaccessible getaccblah() traversal methods mentioned above all have
default implementations in nsaccessible.
... these
default implementations use a class called nsaccessibletreewalker to do the real work.
Embedding API for Accessibility
baltic, el, tr, he, ar, th, ja, zh-cn or zh-tw */ setintpref("font.size.fixed.x-western", newfontsize); setintpref("font.size.variable.x-western", newfontsize); /* for other i18n charsets, change the name as explained above for font face*/ setcharpref("font.
default","serif"); /* or "sans-serif" */ setintpref("browser.use_document_fonts", whichfonts); /* whichfonts: 0=no, 1=yes */ moz 0.8 fonts from operating system?
...turn window.open off for particular sites: user_pref("capability.policy.popupsites.sites", "http://www.annoyingsite1.com http://www.popupsite2.com"); user_pref("capability.policy.popupsites.windowinternal.open","noaccess"); // or turn it off everywhere: user_pref("capability.policy.
default.windowinternal.open","noaccess"); // override popping up new windows on target=anything user_pref("browser.block.target_new_window", true); // override popup windows at beginning of new page load (blocks most popup advertisements) user_pref("dom.disable_ope...
Mozilla's Section 508 Compliance
the
default theme, classic, uses the operating system's font and color contrast settings.
...the
default theme, classic, uses gnome's font and color contrast settings.
Benchmarking
rust optimization level local optimized builds are compiled with rust optimization level 1 by
default, unlike nightly builds, which use rust optimization level 2.
... another option that is on by
default in non-release builds is the preference javascript.options.asyncstack, which provides better debugging information to developers.
Debugging JavaScript
unch firefox, by launching firefox from the command line and passing --jsconsole as a flag: /path/to/firefox --jsconsole log to the browser console using the standard console api after importing console.jsm: let console = (cu.import("resource://gre/modules/console.jsm", {})).console; console.log("hello from firefox code"); error console this is obsolete and is no longer enabled in firefox by
default.
...in about:config (add new pref, it doesn't exist per
default).
Creating Custom Events That Can Pass Data
you need to make the following two modifications: around line 1000: ns_define_classinfo_data({truncated name}, nsdomgenericsh, dom_
default_scriptable_flags) around line 2900: dom_classinfo_map_begin({truncated name}, nsidom{truncatedname}) dom_classinfo_map_entry(nsidom{truncated name}) dom_classinfo_event_map_entries dom_classinfo_map_end remember, {truncated name} is the same as above.
... prbool
defaultactionenabledwin; prbool
defaultactionenableddoc; nscomptr<nsiprivatedomevent> privevt(do_queryinterface(event)); privevt->settrusted(pr_true); //make the event trusted twindow->dispatchevent(event, &
defaultactionenabledwin); //dispatch it (i.e.
Gecko Logging
by
default all logging output is disabled.
... by
default logging output goes to stderr.
SVG Guidelines
you can also use svg grouping to avoid duplicating those attributes avoid introducing variants of the same file (color/style variants), and use sprites instead (with class names)
default style values there's usually no need to set the
default style value unless you're overriding a style.
... here are some commonly seen examples: style="display: none;" on <defs> elements (a <defs> element is hidden by
default) type="text/css" on <style> elements stroke: none or stroke-width: 0 svg grouping style grouping group similarly styled shapes under one <g> tag; this avoids having to set the same class/styles on many shapes.
Multiple Firefox profiles
here is a complete example terminal command from steps 2-3: /applications/firefox.app/contents/macos/firefox -profile /users/suzie/library/application\ support/firefox/profiles/r99d1z7c.
default if the profile manager window does not open, firefox may have been running in the background, even though it was not visible.
...however, all three will attempt to use the same profile by
default.
Limitations of frame scripts
nsiaboutmodule by
default, custom about: pages registered using nsiaboutmodule are loaded in the chrome process.
... you can change this
default in the code you use to register the about: uri.
Limitations of frame scripts
nsiaboutmodule by
default, custom about: pages registered using nsiaboutmodule are loaded in the chrome process.
...by
default, about: pages (except for a small whitelist) are loaded in the chrome process when browsed to from the awesomebar.
Tracking Protection
for example, you should not use google analytics in the following way: <a href="http://www.example.com" onclick="tracklink('http://www.example.com', event);"> visit example.com </a> <script> function tracklink(url,event) { event.prevent
default(); ga('send', 'event', 'outbound', 'click', url, { 'transport': 'beacon', 'hitcallback': function() { document.location = url; } }); } </script> instead, you should account for the case when google analytics is missing by checking to see if the ga object has initialized: <a href="http://www.example.com" onclick="tracklink('http://www.example.com', event);"> visit ...
...example.com </a> <script> function tracklink(url,event) { event.prevent
default(); if (window.ga && ga.loaded) { ga('send', 'event', 'outbound', 'click', url, { 'transport': 'beacon', 'hitcallback': function() { document.location = url; } }); } else { document.location = url; } } </script> more information about this technique is available at google analytics, privacy, and event tracking.
mozbrowsershowmodalprompt
general info specification non standard interface customevent bubbles yes cancelable yes target <iframe>
default action none properties property type description target read only eventtarget the browser iframe type read only domstring the type of event.
...note that if the embedder calls prevent
default() on this event, the iframe is blocked until unblock() is called.
overflow-clip-box-block
/* keyword values */ overflow-clip-box-block: padding-box; overflow-clip-box-block: content-box; /* global values */ overflow-clip-box-block: inherited; overflow-clip-box-block: initial; overflow-clip-box-block: unset; note: on gecko, by
default, padding-box is used everywhere, but <input type="text"> and similar use the value content-box.
... note that this property is activated by
default only in the ua stylesheet and chrome contexts.
overflow-clip-box-inline
/* keyword values */ overflow-clip-box-inline: padding-box; overflow-clip-box-inline: content-box; /* global values */ overflow-clip-box-inline: inherited; overflow-clip-box-inline: initial; overflow-clip-box-inline: unset; note: on gecko, by
default, padding-box is used everywhere, but <input type="text"> and similar use the value content-box.
... note that this property is activated by
default only in the ua stylesheet and chrome contexts.
overflow-clip-box
/* keyword values */ overflow-clip-box: padding-box; overflow-clip-box: content-box; /* two values */ overflow-clip-box: padding-box content-box; overflow-clip-box: content-box content-box; /* global values */ overflow-clip-box: inherit; overflow-clip-box: initial; overflow-clip-box: unset; note: on gecko, by
default, padding-box is used everywhere, but <input type="text"> and similar use the value content-box.
...note that this property is activated by
default only in the ua stylesheet and chrome contexts.
MozScrolledAreaChanged
specification mozilla specific interface uievent bubbles yes cancelable yes target
defaultview, document
default action none properties property type description targetread only eventtarget the event target (the topmost target in the dom tree).
... viewread only windowproxy document.
defaultview (window of the document) detailread only long (float) 0.
Extending a Protocol
private: ~echochild() =
default; bool mactoralive; }; } // end of namespace dom } // end of namespace mozilla and add the echochild.h to dom/ipc/moz.build, as part of the exports.mozilla.dom array.
... mozilla::ipc::ipcresult recvecho(const nscstring& astring, echoparent::echoresolver&& aresolver); mozilla::ipc::ipcresult recv__delete__() override; void actordestroy(actordestroyreason awhy) override; private: ~echoparent() =
default; bool mactoralive; }; } // end of namespace dom } // end of namespace mozilla #endif now, and add the echoparent.h to dom/ipc/moz.build, as part of the exports.mozilla.dom array.
IPDL Tutorial
because protocol messages are represented as c++ methods, it's easy to forget that they are in fact asynchronous messages: by
default the c++ method will return immediately, before the message has been delivered.
...the difference here is that the semantic specifier here is optional; the
default semantics is asynchronous.
Assert.jsm
let assert = new assert(reporterfunc); the new assert instance, assert, uses reporterfunc to report assertion results or throws an assertionerror when an assertion fails, as
default behavior.
... this report method only throws errors on assertion failures, as per spec, but consumers of this module (think: xpcshell-test, mochitest) may want to override this
default implementation.
Downloads.jsm
if omitted,
defaults to "copy".
...by
default it is not enabled.
FileUtils.jsm
pr_rdonly parameter to pr_open mode_wronly 0x02 corresponds to the pr_wronly parameter to pr_open mode_create 0x08 corresponds to the pr_create_file parameter to pr_open mode_append 0x10 corresponds to the pr_append parameter to pr_open mode_truncate 0x20 corresponds to the pr_truncate parameter to pr_open perms_file 0644
default permissions when creating files.
... perms_directory 0755
default permissions when creating directories methods getfile() gets a file at the specified hierarchy under a nsidirectoryservice key.
NetUtil.jsm
defaults to utf-8 if not provided.
...
defaults to utf-8 if not provided.
Index
for instance, in php the
default keyword for regular messages is gettext() and _().
... for messages with plural support, the
default keyword is ngettext().
Localization and Plurals
this is because someone installing the extension on a different locale will be using the strings provided by your
default extension locale.
...(you can use destructured assignment in javascript 1.7 to keep things clean.) the returned functions act just like pluralform.get() and pluralform.numforms(), except for the specified plural rule instead of the
default plural rule.
Localizing with Mercurial
your config file should have the following settings: [ui] username = your real name <user@example.com> merge = internal:merge [
defaults] commit = -v [diff] git = 1 showfunc = 1 unified = 8 to configure hg, follow these steps: create a new file in your favorite text editor.
... to push to mozilla-hosted repositories, you have to have committer access, and you must edit the file (your-local-hg-root aka the directory you pulled your locale into)/.hg/hgrc (note, this is not your ~/.hgrc) to add these lines (replacing ab-cd with your locale code): [paths]
default = https://hg.mozilla.org/l10n-central/ab-cd/
default-push = ssh://hg.mozilla.org/l10n-central/ab-cd/ you’ll also need to tell ssh which account to use for your pushes, too, by editing ~/.ssh/config and adding these lines, where user@host.domain is your account: host hg.mozilla.org user user@host.domain now you can push your work to the repository (and check the result on the dashboard...
Release phase
your .hg/hgrc file shoud look like this (add the emphasized line): [paths]
default = hg.mozilla.org/releases/l10n-central/x-testing
default-push = ssh://hg.mozilla.org/releases/l10n-central/x-testing if you haven't already cloned the remote repository, enter this command: hg clone ssh://hg.mozilla.org/releases/l10n-central/x-testing mercurial will let you know that it's cloning the repository: destination directory: x-testing requesting all changes adding changesets adding...
... manifests adding file changes added 4 changesets with 242 changes to 239 files updating to branch
default 239 files updated, 0 files merged, 0 files removed, 0 files unresolved the
default push url is the same as the
default pull url (i.e., ssh://hg.mozilla.org/releases/l10n-central/x-testing).
Uplifting a localization from Central to Aurora
let's pretend it's at releases/l10n-mozilla-aurora/ab-cd here's how we do it: # set up a new local clone of your central repo hg clone l10n-central/ab-cd workrepo cd workrepo # pull in the changesets you have on aurora hg pull -r
default ../releases/l10n/mozilla-aurora/ab-cd now, there are two routes forward: 1) things are pretty silent.
...in the workrepo directory, do #verify that we didn't forget changesets hg inc ../l10n-central/ab-cd comparing with ../l10n-central/ab-cd searching for changes no changes found hg inc -r
default ../releases/l10n/mozilla-aurora/ab-cd comparing with ../releases/l10n/mozilla-aurora/ab-cd searching for changes no changes found # push to central hg push ../l10n-central/ab-cd # push to aurora hg push ../releases/l10n/mozilla-aurora/ab-cd # push l10n-central upstream cd ../l10n-central/ab-cd hg push # push aurora upstream cd ../../releases/l10n/mozilla-aurora/ab-cd hg ...
Mozilla Development Strategies
you can still land (assuming you get reviews) if the code isn't on by
default.
... you can also have code that checked in, but controlled with a pref and off by
default.
Mozilla Quirks Mode Behavior
should look into tablequirkcolorrule, re-describe, and figure out when it changed.] obsolete since gecko 37 the empty-cells property
defaulted to hide in quirks mode but show (according to css2.1) in standards mode (see bug 33244) (though the correct fix would be to specify it on the html table element in quirk.css).
... this quirk has been removed in firefox 37 and empty-cells also
defaults to show in quirks mode (bug 1020400).
Reporting a Performance Problem
using the profiler when enabled, the profiler toolbar button is not recording by
default.
...if you choose custom settings (and then clicking edit settings) for the profiler, you can adjust the size of the buffer (presently
defaults to 90 mb) and the time interval between data collection (presently
defaults to 1 ms).
powermetrics
by
default, the coalitions/processes are sorted by a composite value computed from several factors, though this can be changed via command-line options.
... the
default sample period is 30,000 milliseconds (30 seconds), but that can be changed with the -i option.
accessibility.tabfocus
type:integer
default value: 7 (windows and linux); 2 (mac os x) exists by
default: no application support:gecko 1.7 status: active introduction: bugs: bug 140612 values 1 give focus only to text fields (
default on mac osx) 2 give focus to all form elements except text fields.
...the value 7 (give focus to all elements) is the
default on windows and linux.
browser.altClickSave
type:boolean
default value: false exists by
default: yes application support:firefox 13.0 status: active; last updated 2012-03-19 introduction: pushed to nightly on 2012-03-02 bugs: bug 713052 values true clicking a link while holding the alt key starts the download of that link.
... false (
default) no action triggered (see bug 736985).
browser.pagethumbnails.capturing_disabled
type:boolean
default value:true exists by
default: no application support: firefox 14.0 status: active; last updated 2012-09-17 introduction: pushed to nightly on 2012-04-13 bugs: bug 726347 values false the application creates screenshots of visited web pages.
... true (
default) the application doesn't create screenshots of visited web pages.
browser.search.context.loadInBackground
type:boolean
default value:false exists by
default: yes application support: firefox 13.0 status: active; last updated 2012-02-17 introduction: pushed to nightly on 2012-02-15 bugs: bug 727131 values true new tab with search results will be opened in the background, focus stays on the current tab.
... false (
default) new tab with search results will be opened in the foreground.
nglayout.debug.disable xul fastload
type:boolean
default value: false (true in debug builds) exists by
default: yes application support:?
... bugs: values false (
default) xul fastload is used.
ui.SpellCheckerUnderlineStyle
type:integer
default value:5 exists by
default: no application support: gecko 1.9.2 (firefox 3.6 / thunderbird 3.1 / fennec 1.0) status: active; last updated 2012-02-22 introduction: pushed to nightly on 2009-04-03 bugs: bug 338209 values the values are defined in nsstyleconsts.h.
... 0 no underlining 1 dotted 2 dashed 3 single solid line 4 two solid lines 5 (
default) wavy ...
Leak And Bloat Tests
user_pref("mail.account.account1.server", "server1"); user_pref("mail.account.account2.identities", "id1"); user_pref("mail.account.account2.server", "server2"); user_pref("mail.accountmanager.accounts", "account1,account2"); user_pref("mail.accountmanager.
defaultaccount", "account2"); user_pref("mail.accountmanager.localfoldersserver", "server1"); user_pref("mail.identity.id1.fullname", "tinderbox"); user_pref("mail.identity.id1.smtpserver", "smtp1"); user_pref("mail.identity.id1.useremail", "tinderbox@invalid.com"); user_pref("mail.identity.id1.valid", true); user_pref("mail.root.none-rel", "[profd]mail"); user_pref("mail.root.pop3-rel", "[profd]mail"); ...
...irectory-rel", "[profd]mail/tinderbox"); user_pref("mail.server.server2.download_on_biff", true); user_pref("mail.server.server2.hostname", "tinderbox"); user_pref("mail.server.server2.login_at_startup", false); user_pref("mail.server.server2.name", "tinderbox@invalid.com"); user_pref("mail.server.server2.type", "pop3"); user_pref("mail.server.server2.username", "tinderbox"); user_pref("mail.smtp.
defaultserver", "smtp1"); user_pref("mail.smtpserver.smtp1.hostname", "tinderbox"); user_pref("mail.smtpserver.smtp1.username", "tinderbox"); user_pref("mail.smtpservers", "smtp1"); user_pref("mail.startup.enabledmailcheckonce", true); user_pref("mailnews.start_page_override.mstone", "1.9pre"); user_pref("mail.shell.check
defaultclient", false); // ensure os x and outlook/oe books are disabled user_pref("...
PRLinger
description by
default, pr_close returns immediately, but if there are any data remaining in the socket send buffer, the system attempts to deliver the data to the peer.
... the pr_sockopt_linger socket option, with a value represented by a structure of type prlinger, makes it possible to change this
default as follows: if polarity is set to pr_false, pr_close returns immediately, but if there are any data remaining in the socket send buffer, the runtime attempts to deliver the data to the peer.
PRNetAddr
by
default, nspr is built to support only ipv4, but it's possible to build the nspr library to support both ipv4 and ipv6.
... therefore, the family field can be pr_af_inet only for
default nspr, and can also be pr_af_inet6 if the binary supports ipv6.
HTTP delegation
look for function sec_register
defaulthttpclient and all functions having names that start with sec_http.
...finally register your http client implementation with a call to sec_register
defaulthttpclient.
HTTP delegation
look for function sec_register
defaulthttpclient and all functions having names that start with sec_http.
...finally register your http client implementation with a call to sec_register
defaulthttpclient.
NSS 3.14.1 release notes
applications which use multiple pkcs#11 modules, which do not indicate which tokens should be used by
default for particular algorithms, and which do make use of cipherorder may now find that cryptographic operations occur on a different pkcs#11 token.
... bug 802429 - the nss softoken is now the
default token for sha-256 and sha-512.
NSS 3.15.4 release notes
bug 919877 - (cve-2013-1740) when false start is enabled, libssl will sometimes return unencrypted, unauthenticated data from pr_recv new in nss 3.15.4 new functionality implemented ocsp querying using the http get method, which is the new
default, and will fall back to the http post method.
... when building on windows, os_target now
defaults to win95.
NSS 3.17.1 release notes
off by
default.
... notable changes in nss 3.17.1 signature algorithms now use sha-256 instead of sha-1 by
default.
NSS 3.17 release notes
the ssl_reuse_server_ecdhe_key option
defaults to pr_true, which means the server's ephemeral ecdh key is reused for multiple handshakes.
...by
default the dynamic c runtime library is used.
NSS 3.24 release notes
these checks have been disabled by
default, as they can cause a performance regression.
... disable (by
default) nss support in optimized builds for logging ssl/tls key material to a logfile if the sslkeylogfile environment variable is set.
NSS 3.31 release notes
previously, ssl_versionrangeset and ssl_versionrangeset
default returned a failure if the requested version range wasn't fully allowed by the systemwide crypto policy.
...an application may call ssl_versionrangeget and ssl_versionrangeget
default to query the tls version range that was effectively activated.
NSS 3.47 release notes
upcoming changes to
default tls configuration the next nss team plans to make two changes to the
default tls configuration in nss 3.48, which will be released in early december: tls 1.3 will be the
default maximum tls version.
... tls extended master secret will be enabled by
default, where possible.
NSS 3.49 release notes
notable changes in nss 3.49 the legacy dbm database, libnssdbm, is no longer built by
default when using gyp builds.
... bug 1590001 - additional hrr tests (cve-2019-17023) bug 1600144 - treat clienthello with message_seq of 1 as a second clienthello bug 1603027 - test that esni is regenerated after helloretryrequest bug 1593167 - intermittent mis-reporting potential security risk sec_error_unknown_issuer bug 1535787 - fix automation/release/nss-release-helper.py on macos bug 1594933 - disable building dbm by
default bug 1562548 - improve gcm perfomance on aarch32 this bugzilla query returns all the bugs fixed in nss 3.49: https://bugzilla.mozilla.org/buglist.cgi?resolution=fixed&classification=components&query_format=advanced&product=nss&target_milestone=3.49 compatibility nss 3.49 shared libraries are backward compatible with all older nss 3.x shared libraries.
Notes on TLS - SSL 3.0 Intolerant Servers
netscape 6.1 preview release 1, or mozilla 0.9.1 and earlier these versions shipped with the tls option turned on as the
default but with no way to deal with the problem servers.
... firefox 2 and later starting with firefox 2, support for ssl 2.0 has been disabled by
default; unless it is expressly re-enabled by the user using about:config.
NSS Key Functions
seckey_get
defaultkeydb seckey_destroyprivatekey seckey_get
defaultkeydb returns a handle to the
default key database opened by nss_init.
... syntax include <key.h> include <keyt.h> seckeykeydbhandle *seckey_get
defaultkeydb(void); returns the function returns a handle of type seckeykeydbhandle.
sslkey.html
seckey_get
defaultkeydb seckey_destroyprivatekey seckey_get
defaultkeydb returns a handle to the
default key database opened by nss_init.
... syntax #include <key.h> #include <keyt.h> seckeykeydbhandle *seckey_get
defaultkeydb(void); returns the function returns a handle of type seckeykeydbhandle.
SSL functions
d later ssl_authcertificatehook mxr 3.2 and later ssl_badcerthook mxr 3.2 and later ssl_certdbhandleset mxr 3.2 and later ssl_canbypass mxr 3.11.7 and later ssl_cipherpolicyget mxr 3.2 and later ssl_cipherpolicyset mxr 3.2 and later ssl_cipherprefget mxr 3.2 and later ssl_cipherprefget
default mxr 3.2 and later ssl_cipherprefset mxr 3.2 and later ssl_cipherprefset
default mxr 3.2 and later ssl_clearsessioncache mxr 3.2 and later ssl_configmpserversidcache mxr 3.2 and later ssl_configsecureserver mxr 3.2 and later ssl_configserversessionidcache mxr 3.2 and later ssl_datapending mxr...
...nd later ssl_getstatistics mxr 3.2 and later ssl_handshakecallback mxr 3.2 and later ssl_importfd mxr 3.2 and later ssl_inheritmpserversidcache mxr 3.2 and later ssl_invalidatesession mxr 3.2 and later ssl_localcertificate mxr 3.4 and later ssl_optionget mxr 3.2 and later ssl_optionget
default mxr 3.2 and later ssl_optionset mxr 3.2 and later ssl_optionset
default mxr 3.2 and later ssl_peercertificate mxr 3.2 and later ssl_preencryptedfiletostream mxr 3.2 and later ssl_preencryptedstreamtofile mxr 3.2 and later ssl_rehandshake mxr 3.2 and later ssl_rehandshakewithtimeout mxr 3.
Multithreading in Necko
the internal i/o interfaces
default to proxying all callbacks to the main thread.
...the
default implementation does not spawn a worker thread, and instead simply calls pr_getipnodebyname (essentially equivalent to gethostbyname).
Rhino shell
readfile(path [, charactercoding]) read given file and convert its bytes to a string using the specified character coding or
default character coding if explicit coding argument is not given.
... readurl(url [, charactercoding]) open an input connection to the given string url, read all its bytes and convert them to a string using the specified character coding or
default character coding if explicit coding argument is not given.
Exact Stack Rooting
instead, spidermonkey has a convenient suite of c++ raii classes to do this for you, called js::rootedt: rootedstring str1(cx, js_valuetostring(cx, val)); rootedstring str2(rt, js_valuetostring(cx, val)); note 1: c++ insists that an initializing assignment (e.g., the
default constructor followed by operator=) must have a copy constructor available, even if it is not used.
... caveats exact rooting transition period exact stack rooting is not currently enabled by
default: we are still using conservative scanning.
Self-hosted builtins in SpiderMonkey
self-hosted functions by
default are not constructors and do not have a prototype property, so that they meet the requirements for standard built-in functions as described in the ecmascript language specification 5.1, clause 15.
... debugging self-hosted code self-hosted code by
default is hidden from client javascript code; in particular, self-hosted frames will be filtered out of the stack traces of exceptions.
JSAPI User Guide
by
default, the javascript engine performs garbage collection when it has no other choice except to grow the process.
... the prototype * passed in is null, so the
default object prototype will be used.
JSNewEnumerateOp
this callback overrides a portion of spidermonkey's
default [[enumerate]] internal method.
...this callback overrides a portion of spidermonkey's
default [[enumerate]] internal method.
JSPropertyOp
jsclass.getproperty is the
default getter for new properties.
... jsstrictpropertyop jsclass.setproperty is the
default setter for new properties.
JS_ConstructObject
if either is null, the engine tries to find reasonable
defaults.
... for details on how we find the appropriate constructor and
default prototype, see js_newobject: choosing a
default prototype.
JS_GetSecurityCallbacks
if callbacks is null, it sets callbacks to
default value.
...if the callbacks are
default value, it returns null see also mxr id search for js_getsecuritycallbacks mxr id search for js_setsecuritycallbacks jsprincipals jscspevalchecker jssubsumesop bug 957688 - removed checkobjectaccess bug 924905 - added subsumes bug 728250 - added -js_getsecuritycallbacks and js_setsecuritycallbacks, removed js_setcontextsecuritycallbacks, js_getruntimesecuritycallbacks, and js_setruntimesecuritycallbacks ...
JS_InitClass
the jsapi provides reasonable
default behavior for all of these; ordinarily you don't want to overload any of them.
... note: by
default js_initclass creates a prototype object but does not invoke the constructor (jsclass.construct) on it.
SpiderMonkey 1.8
js_newobjectwithgivenproto is exactly like js_newobject except that it doesn't use a
default prototype object if you pass null.
... it was possible to configure spidermonkey 1.7 to treat c/c++ char strings as utf-8 by compiling with a non-
default compiler option.
Thread Sanitizer
"$llvm_root/build/bin/clang" \ cxx="$llvm_root/build/bin/clang++" \ cflags="-fsanitize=thread -fpic -pie" \ cxxflags="-fsanitize=thread -fpic -pie" \ ldflags="-fsanitize=thread -fpic -pie" \ ../configure --disable-debug --enable-optimize="-o2 -gline-tables-only" --enable-llvm-hacks --disable-jemalloc make -j 8 fi using llvm symbolizer for faster/better traces by
default, tsan traces are symbolized because otherwise, the runtime suppression list wouldn't work.
... the
default way of symbolizing the traces is much slower than using llvm-symbolizer for that purpose: llvm ships with a symbolizer binary that tsan will readily use to immediately output symbolized traces much faster.
Gecko object attributes
if not specified, the
default should be considered "additions text", which indicates that newly created objects and changes to text and text equivalents should be considered relevant, and that the hiding or removal of items is not.
...when this is not specified, the
default is string, unless the value interface is exposed, which indicates the type is numeric.
Places Expiration
default is 180 seconds.
...
default value is calculated on startup and put into the places.history.expiration.transient_current_max_pages preference.
Using the Places annotation service
it is important that you use these functions and not make up your own uris, because these functions will efficiently
default to the
default page favicon when it does not exist.
... valid values for expiration are: expire_with_history :
default.
Using the Places history service
nsinavhistoryservice.getnewquery: returns a new query object initialized to the
default values.
... nsinavhistoryservice.getnewqueryoptions: returns a new query options object initialized to the
default values.
Using the Places livemark service
if no information was provided by the server, the
default expiration time is 1 hour.
... users can modify the
default expiration time via the <tt>browser.bookmarks.livemark_refresh_seconds</tt> preference, which indicates the expiration time in seconds.
How to build an XPCOM component in JavaScript
if not // provided, the
default factory is used, which returns // |(new mycomponent()).queryinterface(iid)| in its createinstance().
... category: "some-category", // optional,
defaults to the object's classdescription entry: "entry name", // optional,
defaults to the object's contractid (unless 'service' is specified) value: "...", // optional,
defaults to false.
Component Internals
a set of
default libraries stored in this components directory makes up a typical gecko installation, providing functionality that consists of networking, layout, composition, a cross-platform user interface, and others.
...regxpcom registers your component in the
default component registry.
Components.utils.reportError
function mydump(amessage) { var consoleservice = components.classes["@mozilla.org/consoleservice;1"] .getservice(components.interfaces.nsiconsoleservice); consoleservice.logstringmessage("my component: " + amessage); } firefox 3: the error console will not display chrome errors by
default.
... firefox 4: the preference 'javascript.options.showinconsole' is set to true by
default in this version.
Components.utils.unwaiveXrays
for example, if privileged code accesses a dom object belonging to web content, it will by
default see it using xray vision, meaning that among other things expando properties added to the object by content are not visible.
...example suppose a page script adds an expando to its global window: // page script foo = "i'm an expando"; by
default, chrome code won't see foo, because it sees the content window with xray vision, but the chrome code can waive xray protection.
Components.utils.waiveXrays
when privileged javascript in gecko accesses objects belonging to less-privileged code (such as untrusted web content), it does so, by
default, with "xray vision": a mechanism that filters out certain changes to the objects that could cause them to behave in unexpected ways.
...example suppose a page script adds an expando to its global window: // page script foo = "i'm an expando"; by
default, chrome code won't see foo, because it sees the content window with xray vision, but the chrome code can waive xray protection: // chrome code // contentwindow is an xray var isxray = components.utils.isxraywrapper(gbrowser.contentwindow); // true // expandos are not visible in xrays var foo = gbrowser.contentwindow.foo; // undefined // you can waive xray visio...
nsIRegistry
try { st.first(); do { var data = st.currentitem(); if( data instanceof ci.nsiregistrynode ) print("nsiregistrynode: " + data.nameutf8 + " (" + data.key + ")"); st.next(); } while( components.lastresult == 0 ); } catch(e) {} now, the output is something like: profiles (344) profiles/
default (530) profiles/foo (1046) profiles/bar (1518) the number inside the parenthesis is the "key." you can use this key with the rest of the nsiregistry api (see mxr).
...js> rs.getstringutf8(530, "directory") // 530: key corresponding with profiles/
default the output is something like: /home/lion/.mozilla/
default/awp83kud.slt boo-yah!
NS ConvertASCIItoUTF16 external
harat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim
defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral lowercaseequalsliteral find rfind findchar rfindchar appendint tointeger base classes nsstring_external data members no public members.
... trim void trim(const char*, prbool, prbool) - source parameters char* aset prbool aleading prbool atrailing
defaultcomparator print32
defaultcomparator(const prunichar*, const prunichar*, pruint32) - source parameters prunichar* a prunichar* b pruint32 length compare print32 compare(const prunichar*, print32 (*)(const prunichar*, const prunichar*, pruint32)) const - source parameters prunichar* other print32 (*)(prunicha...
NS ConvertUTF16toUTF8 external
harat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim
defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar rfindchar appendint tointeger base classes nscstring_external data members no public members.
... trim void trim(const char*, prbool, prbool) - source parameters char* aset prbool aleading prbool atrailing
defaultcomparator print32
defaultcomparator(const char*, const char*, pruint32) - source parameters char* a char* b pruint32 length compare print32 compare(const char*, print32 (*)(const char*, const char*, pruint32)) const - source parameters char* other print32 (*)(char*, char*, pruint32) c print...
NS ConvertUTF8toUTF16 external
harat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim
defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral lowercaseequalsliteral find rfind findchar rfindchar appendint tointeger base classes nsstring_external data members no public members.
... trim void trim(const char*, prbool, prbool) - source parameters char* aset prbool aleading prbool atrailing
defaultcomparator print32
defaultcomparator(const prunichar*, const prunichar*, pruint32) - source parameters prunichar* a prunichar* b pruint32 length compare print32 compare(const prunichar*, print32 (*)(const prunichar*, const prunichar*, pruint32)) const - source parameters prunichar* other print32 (*)(prunicha...
NS LossyConvertUTF16toASCII external
harat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim
defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar rfindchar appendint tointeger base classes nscstring_external data members no public members.
... trim void trim(const char*, prbool, prbool) - source parameters char* aset prbool aleading prbool atrailing
defaultcomparator print32
defaultcomparator(const char*, const char*, pruint32) - source parameters char* a char* b pruint32 length compare print32 compare(const char*, print32 (*)(const char*, const char*, pruint32)) const - source parameters char* other print32 (*)(char*, char*, pruint32) c print...
PromiseFlatCString (External)
harat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim
defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar rfindchar appendint tointeger base classes nscstringcontainer data members no public members.
... trim void trim(const char*, prbool, prbool) - source parameters char* aset prbool aleading prbool atrailing
defaultcomparator print32
defaultcomparator(const char*, const char*, pruint32) - source parameters char* a char* b pruint32 length compare print32 compare(const char*, print32 (*)(const char*, const char*, pruint32)) const - source parameters char* other print32 (*)(char*, char*, pruint32) c print...
PromiseFlatString (External)
harat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim
defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral lowercaseequalsliteral find rfind findchar rfindchar appendint tointeger base classes nsstringcontainer data members no public members.
... trim void trim(const char*, prbool, prbool) - source parameters char* aset prbool aleading prbool atrailing
defaultcomparator print32
defaultcomparator(const prunichar*, const prunichar*, pruint32) - source parameters prunichar* a prunichar* b pruint32 length compare print32 compare(const prunichar*, print32 (*)(const prunichar*, const prunichar*, pruint32)) const - source parameters prunichar* other print32 (*)(prunicha...
nsACString (External)
ator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral operator= replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim
defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar rfindchar appendint tointeger data members no public members.
... trim void trim(const char*, prbool, prbool) - source parameters char* aset prbool aleading prbool atrailing
defaultcomparator print32
defaultcomparator(const char*, const char*, pruint32) - source parameters char* a char* b pruint32 length compare print32 compare(const char*, print32 (*)(const char*, const char*, pruint32)) const - source parameters char* other print32 (*)(char*, char*, pruint32) c print...
nsAString (External)
la.org/en/nsliteralstring_(external)" shape="rect" title="nsliteralstring_(external)"> </map> method overview beginreading endreading charat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral operator= replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim
defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral lowercaseequalsliteral find rfind findchar rfindchar appendint tointeger data members no public members.
... trim void trim(const char*, prbool, prbool) - source parameters char* aset prbool aleading prbool atrailing
defaultcomparator print32
defaultcomparator(const prunichar*, const prunichar*, pruint32) - source parameters prunichar* a prunichar* b pruint32 length compare print32 compare(const prunichar*, print32 (*)(const prunichar*, const prunichar*, pruint32)) const - source parameters prunichar* other print32 (*)(prunichar*, prunichar*, pruint32) c print32 compare(const nsastring&, print32 (*)(cons...
nsAutoString (External)
harat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim
defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral lowercaseequalsliteral find rfind findchar rfindchar appendint tointeger base classes nsstringcontainer data members no public members.
... trim void trim(const char*, prbool, prbool) - source parameters char* aset prbool aleading prbool atrailing
defaultcomparator print32
defaultcomparator(const prunichar*, const prunichar*, pruint32) - source parameters prunichar* a prunichar* b pruint32 length compare print32 compare(const prunichar*, print32 (*)(const prunichar*, const prunichar*, pruint32)) const - source parameters prunichar* other print32 (*)(prunicha...
nsCAutoString (External)
harat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim
defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar rfindchar appendint tointeger base classes nscstringcontainer data members no public members.
... trim void trim(const char*, prbool, prbool) - source parameters char* aset prbool aleading prbool atrailing
defaultcomparator print32
defaultcomparator(const char*, const char*, pruint32) - source parameters char* a char* b pruint32 length compare print32 compare(const char*, print32 (*)(const char*, const char*, pruint32)) const - source parameters char* other print32 (*)(char*, char*, pruint32) c print...
nsCStringContainer (External)
ator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral operator= replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim
defaultcomparator compare(const char*, print32 (*) compare(const nsacstring&, print32 (*) equals(const char*, print32 (*) equals(const nsacstring&, print32 (*) operator< operator<= operator== operator>= operator> operator!= equalsliteral find(const nsacstring&, print32 (*) find(const nsacs...
... trim void trim(const char*, prbool, prbool) - source parameters char aset prbool aleading prbool atrailing
defaultcomparator print32
defaultcomparator(const char*, const char*, pruint32) - source parameters char a char b pruint32 length compare(const char*, print32 (*) print32 compare(const char*, print32 (*)(const char*, const char*, pruint32)) const - source parameters char other print32* c compare(c...
nsCString external
harat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim
defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar rfindchar appendint tointeger base classes nscstringcontainer data members no public members.
... trim void trim(const char*, prbool, prbool) - source parameters char* aset prbool aleading prbool atrailing
defaultcomparator print32
defaultcomparator(const char*, const char*, pruint32) - source parameters char* a char* b pruint32 length compare print32 compare(const char*, print32 (*)(const char*, const char*, pruint32)) const - source parameters char* other print32 (*)(char*, char*, pruint32) c print...
nsDependentCString external
harat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim
defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar rfindchar appendint tointeger base classes nscstring_external data members no public members.
... trim void trim(const char*, prbool, prbool) - source parameters char* aset prbool aleading prbool atrailing
defaultcomparator print32
defaultcomparator(const char*, const char*, pruint32) - source parameters char* a char* b pruint32 length compare print32 compare(const char*, print32 (*)(const char*, const char*, pruint32)) const - source parameters char* other print32 (*)(char*, char*, pruint32) c print...
nsDependentCSubstring external
ator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral operator= replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim
defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar rfindchar appendint tointeger base classes nscstringcontainer data members no public members.
... trim void trim(const char*, prbool, prbool) - source parameters char* aset prbool aleading prbool atrailing
defaultcomparator print32
defaultcomparator(const char*, const char*, pruint32) - source parameters char* a char* b pruint32 length compare print32 compare(const char*, print32 (*)(const char*, const char*, pruint32)) const - source parameters char* other print32 (*)(char*, char*, pruint32) c print...
nsDependentString external
harat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim
defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral lowercaseequalsliteral find rfind findchar rfindchar appendint tointeger base classes nsstring_external data members no public members.
... trim void trim(const char*, prbool, prbool) - source parameters char* aset prbool aleading prbool atrailing
defaultcomparator print32
defaultcomparator(const prunichar*, const prunichar*, pruint32) - source parameters prunichar* a prunichar* b pruint32 length compare print32 compare(const prunichar*, print32 (*)(const prunichar*, const prunichar*, pruint32)) const - source parameters prunichar* other print32 (*)(prunicha...
nsDependentSubstring external
ator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral operator= replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim
defaultcomparator compare(const prunichar*, print32 (*) compare(const nsastring&, print32 (*) equals(const prunichar*, print32 (*) equals(const nsastring&, print32 (*) operator< operator<= operator== operator>= operator> operator!= equalsliteral lowercaseequalsliteral find(const nsastring&...
... trim void trim(const char*, prbool, prbool) - source parameters char aset prbool aleading prbool atrailing
defaultcomparator print32
defaultcomparator(const prunichar*, const prunichar*, pruint32) - source parameters prunichar a prunichar b pruint32 length compare(const prunichar*, print32 (*) print32 compare(const prunichar*, print32 (*)(const prunichar*, const prunichar*, pruint32)) const - source parameters prunichar othe...
nsLiteralCString (External)
harat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim
defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar rfindchar appendint tointeger base classes nscstring_external data members no public members.
... trim void trim(const char*, prbool, prbool) - source parameters char* aset prbool aleading prbool atrailing
defaultcomparator print32
defaultcomparator(const char*, const char*, pruint32) - source parameters char* a char* b pruint32 length compare print32 compare(const char*, print32 (*)(const char*, const char*, pruint32)) const - source parameters char* other print32 (*)(char*, char*, pruint32) c print...
nsLiteralString (External)
harat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim
defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar rfindchar appendint tointeger base classes nscstring_external data members no public members.
... trim void trim(const char*, prbool, prbool) - source parameters char* aset prbool aleading prbool atrailing
defaultcomparator print32
defaultcomparator(const char*, const char*, pruint32) - source parameters char* a char* b pruint32 length compare print32 compare(const char*, print32 (*)(const char*, const char*, pruint32)) const - source parameters char* other print32 (*)(char*, char*, pruint32) c print...
nsStringContainer (External)
ator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral operator= replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim
defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral lowercaseequalsliteral find rfind findchar rfindchar appendint tointeger base classes nsastring data members no public members.
... trim void trim(const char*, prbool, prbool) - source parameters char* aset prbool aleading prbool atrailing
defaultcomparator print32
defaultcomparator(const prunichar*, const prunichar*, pruint32) - source parameters prunichar* a prunichar* b pruint32 length compare print32 compare(const prunichar*, print32 (*)(const prunichar*, const prunichar*, pruint32)) const - source parameters prunichar* other print32 (*)(prunicha...
nsString external
harat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim
defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral lowercaseequalsliteral find rfind findchar rfindchar appendint tointeger base classes nsstringcontainer data members no public members.
... trim void trim(const char*, prbool, prbool) - source parameters char* aset prbool aleading prbool atrailing
defaultcomparator print32
defaultcomparator(const prunichar*, const prunichar*, pruint32) - source parameters prunichar* a prunichar* b pruint32 length compare print32 compare(const prunichar*, print32 (*)(const prunichar*, const prunichar*, pruint32)) const - source parameters prunichar* other print32 (*)(prunicha...
IAccessibleAction
the first action should be equivalent to the msaa
default action.
...if there are more than one, the first one is considered the "
default" action of the object.
IAccessibleComponent
[propget] hresult background( [out] ia2color background ); parameters background the returned color is the background color of this object or, if that is not supported, the
default background color.
...[propget] hresult foreground( [out] ia2color foreground ); parameters foreground the returned color is the foreground color of this object or, if that is not supported, the
default foreground color.
mozIJSSubScriptLoader
it
defaults to the global object of the caller.
...it
defaults to the global object of the caller.
nsIAnnotationService
default to "0" if value was not binary data.
...
default to "0" if value was not binary data.
nsIAuthModule
g adomain, in wstring ausername, in wstring apassword); void unwrap([const] in voidptr aintoken, in unsigned long aintokenlength, out voidptr aouttoken, out unsigned long aouttokenlength); void wrap([const] in voidptr aintoken, in unsigned long aintokenlength, in boolean confidential, out voidptr aouttoken, out unsigned long aouttokenlength); constants constant value description req_
default 0
default behavior.
...aserviceflags a bitwise-or of the req_ constants (pass req_
default for
default behavior).
nsIAutoCompleteInput
w acstring getsearchat(in unsigned long index); void onsearchbegin(); void onsearchcomplete(); boolean ontextentered(); boolean ontextreverted(); void selecttextrange(in long startindex, in long endindex); attributes attribute type description complete
defaultindex boolean if a search result has its
defaultindex set, this will optionally try to complete the text in the textbox to the entire text of the result at the
default index as the user types.
... forcecomplete boolean if true, the text field automatically completes to the
default result whenever the user hits the enter key or the text field loses focus.
nsICommandLine
prevent
default boolean there may be a command-line handler which performs a
default action if there was no explicit action on the command line (open a
default browser window, for example).
... this flag allows the
default action to be prevented.
nsIControllers
windows and text inputs have
default controllers that allow commands such as cmd_copy to act on the focused element or window.
... xul elements can also have controllers, although they do not have any
default controllers.
nsICookiePermission
nsisupports method overview nscookieaccess canaccess(in nsiuri auri, in nsichannel achannel); boolean cansetcookie(in nsiuri auri, in nsichannel achannel, in nsicookie2 acookie, inout boolean aissession, inout print64 aexpiry); nsiuri getoriginatinguri(in nsichannel achannel); void setaccess(in nsiuri auri, in nscookieaccess aaccess); constants constant value description access_
default 0 nscookieaccess's access
default value access_allow 1 nscookieaccess's access allow value access_deny 2 nscookieaccess's access deny value access_session 8 additional values for nscookieaccess, which are not directly used by any methods on this interface, but are nevertheless convenient to define here.
... return value one of the nscookieaccess values: access_
default, access_allow, or access_deny.
nsIDOMSimpleGestureEvent
(xxx not implemented on mac)
default behavior: some operating systems support
default behaviors for gesture events when they are not handled by the application.
... consumers should use event.prevent
default() to prevent
default behavior when consuming events.
nsIDialogParamBlock
default is 16.
... use before setting any string (if you want to change it from the
default).
nsIFile
in addition, the native form cannot deal with files whose name contains characters outside the
default system code page on windows.
... by
default, this value is false on all non-unix systems.
nsIFileInputStream
if set to -1 the file will be opened in
default mode (pr_rdonly).
...if set to -1 the
default value 0 will be used.
nsIFileOutputStream
use -1 to open the file in
default mode (pr_wronly | pr_create_file | pr_truncate).
...if set to -1 the
default permissions (0664) will be used.
nsIFileStreams
ioflags file open flags listed in prio.h (see pr_open documentation) or -1 to open the file in
default mode (pr_rdonly).
... perm file mode bits listed in prio.h or -1 to use the
default value (0).
nsIFileView
note: a quirk of the nsifileview is that it requires an appropriate treecols section in the tree tag, by
default fileview will return the file size in the column.
... example <?xml version="1.0" ?> <?xml-stylesheet href="chrome://global/skin/" type="text/css" ?> <window id="test" title="test" width="640" height="480" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <tree flex="1" id="ftree"> <treecols> <-- the
default column type is size unless an appropriate id is passed, nsifileview relies on the treecols section --> <treecol id="filenamecolumn" label="name" flex="1" primary="true"/> <treecol id="lastmodifiedcolumn" label="date" flex="1"/> <treecol id="size" label="size" flex="1"/> </treecols> <treechildren/> </tree> <script> var dir="/home/"; //the directory t...
nsIFrameScriptLoader
aruninglobalscope boolean optional,
defaults to false.
... by
default, frame scripts each have their own scope, so they can declare global variables without causing conflicts with any other frame scripts.
nsIHttpServer
if the handler throws an * exception during server operation, fallback is to the genericized error * handler (the x00 version), then to 500, using a user-defined error * handler if one exists or the server
default handler otherwise.
... * * @param handler * an object which will handle any requests for directories which * do not contain index pages, or null to reset to the
default * index handler; if while the server is running the handler * throws an exception while responding to a request, an http 500 * response will be returned.
nsIInstallLocation
1.0 66 introduced gecko 1.8 obsolete gecko 2.0 inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) note: while this api still works, firefox 4 no longer extracts xpis by
default, so this will now point to the xpi file instead of to the directory.
... constants constants representing priority of some
default install locations.
nsILocalFile
by
default, this value is false on all non-unix systems.
...that means, you cannot deal with files whose name contain characters outside the
default code page on windows even though windows 2000 or later has no problem with them.
nsIMsgFilterList
filterlist::folder version readonly attribute short nsimsgfilterlist::version arbitraryheaders readonly attribute acstring nsimsgfilterlist::arbitraryheaders shoulddownloadallheaders readonly attribute boolean nsimsgfilterlist::shoulddownloadallheaders filtercount readonly attribute unsigned long nsimsgfilterlist::filtercount loggingenabled attribute boolean nsimsgfilterlist::loggingenabled
defaultfile attribute nsilocalfile nsimsgfilterlist::
defaultfile logstream attribute nsioutputstream nsimsgfilterlist::logstream logurl readonly attribute acstring nsimsgfilterlist::logurl methods getfilterat() nsimsgfilter nsimsgfilterlist::getfilterat (in unsigned long filterindex ) getfilternamed() nsimsgfilter nsimsgfilterlist::getfilternamed (in astring filtername) setfilterat() nsimsgfilter ...
...msgfilterlist::movefilter ( in nsimsgfilter filter, in nsmsgfiltermotionvalue motion ) createfilter() nsimsgfilter nsimsgfilterlist::createfilter ( in astring name ) savetofile() void nsimsgfilterlist::savetofile ( in nsioutputstream stream ) parsecondition() void nsimsgfilterlist::parsecondition ( in nsimsgfilter afilter, in string condition ) saveto
defaultfile() void nsimsgfilterlist::saveto
defaultfile ( ) applyfilterstohdr() void nsimsgfilterlist::applyfilterstohdr ( in nsmsgfiltertypetype filtertype, in nsimsgdbhdr msghdr, in nsimsgfolder folder, in nsimsgdatabase db, in string headers, in unsigned long headersize, in nsimsgfilterhitnotify listener, in nsi...
nsINavHistoryResultNode
for hosts, this is the total number of the children under it, rather than the total number of times the host has been accessed (getting that information would require an additional query, so for performance reasons that information isn't given by
default).
...if the entry doesn't have a favicon, this is the chrome uri of the
default favicon.
nsIPrinterEnumerator
(in wstring aprinter, in nsiprintsettings aprintsettings); void enumerateprinters(out pruint32 acount,[retval, array, size_is(acount)] out wstring aresult); obsolete since gecko 1.9 void initprintsettingsfromprinter(in wstring aprintername, in nsiprintsettings aprintsettings); attributes attribute type description
defaultprintername wstring the name of the system
default printer.
...this is not necessarily gecko's
default printer; see nsiprintsettingsservice.
defaultprintername for that.
nsIProfile
appropriate
default values will be copied into the preferences in the new profile.
... nativeprofiledir the pathname of the directory to use as the profile directory; if you specify null, a new folder will be created in the
default profiles directory.
nsISearchEngine
if null, will
default to "text/html" exceptions thrown ns_error_invalid_arg if name or value are null.
...if null, will
default to "text/html".
nsISocketTransportService
pass an empty array [] if the
default socket type should be used.
...mozilla.org:2000 with tls support and
default proxy settings var socket = transportservice.createtransport(["starttls"], 1,"mozilla.org", 2000, null); see also nsisockettransport nsirunnable nsiproxyinfo ...
nsITaskbarPreview
by
default, this is an empty string.
... visible boolean indicates whether or not the preview is visible; by
default, this is false.
nsIWebNavigation
load_flags_none 0 this is the
default value for the load flags parameter.
... load_flags_stop_content 2048 if this flag is set, stop() will be called before the load starts and will stop both content and network activity (the
default is to only stop network activity).
nsIWindowsRegKey
this parameter can be the empty string to request the key's
default value.
...this parameter can be the empty string to modify the key's
default value.
nsIXSLTProcessor
this will make the processor use the
default-value for all parameters as specified in the stylesheet.
...this will make the processor use the
default-value for the parameter as specified in the stylesheet.
nsIXULRuntime
browsertabsremoteautostart boolean if true, browser tabs may be opened by
default in a different process from the main browser ui.
... constants process type constants constant value description process_type_
default 0 the
default (chrome) process.
nsIZipWriter
compression_
default 6 use the
default compression method when adding the file to the archive.
... var zipwriter = components.constructor("@mozilla.org/zipwriter;1", "nsizipwriter"); var zipw = new zipwriter(); zipw.open(myzipfilepath, pr_rdwr | pr_create_file | pr_truncate); zipw.addentryfile("path/for/this/file/in/zip archive", components.interfaces.nsizipwriter.compression_
default, thefile, false); zipw.close(); the argument myzipfilepath isn't a path but rather it has to be an nsifile instance specifying the location of the new zip file.
Performance
in the past, it flushed the cache at the end of a transaction (by
default).
...sharding the cache between connections by
default, storage enables the sqlite shared-cache mode which makes multiple connections to the same database share the same cache.
Using nsIDirectoryService
application level nsappdirectoryservicedefs.h the first group listed is for locations that are relative to the application: for instance, the name and location of the chrome folder, or the
default location of user profiles.
...it is also installed by
default by ns_initembedding.
Address Book examples
in the following examples: selectedab is the uri of an address book to
default the dialog to saving the card in.
... the address book
defaults with three photo handler types, identified by "generic", "file" and "web".
Building a Thunderbird extension 2: extension file layout
//created in step 3 /chrome.manifest //created in step 4 /chrome/ /content/ /content/myhelloworld.xul //created in step 5 /content/overlay.js //created in step 6 /chrome/locale/* //building an extension# localization /chrome/skin/ /
defaults/preferences/ //building an extension#
defaults files the following tutorial pages will explain how to write each of these files (except locale/ and
defaults/) and package them into an xpi (zippy) file.
... you can find information about the locale/ and
defaults/ folders in the more general "building an extension" documentation.
Using tab-modal prompts
only the window.alert() method gets this by
default; you get this by
default.
... using tab-modal prompts from chrome code currently, nsiprompt
defaults to using window-modal prompts.
Declaring and Using Callbacks
var myfunctypedeclaration = ctypes.functiontype(ctypes.
default_abi, ctypes.bool, [ctypes.int, ctypes.voidptr_t]); function myjscallback(cint, cptr) { return true; // as the return of the functiontype was ctypes.bool we must make our javascript callback return bool otherwise js-ctypes will throw error saying unexpected type return } var myccallback = myfunctypedeclaration.ptr(myjscallback); example 2 this callback that returns void and no arguments.
... var myfunctypedeclaration = ctypes.functiontype(ctypes.
default_abi, ctypes.void_t, []); function myjscallback() { return undefined; // as the return of the functiontype was ctypes.void_t we must return undefined or dont return at all otherwise js-ctypes will throw an error saying unexpected type } var myccallback = myfunctypedeclaration.ptr(myjscallback); using callbacks since callbacks are function pointers in c, js-ctypes has special handling for function pointer types.
Declaring and Calling Functions
const clock = lib.declare("clock", ctypes.
default_abi, ctypes.unsigned_long); console.log("clocks since startup: " + clock()); the clock() function requires no input parameters; it simply returns an unsigned long.
... const asctime = lib.declare("asctime", ctypes.
default_abi, ctypes.char.ptr, struct_tm.ptr); for a more complete version of this example (including the implementation of the struct_tm type), see the structures example.
Type conversion
var buffer = ctypes.char.array(10)(); var somecfunction = library.declare("somecfunction", ctypes.
default_abi, ctypes.void_t, ctypes.char.ptr); somecfunction(buffer); // here ctypes.char.array(10)() is converted to ctypes.char.ptr type implicit conversion can be tested in the following way: var mystruct = ctypes.structtype("mystructtype", [ { "v": ctypes.bool } ])(); mystruct.v = 1; console.log(mystruct.v.tostring()); // 'true' boolean type target type source converted value ctypes.bool js boolean src js number (0 or 1) if src == 0: false if src == 1: t...
...tr uint16array pointer to the uint16array ctypes.int32_t.ptr int32array pointer to the int32array ctypes.uint32_t.ptr uint32array pointer to the uint32array ctypes.float32_t.ptr float32array pointer to the float32array ctypes.float64_t.ptr float64array pointer to the float64array var myfunctype = ctypes.functiontype(ctypes.
default_abi, ctypes.void_t, [ctypes.int16_t.ptr]); var myfunc = myfunctype.ptr(function(v) { console.log(v.tostring()); }); myfunc(int16array([1, 2, 3])); // 'ctypes.int16_t.ptr(ctypes.uint64("0x103b7fe60"))' myfunc(int32array([1, 2, 3])); // throws error var myfunctype = ctypes.functiontype(ctypes.
default_abi, ctypes.void_t, [ctypes.char.ptr]); var myfunc = myfunctype.ptr(function(v) { console.log(v.
Working with ArrayBuffers
n('libc.so.7'); break; case 'openbsd': lib = ctypes.open('libc.so.61.0'); break; case 'android': case 'sunos': case 'netbsd': case 'dragonfly': lib = ctypes.open('libc.so'); break; case 'linux': lib = ctypes.open('libc.so.6'); break; case 'gnu/kfreebsd': lib = ctypes.open('libc.so.0.1'); break;
default: //assume unix try { lib = ctypes.open(ctypes.libraryname('c')); } catch (ex) { throw new error('i dont know where to memcpy is defined on your operating system, "' + os.constants.sys.name + '"'); lib.close(); } } try { var memcpy = lib.declare('memcpy', os.constants.sys.name.tolowercase().indexof('win') == 0 ?
... ctypes.winapi_abi : ctypes.
default_abi, ctypes.void_t, // return ctypes.void_t.ptr, // *dest ctypes.void_t.ptr, // *src ctypes.size_t // count ); } catch (ex) { throw new error('i dont know where to memcpy is defined on your operating system, "' + os.constants.sys.name + '"'); lib.close() } memcpy(myimgdat.data, pixelbuffer, myimgdat.data.length); // myimgdat.data.length is imgwidth * imgheight *4 because per pixel there is r, g, b, a numbers lib.close(); see also type conversion ...
Working with data
using arrays of pointers if you need to work with c functions that accept arrays of pointers as inputs, you can construct an array of pointers like this: var ptrarraytype = ctypes.char.ptr.array(5); var myarray = ptrarraytype(); var somecfunction = library.declare("somecfunction", ctypes.
default_abi, ctypes.void_t, ctypes.char.ptr.array() /*same as ctypes.char.ptr.ptr*/); somecfunction(myarray); line 1 declares a new array type, capable of containing 5 arrays of pointers to c characters.
... using arrays of non-pointers if a function expects an argument that is a pointer to a list of elements, this is how it is accomplished: var myarraytype = ctypes.char.array(5); var myarray = myarraytype(); var somecfunction = library.declare("somecfunction", ctypes.
default_abi, ctypes.void_t, ctypes.char.array() /*same as ctypes.char.ptr*/); somecfunction(myarray); second example: var mystruct = ctypes.structtype('foo', [{bar: ctypes.bool}]); var mystructarraytype = mystruct.array(5); var myarray = mystructarraytype(); var somecfunction = library.declare("somecfunction", ctypes.
default_abi, ctypes.void_t, mystruct.ptr); somecfunction(myarray); this shows how ...
Gecko Plugin API Reference - Plugins
plug-in basics how plug-ins are used plug-ins and helper applications how plug-ins work understanding the runtime model plug-in detection how gecko finds plug-ins checking plug-ins by mime type overview of plug-in structure understanding the plug-in api plug-ins and platform independence windowed and windowless plug-ins the
default plug-in using html to display plug-ins plug-in display modes using the object element for plug-in display nesting rules for html elements using the appropriate attributes using the embed element for plug-in display using custom embed attributes plug-in references plug-in development overview writing plug-ins registering plug-ins ms windows unix mac os x drawing ...
...all plugin native methods the api extensions npstring npvariant npn_releasevariantvalue npn_getstringidentifier npn_getstringidentifiers npn_getintidentifier npn_identifierisstring npn_utf8fromidentifier npn_intfromidentifier npobject npn_createobject npn_retainobject npn_releaseobject npn_invoke npn_invoke
default npn_evaluate npn_getproperty npn_setproperty npn_removeproperty npn_hasproperty npn_hasmethod npn_setexception npclass structures npanycallbackstruct npbyterange npembedprint npevent npfullprint npp np_port npprint npprintcallbackstruct nprect npregion npsaveddata npsetwindowcallbackstruct npstream npwindow constants erro...
UI Tour - Firefox Developer Tools
inline variable preview: enabled by
default, this option displays variable values within the source pane when the debugger is paused.
... source maps: enabled by
default, this option directs the debugger to load the original versions of files, and map them to the generated ones loaded in a page, to ease debugging of translformed sources.
Debugger.Object - Firefox Developer Tools
if the property is a getter, it will be evaluated with receiver as the receiver,
defaulting to the debugger.object if omitted.
...if the property is a setter, it will be evaluated with receiver as the receiver,
defaulting to the debugger.object if omitted.
Tutorial: Set a breakpoint - Firefox Developer Tools
our example code is long enough that the best way to run it is to use the scratchpad panel, which is not enabled by
default.
... to enable it, click on the options gear at the upper right of the browser content toolbox, and make sure the “scratchpad” box in the “
default developer tools” section the left is checked.
JSON viewer - Firefox Developer Tools
before firefox 53, the json viewer is enabled by
default only in firefox developer edition and firefox nightly.
... from firefox 53 onwards, the json viewer is also enabled by
default in beta and the normal release version of firefox.
All keyboard shortcuts - Firefox Developer Tools
command windows macos linux increase font size ctrl + + cmd + + ctrl + + decrease font size ctrl + - cmd + - ctrl + - reset font size ctrl + 0 cmd + 0 ctrl + 0 source editor this table lists the
default shortcuts for the source editor.
...by
default, on some macs, the function key is remapped to use a special feature: for example, to change the screen brightness or the volume.
Basic operations - Firefox Developer Tools
opening the memory tool before firefox 50, the memory tool is not enabled by
default.
... to enable it, open the developer tool settings, and check the "memory" box under "
default firefox developer tools": from firefox 50 onwards, the memory tool is enabled by
default.
Responsive Design Mode - Firefox Developer Tools
orientation (portrait or landscape) - this setting persists between sessions screenshots are saved to firefox's
default download location.
...select a device, and responsive design mode sets the following properties to match the selected device: screen size device pixel ratio (the ratio of device physical pixels to device-independent pixels) touch event simulation additionally, firefox sets the user-agent http request header to identify itself as the
default browser on the selected device.
Shader Editor - Firefox Developer Tools
here's another screencast, showing how you can use the shader editor for complex applications (in this case, the unreal engine demo): opening the shader editor the shader editor is disabled by
default.
... to enable it, open the toolbox settings and check "shader editor" in the "
default firefox developer tools" item.
Firefox Developer Tools
(note: this feature is not turned on by
default and must be enabled in settings before the icon will appear.) toggles responsive design mode.
... debugging the browser by
default, the developer tools are attached to a web page or web app.
Animation() - Web APIs
this can be null (which is the
default) to indicate that there should be no effect applied.
...the
default value is document.timeline, but this can be set to null as well.
AudioBuffer() - Web APIs
the
default is 1, and all user agents are required to support at least 32 channels.
...the
default is the sample rate of the context used in constructing this object.
CanvasRenderingContext2D.restore() - Web APIs
syntax void ctx.restore(); examples restoring a saved state this example uses the save() method to save the
default state and restore() to restore it later, so that you are able to draw a rect with the
default state later.
... html <canvas id="canvas"></canvas> javascript const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); // save the
default state ctx.save(); ctx.fillstyle = 'green'; ctx.fillrect(10, 10, 100, 100); // restore the
default state ctx.restore(); ctx.fillrect(150, 40, 100, 100); result specifications specification status comment html living standardthe definition of 'canvasrenderingcontext2d.restore' in that specification.
CanvasRenderingContext2D.save() - Web APIs
syntax void ctx.save(); examples saving the drawing state this example uses the save() method to save the
default state and restore() to restore it later, so that you are able to draw a rect with the
default state later.
... html <canvas id="canvas"></canvas> javascript const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); // save the
default state ctx.save(); ctx.fillstyle = 'green'; ctx.fillrect(10, 10, 100, 100); // restore the
default state ctx.restore(); ctx.fillrect(150, 40, 100, 100); result specifications specification status comment html living standardthe definition of 'canvasrenderingcontext2d.save' in that specification.
CanvasRenderingContext2D.translate() - Web APIs
examples moving a shape this example draws a square that is moved from its
default position by the translate() method.
...the first square is shifted by those amounts from its
default position.
console.count() - Web APIs
if omitted, count() behaves as though it was called with the "
default" label.
... examples for example, given code like this: let user = ""; function greet() { console.count(); return "hi " + user; } user = "bob"; greet(); user = "alice"; greet(); greet(); console.count(); console output will look something like this: "
default: 1" "
default: 2" "
default: 3" "
default: 4" the label is displayed as
default because no explicit label was supplied.
Console.countReset() - Web APIs
if omitted, countreset() resets the
default counter to 0.
... examples for example, given code like this: let user = ""; function greet() { console.count(); return "hi " + user; } user = "bob"; greet(); user = "alice"; greet(); greet(); console.count(); console.countreset(); console output will look something like this: "
default: 1" "
default: 2" "
default: 3" "
default: 4" "
default: 0" note that the call to console.counterreset() resets the value of the
default counter to zero.
ConstantSourceNode - Web APIs
you can also create a constantsourcenode whose properties are initialized to their
default values by calling audiocontext.createconstantsource().
...the
default value is 1.0.
Constraint validation API - Web APIs
however, you may want to impose more complex constraints, or to provide clearer reporting of validation failures than the
defaults.
... examples take the following form: <form> <label for="name">enter username (upper and lowercase letters): </label> <input type="text" name="name" id="name" required pattern="[a-za-z]+"> <button>submit</button> </form> the basic html form validation features will cause this to produce a
default error message if you try to submit the form with either no valid filled in, or a value that does not match the pattern.
DataTransfer.effectAllowed - Web APIs
uninitialized the
default value when the effect has not been set, equivalent to all.
...+ ev.datatransfer.effectallowed); // add this element's id to the drag payload so the drop handler will // know which element to add to its tree ev.datatransfer.setdata("text", ev.target.id); ev.datatransfer.effectallowed = "move"; } function drop_handler(ev) { console.log("drop: dropeffect = " + ev.datatransfer.dropeffect + " ; effectallowed = " + ev.datatransfer.effectallowed); ev.prevent
default(); // get the id of the target and add the moved element to the target's dom var data = ev.datatransfer.getdata("text"); ev.target.appendchild(document.getelementbyid(data)); } function dragover_handler(ev) { console.log("dragover: dropeffect = " + ev.datatransfer.dropeffect + " ; effectallowed = " + ev.datatransfer.effectallowed); ev.prevent
default(); // set the dropeffect to move ev.dat...
DataTransfer.items - Web APIs
<script> function dragstart_handler(ev) { console.log("dragstart: target.id = " + ev.target.id); // add this element's id to the drag payload so the drop handler will // know which element to add to its tree ev.datatransfer.setdata("text/plain", ev.target.id); ev.datatransfer.effectallowed = "move"; } function drop_handler(ev) { console.log("drop: target.id = " + ev.target.id); ev.prevent
default(); // get the id of the target and add the moved element to the target's dom var data = ev.datatransfer.getdata("text"); ev.target.appendchild(document.getelementbyid(data)); // print each format type if (ev.datatransfer.types != null) { for (var i=0; i < ev.datatransfer.types.length; i++) { console.log("...
...items[" + i + "].kind = " + ev.datatransfer.items[i].kind + " ; type = " + ev.datatransfer.items[i].type); } } } function dragover_handler(ev) { console.log("dragover"); ev.prevent
default(); // set the dropeffect to move ev.datatransfer.dropeffect = "move" } </script> <body> <h1>examples of <code>datatransfer</code>.{<code>types</code>, <code>items</code>} properties</h1> <ul> <li id="i1" ondragstart="dragstart_handler(event);" draggable="true">drag item 1 to the drop zone</li> <li id="i2" ondragstart="dragstart_handler(event);" draggable="true">drag item 2 to the drop zo...
DataTransfer.types - Web APIs
<script> function dragstart_handler(ev) { console.log("dragstart: target.id = " + ev.target.id); // add this element's id to the drag payload so the drop handler will // know which element to add to its tree ev.datatransfer.setdata("text/plain", ev.target.id); ev.datatransfer.effectallowed = "move"; } function drop_handler(ev) { console.log("drop: target.id = " + ev.target.id); ev.prevent
default(); // get the id of the target and add the moved element to the target's dom var data = ev.datatransfer.getdata("text"); ev.target.appendchild(document.getelementbyid(data)); // print each format type if (ev.datatransfer.types != null) { for (var i=0; i < ev.datatransfer.types.length; i++) { console.log("...
...items[" + i + "].kind = " + ev.datatransfer.items[i].kind + " ; type = " + ev.datatransfer.items[i].type); } } } function dragover_handler(ev) { console.log("dragover"); ev.prevent
default(); // set the dropeffect to move ev.datatransfer.dropeffect = "move" } </script> <body> <h1>examples of <code>datatransfer</code>.{<code>types</code>, <code>items</code>} properties</h1> <ul> <li id="i1" ondragstart="dragstart_handler(event);" draggable="true">drag item 1 to the drop zone</li> <li id="i2" ondragstart="dragstart_handler(event);" draggable="true">drag item 2 to the drop zo...
DataTransferItem.webkitGetAsEntry() - Web APIs
first, we prevent the dragover event from being handled by the
default handler, so that our drop zone can receive the drop: dropzone.addeventlistener("dragover", function(event) { event.prevent
default(); }, false); the event handler that kicks everything off, of course, is the handler for the drop event: dropzone.addeventlistener("drop", function(event) { let items = event.datatransfer.items; event.prevent
default(); listing.innerhtml = ""; for (let...
...then we call event.prevent
default() to prevent the event from being handled further after we're done.
DataTransferItemList.DataTransferItem() - Web APIs
paragraph ...</p>", "text/html"); datalist.add("http://www.example.org","text/uri-list"); } function drop_handler(ev) { console.log("drop"); ev.prevent
default(); var data = ev.datatransfer.items; // loop through the dropped items and log their data for (var i = 0; i < data.length; i++) { if ((data[i].kind == 'string') && (data[i].type.match('^text/plain'))) { // this item is the target node data[i].getasstring(function (s){ ev.target.appendchild(document.getelementbyid(s)); }); } else if ((data[i].kind == 'string...
...drop: uri = " + s); }); } } } function dragover_handler(ev) { console.log("dragover"); ev.prevent
default(); // set the dropeffect to move ev.datatransfer.dropeffect = "move" } function dragend_handler(ev) { console.log("dragend"); var datalist = ev.datatransfer.items; // clear any remaining drag data datalist.clear(); } html <div> <p id="source" ondragstart="dragstart_handler(event);" ondragend="dragend_handler(event);" draggable="true"> select this element, drag it to the dr...
DataTransferItemList.add() - Web APIs
paragraph ...</p>", "text/html"); datalist.add("http://www.example.org","text/uri-list"); } function drop_handler(ev) { console.log("drop"); ev.prevent
default(); var data = event.datatransfer.items; // loop through the dropped items and log their data for (var i = 0; i < data.length; i++) { if ((data[i].kind == 'string') && (data[i].type.match('^text/plain'))) { // this item is the target node data[i].getasstring(function (s){ ev.target.appendchild(document.getelementbyid(s)); }); } else if ((data[i].kind == 'str...
...drop: uri = " + s); }); } } } function dragover_handler(ev) { console.log("dragover"); ev.prevent
default(); // set the dropeffect to move ev.datatransfer.dropeffect = "move" } function dragend_handler(ev) { console.log("dragend"); var datalist = ev.datatransfer.items; for (var i = 0; i < datalist.length; i++) { datalist.remove(i); } // clear any remaining drag data datalist.clear(); } result result link specifications specification status comment ...
DataTransferItemList.clear() - Web APIs
paragraph ...</p>", "text/html"); datalist.add("http://www.example.org","text/uri-list"); } function drop_handler(ev) { console.log("drop"); ev.prevent
default(); var data = event.datatransfer.items; // loop through the dropped items and log their data for (var i = 0; i < data.length; i++) { if ((data[i].kind == 'string') && (data[i].type.match('^text/plain'))) { // this item is the target node data[i].getasstring(function (s){ ev.target.appendchild(document.getelementbyid(s)); }); } else if ((data[i].kind == 'str...
...drop: uri = " + s); }); } } } function dragover_handler(ev) { console.log("dragover"); ev.prevent
default(); // set the dropeffect to move ev.datatransfer.dropeffect = "move" } function dragend_handler(ev) { console.log("dragend"); var datalist = ev.datatransfer.items; for (var i = 0; i < datalist.length; i++) { datalist.remove(i); } // clear any remaining drag data datalist.clear(); } result result link specifications specification status comment ...
DataTransferItemList.length - Web APIs
paragraph ...</p>", "text/html"); datalist.add("http://www.example.org","text/uri-list"); } function drop_handler(ev) { console.log("drop"); ev.prevent
default(); var data = ev.datatransfer.items; // loop through the dropped items and log their data for (var i = 0; i < data.length; i++) { if ((data[i].kind == 'string') && (data[i].type.match('^text/plain'))) { // this item is the target node data[i].getasstring(function (s){ ev.target.appendchild(document.getelementbyid(s)); }); } else if ((data[i].kind == 'string...
...drop: uri = " + s); }); } } } function dragover_handler(ev) { console.log("dragover"); ev.prevent
default(); // set the dropeffect to move ev.datatransfer.dropeffect = "move" } function dragend_handler(ev) { console.log("dragend"); var datalist = ev.datatransfer.items; // clear any remaining drag data datalist.clear(); } html <div> <p id="source" ondragstart="dragstart_handler(event);" ondragend="dragend_handler(event);" draggable="true"> select this element, drag it to the dr...
DataTransferItemList.remove() - Web APIs
paragraph ...</p>", "text/html"); datalist.add("http://www.example.org","text/uri-list"); } function drop_handler(ev) { console.log("drop"); ev.prevent
default(); var data = event.datatransfer.items; // loop through the dropped items and log their data for (var i = 0; i < data.length; i++) { if ((data[i].kind == 'string') && (data[i].type.match('^text/plain'))) { // this item is the target node data[i].getasstring(function (s){ ev.target.appendchild(document.getelementbyid(s)); }); } else if ((data[i].kind == 'str...
...drop: uri = " + s); }); } } } function dragover_handler(ev) { console.log("dragover"); ev.prevent
default(); // set the dropeffect to move ev.datatransfer.dropeffect = "move" } function dragend_handler(ev) { console.log("dragend"); var datalist = ev.datatransfer.items; for (var i = 0; i < datalist.length; i++) { datalist.remove(i); } // clear any remaining drag data datalist.clear(); } html <h1>example uses of <code>datatransferitemlist</code> methods and property</h1> <div>...
DisplayMediaStreamConstraints.audio - Web APIs
this value may simply be a boolean, where true indicates that an audio track should be included an false (the
default) indicates that no audio should be included in the stream.
...a value of false—the
default—indicates that no audio track is to be included in the stream.
DisplayMediaStreamConstraints.video - Web APIs
this value may simply be a boolean, where true specifies that a
default selection of input source be made (typically the entire display area of the device in use, spanning every screen in a multiple screen configuration).
... if a boolean is specified, a value of true (the
default) indicates that the stream returned by getdisplaymedia() should be in whatever format the user agent feels is best.
DisplayMediaStreamConstraints - Web APIs
the
default value is false.
... video if true (the
default), the display contents are included in a mediastreamtrack within the stream provided by getdisplaymedia().
Document.createNSResolver() - Web APIs
there is no way in xpath to pick up the
default namespace as applied to a regular element reference (e.g., p[@id='_myid'] for xmlns='http://www.w3.org/1999/xhtml').
... to match
default elements in a non-null namespace, you either have to refer to a particular element using a form such as *namespace-uri()=http://www.w3.org/1999/xhtml and name()=p[@id='_myid'] (this approach works well for dynamic xpath expressions where the namespaces might not be known) or use prefixed name tests, and create a namespace resolver mapping the prefix to the namespace.
Document: wheel event - Web APIs
the
default action of a wheel event is implementation-specific, and doesn't necessarily dispatch a scroll event.
... <div>scale me with your mouse wheel.</div> body { min-height: 100vh; margin: 0; display: flex; align-items: center; justify-content: center; } div { width: 105px; height: 105px; background: #cdf; padding: 5px; } function zoom(event) { event.prevent
default(); if (event.deltay < 0) { // zoom in scale *= event.deltay * -2; } else { // zoom out scale /= event.deltay * 2; } // restrict scale scale = math.min(math.max(.125, scale), 4); // apply scale transform el.style.transform = `scale(${scale})`; } let scale = 1; const el = document.queryselector('div'); document.onwheel = zoom; addeventlistener equivalent the ...
EffectTiming.fill - Web APIs
the
default is "auto".
...since by
default the box isn't rotated, the last keyframe says that the animation's final frame should draw the animation rotated 90° to the right from its original orientation.
EffectTiming.iterations - Web APIs
the
default value is 1, indicating that it should only play once, but you can set it to any floating-point value (including positive infinity
defaults to 1, and can also take a value of infinity to make it loop infinitely.
...
defaults to 1, meaning the animation sequence plays through once then stops automatically.
Element: DOMMouseScroll event - Web APIs
bubbles yes cancelable yes interface mousescrollevent if you want to prevent the
default action of mouse wheel events, it's not enough to handle only this event on gecko because if scroll amount by a native mouse wheel event is less than 1 line (or less than 1 page when the system setting is by page scroll), other mouse wheel events may be fired without this event.
... on gecko 17 (firefox 17) or later, you need to call prevent
default() of wheel events which must be fired for every native event.
Element.computedStyleMap() - Web APIs
did you realize how many
default css properties a link had?
... update the 'a' to the 'p', and you'll notice a difference in the margin-top and margin-bottom
default computed values.
Element: webkitmouseforcewillbegin event - Web APIs
this offers the opportunity to tell the system not to trigger any
default force touch actions if and when the click turns into a force touch event.
... to instruct macos not to engage any
default force touch actions if the user apply enough pressure to activate a force touch event, call prevent
default() on the webkitmouseforcewillbegin event object.
Element: wheel event - Web APIs
the
default action of a wheel event is implementation-specific, and doesn't necessarily dispatch a scroll event.
... <div>scale me with your mouse wheel.</div> body { min-height: 100vh; margin: 0; display: flex; align-items: center; justify-content: center; } div { width: 105px; height: 105px; background: #cdf; padding: 5px; } function zoom(event) { event.prevent
default(); scale += event.deltay * -0.01; // restrict scale scale = math.min(math.max(.125, scale), 4); // apply scale transform el.style.transform = `scale(${scale})`; } let scale = 1; const el = document.queryselector('div'); el.onwheel = zoom; addeventlistener equivalent the event handler can also be set up using the addeventlistener() method: el.addeventlistener('wheel', zoom); sp...
Event.stopPropagation() - Web APIs
it does not, however, prevent any
default behaviors from occurring; for instance, clicks on links are still processed.
... if you want to stop those behaviors, see the prevent
default() method.
EventSource - Web APIs
when using http/2, the maximum number of simultaneous http streams is negotiated between the server and the client (
defaults to 100).
... eventsource.withcredentials read only a boolean indicating whether the eventsource object was instantiated with cross-origin (cors) credentials set (true), or not (false, the
default).
EventTarget.removeEventListener() - Web APIs
if this parameter is absent, a
default value of false is assumed.
... now consider this: element.addeventlistener("mousedown", handlemousedown, { passive: true }); here, we specify an options object in which passive is set to true, while the other options are left to the
default value of false.
FeaturePolicy.allowsFeature() - Web APIs
it returns a boolean that is true if and only if the specified feature is allowed in the specified context (or the
default context if no context is specified).
...if it is omitted the
default origin is used.
FetchEvent.respondWith() - Web APIs
the respondwith() method of fetchevent prevents the browser's
default fetch handling, and allows you to provide a promise for a response yourself.
... addeventlistener('fetch', event => { // prevent the
default, and handle the request ourselves.
FileSystemDirectoryReader.readEntries() - Web APIs
first, we prevent the dragover event from being handled by the
default handler, so that our drop zone can receive the drop: dropzone.addeventlistener("dragover", function(event) { event.prevent
default(); }, false); the event handler that kicks everything off, of course, is the handler for the drop event: dropzone.addeventlistener("drop", function(event) { let items = event.datatransfer.items; event.prevent
default(); listing.innerhtml = ""; for (let...
...then we call event.prevent
default() to prevent the event from being handled further after we're done.
Using FormData Objects - Web APIs
odata.append("customfield", "this is some extra data"); var oreq = new xmlhttprequest(); oreq.open("post", "stash.php", true); oreq.onload = function(oevent) { if (oreq.status == 200) { ooutput.innerhtml = "uploaded!"; } else { ooutput.innerhtml = "error " + oreq.status + " occurred when trying to upload your file.<br \/>"; } }; oreq.send(odata); ev.prevent
default(); }, false); note: if you pass in a reference to the form, the request method specified in the form will be used over the method specified in the open() call.
... typically this is used as shown in our simple formdata event demo — in the javascript we reference a form: const formelem = document.queryselector('form'); in our submit event handler we use prevent
default to stop the
default form submission, then invoke a formdata constructor to trigger the formdata event: formelem.addeventlistener('submit', (e) => { // on form submission, prevent
default e.prevent
default(); // construct a formdata object, which fires the formdata event new formdata(formelem); }); when the formdata event fires we can access the formdata object using formdataevent.formda...
FormData.append() - Web APIs
the
default filename for blob objects is "blob".
... the
default filename for file objects is the file's filename.
FormData.set() - Web APIs
the
default filename for blob objects is "blob".
... the
default filename for file objects is the file's filename.
GlobalEventHandlers.oncontextmenu - Web APIs
unless the
default behavior is prevented, the browser context menu will activate.
...is it disabled?<p> javascript window.oncontextmenu = (e) => { e.prevent
default(); } result pausing an animation this example pauses a spinning shape whenever you open the context menu.
HTMLCanvasElement.toBlob() - Web APIs
the
default type is image/png.
...if this argument is anything else, the
default values 0.92 and 0.80 are used for image/jpeg and image/webp respectively.
HTMLFontElement.face - Web APIs
the document text, in the
default style, is rendered as the first font face that the client's browser supports.
... if no font listed is installed on the local system, the browser typically
defaults to the proportional or fixed-width font for that system.
HTMLFormElement: submit event - Web APIs
examples this example uses eventtarget.addeventlistener() to listen for form submit, and logs the current event.timestamp whenever that occurs, then prevents the
default action of submitting the form.
...time stamp: ${event.timestamp}`; event.prevent
default(); } const form = document.getelementbyid('form'); const log = document.getelementbyid('log'); form.addeventlistener('submit', logsubmit); result specifications specification status comment html living standardthe definition of 'submit' in that specification.
HTMLImageElement.border - Web APIs
a value of 0, the
default, indicates that no border should be drawn.
...the
default value of border is 0 usage notes do not use border.
HTMLImageElement.loading - Web APIs
the possible values are: eager the
default behavior, eager tells the browser to load the image as soon as the <img> element is processed.
...when images are loaded eagerly (which is the
default), every image in the document must be fetched before the load event can fire.
HTMLMediaElement.playbackRate - Web APIs
the pitch of the audio is corrected by
default and is the same for every speed.
...(
default: 1.0) example var obj = document.createelement('video'); console.log(obj.playbackrate); // expected output: 1 specifications specification status comment html living standardthe definition of 'htmlmediaelement.playbackrate' in that specification.
HTMLScriptElement.referrerPolicy - Web APIs
no-referrer-when-downgrade (
default) this is the user agent's
default behavior if no policy is specified.
... note: an empty string value ("") is both the
default value, and a fallback value if referrerpolicy is not supported.
HTMLTableRowElement - Web APIs
it reflects the char and
default to the decimal points associated with the language, e.g.
... recommendation the parameter of insertcell is now optional and
default to -1.
HTMLTextAreaElement - Web APIs
defaultvalue string: returns / sets the control's
default value, which behaves like the node.textcontent property.
... obsolete the property
defaultvalue doesn't contain the initial value of the value attribute, but the initial value of the content of the <textarea>.
Ajax navigation example - Web APIs
vmsg = json.parse(this.responsetext); document.title = opageinfo.title = vmsg.page; document.getelementbyid(stargetid).innerhtml = vmsg.content; if (bupdateurl) { history.pushstate(opageinfo, opageinfo.title, opageinfo.url); bupdateurl = false; } break;
default: vmsg = nstatus + ": " + (ohttpstatus[nstatus] || "unknown"); switch (math.floor(nstatus / 100)) { /* case 1: // informational 1xx console.log("information code " + vmsg); break; case 2: // successful 2xx ...
...; break; */ case 4: /* client error 4xx */ alert("client error #" + vmsg); break; case 5: /* server error 5xx */ alert("server error #" + vmsg); break;
default: /* unknown status */ ajaxerror(); } } closereq(); } function filterurl (surl, sviewmode) { return surl.replace(rsearch, "") + ("?" + surl.replace(rhost, "&").replace(rview, sviewmode ?
IDBTransaction - Web APIs
this can be prevented by using prevent
default() on the error event on the request.
...the
default value is readonly.
Checking when a deadline is due - Web APIs
when the form's submit button is pressed, we run the adddata() function, which starts like this: function adddata(e) { e.prevent
default(); if(title.value == '' || hours.value == null || minutes.value == null || day.value == '' || month.value == '' || year.value == null) { note.innerhtml += '<li>data not submitted — form incomplete.</li>'; return; } in this segment, we check to see if the form fields have all been filled in.
... switch(cursor.value.month) { case "january": var monthnumber = 0; break; case "february": var monthnumber = 1; break; // other lines removed from listing for brevity case "december": var monthnumber = 11; break;
default: alert('incorrect month entered in database.'); } the first thing we do is convert the month names we have stored in the database into a month number that javascript will understand.
KeyboardEvent.code - Web APIs
window.addeventlistener("keydown", function(event) { if (event.
defaultprevented) { return; // do nothing if event already handled } switch(event.code) { case "keys": case "arrowdown": // handle "back" updateposition(-moverate); break; case "keyw": case "arrowup": // handle "forward" updateposition(moverate); break; case "keya": case "arrowleft": // handle "turn left" angle -= turnrate; ...
... break; case "keyd": case "arrowright": // handle "turn right" angle += turnrate; break; } refresh(); // consume the event so it doesn't get handled twice event.prevent
default(); }, true); try it out to ensure that keystrokes go to the sample code, click inside the black game play field below before pressing keys.
KeyboardEvent.keyCode - Web APIs
example window.addeventlistener("keydown", function (event) { if (event.
defaultprevented) { return; // should do nothing if the
default action has been cancelled } var handled = false; if (event.key !== undefined) { // handle the event with keyboardevent.key and set handled true.
... } if (handled) { // suppress "double action" if event handled event.prevent
default(); } }, true); specifications specification status comment document object model (dom) level 3 events specificationthe definition of 'keyboardevent.keycode' in that specification.
Locks.mode - Web APIs
the mode is either "exclusive" (the
default) or "shared".
... // should show "exclusive" (the
default) navigator.locks.request("my_resource", show_lock_properties); // should show "exclusive" navigator.locks.request("my_resource", {mode: "exclusive"}, show_lock_properties); // should show "shared" navigator.locks.request("my_resource", {mode: "shared"}, show_lock_properties); function show_lock_properties(lock) { console.log(`the lock name is: ${lock.name}`); console.log(`the lock mode is: ${lock.mode}`); } specifications specification status comment web locks apithe definition of 'mode' in th...
MediaRecorder.onerror - Web APIs
example this example creates a new mediarecorder instance and starts recording using the user agent's
default media format.
...try again later."); break; case securityerror: shownotification("recording the specified source " + "is not allowed due to security " + "restrictions."); break;
default: shownotification("a problem occurred while trying " + "to record the video."); break; } }; /* this would be a good place to create a worker to handle writing the buffers to disk periodically */ recorder.start(100); /* 100ms time slices per buffer */ return recorder; } specifications specification status comment ...
MediaRecorder - Web APIs
the
default is false.
...if this is specified, the media will be captured in separate chunks of that duration, rather than the
default behavior of recording the media in a single large chunk.
MediaStreamEvent() - Web APIs
"bubbles", optional and
defaulting to false, inherited from eventinit, and indicating if the event must bubble or not.
... "cancelable", optional and
defaulting to false, inherited from eventinit, and indicating if the event can be canceled or not.
Using the MediaStream Recording API - Web APIs
cursor: pointer; } then we hide the actual checkbox, because we don't want it cluttering up our ui: input[type=checkbox] { position: absolute; top: -100px; } next, we style the information screen (wrapped in an <aside> element) how we want it, give it fixed position so that it doesn't appear in the layout flow and affect the main ui, transform it to the position we want it to sit in by
default, and give it a transition for smooth showing/hiding: aside { position: fixed; top: 0; left: 0; text-shadow: 1px 1px 1px black; width: 100%; height: 100%; transform: translatex(100%); transition: 0.6s all; background-color: #999; background-image: linear-gradient(to top right, rgba(0,0,0,0), rgba(0,0,0,0.5)); } last, we write a rule to say that when the checkbox is...
...this is your entry point into using the mediarecorder api — the stream is now ready to be captured into a blob, in the
default encoding format of your browser.
Transcoding assets for Media Source Extensions - Web APIs
bento4 uses this by
default, so you need to compile ffmpeg if necessary.
...command line flag: $ ffmpeg -i trailer_1080p.mov -c:v copy -c:a copy -movflags frag_keyframe+empty_moov bunny_fragmented.mp4 if you already have an mp4, but it's not properly fragmented, you can again use ffmpeg: $ ffmpeg -i non_fragmented.mp4 -movflags frag_keyframe+empty_moov fragmented.mp4 in both cases, chrome may require an extra movie flag to be set: -movflags frag_keyframe+empty_moov+
default_base_moof having a properly fragmented mp4 file is all you need to get started.
Media Source API - Web APIs
track
default provides a sourcebuffer with kind, label, and language information for tracks that do not contain this information in the initialization segments of a media chunk.
... track
defaultlist a simple container list for multiple track
default objects.
MouseEvent.button - Web APIs
example html <button id="button" oncontextmenu="event.prevent
default();">click here with your mouse...</button> <p id="log"></p> javascript let button = document.queryselector('#button'); let log = document.queryselector('#log'); button.addeventlistener('mouseup', logmousebutton); function logmousebutton(e) { if (typeof e === 'object') { switch (e.button) { case 0: log.textcontent = 'left button clicked.'; break; case 1: ...
... log.textcontent = 'middle button clicked.'; break; case 2: log.textcontent = 'right button clicked.'; break;
default: log.textcontent = `unknown button code: ${e.button}`; } } } result specifications specification status comment document object model (dom) level 3 events specificationthe definition of 'mouseevent.button' in that specification.
Web-based protocol handlers - Web APIs
when the link is activated, the browser should launch the
default desktop application for handling email.
...firefox will, by
default, prompt the user before handing off the action.
Node.getRootNode() - Web APIs
the available options are: composed: a boolean that indicates whether the shadow root should be returned (false, the
default), or a root node beyond shadow root (true).
...; console.log(parent.getrootnode().nodename); // #document console.log(child.getrootnode().nodename); // #document // create a shadowroot var shadowroot = shadowhost.attachshadow({mode:'open'}); shadowroot.innerhtml = '<style>div{background:#2bb8aa;}</style>' + '<div class="js-shadowchild">content</div>'; var shadowchild = shadowroot.queryselector('.js-shadowchild'); // the
default value of composed is false console.log(shadowchild.getrootnode() === shadowroot); // true console.log(shadowchild.getrootnode({composed:false}) === shadowroot); // true console.log(shadowchild.getrootnode({composed:true}).nodename); // #document </script> specifications specification status comment domthe definition of 'getrootnode()' in that specification.
Notification.permission - Web APIs
default: the user decision is unknown; in this case the application will act as if permission was denied.
...t desktop notification"); } // let's check whether notification permissions have alredy been granted else if (notification.permission === "granted") { // if it's okay let's create a notification var notification = new notification("hi there!"); } // otherwise, we need to ask the user for permission else if (notification.permission !== 'denied' || notification.permission === "
default") { notification.requestpermission(function (permission) { // if the user accepts, let's create a notification if (permission === "granted") { var notification = new notification("hi there!"); } }); } // at last, if the user has denied notifications, and you // want to be respectful there is no need to bother them any more.
OffscreenCanvas.getContext() - Web APIs
this option is only available, if the flag gfx.canvas.willreadfrequently.enable is set to true (which, by
default, is only the case for b2g/firefox os).
... (blink only) storage: string that indicates which storage is used ("persistent" by
default).
PannerNode.coneInnerAngle - Web APIs
the coneinnerangle property's
default value is 360, suitable for a non-directional source.
...le == 45 and coneinnerangle == 30, it means that when the sound is rotated // by between 15 (30/2) and 22.5 (45/2) degrees either direction, // the volume will decrease gradually panner.coneouterangle = 45; // 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...
PannerNode.coneOuterAngle - Web APIs
the coneouterangle property's
default value is 0.
...le == 45 and coneinnerangle == 30, it means that when the sound is rotated // by between 15 (30/2) and 22.5 (45/2) degrees either direction, // the volume will decrease gradually panner.coneouterangle = 45; // 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...
PasswordCredential - Web APIs
this property
defaults to 'username', but may be overridden to match whatever the backend service expects.
...this property
defaults to 'password', but may be overridden to match whatever the backend service expects.
Path2D - Web APIs
path2d.arc() adds an arc to the path which is centered at (x, y) position with radius r starting at startangle and ending at endangle going in the given direction by anticlockwise (
defaulting to clockwise).
... path2d.ellipse() adds an elliptical arc to the path which is centered at (x, y) position with the radii radiusx and radiusy starting at startangle and ending at endangle going in the given direction by anticlockwise (
defaulting to clockwise).
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 generated as a result of an engagement gesture must be received by the document before requestpointerlock will succeed.
... while iframes work by
default, "sandboxed" iframes block pointer lock.
PromiseRejectionEvent.promise - Web APIs
event.prevent
default() is called to indicate that the promise has now been handled.
... window.onunhandledrejection = function(event) { if (event.reason.code && event.reason.code == "module not ready") { window.requestidlecallback(function(deadline) { loadmodule(event.reason.modulename) .then(performstartup); }); event.prevent
default(); } } specifications specification status comment html living standardthe definition of 'promiserejectionevent.promise' in that specification.
PushManager.hasPermission() - Web APIs
the pushmanager.haspermission() method of the pushmanager interface returns a promise that resolves to the pushpermissionstatus of the requesting webapp, which will be one of granted, denied, or
default.
... 29safari no support nowebview android no support nochrome android full support 42firefox android full support 48notes full support 48notes notes push enabled by
default.opera android full support 29safari ios no support nosamsung internet android full support 4.0legend full support full support no support ...
RTCDTMFSender.insertDTMF() - Web APIs
the
default is 100 ms.
...the browser will enforce a minimum value of 30 ms (that is, if you specify a lower value, 30 ms will be used instead); the
default is 70 ms.
RTCDataChannel - Web APIs
the
default is "blob".bufferedamount read only the read-only rtcdatachannel property bufferedamount returns the number of bytes of data currently queued to be sent over the data channel.bufferedamountlowthreshold the rtcdatachannel property bufferedamountlowthreshold is used to specify the number of bytes of buffered outgoing data that is considered "low." the
default value is 0.id read only the read-on...
...reated, or null, which indicates that there is no maximum.negotiated read only the read-only rtcdatachannel property negotiated indicates whether the rtcdatachannel's connection was negotiated by the web app (true) or by the webrtc layer (false).ordered read only the read-only rtcdatachannel property ordered indicates whether or not the data channel guarantees in-order delivery of messages; the
default is true, which indicates that the data channel is indeed ordered.protocol read only the read-only rtcdatachannel property protocol returns a domstring containing the name of the subprotocol in use.
RTCDtlsTransport - Web APIs
the
default policy is "balanced", which provides a balance between performance and compatibility.
...) { results.transportmissing++; } else { switch(transport.state) { case "new": case "connecting": results.connectionpending++; break; case "connected": results.connected++; break; case "closed": results.closed++; break; case "failed": results.failed++; break;
default: results.unknown++; break; } } }); return results; } note that in this code, the new and connecting states are being treated as a single connectionpending status in the returned object.
RTCIceCandidateStats - Web APIs
deleted optional a boolean value indicating whether or not the candidate has been released or deleted; the
default value is false.
... const isusablenetworktype = stats => { switch(stats.networktype) { case "ethernet": case "vpn": return true; case "bluetooth": case "cellular": case "wimax": case "unknown":
default: return false; } } if (rtcstats && rtcstats.type === "local-candidate") { if (!isusablenetworktype(rtcstats)) { abortconnection(); return; } } this code calls a function called abortconnection() if the rtcstats object represents information about a local candidate is which would be using a network connection other than ethernet or a vpn.
RTCOfferAnswerOptions.voiceActivityDetection - Web APIs
the
default value, true, indicates that voice detection should be used and that if possible, the user agent should automatically disable or mute outgoing audio when the audio source is not sensing a human voice.
...the
default value, true, indicates that the user agent should monitor the audio coming from the microphone or other audio source and automatically cease transmitting data or mute when the user isn't speaking into the microphone, a value of false indicates that the audio should continue to be transmitted regardless of whether or not speech is detected.
RTCPeerConnection.getStats() - Web APIs
if this is null (the
default value), statistics will be gathered for the entire rtcpeerconnection.
...if this is null (the
default value), statistics will be gathered for the entire rtcpeerconnection.
RTCPeerConnection - Web APIs
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.get
defaulticeservers() the get
defaulticeservers() method of the rtcpeerconnection interface returns an array of objects based on the rtciceserver dictionary, which indicates what, if any, ice servers the browser will use by
default if none are provided to the rtcpeerconnection in its rtcconfiguration.
... however, browsers are not required to provide any
default ice servers at all.iceconnectionstate read only the read-only property rtcpeerconnection.iceconnectionstate returns an enum of type rtciceconnectionstate which state of the ice agent associated with the rtcpeerconnection.icegatheringstate read only the read-only property rtcpeerconnection.icegatheringstate returns an enum of type rtcicegatheringstate that describes connection's ice gathering state.
RTCRtpSendParameters - Web APIs
degradationpreference specifies the preferred way the webrtc layer should handle optimizing bandwidth against quality in constrained-bandwidth situations; the value comes from the rtcdegradationpreference enumerated string type, and the
default is balanced.
...the
default value is low.
RTCRtpSender.setParameters() - Web APIs
the available options are: degradationpreference specifies the preferred way the webrtc layer should handle optimizing bandwidth against quality in constrained-bandwidth situations; the value comes from the rtcdegradationpreference enumerated string type, and the
default is balanced.
...the
default value is low.
RTCRtpTransceiver.setCodecPreferences() - Web APIs
when preparing to open an rtcpeerconnection, you can change the codec parameters from the user agent's
default configuration by calling setcodecparameters() before calling either rtcpeerconnection.createoffer() or createanswer().
...if codecs is empty, the codec configurations are all returned to the user agent's
defaults.
RTCSessionDescription() - Web APIs
syntax sessiondescription = new rtcsessiondescription(rtcsessiondescriptioninit); values rtcsessiondescriptioninit optional an object providing the
default values for the session description; the object conforms to the rtcsessiondescriptioninit dictionary.
...this value is an empty string ("") by
default and may not be null.
Request.credentials - Web APIs
this is the
default value.
... example in the following snippet, we create a new request using the request.request() constructor (for an image file in the same directory as the script), then save the request credentials in a variable: var myrequest = new request('flowers.jpg'); var mycred = myrequest.credentials; // returns "same-origin" by
default specifications specification status comment fetchthe definition of 'credentials' in that specification.
Request.destination - Web APIs
the string must be one of those found in the requestdestination enumerated type or the empty string, which is the
default value.
... example in the following snippet, we create a new request using the request() constructor (for an image file in the same directory as the script), then save the request's destination: var myrequest = new request('flowers.jpg'); var mydestination = myrequest.destination; // returns the empty string by
default specifications specification status comment fetchthe definition of 'destination' in that specification.
Request.mode - Web APIs
default mode requests can be initiated in a variety of ways, and the mode for a request depends on the particular means by which it was initiated.
... example in the following snippet, we create a new request using the request.request() constructor (for an image file in the same directory as the script), then save the request mode in a variable: var myrequest = new request('flowers.jpg'); var mymode = myrequest.mode; // returns "cors" by
default specifications specification status comment fetchthe definition of 'mode' in that specification.
Request - Web APIs
properties request.cache read only contains the cache mode of the request (e.g.,
default, reload, no-cache).
...the
default is same-origin.
SVGSVGElement - Web APIs
on systems where it is impossible to know the size of a pixel, a suitable
default pixel size is provided.
...when the browser actually knows the physical size of a "screen unit", this float attribute will express that information; otherwise, user agents will provide a suitable
default value (such as .28mm).
Screen.lockOrientation() - Web APIs
default it represents either portrait-primary and landscape-primary depends on natural orientation of devices.
... for example, if the panel resolution is 1280*800,
default will make it landscape, if the resolution is 800*1280,
default will make it to portrait.
ScreenOrientation - Web APIs
methods screenorientation.lock() locks the orientation of the containing document to its
default orientation and returns a promise.
... screenorientation.unlock() unlocks the orientation of the containing document from its
default orientation.
Screen Wake Lock API - Web APIs
concepts and usage most devices by
default turn off their screen after a specified amount of time to prolong the life of the hardware.
... there are plenty of use cases for keeping a screen on, including reading an ebook, map navigation, following a recipe, presenting to an audience, scanning a qr/barcode or applications that use voice or gesture control, rather than tactile input (the
default way to keep a screen awake).
SharedWorker() - Web APIs
if not specified, the
default used is classic.
...if not specified, or if type is classic, the
default used is omit (no credentials required).
SpeechSynthesis - Web APIs
inside the inputform.onsubmit handler, we stop the form submitting with prevent
default(), create a new speechsynthesisutterance instance containing the text from the text <input>, set the utterance's voice to the voice selected in the <select> element, and start the utterance speaking via the speechsynthesis.speak() method.
...document.queryselector('.pitch-value'); var rate = document.queryselector('#rate'); var ratevalue = document.queryselector('.rate-value'); var voices = []; function populatevoicelist() { voices = synth.getvoices(); for(i = 0; i < voices.length ; i++) { var option = document.createelement('option'); option.textcontent = voices[i].name + ' (' + voices[i].lang + ')'; if(voices[i].
default) { option.textcontent += ' --
default'; } option.setattribute('data-lang', voices[i].lang); option.setattribute('data-name', voices[i].name); voiceselect.appendchild(option); } } populatevoicelist(); if (speechsynthesis.onvoiceschanged !== undefined) { speechsynthesis.onvoiceschanged = populatevoicelist; } inputform.onsubmit = function(event) { event.prevent
default(...
SpeechSynthesisUtterance.lang - Web APIs
the <html> lang value) lang will be used, or the user-agent
default if that is unset too.
... inputform.onsubmit = function(event) { event.prevent
default(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selectedoptions[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } utterthis.lang = 'en-us'; synth.speak(utterthis); inputtxt.blur(); } specifications specification sta...
SpeechSynthesisUtterance.voice - Web APIs
if not set by the time the utterance is spoken, the voice used will be the most suitable
default voice available for the utterance's lang setting.
... inputform.onsubmit = function(event) { event.prevent
default(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selectedoptions[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); inputtxt.blur(); } specifications specification status comment web ...
SpeechSynthesisUtterance.volume - Web APIs
if not set, the
default value 1 will be used.
... inputform.onsubmit = function(event) { event.prevent
default(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selectedoptions[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } utterthis.volume = 0.5; synth.speak(utterthis); inputtxt.blur(); } specifications specification statu...
SpeechSynthesisUtterance - Web APIs
inside the inputform.onsubmit handler, we stop the form submitting with prevent
default(), use the constructor to create a new utterance instance containing the text from the text <input>, set the utterance's voice to the voice selected in the <select> element, and start the utterance speaking via the speechsynthesis.speak() method.
...ment.queryselector('form'); var inputtxt = document.queryselector('input'); var voiceselect = document.queryselector('select'); for(var i = 0; i < voices.length; i++) { var option = document.createelement('option'); option.textcontent = voices[i].name + ' (' + voices[i].lang + ')'; option.value = i; voiceselect.appendchild(option); } inputform.onsubmit = function(event) { event.prevent
default(); var utterthis = new speechsynthesisutterance(inputtxt.value); utterthis.voice = voices[voiceselect.value]; synth.speak(utterthis); inputtxt.blur(); } specifications specification status comment web speech apithe definition of 'speechsynthesisutterance' in that specification.
SpeechSynthesisVoice - Web APIs
properties speechsynthesisvoice.
default read only a boolean indicating whether the voice is the
default voice for the current app language (true), or not (false.) speechsynthesisvoice.lang read only returns a bcp 47 language tag indicating the language of the voice.
... function populatevoicelist() { voices = synth.getvoices(); for(i = 0; i < voices.length ; i++) { var option = document.createelement('option'); option.textcontent = voices[i].name + ' (' + voices[i].lang + ')'; if(voices[i].
default) { option.textcontent += ' --
default'; } option.setattribute('data-lang', voices[i].lang); option.setattribute('data-name', voices[i].name); voiceselect.appendchild(option); } } populatevoicelist(); if (speechsynthesis.onvoiceschanged !== undefined) { speechsynthesis.onvoiceschanged = populatevoicelist; } inputform.onsubmit = function(event) { event.prevent
default(...
StylePropertyMapReadOnly - Web APIs
the style map will include all the
default and inherted css property values.
... </p> <dl id="output"></dl> we add a touch of css with a custom property to better demonstrate the output: p { --somevariable: 1.6em; --someothervariable: translatex(33vw); --anothervariable: 42; line-height: var(--somevariable); } we add javascript to grab our paragraph and return back a definition list of all the
default css property values using computedstylemap().
TextDecoder() - Web APIs
syntax decoder = new textdecoder(utflabel, options); parameters utflabeloptional is a domstring,
defaulting to "utf-8", containing the label of the encoder.
...it
defaults to false.
TextEncoder.prototype.encodeInto() - Web APIs
var globaltextencoderinstance; ////////////////////////////////////////////////////////////////////////////////////// function encoderreplacer(nonasciichars){ // make the utf string into a binary utf-8 encoded string var point = nonasciichars.charcodeat(0)|0; if (0xd800 <= point && point <= 0xdbff) { var nextcode = nonasciichars.charcodeat(1)|0; //
defaults to 0 when nan, causing null replacement character if (0xdc00 <= nextcode && nextcode <= 0xdfff) { //point = ((point - 0xd800)<<10) + nextcode - 0xdc00 + 0x10000|0; point = (point<<10) + nextcode - 0x35fdc00|0; if (point > 0xffff) return fromcharcode( (0x1e/*0b11110*/<<3) | (point>>>18), ...
... break; } case 14: if ((i+2|0) < u8arrlen) { read = read + 1|0; break; } case 15: if ((i+3|0) < u8arrlen) { read = read + 1|0; break; }
default: break putchars; } //read = read + ((char >>> 6) !== 2) |0; u8arr[i] = char; } return {"written": i, "read": inputlength < read ?
UIEvent() - Web APIs
uieventinit optional is a uieventinit dictionary, having the following fields: detail: optional and
defaulting to 0, of type long, that is a event-dependant value associated with the event.
... view: optional and
defaulting to null, of type windowproxy, that is the window associated with the event .
WEBGL_draw_buffers - Web APIs
in webgl2, the functionality of this extension is available on the webgl2 context by
default.
...(when using webgl2, this method is available as gl.drawbuffers() by
default).
WebGLRenderingContext.blendEquationSeparate() - Web APIs
must be either: gl.func_add: source + destination (
default value), gl.func_subtract: source - destination, gl.func_reverse_subtract: destination - source, when using the ext_blend_minmax extension: ext.min_ext: minimum of source and destination, ext.max_ext: maximum of source and destination.
...must be either: gl.func_add: source + destination (
default value), gl.func_subtract: source - destination, gl.func_reverse_subtract: destination - source, when using the ext_blend_minmax extension: ext.min_ext: minimum of source and destination, ext.max_ext: maximum of source and destination.
WebGL constants - Web APIs
samples 0x80a9 sample_coverage_value 0x80aa sample_coverage_invert 0x80ab compressed_texture_formats 0x86a3 vendor 0x1f00 renderer 0x1f01 version 0x1f02 implementation_color_read_type 0x8b9a implementation_color_read_format 0x8b9b browser_
default_webgl 0x9244 buffers constants passed to webglrenderingcontext.bufferdata(), webglrenderingcontext.buffersubdata(), webglrenderingcontext.bindbuffer(), or webglrenderingcontext.getbufferparameter().
...t_component_type 0x8211 framebuffer_attachment_red_size 0x8212 framebuffer_attachment_green_size 0x8213 framebuffer_attachment_blue_size 0x8214 framebuffer_attachment_alpha_size 0x8215 framebuffer_attachment_depth_size 0x8216 framebuffer_attachment_stencil_size 0x8217 framebuffer_
default 0x8218 depth_stencil_attachment 0x821a depth_stencil 0x84f9 depth24_stencil8 0x88f0 draw_framebuffer_binding 0x8ca6 read_framebuffer 0x8ca8 draw_framebuffer 0x8ca9 read_framebuffer_binding 0x8caa renderbuffer_samples 0x8cab framebuffer_attachment...
Signaling and video calling - Web APIs
finally, the "hangup-button" <button>, to disconnect from a call, is defined and configured to start disabled (setting this as our
default for when no call is connected) and apply the function hangupcall() on click.
... break;
default: alert("error opening your camera and/or microphone: " + e.message); break; } closevideocall(); } an error message is displayed in all cases but one.
Taking still photos with WebRTC - Web APIs
this function's job is to request access to the user's webcam, initialize the output <img> to a
default state, and to establish the event listeners needed to receive each frame of video from the camera and react when the button is clicked to capture an image.
... handle clicks on the button to capture a still photo each time the user clicks the startbutton, we need to add an event listener to the button, to be called when the click event is issued: startbutton.addeventlistener('click', function(ev){ takepicture(); ev.prevent
default(); }, false); this method is simple enough: it just calls our takepicture() function, defined below in the section capturing a frame from the stream, then calls event.prevent
default() on the received event to prevent the click from being handled more than once.
Web Video Text Tracks Format (WebVTT) - Web APIs
<video controls autoplay src="video.webm"> <track
default src="track.vtt"> </video> within the webvtt file itself you can also define the style directly in the webvtt file.
... constructor is the first point for starting the cue which is defined using the
default constructor vttcue(starttime, endtime, text) where starting time, ending time and text for cue can be adjusted.
Movement, orientation, and motion: A WebXR example - Web APIs
let refspacetype; xrsession = session; xrbutton.innertext = "exit webxr"; xrsession.addeventlistener("end", sessionended); let canvas = document.queryselector("canvas"); gl = canvas.getcontext("webgl", { xrcompatible: true }); if (allowmouserotation) { canvas.addeventlistener("pointermove", handlepointermove); canvas.addeventlistener("contextmenu", (event) => { event.prevent
default(); }); } if (allowkeyboardmotion) { document.addeventlistener("keydown", handlekeydown); } shaderprogram = initshaderprogram(gl, vssource, fssource); programinfo = { program: shaderprogram, attriblocations: { vertexposition: gl.getattriblocation(shaderprogram, 'avertexposition'), vertexnormal: gl.getattriblocation(shaderprogram, 'avertexnormal'), texture...
... move_distance; break; case "d": case "d": transversedistance -= move_distance; break; case "arrowup": axialdistance += move_distance; break; case "arrowdown": axialdistance -= move_distance; break; case "r": case "r": transversedistance = axialdistance = verticaldistance = 0; mouseyaw = mousepitch = 0; break;
default: break; } } the keys and their effects are: the w key slides the viewer forward by move_distance.
Web Animations API - Web APIs
documenttimeline represents animation timelines, including the
default document timeline (accessed using the document.timeline property).
... extensions to the document interface document.timeline the documenttimeline object representing the
default document timeline.
Web Speech API - Web APIs
there are two components to this api: speech recognition is accessed via the speechrecognition interface, which provides the ability to recognize voice context from an audio input (normally via the device's
default speech recognition service) and respond appropriately.
...grammar is defined using jspeech grammar format (jsgf.) speech synthesis is accessed via the speechsynthesis interface, a text-to-speech component that allows programs to read out their text content (normally via the device's
default speech synthesiser.) different voice types are represented by speechsynthesisvoice objects, and different parts of text that you want to be spoken are represented by speechsynthesisutterance objects.
window.dump() - Web APIs
in gecko dump() is disabled by
default – it doesn't do anything but doesn't raise an error either.
...note: this preference is not listed in about:config by
default, you may need to create it (right-click the content area -> new -> boolean).
Window.event - Web APIs
ndroidfirefox for androidopera for androidsafari on iossamsung interneteventchrome full support 1edge full support 12firefox full support 63notes disabled full support 63notes disabled notes this was briefly enabled by
default in 65, then removed again while related compatibility issues are sorted out (see bug 1520756).disabled from version 63: this feature is behind the dom.window.event.enabled preference (needs to be set to true).
... full support 1.1webview android full support 1chrome android full support 18firefox android full support 63notes disabled full support 63notes disabled notes this was briefly enabled by
default in 65, then removed again while related compatibility issues are sorted out (see bug 1520756).disabled from version 63: this feature is behind the dom.window.event.enabled preference (needs to be set to true).
Window.getComputedStyle() - Web APIs
defaultview in many code samples, getcomputedstyle is used from the document.
defaultview object.
...it's likely the
defaultview pattern was a combination of folks not wanting to write a testing spec for window and making an api that was also usable in java.
Privileged features - Web APIs
there will be no context menu defined by
default and none of the standard keyboard shortcuts will work.
... titlebar by
default, all new secondary windows have a titlebar.
Window.resizeBy() - Web APIs
creating and resizing an external window for security reasons, it's no longer possible in firefox for a website to change the
default size of a window in a browser if the window wasn’t created by window.open(), or contains more than one tab.
... even if you create window by window.open() it is not resizable by
default.
Window.speechSynthesis - Web APIs
inside the inputform.onsubmit handler, we stop the form submitting with prevent
default(), create a new speechsynthesisutterance instance containing the text from the text <input>, set the utterance's voice to the voice selected in the <select> element, and start the utterance speaking via the speechsynthesis.speak() method.
...hesis; var inputform = document.queryselector('form'); var inputtxt = document.queryselector('input'); var voiceselect = document.queryselector('select'); function populatevoicelist() { voices = synth.getvoices(); for(i = 0; i < voices.length ; i++) { var option = document.createelement('option'); option.textcontent = voices[i].name + ' (' + voices[i].lang + ')'; if(voices[i].
default) { option.textcontent += ' --
default'; } option.setattribute('data-lang', voices[i].lang); option.setattribute('data-name', voices[i].name); voiceselect.appendchild(option); } } populatevoicelist(); if (speechsynthesis.onvoiceschanged !== undefined) { speechsynthesis.onvoiceschanged = populatevoicelist; } inputform.onsubmit = function(event) { event.prevent
default(...
Window.window - Web APIs
for example, if we refer to "this.window.location.href", a javascript module could define a property called "window" inside of a class it defined (since no global "window" variable exists for it by
default) which could be created after passing in a window object to the module class' constructor.
...the
default in the class could still be set as the current window object.
WindowEventHandlers.onbeforeunload - Web APIs
the html specification states that authors should use the event.prevent
default() method instead of using event.returnvalue to prompt the user.
... window.addeventlistener('beforeunload', function (e) { // cancel the event e.prevent
default(); // if you prevent
default behavior in mozilla firefox prompt will always be shown // chrome requires returnvalue to be set e.returnvalue = ''; }); guarantee the browser unload by removing the returnvalue property of the event window.addeventlistener('beforeunload', function (e) { // the absence of a returnvalue property on the event will guarantee the browser unload happens delete e['returnvalue']; }); notes when your page uses javascript to render content, the javascript may stop when leaving and then navigating back to the page.
WindowOrWorkerGlobalScope.setTimeout() - Web APIs
the usual rules for setting the this keyword for the called function apply, and if you have not set this in the call or with bind, it will
default to the window (or global) object.
...however, in the following: settimeout(myarray.mymethod, 1.0*1000); // prints "[object window]" after 1 second settimeout(myarray.mymethod, 1.5*1000, '1'); // prints "undefined" after 1.5 seconds the myarray.mymethod function is passed to settimeout, then when it's called, its this is not set so it
defaults to the window object.
Worker() - Web APIs
if not specified, the
default used is classic.
...if not specified, or if type is classic, the
default used is omit (no credentials required).
Worker.prototype.postMessage() - Web APIs
main thread code: var myworker = new chromeworker(self.path + 'myworker.js'); function handlemessagefromworker(msg) { console.log('incoming message from worker, msg:', msg); switch (msg.data.atopic) { case 'do_sendmainarrbuff': sendmainarrbuff(msg.data.abuf) break;
default: throw 'no atopic on incoming message to chromeworker'; } } myworker.addeventlistener('message', handlemessagefromworker); // ok lets create the buffer and send it var arrbuf = new arraybuffer(8); console.info('arrbuf.bytelength pre transfer:', arrbuf.bytelength); myworker.postmessage( { atopic: 'do_sendworkerarrbuff', abuf: arrbuf // the array buffer that w...
...e passed to the transferrable section 3 lines below }, [ arrbuf // the array buffer we created 9 lines above ] ); console.info('arrbuf.bytelength post transfer:', arrbuf.bytelength); worker code self.onmessage = function (msg) { switch (msg.data.atopic) { case 'do_sendworkerarrbuff': sendworkerarrbuff(msg.data.abuf) break;
default: throw 'no atopic on incoming message to chromeworker'; } } function sendworkerarrbuff(abuf) { console.info('from worker, pre send back abuf.bytelength:', abuf.bytelength); self.postmessage({atopic:'do_sendmainarrbuff', abuf:abuf}, [abuf]); console.info('from worker, post send back abuf.bytelength:', abuf.bytelength); } output logged arrbuf.bytelength pre transf...
XMLHttpRequest.response - Web APIs
"" an empty responsetype string is treated the same as "text", the
default type.
... the content is handled as raw text data (since nothing here is overriding the
default responsetype).
XMLHttpRequest.send() - Web APIs
if the request is asynchronous (which is the
default), this method returns as soon as the request is sent and the result is delivered using events.
... null if no value is specified for the body, a
default value of null is used.
XRPermissionDescriptor - Web APIs
the available features are the same as those used by xrsessioninit; see
default features in xrsessioninit for further information.
... let xrpermissiondesc = { name: "xr", mode: "immersive-vr", requiredfeatures: [ "local-floor" ] }; if (navigator.permissions) { navigator.permissions.query(xrpermissiondesc).then(({state}) => { switch(state) { case "granted": setupxr(); break; case "prompt": promptandsetupxr(); break;
default: /* do nothing otherwise */ break; } .catch(err) { console.log(err); } } else { setupxr(); } specifications specification status comment webxr device apithe definition of 'xrpermissiondescriptor' in that specification.
XRReferenceSpace.getOffsetReferenceSpace() - Web APIs
note also that we set oncontextmenu up to be ignored by calling prevent
default() on those events.
... canvas.oncontextmenu = (event) => { event.prevent
default(); }; canvas.addeventlistener("mousemove", (event) => { if (event.buttons & 2) { rotateviewby(event.movementx, event.movementy); } }); next, the rotateviewby() function, which updates the mouse look direction's yaw and pitch based on the mouse delta values from the mousemove event.
XRRenderState.inlineVerticalFieldOfView - Web APIs
the read-only inlineverticalfieldofview property of the xrrenderstate interface returns the
default vertical field of view for "inline" sessions and null for all immersive sessions.
... syntax var inlineverticalfieldofview = xrrenderstate.inlineverticalfieldofview; value a number for "inline" sessions, which represents the
default field of view, and null for immersive sessions.
XRSessionInit - Web APIs
if none are included, the device will use a
default feature configuration for all options.
...
default features immersive sessions all immersive (both immersive-vr and immersive-ar) sessions support both the viewer and local reference spaces.
XRWebGLLayer.framebuffer - Web APIs
these differences cause the opaque framebuffer to behave more like the
default webgl framebuffer: opaque framebuffers may support anti-aliasing, even under webgl 1.0, which don't normally do so.
... the
default configuration of a new framebuffer upon creating a new xrwebgllayer, its new framebuffer is initialized just like the
default framebuffer for any webgl interface: the color buffer is configured with its clear value set to the color (0, 0, 0, 0) (meaning transparent black).
Using the aria-hidden attribute - Accessibility
values false (
default) the element is exposed to the accessibility api.
... undefined (
default) the user agent determines if the element is exposed to or hidden from the accessibility api.
Using the aria-invalid attribute - Accessibility
values vocabulary: false (
default) no errors detected grammar a grammatical error has been detected.
...note that since the
default value for aria-required is false, it is not strictly necessary to add the attribute to input.
Using the link role - Accessibility
native <a> elements also support keyboard and focus requirements by
default, without need for additional customization.
...the
default purple color for visited links).
ARIA Test Cases - Accessibility
leopard) n/a n/a - fail window-eyes - - - - nvda - n/a - - zoom (leopard) pass n/a pass pass zoomtext - - - - orca - - - - treegrid examples: grid with expandable rows expected at behavior: (mz) screen readers should announce the current cell or row depending on the
default behavior of the at in other similar situations (e.
...if it does not indicate separators by
default in the operating system, it should honor this for web applications, too.
Cognitive accessibility - Accessibility
don't alter or remove the browser's
default :focus styling, unless you're making focus even more obvious.
...similarly, don't change
defaults like the browser's back button.
HTML To MSAA - Accessibility
selectable if @name attribute is presented state_system_ linked if @href attribute is presented or click event listener is registered state_system_ traversed if link is traversed n/a "jump" if @href is valid n/a br role_system_ whitespace '\n' (new line char) state_system_ readonly n/a n/a n/a button role_system_ pushbutton from child nodes n/a state_system_ focusable state_system_
default if @type attribute has value "submit" n/a "press" n/a caption bstr role n/a n/a n/a description_for (0x100f), points to table element div bstr role n/a n/a n/a n/a n/a n/a fieldset role_system_ grouping text equivalent from child legend element n/a n/a labelled_by (1003), points to legend element n/a n/a hr role_system_ separator n/a n/a n/a n/a n/a n/a img, input @type...
...ole_system_ graphic from @alt attribute, empty @alt attribute means name can't be calculated at all n/a state_system_ animated if image has more than one frame n/a "showlongdesc" if @longdesc attribute is presented n/a if @usemap attribute is used then image accessible has children for each map item input @type=button, submit, reset role_system_ pushbutton from @value attribute, @alt attribute,
default label, @src attribute, @data attribute n/a state_system_
default if @type attribute has value "submit" n/a "press" n/a input @type=text, textarea role_system_ text n/a value property of input dom element state_system_ readonly if @readonly attribute is used n/a "activate" n/a input @type=password role_system_ text n/a n/a state_system_ readonly if @readonly attribute is used state_syste...
:-moz-ui-invalid - CSS: Cascading Style Sheets
by
default, gecko applies a style that creates a red "glow" (using the box-shadow property) around items, which have this pseudo-class applied.
... see the :invalid pseudo-class for an example that shows how to override the
default style.
::-webkit-meter-optimum-value - CSS: Cascading Style Sheets
green is the
default color.
... html <meter min="0" max="10" value="6">score out of 10</meter> css meter::-webkit-meter-bar { /* required to get rid of the
default background property */ background : none; background-color : whitesmoke; box-shadow : 0 5px 5px -5px #333 inset; } meter::-webkit-meter-optimum-value { box-shadow: 0 5px 5px -5px #999 inset; } result ...
:focus-visible - CSS: Cascading Style Sheets
(many browsers show a “focus ring” by
default in this case.) this selector is useful to provide a different focus indicator based on the user’s input modality (mouse vs.
... <input value="
default styles"><br> <button>
default styles</button><br> <input class="focus-only" value=":focus only"><br> <button class="focus-only">:focus only</button><br> <input class="focus-visible-only" value=":focus-visible only"><br> <button class="focus-visible-only">:focus-visible only</button> input, button { margin: 10px; } .focus-only:focus { outline: 2px solid black; } .focus-visible-only:focus-vis...
:link - CSS: Cascading Style Sheets
syntax :link examples by
default, most browsers apply a special color value to visited links.
...(after that, you'll need to clear your browser history to see them again.) however, the background-color values are likely to remain, as most browsers do not set that property on visited links by
default.
:visited - CSS: Cascading Style Sheets
of the properties that can be set with this pseudo-class, your browser probably has a
default value for color and column-rule-color only.
... html <a href="#test-visited-link">have you visited this link yet?</a><br> <a href="">you've already visited this link.</a> css a { /* specify non-transparent
defaults to certain properties, allowing them to be styled with the :visited state */ background-color: white; border: 1px solid white; } a:visited { background-color: yellow; border-color: hotpink; color: hotpink; } result specifications specification status comment html living standardthe definition of ':visited' in that specification.
:where() - CSS: Cascading Style Sheets
you can see the result below (although bear in mind that currently :is() and :where() are currently only enabled by
default in firefox nightly, version 77+.
...to change preferences in chrome, visit chrome://flags.edge no support nofirefox full support 78 full support 78 full support 77notes disabled notes enabled by
default in firefox nightly.disabled from version 77: this feature is behind the layout.css.is-where-selectors.enabled preference (needs to be set to enabled).
Introduction to the CSS basic box model - CSS: Cascading Style Sheets
if the box-sizing property is set to content-box (
default) and if the element is a block element, the content area's size can be explicitly defined with the width, min-width, max-width, height, min-height, and max-height properties.
...this
default behavior can be altered with the background-clip css property.
Relationship of flexbox to other layout methods - CSS: Cascading Style Sheets
this would be done via html, by adding a dir and lang attribute to the html element to indicate the document language and
default text direction.
...once there is better browser support this feature will be very useful in circumstances where you need the markup for semantic reasons but do not want to display the box that it would generate by
default.
Flow Layout and Overflow - CSS: Cascading Style Sheets
as we have already learned, using any of these values, other than the
default of visible, will create a new block formatting context.
...it takes one of two values clip, in which case content is clipped when it overflows, this is the initial value and therefore the
default behaviour.
Line-based placement with CSS Grid - CSS: Cascading Style Sheets
color: #d9480f; } <div class="wrapper"> <div class="box1">one</div> <div class="box2">two</div> <div class="box3">three</div> <div class="box4">four</div> </div> .box1 { grid-column: 1 / 2; grid-row: 1 / 4; } .box2 { grid-column: 3 / 4; grid-row: 1 / 3; } .box3 { grid-column: 2 / 3; grid-row: 1 / 2; } .box4 { grid-column: 2 / 4; grid-row: 3 / 4; }
default spans in the above examples i specified every end row and column line, in order to demonstrate the properties, however in practice if an item only spans one track you can omit the grid-column-end or grid-row-end value.
... grid
defaults to spanning one track.
Consistent list indentation - CSS: Cascading Style Sheets
if you want to reproduce the
default display in netscape 6.x, you write: ul {margin-left: 0; padding-left: 40px;} if you're more interested in following the internet explorer/opera model, then: ul {margin-left: 40px; padding-left: 0;} of course, you can fill in your own preferred values.
...they use different
default styles, and that's where the problems creep in.
Introducing the CSS Cascade - CSS: Cascading Style Sheets
user-agent stylesheets the browser has a basic style sheet that gives a
default style to any document.
... all lets you opt to immediately restore all properties to any of their initial (
default) state, the state inherited from the previous level of the cascade, a specific origin (the user-agent stylesheet, the author stylesheet, or the user stylesheet), or even to clear the values of the properties entirely.
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() :nth-last-col()...
... css basic user interface module level 3 recommendation defined :
default, :valid, :invalid, :in-range, :out-of-range, :required, :optional, :read-only and :read-write, but without the associated semantic meaning.
Using CSS custom properties (variables) - CSS: Cascading Style Sheets
with the following css: .two { --test: 10px; } .three { --test: 2em; } in this case, the results of var(--test) are: for the class="two" element: 10px for the class="three" element: 2em for the class="four" element: 10px (inherited from its parent) for the class="one" element: invalid value, which is the
default value of any custom property keep in mind that these are custom properties, not actual variables like you might find in other programming languages.
... set the value to its
default initial value, i.e., black.
animation-fill-mode - CSS: Cascading Style Sheets
this is the
default value.
...it demonstrates how, for an animation that runs for an infinite time, you can cause it to remain in its final state rather than reverting to the original state (which is the
default).
border-bottom - CSS: Cascading Style Sheets
it sets those that are not specified to their
default values.
...since the
default value of border-bottom-style is none, not specifying the border-style part results in no border.
border-image-slice - CSS: Cascading Style Sheets
it is discarded by
default, but is used like a background image if the keyword fill is set.
...the source image for the borders is as follows: the diamonds are 30px across, therefore setting 30 pixels as the value for both border-width and border-image-slice will get you complete and fairly crisp diamonds in your border: border-width: 30px; border-image-slice: 30; these are the
default values we have used in this example.
border-left - CSS: Cascading Style Sheets
it sets those that are not specified to their
default values.
...since the
default value of border-left-style is none, not specifying the border-style part results in no border.
border-right - CSS: Cascading Style Sheets
it sets those that are not specified to their
default values.
...since the
default value of border-right-style is none, not specifying the border-style part results in no border.
border-top - CSS: Cascading Style Sheets
it sets those that are not specified to their
default values.
...since the
default value of border-top-style is none, not specifying the border-style part results in no border.
box-lines - CSS: Cascading Style Sheets
/* keyword values */ box-lines: single; box-lines: multiple; /* global values */ box-lines: inherit; box-lines: initial; box-lines: unset; by
default a horizontal box will lay out its children in a single row, and a vertical box will lay out its children in a single column.
...the
default value is single, which means that all elements will be placed in a single row or column, and any elements that don't fit will simply be considered overflow.
caret-color - CSS: Cascading Style Sheets
by
default, it is black, but its color can be altered with this property.
...)where <alpha-value> = <number> | <percentage><hue> = <number> | <angle> examples setting a custom caret color html <input value="this field uses a
default caret." size="64"/> <input class="custom" value="i have a custom caret color!" size="64"/> <p contenteditable class="custom">this paragraph can be edited, and its caret has a custom color as well!</p> css input { caret-color: auto; display: block; margin-bottom: .5em; } input.custom { caret-color: red; } p.custom { caret-color: green; } result specifications specif...
color-adjust - CSS: Cascading Style Sheets
by
default, the browser is allowed to make any adjustments to the element's appearance it determines to be necessary and prudent given the type and capabilities of the output device.
...this is the
default.
conic-gradient() - CSS: Cascading Style Sheets
if omitted, the
default value is center, meaing the gradient will be centered, .
...the following two gradients are equivalent conic-gradient(red, orange, yellow, green, blue); conic-gradient(red 0deg, orange 90deg, yellow 180deg, green 270deg, blue 360deg); by
default, colors transition smoothly from the color at one color stop to the color at the subsequent color stop, with the midpoint between the colors being the half way point between the color transition.
counter() - CSS: Cascading Style Sheets
if omitted, the counter-style
defaults to decimal formal syntax counter( <custom-ident>, <counter-style>?
... )where <counter-style> = <counter-style-name> | symbols()where <counter-style-name> = <custom-ident> examples
default value compared to upper roman html <ol> <li></li> <li></li> <li></li> </ol> css ol { counter-reset: listcounter; } li { counter-increment: listcounter; } li::after { content: "[" counter(listcounter) "] == [" counter(listcounter, upper-roman) "]"; } result decimal-leading-zero compared to lower-alpha html <ol> <li></li> <li></li> <li></li> </ol> css ol { counter-reset: count; } li { counter-increment: count; } li::after { content: "[" counter(count, decimal-leading-zero) "] == [" counter(count, lower-alpha) "]"; } result specifications specification status comment css lists module...
cursor - CSS: Cascading Style Sheets
default the platform-dependent
default cursor.
..., ]* [ auto |
default | none | context-menu | help | pointer | progress | wait | cell | crosshair | text | vertical-text | alias | copy | move | no-drop | not-allowed | e-resize | n-resize | ne-resize | nw-resize | s-resize | se-resize | sw-resize | w-resize | ew-resize | ns-resize | nesw-resize | nwse-resize | col-resize | row-resize | all-scroll | zoom-in | zoom-out | grab | grabbing ] ] examples setting cursor ty...
<easing-function> - CSS: Cascading Style Sheets
instead, holding at both the 0% mark and the 100% mark, each for 1/n of the duration start is the equivalent of jump-start end is the equivalent of jump-end end is the
default.
...*/ cubic-bezier(2.45, 0.6, 4, 0.1) /* the two points must be defined, there is no
default value.
flex-wrap - CSS: Cascading Style Sheets
syntax flex-wrap: nowrap; /*
default value */ flex-wrap: wrap; flex-wrap: wrap-reverse; /* global values */ flex-wrap: inherit; flex-wrap: initial; flex-wrap: unset; the flex-wrap property is specified as a single keyword chosen from the list of values below.
...this is the
default value.
grid-area - CSS: Cascading Style Sheets
2 another-grid-area; /* span && [ <integer> || <custom-ident> ] values */ grid-area: span 3; grid-area: span 3 / span some-grid-area; grid-area: 2 span / another-grid-area span; /* global values */ grid-area: inherit; grid-area: initial; grid-area: unset; values auto is a keyword indicating that the property contributes nothing to the grid item’s placement, indicating auto-placement or a
default span of 1.
... if the <integer> is omitted, it
defaults to 1.
grid-column-end - CSS: Cascading Style Sheets
n + <integer> + <custom-ident> values */ grid-column-end: span 3; grid-column-end: span somegridarea; grid-column-end: 5 somegridarea span; /* global values */ grid-column-end: inherit; grid-column-end: initial; grid-column-end: unset; values auto is a keyword indicating that the property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a
default span of 1.
... if the <integer> is omitted, it
defaults to 1.
grid-column-start - CSS: Cascading Style Sheets
values auto a keyword indicating that the property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a
default span of 1.
... if the <integer> is omitted, it
defaults to 1.
grid-column - CSS: Cascading Style Sheets
values auto is a keyword indicating that the property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a
default span of 1.
... if the <integer> is omitted, it
defaults to 1.
grid-row-end - CSS: Cascading Style Sheets
ridarea 4; /* span + <integer> + <custom-ident> values */ grid-row-end: span 3; grid-row-end: span somegridarea; grid-row-end: 5 somegridarea span; /* global values */ grid-row-end: inherit; grid-row-end: initial; grid-row-end: unset; values auto is a keyword indicating that the property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a
default span of 1.
... if the <integer> is omitted, it
defaults to 1.
grid-row-start - CSS: Cascading Style Sheets
values auto is a keyword indicating that the property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a
default span of 1.
... if the <integer> is omitted, it
defaults to 1.
grid-row - CSS: Cascading Style Sheets
somegridarea; grid-row: 5 somegridarea span; grid-row: span 3 / 6; grid-row: span somegridarea / span someothergridarea; grid-row: 5 somegridarea span / 2 span; /* global values */ grid-row: inherit; grid-row: initial; grid-row: unset; values auto is a keyword indicating that the property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a
default span of 1.
... if the <integer> is omitted, it
defaults to 1.
image() - CSS: Cascading Style Sheets
by
default, these are pixel values.
...y-sensitive images <ul> <li dir="ltr">bullet is a right facing arrow on the left</li> <li dir="rtl">bullet is the same arrow, flipped to point left.</li> </ul> ul { list-style-image: image(ltr 'https://mdn.mozillademos.org/files/16412/rightarrow.png'); } in the left-to-right list items — those with dir="ltr" set on the element itself or inheriting the directionality from an ancestor or
default value for the page — the image will be used as-is.
Inheritance - CSS: Cascading Style Sheets
css properties can be categorized in two types: inherited properties, which by
default are set to the computed value of the parent element non-inherited properties, which by
default are set to initial value of the property refer to any css property definition to see whether a specific property inherits by
default ("inherited: yes") or not ("inherited: no").
...for example: font { all: revert; font-size: 200%; font-weight: bold; } this reverts the style of the font property to the user agent's
default unless a user stylesheet exists, in which case that is used instead.
justify-items - CSS: Cascading Style Sheets
the css justify-items property defines the
default justify-self for all items of the box, giving them all a
default way of justifying each box along the appropriate axis.
...initially the grid container is given a justify-items value of stretch (the
default), which causes the grid items to stretch across the entire width of their cells.
<length> - CSS: Cascading Style Sheets
when used within the root element font-size, it represents its initial value (a common browser
default is 16px, but user-defined preferences may modify this).
... note: many users increase their user agent's
default font size to make text more legible.
list-style-type - CSS: Cascading Style Sheets
only a few elements (<li> and <summary>) have a
default value of display: list-item.
... disc a filled circle (
default value) circle a hollow circle square a filled square decimal decimal numbers beginning with 1 cjk-decimal han decimal numbers e.g.
paint-order - CSS: Cascading Style Sheets
order: normal; /* single values */ paint-order: stroke; /* draw the stroke first, then fill and markers */ paint-order: markers; /* draw the markers first, then fill and stroke */ /* multiple values */ paint-order: stroke fill; /* draw the stroke first, then the fill, then the markers */ paint-order: markers stroke fill; /* draw markers, then stroke, then fill */ if no value is specified, the
default paint order is fill, stroke, markers.
... when one value is specified, that one is painted first, followed by the other two in their
default order relative to one another.
place-self - CSS: Cascading Style Sheets
initially the grid container has justify-items and align-items values of stretch — the
defaults — which causes the grid items to stretch across the entire width of their cells.
... the second, third, and fourth grid items are then given different values of place-self, to show how these override the
default placements.
position - CSS: Cascading Style Sheets
this is the
default value.
...my adjacent block level elements sit on new lines below me.</p> <p class="positioned">by
default we span 100% of the width of our parent element, and we are as tall as our child content.
<position> - CSS: Cascading Style Sheets
if only a single offset value is specified, it defines the x-coordinate, with the value for the other axis
defaulting to center.
... /* 1-value syntax */ keyword /* either the horizontal or vertical position; the other axis
defaults to center */ value /* the position on the x-axis; the y-axis
defaults to 50% */ /* 2-value syntax */ keyword keyword /* a keyword for each direction (the order is irrelevant) */ keyword value /* a keyword for horizontal position, value for vertical position */ value keyword /* a value for horizontal position, keyword for vertical position */ value value /* a value for each direction (horizontal then vertical) */ /* 4-value syntax */ keyword value keyword value /* each value is an offset from the keyword that preceeds it */ formal syntax [ [ left | center | right ] || [ top | center | bottom ] | [ left | center ...
scrollbar-width - CSS: Cascading Style Sheets
it must be one of the following values: auto the
default scrollbar width for the platform.
... thin a thin scrollbar width variant on platforms that provide that option, or a thinner scrollbar than the
default platform scrollbar width.
shape-outside - CSS: Cascading Style Sheets
by
default, inline content wraps around its margin box; shape-outside provides a way to customize this wrapping, making it possible to wrap text around complex objects rather than simple boxes.
...otherwise, the reference box
defaults to margin-box.
tab-size - CSS: Cascading Style Sheets
formal definition initial value8applies toblock containersinheritedyescomputed valuethe specified integer or an absolute lengthanimation typea length formal syntax <integer> | <length> examples expanding by character count pre { tab-size: 4; /* set tab size to 4 characters wide */ } collapse tabs pre { tab-size: 0; /* remove indentation */ } comparing to the
default size this example compares a
default tab size with a custom tab size.
... html <p>no tab</p> <p>	
default tab size of 8 characters wide</p> <p class="custom">	custom tab size of 3 characters wide</p> <p> 3 spaces, equivalent to the custom tab size</p> css p { white-space: pre; } .custom { tab-size: 3; -moz-tab-size: 3; } result specifications specification status comment css text module level 3the definition of 'tab-size' in that specification.
text-decoration-skip-ink - CSS: Cascading Style Sheets
auto the
default — the browser may interrupt underlines and overlines so that they do not touch or closely approach a glyph.
...or a cup of coffee.</p> <p class="no-skip-ink">or maybe you'd prefer some tea?</p> <p>この文は、 text-decoration-skip-ink: auto の使用例を示しています。</p> <p class="skip-ink-all">この文は、 text-decoration-skip-ink: all の使用例を示しています。</p> css p { font-size: 1.5em; text-decoration: underline blue; text-decoration-skip-ink: auto; /* this is the
default anyway */ } .no-skip-ink { text-decoration-skip-ink: none; } .skip-ink-all{ text-decoration-skip-ink: all; } result specifications specification status comment css text decoration module level 4the definition of 'text-decoration-skip-ink' in that specification.
text-shadow - CSS: Cascading Style Sheets
syntax /* offset-x | offset-y | blur-radius | color */ text-shadow: 1px 1px 2px black; /* color | offset-x | offset-y | blur-radius */ text-shadow: #fc0 1px 0 10px; /* offset-x | offset-y | color */ text-shadow: 5px 5px #558abb; /* color | offset-x | offset-y */ text-shadow: white 2px 5px; /* offset-x | offset-y /* use
defaults for color and blur-radius */ text-shadow: 5px 10px; /* global values */ text-shadow: inherit; text-shadow: initial; text-shadow: unset; this property is specified as a comma-separated list of shadows.
...if not specified, it
defaults to 0.
touch-action - CSS: Cascading Style Sheets
/* keyword values */ touch-action: auto; touch-action: none; touch-action: pan-x; touch-action: pan-left; touch-action: pan-right; touch-action: pan-y; touch-action: pan-up; touch-action: pan-down; touch-action: pinch-zoom; touch-action: manipulation; /* global values */ touch-action: inherit; touch-action: initial; touch-action: unset; by
default, panning (scrolling) and pinching gestures are handled exclusively by the browser.
...applications using touch events disable the browser handling of gestures by calling prevent
default(), but should also use touch-action to ensure the browser knows the intent of the application before any event listeners have been invoked.
width - CSS: Cascading Style Sheets
by
default, it sets the width of the content area, but if box-sizing is set to border-box, it sets the width of the border area.
... but non-replaced inline elements, table rows, and row groupsinheritednopercentagesrefer to the width of the containing blockcomputed valuea percentage or auto or the absolute lengthanimation typea length, percentage or calc(); formal syntax auto | <length> | <percentage> | min-content | max-content | fit-content(<length-percentage>)where <length-percentage> = <length> | <percentage> examples
default width p.goldie { background: gold; } <p class="goldie">the mozilla community produces a lot of great software.</p> pixels and ems .px_length { width: 200px; background-color: red; color: white; border: 1px solid black; } .em_length { width: 20em; background-color: white; color: red; border: 1px solid black; } <div class="px_length">width measured in px</div> <div class=...
Getting Started - Developer guides
as a security feature, you cannot call urls on 3rd-party domains by
default.
...if true (the
default), javascript execution will continue and the user can interact with the page while the server response has yet to arrive.
WAI ARIA Live Regions/API Support - Developer guides
retrieving author-supplied aria live region semantics from an event for any mutation event in a page, the author can get the following object attributes from the event object, if they are defined on some ancestor element (closest ancestor wins): object attribute name possible values
default value if not specified meaning aria markup if required container-live "off" | "polite" | "assertive" "off" interruption policy aria-live on ancestor element container-relevant "[additions] [removals] [text]" | "all" "additions text" what types of mutations are possibly relevant?
...at this time, for properties where the container-[name] attribute has not been set, the at must have code to fall back on the
default value as defined in the w3c spec.
Challenge solutions - Developer guides
solution one way to do this is to put comment delimiters around the rule for .carrot: /* .carrot { color: orange; } */ text styles big initial letters challenge without changing anything else, make all six initial letters twice the size in the browser's
default serif font.
... solution the following rule achieves this effect: ul { border: 10px solid lightblue; width: 100px; } layout
default image position fixed image position challenge change your sample document, doc2.html, adding this tag to it near the end, just before </body>: <img id="fixed-pin" src="yellow-pin.png" alt="yellow map pin"> predict where the image will appear in your document.
Creating and triggering events - Developer guides
function simulateclick() { const event = new mouseevent('click', { view: window, bubbles: true, cancelable: true }); const cb = document.getelementbyid('checkbox'); const cancelled = !cb.dispatchevent(event); if (cancelled) { // a handler called prevent
default.
... alert("cancelled"); } else { // none of the handlers called prevent
default.
Using HTML sections and outlines - Developer guides
unknown elements are styled as display: inline by
default, so you'll want to set them to display: block: article, aside, footer, header, nav, section { display: block; } of course the web developer can style them differently, but keep in mind that in a non-html5 browser, the
default styling is different from what is expected for such elements.
... also note that the <time> element has not been included, because the
default styling for it in a non-html5 browser is the same as the one in an html5-compatible one.
HTML attribute: required - HTML: Hypertext Markup Language
the attribute is not supported or relevant to range and color, as both have
default values.
... note color and range don't support required, but type color
defaults to #00000, and range
defaults to the midpoint between min and max -- with min and max
defaulting to 0 and 100 respectively in most browsers if not declared -- so always has a value.
Block-level elements - HTML: Hypertext Markup Language
by
default, a block-level element occupies the entire space of its parent element (container), thereby creating a "block." this article helps to explain what this means.
...
default formatting by
default, block-level elements begin on new lines, but inline elements can start anywhere in a line.
<b>: The Bring Attention To element - HTML: Hypertext Markup Language
further, stylesheets can change the
default style of these elements, with the result that they are not necessarily displayed in bold.
...</p> keywords are displayed with the
default style of the <b>element, likely in bold.</b> result specifications specification status comment html living standardthe definition of '<b>' in that specification.
<colgroup> - HTML: Hypertext Markup Language
if not present, its
default value is 1.
...if align is not set to char, this attribute is ignored, though it will still be used as the
default value for the align of the <col> which are members of this column group.
<input type="button"> - HTML: Hypertext Markup Language
<input type="button" value="click me"> if you don't specify a value, you get an empty button: <input type="button"> using buttons <input type="button"> elements have no
default behavior (their cousins, <input type="submit"> and <input type="reset"> are used to submit and reset forms, respectively).
...utton 2"> <input type="button" value="button 3"> </fieldset> const button = document.queryselector('input'); const fieldset = document.queryselector('fieldset'); button.addeventlistener('click', disablebutton); function disablebutton() { fieldset.disabled = true; window.settimeout(function() { fieldset.disabled = false; }, 2000); } note: firefox will, unlike other browsers, by
default, persist the dynamic disabled state of a <button> across page loads.
<input type="file"> - HTML: Hypertext Markup Language
if the requested facing mode isn't available, the user agent may fall back to its preferred
default mode.
...the custom returnfilesize() function returns a nicely-formatted version of the size in bytes/kb/mb (by
default the browser reports the size in absolute bytes).
<input type="reset"> - HTML: Hypertext Markup Language
<input> elements of type "reset" are rendered as buttons, with a
default click event handler that resets all of the inputs in the form to their initial values.
... <input type="reset" value="reset the form"> if you don't specify a value, you get an button with the
default label (typically "reset," but this will vary depending on the user agent): <input type="reset"> using reset buttons <input type="reset"> buttons are used to reset forms.
<kbd>: The Keyboard Input element - HTML: Hypertext Markup Language
by convention, the user agent
defaults to rendering the contents of a <kbd> element using its
default monospace font, although this is not mandated by the html standard.
... you can define a custom style to override the browser's
default font selection for the <kbd> element, although the user's preferences may potentially override your css.
<nextid>: The NeXT ID element (Obsolete) - HTML: Hypertext Markup Language
html version 2 level 1 this is like the level 2
default but it excludes all the forms elements, i.
...<form>, <input>, <textarea>, <select>, and <option> html version 2 strict level 1 this is like regular level 1 but it also excludes these depreciated elements, along with such constructs as nesting a header (<h*> element) within a link (<a> element) html version 2 level 2 this is the
default and includes and permits all html level 2 functions and elements and attributes html version 2 strict level 2 this excludes these depreciated elements and also forbids such constructs as nesting a header (<h*> element) within a link (<a> element), or having a forms <input> element which is not within a block level element such as <p> html version 3.2 <nextid> has vanished altogether, never to be heard from again.
<strong>: The Strong Importance element - HTML: Hypertext Markup Language
typically this element is rendered by
default using a bold font weight.
... it may help to realize that both are valid and semantic elements in html5 and that it's a coincidence that they both have the same
default styling (boldface) in most browsers (although some older browsers actually underline <strong>).
<tr>: The Table Row element - HTML: Hypertext Markup Language
to provide additional control over how cells fit into (or span across) columns, both <th> and <td> support the colspan attribute, which lets you specify how many columns wide the cell should be, with the
default being 1.
... th, td { border: 1px solid black; padding:4px 6px; } th { vertical-align: bottom; } and here are the
default styles for all table cells.
CSP: prefetch-src - HTTP
csp version 3 directive type fetch directive
default-src fallback yes.
... if this directive is absent, the user agent will look for the
default-src directive.
CSP: script-src - HTTP
csp version 1 directive type fetch directive
default-src fallback yes.
... if this directive is absent, the user agent will look for the
default-src directive.
CSP: style-src-attr - HTTP
csp version 3 directive type fetch directive
default-src fallback yes.
... if this directive is absent, the user agent will look for the style-src directive, and if both of them are absent, fallback to
default-src directive.
CSP: style-src-elem - HTTP
csp version 3 directive type fetch directive
default-src fallback yes.
... if this directive is absent, the user agent will look for the style-src directive, and if both of them are absent, fallback to
default-src directive.
CSP: style-src - HTTP
csp version 1 directive type fetch directive
default-src fallback yes.
... if this directive is absent, the user agent will look for the
default-src directive.
Feature-Policy - HTTP
features are each defined to have a
default allowlist, which is one of: *: the feature is allowed by
default in top-level browsing contexts and all nested browsing contexts (iframes).
... 'self': the feature is allowed by
default in top-level browsing contexts and in nested browsing contexts (iframes) in the same origin.
Set-Cookie - HTTP
if omitted,
defaults to the host of the current document url, not including subdomains.
... browsers are migrating to have cookies
default to samesite=lax.
Network Error Logging - HTTP
defaults to 0, so that no successful network requests will be reported if the key is not present in the json payload.
...
defaults to 1, so that all failed network requests will be reported if the key is not present in the json payload.
A typical HTTP session - HTTP
with tcp the
default port, for an http server on a computer, is port 80.
... 301 moved permanently server: apache/2.4.37 (red hat) content-type: text/html; charset=utf-8 date: thu, 06 dec 2018 17:33:08 gmt location: https://developer.mozilla.org/ (this is the new link to the resource; it is expected that the user-agent will fetch it) keep-alive: timeout=15, max=98 accept-ranges: bytes via: moz-cache-zlb05 connection: keep-alive content-length: 325 (the content contains a
default page to display if the user-agent is not able to follow the link) <!doctype html...
JavaScript data types and data structures - JavaScript
data property associates a key with a value, and has the following attributes: attributes of a data property attribute type description
default value [[value]] any javascript type the value retrieved by a get access of the property.
... accessor property associates a key with one of two accessor functions (get and set) to retrieve or store a value, and has the following attributes: attributes of an accessor property attribute type description
default value [[get]] function object or undefined the function is called with an empty argument list and retrieves the property value whenever a get access to the value is performed.
Concurrency model and the event loop - JavaScript
the function settimeout is called with 2 arguments: a message to add to the queue, and a time value (optional;
defaults to 0).
... (function() { console.log('this is the start'); settimeout(function cb() { console.log('callback 1: this is a msg from call back'); }); // has a
default time value of 0 console.log('this is just a message'); settimeout(function cb1() { console.log('callback 2: this is a msg from call back'); }, 0); console.log('this is the end'); })(); // "this is the start" // "this is just a message" // "this is the end" // "callback 1: this is a msg from call back" // "callback 2: this is a msg from call back" several runtimes communicating ...
Expressions and operators - JavaScript
it is thus the better alternative to provide
defaults, when values like '' or 0 are valid values for the first expression, too.
... var a = 1; var b = 2; var c = 3; //
default precedence a + b * c // 7 // evaluated by
default like this a + (b * c) // 7 // now overriding precedence // addition before multiplication (a + b) * c // 9 // which is equivalent to a * c + b * c // 9 left-hand-side expressions left values are the destination of an assignment.
Regular expression syntax cheatsheet - JavaScript
for example, /e?le?/ matches the "el" in "angel" and the "le" in "angle." if used immediately after any of the quantifiers *, +, ?, or {}, makes the quantifier non-greedy (matching the minimum number of times), as opposed to the
default, which is greedy (matching the maximum number of times).
... by
default quantifiers like * and + are "greedy", meaning that they try to match as much of the string as possible.
Quantifiers - JavaScript
for example, /e?le?/ matches the "el" in "angel" and the "le" in "angle." if used immediately after any of the quantifiers *, +, ?, or {}, makes the quantifier non-greedy (matching the minimum number of times), as opposed to the
default, which is greedy (matching the maximum number of times).
... by
default quantifiers like * and + are "greedy", meaning that they try to match as much of the string as possible.
Using Promises - JavaScript
you can capture these for analysis and handling by your code—or just to avoid having them cluttering up your output—by adding a handler for the unhandledrejection event, like this: window.addeventlistener("unhandledrejection", event => { /* you might start here by adding code to examine the promise specified by event.promise and the reason in event.reason */ event.prevent
default(); }, false); by calling the event's prevent
default() method, you tell the javascript runtime not to do its
default action when rejected promises go unhandled.
... that
default action usually involves logging the error to console, and this is indeed the case for node.
TypeError: can't delete non-configurable array element - JavaScript
however, for example, when using object.defineproperty(), the property isn't configurable by
default.
... examples non-configurable properties created by object.defineproperty the object.defineproperty() creates non-configurable properties by
default if you haven't specified them as configurable.
AggregateError - JavaScript
instance properties aggregateerror.prototype.message error message,
defaults to "".
... aggregateerror.prototype.name error name,
defaults to aggregateerror.
get Array[@@species] - JavaScript
description the species accessor property returns the
default constructor for array objects.
... examples species in ordinary objects the species property returns the
default constructor function, which is the array constructor for array objects: array[symbol.species]; // function array() species in derived objects in a derived collection object (e.g.
get ArrayBuffer[@@species] - JavaScript
description the species accessor property returns the
default constructor for arraybuffer objects.
... examples species in ordinary objects the species property returns the
default constructor function, which is the arraybuffer constructor for arraybuffer objects: arraybuffer[symbol.species]; // function arraybuffer() species in derived objects in a derived collection object (e.g.
BigInt - JavaScript
a bigint is not strictly equal to a number, but it is loosely so: 0n === 0 // ↪ false 0n == 0 // ↪ true a number and a bigint may be compared as usual: 1n < 2 // ↪ true 2n > 1 // ↪ true 2 > 2 // ↪ false 2n > 2 // ↪ false 2n >= 2 // ↪ true they may be mixed in arrays and sorted: const mixed = [4n, 6, -12n, 10, 4, 0, 0n] // ↪ [4n, 6, -12n, 10, 4, 0, 0n] mixed.sort() //
default sorting behavior // ↪ [ -12n, 0, 0n, 10, 4n, 4, 6 ] mixed.sort((a, b) => a - b) // won't work since subtraction will not work with mixed types // typeerror: can't convert bigint to number // sort with an appropriate numeric comparator mixed.sort((a, b) => (a < b) ?
... use within json using json.stringify() with any bigint value will raise a typeerror as bigint values aren't serialized in json by
default.
Date.prototype[@@toPrimitive] - JavaScript
if hint is "string" or "
default", [@@toprimitive]() tries to call the tostring method.
... examples returning date primitives const testdate = new date(1590757517834); // "date fri may 29 2020 14:05:17 gmt+0100 (british summer time)" testdate[symbol.toprimitive]('string'); // returns "date fri may 29 2020 14:05:17 gmt+0100 (british summer time)" testdate[symbol.toprimitive]('number'); // returns "1590757517834" testdate[symbol.toprimitive]('
default'); // returns "date fri may 29 2020 14:05:17 gmt+0100 (british summer time)" specifications specification ecmascript (ecma-262)the definition of 'date.prototype.@@toprimitive' in that specification.
Error() constructor - JavaScript
defaults to the name of the file containing the code that called the error() constructor.
...
defaults to the line number containing the error() constructor invocation.
Function.prototype.bind() - JavaScript
cmascript 5 // internal iscallable function throw new typeerror('function.prototype.bind - what is trying to be bound is not callable'); } var baseargs= arrayprototypeslice.call(arguments, 1), baseargslength = baseargs.length, ftobind = this, fnop = function() {}, fbound = function() { baseargs.length = baseargslength; // reset to
default base arguments baseargs.push.apply(baseargs, arguments); return ftobind.apply( fnop.prototype.isprototypeof(this) ?
...const addthirtyseven = addarguments.bind(null, 37); const list2 = leadingthirtysevenlist(); // [37] const list3 = leadingthirtysevenlist(1, 2, 3); // [37, 1, 2, 3] const result2 = addthirtyseven(5); // 37 + 5 = 42 const result3 = addthirtyseven(5, 10); // 37 + 5 = 42 // (the second argument is ignored) with settimeout() by
default within window.settimeout(), the this keyword will be set to the window (or global) object.
Function.length - JavaScript
this number excludes the rest parameter and only includes parameters before the first one with a
default value.
...*/ console.log((function(...args) {}).length); // 0, rest parameter is not counted console.log((function(a, b = 1, c) {}).length); // 1, only parameters before the first one with // a
default value is counted specifications specification ecmascript (ecma-262)the definition of 'function.length' in that specification.
Intl.Locale.prototype.collation - JavaScript
direct binary code point order (used in hindi) ducet the
default unicode collation element table order emoji recommended ordering for emoji characters eor european ordering rules gb2312 pinyin ordering for latin, gb2312han charset ordering for cjk characters (used in chinese) phonebk phonebook style ordering (such as in german) phonetic phonetic ordering (sorting based on pronunciation) pinyi...
...n pinyin ordering for latin and for cjk characters (used in chinese) reformed reformed ordering (such as in swedish) search special collation type for string search searchjl special collation type for korean initial consonant search standard
default ordering for each language stroke pinyin ordering for latin, stroke order for cjk characters (used in chinese) trad traditional style ordering (such as in spanish) unihan pinyin ordering for latin, unihan radical-stroke ordering for cjk characters (used in chinese) zhuyin pinyin ordering for latin, zhuyin order for bopomofo and cjk characters (used in chinese) examples like other locale subtags, the collation type can be added to the int...
Intl.NumberFormat - JavaScript
static methods intl.numberformat.supportedlocalesof() returns an array containing those of the provided locales that are supported without having to fall back to the runtime's
default locale.
... examples basic usage in basic use without specifying a locale, a formatted string in the
default locale and with
default options is returned.
Intl.PluralRules.prototype.resolvedOptions() - JavaScript
only one of the following two groups of properties is included: minimumintegerdigits minimumfractiondigits maximumfractiondigits the values provided for these properties in the options argument or filled in as
defaults.
... minimumsignificantdigits maximumsignificantdigits the values provided for these properties in the options argument or filled in as
defaults.
Intl.RelativeTimeFormat - JavaScript
static methods intl.relativetimeformat.supportedlocalesof() returns an array containing those of the provided locales that are supported without having to fall back to the runtime's
default locale.
... // create a relative time formatter in your locale // with
default values explicitly passed in.
get Map[@@species] - JavaScript
description the species accessor property returns the
default constructor for map objects.
... examples species in ordinary objects the species property returns the
default constructor function, which is the map constructor for map objects: map[symbol.species]; // function map() species in derived objects in a derived collection object (e.g.
Map - JavaScript
however, there are important differences that make map preferable in certain cases: map object accidental keys a map does not contain any keys by
default.
... an object has a prototype, so it contains
default keys that could collide with your own keys if you're not careful.
Number.prototype.toExponential() - JavaScript
defaults to as many digits as necessary to specify the number.
... description if the fractiondigits argument is omitted, the number of digits after the decimal point
defaults to the number of digits necessary to represent the value uniquely.
Number.prototype.toLocaleString() - JavaScript
examples using tolocalestring in basic use without specifying a locale, a formatted string in the
default locale and with
default options is returned.
...ole.log(number.tolocalestring('de-de', { style: 'currency', currency: 'eur' })); // → 123.456,79 € // the japanese yen doesn't use a minor unit console.log(number.tolocalestring('ja-jp', { style: 'currency', currency: 'jpy' })) // → ¥123,457 // limit to three significant digits console.log(number.tolocalestring('en-in', { maximumsignificantdigits: 3 })); // → 1,23,000 // use the host
default language with options for number formatting var num = 30000.65; console.log(num.tolocalestring(undefined, {minimumfractiondigits: 2, maximumfractiondigits: 2})); // → "30,000.65" where english is the
default language, or // → "30.000,65" where german is the
default language, or // → "30 000,65" where french is the
default language specifications specification ecmascript...
get RegExp[@@species] - JavaScript
description the species accessor property returns the
default constructor for regexp objects.
... examples species in ordinary objects the species property returns the
default constructor function, which is the regexp constructor for regexp objects: regexp[symbol.species]; // function regexp() species in derived objects in a derived collection object (e.g.
get Set[@@species] - JavaScript
description the species accessor property returns the
default constructor for set objects.
... examples species in ordinary objects the species property returns the
default constructor function, which is the set constructor for set objects: set[symbol.species]; // function set() species in derived objects in a derived collection object (e.g.
Planned changes to shared memory - JavaScript
there is standardization work ongoing that enables developers to create sharedarraybuffer objects again, but changes are needed in order to be use these across threads (i.e., postmessage() for sharedarraybuffer objects throws by
default).
... starting with firefox 79, the features described in this document are enabled by
default.
String.prototype.toLocaleLowerCase() - JavaScript
the
default locale is the host environment’s current locale.
...in most cases, this will produce the same result as tolowercase(), but for some locales, such as turkish, whose case mappings do not follow the
default case mappings in unicode, there may be a different result.
String.prototype.toLocaleUpperCase() - JavaScript
the
default locale is the host environment’s current locale.
...in most cases, this will produce the same result as touppercase(), but for some locales, such as turkish, whose case mappings do not follow the
default case mappings in unicode, there may be a different result.
Symbol.asyncIterator - JavaScript
the symbol.asynciterator well-known symbol specifies the
default asynciterator for an object.
... built-in async iterables there are currently no built-in javascript objects that have the [symbol.asynciterator] key set by
default.
Symbol.iterator - JavaScript
the well-known symbol.iterator symbol specifies the
default iterator for an object.
... some built-in types have a
default iteration behavior, while other types (such as object) do not.
Symbol.species - JavaScript
description the species accessor property allows subclasses to override the
default constructor for objects.
...for example, when using methods such as map() that return the
default constructor, you want these methods to return a parent array object, instead of the myarray object.
Symbol.toPrimitive - JavaScript
the hint argument can be one of "number", "string", and "
default".
...var obj2 = { [symbol.toprimitive](hint) { if (hint == 'number') { return 10; } if (hint == 'string') { return 'hello'; } return true; } }; console.log(+obj2); // 10 -- hint is "number" console.log(`${obj2}`); // "hello" -- hint is "string" console.log(obj2 + ''); // "true" -- hint is "
default" specifications specification ecmascript (ecma-262)the definition of 'symbol.toprimitive' in that specification.
get TypedArray[@@species] - JavaScript
description the species accessor property returns the
default constructor for typed array objects.
... examples species in ordinary objects the species property returns the
default constructor function, which is one of the typed array constructors for a given typed array object: int8array[symbol.species]; // function int8array() uint8array[symbol.species]; // function uint8array() float32array[symbol.species]; // function float32array() species in derived objects in a derived collection object (e.g.
WebAssembly.Memory() constructor - JavaScript
the
default is false.
... webassembly.instantiatestreaming(fetch('memory.wasm'), { js: { mem: memory } }) .then(obj => { var i32 = new uint32array(memory.buffer); for (var i = 0; i < 10; i++) { i32[i] = i; } var sum = obj.instance.exports.accumulate(0, 10); console.log(sum); }); creating a shared memory by
default, webassembly memories are unshared.
Iteration protocols - JavaScript
some built-in types are built-in iterables with a
default iteration behavior, such as array or map, while other types (such as object) are not.
... }, [symbol.iterator]: function() { return this; } }; examples using the iteration protocols a string is an example of a built-in iterable object: let somestring = 'hi'; console.log(typeof somestring[symbol.iterator]); // "function" string's
default iterator returns the string's code points one by one: let iterator = somestring[symbol.iterator](); console.log(iterator + ''); // "[object string iterator]" console.log(iterator.next()); // { value: "h", done: false } console.log(iterator.next()); // { value: "i", done: false } console.log(iterator.next()); // { value: undefined, done: true } some built-in constructs—such as the spread synt...
Strict mode - JavaScript
sometimes you'll see the
default, non-strict mode referred to as "sloppy mode".
... function strict() { // because this is a module, i'm strict by
default } export
default strict; changes in strict mode strict mode changes both syntax and runtime behavior.
Template literals (Template strings) - JavaScript
the
default function just concatenates the parts into a single string.
... function tag(strings) { console.log(strings.raw[0]); } tag`string text line 1 \n string text line 2`; // logs "string text line 1 \n string text line 2" , // including the two characters '\' and 'n' in addition, the string.raw() method exists to create raw strings—just like the
default template function and string concatenation would create.
<math> - MathML
if not present, its
default value is inline.
... possible values are: linebreak (
default), scroll, elide, truncate, scale.
<munderover> - MathML
if false (
default value), the overscript is a limit over the base expression.
... if false (
default value), the underscript is a limit under the base expression.
Digital audio concepts - Web media technologies
computer audio also frequently uses this frequency by
default.
... some codecs offer special profiles which are specifically intended for particular usage scenarios, such as voip; these profiles may also include by
default restrictions to the audio frequency bandwidth.
Image file type and format guide - Web media technologies
these features include: support for different bit depths, indexed color, alpha channels, and different pixel orders (by
default, bmp is written from bottom-left corner toward the right and top, rather than from the top-left corner toward the right and bottom).
...<picture> is used as a wrapper for a number of <source> elements, each specifying a version of the image in a different format or under different media conditions, as well as an <img> element which defines where to display the image and the fallback to the
default or "most compatible" version.
Codecs used by WebRTC - Web media technologies
it's worth noting that the rfc covers a variety of video-related requirements, including color spaces (srgb is the preferred, but not required,
default color space), recommendations for webcam processing features (automatic focus, automatic white balance, automatic light level), and so on.
...
default codecs unless otherwise specified, the
default—or, more accurately, preferred—codecs requested by each browser's implementation of webrtc are shown in the table below.
How to make PWAs installable - Progressive web apps (PWAs)
this makes the web app easier to access; additionally, you can specify that the app be launched in fullscreen or standalone mode, thus removing the
default browser user interface that would otherwise be present, creating an even more seamless and native-like feel.
... background_color: a color used as the app's
default background, used during install and on the splash screen.
Graphic design for responsive sites - Progressive web apps (PWAs)
this means that the
default layout before any media queries are encountered in the css is the small screen/mobile layout, not the wide screen/desktop layout.
...most hi res devices apply a
default zoom factor to the whole web page so that the content is a bit more legible, but the downside of this is that the images in question start to look pixellated and ugly because they have been zoomed in.
Progressive web apps (PWAs)
mobile first — often when creating responsive application layouts, it makes sense to create the mobile layout as the
default, and build wider layouts on top.
... tools localforage — a nice simple javascript library for making client-side data storage really simple; it uses indexeddb by
default and falls back to web sql/web storage if necessary.
additive - SVG: Scalable Vector Graphics
four elements are using this attribute: <animate>, <animatecolor>, <animatemotion>, and <animatetransform> usage notes value replace | sum
default value replace animatable no sum specifies that the animation will add to the underlying value of the attribute and other lower priority animations.
...this is the
default, however the behavior is also affected by the animation value attributes by and to, as described in smil animation: how from, to and by attributes affect additive behavior.
alignment-baseline - SVG: Scalable Vector Graphics
it
defaults to the baseline with the same name as the computed value of the alignment-baseline property.
... as a presentation attribute, it can be applied to any element but it has effect only on the following four elements: <tspan>, <tref>, <altglyph>, and <textpath> usage notes value auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical | top | center | bottom
default value auto animatable yes auto the value is the dominant-baseline of the script to which the character belongs - i.e., use the dominant-baseline of the parent.
baseline-shift - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following four elements: <altglyph>, <textpath>, <tref>, and <tspan> usage notes value <length-percentage> | sub | super
default value 0 animatable yes sub the dominant-baseline is shifted to the
default position for subscripts.
... super the dominant-baseline is shifted to the
default position for superscripts.
begin - SVG: Scalable Vector Graphics
value <begin-value-list>
default value 0s animatable no the <begin-value-list> is a semicolon-separated list of values.
... value <begin-value-list>
default value 0s animatable no the definition of <begin-value-list> is the same as for the other animation elements.
color-interpolation-filters - SVG: Scalable Vector Graphics
thus, in the
default case, filter effects operations occur in the linearrgb color space, whereas all other color interpolations occur by
default in the srgb color space.
...has an effect on the following eighteen elements: <fespotlight>, <feblend>, <fecolormatrix>, <fecomponenttransfer>, <fecomposite>, <feconvolvematrix>, <fediffuselighting>, <fedisplacementmap>, <fedropshadow>, <feflood>, <fegaussianblur>, <feimage>, <femerge>, <femorphology>, <feoffset>, <fespecularlighting>, <fetile>, <feturbulence> usage notes value auto | srgb | linearrgb
default value linearrgb animatable yes auto indicates that the user agent can choose either the srgb or linearrgb spaces for color interpolation.
divisor - SVG: Scalable Vector Graphics
lter> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="filter:url(#convolvematrix1);"/> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="filter:url(#convolvematrix2); transform:translatex(220px);"/> </svg> usage notes value <number>
default value sum of all values in kernelmatrix or 1 if sum is 0 animatable yes <number> this value defines the divisor.
... if the specified divisor is 0 then the
default value will be used instead.
dominant-baseline - SVG: Scalable Vector Graphics
it also indicates the
default alignment baseline of any boxes participating in baseline alignment in the box’s alignment context.
...0,50 l180,50 m20,80 l180,80" stroke="grey" /> <text dominant-baseline="baseline" x="30" y="20">baseline</text> <text dominant-baseline="middle" x="30" y="50">middle</text> <text dominant-baseline="hanging" x="30" y="80">hanging</text> </svg> usage notes value auto | text-bottom | alphabetic | ideographic | middle | central | mathematical | hanging | text-top
default value auto animatable yes auto if this property occurs on a <text> element, then the computed value depends on the value of the writing-mode attribute.
edgeMode - SVG: Scalable Vector Graphics
value duplicate | wrap | none
default value duplicate animatable yes duplicate this value indicates that the input image is extended along each of its borders as necessary by duplicating the color values at the given edge of the input image.
... value duplicate | wrap | none
default value none animatable yes duplicate this value indicates that the input image is extended along each of its borders as necessary by duplicating the color values at the given edge of the input image.
fill-opacity - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following eleven elements: <altglyph>, <circle>, <ellipse>, <path>, <polygon>, <polyline>, <rect>, <text>, <textpath>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewbox="0 0 400 100" xmlns="http://www.w3.org/2000/svg"> <!--
default fill opacity: 1 --> <circle cx="50" cy="50" r="40" /> <!-- fill opacity as a number --> <circle cx="150" cy="50" r="40" fill-opacity="0.7" /> <!-- fill opacity as a percentage --> <circle cx="250" cy="50" r="40" fill-opacity="50%" /> <!-- fill opacity as a css property --> <circle cx="350" cy="50" r="40" style="fill-opacity: .25;" /> </svg> usage...
... notes value [0-1] | <percentage>
default value 1 animatable yes note: svg2 introduces percentage values for fill-opacity, however, it is not widely supported yet (see browser compatibility below) as a consequence, it is best practices to set opacity with a value in the range [0-1].
fill-rule - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following eight elements: <altglyph>, <path>, <polygon>, <polyline>, <text>, <textpath>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewbox="-10 -10 220 120" xmlns="http://www.w3.org/2000/svg"> <!--
default value for fill-rule --> <polygon fill-rule="nonzero" stroke="red" points="50,0 21,90 98,35 2,35 79,90"/> <!-- the center of the shape has two path segments (shown by the red stroke) between it and infinity.
... --> <polygon fill-rule="evenodd" stroke="red" points="150,0 121,90 198,35 102,35 179,90"/> </svg> usage notes value nonzero | evenodd
default value nonzero animatable yes the fill-rule attribute provides two options for how the inside (that is, the area to be filled) of a shape is determined: nonzero the value nonzero determines the "insideness" of a point in the shape by drawing a ray from that point to infinity in any direction, and then examining the places where a segment of the shape crosses the ray.
filterRes - SVG: Scalable Vector Graphics
take care when assigning a non-
default value to this attribute.
... only one element is using this attribute: <filter> usage notes value <number-optional-number>
default value none animatable yes <number-optional-number> this value takes one or two values, the first one outlining the resolution in horizontal direction, the second one in vertical direction.
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 t...
... 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...
name - SVG: Scalable Vector Graphics
value <name>
default value none animatable yes <name> this value is the name which is used as the first parameter for icc color specifications within fill, stroke, stop-color, flood-color and lighting-color property values to identify the color profile to use for the icc color specification and the name which can be the value of the color-profile property.
... value <name>
default value none animatable yes <name> this value specifies the name of a local font.
operator - SVG: Scalable Vector Graphics
value over | in | out | atop | xor | lighter | arithmetic
default value over animatable yes over this value indicates that the source graphic defined in the in attribute is placed over the destination graphic defined in the in2 attribute.
... value erode | dilate
default value erode animatable yes erode this value thins the source graphic defined in the in attribute.
order - SVG: Scalable Vector Graphics
<feturbulence basefrequency="0.025" seed="0" /> <feconvolvematrix kernelmatrix="3 0 0 0 0 0 0 0 -4" order="1 1 1"/> </filter> <rect x="0" y="0" width="200" height="200" style="filter:url(#emboss1);" /> <rect x="0" y="0" width="200" height="200" style="filter:url(#emboss2); transform: translatex(220px);" /> </svg> usage notes value <number-optional-number>
default value 3 animatable yes <number-optional-number> this value indicates the number of cells in each dimension for the kernel matrix.
...if no second number is not provided, it
defaults to the first number.
overflow - SVG: Scalable Vector Graphics
although the initial value for overflow is auto, it is overwritten in the user agent style sheet for the <svg> element when it is not the root element of a stand-alone document, the <pattern> element, and the <marker> element to be hidden by
default.
...ng eight elements: <foreignobject>, <iframe>, <image>, <marker>, <pattern>, <symbol>, <svg>, and <text> html, body, svg { height: 100%; } <svg viewbox="0 0 200 30" xmlns="http://www.w3.org/2000/svg" overflow="auto"> <text y="20">this text is wider than the svg, so there should be a scrollbar shown.</text> </svg> usage notes value visible | hidden | scroll | auto
default value visible animatable yes for a description of the values, please see the css overflow property.
paint-order - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following ten elements: <circle>, <ellipse>, <line>, <path>, <polygon>, <polyline>, <rect>, <text>, <textpath>, and <tspan> usage notes value normal | [ fill || stroke || markers ]
default value normal animatable yes normal this value indicates that the fill will be painted first, then the stroke, and finally the markers.
...if any of the three painting components is omitted, they will be painted in their
default order after the specified components.
path - SVG: Scalable Vector Graphics
value <path-data>
default value none animatable no <path-data> this value defines the motion path along which the referenced element is animated.
... value <path-data>
default value path specified in href animatable yes <path-data> this value defines the text path along which the glyphs of the <text> element are aligned.
points - SVG: Scalable Vector Graphics
value [ <number>+ ]#
default value none animatable yes example html,body,svg { height:100% } <svg viewbox="-10 -10 120 120" xmlns="http://www.w3.org/2000/svg"> <!-- polyline is an open shape --> <polyline stroke="black" fill="none" points="50,0 21,90 98,35 2,35 79,90"/> </svg> polygon for <polygon>, points defines a list of points, each representing a vertex of the shape to be drawn.
... value [ <number>+ ]#
default value none animatable yes example html,body,svg { height:100% } <svg viewbox="-10 -10 120 120" xmlns="http://www.w3.org/2000/svg"> <!-- polygon is an closed shape --> <polygon stroke="black" fill="none" points="50,0 21,90 98,35 2,35 79,90" /> </svg> specifications specification status comment scalable vector graphics (svg) 2the definition of 'points' in that specification.
r - SVG: Scalable Vector Graphics
value <length> | <percentage>
default value 0 animatable yes note: starting with svg2, r is a geometry property meaning this attribute can also be used as a css property for circles.
... value <length> | <percentage>
default value 50% animatable yes specifications specification status comment scalable vector graphics (svg) 2the definition of 'r' in that specification.
refX - SVG: Scalable Vector Graphics
value <length-percentage> | <number> | left | center | right
default value 0 animatable yes <length-percentage> lengths are interpreted as being in the coordinate system of the marker contents, after application of the viewbox and preserveaspectratio attributes.
... value <length> | left | center | right
default value none animatable yes <length-percentage> lengths are interpreted as being in the coordinate system of the marker contents, after application of the viewbox and preserveaspectratio attributes.
refY - SVG: Scalable Vector Graphics
value <length-percentage> | <number> | top | center | bottom
default value 0 animatable yes <length-percentage> lengths are interpreted as being in the coordinate system of the marker contents, after application of the viewbox and preserveaspectratio attributes.
... value <length> | top | center | bottom
default value none animatable yes <length-percentage> lengths are interpreted as being in the coordinate system of the marker contents, after application of the viewbox and preserveaspectratio attributes.
rendering-intent - SVG: Scalable Vector Graphics
the rendering-intent attribute permits the specification of a color profile rendering intent other than the
default.
... only one element is using this attribute: <color-profile> usage notes value auto | perceptual | relative-colorimetric | saturation | absolute-colorimetric
default value auto animatable yes auto this value allows the user agent to determine the best intent based on the content type.
rotate - SVG: Scalable Vector Graphics
usage notes value auto | auto-reverse | <number>
default value 0 animatable no the auto and auto-reverse values allow the animated element's rotation to change dynamically as it travels along the path.
...the
default value of 0 keeps the animated element in its original orientation.
rx - SVG: Scalable Vector Graphics
value <length> | <percentage> | auto
default value auto animatable yes note: starting with svg2, rx is a geometry property meaning this attribute can also be used as a css property for ellipses.
... value <length> | <percentage> | auto
default value auto animatable yes note: starting with svg2, rx is a geometry property meaning this attribute can also be used as a css property for rects.
ry - SVG: Scalable Vector Graphics
value <length> | <percentage> | auto
default value auto animatable yes note: starting with svg2, ry is a geometry property meaning this attribute can also be used as a css property for ellipses.
... value <length> | <percentage> | auto
default value auto animatable yes note: starting with svg2, ry is a geometry property meaning this attribute can also be used as a css property for rects.
specularExponent - SVG: Scalable Vector Graphics
value <number>
default value 1 animatable yes fespotlight for <fespotlight>, specularexponent defines the exponent value controlling the focus for the light source.
... value <number>
default value 1 animatable yes specifications specification status comment filter effects module level 1the definition of 'specularexponent for <fespecularlighting>' in that specification.
stroke-linecap - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following eight elements: <altglyph>, <path>, <polyline>, <line>, <text>, <textpath>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewbox="0 0 6 6" xmlns="http://www.w3.org/2000/svg"> <!-- effect of the (
default) "butt" value --> <line x1="1" y1="1" x2="5" y2="1" stroke="black" stroke-linecap="butt" /> <!-- effect of the "round" value --> <line x1="1" y1="3" x2="5" y2="3" stroke="black" stroke-linecap="round" /> <!-- effect of the "square" value --> <line x1="1" y1="5" x2="5" y2="5" stroke="black" stroke-linecap="square" /> <!-- the following pink lines highlig...
...ht the position of the path for each stroke --> <path d="m1,1 h4 m1,3 h4 m1,5 h4" stroke="pink" stroke-width="0.025" /> </svg> usage notes value butt | round | square
default value butt animatable yes butt the butt value indicates that the stroke for each subpath does not extend beyond its two endpoints.
stroke-miterlimit - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following nine elements: <altglyph>, <path>, <polygon>, <polyline>, <rect>, <text>, <textpath>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewbox="0 0 38 30" xmlns="http://www.w3.org/2000/svg"> <!-- impact of the
default miter limit --> <path stroke="black" fill="none" stroke-linejoin="miter" id="p1" d="m1,9 l7 ,-3 l7 ,3 m2,0 l3.5 ,-3 l3.5 ,3 m2,0 l2 ,-3 l2 ,3 m2,0 l0.75,-3 l0.75,3 m2,0 l0.5 ,-3 l0.5 ,3" /> <!-- impact of the smallest miter limit (1) --> <path stroke="black" fill="none" stroke-linejoin="miter" stroke-miterlimit="1" id="p2"...
... usage context value <number>
default value 4 animatable yes the value of stroke-miterlimit must be greater than or equal to 1.
stroke-opacity - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following twelve elements: <altglyph>, <circle>, <ellipse>, <path>, <line>, <polygon>, <polyline>, <rect>, <text>, <textpath>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewbox="0 0 40 10" xmlns="http://www.w3.org/2000/svg"> <!--
default stroke opacity: 1 --> <circle cx="5" cy="5" r="4" stroke="green" /> <!-- stroke opacity as a number --> <circle cx="15" cy="5" r="4" stroke="green" stroke-opacity="0.7" /> <!-- stroke opacity as a percentage --> <circle cx="25" cy="5" r="4" stroke="green" stroke-opacity="50%" /> <!-- stroke opacity as a css property --> <circle cx="35" cy="5" r="4" stroke="gre...
...en" style="stroke-opacity: .3;" /> </svg> usage notes value [0-1] | <percentage>
default value 1 animatable yes note: svg2 introduces percentage values for stroke-opacity, however, it is not widely supported yet (see browser compatibility below) as a consequence, it is best practices to set opacity with a value in the range [0-1].
style - SVG: Scalable Vector Graphics
html,body,svg { height:100% } <svg viewbox="0 0 100 60" xmlns="http://www.w3.org/2000/svg"> <rect width="80" height="40" x="10" y="10" style="fill: skyblue; stroke: cadetblue; stroke-width: 2;"/> </svg> usage notes value <style>
default value none animatable no <style> the syntax of style data depends on the style sheet language.
... by
default, the style sheet language is css.
surfaceScale - SVG: Scalable Vector Graphics
value <number>
default value 1 animatable yes fediffuselighting for <fediffuselighting>, surfacescale defines the height of the surface.
... value <number>
default value 1 animatable yes specifications specification status comment filter effects module level 1the definition of 'surfacescale for <fediffuselighting>' in that specification.
textLength - SVG: Scalable Vector Graphics
by
default, only the spacing between characters is adjusted, but the glyph size can also be adjusted if you change lengthadjust.
... four elements are using this attribute: <text>, <textpath>, <tref>, and <tspan> html, body, svg { height: 100%; } <svg viewbox="0 0 200 60" xmlns="http://www.w3.org/2000/svg"> <text y="20" textlength="6em">small text length</text> <text y="40" textlength="120%">big text length</text> </svg> usage notes value <length-percentage> | <number>
default value none animatable yes <length-percentage> this value specifies the width of the space the text will be adjusted to occupy as absolute length or percentage.
to - SVG: Scalable Vector Graphics
value <value>
default value none animatable no the exact value type for this attribute depend on the value of the attribute that will be animated.
... value <value>
default value none animatable no the exact value type for this attribute depend on the value of the attribute that will be animated.
values - SVG: Scalable Vector Graphics
value <list-of-values>
default value none animatable no <list-of-values> the value holds a semicolon-separated list of one or more values.
... value <list-of-numbers>
default value if type="matrix", identity matrix, if type="saturate", 1, resulting in identity matrix, if type="huerotate", 0, resulting in identity matrix animatable yes <list-of-numbers> the value is a list of numbers, which is interpreted differently depending on the value of the type attribute: for type="matrix", values is a list of 20 matrix values (a00 a01 a02 a03 a04 a10 a11 ...
vector-effect - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following ten elements: <circle>, <ellipse>, <foreignobject>, <image>, <line>, <path>, <polygon>, <polyline>, <rect>, <text>, <textpath> <tspan>, and <use> usage notes value none | non-scaling-stroke | non-scaling-size | non-rotation | fixed-position
default value none animatable yes none this value specifies that no vector effect shall be applied, i.e.
... the
default rendering behaviour is used which is to first fill the geometry of a shape with a specified paint, then stroke the outline with a specified paint.
x1 - SVG: Scalable Vector Graphics
value <length> | <percentage>
default value 0 animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <line x1="1" x2="5" y1="1" y2="9" stroke="red" /> <line x1="5" x2="5" y1="1" y2="9" stroke="green" /> <line x1="9" x2="5" y1="1" y2="9" stroke="blue" /> </svg> lineargradient for <lineargradient>, x1 defines the x coordinate of the start...
...the exact behavior of this attribute is influenced by the gradientunits attributs value <length> | <percentage>
default value 0% animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 20 10" xmlns="http://www.w3.org/2000/svg"> <!-- by
default the gradient vector start at the left bounding limit of the shape it is applied to --> <lineargradient x1="0%" id="g0"> <stop offset="0" stop-color="black" /> <stop offset="100%" stop-color="red" /> </lineargradient> <rect x="1" y="1" width="8" height="8" fill="url(#g0)" /> <!-- here the gradient vector start at 80% of the left bounding limit of the shape it is applied to --> <lineargrad...
x2 - SVG: Scalable Vector Graphics
value <length> | <percentage>
default value 0 animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <line x1="5" x2="1" y1="1" y2="9" stroke="red" /> <line x1="5" x2="5" y1="1" y2="9" stroke="green" /> <line x1="5" x2="9" y1="1" y2="9" stroke="blue" /> </svg> lineargradient for <lineargradient>, x2 defines the x coordinate of the endin...
...the exact behavior of this attribute is influenced by the gradientunits attributs value <length> | <percentage>
default value 100% animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 20 10" xmlns="http://www.w3.org/2000/svg"> <!-- by
default the gradient vector end at the right bounding limit of the shape it is applied to --> <lineargradient x2="100%" id="g0"> <stop offset="0" stop-color="black" /> <stop offset="100%" stop-color="red" /> </lineargradient> <rect x="1" y="1" width="8" height="8" fill="url(#g0)" /> <!-- here the gradient vector start at 20% of the left bounding limit of the shape it is applied to --> <lineargra...
y1 - SVG: Scalable Vector Graphics
value <length> | <percentage>
default value 0 animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <line x1="1" x2="9" y1="1" y2="5" stroke="red" /> <line x1="1" x2="9" y1="5" y2="5" stroke="green" /> <line x1="1" x2="9" y1="9" y2="5" stroke="blue" /> </svg> lineargradient for <lineargradient>, y1 defines the y coordinate of the starti...
...the exact behavior of this attribute is influenced by the gradientunits attributs value <length> | <percentage>
default value 0% animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 20 10" xmlns="http://www.w3.org/2000/svg"> <!-- by
default the gradient vector start at the top left corner of the bounding box of the shape it is applied to.
y2 - SVG: Scalable Vector Graphics
value <length> | <percentage>
default value 0 animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <line x1="1" x2="9" y1="5" y2="1" stroke="red" /> <line x1="1" x2="9" y1="5" y2="5" stroke="green" /> <line x1="1" x2="9" y1="5" y2="9" stroke="blue" /> </svg> lineargradient for <lineargradient>, y2 defines the y coordinate of the ending...
...the exact behavior of this attribute is influenced by the gradientunits attributs value <length> | <percentage>
default value 0% animatable yes example html,body,svg { height:100% } <svg viewbox="0 0 20 10" xmlns="http://www.w3.org/2000/svg"> <!-- by
default the gradient vector end at the top right corner of the bounding box of the shape it is applied to.
z - SVG: Scalable Vector Graphics
value <number>
default value 1 animatable yes fespotlight for <fespotlight>, z defines the location along the z-axis for the light source in the coordinate system established by the primitiveunits attribute on the <filter> element.
... value <number>
default value 1 animatable yes specifications specification status comment filter effects module level 1the definition of 'z for <fepointlight>' in that specification.
<clipPath> - SVG: Scalable Vector Graphics
by
default, pointer-events are not dispatched on clipped regions.
... value type: userspaceonuse|objectboundingbox ;
default value: userspaceonuse; animatable: yes global attributes core attributes most notably: id styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage presentation attributes most notably: clip-path, clip-rule, color, display, fill, fill-opacity, fill-rule, filter, mask, opacity, shape-rendering, stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, trans...
<path> - SVG: Scalable Vector Graphics
value type: <string> ;
default value: ''; animatable: yes pathlength this attribute lets authors specify the total length for the path, in user units.
... value type: <number> ;
default value: none; animatable: yes global attributes core attributes most notably: id, tabindex styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, 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, ...
<polyline> - SVG: Scalable Vector Graphics
html,body,svg { height:100% } <svg viewbox="0 0 200 100" xmlns="http://www.w3.org/2000/svg"> <!-- example of a polyline with the
default fill --> <polyline points="0,100 50,25 50,75 100,0" /> <!-- example of the same polyline shape with stroke and no fill --> <polyline points="100,100 150,25 150,75 200,0" fill="none" stroke="black" /> </svg> attributes points this attribute defines the list of points (pairs of x,y absolute coordinates) required to draw the polyline value type: <number>+ ;
default value:...
... value type: <number> ;
default value: none; animatable: yes global attributes core attributes most notably: id, tabindex styling attributes class, style conditional processing attributes most notably: requiredextensions, systemlanguage event attributes global event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, 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 ...
Patterns - SVG: Scalable Vector Graphics
it
defaults to "objectboundingbox" as it did above, so a value of 1 is scaled to the width/height of the object you're applying the pattern to.
...this attribute
defaults to "userspaceonuse", the opposite of the patternunits attribute.
Positions - SVG: Scalable Vector Graphics
however, this is the same way elements in html are positioned (by
default, ltr documents are considered not the rtl documents which position x from right-to-left).
...the
default user coordinate system maps one user pixel to one device pixel.
Editor Embedding Guide - Archive of obsolete content
itingsession; nsiwebbrowser->do_getinterface(getter_addrefs(editingsession)); if (editingsession) editingsession->makewindoweditable(domwindow, "html", pr_true); the valid editor types are: "text" (similar to notepad or a textarea; does not allow for html) "textmail" (similar to "text" but html can be inserted; intended for plaintext mail usage and handling of citations) "html" (this is the
default type if no type is specified; it allows for all html tags to be inserted) "htmlmail" (this is much like "html" except there are a few editing rules/behaviors that differ such as splitting of mail quotes) editor commands you need to call commands and receive updates in order to make any changes to the content on the browser.
Java in Firefox Extensions - Archive of obsolete content
// guid of extension getitemlocation("test@yoursite"); //the path logic would work if we include em:unpack for ff 4.x, for ff 3.x since things are unpacked by
default things work // get path to the jar files (the following assumes your jars are within a // directory called "java" at the root of your extension's folder hierarchy) // you must add this utilities (classloader) jar to give your extension full privileges var extensionurl = "file:///" + extensionpath.path.replace(/\\/g,"/"); var classloaderjarpath = extensionurl + "/java/javafirefoxextensionutils.ja...
Basics - 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.
Settings - Archive of obsolete content
tings: [ { name: "twitter", type: "group", label: "twitter", settings: [ { name: "username", type: "text", label: "username" }, { name: "password", type: "password", label: "password" } ] }, { name: "facebook", type: "group", label: "facebook", settings: [ { name: "username", type: "text", label: "username",
default: "jdoe" }, { name: "password", type: "password", label: "secret" } ] }, { name: "music", type: "boolean", label: "music",
default: true }, { name: "volume", type: "range", label: "volume", min: 0, max: 10,
default: 5 } ] }; // import after defining manifest!
Settings - Archive of obsolete content
tings: [ { name: "twitter", type: "group", label: "twitter", settings: [ { name: "username", type: "text", label: "username" }, { name: "password", type: "password", label: "password" } ] }, { name: "facebook", type: "group", label: "facebook", settings: [ { name: "username", type: "text", label: "username",
default: "jdoe" }, { name: "password", type: "password", label: "secret" } ] }, { name: "music", type: "boolean", label: "music",
default: true }, { name: "volume", type: "range", label: "volume", min: 0, max: 10,
default: 5 } ] }; // import after defining manifest!
Clipboard Test - Archive of obsolete content
{font-weight:bold; margin-right:.5em; min-width:80px; display:inline-block;} .method>.params>.param>.description{display:inline-block; width:300px; vertical-align:top;margin-right:30px} .method>.params>.param>.type{display:inline-block; width:100px; vertical-align:top;font-weight:bold;} .method>.params>.param>.type:before{content: "type "; color: #888; font-weight:normal;} .method>.params>.param>.
default{display:inline-block; width:100px; vertical-align:top;font-weight:bold;} .method>.params>.param>.
default:before{content: "
default "; color: #888;font-weight:normal;} ]]></style> clipboard jetpack's clipboard support api provides a standardized way for features to access the clipboard.
XUL Tutorial - Archive of obsolete content
odifying a xul interface manipulating lists box objects xpcom interfaces xpcom examples trees trees more tree features tree selection custom tree views tree view details tree box objects rdf and templates introduction to rdf templates trees and templates rdf datasources advanced rules persistent data skins and locales adding style sheets styling a tree modifying the
default skin creating a skin skinning xul files by hand localization property files bindings introduction to xbl anonymous content xbl attribute inheritance adding properties adding methods adding event handlers xbl inheritance creating reusable content using css and xbl xbl example specialized window types features of a window creating dialogs open and save dialogs creating a wi...
Urlbar-icons - Archive of obsolete content
(the url bar is also known as the address bar and the navigation bar.) example the
default contents of browser.xul: <hbox id="urlbar-icons"> <button be="" chromedir="ltr" class="urlbar-icon" click="" for="" id="safebrowsing-urlbar-icon" img="" level="safe" might="" onclick="godocommand('safebrowsing-show-warning');" page="" style="-moz-user-focus:" tooltiptext="this" type="menu"> <img class="urlbar-icon" id="star-button" onclick="placesstarbutton.onclick(event);" /> <img address="" chromedir="ltr" class="urlbar-icon" id="go-button" in="" location="" on...
action - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
arrowscrollbox - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
assign - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
bbox - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
binding - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related tbd ...
bindings - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related tbd ...
broadcaster - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
broadcasterset - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
caption - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements groupbox, checkbox ...
checkbox - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related interfaces nsiaccessibleprovider, nsidomx...
colorpicker - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related interfaces nsidomxulcontrolelement bugs...
column - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements grid, columns, rows, row ...
columns - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements grid, column, rows, row.
command - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related xul:list of commands ...
commandset - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
conditions - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
content - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata relacionados tbd ...
deck - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related stack ...
description - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata style classes header a class used for headings.
dialogheader - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements dialog, window ...
dropmarker - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
grid - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements columns, column, rows, row.
grippy - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
groupbox - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related interfaces nsiaccessibleprovider ...
keyset - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
listcol - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements listbox, listcell, listcols, lis...
listcols - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements listbox, listcell, listcol, list...
listhead - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements listbox, listcell, listcol, list...
listheader - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements listbox, listcell, listcol, list...
member - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
menupopup - Archive of obsolete content
aredocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata hidepopup() return type: no return val...
menuseparator - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements menu, menubar, menuitem, menulis...
notification - Archive of obsolete content
aredocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata close() return type: no return value closes the n...
observes - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
page - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
popupset - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements popup, menupopup ...
prefpane - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata events paneload this event is fired on ...
query - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
queryset - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
radio - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements radiogroup, checkbox interfa...
resizer - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
richlistitem - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related interfaces nsiaccessibleprovider, nsidomx...
row - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements grid, columns, column, rows.
rows - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements grid, columns, column, row.
scrollbox - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
scrollcorner - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
spacer - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements separator, splitter ...
spinbuttons - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
splitter - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata style classes the following classes may be used to s...
stack - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related deck ...
statusbar - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements statusbarpanel interfaces ...
<statusbarpanel> - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata style classes the following classes may be used to s...
stringbundle - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related xul property files ...
stringbundleset - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
tabbox - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements tabs, tab, tabpanels, tabpanel.
tabpanel - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements tabbox, tabs, tab, tabpanels.
tabpanels - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements tabbox, tabs, tab, tabpanel.
tabs - Archive of obsolete content
aredocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata advanceselectedtab( dir, wrap ) return type: no re...
template - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
textnode - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
titlebar - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
toolbargrippy - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements toolbar, toolbarbutton, toolbari...
toolbaritem - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements toolbar, toolbarbutton, toolbarg...
toolbarpalette - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements toolbar, toolbarbutton, toolbarg...
toolbarseparator - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements toolbar, toolbarbutton...
toolbarset - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements toolbar, toolbarbutton...
toolbarspacer - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements toolbar, toolbarbutton, toolbarg...
toolbarspring - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements toolbar, toolbarbutton...
treecell - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements tree, treecols, treecol, treechi...
treechildren - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata example <tree flex="1"> <treecols> <treecol i...
treecols - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements tree, treecol, treechildren, tre...
treeitem - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements tree, treecols, treecol, treechi...
treerow - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements tree, treecols, treecol, treechi...
treeseparator - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements tree, treecols, treecol, treechi...
triple - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
wizard - Archive of obsolete content
aredocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata « xul reference home advance( pageid ) ret...
wizardpage - Archive of obsolete content
osition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), is
defaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related wizard ...
Custom app bundles for Mac OS X - Archive of obsolete content
ul application code and support files) application.ini (xulrunner-related application settings) example.icns (this is the icon which will be used by your application bundle) chrome/ content/ example.xul (this directory contains your application's chrome) example.manifest
defaults/ preferences/ app-prefs.js (this provides some
default values for preferences) application bundle contents in addition to the standard directory hierarchy that's required of all mac os x applications, as shown above in application bundle layout, there are some specific rules for what con...
MacFAQ - Archive of obsolete content
taking advantage of the core code "openurl" from "nscommandlineservicemac.cpp", you'll see that it looks for "browser.chromeurl" before
defaulting to navigator.xul, and this is called when an xulrunner app is already running, so: create a
default preference of "browser.chromeurl" that points to your new "hiddenwindow" as such: "chrome://myxul/content/hiddenwindow.xul" next take the code below and drop it in, to create the hiddenwindow.xul (note: the debug function and nsicommandline try/catch can be removed, all you need is the wind...
NSS Sample Code Sample_2_Initialization of NSS
eoptstate(argc, argv, "d:p:q:f:g:"); while ((status = pl_getnextopt(optstate)) == pl_opt_ok) { switch (optstate->option) { case 'd': dbdir = strdup(optstate->value); break; case 'p': plainpass = strdup(optstate->value); break; case 'f': pwfile = strdup(optstate->value); break;
default: usage(progname); break; } } pl_destroyoptstate(optstate); if (!dbdir) usage(progname); pr_init(pr_user_thread, pr_priority_normal, 0); /* create the database */ rv = nss_initreadwrite(dbdir); if (rv != secsuccess) { pr_fprintf(pr_stderr, "nss_initialize failed"); pr_cleanup(); exit(rv); } if...
NSS Sample Code Sample_3_Basic Encryption and MACing
case 'p': pwdata.source = pw_plaintext; pwdata.data = strdup(optstate->value); break; case 'i': infilename = strdup(optstate->value); break; case 'o': outfilename = strdup(optstate->value); break; case 'z': noisefilename = strdup(optstate->value); break;
default: usage(progname); break; } } pl_destroyoptstate(optstate); if (!command || !dbdir || !infilename || !outfilename) usage(progname); if (pl_strlen(command)==0) usage(progname); cmd = command[0] == 'a' ?
NSS Sample Code Utilities_1
sprintf(prompt, "enter password or pin for \"%s\":", pk11_gettokenname(slot)); return getpassword(stdin, stdout, prompt, checkpassword); case pw_fromfile: pw = filepasswd(slot, retry, pwdata->data); pwdata->source = pw_plaintext; pwdata->data = pl_strdup(pw); return pw; case pw_plaintext: return pl_strdup(pwdata->data);
default: break; } pr_fprintf(pr_stderr, "password check failed: no password found.\n"); return null; } /* * generaterandom */ secstatus generaterandom(unsigned char *rbuf, int rsize) { char meter[] = { "\r| |" }; int fd, count; int c; secstatus rv = secsuccess; cc_t ...
Hashing - sample 1
ntf(stderr, "%-20s ", ""); for (htype = 0; htype < hash_algtotal; htype++) { fprintf(stderr, hash_names[htype].hashname); if (htype == (hash_algtotal - 2)) fprintf(stderr, " or "); else if (htype != (hash_algtotal - 1)) fprintf(stderr, ", "); } fprintf(stderr, " (case ignored))\n"); fprintf(stderr, "%-20s define an input file to use (
default is stdin)\n", "< input"); fprintf(stderr, "%-20s define an output file to use (
default is stdout)\n", "> output"); exit(-1); } /* * check for the missing arguments */ static void printmsgandexit(const char *progname, char opt) { fprintf(stderr, "%s: option -%c requires an argument\n", progname, opt); usage(progname); } #define require_arg(opt,value) if ...
Initialize NSS database - sample 2
eoptstate(argc, argv, "d:p:q:f:g:"); while ((status = pl_getnextopt(optstate)) == pl_opt_ok) { switch (optstate->option) { case 'd': dbdir = strdup(optstate->value); break; case 'p': plainpass = strdup(optstate->value); break; case 'f': pwfile = strdup(optstate->value); break;
default: usage(progname); break; } } pl_destroyoptstate(optstate); if (!dbdir) usage(progname); pr_init(pr_user_thread, pr_priority_normal, 0); /* create the database */ rv = nss_initreadwrite(dbdir); if (rv != secsuccess) { pr_fprintf(pr_stderr, "nss_initialize failed"); pr_cleanup(); exit(rv); } if...
EncDecMAC using token object - sample 3
); break; case 'd': dbdir = strdup(optstate->value); break; case 'f': pwdata.source = pw_fromfile; pwdata.data = strdup(optstate->value); break; case 'p': pwdata.source = pw_plaintext; pwdata.data = strdup(optstate->value); break; case 'i': infilename = strdup(optstate->value); break; case 'o': outfilename = strdup(optstate->value); break; case 'z': noisefilename = strdup(optstate->value); break;
default: usage(progname); break; } } pl_destroyoptstate(optstate); if (!command || !dbdir || !infilename || !outfilename) usage(progname); if (pl_strlen(command)==0) usage(progname); cmd = command[0] == 'a' ?
Utilities for nss samples
sprintf(prompt, "enter password or pin for \"%s\":", pk11_gettokenname(slot)); return getpassword(stdin, stdout, prompt, checkpassword); case pw_fromfile: pw = filepasswd(slot, retry, pwdata->data); pwdata->source = pw_plaintext; pwdata->data = pl_strdup(pw); return pw; case pw_plaintext: return pl_strdup(pwdata->data);
default: break; } pr_fprintf(pr_stderr, "password check failed: no password found.\n"); return null; } /* * generaterandom */ secstatus generaterandom(unsigned char *rbuf, int rsize) { char meter[] = { "\r| |" }; int fd, count; int c; secstatus rv = secsuccess; cc_t ...
sample1
r, "%-20s ", ""); for (htype = 0; htype < hash_algtotal; htype++) { fprintf(stderr, hash_names[htype].hashname); if (htype == (hash_algtotal - 2)) fprintf(stderr, " or "); else if (htype != (hash_algtotal - 1)) fprintf(stderr, ", "); } fprintf(stderr, " (case ignored))\n"); fprintf(stderr, "%-20s define an input file to use (
default is stdin)\n", "< input"); fprintf(stderr, "%-20s define an output file to use (
default is stdout)\n", "> output"); exit(-1); } /* check for the missing arguments */ static void printmsgandexit(const char *progname, char opt) { fprintf(stderr, "%s: option -%c requires an argument\n", progname, opt); usage(progname); } #define require_arg(o...
nss tech note1
universal is the
default tag class and does not have to be specified, as the value of the class type is zero.
nss tech note2
for example, to log the softoken on windows, use: set nss_debug_pkcs11_module=nss internal pkcs #11 module the logger is available by
default in debug builds.
nss tech note7
*/ inpubkey.m_modulus.type = siunsignedinteger; inpubkey.m_exponent.type = siunsignedinteger; arena = port_newarena(der_
default_chunksize); sec_asn1encodeitem(arena, &derpubkey, &inpubkey, myrsapublickeytemplate); pubkey = seckey_importderpublickey(&derpubkey, ckk_rsa); port_freearena(arena, pr_false); public keys may be extracted from certificates.
PKCS11 FAQ
only if you identify your token as the
default random number generator.
FC_Initialize
nss_nodb_init(""), which initializes nss with no databases: "configdir='' certprefix='' keyprefix='' secmod='' flags=readonly,nocertdb,nomod db,forceopen,optimizespace " mozilla firefox initializes nss with this string (on windows): "configdir='c:\\documents and settings\\wtc\\application data\\mozilla\\firefox\\profiles\\
default.7tt' certprefix='' keyprefix='' secmod='secmod.db' flags=optimizespace manufacturerid='mozilla.org' librarydescription='psm internal crypto services' cryptotokendescription='generic crypto services' dbtokendescription='software security device' cryptoslotdescription='psm internal cryptographic services' dbslotdescription='psm private keys' fipsslotdescription='psm internal fips-140-1 cryptograph...
NSPR functions
pr_getuniqueidentity pr_createiolayerstub pr_get
defaultiomethods pr_getidentitieslayer pr_getlayersidentity pr_pushiolayer pr_popiolayer wrapping a native file descriptor if your current tcp socket code uses the standard bsd socket api, a lighter-weight method than creating your own nspr i/o layer is to simply import a native file descriptor into nspr.
troubleshoot.html
some systems may not be configured to allow this many simultaneous connections by
default; if the stress tests fail, try increasing the number of simultaneous sockets supported.
File.lastModifiedDate - Web APIs
in firefox, the privacy.reducetimerprecision preference is enabled by
default and
defaults to 20us in firefox 59; in 60 it will be 2ms.
FocusEvent() - Web APIs
focuseventinit optional is a focuseventinit dictionary, having the following fields: "relatedtarget", optional and
defaulting to null, is an eventtarget representing the secondary target of a focusevent.
FormDataEvent.formData - Web APIs
examples // grab reference to form const formelem = document.queryselector('form'); // submit handler formelem.addeventlistener('submit', (e) => { // on form submission, prevent
default e.prevent
default(); // construct a formdata object, which fires the formdata event new formdata(formelem); }); // formdata handler to retrieve data formelem.addeventlistener('formdata', (e) => { console.log('formdata fired'); // get the form data from the event object let data = e.formdata; for (var value of data.values()) { console.log(value); } // submit the data via ...
FormDataEvent - Web APIs
examples // grab reference to form const formelem = document.queryselector('form'); // submit handler formelem.addeventlistener('submit', (e) => { // on form submission, prevent
default e.prevent
default(); // construct a formdata object, which fires the formdata event new formdata(formelem); }); // formdata handler to retrieve data formelem.addeventlistener('formdata', (e) => { console.log('formdata fired'); // get the form data from the event object let data = e.formdata; for (var value of data.values()) { console.log(value); } // submit the data via ...
Using the Frame Timing API - Web APIs
er(function(list) { var perfentries = list.getentries(); for (var i=0; i < perfentries.length; i++) { switch (perfentries[i].entrytype) { case "frame": process_frame(perfentries[i]); break; case "mark": process_mark(perfentries[i]); break; case "measure": process_measure(perfentries[i]); break; case "resource": process_resource(perfentries[i]); break;
default: console.log("unexpected performance entry type: " + perfentries[i].entrytype); } } }); // observe frame, mark, measure and resource events observe_frame.observe({entrytypes: ['frame', 'mark', 'measure', 'resource']}); accessing frame data when a frame observer is invoked, the observer callback is given one argument that is a performanceobserverentrylist object.
Fullscreen API - Web APIs
the full-screen mode feature is identified by the string "fullscreen", with a
default allow-list value of "self", meaning that full-screen mode is permitted in top-level document contexts, as well as to nested browsing contexts loaded from the same origin as the top-most document.
GainNode - Web APIs
number of inputs 1 number of outputs 1 channel count mode "max" channel count 2 (not used in the
default count mode) channel interpretation "speakers" constructor gainnode() creates a new instance of a gainnode object.
GlobalEventHandlers.ondrag - Web APIs
color: blue; border: 1px solid black; } #target { border: 1px solid black; } </style> </head> <script> function drag_handler(ev) { console.log("drag"); } function dragstart_handler(ev) { console.log("dragstart"); ev.datatransfer.setdata("text", ev.target.id); } function drop_handler(ev) { console.log("drop"); ev.currenttarget.style.background = "lightyellow"; ev.prevent
default(); var data = ev.datatransfer.getdata("text"); ev.target.appendchild(document.getelementbyid(data)); } function dragover_handler(ev) { console.log("dragover"); ev.prevent
default(); } </script> <body> <h1>examples of <code>ondrag</code>, <code>ondrop</code>, <code>ondragstart</code>, <code>ondragover</code></h1> <div> <!-- <div class="source"> --> <p id="source" ondrag="drag_handler(event...
GlobalEventHandlers.ondragend - Web APIs
onsole.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.prevent
default(); } function drop_handler(ev) { console.log("drop"); ev.prevent
default(); 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.
GlobalEventHandlers.ondragenter - Web APIs
onsole.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.prevent
default(); } function drop_handler(ev) { console.log("drop"); ev.prevent
default(); 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.
GlobalEventHandlers.ondragexit - Web APIs
onsole.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.prevent
default(); } function drop_handler(ev) { console.log("drop"); ev.prevent
default(); 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.
GlobalEventHandlers.ondragleave - Web APIs
onsole.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.prevent
default(); } function drop_handler(ev) { console.log("drop"); ev.prevent
default(); 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.
GlobalEventHandlers.ondragover - Web APIs
color: blue; border: 1px solid black; } #target { border: 1px solid black; } </style> </head> <script> function drag_handler(ev) { console.log("drag"); } function dragstart_handler(ev) { console.log("dragstart"); ev.datatransfer.setdata("text", ev.target.id); } function drop_handler(ev) { console.log("drop"); ev.currenttarget.style.background = "lightyellow"; ev.prevent
default(); var data = ev.datatransfer.getdata("text"); ev.target.appendchild(document.getelementbyid(data)); } function dragover_handler(ev) { console.log("dragover"); ev.prevent
default(); } </script> <body> <h1>examples of <code>ondrag</code>, <code>ondrop</code>, <code>ondragstart</code>, <code>ondragover</code></h1> <div> <p id="source" ondrag="drag_handler(event);" ondragstart="dragstart_han...
GlobalEventHandlers.ondragstart - Web APIs
color: blue; border: 1px solid black; } #target { border: 1px solid black; } </style> </head> <script> function drag_handler(ev) { console.log("drag"); } function dragstart_handler(ev) { console.log("dragstart"); ev.datatransfer.setdata("text", ev.target.id); } function drop_handler(ev) { console.log("drop"); ev.currenttarget.style.background = "lightyellow"; ev.prevent
default(); var data = ev.datatransfer.getdata("text"); ev.target.appendchild(document.getelementbyid(data)); } function dragover_handler(ev) { console.log("dragover"); ev.prevent
default(); } </script> <body> <h1>examples of <code>ondrag</code>, <code>ondrop</code>, <code>ondragstart</code>, <code>ondragover</code></h1> <div> <p id="source" ondrag="drag_handler(event);" ondragstart="dragstart_han...
GlobalEventHandlers.ondrop - Web APIs
color: blue; border: 1px solid black; } #target { border: 1px solid black; } </style> </head> <script> function drag_handler(ev) { console.log("drag"); } function dragstart_handler(ev) { console.log("dragstart"); ev.datatransfer.setdata("text", ev.target.id); } function drop_handler(ev) { console.log("drop"); ev.currenttarget.style.background = "lightyellow"; ev.prevent
default(); var data = ev.datatransfer.getdata("text"); ev.target.appendchild(document.getelementbyid(data)); } function dragover_handler(ev) { console.log("dragover"); ev.prevent
default(); } </script> <body> <h1>examples of <code>ondrag</code>, <code>ondrop</code>, <code>ondragstart</code>, <code>ondragover</code></h1> <div class="source"> <p id="source" ondrag="drag_handler(event);" ondragstart...
GlobalEventHandlers.onerror - Web APIs
source: url of the script where the error was raised (string) lineno: line number where error was raised (number) colno: column number for the line where the error occurred (number) error: error object (object) when the function returns true, this prevents the firing of the
default event handler.
GlobalEventHandlers.onformdata - Web APIs
examples // grab reference to form const formelem = document.queryselector('form'); // submit handler formelem.addeventlistener('submit', (e) => { // on form submission, prevent
default e.prevent
default(); // construct a formdata object, which fires the formdata event new formdata(formelem); }); // formdata handler to retrieve data formelem.onformdata = (e) => { console.log('formdata fired'); // get the form data from the event object let data = e.formdata; for (var value of data.values()) { console.log(value); } // submit the data via xhr var reques...
GlobalEventHandlers.oninvalid - Web APIs
elementbyid('error'); const city = document.getelementbyid('city'); const thanks = document.getelementbyid('thanks'); city.oninvalid = invalid; form.onsubmit = submit; function invalid(event) { error.removeattribute('hidden'); } function submit(event) { form.setattribute('hidden', ''); thanks.removeattribute('hidden'); // for this example, don't actually submit the form event.prevent
default(); } result specification specification status comment html living standardthe definition of 'oninvalid' in that specification.
GlobalEventHandlers.onmousedown - Web APIs
css .container { width: 320px; height: 213px; background: black; } .view { position: absolute; width: 100px; height: 100px; background: white; border-radius: 50%; } img { mix-blend-mode: darken; } javascript function showview(event) { view.removeattribute('hidden'); view.style.left = event.clientx - 50 + 'px'; view.style.top = event.clienty - 50 + 'px'; event.prevent
default(); } function moveview(event) { view.style.left = event.clientx - 50 + 'px'; view.style.top = event.clienty - 50 + 'px'; } function hideview(event) { view.setattribute('hidden', ''); } const container = document.queryselector('.container'); const view = document.queryselector('.view'); container.onmousedown = showview; container.onmousemove = moveview; document.onmouseup = hideview; re...
GlobalEventHandlers.onsubmit - Web APIs
elementbyid('error'); const city = document.getelementbyid('city'); const thanks = document.getelementbyid('thanks'); city.oninvalid = invalid; form.onsubmit = submit; function invalid(event) { error.removeattribute('hidden'); } function submit(event) { form.setattribute('hidden', ''); thanks.removeattribute('hidden'); // for this example, don't actually submit the form event.prevent
default(); } result specifications specification status comment html living standardthe definition of 'onsubmit' in that specification.
GlobalEventHandlers.onwheel - Web APIs
html <div>scale me with your mouse wheel.</div> css body { min-height: 100vh; margin: 0; display: flex; align-items: center; justify-content: center; } div { width: 80px; height: 80px; background: #cdf; padding: 5px; transition: transform .3s; } javascript function zoom(event) { event.prevent
default(); if (event.deltay < 0) { // zoom in scale *= event.deltay * -2; } else { // zoom out scale /= event.deltay * 2; } // restrict scale scale = math.min(math.max(.125, scale), 4); // apply scale transform el.style.transform = `scale(${scale})`; } let scale = 1; const el = document.queryselector('div'); document.onwheel = zoom; result specification s...
HTMLAnchorElement - Web APIs
htmlhyperlinkelementutils.host is a usvstring representing the hostname and port (if it's not the
default port) in the referenced url.
HTMLAreaElement - Web APIs
htmlhyperlinkelementutils.host is a usvstring containing the hostname and port (if it's not the
default port) in the referenced url.
msAudioCategory - Web APIs
gameeffects game sound effects designed to mix with existing audio characters talking all non-music sounds no gamemedia background music played by a game no soundeffects game or other sound effects designed to mix with existing audio: characters talking beeps, dings, brief sounds no other
default audio type, and recommended for all audio media that does not need to continue playing in the background.
SpeechSynthesisUtterance.onpause - Web APIs
inputform.onsubmit = function(event) { event.prevent
default(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selectedoptions[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); utterthis.onpause = function(event) { console.log('speech paused after ' + event.elapse...
SpeechSynthesisUtterance.onresume - Web APIs
inputform.onsubmit = function(event) { event.prevent
default(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selectedoptions[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); utterthis.onresume = function(event) { console.log('speech resumed after ' + event.elap...
SpeechSynthesisUtterance.onstart - Web APIs
inputform.onsubmit = function(event) { event.prevent
default(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selectedoptions[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); utterthis.onstart = function(event) { console.log('we have started uttering this speech...
SpeechSynthesisUtterance.text - Web APIs
inputform.onsubmit = function(event) { event.prevent
default(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selectedoptions[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } console.log(utterthis.text); synth.speak(utterthis); inputtxt.blur(); } specifications specification ...
SpeechSynthesisVoice.lang - Web APIs
examples for(i = 0; i < voices.length ; i++) { var option = document.createelement('option'); option.textcontent = voices[i].name + ' (' + voices[i].lang + ')'; if(voices[i].
default) { option.textcontent += ' --
default'; } option.setattribute('data-lang', voices[i].lang); option.setattribute('data-name', voices[i].name); voiceselect.appendchild(option); } specifications specification status comment web speech apithe definition of 'lang' in that specification.
SpeechSynthesisVoice.localService - Web APIs
examples for(i = 0; i < voices.length ; i++) { var option = document.createelement('option'); option.textcontent = voices[i].name + ' (' + voices[i].lang + ')'; if(voices[i].
default) { option.textcontent += ' --
default'; } console.log(voices[i].localservice); option.setattribute('data-lang', voices[i].lang); option.setattribute('data-name', voices[i].name); voiceselect.appendchild(option); } specifications specification status comment web speech apithe definition of 'localservice' in that specification.
SpeechSynthesisVoice.name - Web APIs
examples for(i = 0; i < voices.length ; i++) { var option = document.createelement('option'); option.textcontent = voices[i].name + ' (' + voices[i].lang + ')'; if(voices[i].
default) { option.textcontent += ' --
default'; } option.setattribute('data-lang', voices[i].lang); option.setattribute('data-name', voices[i].name); voiceselect.appendchild(option); } specifications specification status comment web speech apithe definition of 'name' in that specification.
SpeechSynthesisVoice.voiceURI - Web APIs
examples for(i = 0; i < voices.length ; i++) { var option = document.createelement('option'); option.textcontent = voices[i].name + ' (' + voices[i].lang + ')'; if(voices[i].
default) { option.textcontent += ' --
default'; } console.log(voices[i].voiceuri); // on mac, this returns urns, for example 'urn:moz-tts:osx:com.apple.speech.synthesis.voice.daniel' option.setattribute('data-lang', voices[i].lang); option.setattribute('data-name', voices[i].name); voiceselect.appendchild(option); } specifications specification status comment w...
StaticRange - Web APIs
e="#d4dde4" stroke-width="2px" /><text x="226" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">staticrange</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor staticrange() creates a new staticrange object given the staticrangeinit dictionary specifying the
default values for its properties.
Storage API - Web APIs
the "persistent-storage" feature's permission-related flags, algorithms, and types are all set to the standard
defaults for a permission, except that the permission state must be the same across the entire origin, and that if the permission state isn't "granted" (meaning that for whatever reason, access to the persistent storage feature was denied), the origin's site storage unit's box mode is always "best-effort".
Streams API concepts - Web APIs
to use backpressure in a readablestream, we can ask the controller for the chunk size desired by the consumer by querying the readablestream
defaultcontroller.desiredsize property on the controller.
SubtleCrypto.encrypt() - Web APIs
while it's possible to add authentication to ctr and cbc modes, they do not provide it by
default and when implementing it manually one can easily make minor, but serious mistakes.
TextDecoder - Web APIs
let utf8decoder = new textdecoder(); //
default 'utf-8' or 'utf8' let u8arr = new uint8array([240, 160, 174, 183]); let i8arr = new int8array([-16, -96, -82, -73]); let u16arr = new uint16array([41200, 47022]); let i16arr = new int16array([-24336, -18514]); let i32arr = new int32array([-1213292304]); console.log(utf8decoder.decode(u8arr)); console.log(utf8decoder.decode(i8arr)); console.log(utf8decoder.decode(u16arr)); console.log(utf8decode...
clipPathUnits - SVG: Scalable Vector Graphics
value userspaceonuse | objectboundingbox
default value userspaceonuse animatable yes userspaceonuse this value indicates that all coordinates inside the <clippath> element refer to the user coordinate system as defined when the clipping path was created.
color-interpolation - SVG: Scalable Vector Graphics
the following 29 elements: <a>, <animate>, <animatecolor>, <circle>, <clippath>, <defs>, <ellipse>, <foreignobject>, <g>, <glyph>, <image>, <line>, <lineargradient>, <marker>, <mask>, <missing-glyph>, <path>, <pattern>, <polygon>, <polyline>, <radialgradient>, <rect>, <svg>, <switch>, <symbol>, <text>, <textpath>, <tspan>, and <use> usage notes value auto | srgb | linearrgb
default value srgb animatable yes auto indicates that the user agent can choose either the srgb or linearrgb spaces for color interpolation.
color-profile - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it only has an effect on the following element: <image> usage notes value auto | srgb | <name> | <iri>
default value auto animatable yes auto all colors are presumed to be defined in the srgb color space unless a more precise embedded profile is specified within content data.
color-rendering - SVG: Scalable Vector Graphics
uality" /> <text x="45" y="50%" color-rendering="optimizequality">quality-optimized</text> <circle cx="100" cy="100" r="100" color-rendering="optimizespeed" fill="url(#gradient)" style="transform: translatex(240px);" /> <text x="290" y="50%" color-rendering="optimizespeed">speed-optimized</text> </svg> usage notes value auto | optimizespeed | optimizequality
default value auto animatable yes auto indicates that the user agent shall make appropriate tradeoffs to balance speed and quality, but quality shall be given more importance than speed.
color - SVG: Scalable Vector Graphics
usage notes value <color> | inherit
default value depends on user agent animatable yes example html, body, svg { height: 100%; } <svg viewbox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <g color="green"> <rect width="50" height="50" fill="currentcolor" /> <circle r="25" cx="70" cy="70" stroke="currentcolor" fill="none" stroke-width="5" /> </g> </svg> specifications specification ...
contentStyleType - SVG: Scalable Vector Graphics
usage notes value one of the content types specified in the media types
default value text/css animatable no since css is the only widely deployed style sheet language for online styling and it's already defined as
default value if contentstyletype is ommitted, the attribute is not well supported in user agents.
cursor - SVG: Scalable Vector Graphics
usage context categories presentation attribute value [[<funciri>,]* [ auto | crosshair |
default | pointer | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize| text | wait | help ]] | inherit animatable yes normative document svg 1.1 (2nd edition) <funciri> functional notation for a reference.
descent - SVG: Scalable Vector Graphics
only one element is using this attribute: <font-face> usage notes value <number>
default value value of vert-origin-y animatable no specifications specification status comment scalable vector graphics (svg) 1.1 (second edition)the definition of 'descent' in that specification.
diffuseConstant - SVG: Scalable Vector Graphics
uselighting in="sourcegraphic" diffuseconstant="2"> <fepointlight x="60" y="60" z="20" /> </fediffuselighting> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#diffuselighting1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#diffuselighting2); transform: translatex(220px);" /> </svg> usage notes value <number>
default value 1 animatable yes specifications specification status comment filter effects module level 1the definition of 'diffuseconstant' in that specification.
direction - SVG: Scalable Vector Graphics
html, body, svg { height: 100%; } <svg viewbox="0 0 600 72" xmlns="http://www.w3.org/2000/svg" direction="rtl" lang="fa"> <text x="300" y="50" text-anchor="middle" font-size="36">داستان svg 1.1 se طولا ني است.</text> </svg> usage notes value ltr | rtl
default value ltr animatable yes specifications specification status comment css writing modes module level 3the definition of 'direction' in that specification.
display - SVG: Scalable Vector Graphics
tangle is displayed --> <rect x="0" y="0" width="100" height="100" fill="skyblue"></rect> <rect x="20" y="20" width="60" height="60" fill="yellow"></rect> <!-- here the yellow rectangle is not displayed --> <rect x="120" y="0" width="100" height="100" fill="skyblue"></rect> <rect x="140" y="20" width="60" height="60" fill="yellow" display="none"></rect> </svg> usage notes
default value inline value [ <display-outside> | <display-inside> ] | <display-listitem> | <display-internal> | <display-box> | <display-legacy>where <display-outside> = block | inline | run-in<display-inside> = flow | flow-root | table | flex | grid | ruby<display-listitem> = <display-outside>?
dur - SVG: Scalable Vector Graphics
h="100" height="100"> <animate attributetype="xml" attributename="y" from="0" to="50" dur="1s" repeatcount="indefinite"/> </rect> <rect x="120" y="0" width="100" height="100"> <animate attributetype="xml" attributename="y" from="0" to="50" dur="3s" repeatcount="indefinite"/> </rect> </svg> usage notes value <clock-value> | media | indefinite
default value indefinite animatable no <clock-value> this value specifies the length of the simple duration.
elevation - SVG: Scalable Vector Graphics
iffuselighting> </filter> <filter id="distantlight2"> <fediffuselighting> <fedistantlight elevation="45" /> </fediffuselighting> </filter> <circle cx="100" cy="100" r="80" style="filter: url(#distantlight1);" /> <circle cx="100" cy="100" r="80" style="filter: url(#distantlight2); transform: translatex(240px);" /> </svg> usage notes value <number>
default value 0 animatable yes specifications specification status comment filter effects module level 1the definition of 'elevation' in that specification.
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.
end - SVG: Scalable Vector Graphics
five elements are using this attribute: <animate>, <animatecolor>, <animatemotion>, <animatetransform>, and <set> usage notes
default value none value <end-value-list> animatable no the <end-value-list> is a semicolon-separated list of values.
exponent - SVG: Scalable Vector Graphics
funcb type="gamma" exponent="5"/> </fecomponenttransfer> </filter> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" style="filter: url(#componenttransfer1);" /> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" style="filter: url(#componenttransfer2); transform: translatex(220px);" /> </svg> usage notes value <number>
default value 1 animatable yes <number> if the type attribute of the component element is set to gamma, this value specifies the exponent of the gamma function specifications specification status comment filter effects module level 1the definition of 'exponent' in that specification.
filter - SVG: Scalable Vector Graphics
html, body, svg { height: 100%; } <svg viewbox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <filter id="blur"> <fegaussianblur stddeviation="2" /> </filter> <rect x="10" y="10" width="80" height="80" filter="url(#blur)" /> </svg> usage notes value none | <filter-function-list>
default value none animatable yes for a description of the values see the css filter property.
filterUnits - SVG: Scalable Vector Graphics
only one element is using this attribute: <filter> usage notes value userspaceonuse | objectboundingbox
default value objectboundingbox animatable yes userspaceonuse x, y, width and height represent values in the current coordinate system that results from taking the current user coordinate system in place at the time when the <filter> element is referenced (i.e., the user coordinate system for the element referencing the <filter> element via a filter attribute).
font-family - SVG: Scalable Vector Graphics
wbox="0 0 200 30" xmlns="http://www.w3.org/2000/svg"> <text y="20" font-family="arial, helvetica, sans-serif">sans serif</text> <text x="100" y="20" font-family="monospace">monospace</text> </svg> usage notes value [ <family-name> | <generic-family> ]#where <family-name> = <string> | <custom-ident>+<generic-family> = serif | sans-serif | cursive | fantasy | monospace
default value depends on user agent animatable yes for a description of the values, please refer to the css font-family property.
font-size - SVG: Scalable Vector Graphics
only on the following eight elements: <altglyph>, <text>, <textpath>, <tref>, and <tspan> html, body, svg { height: 100%; } <svg viewbox="0 0 200 30" xmlns="http://www.w3.org/2000/svg"> <text y="20" font-size="smaller">smaller</text> <text x="100" y="20" font-size="2em">2em</text> </svg> usage notes value <absolute-size> | <relative-size> | <length-percentage>
default value medium animatable yes for a description of the values, please refer to the css font-size property.
font-stretch - SVG: Scalable Vector Graphics
ion attribute, it can be applied to any element but it has effect only on the following eight elements: <altglyph>, <text>, <textpath>, <tref>, and <tspan> usage notes value <font-stretch-absolute>where <font-stretch-absolute> = normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded | <percentage>
default value normal animatable yes specifications specification status comment css fonts module level 4the definition of 'font-stretch' in that specification.
font-style - SVG: Scalable Vector Graphics
effect on the following five elements: <altglyph>, <text>, <textpath>, <tref>, and <tspan> html, body, svg { height: 100%; } <svg viewbox="0 0 250 30" xmlns="http://www.w3.org/2000/svg"> <text y="20" font-style="normal">normal font style</text> <text x="150" y="20" font-style="italic">italic font style</text> </svg> usage notes value normal | italic | oblique
default value normal animatable yes for a description of the values, please refer to the css font-style property.
font-variant - SVG: Scalable Vector Graphics
e># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero || <east-asian-variant-values> || <east-asian-width-values> || ruby ]
default value normal animatable yes for a description of the values, please refer to the css font-variant property.
font-weight - SVG: Scalable Vector Graphics
ly on the following eight elements: <altglyph>, <text>, <textpath>, <tref>, and <tspan> html, body, svg { height: 100%; } <svg viewbox="0 0 200 30" xmlns="http://www.w3.org/2000/svg"> <text y="20" font-weight="normal">normal text</text> <text x="100" y="20" font-weight="bold">bold text</text> </svg> usage notes value normal | bold | bolder | lighter | <number>
default value normal animatable yes for a description of the values, please refer to the css font-weight property.
format - SVG: Scalable Vector Graphics
two elements are using this attribute: <altglyph> and <glyphref> context notes value <string>
default value none animatable no <string> this value specifies the format of the given font.
fr - SVG: Scalable Vector Graphics
r="0.5" fx="0.35" fy="0.35" fr="25%"> <stop offset="0%" stop-color="white"/> <stop offset="100%" stop-color="darkseagreen"/> </radialgradient> </defs> <circle cx="100" cy="100" r="100" fill="url(#gradient1)" /> <circle cx="100" cy="100" r="100" fill="url(#gradient2)" style="transform: translatex(240px);" /> </svg> usage notes value <length>
default value 0 animatable none example <svg viewbox="0 0 120 120" width="200" height="200" xmlns="http://www.w3.org/2000/svg"> <defs> <radialgradient id="gradient" cx="0.5" cy="0.5" r="0.5" fx="0.35" fy="0.35" fr="5%"> <stop offset="0%" stop-color="red"/> <stop offset="100%" stop-color="blue"/> </radialgradient> </defs> <rect x="10" y="10" rx="15...
from - SVG: Scalable Vector Graphics
four elements are using this attribute: <animate>, <animatecolor>, <animatemotion>, and <animatetransform> html, body, svg { height: 100%; } <svg viewbox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"> <rect x="10" y="10" height="100"> <animate attributename="width" fill="freeze" from="100" to="150" dur="3s"/> </rect> </svg> usage notes value see below
default value none animatable no the exact value type for this attribute depends on the value of the attribute that will be animated.
fx - SVG: Scalable Vector Graphics
r="0.5" fx="0.75" fy="0.35" fr="5%"> <stop offset="0%" stop-color="white"/> <stop offset="100%" stop-color="darkseagreen"/> </radialgradient> </defs> <circle cx="100" cy="100" r="100" fill="url(#gradient1)" /> <circle cx="100" cy="100" r="100" fill="url(#gradient2)" style="transform: translatex(240px);" /> </svg> usage notes value <length>
default value coincides with the presentational value of cx for the element whether the value for cx was inherited or not.
fy - SVG: Scalable Vector Graphics
r="0.5" fx="0.35" fy="0.75" fr="5%"> <stop offset="0%" stop-color="white"/> <stop offset="100%" stop-color="darkseagreen"/> </radialgradient> </defs> <circle cx="100" cy="100" r="100" fill="url(#gradient1)" /> <circle cx="100" cy="100" r="100" fill="url(#gradient2)" style="transform: translatex(240px);" /> </svg> usage notes value <length>
default value coincides with the presentational value of cy for the element whether the value for cy was inherited or not.
g1 - SVG: Scalable Vector Graphics
two elements are using this attribute: <hkern> and <vkern> context notes value <name>#
default value none animatable no <name># this value indicates a comma-separated sequence of glyph names (i.e., values that match glyph-name attributes on <glyph> elements) which identify a set of possible first glyphs in the kerning pair.
g2 - SVG: Scalable Vector Graphics
two elements are using this attribute: <hkern> and <vkern> context notes value <name>#
default value none animatable no <name># this value indicates a comma-separated sequence of glyph names (i.e., values that match glyph-name attributes on <glyph> elements) which identify a set of possible second glyphs in the kerning pair.
glyph-name - SVG: Scalable Vector Graphics
only one element is using this attribute: <glyph> context notes value <name>#
default value none animatable no <name># this value specifies a comma-separated list of names for the glyph.
glyph-orientation-horizontal - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following five elements: <altglyph>, <textpath>, <text>, <tref>, and <tspan> context notes value <angle>
default value 0deg animatable no <angle> the value of the angle is restricted to 0, 90, 180, and 270 degrees.
glyph-orientation-vertical - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following five elements: <altglyph>, <textpath>, <text>, <tref>, and <tspan> context notes value auto | <angle>
default value auto animatable no auto fullwidth ideographic and fullwidth latin text will be set with a glyph orientation of 0 degrees.
glyphRef - SVG: Scalable Vector Graphics
two elements are using this attribute: <altglyph> and <glyphref> usage notes value <string>
default value none animatable yes <string> this value represents the glyph identifier.
gradientTransform - SVG: Scalable Vector Graphics
0) translate(-35, 0)"> <stop offset="0%" stop-color="darkblue" /> <stop offset="50%" stop-color="skyblue" /> <stop offset="100%" stop-color="darkblue" /> </radialgradient> <rect x="0" y="0" width="200" height="200" fill="url(#gradient1)" /> <rect x="0" y="0" width="200" height="200" fill="url(#gradient2)" style="transform: translatex(220px);" /> </svg> usage notes
default value identity transform value <transform-list> animatable yes <transform-list> a list of transformation functions specifying some additional transformation from the gradient coordinate system onto the target coordinate system.
hanging - SVG: Scalable Vector Graphics
only one element is using this attribute: <font-face> usage notes value <number>
default value none animatable no <number> this value indicates the alignment coordinate for the glyphs.
horiz-origin-x - SVG: Scalable Vector Graphics
only one element is using this attribute: <font> usage notes value <number>
default value 0 animatable no <number> this value indicates the x-coordinate of the origin of a glyph for horizontally oriented text.
horiz-origin-y - SVG: Scalable Vector Graphics
only one element is using this attribute: <font> usage notes value <number>
default value 0 animatable no <number> this value indicates the x-coordinate of the origin of a glyph for horizontally oriented text.
id - SVG: Scalable Vector Graphics
<svg width="120" height="120" viewbox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"> <style type="text/css"> <![cdata[ #smallrect { stroke: #000066; fill: #00cc00; } ]]> </style> <rect id="smallrect" x="10" y="10" width="100" height="100" /> </svg> usage notes value <id>
default value none animatable no <id> specifies the element's id.
ideographic - SVG: Scalable Vector Graphics
only one element is using this attribute: <font-face> usage notes value <number>
default value none animatable no <number> this value indicates the alignment coordinate for the glyphs.
image-rendering - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following element: <image> usage notes value auto | optimizespeed | optimizequality
default value auto animatable yes auto indicates that the user agent shall make appropriate tradeoffs to balance speed and quality, but quality shall be given more importance than speed.
in - SVG: Scalable Vector Graphics
: <feblend>, <fecolormatrix>, <fecomponenttransfer>, <fecomposite>, <feconvolvematrix>, <fediffuselighting>, <fedisplacementmap>, <fedropshadow>, <fegaussianblur>, <femergenode>, <femorphology>, <feoffset>, <fespecularlighting>, <fetile> usage notes value sourcegraphic | sourcealpha | backgroundimage | backgroundalpha | fillpaint | strokepaint | <filter-primitive-reference>
default value sourcegraphic for first filter primitive, otherwise result of previous filter primitive animatable yes sourcegraphic this keyword represents the graphics elements that were the original input into the <filter> element.
limitingConeAngle - SVG: Scalable Vector Graphics
tant="2"> <fespotlight x="10" y="10" z="50" pointsatx="100" pointsaty="100" limitingconeangle="40" /> </fediffuselighting> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#spotlight1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#spotlight2); transform: translatex(220px);" /> </svg> usage notes value <number>
default value 0 animatable yes specifications specification status comment filter effects module level 1the definition of 'limitingconeangle' in that specification.
local - SVG: Scalable Vector Graphics
only one element is using this attribute: <color-profile> usage notes value <string>
default value none animatable no <string> this value specifies the unique id for a locally stored color profile as specified by international color consortium.
marker-end - SVG: Scalable Vector Graphics
10 10" refx="1" refy="5" markerunits="strokewidth" markerwidth="10" markerheight="10" orient="auto"> <path d="m 0 0 l 10 5 l 0 10 z" fill="#f00"/> </marker> </defs> <polyline fill="none" stroke="black" points="20,100 40,60 70,80 100,20" marker-end="url(#triangle)"/> </svg> usage notes value none | <marker-ref>
default value none animatable yes none indicates that no marker symbol shall be drawn at the final vertex.
marker-mid - SVG: Scalable Vector Graphics
0 120 120" xmlns="http://www.w3.org/2000/svg"> <defs> <marker id="circle" markerwidth="8" markerheight="8" refx="4" refy="4"> <circle cx="4" cy="4" r="4" stroke="none" fill="#f00"/> </marker> </defs> <polyline fill="none" stroke="black" points="20,100 40,60 70,80 100,20" marker-mid="url(#circle)"/> </svg> usage notes value none | <marker-ref>
default value none animatable yes none indicates that no marker symbol shall be drawn at the given vertices.
marker-start - SVG: Scalable Vector Graphics
0 10" refx="1" refy="5" markerunits="strokewidth" markerwidth="10" markerheight="10" orient="auto"> <path d="m 0 0 l 10 5 l 0 10 z" fill="#f00"/> </marker> </defs> <polyline fill="none" stroke="black" points="20,100 40,60 70,80 100,20" marker-start="url(#triangle)"/> </svg> usage notes value none | <marker-ref>
default value none animatable yes none indicates that no marker symbol shall be drawn at the first vertex.
markerHeight - SVG: Scalable Vector Graphics
only one element is using this attribute: <marker> usage notes value <length-percentage> | <number>
default value 3 animatable yes <length-percentage> this value defines either an absolute or a relative height of the marker.
markerUnits - SVG: Scalable Vector Graphics
usage notes value userspaceonuse | strokewidth
default value strokewidth animatable yes userspaceonuse this value specifies that the markerwidth and markerunits attributes and the contents of the <marker> element represent values in the current user coordinate system in place for the graphic object referencing the marker (i.e., the user coordinate system for the element referencing the <marker> element via a marker, marker-start, marker-mid, or marker-end property).
markerWidth - SVG: Scalable Vector Graphics
only one element is using this attribute: <marker> usage notes value <length-percentage> | <number>
default value 3 animatable yes <length-percentage> this value defines either an absolute or a relative width of the marker.
mask - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has noticeable effects mostly on the following nineteen elements: <a>, <circle>, <clippath>, <ellipse>, <g>, <glyph>, <image>, <line>, <marker>, <mask>, <path>, <pattern>, <polygon>, <polyline>, <rect>, <svg>, <symbol>, <text>, <use> usage notes value see the css property mask
default value none animatable yes specifications specification status comment css masking module level 1the definition of 'mask' in that specification.
maskContentUnits - SVG: Scalable Vector Graphics
value userspaceonuse | objectboundingbox
default value userspaceonuse animatable yes userspaceonuse this value indicates that all coordinates inside the <mask> element refer to the user coordinate system as defined when the mask was created.
maskUnits - SVG: Scalable Vector Graphics
value userspaceonuse | objectboundingbox
default value objectboundingbox animatable yes userspaceonuse this value indicates that all coordinates for the geometry attributes refer to the user coordinate system as defined when the mask was created.
mathematical - SVG: Scalable Vector Graphics
only one element is using this attribute: <font-face> usage notes value <number>
default value none animatable no <number> this value indicates the alignment coordinate for the glyphs.
max - SVG: Scalable Vector Graphics
"10" r="10"> <animate attributename="cx" dur="4s" max="6s" repeatcount="indefinite" values="60 ; 110 ; 60 ; 10 ; 60" keytimes="0 ; 0.25 ; 0.5 ; 0.75 ; 1"/> <animate attributename="cy" dur="4s" max="6s" repeatcount="indefinite" values="10 ; 60 ; 110 ; 60 ; 10" keytimes="0 ; 0.25 ; 0.5 ; 0.75 ; 1"/> </circle> </svg> usage notes value <clock-value>
default value none animatable no <clock-value> specifies the length of the maximum value of the active duration, measured in local time.
media - SVG: Scalable Vector Graphics
body, svg { height: 100%; } <svg viewbox="0 0 240 220" xmlns="http://www.w3.org/2000/svg"> <style> rect { fill: black; } </style> <style media="all and (min-width: 600px)"> rect { fill: seagreen; } </style> <text y="15">resize the window to see the effect</text> <rect y="20" width="200" height="200" /> </svg> usage notes value <media-query-list>
default value all animatable yes <media-query-list> this value holds a media query that needs to match in order for the style sheet to be applied.
method - SVG: Scalable Vector Graphics
value align | stretch
default value align animatable yes align this value indicates that the characters should be rendered so that they are not stretched or warped.
min - SVG: Scalable Vector Graphics
"10" r="10"> <animate attributename="cx" dur="4s" min="2s" repeatcount="indefinite" values="60 ; 110 ; 60 ; 10 ; 60" keytimes="0 ; 0.25 ; 0.5 ; 0.75 ; 1"/> <animate attributename="cy" dur="4s" min="2s" repeatcount="indefinite" values="10 ; 60 ; 110 ; 60 ; 10" keytimes="0 ; 0.25 ; 0.5 ; 0.75 ; 1"/> </circle> </svg> usage notes value <clock-value>
default value 0 animatable no <clock-value> specifies the length of the minimum value of the active duration, measured in local time.
mode - SVG: Scalable Vector Graphics
> </filter> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="filter:url(#blending1);"/> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="filter:url(#blending2); transform:translatex(220px);"/> </svg> usage notes value <blend-mode>
default value normal animatable yes for a description of the values, see <blend-mode>.
numOctaves - SVG: Scalable Vector Graphics
="1" /> </filter> <filter id="noise2" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.025" numoctaves="3" /> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#noise1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#noise2); transform: translatex(220px);" /> </svg> usage notes value <integer>
default value 1 animatable yes <integer> defines the number of octaves.
onclick - SVG: Scalable Vector Graphics
, <rect>, <script>, <set>, <stop>, <style>, <svg>, <switch>, <symbol>, <text>, <textpath>, <title>, <tref>, <tspan>, <use>, <view> html, body, svg { height: 100%; margin: 0; } <svg viewbox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"> <circle cx="100" cy="100" r="100" onclick="alert('you have clicked the circle.')" /> </svg> usage notes value <anything>
default value none animatable no specifications specification status comment scalable vector graphics (svg) 2the definition of 'onclick' in that specification.
opacity - SVG: Scalable Vector Graphics
t" x1="0%" y1="0%" x2="0" y2="100%"> <stop offset="0%" style="stop-color:skyblue;" /> <stop offset="100%" style="stop-color:seagreen;" /> </lineargradient> </defs> <rect x="0" y="0" width="100%" height="100%" fill="url(#gradient)" /> <circle cx="50" cy="50" r="40" fill="black" /> <circle cx="150" cy="50" r="40" fill="black" opacity="0.3" /> </svg> usage notes
default value 1 value <alpha-value> animatable yes <alpha-value> the uniform opacity setting to be applied across an entire object, as a <number>.
orient - SVG: Scalable Vector Graphics
oints="10,10 10,90 90,90" fill="none" stroke="black" marker-start="url(#arrow)" marker-end="url(#arrow)" /> <polyline points="15,80 29,50 43,60 57,30 71,40 85,15" fill="none" stroke="grey" marker-start="url(#dataarrow)" marker-mid="url(#dataarrow)" marker-end="url(#dataarrow)" /> </svg> usage notes value auto | auto-start-reverse | <angle> | <number>
default value 0 animatable yes (non-additive) auto this value indicates that the marker is oriented such that its positive x-axis is pointing in a direction relative to the path at the position the marker is placed.
orientation - SVG: Scalable Vector Graphics
only one element is using this attribute: <glyph> usage notes value h | v
default value none (meaning glyph can be used for both text directions) animatable yes h this value indicates that the glyph is only used for a horizontal text direction.
origin - SVG: Scalable Vector Graphics
only one element is using this attribute: <animatemotion> context notes value
default default value
default animatable no specifications specification status comment svg animations level 2the definition of 'origin' in that specification.
panose-1 - SVG: Scalable Vector Graphics
only one element is using this attribute: <font-face> usage notes value <integer>{10}
default value 0 0 0 0 0 0 0 0 0 0 animatable no <integer>{10} this value specifies a panose-1 number and consists of ten decimal integers, separated by whitespace.
patternContentUnits - SVG: Scalable Vector Graphics
value userspaceonuse | objectboundingbox
default value userspaceonuse animatable yes userspaceonuse this value indicates that all coordinates inside the <pattern> element refer to the user coordinate system as defined when the pattern tile was created.
patternUnits - SVG: Scalable Vector Graphics
value userspaceonuse | objectboundingbox
default value objectboundingbox animatable yes userspaceonuse this value indicates that all coordinates for the geometry properties refer to the user coordinate system as defined when the pattern was applied.
pointer-events - SVG: Scalable Vector Graphics
e following twenty-three elements: <a>, <circle>, <clippath>, <defs>, <ellipse>, <foreignobject>, <g>, <image>, <line>, <marker>, <mask>, <path>, <pattern>, <polygon>, <polyline>, <rect>, <svg>, <switch>, <symbol>, <text>, <textpath>, <tspan>, <use> usage notes value bounding-box | visiblepainted | visiblefill | visiblestroke | visible | painted | fill | stroke | all | none
default value visiblepainted animatable yes for a detailed explanation of each possible value, have a look at the css pointer-events documentation.
pointsAtX - SVG: Scalable Vector Graphics
y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic"> <fespotlight x="60" y="60" z="50" pointsatx="400" /> </fediffuselighting> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#lighting1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#lighting2); transform: translatex(220px);" /> </svg> usage notes
default value 0 value <number> animatable yes specifications specification status comment filter effects module level 1the definition of 'pointsatx' in that specification.
pointsAtY - SVG: Scalable Vector Graphics
y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic"> <fespotlight x="60" y="60" z="50" pointsaty="400" /> </fediffuselighting> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#lighting1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#lighting2); transform: translatex(220px);" /> </svg> usage notes
default value 0 value <number> animatable yes specifications specification status comment filter effects module level 1the definition of 'pointsaty' in that specification.
pointsAtZ - SVG: Scalable Vector Graphics
y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic"> <fespotlight x="100" y="100" z="50" pointsatz="80" /> </fediffuselighting> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#lighting1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#lighting2); transform: translatex(220px);" /> </svg> usage notes
default value 0 value <number> animatable yes specifications specification status comment filter effects module level 1the definition of 'pointsatz' in that specification.
preserveAlpha - SVG: Scalable Vector Graphics
servealpha="false"/> </filter> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="filter:url(#convolvematrix1);"/> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="filter:url(#convolvematrix2); transform:translatex(220px);"/> </svg> usage notes
default value false value true | false animatable yes true this value indicates that the convolution will only apply to the color channels.
primitiveUnits - SVG: Scalable Vector Graphics
only one element is using this attribute: <filter> usage notes value userspaceonuse | objectboundingbox
default value userspaceonuse animatable yes userspaceonuse this value indicates that any length values within the filter definitions represent values in the current user coordinate system in place at the time when the <filter> element is referenced (i.e., the user coordinate system for the element referencing the <filter> element via a filter attribute).
radius - SVG: Scalable Vector Graphics
usage notes value <number-optional-number>
default value 0 animatable yes specifications specification status comment filter effects module level 1the definition of 'radius' in that specification.
repeatCount - SVG: Scalable Vector Graphics
<rect x="0" y="0" width="100" height="100"> <animate attributetype="xml" attributename="y" from="0" to="50" dur="1s" repeatcount="5"/> </rect> <rect x="120" y="0" width="100" height="100"> <animate attributetype="xml" attributename="y" from="0" to="50" dur="1s" repeatcount="indefinite"/> </rect> </svg> usage notes value <number> | indefinite
default value none animatable no <number> this value specifies the number of iterations.
repeatDur - SVG: Scalable Vector Graphics
ect x="0" y="0" width="100" height="100"> <animate attributetype="xml" attributename="y" from="0" to="50" dur="1s" repeatdur="5s"/> </rect> <rect x="120" y="0" width="100" height="100"> <animate attributetype="xml" attributename="y" from="0" to="50" dur="1s" repeatdur="indefinite"/> </rect> </svg> usage notes value <clock-value> | indefinite
default values none animatable no <clock-value> this value specifies the duration in presentation time to repeat the animation.
requiredExtensions - SVG: Scalable Vector Graphics
usage notes value <list-of-extensions>
default value none animatable no <list-of-extensions> the value is a list of references (iri references in svg 1, url references in svg 2) which identify the required extensions, with the individual values separated by white space.
requiredFeatures - SVG: Scalable Vector Graphics
ttp://www.w3.org/2000/svg"> <g> <rect fill="forestgreen" x="10" y="10" height="25" width="230" /> <text x="20" y="27">requiredfeatures supported</text> </g> <g requiredfeatures=""> <rect fill="crimson" x="10" y="10" height="25" width="230" /> <text x="20" y="27">requiredfeatures not supported</text> </g> </svg> usage notes value <list-of-features>
default value true if not defined, false if null or empty string as value animatable no <list-of-features> this is a list of feature strings, separated using white space.
restart - SVG: Scalable Vector Graphics
from="30" to="100" dur="5s" repeatcount="1" restart="whennotactive"/> </rect> <a id="restart"><text y="20">restart animation</text></a> </svg> document.getelementbyid("restart").addeventlistener("click", evt => { document.queryselectorall("animate").foreach(element => { element.beginelement(); }); }); usage notes value always | whennotactive | never
default value always animatable no always this value indicates that the animation can be restarted at any time.
result - SVG: Scalable Vector Graphics
<feturbulence type="turbulence" basefrequency="0.05" numoctaves="2" result="turbulence"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="50" xchannelselector="r" ychannelselector="g"/> </filter> <circle cx="100" cy="100" r="100" style="filter: url(#displacementfilter)"/> </svg> usage notes value <filter-primitive-reference>
default value none animatable yes <filter-primitive-reference> this value is a <custom-ident> and defines the name for the filter primitive.
scale - SVG: Scalable Vector Graphics
ence" basefrequency="0.05" numoctaves="2" result="turbulence"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="50"/> </filter> <circle cx="100" cy="100" r="80" style="filter: url(#displacementfilter);""/> <circle cx="100" cy="100" r="80" style="filter: url(#displacementfilter2); transform: translatex(240px);""/> </svg> usage notes value <number>
default value none animatable yes <number> this value defines the scale factor for the displacement.
seed - SVG: Scalable Vector Graphics
5" seed="0" /> </filter> <filter id="noise2" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.025" seed="100" /> </filter> <rect x="0" y="0" width="200" height="200" style="filter:url(#noise1);" /> <rect x="0" y="0" width="200" height="200" style="filter:url(#noise2); transform: translatex(220px);" /> </svg> usage notes value <number>
default value 0 animatable yes example <svg width="200" height="200" viewbox="0 0 220 220" xmlns="http://www.w3.org/2000/svg"> <filter id="displacementfilter"> <feturbulence basefrequency="0.05" seed="1000" result="turbulence"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="50" xchannelselector="r" ychannelselector="g"/> </filter> ...
shape-rendering - SVG: Scalable Vector Graphics
ine>, <path>, <polygon>, <polyline>, and <rect> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <circle cx="100" cy="100" r="100" shape-rendering="geometricprecision"/> <circle cx="320" cy="100" r="100" shape-rendering="crispedges"/> </svg> usage notes value auto | optimizespeed | crispedges | geometricprecision
default value auto animatable yes auto this value indicates that the user agent shall make appropriate tradeoffs to balance speed, crisp edges and geometric precision, but with geometric precision given more importance than speed and crisp edges.
side - SVG: Scalable Vector Graphics
#circle1" side="left">text left from the path</textpath> </text> <text> <textpath href="#circle2" side="right">text right from the path</textpath> </text> <circle id="circle1" cx="100" cy="100" r="70" fill="transparent" stroke="silver"/> <circle id="circle2" cx="320" cy="100" r="70" fill="transparent" stroke="silver"/> </svg> usage notes value left | right
default value left animatable yes left this value places the text on the left side of the path (relative to the path direction).
slope - SVG: Scalable Vector Graphics
only one element is using this attribute: <font-face> usage notes value <number>
default value 0 animatable no <number> this value indicates the vertical stroke angle of the font.
spacing - SVG: Scalable Vector Graphics
only one element is using this attribute: <textpath> usage notes value auto | exact
default value exact animatable yes auto this value indicates that the user agent should use text-on-a-path layout algorithms to adjust the spacing between typographic characters in order to achieve visually appealing results.
specularConstant - SVG: Scalable Vector Graphics
in="sourcegraphic" specularconstant="0.8"> <fepointlight x="60" y="60" z="20" /> </fespecularlighting> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#specularlighting1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#specularlighting2); transform: translatex(220px);" /> </svg> usage notes value <number>
default value 1 animatable yes specifications specification status comment filter effects module level 1the definition of 'specularconstant' in that specification.
startOffset - SVG: Scalable Vector Graphics
</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.
stdDeviation - SVG: Scalable Vector Graphics
blur stddeviation="10" /> </filter> <circle cx="100" cy="100" r="50" style="filter: url(#gaussianblur1);" /> <circle cx="100" cy="100" r="50" style="filter: url(#gaussianblur2); transform: translatex(140px);" /> <circle cx="100" cy="100" r="50" style="filter: url(#gaussianblur3); transform: translatex(280px);" /> </svg> usage notes value <number-optional-number>
default value 0 animatable yes <number-optional-number> if two numbers are provided, the first number represents a standard deviation value along the x-axis.
stemh - SVG: Scalable Vector Graphics
only one element is using this attribute: <font-face> usage notes value <number>
default value none animatable no <number> this value indicates the horizontal stem width of the font.
stemv - SVG: Scalable Vector Graphics
only one element is using this attribute: <font-face> usage notes value <number>
default value none animatable no <number> this value indicates the vertical stem width of the font.
stitchTiles - SVG: Scalable Vector Graphics
x="0" y="0" width="100" height="100" style="filter: url(#noise2); transform: translate(320px, 0);" /> <rect x="0" y="0" width="100" height="100" style="filter: url(#noise2); transform: translate(220px, 100px);" /> <rect x="0" y="0" width="100" height="100" style="filter: url(#noise2); transform: translate(320px, 100px);" /> </svg> usage notes value nostitch | stitch
default value nostitch animatable yes nostitch this value indicates that no attempt is made to achieve smooth transitions at the border of tiles which contain a turbulence function.
stop-color - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following element: <stop> usage notes value currentcolor | <color> <icccolor>
default value black animatable yes currentcolor this keyword denotes the current fill color and can be specified in the same manner as within a <paint> specification for the fill and stroke attributes.
stop-opacity - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following element: <stop> usage notes value <opacity-value>
default value 1 animatable yes <opacity-value> this value is either a <number> between 0 and 1 or a <percentage> value specifying the opacity of the color gradient stop.
string - SVG: Scalable Vector Graphics
only one element is using this attribute: <font-face-format> usage notes value <anything>
default value none animatable no <anything> this value specifies a list of formats that are supported by the font referenced by the parent <font-face-uri> element.
stroke-dasharray - SVG: Scalable Vector Graphics
<!-- dashes and gaps of various sizes with an odd number of values --> <line x1="0" y1="7" x2="30" y2="7" stroke="black" stroke-dasharray="4 1 2" /> <!-- dashes and gaps of various sizes with an even number of values --> <line x1="0" y1="9" x2="30" y2="9" stroke="black" stroke-dasharray="4 1 2 3" /> </svg> usage notes value none | <dasharray>
default value none animatable yes <dasharray> a list of comma and/or white space separated <length>s and <percentage>s that specify the lengths of alternating dashes and gaps.
stroke-dashoffset - SVG: Scalable Vector Graphics
same rendering as the previous example --> <line x1="0" y1="9" x2="30" y2="9" stroke="black" stroke-dasharray="3 1" stroke-dashoffset="1" /> <!-- the following red lines highlight the offset of the dash array for each line --> <path d="m0,5 h-3 m0,7 h3 m0,9 h-1" stroke="rgba(255,0,0,.5)" /> </svg> usage notes value <percentage> | <length>
default value 0 animatable yes the offset is usually expressed in user units resolved against the pathlength but if a <percentage> is used, the value is resolved as a percentage of the current viewport.
stroke-width - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it only has effect on shapes and text context elements, including: <altglyph>, <circle>, <ellipse>, <line>, <path>, <polygon>, <polyline>, <rect>, <text>, <textpath>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewbox="0 0 30 10" xmlns="http://www.w3.org/2000/svg"> <!--
default stroke width: 1 --> <circle cx="5" cy="5" r="3" stroke="green" /> <!-- stroke width as a number --> <circle cx="15" cy="5" r="3" stroke="green" stroke-width="3" /> <!-- stroke width as a percentage --> <circle cx="25" cy="5" r="3" stroke="green" stroke-width="2%" /> </svg> usage notes value <length> | <percentage>
default value 1px ...
stroke - SVG: Scalable Vector Graphics
l="none" stroke="green" /> <!-- stroke a circle with a gradient --> <defs> <lineargradient id="mygradient"> <stop offset="0%" stop-color="green" /> <stop offset="100%" stop-color="white" /> </lineargradient> </defs> <circle cx="15" cy="5" r="4" fill="none" stroke="url(#mygradient)" /> </svg> usage notes value <paint>
default value none animatable yes specifications specification status comment scalable vector graphics (svg) 2the definition of 'stroke' in that specification.
systemLanguage - SVG: Scalable Vector Graphics
<animate>, <animatecolor>, <animatemotion>, <animatetransform>, <audio>, <canvas>, <circle>, <clippath>, <cursor>, <defs>, <discard>, <ellipse>, <foreignobject>, <g>, <iframe>, <image>, <line>, <mask>, <path>, <pattern>, <polygon>, <polyline>, <rect>, <set>, <svg>, <switch>, <text>, <textpath>, <tref>, <tspan>, <unknown>, <use>, and <video> usage notes value <language-tags>
default value none animatable no <language-tags> the value is a set of comma-separated tokens, each of which must be a language-tag value, as defined in bcp 47.
tabindex - SVG: Scalable Vector Graphics
html, body, svg { height: 100%; } <?xml version="1.0"?> <svg viewbox="0 0 260 260" xmlns="http://www.w3.org/2000/svg"> <circle cx="60" cy="60" r="15" tabindex="1" /> <circle cx="60" cy="160" r="30" tabindex="3" /> <circle cx="160" cy="60" r="30" tabindex="2" /> <circle cx="160" cy="160" r="60" tabindex="4" /> </svg> usage notes value valid integer
default value none animatable no valid integer relative order of the element for the purposes of sequential focus navigation.
tableValues - SVG: Scalable Vector Graphics
ble" tablevalues="1 0"/> </fecomponenttransfer> </filter> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" style="filter: url(#componenttransfer1);" /> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" style="filter: url(#componenttransfer2); transform: translatex(220px);" /> </svg> usage notes value <list-of-numbers>
default value empty list resulting in identity transfer animatable yes <list-of-numbers> this value holds a comma- and/or space-separated list of <number>s, which define a lookup table for the color component transfer function.
target - SVG: Scalable Vector Graphics
="0" y="20">open link within iframe</text> </a> <a href="https://developer.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.
targetX - SVG: Scalable Vector Graphics
only one element is using this attribute: <feconvolvematrix> usage notes value <integer>
default value floor(orderx / 2) animatable yes <integer> this value indicates the positioning in horizontal direction of the convolution matrix relative to a given target pixel in the input image.
targetY - SVG: Scalable Vector Graphics
only one element is using this attribute: <feconvolvematrix> usage notes value <integer>
default value floor(ordery / 2) animatable yes <integer> this value indicates the positioning in vertical direction of the convolution matrix relative to a given target pixel in the input image.
text-anchor - SVG: Scalable Vector Graphics
="middle" x="60" y="75">a</text> <text text-anchor="end" x="60" y="110">a</text> <!-- materialisation of anchors --> <circle cx="60" cy="40" r="3" fill="red" /> <circle cx="60" cy="75" r="3" 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.
text-decoration - SVG: Scalable Vector Graphics
ref>, and <tspan> html, body, svg { height: 100%; } <svg viewbox="0 0 250 50" xmlns="http://www.w3.org/2000/svg"> <text y="20" text-decoration="underline">underlined text</text> <text x="0" y="40" text-decoration="line-through">struck-through text</text> </svg> usage notes value <'text-decoration-line'> || <'text-decoration-style'> || <'text-decoration-color'>
default value see individual properties animatable yes for a description of the values, please refer to the css text-decoration property.
text-rendering - SVG: Scalable Vector Graphics
following element: <text> html, body, svg { height: 100%; } <svg viewbox="0 0 140 40" xmlns="http://www.w3.org/2000/svg"> <text y="15" text-rendering="geometricprecision">geometric precision</text> <text y="35" text-rendering="optimizelegibility">optimized legibility</text> </svg> usage notes value auto | optimizespeed | optimizelegibility | geometricprecision
default value auto animatable yes auto this value indicates that the user agent shall make appropriate tradeoffs to balance speed, legibility and geometric precision, but with legibility given more importance than speed and geometric precision.
transform-origin - SVG: Scalable Vector Graphics
usage notes values [ <length-percentage> | left | center | right | top | bottom ] | [ [ <length-percentage> | left | center | right ] && [ <length-percentage> | top | center | bottom ] ] <length>?where <length-percentage> = <length> | <percentage>
default value 50%, 50% animatable yes the transform-origin property may be specified using one, two, or three values, where each value represents an offset.
transform - SVG: Scalable Vector Graphics
value <transform-list>
default value none animatable yes transform functions the following transform functions can be used by the transform attribute <transform-list> warning: as per the spec, you should be able to also use css transform functions.
u1 - SVG: Scalable Vector Graphics
two elements are using this attribute: <hkern> and <vkern> context notes value [ <character> | <urange> ]#
default value none animatable no [ <character> | <urange> ]# this value indicates a comma-separated sequence of unicode characters and/or ranges of unicode characters, which identify a set of possible first glyphs in a kerning pair.
u2 - SVG: Scalable Vector Graphics
two elements are using this attribute: <hkern> and <vkern> context notes value [ <character> | <urange> ]#
default value none animatable no [ <character> | <urange> ]# this value indicates a comma-separated sequence of unicode characters and/or ranges of unicode characters, which identify a set of possible second glyphs in a kerning pair.
unicode-bidi - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the following eleven elements: <altglyph>, <textpath>, <text>, <tref>, and <tspan> context notes value normal | embed | isolate | bidi-override | isolate-override | plaintext
default value normal animatable no for a description of the values, please refer to the css unicode-bidi property.
unicode-range - SVG: Scalable Vector Graphics
only one element is using this attribute: <font-face> usage notes value <urange>#
default value none animatable no <urange># this value is a comma-separated list of iso 10646 characters possibly covered by the glyphs in the font.
xChannelSelector - SVG: Scalable Vector Graphics
%" result="abc"/> <fedisplacementmap in2="abc" in="sourcegraphic" scale="30" xchannelselector="b"/> </filter> <text x="10" y="60" font-size="50" filter="url(#displacementfilter)">some displaced text</text> <text x="10" y="120" font-size="50" filter="url(#displacementfilter2)">some displaced text</text> </svg> usage notes value r | g | b | a
default value a animatable yes r this keyword specifies that the red color channel of the input image defined in in2 will be used to displace the pixels of the input image defined in in along the x-axis.
xlink:arcrole - SVG: Scalable Vector Graphics
rc it might have the role of "daughter." twentytwo elements are using this attribute: <a>, <altglyph>, <animate>, <animatecolor>, <animatemotion>, <animatetransform>, <color-profile>, <cursor>, <feimage>, <filter>, <font-face-uri>, <glyphref>, <image>, <lineargradient>, <mpath>, <pattern>, <radialgradient>, <script>, <set>, <textpath>, <tref>, <use> usage notes value <iri>
default value none animatable no <iri> this value specifies an iri reference that identifies some resource that describes the intended property.
xlink:show - SVG: Scalable Vector Graphics
only one element is using this attribute: <a> usage notes value new | replace | embed | other | none
default value replace animatable no new this value specifies that the referenced resource is opened in a new window or tab.
xlink:title - SVG: Scalable Vector Graphics
these elements are using this attribute: <a>, <altglyph>, <animate>, <animatecolor>, <animatemotion>, <animatetransform>, <color-profile>, <cursor>, <feimage>, <filter>, <font-face-uri>, <glyphref>, <image>, <lineargradient>, <mpath>, <pattern>, <radialgradient>, <script>, <set>, <textpath>, <tref>, and <use> usage context value <anything>
default value none animatable no <anything> this value specifies the title used to describe the meaning of the link or resource.
xlink:type - SVG: Scalable Vector Graphics
twentytwo elements are using this attribute: <a>, <altglyph>, <animate>, <animatecolor>, <animatemotion>, <animatetransform>, <color-profile>, <cursor>, <feimage>, <filter>, <font-face-uri>, <glyphref>, <image>, <lineargradient>, <mpath>, <pattern>, <radialgradient>, <script>, <set>, <textpath>, <tref>, and <use> usage notes value simple
default value simple animatable no simple this value specifies that the referred resource is a simple link.
xml:lang - SVG: Scalable Vector Graphics
<svg viewbox="0 0 200 100" xmlns="http://www.w3.org/2000/svg"> <text xml:lang="en-us">this is some english text</text> </svg> usage notes value <language-tag>
default value none animatable no <language-tag> this value specifies the language used for the element.
xml:space - SVG: Scalable Vector Graphics
html, body, svg { height: 100%; } <svg viewbox="0 0 140 50" xmlns="http://www.w3.org/2000/svg"> <text y="20" xml:space="
default">
default spacing</text> <text y="40" xml:space="preserve">preserved spacing</text> </svg> usage notes value
default | preserve
default value
default animatable no
default with this value set, whitespace characters will be processed in this order: all newline characters are removed.
yChannelSelector - SVG: Scalable Vector Graphics
%" result="abc"/> <fedisplacementmap in2="abc" in="sourcegraphic" scale="30" ychannelselector="b"/> </filter> <text x="10" y="60" font-size="50" filter="url(#displacementfilter)">some displaced text</text> <text x="10" y="120" font-size="50" filter="url(#displacementfilter2)">some displaced text</text> </svg> usage notes value r | g | b | a
default value a animatable yes r this keyword specifies that the red color channel of the input image defined in in2 will be used to displace the pixels of the input image defined in in along the y-axis.
zoomAndPan - SVG: Scalable Vector Graphics
/2000/svg" zoomandpan="disable"> <filter id="diffuselighting" x="0" y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic" zoomandpan="1"> <fepointlight x="60" y="60" z="20" /> </fediffuselighting> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#diffuselighting);" /> </svg> usage notes value disable | magnify
default value magnify animatable no specifications specification status comment scalable vector graphics (svg) 1.1 (second edition)the definition of 'zoomandpan' in that specification.
Content type - SVG: Scalable Vector Graphics
metric ::= "h" | "min" | "s" | "ms" hours ::= digit+; any positive number minutes ::= 2digit; range from 00 to 59 seconds ::= 2digit; range from 00 to 59 fraction ::= digit+ timecount ::= digit+ 2digit ::= digit digit digit ::= [0-9] for timecount values, the
default metric suffix is "s" (for seconds).
<feComponentTransfer> - SVG: Scalable Vector Graphics
y="0" width="100%" height="100%"> <fecomponenttransfer> <fefuncr type="gamma" amplitude="4" exponent="7" offset="0"></fefuncr> <fefuncg type="gamma" amplitude="4" exponent="4" offset="0"></fefuncg> <fefuncb type="gamma" amplitude="4" exponent="1" offset="0"></fefuncb> </fecomponenttransfer> </filter> </defs> <g font-weight="bold"> <text x="0" y="20">
default</text> <rect x="0" y="30" width="100%" height="20"></rect> <text x="0" y="70">identity</text> <rect x="0" y="80" width="100%" height="20" style="filter:url(#identity)"></rect> <text x="0" y="120">table lookup</text> <rect x="0" y="130" width="100%" height="20" style="filter:url(#table)"></rect> <text x="0" y="170">discrete table lookup</text> <rect x="0" y="180" width=...
<feConvolveMatrix> - SVG: Scalable Vector Graphics
assuming the simplest case (where the input image's pixel grid aligns perfectly with the kernel's pixel grid) and assuming
default values for attributes ‘divisor’, ‘targetx’ and ‘targety’, then resulting color value will be: (9* 0 + 8* 20 + 7* 40 + 6*100 + 5*120 + 4*140 + 3*200 + 2*220 + 1*240) / (9+8+7+6+5+4+3+2+1) usage context categoriesfilter primitive elementpermitted contentany number of the following elements, in any order:<animate>, <set> attributes global attributes core attributes presentati...
<metadata> - SVG: Scalable Vector Graphics
ect:ends rdf:resource="#socket1"/> <connect:ends rdf:resource="#socket2"/> <connect:ends rdf:resource="#socket3"/> <connect:ends rdf:resource="#socket4"/> <connect:ends rdf:resource="#socket5"/> </rdf:description> </rdf:rdf> </metadata> <title>network</title> <desc>an example of a computer network based on a hub.</desc> <style> svg { /*
default styles to be inherited */ fill: white; stroke: black; } text { fill: black; stroke: none; } path { fill: none; } </style> <!-- define symbols used in the svg --> <defs> <!-- hubplug symbol.
<set> - SVG: Scalable Vector Graphics
value type: <anything>;
default value: none; animatable: no animation attributes animation timing attributes begin, dur, end, min, max, restart, repeatcount, repeatdur, fill other animation attributes most notably: attributename animation event attributes most notably: onbegin, onend, onrepeat global attributes core attributes most notably: id styling attributes class, style event attributes global event att...