Search completed in 1.27 seconds.
1531 results for "otherwise":
Your results are loading. Please wait...
<xsl:otherwise> - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:otherwise> element is used to define the action that should be taken when none of the <xsl:when> conditions apply.
... syntax <xsl:otherwise> template </xsl:otherwise> required attributes none.
Index - Web APIs
WebAPIIndex
190 audiotrack.label api, audio, audio track, audiotrack, html dom, media, property, read-only, reference, label, metadata, track the read-only audiotrack property label returns a string specifying the audio track's human-readable label, if one is available; otherwise, it returns an empty string.
...otherwise it throws an error.
...otherwise it throws an error.
...And 42 more matches
Index
otherwise, int_fits_in_jsval returns false.
...return false on error or exception, true on success with true in *bp if v is an instance of obj, false in *bp otherwise.
... 140 jsobjectops.setproto jsapi reference, obsolete, spidermonkey these hooks must check for cycles without deadlocking, and otherwise take special steps.
...And 32 more matches
CustomizableUI.jsm
note that customizableui won't restore state in the area, allow the user to customize it in customize mode, or otherwise deal with it, until the area has been registered.
... otherwise, this will fire an onwidgetadded notification, and an onwidgetbeforedomchange and onwidgetafterdomchange notification for each window customizableui knows about.
... otherwise, this will fire an onwidgetremoved notification, and an onwidgetbeforedomchange and onwidgetafterdomchange notification for each window customizableui knows about.
...And 14 more matches
Index - Archive of obsolete content
mozprocess aims to provide the ability to robustly terminate a process (by timeout or otherwise), along with any child processes, on windows, os x, and linux.
...otherwise, a content builder will be created.
...if the condition is true, the corresponding action body is generated; otherwise the result is ignored and no content is generated.
...And 13 more matches
Bytecode Descriptions
otherwise push false.
... eval operands: (uint16_t argc) stack: callee, this, args[0], ..., args[argc-1] ⇒ rval perform a direct eval in the current environment if callee is the builtin eval function, otherwise follow same behaviour as jsop::call.
...otherwise, the caller is self-hosted code using resumegenerator.) in async generators: ...
...And 11 more matches
WebIDL bindings
unless stated otherwise, a type only has one representation.
... also, unless stated otherwise, nullable types are represented by wrapping nullable<> around the base type.
... webidl callback interfaces in sequences, dictionaries, owning unions, and variadic arguments are represented by refptr<foo> if nullable and owningnonnull<foo> otherwise.
...And 11 more matches
lang/type - Archive of obsolete content
globals functions isundefined(value) returns true if value is undefined, false otherwise.
... isnull(value) returns true if value is null, false otherwise.
... isstring(value) returns true if value is a string, false otherwise.
...And 9 more matches
source-editor.jsm
ignorecase boolean true if the search was case sensitive; otherwise false.
... return value true if there are changes that can be redone, otherwise false.
... return value true if there are changes that can be undone, otherwise false.
...And 8 more matches
sslfnc.html
if set to pr_true, it will; otherwise, it will not.
... cipher one of the following values for ssl2 (factory settings for all are enabled): ssl_en_rc4_128_with_md5 ssl_en_rc4_128_export40_with_md5 ssl_en_rc2_128_cbc_with_md5 ssl_en_rc2_128_cbc_export40_with_md5 ssl_en_des_64_cbc_with_md5 ssl_en_des_192_ede3_cbc_with_md5 or one of the following values for ssl3/tls (unless indicated otherwise, factory settings for all are enabled): tls_dhe_rsa_with_aes_256_cbc_sha (not enabled by default; client side only) tls_dhe_dss_with_aes_256_cbc_sha (not enabled by default; client side only) tls_rsa_with_aes_256_cbc_sha (not enabled by default) ssl_fortezza_dms_with_rc4_128_sha tls_dhe_dss_with_rc4_128_sha (not enabled by default; client side only) tls_dhe_rsa_with...
...otherwise, the old settings remain in the session cache and will be used instead of the new settings.
...And 7 more matches
nsIFile
otherwise it returns false.
...otherwise it returns false.
...otherwise it returns false.
...And 7 more matches
nsITreeView
return value true if a drop is allowed at the current location; otherwise false.
...otherwise false.
...otherwise false.
...And 7 more matches
Debugger.Object - Firefox Developer Tools
callable true if the referent is a callable object (such as a function or a function proxy); false otherwise.
... errormessagename if the referent is an error created with an engine internal message template this is a string which is the name of the template; undefined otherwise.
... errorlinenumber if the referent is an error object, this is the line number at which the referent was created; undefined otherwise.
...And 7 more matches
Debugger - Firefox Developer Tools
it is an accessor property with a getter and setter: assigning to it enables or disables this debugger instance; reading it produces true if the instance is enabled, or false otherwise.
...any value assigned to a debugging handler must be either a function or undefined; otherwise a typeerror is thrown.
...if it returns undefined, the exception continues to propagate as normal: if control in frame is in a try block, control jumps to the corresponding catch or finally block; otherwise,frame is popped, and the exception propagates toframe’s caller.
...And 7 more matches
nsIDOMWindowUtils
true if it's open, otherwise false.
... paintingsuppressed boolean true if painting is currently suppressed for this window; otherwise false.
...otherwise, this guesses the caret rect from the metrics of the text.
...And 6 more matches
Shell global objects
unwrappedobjectshavesameshape(obj1, obj2) returns true iff obj1 and obj2 have the same shape, false otherwise.
...if an error occurred, throw the appropriate exception; otherwise, run the script and return its value.
...if an error occurred, throw the appropriate exception; otherwise, return the module object timeout([seconds], [func]) get/set the limit in seconds for the execution time for the current context.
...And 5 more matches
Parsing microformats in JavaScript - Archive of obsolete content
otherwise this is the microformat node.
...otherwise this is the microformat node.
...otherwise this is the microformat node.
...And 4 more matches
Observer Notifications
unless otherwise noted you register for the topics using the nsiobserverservice.
...the subject is null otherwise.
...the subject is null otherwise.
...And 4 more matches
nsITextInputProcessor
otherwise, false.
...otherwise, false.
...otherwise, it returns true.
...And 4 more matches
NPClass - Archive of obsolete content
called by npn_createobject() if non-null, otherwise the browser calls malloc().
...returns true if the method exists, otherwise returns false.
...returns true if the specified property exists, otherwise returns false.
...And 3 more matches
Midas
otherwise, all selected characters will become bold.
...otherwise, all selected characters will become italic.
...otherwise, all selected characters will have a line drawn through them.
...And 3 more matches
Index
critical/non-critical: is 1 when extension is critical and 0 otherwise.
...should be set to 1 if this extension is critical or 0 otherwise.
...(1), cacompromise (2), affiliationchanged (3), superseded (4), cessationofoperation (5), certificatehold (6), removefromcrl (8), privilegewithdrawn (9), aacompromise (10) * add invalidity date extension: the invalidity date is a non-critical crl entry extension that provides the date on which it is known or suspected that the private key was compromised or that the certificate otherwise became invalid.
...And 3 more matches
nsIAnnotationService
otherwise, uris can exist in history as annotations but the user has no way of knowing it, potentially violating their privacy expectations about actions such as clear history.
...otherwise, uris can exist in history as annotations but the user has no way of knowing it, potentially violating their privacy expectations about actions such as clear history.
... return value returns true, if an annotation exists for given uri, otherwise returns false.
...And 3 more matches
nsIClipboardCommands
return value true if an image is selected, false otherwise.
...return value true if an image is selected, false otherwise.
...return value true if a link is selected, false otherwise.
...And 3 more matches
Expressions and operators - JavaScript
logical operators operator usage description logical and (&&) expr1 && expr2 returns expr1 if it can be converted to false; otherwise, returns expr2.
... thus, when used with boolean values, && returns true if both operands are true; otherwise, returns false.
... logical or (||) expr1 || expr2 returns expr1 if it can be converted to true; otherwise, returns expr2.
...And 3 more matches
util/array - Archive of obsolete content
globals functions has(array, element) returns true if the given array contains the element or false otherwise.
... hasany(array, elements) returns true if the given array contains any of the elements in the elements array, or false otherwise.
...otherwise, this function does not add the element and returns false.
...And 2 more matches
Using microformats - Archive of obsolete content
showhidden if true, hidden microformats are added; otherwise they're left out.
... debug specify true if debug mode is in use; otherwise, specify false.
... showhidden if true, hidden microformats are added; otherwise they're left out.
...And 2 more matches
IAccessibleTable
otherwise a null pointer is returned.
...isselected returns true if the specified column is selected completely and false otherwise.
...isselected returns true if the specified row is selected completely and false otherwise.
...And 2 more matches
nsIDOMNSHTMLDocument
return value true if the command was recognized, false otherwise.
... return value returns true if the command is supported and enabled, false otherwise.
... return value for stateful commands, returns true if the command is in an indeterminate state, false otherwise.
...And 2 more matches
SubtleCrypto.verify() - Web APIs
return value result is a promise that fulfills with a boolean: true if the signature is valid, false otherwise.
...* otherwise set the "invalid" class.
...* otherwise set the "invalid" class.
...And 2 more matches
Background audio processing using AudioWorklet - Web APIs
glitch project page see the code try it live creating an audio worklet processor fundamentally, an audio worklet processor (which we'll refer to usually as either an "audio processor" or simply as a "processor" because otherwise this article will be about twice as long) is implemented using a javascript module that defines and installs the custom audio processor class.
...in other words, true overrides the api's logic and gives you control over your processor's lifetime policy, keeping the processor's owning audioworkletnode running even when it would otherwise decide to shut down the node.
...once you have that in hand, you connect it to other nodes and otherwise use it just like any other node.
...And 2 more matches
Appendix D: Loading Scripts - Archive of obsolete content
these tags provide no means to load scripts into a private or otherwise specific scope.
... security: sandbox objects are initialized with a security principal object, or otherwise a window or url from which to derive one.
...javascript modules can therefor be used for communication and data sharing between otherwise isolated contexts.
...chromeworkers also have access to ctypes and a limited number of thread safe xpcom classes, but are otherwise limited to simple computation based on data passed via messages and xmlhttprequests.
MMgc - Archive of obsolete content
alloc is often used to allocate arrays and other objects of variable size that contain gc pointers or are otherwise desirable to have in managed memory.
...otherwise, the memory contains undefined values.
...pointers must be marked for the gc to consider the objects "live"; otherwise, the objects will be considered unreachable and will be destroyed.
...deleted items are stored in a per-block free list which is used if there are any otherwise we get the next free item at the end.
Menu - Archive of obsolete content
ArchiveMozillaJetpackUIMenu
if the menu is a context menu, it is called as beforehide(menu, context) and otherwise as beforehide(menu).
...if the menu is a context menu, it is called as beforeshow(menu, context) and otherwise as beforeshow(menu).
... isshowing boolean true if the menu is currently visible and false otherwise.
...if the item belongs to a context menu, the function is called as function(context) and otherwise function().
command - Archive of obsolete content
ArchiveMozillaXULEventscommand
false otherwise.
...false otherwise.
...false otherwise.
...false otherwise.
textbox - Archive of obsolete content
otherwise, the command event is fired whenever the user modifies the value.
... clickselectsall type: boolean if set to true, the contents of the textbox are selected when focused; otherwise, the cursor is left unchanged.
...otherwise it returns the value of the associated label element, if applicable.
... otherwise it returns the placeholder or emptytext property.
Introduction to SSL - Archive of obsolete content
unless otherwise indicated, all ciphers listed in the table are supported by both ssl 2.0 and ssl 3.0.
...otherwise, the server cannot decrypt the premaster secret and cannot generate the symmetric keys required for the session, and the session will be terminated.
...otherwise, the server cannot validate the digital signature and the session is terminated.
...if the server requires client authentication, the server performs the steps described in "client authentication." after the steps described here, the server must successfully use its private key to decrypt the premaster secret the client sends in step 4 of "the ssl handshake." otherwise, the ssl session will be terminated.
Index - MDN Web Docs Glossary: Definitions of Web-related terms
57 css pixel css, css pixel, glossary, height, length, pixel, size, unit, width the css pixel—denoted in css with the suffix px—is a unit of length which roughly corresponds to the width or height of a single dot that can be comfortably seen by the human eye without strain, but is otherwise as small as possible.
... 122 dynamic programming language codingscripting, glossary a dynamic programming language is a programming language in which operations otherwise done at compile-time can be done at run-time.
...entities are frequently used to display reserved characters (which would otherwise be interpreted as html code), and invisible characters (like non-breaking spaces).
... 162 fuzz testing firefox, fuzzing, mozilla, qa, security, testing fuzzing is a technique for testing software using automated tools to provide invalid or unexpected input to a program or function in a program, then checking the results to see if the program crashes or otherwise acts inappropriately.
Client-side form validation - Learn web development
if true, the element matches the :valid css pseudo-class; the :invalid css pseudo-class otherwise.
... valuemissing: returns true if the element has a required attribute, but no value, or false otherwise.
... willvalidate: returns true if the element will be validated when the form is submitted; false otherwise.
... checkvalidity(): returns true if the element's value has no validity problems; false otherwise.
HTTP Cache
nding in bug 968593): a,b,i1009,p, regular expression: (.([^,]+)?,)* the first letter is an identifier, identifiers are to be alphabetically sorted and always terminate with ',' a - when present the scope is belonging to an anonymous load b - when present the scope is in browser element load i - when present must have a decimal integer value that represents an app id the scope belongs to, otherwise there is no app (app id is considered 0) p - when present the scope is of a private browsing load, this never persists cachestorageservice keeps a global hashtable mapped by the scope key.
...state to notloaded consumer reference ++ call to cacheentry::asyncopen consumer reference -- cacheentry::asyncopen (entry atomic): the opener is added to fifo, consumer reference ++ (dropped back after an opener is removed from the fifo) state == notloaded: state = loading when open_truncate flag was used: cachefile is created as 'new', state = empty otherwise: cachefile is created and load on it started cacheentry::onfileready notification is now expected state == loading: just do nothing and exit call to cacheentry::invokecallbacks cacheentry::invokecallbacks (entry atomic): called on: a new opener has been added to the fifo via an asyncopen call asynchronous result of cachefile open the writer throws t...
...he entry away the output stream of the entry has been opened or closed metadataready or setvalid on the entry has been called the entry has been doomed state == empty: on oper_readonly flag use: oncacheentryavailable with null for the cache entry otherwise: state = writing opener is removed from the fifo and remembered as the current 'writer' oncacheentryavailable with anew = true and this entry is invoked (on the caller thread) for the writer state == ready: oncacheentrycheck with the entry is invoked on the first opener in fifo - on the caller thread if demanded result == recheck_after_write_finished: opener is left in the fifo with a flag recheckafterwrite such openers are skipped until the output stream on the en...
...opener with null for the entry opener is removed from the fifo state == writing or revalidating: do nothing and exit any other value of state is unexpected here (assertion failure) loop this process while there are openers in the fifo cacheentry::onfileready (entry atomic): load result == failure or the file has not been found on disk (is new): state = empty otherwise: state = ready since the cache file has been found and is usable containing meta data and data of the entry call to cacheentry::invokecallbacks cacheentry::onhandleclosed (entry atomic): called when any consumer throws the cache entry away if the handle is not the handle given to the current writer, then exit state == writing: the writer failed to call metadataready on the entry - state =...
JS_DeleteProperty2
on success, *succeeded receives false if the property was not deleted because it is permanent and true otherwise.
... otherwise obj has a non-permanent own property with the given name or id.
...otherwise, if obj is not configurable, an error is raised.
... otherwise, *succeeded receives true and the property is removed.
JS_GetParent
otherwise, the parent is implementation-defined.
...otherwise, if the context is running any scripts or functions, a default parent object is selected based on those.
... otherwise, if the context has a global object, it is used.
... otherwise the new object has no parent.
JS_ReportErrorNumber
otherwise, if the jserrorformatstring returned by the jserrorcallback has .exntype == jsexn_none, then the error reporter, if any, is called, and no error object is created.
...the source code seems to say we ignore the .exntype, actually, but surely i'm just missing something.) otherwise, if any javascript code is running in cx (for example, if the caller is a jsnative that was called from a script), then an error object is created and becomes the pending exception.
...otherwise, no javascript code is running in cx.
...otherwise, (???
JS_SetProperty
otherwise, [[set]] internal method defined in es2015 (rev 29 9.1.9) is performed.
... otherwise, if the lookup found a read-only property or obj non-extensible, nothing happens, but this is not an error.
... otherwise, if obj has an own property with the given name, then the existing property's value is set as described below.
...if the property has a javascript setter, it is called; otherwise, if it has a javascript getter, then an error is reported; otherwise the property's setter is called, passing the arguments (cx, obj, id, &v).
JS_ValueToString
otherwise the result is a decimal representation of the number, possibly using exponential notation.
... otherwise v is an object.
... otherwise, the resulting object's jsclass.convert callback is called.
... otherwise conversion fails with a typeerror.
TPS Tests
} note that in this example, the foobar@restmail.net account must be registered on stage, otherwise authentication will fail (and the whole test will fail as well.
... otherwise, a special sync can be performed if one of the following are passed: sync_wipe_server, sync_wipe_client, sync_reset_client.
... logger.asserttrue(condition, msg) asserts that condition is true, otherwise an exception is thrown and the test fails.
... logger.assertequal(val1, val2, msg) asserts that val1 is equal to val2, otherwise an exception is thrown and the test fails.
Places utilities for JavaScript
return type return true if the node is a folder, false otherwise.
... checkurlsecurity(aurinode) parameters aurinode a uri node return type return true if it's safe to open the node in the browser, false otherwise.
... getdescriptionfromdocument(doc) parameters doc a dom document to get a description for return type returns a description string if a meta element was discovered with a "description" or "httpequiv" attribute, empty string otherwise.
...null otherwise.
Index
MozillaTechXPCOMIndex
unless otherwise noted you register for the topics using the nsiobserverservice.
...private data for this context, if it is an nsisupports, |null| otherwise.
...|true| if this context should be allowed to run scripts, |false| otherwise.
...when using a get method a user set value will be returned if one exists, otherwise a default value will be returned.
IAccessibleTable2
otherwise a null pointer is returned.
...isselected returns true if the specified column is selected completely and false otherwise.
...isselected returns true if the specified row is selected completely and false otherwise.
...otherwise a null pointer is returned.
nsIClipboardDragDropHooks
otherwise, false to indicates to the operating system that drop is not allowed.
...otherwise, false to show the drag is canceled (does not go to operating system).
...otherwise, false to indicate that the copy/drag is canceled, does not go to operating system.
...otherwise, false to indicate the action was not overridden, do built-in behavior.
nsIDOMMouseScrollEvent
ctrlkeyarg true if the control key was down when the event occurred, otherwise false.
... altkeyarg true if the alt key was down when the event occurred, otherwise false.
... shiftkeyarg true if the shift key was down when the event occurred, otherwise false.
... metakeyarg true if the meta key was down when the event occurred, otherwise false.
nsIPromptService
otherwise, the parameter's value is unmodified.
...otherwise, the parameter's value is unmodified.
...otherwise, the parameter's value is unmodified.
...otherwise, the parameter's value is unmodified.
nsIURI
otherwise, the uri components may contain unescaped multibyte utf-8 characters.
... return value true if the two uris represent the same location; otherwise false.
... return value true if the two uris represent the same location; otherwise false.
... return value true if the uri is for the specified scheme; otherwise false.
Add to iPhoto
declared thusly: struct fsref { uint8 hidden[80]; /* private to file manager; •• need symbolic constant */ }; typedef struct fsref fsref; we declare it using js-ctypes like this: this.struct_fsref = new ctypes.structtype("fsref", [ {"hidden": ctypes.char.array(80)}]); the carbon library init() and shutdown() routines are otherwise similar to how we do things for core foundation.
... otherwise, we fetch the name of the element and look to see if it's an <img> element.
... if so, we return that node; otherwise, we return null.
... if that fails, we display an error; otherwise, we cast the cfmutablearrayref into a cfarrayref by calling ctypes.cast(), then call lsopenurlswithrole() to actually send the image to iphoto.
Debugger.Memory - Firefox Developer Tools
reading the accessor produces true if the debugger is capturing stacks for object allocations, and false otherwise.
...returns false otherwise.
...any value assigned to a debugging handler must be either a function or undefined; otherwise a typeerror is thrown.
...otherwise, null is returned.
Debugger.Script - Firefox Developer Tools
false otherwise.
...false otherwise.
...the object has the following properties: linenumber: the line number for which offset is an entry point columnnumber: the column number for which offset is an entry point isentrypoint: true if the offset is a column entry point, as would be reported by getallcolumnoffsets(); otherwise false.
... isincatchscope([offset]) if the instance refers to a jsscript, this is true if this offset falls within the scope of a try block, and false otherwise.
Debugger.Source - Firefox Developer Tools
otherwise, this is null.
...otherwise, this is null.
...otherwise, this is undefined.
...otherwise, these are both undefined.
DevTools API - Firefox Developer Tools
return value: a tooldefinition if a tool with the given id exists and is enabled, null otherwise.
... return value: a themedefinition object if the theme exists, null otherwise.
... return value: the toolpanel object if the tool with the given toolid is active, otherwise undefined.
... return value: a promise if the function performs asynchronous operations, otherwise undefined.
HTMLInputElement - Web APIs
src string: returns / sets the element's src attribute, which specifies a uri for the location of an image to display on the graphical submit button, if the value of type is image; otherwise it is ignored.
...this attribute applies when the value of the type attribute is text, search, tel, url or email; otherwise it is ignored.
...this attribute applies when the value of the type attribute is text, search, tel, url or email; otherwise it is ignored.
...applies only when type is set to text, search, tel, url, email, or password; otherwise it is ignored.
Using IndexedDB - Web APIs
it also means that you can't use a float, otherwise it will be converted to the closest lower integer and the transaction may not start, nor the upgradeneeded event trigger.
...otherwise, if there was any problem, an error event (that is, a dom event whose type property is set to "error") is fired at request.
...otherwise, after all pending requests have completed, you'll get a complete event.
... idbindex has also had new properties added to it to specify if it has a locale specified, and what it is: locale (returns the locale if any, or null if none is specified) and isautolocale (returns true if the index was created with an auto locale, meaning that the platform's default locale is used, false otherwise.) note: this feature is currently hidden behind a flag — to enable it and experiment, go to about:config and enable dom.indexeddb.experimental.
Using DTMF with WebRTC - Web APIs
if it does, we set hasaddtrack to true; otherwise, we set it to false.
... if addtrack() is supported, we set up the receiver's ontrack event handler; otherwise, we set up onaddstream.
...if successful, the function gotstream() is called, otherwise we log the error because calling has failed.
...otherwise we call rtcpeerconnection.addstream() to add the stream to the call as a single unit.
Inputs and input sources - Web APIs
selecting using the main "select" button or other input on the controller to choose the targeted direction (or the object at which it points), or to otherwise engage an action.
...the ray extends outward in a direction defined by whatever platform and controller are being used, if that's defined; otherwise, the ray extends in the same direction the user is pointing in with their index finger, if it were currently outstretched.
... after the select event is sent or if the controller on which the action is being performed is disconnected or otherwise becomes unavailable, the selectend event is sent.
...while that menu is open, inputs that would otherwise control the avatar might be instead applied to controlling the menu's interface.
Using XMLHttpRequest - Web APIs
if this argument is true or not specified, the xmlhttprequest is processed asynchronously, otherwise the process is handled synchronously.
...otherwise the progress events will not fire.
...textarea> </p> <p> <input type="submit" value="submit" /> </p> </fieldset> </form> </body> </html> to test this, create a page named register.php (which is the action attribute of these sample forms), and put the following minimalistic content: <?php /* register.php */ header("content-type: text/plain"); /* note: you should never use `print_r()` in production scripts, or otherwise output client-submitted data without sanitizing it first.
...otherwise, an invalid_access_err exception is thrown.
XRWebGLLayer() - Web APIs
otherwise, the color buffer will not have an alpha channel.
... antialias optional a boolean value which is true if anti-aliasing is to be used when rendering in the context; otherwise false.
... depth optional a boolean value which, if true, requests that the new layer have a depth buffer; otherwise, no depth layer is allocated.
...otherwise, no stencil buffer is allocated.
XRWebGLLayerInit - Web APIs
otherwise, the color buffer will not have an alpha channel.
... antialias optional a boolean value which is true if anti-aliasing is to be used when rendering in the context; otherwise false.
... depth optional a boolean value which, if true, requests that the new layer have a depth buffer; otherwise, no depth layer is allocated.
...otherwise, no stencil buffer is allocated.
grid-area - CSS: Cascading Style Sheets
WebCSSgrid-area
when grid-column-end is omitted, if grid-column-start is a <custom-ident>, grid-column-end is set to that <custom-ident>; otherwise, it is set to auto.
... when grid-row-end is omitted, if grid-row-start is a <custom-ident>, grid-row-end is set to that <custom-ident>; otherwise, it is set to auto.
...otherwise, it is set to auto.
... otherwise, this is treated as if the integer 1 had been specified along with the <custom-ident>.
HTML attribute: rel - HTML: Hypertext Markup Language
WebHTMLAttributesrel
not allowed annotation annotation opener creates an auxiliary browsing context if the hyperlink would otherwise create a top-level browsing context that is not anauxiliary browsing context (i.e., has "_blank" as target attribute value).
...with <a> and <area>, it indicates the linked document (or mailto:) provides information about the author of the nearest <article> ancestor if there is one, otherwise the entire document.
... note: the obsolete rev="made" is treated as rel="alternate" bookmark relevant as the rel attribute value for the <a> and <area> elements, the bookmark provides a permalink for ancestor section, which is the nearest ancestor <article> or <section>, if there is at least one, otherwise, the nearest heading sibling or ancestor descendant, to the next..
... opener creates an auxiliary browsing context if the hyperlink would otherwise create a top-level browsing context that is not anauxiliary browsing context (i.e., has "_blank" as target attribute value).
itemprop - HTML: Hypertext Markup Language
otherwise, it is a string.
... note: the rules above disallow ":" characters in non-url values because otherwise they could not be distinguished from urls.
...space characters are disallowed because otherwise the values would be parsed as multiple tokens.
...element's data attribute relative to the node document of the element at the time the attribute is set if the element is a data element the value is the value of the element's value attribute if the element is a meter element the value is the value of the element's value attribute if the element is a time element the value is the element's datetime value otherwise the value is the element's textcontent.
HTML documentation index - HTML: Hypertext Markup Language
WebHTMLIndex
this value must be less than or equal to the value of maxlength, otherwise the value will never be valid, as it is impossible to meet both criteria.
... 64 <b>: the bring attention to element attention, element, html, html text-level semantics, html:flow content, html:palpable content, html:phrasing content, reference, web the html bring attention to element (<b>) is used to draw the reader's attention to the element's contents, which are not otherwise granted special importance.
... 219 <wbr> element, html, html text-level semantics, reference, web the html <wbr> element represents a word break opportunity—a position within text where the browser may optionally break a line, though its line-breaking rules would not otherwise create a break at that location.
... 228 link types: noreferrer attribute, html, link types, reference the noreferrer keyword for the rel attribute of the <a>, <area>, and <form> elements instructs the browser, when navigating to the target resource, to omit the referer header and otherwise leak no referrer information — and additionally to behave as if the noopener keyword were also specified.
SyntaxError: unterminated string literal - JavaScript
examples multiple lines you can't split a string across multiple lines like this in javascript: var longstring = 'this is a very long string which needs to wrap across multiple lines because otherwise my code is unreadable.'; // syntaxerror: unterminated string literal instead, use the + operator, a backslash, or template literals.
... the + operator variant looks like this: var longstring = 'this is a very long string which needs ' + 'to wrap across multiple lines because ' + 'otherwise my code is unreadable.'; or you can use the backslash character ("\") at the end of each line to indicate that the string will continue on the next line.
... make sure there is no space or any other character after the backslash (except for a line break), or as an indent; otherwise it will not work.
... that form looks like this: var longstring = 'this is a very long string which needs \ to wrap across multiple lines because \ otherwise my code is unreadable.'; another possibility is to use template literals, which are supported in ecmascript 2015 environments: var longstring = `this is a very long string which needs to wrap across multiple lines because otherwise my code is unreadable.`; ...
Codecs used by WebRTC - Web media technologies
unless the sdp specifically signals otherwise, the web browser receiving a webrtc video stream must be able to handle video at at least 20 fps at a minimum resolution of 320 pixels wide by 240 pixels tall.
... unless signaled otherwise, vp8 will use square pixels (that is, pixels with an aspect ratio of 1:1).
... unless signaled otherwise, the pixel aspect ratio is 1:1, indicating that pixels are square.
... 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.
system/xul-app - Archive of obsolete content
returns boolean : true if the host application is name and false otherwise.
... returns boolean : true if the host application is one of the names and false otherwise.
... returns boolean : true if version falls in the given range and false otherwise.
Preferences - Archive of obsolete content
onents.interfaces.nsiprefservice); var branch = prefs.getbranch("extensions.myext."); var value = branch.getcomplexvalue("welcomemessage", components.interfaces.nsipreflocalizedstring).data; the code in step 3 will read the default value from chrome://myext/locale/defaults.properties when no user value is set, and will behave exactly the same as if nsisupportsstring was passed as atype otherwise.
... otherwise an ns_error_unexpected exception is thrown.
...if so, it will return true, otherwise false.
Inline options - Archive of obsolete content
toolbar" title="show text on toolbar button" type="bool" oninputchanged="alert('new value is = ' + this.value); this.style.backgroundcolor='red';"> if labels on other toolbar buttons are visible (like by using add-on "classic theme restorer") then show label on throbber toolbar button </setting> note in order for the oninputchanged to execute, the setting must have a pref attribute, otherwise the oninputchanged will not trigger.
...use this notification to remove event listeners, or any other references that might otherwise be leaked.
...you must also specify the optionstype as 2: <em:optionsurl>chrome://myaddon/content/name_of_my_file_to_use_for_inline_opts.xul</em:optionsurl> <em:optionstype>2</em:optionstype> your chrome.manifest file should contain the following, otherwise the path chrome://myaddon/content/name_of_my_file_to_use_for_inline_opts.xul will not exist content myaddon ./ this method allows you to maintain compatibility with previous versions of firefox by adding an override to your chrome.manifest: ...
Style System Overview - Archive of obsolete content
otherwise, we need to compute the struct, so nsrulenode::getstyledata calls nsrulenode::get*data, which initializes the correct one of the data structs on the stack (the structs used by nscssdeclaration) style data computation get*data calls nsrulenode::walkruletree, which walks from the style context's rule node towards the root rule node.
... otherwise, we cache the struct in the rule tree, on the first rule node that contributed any data, and mark dependent bits on the path up to that rule node.
...otherwise we'd have to walk rule tree and compare each rule node to every rule in the sheet (o(rules * rule-nodes)).
Space Manager Detailed Design - Archive of obsolete content
if the (adjusted) y offset is between the band top and bottom, then get the available space for the band by calling getbandavailablespace otherwise, move to the next band getbandavailablespace: this method is called from getbanddata only.
... otherwise, create another entry in the band collection, marked as available, and with a rect corresponding to the area remain in in the band(e.g.
... if the rect for the frame is not empty, then visit each band in the bandlist: for each rect in the band: if the bandrect is occupied by the frame, either remove the frame from the bandrect (if there are other frames sharing it) and remember that it was shared otherwise simply remove the bandrect (no other frames share it).
PopupEvents - Archive of obsolete content
otherwise, the adjustfilemenu function would be called whenever the outer menupopup is opened and when the inner menupopup is opened.
...otherwise, the user will be distracted with a popup that they cannot close.
...otherwise, the user would have a menu for a parent window that is no longer active.
XUL element attributes - Archive of obsolete content
otherwise, events are passed to the element only.
...otherwise, you cannot add one later.
...in order to revert to the normal cursor state call the method removeattribute("wait-cursor") when the process effectively has ended otherwise the wait cursor might never disappear.
panel - Archive of obsolete content
ArchiveMozillaXULpanel
on linux, the default value is top, otherwise, the default value is parent.
... if a panel has one or more text fields, this attribute should not be set, otherwise ime or on-screen keyboard popups will appear incorrectly.
... otherwise leave this attribute out.
tree - Archive of obsolete content
ArchiveMozillaXULtree
otherwise, the entire row will be highlighted.
...otherwise the cell label is reverted to the value it had prior to editing.
...this style must come before treechildren::-moz-tree-checkbox(checked) otherwise it won't take effect.
where - Archive of obsolete content
ArchiveMozillaXULwhere
if the condition is true, the corresponding action body is generated; otherwise the result is ignored and no content is generated.
...otherwise, the default value is false, to indicate that the value should match with the same case.
...otherwise, the entire value string is compared.
calICalendarViewController - Archive of obsolete content
otherwise, it should be set to a default value, as determined by the application.
...otherwise, a dialog should be display allowing the user to modify the fields.
...just the time changed), // then do so; otherwise pop up the dialog if (anewstarttime && anewendtime && !anewstarttime.isdate && !anewendtime.isdate) { var instance = aoccurrence.clone(); instance.startdate = anewstarttime; instance.enddate = anewendtime; instance.calendar.modifyitem(instance, aoccurrence, null); } else { modifyeventwithdialog(aoccurrence); } ...
LiveConnect Overview - Archive of obsolete content
converting to a number calls the doublevalue method, if possible, and fails otherwise.
... converting to a boolean in javascript 1.3 and later versions returns false if the object is null, and true otherwise.
... converting to a boolean in javascript 1.2 and earlier versions calls the booleanvalue method, if possible, and fails otherwise.
XForms Select1 Element - Archive of obsolete content
loses focus), otherwise it is updated upon item selection xul widget characteristics analogous widgets are <html:select/> and <xul:menulist/> visual grouping by choices element isn't implemented selection="open" attribute isn't supported if incremental attribute value is false, the bound node is updated when the select control is blurred (i.e.
... loses focus), otherwise it is updated upon item selection listbox the select1 is represented as listbox (xhtml/xul).
...loses focus), otherwise it is updated upon item selection radio group the select is represented as group of radios (xhtml/xul).
Handling common JavaScript problems - Learn web development
these days, most cross-browser javascript problems are seen: when poor-quality browser-sniffing code, feature-detection code, and vendor prefix usage block browsers from running code they could otherwise use just fine.
... declaring strict mode at the top of your javascript code causes it to be parsed with a stricter set of rules, meaning that more warnings and errors will be thrown, and some things will be disallowed that would otherwise be acceptable.
... ui libraries: provide methods for implementing complex ui features that would otherwise be challenging to implement and get working cross browser, for example foundation, bootstrap, and material-ui (the latter is a set of components for use with the react framework).
Accessibility API cross-reference
in tagged pdf n/a n/a expressed with aria-labelledby if visible on screen or aria-label otherwise <caption> (for tables), <figcaption> (for figures), and <label> with a for attribute (for input elements) a <toc> or <l> may contain a <caption> as its first item <caption> or <lbl> a cell in a table cell n/a table_cell cell <td> td not what you think - this is for the damn paperclip character n/a n/a n/a ...
... a checkbox; aria has two kinds: use checkbox if you need to express 'mixed' state (some of the descendents are true, some are false), otherwise use switch or (preferred in html) <input type=checkbox>, which are true/false only.
...a paragraph generally encloses distinct portions of content that are not otherwise specified with other block level structure element types such as heading, table or list elements.
Adding a new event
otherwise, i.e., the event class is just used for internal event class of a dom event class, it should be internal.
... define and create dom event class manually otherwise, you need to implement a dom event class yourself.
...otherwise, you need to specify the path to the header file in dom/bindings/bindings.conf.
Displaying Places information using views
if you need to display additional data or otherwise require more control over your view, you may need to write your own.
...they are not searched otherwise.
..."even" : "odd"); break; } // otherwise, pass off to the original getcelltext method.
FileUtils.jsm
followlinks optional true if links should be followed, false otherwise.
... shouldcreate optional true if the directory hierarchy specified in patharray should be created if it does not exist, false otherwise.
... followlinks optional true if links should be followed, false otherwise location specified.
OS.File.Error
becauseexists true if the operation failed because a file or directory exists, false otherwise.
... becausenosuchfile true if the operation failed because a file or directory does not exist, false otherwise.
... becauseclosed true if the operation failed because a file or directory is closed, false otherwise.
Mozilla DOM Hacking Guide
otherwise, for more detailed xpcom documentation, please see the xpcom project page.
...each dom class needs to use these macros, otherwise bad things will happen.
...we want to expose this interface to javascript (otherwise only xpcom callers will be able to access this interface).
NSS tools : crlutil
critical/non-critical: is 1 when extension is critical and 0 otherwise.
...should be set to 1 if this extension is critical or 0 otherwise.
...keycompromise (1), cacompromise (2), affiliationchanged (3), superseded (4), cessationofoperation (5), certificatehold (6), removefromcrl (8), privilegewithdrawn (9), aacompromise (10) * add invalidity date extension: the invalidity date is a non-critical crl entry extension that provides the date on which it is known or suspected that the private key was compromised or that the certificate otherwise became invalid.
NSS Tools crlutil
critical/non-critical: is 1 when extension is critical and 0 otherwise.
...should be set to 1 if this extension is critical or 0 otherwise.
... superseded (4), cessationofoperation (5), certificatehold (6), removefromcrl (8), privilegewithdrawn (9), aacompromise (10) add invalidity date extension: the invalidity date is a non-critical crl entry extension that provides the date on which it is known or suspected that the private key was compromised or that the certificate otherwise became invalid.
NSS tools : crlutil
MozillaProjectsNSStoolscrlutil
critical/non-critical: is 1 when extension is critical and 0 otherwise.
...should be set to 1 if this extension is critical or 0 otherwise.
...(1), cacompromise (2), affiliationchanged (3), superseded (4), cessationofoperation (5), certificatehold (6), removefromcrl (8), privilegewithdrawn (9), aacompromise (10) * add invalidity date extension: the invalidity date is a non-critical crl entry extension that provides the date on which it is known or suspected that the private key was compromised or that the certificate otherwise became invalid.
Tracing JIT
otherwise it transitions to recording mode.
...when the innermost recorder completes -- successfully or otherwise -- every recorder on the deferred abort stack is aborted.
...otherwise it will return to monitoring mode.
JSAPI User Guide
otherwise, the gc will free the memory occupied by those values, leading to a probable crash the next time your program tries to use them.
... note that you do not need to call js_initclass to make a new instance of that class—otherwise there would be a chicken-and-egg problem making the global object—but you should call js_initclass if you require a constructor function for script authors to call via new, and/or a class prototype object (myclass.prototype) for authors to extend with new properties at run time.
...or a js object that mirrors data and functions that already exist in the application may provide an object-oriented interface to c code that is not otherwise, strictly-speaking, object-oriented itself.
JS_CheckAccess
otherwise, if obj's class has a non-null jsclass.checkaccess callback, then it is called to perform the check.
... otherwise, if a runtime-wide check-object-access callback has been installed by calling js_setcheckobjectaccesscallback, then that is called to perform the check.
... otherwise, access is granted.
JS_DeleteProperty
otherwise obj has a non-permanent own property with the given name or id.
...otherwise, if obj is not configurable, an error is raised.
... otherwise, the property is removed.
JS_ExecuteRegExp
if test is false, js_executeregexp and js_newregexpobjectnostatics store the match result array to *rval if matches, otherwise stores null to *rval.
... if test is true, js_executeregexp and js_newregexpobjectnostatics store the boolean value true to *rval if matches, otherwise stores null to *rval.
... if successful, js_executeregexp and js_newregexpobjectnostatics returns true and stores the result to *rval, otherwise returns false and the value of *rval is undefined see also mxr id search for js_executeregexp mxr id search for js_executeregexpnostatics regexp bug 571355 - added js_executeregexpnostatics function ...
JS_NewGlobalObject
otherwise it returns null.
...otherwise, callers should pass dontfireonnewglobalhook, which means that they are responsible for invoking js_fireonnewglobalobject upon successfully creating the global.
...but otherwise, callers must take care to fire the hook exactly once before compiling any script in the global's scope (we have assertions in place to enforce this).
JS_NewObject
otherwise it returns null.
...otherwise, object.prototype is used as the new object's prototype.
... otherwise, we use object.prototype, looking up the constructor for object as described above.
JS_ValueToId
otherwise, if e4x support is enabled and v is an object, *idp receives an object jsid.
... otherwise, *idp receives an interned string jsid based on the value of v.
...otherwise it returns false.
JS_ValueToNumber
otherwise v is an object.
... otherwise, the resulting object's tostring method, if any, is called.
... otherwise conversion fails with a typeerror.
Web Replay
this requires using the same build of firefox and a reasonably similar version of the operating system; otherwise the tab will probably crash.
... inter-thread non-determinism is handled by first assuming the program is data race free: shared memory accesses which would otherwise race are either protected by locks or use apis that perform atomic operations.
... this mechanism requires intercepting mmap (or similar low level allocation functions) so that any newly addressable memory is known — anonymous mappings would not otherwise be intercepted or included in the recording, as heap allocation is non-deterministic while replaying.
Handling Mozilla Security Bugs
this work is separate from the work of developers adding new security features (cryptographically-based or otherwise) to mozilla, although obviously many of the same people will be involved in both sets of activities.
... other participants besides the permanent security bug group members described above, there are two other categories of people who may participate in security bug group activities and have access to otherwise-confidential security bug reports: a person who reports a security bug will have continued access to all bugzilla activities associated with that bug, even if the bug is marked "security-sensitive." any other persons may be given access to a particular security bug, by someone else (who does have access) adding them to the cc list for that bug.
...however, we do expect members of the group: not to disclose security bug information to others who are not members of the mozilla security bug group or are not otherwise involved in resolving the bug.
imgIContainer
create and return a new copy of the current frame that you can write to and otherwise inspect the pixels of.
...return value missing description exceptions thrown missing exception missing description native code only!copyframe create and return a new copy of the given frame that you can write to and otherwise inspect the pixels of.
...otherwise, the image will be automatically tiled as necessary.
inIDOMUtils
if you have requested anonymous content, then if the element has an xbl binding then this will be the binding's anonymous nodes, otherwise if the element is itself an anonymous node containing an insertion point then this will be a list combining the element's explicit children from its binding parent's anonymous nodes and any children inserted as a result of the insertion point.
... return value true if the property is inherited, otherwise false.
... return value true if lock exists, false otherwise clearpseudoclasslocks() removes any pseudo-class locks from the element.
mozIStorageConnection
otherwise returns false.
... return value true if the index exists, false otherwise.
... return value returns true if the table exists, false otherwise.
nsIClipboard
otherwise it returns false.
...otherwise it returns false.
...otherwise it returns false.
nsIDOMXULElement
allowevents boolean true if the element's allowevents attribute is the string "true", otherwise false.
... collapsed boolean true if the element's collapsed attribute is the string "true", otherwise false.
... hidden boolean true if the element's hidden attribute is the string "true", otherwise false.
nsIEditorSpellCheck
boolean checkcurrentword( in wstring suggestedword ); parameters suggestedword missing description return value true if the specified word is misspelled; otherwise false.
... return value true if the word is misspelled; otherwise false.
... enableselectionchecking if true, the spell checker is initialized only for checking the current selection; otherwise, it's initialized for checking the entire document.
nsIExternalProtocolService
return value true if we have a handler and false otherwise.
... return value the handler, if any; otherwise a default handler.
... return value true if the protocol is exposed, false otherwise.
nsIMemory
otherwise, it returns a pointer to the newly allocated memory segment.
...otherwise false.
...otherwise, it returns a pointer to the newly allocated memory segment.
nsINavBookmarksService
return value returns true if the folder is marked as read-only, otherwise returns false.
... return value returns true if the given uri is in any bookmark folder, otherwise returns false.
...this method does not change the indices of any other items in the same folder, so ensure that the new index does not already exist, or change the index of other items accordingly, otherwise the indices will become corrupted.
nsIZipReader
set this parameter to null (javascript) or emptycstring() (c++) to get all entries; otherwise, use the following syntax: * matches anything.
...escaping is required for all special characters unless otherwise specified.
...if the entry refers to a directory (ends with '/'), a directory stream is opened, otherwise the contents of the file entry is returned.
nsIZipWriter
if the operation is performed on the queue then the channel will be opened asynchronously, otherwise the channel must support being opened synchronously.
... return value true if there is an entry with the given path in the zip file, otherwise returns false.
...it, and because zip is a copy of the directory cu.reporterror('+' + relpath); //makes it relative to directory the parent dir (dir[0]) so it can succesfully populate files with same names but different folders in this parent dir, needed because recursviely going through all dirs var saveinzipas = relpath.substr(1); //need to get ride of the first '\' forward slash at start otherwise it puts every file added in a folder of its own.
Getting Started Guide
as described above, and unless you tell it otherwise, an nscomptr addrefs when you assign in to it.
... void f( nscomptr<t> ) don't pass an nscomptr by value this practice is wasteful, but not otherwise harmful.
... void f( const nscomptr<t>& ) don't pass an nscomptr by const reference exactly as the signature above, this practice is wasteful, but not otherwise harmful, and has the same impact as passing an nscomptr by value if the caller only supplied a raw pointer.
Declaring and Using Callbacks
the return type of the javascript callback must match the return type declared, otherwise js-ctypes will throw an error saying "unexpected return type".
... 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.
Debugger.Environment - Firefox Developer Tools
false otherwise.
...otherwise, this property’s value is null.
...false otherwise.
Background Tasks API - Web APIs
if you make changes that affect layout, you may force a situation in which the browser has to stop and do recalculations that would otherwise be unnecessary.
... example in this example, we'll take a look at how you can use requestidlecallback() to run time-consuming, low-priority tasks during time the browser would otherwise be idle.
...tcontent = currenttasknumber; progressbarelem.value = currenttasknumber; } } if (logfragment) { logelem.appendchild(logfragment); logfragment = null; } if (scrolledtoend) { logelem.scrolltop = logelem.scrollheight - logelem.clientheight; } statusrefreshscheduled = false; } first, scrolledtoend is set to true if the text in the log is scrolled to the bottom; otherwise it's set to false.
Constraint validation API - Web APIs
willvalidate a read-only boolean property that returns true if the element is a candidate for constraint validation; and false otherwise.
...if the value is invalid, it fires an invalid event at the element and returns false; otherwise it returns true.
...otherwise, it returns true.
DeprecationReportBody - Web APIs
sourcefile a string containing the path to the source file where the deprecated feature was used, if known, or null otherwise.
... linenumber a number representing the line in the source file in which the deprecated feature was used, if known, or null otherwise.
... columnnumber a number representing the column in the source file in which the deprecated feature was used, if known, or null otherwise.
HTMLImageElement.height - Web APIs
the height property of the htmlimageelement interface indicates the height at which the image is drawn, in css pixels if the image is being drawn or rendered to any visual medium such as the screen or a printer; otherwise, it's the natural, pixel density corrected height of the image.
... otherwise, the image's height is represented using its natural (intrinsic) height, adjusted for the display density as indicated by naturalheight.
... html specifically, for viewports up to 400px wide, the image is drawn at a width of 200px; otherwise, it's drawn at 300px.
HTMLImageElement.width - Web APIs
the width property of the htmlimageelement interface indicates the width at which the image is drawn, in css pixels if the image is being drawn or rendered to any visual medium such as the screen or a printer; otherwise, it's the natural, pixel density corrected width of the image.
... otherwise, the image's width is represented using its natural (intrinsic) width, adjusted for the display density as indicated by naturalwidth.
... html specifically, for viewports up to 400px wide, the image is drawn at a width of 200px; otherwise, it's drawn at 400px.
Drag Operations - Web APIs
otherwise, it will be set to an alternate value that is allowed.
...otherwise, the drag operation is cancelled, and no drop event is fired.
...otherwise, the effect specifies which operation was performed.
InterventionReportBody - Web APIs
sourcefile a string containing the path to the source file where the intervention occurred, if known, or null otherwise.
... linenumber a number representing the line in the source file in which the intervention occurred, if known, or null otherwise.
... columnnumber a number representing the column in the source file in which the intervention occurred, if known, or null otherwise.
Key Values - Web APIs
you can find a table of the dead keys and the characters they can be used with to generate accented or otherwise special characters on linux using gtk.
...has no effect otherwise.
... vk_wink "zoomtoggle" [2] toggles between full-screen and scaled content display, or otherwise change the magnification level.
MediaCapabilitiesInfo - Web APIs
otherwise, it is false.
... if supported is true, and playback will be smooth, smooth is true, otherwise, is it false.
...if supported is true, and playback will be power efficient, powerefficient is true, otherwise, is it false.
MediaTrackSettings - Web APIs
properties of audio tracks autogaincontrol a boolean which indicates the current value of the autogaincontrol property, which is true if automatic gain control is enabled and is false otherwise.
... echocancellation a boolean indicating the current value of the echocancellation property, specifying true if echo cancellation is enabled, otherwise false.
... noisesuppression a boolean which indicates the current value of the noisesupression property, which is true if noise suppression is enabled and is false otherwise.
MutationObserverInit - Web APIs
otherwise, a typeerror exception will be thrown.
...the default value is true if either of attributefilter or attributeoldvalue is specified, otherwise the default value is false.
...the default value is true if characterdataoldvalue is specified, otherwise the default value is false.
Establishing a connection: The WebRTC perfect negotiation pattern - Web APIs
the best thing about perfect negotiation is that the same code is used for both the caller and the callee, so there's no repetition or otherwise added levels of negotiation code to write.
...otherwise, we set srcobject to the stream at index 0 in the streams array.
...otherwise, we drop the error, ignoring it, since it doesn't matter in this context.
Viewpoints and viewers: Simulating cameras in WebXR - Web APIs
perspective, properly applied to the objects in a scene, can take a scene that would otherwise look as flat as a typical 2d screen and make it pop as if it were truly 3d.
... but the location isn't enough to describe an object in 3d space because an object's state in space isn't only about its location, but about its rotation or facing direction, otherwise known as its orientation.
... 0, 0, 0, 1 ]; vec4.transformmat4(myvector, myvector, scaletransform); or, using scaling along every axis by the same factor using the createscalingmatrix() function shown above: let myvector = [2, 1, -3]; vec4.transformmat4(myvector, myvector, createscalingmatrix(2.0)); panning (yawing left or right) panning or yaw is the rotation of the camera left to right or right to left, with its base otherwise fixed in place.
Geometry and reference spaces in WebXR - Web APIs
otherwise, typically, one of the other reference space types will be used more often.
...this is the plane at which the y coordinate is always 0, unless a floor is otherwise established.
...it's not typically used directly otherwise.
Starting up and shutting down a WebXR session - Web APIs
otherwise, the polyfill falls back to an implementation which uses google's cardboard vr api.
...this returns a promise which resolves to true if the given type of session is available for use or false otherwise.
... here we discuss both how to request a shutdown of the webxr session and how to detect when the session has ended, whether by your request or otherwise.
Using IIR filters - Web APIs
as well as this, if your audio graph needed a highpass and a bandpass filter within it, you could just use one iir filter node in place of the two biquad filter nodes you would otherwise need for this.
... when setting our coefficients, the feedforward values can't all be set to zero, otherwise nothing would be sent to the filter.
... something like this is acceptable: let feedforward = [0.00020298, 0.0004059599, 0.00020298]; our feedback values cannot start with zero, otherwise on the first pass nothing would be sent back: let feedbackward = [1.0126964558, -1.9991880801, 0.9873035442]; note: these values are calculated based on the lowpass filter specified in the filter characteristics of the web audio api specification.
Window: popstate event - Web APIs
these methods and their corresponding events can be used to add data to the history stack which can be used to reconstruct a dynamically generated page, or to otherwise alter the state of the content being presented while remaining on the same document.
...he moment when the new document state is already fully in place, a zero-delay settimeout() method call should be used to effectively put its inner callback function that does the processing at the end of the browser event loop: window.onpopstate = () => settimeout(dosomething, 0); when popstate is sent when the transition occurs, either due to the user triggering the browser's "back" button or otherwise, the popstate event is near the end of the process to transition to the new location.
... if new-entry has serialized state information saved with it, that information is deserialized into history.state; otherwise, state is null.
Window.showModalDialog() - Web APIs
options is an optional string specifying window ornamentation for the dialog, using one or more semicolon delimited values: syntax description center: {on | off | yes | no | 1 | 0 } if on, yes, or 1, the dialog window is centered on the desktop; otherwise it's hidden.
... resizable: {on | off | yes | no | 1 | 0 } if this argument's value is on, yes, or 1, the dialog window can be resized by the user; otherwise its size is fixed.
... scroll: {on | off | yes | no | 1 | 0 } if on, yes, or 1, the dialog window has scroll bars; otherwise its size is fixed.
An overview of accessible web applications and widgets - Accessibility
roles describe widgets that aren't otherwise available in html 4, such as sliders, menu bars, tabs, and dialogs.
...examples include (but are certainly not limited to): aria-checked: indicates the state of a checkbox or radio button aria-disabled: indicates that an element is visible, but not editable or otherwise operable aria-grabbed: indicates the 'grabbed' state of an object in a drag-and-drop operation (for a full list of aria states, consult the aria list of states and properties.) developers should use aria states to indicate the state of ui widget elements and use css attribute selectors to alter the visual appearance based on the state changes (rather than using script to change a class name o...
...javascript to update the aria-checked attribute var showtip = function(el) { el.setattribute('aria-hidden', 'false'); } role changes aria allows developers to declare a semantic role for an element that otherwise offers incorrect or no semantics.
Architecture - Accessibility
otherwise, use iahyperlink::getstartindex() to find the index in parent.
... otherwise, continue processing with offset = the index at the end of the line.
... otherwise, the offset marks the start of a new line.
Privacy and the :visited selector - CSS: Cascading Style Sheets
only the following styles can be applied to visited links: color background-color border-color (and its sub-properties) column-rule-color outline-color the color parts of the fill and stroke attributes in addition, even for the above styles, you won't be able to change the transparency between unvisited and visited links, as you otherwise would be able to using rgba(), hsla(), or the transparent keyword.
...you need to specify a different value, otherwise changes on :visited won't apply.
... colors that are otherwise transparent will fail to appear if styled in a :visited selector.
overflow-wrap - CSS: Cascading Style Sheets
the overflow-wrap css property applies to inline elements, setting whether the browser should insert line breaks within an otherwise unbreakable string to prevent text from overflowing its line box.
... anywhere to prevent overflow, an otherwise unbreakable string of characters — like a long word or url — may be broken at any point if there are no otherwise-acceptable break points in the line.
... break-word the same as the anywhere value, with normally unbreakable words allowed to be broken at arbitrary points if there are no otherwise acceptable break points in the line, but soft wrap opportunities introduced by the word break are not considered when calculating min-content intrinsic sizes.
repeat() - CSS: Cascading Style Sheets
WebCSSrepeat
otherwise, as its minimum track sizing function, and taking grid-gap into account.
...otherwise, if the grid container has a definite minimal size in the relevant axis, the number of repetitions is the smallest possible positive integer that fulfills that minimum requirement.
... otherwise, the specified track list repeats only once.
Creating a cross-browser video player - Developer guides
ie9 will only use the specified poster image in this way if preload="none" is set; otherwise, it will take the first still of the video and display that instead.
...otherwise the video must be playing, so it is paused using the pause() method.
... fullscreen the fullscreen api should be straight forward to use: the user clicks a button, if the video is in fullscreen mode: cancel it, otherwise enter fullscreen mode.
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
WebHTMLElementinput
alt valid for the image button only, the alt attribute provides alternative text for the image, displaying the value of the attribute if the image src is missing or otherwise fails to load.
... reportvalidity() returns true if the element's value passes validity checks; otherwise, returns false.
... :disabled any currently disabled element that has an enabled state, meaing it otherwise could be activated (selected, clicked on, typed into, etc.) or accept focus were it not disabled.
HTTP headers - HTTP
WebHTTPHeaders
timing-allow-origin specifies origins that are allowed to see values of attributes retrieved via features of the resource timing api, which would otherwise be reported as zero due to cross-origin restrictions.
... x-download-options the x-download-options http header indicates that the browser (internet explorer) should not display the option to "open" a file that has been downloaded from an application, to prevent phishing attacks as the file otherwise would gain access to execute in the context of the application.
...the file may define a policy to grant clients, such as adobe's flash player, adobe acrobat, microsoft silverlight, or apache flex, permission to handle data across domains that would otherwise be restricted due to the same-origin policy.
Numbers and dates - JavaScript
the first statement creates a variable temp, assigning it a value using a conditional expression; if hour is greater than 12, (hour - 12), otherwise simply hour, unless hour is 0, in which case it becomes 12.
...if the value of minute is less than 10, the conditional expression adds a string with a preceding zero; otherwise it adds a string with a demarcating colon.
... finally, a conditional expression appends "p.m." to temp if hour is 12 or greater; otherwise, it appends "a.m." to temp.
Array.prototype.every() - JavaScript
otherwise, false.
...otherwise, if callback returns a truthy value for all elements, every returns true.
...otherwise, the value undefined will be used as its this value.
Array.prototype.some() - JavaScript
otherwise, false.
...otherwise, some() returns false.
...otherwise, the value undefined will be used as its this value.
Reflect.getOwnPropertyDescriptor() - JavaScript
it returns a property descriptor of the given property if it exists on the object, undefined otherwise.
... return value a property descriptor object if the property exists in target object; otherwise, undefined.
... description the reflect.getownpropertydescriptor method returns a property descriptor of the given property if it exists in the target object, undefined otherwise.
String - JavaScript
method 1 you can use the + operator to append multiple strings together, like this: let longstring = "this is a very long string which needs " + "to wrap across multiple lines because " + "otherwise my code is unreadable." method 2 you can use the backslash character (\) at the end of each line to indicate that the string will continue on the next line.
... make sure there is no space or any other character after the backslash (except for a line break), or as an indent; otherwise it will not work.
... that form looks like this: let longstring = "this is a very long string which needs \ to wrap across multiple lines because \ otherwise my code is unreadable." both of the above methods result in identical strings.
TypedArray.prototype.every() - JavaScript
return value true if the callback function returns a truthy value for every array element; otherwise, false.
...otherwise, if callback returned a true value for all elements, every will return true.
...otherwise, the value undefined will be passed for use as its this value.
TypedArray.prototype.find() - JavaScript
otherwise undefined is returned.
... return value a value in the array if an element passes the test; otherwise, undefined.
...otherwise, find returns undefined.
TypedArray.prototype.findIndex() - JavaScript
otherwise -1 is returned.
... return value an index in the array if an element passes the test; otherwise, -1.
...otherwise, findindex returns -1.
TypedArray.prototype.some() - JavaScript
return value true if the callback function returns a truthy value for any array element; otherwise, false.
...otherwise, some returns false.
...otherwise, the value undefined will be passed for use as its this value.
Less than (<) - JavaScript
the less than operator (<) returns true if the left operand is less than the right operand, and false otherwise.
... otherwise javascript attempts to convert non-numeric types to numeric values: boolean values true and false are converted to 1 and 0 respectively.
... otherwise the values are compared as numeric values.
Web video codec guide - Web media technologies
if the codec converts the media into an internal pixel format, or otherwise represents the image using a means other than simple pixels, the format of the original image doesn't make any difference.
...this means that any errors or artifacts will compound over time, resulting in glitches or otherwise strange or unexpected deviations in the image that linger for a time.
...otherwise, you should probably consider a different codec.
The "codecs" parameter in common media types - Web media technologies
otherwise, the video data is entirely in the y plane and is therefore monochromatic.
...if both of those are 1, the third is the value of chroma_sample_position; otherwise, the third digit is always 0.
...otherwise, provides the same features as the high profile.
in2 - SVG: Scalable Vector Graphics
WebSVGAttributein2
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.
Index - XSLT: Extensible Stylesheet Language Transformations
WebXSLTIndex
otherwise, nodes are processed in document order.
...to achieve the functionality of an if-then-else statement, however, use the <xsl:choose> element with one <xsl:when> and one <xsl:otherwise> children.
... 40 <xsl:otherwise> element, reference, xslt, otherwise the <xsl:otherwise> element is used to define the action that should be taken when none of the <xsl:when> conditions apply.
Window: deviceproximity event - Archive of obsolete content
min read only double (float) the minimum value in the range the sensor detects (if available, 0 otherwise).
... max read only double (float) the maximum value in the range the sensor detects (if available, 0 otherwise).
context-menu - Archive of obsolete content
if the menu was invoked in an input text box or area, this is the selection of that element, otherwise the selection in the contents of the window.
... value the current contents of a input text box or area if the menu was invoked in one, null otherwise.
url - Archive of obsolete content
any api in the sdk which has a url parameter will accept url objects, not raw strings, unless otherwise noted.
...an exception is raised if the url can't be converted; otherwise, the native file path is returned as a string.
content/mod - Archive of obsolete content
returns null otherwise.
...if target is specified modification is removed from that target only, otherwise modification is removed from all the targets it's being attached to.
io/file - Archive of obsolete content
exists(path) returns true if a file exists at the given path and false otherwise.
... returns boolean : true if the file exists and false otherwise.
platform/xpcom - Archive of obsolete content
parameters factory : object returns boolean : true if the factory or service is registered, false otherwise.
... if it finds a match, it returns this, otherwise it throws components.results.ns_error_no_interface.
Creating custom Firefox extensions with the Mozilla build system - Archive of obsolete content
otherwise you will have to link statically to your module if you use these public headers in other modules.
...otherwise the first module's xpt file will be overwritten by the second and you'll get ns_error_xpc_bad_iid errors when you try to access its idl interfaces from your code.
How to convert an overlay extension to restartless - Archive of obsolete content
if you need to read data, or otherwise access files within your bundle, there are two options.
...(this random id is otherwise ignored) the loaded string bundle is still cached on startup and should still be cleared out of the cache on addon shutdown.
Intercepting Page Loads - Archive of obsolete content
otherwise you have to make sure to avoid duplicated work if you have 2 or more windows open.
...in the previous example, one of the first things we do is check if the url is of interest to us, otherwise we let it go.
JavaScript crypto - Archive of obsolete content
therefore, these bits should always be set to 0; otherwise, mozilla might exhibit unpredictable behavior.
...therefore, this flag should always be set to 0; otherwise, mozilla might exhibit unpredictable behavior.
panel.level - Archive of obsolete content
on linux, the default value is top, otherwise, the default value is parent.
... if a panel has one or more text fields, this attribute should not be set, otherwise ime or on-screen keyboard popups will appear incorrectly.
Index - Archive of obsolete content
ArchiveMozillaXULIndex
otherwise, a content builder will be created.
...if the condition is true, the corresponding action body is generated; otherwise the result is ignored and no content is generated.
textbox.label - Archive of obsolete content
otherwise it returns the value of the associated label element, if applicable.
... otherwise it returns the placeholder or emptytext property.
Introduction - Archive of obsolete content
otherwise, the datasource is loaded as any other url is loaded.
...otherwise, there isn't anything to do until the data is loaded.
Template Builder Interface - Archive of obsolete content
otherwise, a content builder will be created.
...this syntax is necessary as otherwise you wouldn't be able to specify a value for the datasources attribute, and a template builder would not be attached to the element.
XML Templates - Archive of obsolete content
otherwise the data included inline and the template are the same.
... note the only change is that the addition of the xmlns attribute on the data; this is used to clear the namespace used for the elements in the data, otherwise they become xul elements.
Textbox (XPFE autocomplete) - Archive of obsolete content
otherwise it returns the value of the associated label element, if applicable.
... otherwise it returns the placeholder or emptytext property.
Code Samples - Archive of obsolete content
the samples here are designed to work in firefox, thunderbird, sunbird and seamonkey, except where the text says otherwise.
...otherwise it opens the window: const name = "...internal name of the window..." const uri = "...chrome uri of the window..." var w = components .classes["@mozilla.org/appshell/window-mediator;1"] .getservice(components.interfaces.nsiwindowmediator) .getmostrecentwindow(name) if (w) w.focus() else components .classes["@mozilla.org/embedcomp/window-watcher;1"] .getservice(components.interfaces.ns...
menu - Archive of obsolete content
ArchiveMozillaXULmenu
otherwise, events are passed to the element only.
...otherwise, the menu will size itself to at least the size of the popup.
toolbar - Archive of obsolete content
otherwise, if the beforepermanent argument is false, the new item is added to the end of the toolbar.
...otherwise, this option will be ignored for this toolbar and it will always be visible.
Mozilla release FAQ - Archive of obsolete content
if built from cvs, the date of the cvs checkout is the best way to refer to the version, otherwise use the release number.
...otherwise, the more unixlike the target system is, the easier your port will go.
Security Controls - Archive of obsolete content
protection measures (otherwise known as security controls) tend to fall into two categories.
... the motivation for having multiple layers is that if one layer fails or otherwise cannot counteract a certain threat, other layers might prevent the threat from successfully breaching the system.
Window: devicelight event - Archive of obsolete content
min read only double (float) the minimum value in the range the sensor detects (if available, 0 otherwise).
... max read only double (float) the maximum value in the range the sensor detects (if available, 0 otherwise).
WCAG - MDN Web Docs Glossary: Definitions of Web-related terms
wcag uses three levels of conformance: priority 1: web developers must satisfy these requirements, otherwise it will be impossible for one or more groups to access the web content.
... priority 2: web developers should satisfy these requirements, otherwise some groups will find it difficult to access the web content.
Application Context - MDN Web Docs Glossary: Definitions of Web-related terms
otherwise, when the application context is created, the user agent must immediately navigate to the start url with replacement enabled.
... please note that the start url is not necessarily the value of the start_url member: the user or user agent could have changed it when the application was added to home-screen or otherwise bookmarked.
What is accessibility? - Learn web development
providing accessible sites is part of the law in some countries, which can open up some significant markets that otherwise would not be able to use your services or buy your products.
... people with hearing impairments otherwise known as people with auditory impairments or deaf people, this group of people has either low hearing levels or no hearing at all.
Cascade and inheritance - Learn web development
unset resets the property to its natural value, which means that if the property is naturally inherited it acts like inherit, otherwise it acts like initial.
...only when there is a tie between selector scores within a specificity level do you need to evaluate the next level down; otherwise, you can disregard the lower specificity level selectors since they can never overwrite the higher specificity levels.
Overflowing content - Learn web development
otherwise, both overflow-x and overflow-y are set to the same value.
...these boxes may otherwise have no relationship to each other.
Mozilla splash page - Learn web development
in each case (except one — which one is inherently responsive?) we want the browser to serve the 120px wide version when the viewport width is 500px wide or less, or the 400px wide version otherwise.
... an art directed red panda inside the <div> with the class of red-panda, we want to insert a <picture> element that serves the small portrait panda image if the viewport is 600px wide or less, and the large landscape image otherwise.
Graceful asynchronous programming with Promises - Learn web development
because we want to do something a bit more complex to the blob than just run a single method on it and return the result, we'll need to wrap the function body in curly braces this time (otherwise it'll throw an error).
...when you've chained multiple promises together with .then() blocks, or otherwise combined them to create custom functionality, you are already making your own custom async promise-based functions.
Cooperative asynchronous JavaScript: Timeouts and intervals - Learn web development
you'll probably want a way to stop such tasks, otherwise you may end up getting errors when the browser can't complete any further versions of the task, or if the animation being handled by the task has finished.
...otherwise multiple presses of the start button will apply multiple setinterval()s to the clock, leading to wrong behavior.
Drawing graphics - Learn web development
while you could use css and javascript to animate (and otherwise manipulate) svg vector images — as they are represented by markup — there was still no way to do the same for bitmap images, and the tools available were rather limited.
... we could now try to embed the image using drawimage(), but we need to make sure the image file has been loaded first, otherwise the code will fail.
What is JavaScript? - Learn web development
apis are ready-made sets of code building blocks that allow a developer to implement programs that would otherwise be hard or impossible to implement.
...javascript is case sensitive, and very fussy, so you need to enter the syntax exactly as shown, otherwise it may not work.
Introduction to client-side frameworks - Learn web development
choosing not to employ a framework’s preferred dsl will mean you miss out on features that would otherwise improve your developer experience.
...just as frameworks empower you to quickly write client-side javascript applications, static site generators allow you a way to quickly create html files you would otherwise have written individually.
Gecko info for Windows accessibility vendors
here is an algorithm for iterating through the nodes, looking for an item of a particular type: store a pointer to the start_item if the current item has a flows_to relation, follow that relation otherwise, go to the next item in depth first search order if the current item matches your criteria, then return current_item if the current_item == start_item, return null (no item found) if the end has been reached, go back to the start if wrapping is desired, otherwise return null (no item found) go to step 2 checkable, required and invalid states are supported ...
... unique features role_document default role for root object of document dhtml: role="wairole:document" sets state_readonly indicates it is a normal document, otherwise we're in an editor.
Accessible Toolkit Checklist
the high contrast theme can be toggled dynamically with leftalt+leftshift+printscreen expose the spi_getscreenreader 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.
...kes do the right thing msaa support (default state) links enter key activates link (thus default button no longer shows dark border when link is focused) msaa support, including linked and traversed states, and accessible value that holds destination url text fields - single and multiple line it's probably best to use native widgets for these, otherwise accessibility support will be quite difficult tab should always focus the next item, not insert a tab, unless there's a really good reason and another way to navigate always use system selection color, otherwise screen reader won't read the text make sure the caret is never blinking when focus is not in text field handle standard editing keys, such as arrow keys, home, end...
Adding a new CSS property
otherwise, set the variant entry in the nscssproplist entry to 0.
... the name of this keyword table needs to go in the nscssproplist entry; otherwise that keyword table should be null.
Application cache implementation overview
otherwise, this is “first download”.
...otherwise, the update invokes onerror and 'finishes'.
Creating Sandboxed HTTP Connections
if amerge is true, the new value is appened, otherwise the old value is overwritten.
...if amerge is true, the new value is appened, otherwise the old value is overwritten.
Debugging on Mac OS X
these builds enable hardened runtime and only differ from production builds in that they are not notarized which should not otherwise affect functionality, (other than the ability to easily launch the browser on macos 10.15+ -- see quarantine note below).
... select "build" from the left of the scheme editor window, and check that there is nothing listed under targets (otherwise it may cause problems when you try to run the executable for debugging since you will get build errors).
Firefox UI considerations for web developers
otherwise, bitmapped icons which are at least 96 pixels wide are considered.
...otherwise, the smallest image larger than 96 pixels wide is selected.
How Mozilla determines MIME Types
the first few bytes of the file) is searched for embedded nulls; if none are found, text/plain will be used, otherwise application/octet-stream.
...note that the extension here comes from the content-disposition header if present, and from the url itself otherwise.
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.
... note: when copying the examples below, change the uuid that uniquely identifies the component, otherwise you might have problems if your component gets installed along another component derived from those same examples.
IME handling guide
otherwise, we call it "ime is open".
...otherwise, uint32_max.
Widget Wrappers
properties all of a wrapper's properties are read-only unless otherwise indicated.
...table, and will toggle all the widgets' nodes' disabled states label for api-provided widgets, the label of the widget tooltiptext for api-provided widgets, the tooltip of the widget showinprivatebrowsing for api-provided widgets, whether the widget is visible in private browsing single wrapper properties all of a wrapper's properties are read-only unless otherwise indicated.
OS.File.Info
instances of os.file.info cross-platform attributes isdir true if the file is a directory, false otherwise.
... issymlink true if the false is a symbolic link, false otherwise.
OS.File for the main thread
os.file.exists() determine whether a file exists promise<bool> exists( in string path ) arguments path the name of the file promise resolves to true if the file exists, false otherwise performance note: for the sake of performance, you should avoid this function whenever possible.
...otherwise, fail if the directory already exists.
PopupNotifications.jsm
nevershow notifications with this parameter set to true will be removed when they would have otherwise been dismissed (i.e.
... removeondismissal notifications with this parameter set to true will be removed when they would have otherwise been dismissed (that is, any time the popup is closed due to user interaction).
Using JavaScript code modules
r example: components.utils.import("resource://app/my_module.jsm"); alert(foo()); // displays "foo" alert(bar.size + 3); // displays "6" alert(dummy); // displays "dummy is not defined" because 'dummy' was not exported from the module note: when you're testing changes to a code module, be sure to change the application's build id (e.g., the version) before your next test run; otherwise, you may find yourself running the previous version of your module's code.
...otherwise placing code modules in a jar file breaks compatibility unnecessarily.
Memory reporting
otherwise, if we have a b* pointer that actually points to a d object, we'll end up calling b::sizeofexcludingthis instead of d::sizeofexcludingthis, and thus we'll fail to measure any objects that d's fields point to.
...a good rule of thumb: if you're calling the method via a pointer, you usually want the former, otherwise you want the latter.
L20n Javascript API
n in one of supported locales; the context instance will try to retrieve a fallback translation from the next locale in the fallback chain, compiler.error, when l20n is unable to evaluate an entity to a string; there are two types of errors in this category: compiler.valueerror, when l20n can still try to use the literal source string of the entity as fallback, and compiler.indexerror otherwise.
...otherwise it sets the event listener and fire as soon as the context is ready.
nss tech note2
for example, to log the softoken, use: nss_debug_pkcs11_module="nss internal pkcs #11 module" note: in the command prompt on windows, do not quote the name of the target module, otherwise the quotes are considered part of the name.
...otherwise, the output will be written to stdout.
Python binding for NSS
following files were added: test_cert_request release 0.14.1 release date 2013-10-28 scm tag pynss_release_0_14_1 source download https://ftp.mozilla.org/pub/mozilla.org/security/python-nss/releases/pynss_release_0_14_1/src/ change log release 0.14.1 contains only modifications to tests and examples, otherwise functionally it is the same as release 0.14.0 fix bug in ssl_example.py and test_client_server.py where complete data was not read from socket.
...) nss.nss.make_line_pairs() nss.nss.oid_dotted_decimal() nss.nss.oid_str() nss.nss.oid_tag() nss.nss.oid_tag_name() nss.nss.read_der_from_file() nss.nss.x509_alt_name() nss.nss.x509_ext_key_usage() nss.nss.x509_key_usage() the following class methods and properties were added: note: it's a method if the name is suffixed with (), a propety otherwise socket.next() socket.readlines() socket.sendall() sslsocket.next() sslsocket.readlines() sslsocket.sendall() authkeyid.key_id authkeyid.serial_number authkeyid.get_general_names() crldistributionpoint.issuer crldistributionpoint.get_general_names() crldistributionpoint.get_reasons() certdb.find_crl_by_cert() certdb.find_c...
ssltyp.html
otherwise, free both the structure pointed to and the secitem structure itself.
...otherwise, free both the structure pointed to and the secitem structure itself.
NSS tools : signtool
the unix version of signtool assumes ~/.netscape unless told otherwise.
...if you are installing the keys and certificate in the communicator databases, you must exit communicator before using this option; otherwise, you risk corrupting the databases.
Necko walkthrough
nspipeinputstream::asyncwait sets the callback to be used later for a response if a target is specified (in this case, the main thread), callback is proxied via an nsinputstreamreadyevent, which is created now and may be called later otherwise, the callback would be called directly, when the socket is readable et voila, the transaction has been posted to the socket thread, and the main thread continues on, unblocked from network io.
... if a connection entry already exists matching the required conn info, then that one will be used; otherwise a new one is created (makenewconnection - creates socket etc.).
Rhino overview
otherwise the ecma conformant version is used (an array is constructed with no elements but with length property equal to i).
...otherwise, it must be a generated class, and an embedding can call getsecuritydomain() in the class implementing securitysupport.
Hacking Tips
external programs such as iongraph, dot, and your png viewer are search into the path, otherwise custom one can either be configured with environment variables (gdb_iongraph, gdb_dot, gdb_pngviewer) before starting gdb, or with gdb parameters (set iongraph-bin <path>, set dot-bin <path>, set pngviewer-bin <path>) within gdb.
...most of the time you will only have one, otherwise you should read what is the best setting to set here.
Introduction to the JavaScript shell
otherwise, the new object is placed in the scope of the object specified by scope.
...if type is "binary" returns an uint8array, otherwise returns an utf-8 decoded string.
JS::CompileOptions
otherwise, this returns null.
...the code declaring the instance guarantees that such option values will outlive the compileoptions itself: objects are otherwise rooted; principals have had their reference counts bumped; strings will not be freed until the compileoptions goes out of scope.
JS_ConstructObject
otherwise, the first argc elements of this array must be populated with valid jsval values.
...otherwise it returns null.
JS_ConvertValue
otherwise js_convertvalue reports an error.
... converting to jstype_object works exactly like js::toobject if v.isnullorundefined() is false, otherwise the result is nullptr.
JS_DecompileScript
otherwise, it returns the original source code of the script.
...otherwise, it returns a string containing "[no source]".
JS_DeleteElement2
on success, *succeeded receives false if the property was not deleted because it is permanent and true otherwise.
...otherwise it returns false and the value of *succeeded is undefined.
JS_EncodeCharacters
otherwise each character is simply truncated to 8 bits.
...otherwise it reports an error and returns js_false.
JS_ExecuteScript
otherwise obj is used.
...otherwise it returns false, and the value left in rval is unspecified.
JS_ExecuteScriptVersion
otherwise obj is used.
...otherwise it returns false, and the value left in *rval is unspecified.
JS_GetProperty
otherwise the property is found on a native object.
...otherwise *vp is set to the property's stored value, or undefined if the property does not have a stored value, and then the property's getter is called with the arguments (cx, obj, id, vp).
JS_GetScopeChain
otherwise, if cx has a global object, js_getscopechain returns that.
... otherwise, an error is reported and js_getscopechain returns null.
JS_InitClass
its value is the constructor function if constructor is non-null, and the prototype object otherwise.
...(this is a feature of the c and c++ languages.) otherwise, use memset.
JS_InstanceOf
js_instanceof returns true if obj is of the given class and false otherwise.
...otherwise, it returns false; it also reports a typeerror containing the function's name.
JS_InternString
otherwise a new string is created and added to the table.
...otherwise they report an error and return null.
JS_IsExtensible
receives true if extensible, false otherwise.
...if successful, js_isextensible stores [[extensible]] property to *extensible and returns true, otherwise returns false and the value of *extensible is undefined.
JS_NewFunction
flags unsigned pass jsfun_constructor to make a native that can be called as a constructor, otherwise 0.
...otherwise it reports an out-of-memory error and returns null.
JS_NewNumberValue
otherwise, a new floating-point jsval is created.
...otherwise it returns js_false and the value left in *rval is unspecified.
JS_ValueToObject
otherwise it returns false and the value left in *objp is unspecified.
... otherwise v is an object, and the result depends on the object.
SpiderMonkey 1.8.8
(the msstdint project includes an implementation of this header for microsoft visual studio which demonstrates what the c99 interface looks like.) otherwise, if the compiler doesn't provide a usable <stdint.h> header, a custom implementation shipped with the spidermonkey source is used.
... otherwise <stdint.h> is used.
SpiderMonkey 17
(the msstdint project includes an implementation of this header for microsoft visual studio which demonstrates what the c99 interface looks like.) otherwise, if the compiler doesn't provide a usable <stdint.h> header, a custom implementation shipped with the spidermonkey source is used.
... otherwise <stdint.h> is used.
SpiderMonkey 24
(the msstdint project includes an implementation of this header for microsoft visual studio which demonstrates what the c99 interface looks like.) otherwise, if the compiler doesn't provide a usable <stdint.h> header, a custom implementation shipped with the spidermonkey source is used.
... otherwise <stdint.h> is used.
Redis Tips
redis> get foo (nil) redis> setnx foo 17 (integer) 1 redis> get foo "17" redis> setnx foo 42 (integer) 0 the return value from setnx is 1 if the value was set, 0 otherwise.
... otherwise, you get -1.
Mork
MozillaTechMork
however, since the meta-row of a row never appears to be used, i will generally use 'meta-row' to refer to the meta-row of a table, unless otherwise qualified.
...if the scope is not specified, then it is the default scope of the table (if it has one) or 'r' otherwise.
XPCOM glue
MozillaTechXPCOMGlue
this is because it forces a dependency on the nspr library, which can otherwise be avoided.
... linux and mac: write the linker options exactly as stated (just replacing the /path/to/sdk/), otherwise you get an undefined symbol: ...ns_tabledrivenqi...qitableentry...
jsdIStackFrame
private data for this context, if it is an nsisupports, |null| otherwise.
...|true| if this context should be allowed to run scripts, |false| otherwise.
mozIAsyncFavicons
set to nsifaviconservice.favicon_load_non_private otherwise acallback optional once we're done setting and/or fetching the favicon, we invoke this callback.
... replacefavicondata() sets the data for a given favicon uri either by replacing existing data in the database or taking the place of otherwise fetched icon data when calling setandfetchfaviconforpage later.
mozIThirdPartyUtil
otherwise, find the uri of the channel, determine whether it is foreign with respect to auri, and return.
...(we have already checked that auri is not foreign with respect to the channel uri.) otherwise, return the result of isthirdpartywindow() with arguments of the channel's bottommost window and the channel uri, respectively.
nsIAuthInformation
otherwise, this will be a string such as "basic" or "digest".
...otherwise, this is a human-readable string like "secret files".
nsIBrowserHistory
adobatchnotify obsolete since gecko 9.0 if set to true, the beginupdatebatch and endupdatebatch events are sent; otherwise, no notification of changes to the history is provided.
...set to false otherwise.
nsICacheVisitor
return value returns true to start visiting all entries for this device, otherwise returns false to advance to the next device.
... return value returns true to visit the next entry on the current device, or if the end of the device has been reached, advance to the next device, otherwise returns false to advance to the next device.
nsICachingChannel
load_bypass_local_cache_if_busy 1 << 29 this load flag causes the local cache to be skipped if the request would otherwise block waiting to access the cache.
...return value returns true if this channel's data is being loaded from the cache, otherwise returns false.
nsIComponentRegistrar
return value true if a factory is registered for the classid, false otherwise.
... return value true if a factory is registered for the contractid, false otherwise.
nsIController
return value return true if the specified command is currently available to be used; otherwise, it should return false.
... return value true if the specified command is supported; otherwise false.
nsICookie
isdomain boolean true if the cookie is a domain cookie, false otherwise.
... issecure boolean true if the cookie was transmitted over ssl, false otherwise.
nsICookieManager2
presence of a leading dot indicates a domain cookie; otherwise, the cookie is treated as a non-domain cookie.
...'.foo.com', not '.com'), otherwise an exception will be thrown.
nsIDOMStorageEventObsolete
canbubblearg true if the event is allowed to bubble, otherwise false.
... cancelablearg true if the event can be canceled, otherwise false.
nsIDocShell
docshells are not app tabs unless told otherwise.
...return value returns true if the docshell is being destroyed, false otherwise.
nsIDragService
void enddragsession( in prbool adonedrag ); parameters adonedrag if adonedrag is true, the drag has finished, otherwise the drag has just left the window.
...if the element is in a document, it will be rendered at its displayed size, otherwise, it will be rendered at its real size.
nsIEffectiveTLDService
otherwise identical to getbasedomain().
...otherwise identical to getpublicsuffix().
nsIEventListenerService
usecapture true if to listen the event in capture phase, otherwise, false.
... usecapture true if listening the events in capture phase, otherwise, false.
nsIFaviconService
this should be determined via privatebrowsingutils.iswindowprivate(somerelatedwindow) if the favicon may expose the user's private browsing data by performing a network request, otherwise favicon_load_non_private may be used.
...this means that you should try to set data first if you have it, otherwise the page might not get a notification sent for it since data setting does not send notifications.
nsIFileProtocolHandler
otherwise identical to geturlspecfromfile(), but is usually more efficient.
...otherwise identical to geturlspecfromfile(), but is usually more efficient.
nsIHttpServer
* * @param path * the path on the server (beginning with a "/") which is to be handled by * handler; this path must not include a query string or hash component; it * also should usually be canonicalized, since most browsers will do so * before sending otherwise-matching requests * @param handler * an object which will handle any requests for the given path, or null to * remove any existing handler; if while the server is running the handler * throws an exception while responding to a request, an http 500 response * will be returned * @throws ns_error_invalid_arg * if path does not begin with a "/" */ void registerpath...
... 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.
nsIIDNService
isascii on return, this is set to true if the result is ascii or ace encoded; otherwise it's false.
... return value returns true if the specified string is ace encoded; otherwise, returns false.
nsIInstallLocation
return value an nsifile if the package exists otherwise null.
... return value true if the item's resources are managed independently of the extension system, false otherwise.
nsIJSID
return value true if the nsijsid's are valid and have the same nsid, otherwise false.
...return value the name of the jsid if it has one, otherwise the string representation of its nsid.
nsILocalFile
exceptions thrown ns_error_file_unrecognized_path indicates that relativefilepath incorrectly begins with a path separator character or otherwise contains invalid characters.
... exceptions thrown ns_error_file_unrecognized_path indicates that relativefilepath incorrectly begins with a path separator character or otherwise contains invalid characters.
nsILoginManager
return value true if the form was successfully filled out; otherwise false.
... return value true if login saving is enabled for the host, otherwise false.
nsIMsgDBView
false otherwise.
...otherwise, the index may be the index of the thread and not the message.
nsIMsgIncomingServer
otherwise, copies and folders prefs should point to local folders.
...otherwise, return true.
nsINavBookmarkObserver
auri the uri of the item that was added when aitemtype is type_bookmark, null otherwise.
... auri the uri of the added item if it was type_bookmark, null otherwise.
nsIParentalControlsService
return value true if the block was successfully overridden, otherwise false.
... return value true if the block was successfully overridden, otherwise false.
nsIPrincipal
return value true if the two principals are equivalent; otherwise false.
...boolean subsumes( in nsiprincipal other ); parameters other missing description return value true if this principal subsumes the specified principal; otherwise false.
nsIProtocolHandler
return value return true if the override is approved; otherwise, return false.
...otherwise, aspec may be resolved relative to abaseuri, depending on the protocol.
nsIProtocolProxyService
otherwise, this method returns null indicating that a direct connection should be used.
...otherwise, the consumer may choose to treat the result as type "direct" if desired.
nsIPushService
otherwise, it's an instance of `nsipushsubscription`.
...otherwise, your code may try to handle messages meant for other subscriptions.
nsIStandardURL
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).
...otherwise, aspec will be resolved relative to abaseuri.
nsITaskbarPreviewController
return value true if you want a frame drawn around the preview, otherwise false.
... return value true if you want a frame drawn around the thumbnail, otherwise false.
nsIWindowMediator
otherwise this variable is ignored.
...otherwise this value will be null.
nsIWindowsRegKey
return value this method returns true if the key has changed and false otherwise.
...otherwise, only this key is watched.
nsIZipReaderCache
otherwise the previously created nsizipreader is returned.
...the number of outstanding entries can be much greater than this number, this is the count for those otherwise unused entries.
NS_CStringAppendData
otherwise, adata need not be null-terminated.
...otherwise, it returns an error code.
NS_CStringInsertData
otherwise, adata need not be null terminated.
...otherwise, it returns an error code.
NS_CStringSetData
otherwise, adata need not be null-terminated.
...otherwise, it returns an error code.
NS_CStringSetDataRange
otherwise, adata need not be null terminated.
...otherwise, it returns an error code.
NS_StringAppendData
otherwise, adata need not be null terminated.
...otherwise, it returns an error code.
NS_StringInsertData
otherwise, adata need not be null terminated.
...otherwise, it returns an error code.
NS_StringSetData
otherwise, adata need not be null terminated.
...otherwise, it returns an error code.
NS_StringSetDataRange
otherwise, adata need not be null terminated.
...otherwise, it returns an error code.
Weak reference
this design, however, is flawed, as it holds the observer in existence longer than would otherwise be necessary.
... } alternatives this technique is useful, but in situations where you need this, there are two alternatives which you may want to consider: you might hold an owning reference, but arrange to release it out-of-band; this must be before the destructor, which would otherwise never be called.
Debugger.Frame - Firefox Developer Tools
generator true if this frame is a generator frame, false otherwise.
... constructing true if this frame is for a function called as a constructor, false otherwise.
Debugger.Object - Firefox Developer Tools
callable true if the referent is a callable object (such as a function or a function proxy); false otherwise.
... unless otherwise specified, these methods are not invocation functions; if a call would cause debuggee code to run (say, because it gets or sets an accessor property whose handler is debuggee code, or because the referent is a proxy whose traps are debuggee code), the call throws a debugger.debuggeewouldrun exception.
AudioTrack.label - Web APIs
WebAPIAudioTracklabel
the read-only audiotrack property label returns a string specifying the audio track's human-readable label, if one is available; otherwise, it returns an empty string.
...otherwise, an empty string ("") is returned.
AudioWorkletNodeOptions - Web APIs
otherwise, if outputchannelcount is provided and if the values of numberofinputs and numberofoutputs are both 1, the audio worklet node's channel count is set to the value of outputchannelcount.
... otherwise, the channel count of each channel in the set of output channels is set to match the corresponding value in the outputchannelcount array.
Using the Beacon API - Web APIs
if the browser successfully queues the request for delivery, the method returns true and returns false otherwise.
... var msg = event.data; // log worker's send status console.log("worker reply: sendbeacon() status = " + msg); }; } this code snippet is for the worker (worker-using.js): onmessage = function(event) { var msg = event.data; // split the url and data from the message var url = msg[0]; var data = msg[1]; // if the browser supports worker sendbeacon(), then send the beacon; otherwise // return failure message to the global context if (self.navigator.sendbeacon) { var status = self.navigator.sendbeacon(url, data); postmessage(status ?
Beacon API - Web APIs
if the browser successfully queues the request for delivery, the method returns "true" and returns "false" otherwise.
...if the browser successfully queues the request for delivery, the method returns "true" and otherwise returns "false".
Bluetooth.referringDevice - Web APIs
the bluetooth.referringdevice attribute of the bluetooth interface returns a bluetoothdevice if the current document was opened in response to an instruction sent by this device and null otherwise.
... syntax bluetooth.referringdevice value a bluetoothdevice, if the document was opened in response to an instruction sent by this device and null otherwise.
CanvasRenderingContext2D.isPointInPath() - Web APIs
return value boolean a boolean, which is true if the specified point is contained in the current or specified path, otherwise false.
...if yes, the circle becomes green, otherwise it is red.
CanvasRenderingContext2D.isPointInStroke() - Web APIs
return value boolean a boolean, which is true if the point is inside the area contained by the stroking of a path, otherwise false.
...if yes, the ellipse's stroke becomes green, otherwise it is red.
Clients.openWindow() - Web APIs
return value a promise that resolves to a windowclient object if the url is from the same origin as the service worker or a null value otherwise.
...(windowclient.focus(), true) : false); // otherwise, open a new tab to the applicable url and focus it.
DOMMatrix - Web APIs
WebAPIDOMMatrix
otherwise, a typeerror exception is thrown.
...otherwise, a typeerror exception is thrown.
DOMMatrixReadOnly - Web APIs
otherwise, a typeerror exception is thrown.
...otherwise, a typeerror exception is thrown.
DOMTokenList.contains() - Web APIs
the contains() method of the domtokenlist interface returns a boolean — true if the underlying list contains the given token, otherwise false.
... return value a boolean, which is true if the calling list contains token, otherwise false.
DataTransfer.mozUserCancelled - Web APIs
if the user canceled the event, the property returns true and returns false otherwise.
... syntax datatransfer.mozusercancelled; return value a boolean representing true if the user canceled the drag event and returns false otherwise.
Introduction to the DOM - Web APIs
this function creates a new h1 element, adds text to that element, and then adds the h1 to the tree for this document: <html> <head> <script> // run this function when the document is loaded window.onload = function() { // create a couple of elements in an otherwise empty html page const heading = document.createelement("h1"); const heading_text = document.createtextnode("big head!"); heading.appendchild(heading_text); document.body.appendchild(heading); } </script> </head> <body> </body> </html> fundamental data types this reference tries to describe the various objects and types in simple terms.
...the following very simple web page provides a <script> element in the header in which you can place functions that test the interface, a few html elements with attributes that you can retrieve, set, or otherwise manipulate, and the web user interface necessary to call those functions from the browser.
How whitespace is handled by HTML, CSS, and in the DOM - Web APIs
* * @param nod a node implementing the |characterdata| interface (i.e., * a |text|, |comment|, or |cdatasection| node * @return true if all of the text content of |nod| is whitespace, * otherwise false.
... * @return true if the node is: * 1) a |text| node that is all whitespace * 2) a |comment| node * and otherwise false.
EffectTiming.fill - Web APIs
WebAPIEffectTimingfill
otherwise, the result is "both".
...that means that unless we specify otherwise using the fill property, the instant the animation is started the element will be rotated to the left 90°, and then it will animate smoothly from there.
Element: mousewheel event - Web APIs
if the wheel has rotated away from the user, it's positive, otherwise negative.
...otherwise, i.e., if it's to left, the value is positive.
EventTarget.addEventListener() - Web APIs
that means that if the browser checks the value of the passive property on the options object, passivesupported will be set to true; otherwise, it will remain false.
...for the third parameter, if passivesupported is true, we're specifying an options object with passive set to true; otherwise, we know that we need to pass a boolean, and we pass false as the value of the usecapture parameter.
FetchEvent.preloadResponse - Web APIs
the preloadresponse read-only property of the fetchevent interface returns a promise that resolves to the navigation preload response if navigation preload was triggered or undefined otherwise.
... syntax var expectedresponse = fetchevent.preloadresponse; value a promise that resolves to a response or otherwise to undefined.
FetchEvent.respondWith() - Web APIs
otherwise, a network error is returned to fetch.
... examples this fetch event tries to return a response from the cache api, falling back to the network otherwise.
Using files from web applications - Web APIs
note that in this case the input element must not be hidden using display: none (nor visibility: hidden), otherwise the label would not be keyboard-accessible.
...otherwise, we start building our file list, as follows: a new unordered list (<ul>) element is created.
Guide to the Fullscreen API - Web APIs
webkit doesn't do this; instead, it centers the fullscreen element at the same size in a screen that's otherwise black.
... note: fullscreen requests need to be called from within an event handler or otherwise they will be denied.
Fullscreen API - Web APIs
obsolete properties document.fullscreen a boolean value which is true if the document has an element currently being displayed in full-screen mode; otherwise, this returns false.
...if the value is null, the document is currently in windowed mode, so we need to switch to full-screen mode; otherwise, it's the element that's currently in full-screen mode.
HTMLElement.hidden - Web APIs
the htmlelement property hidden is a boolean which is true if the element is hidden; otherwise the value is false.
... syntax ishidden = htmlelement.hidden; htmlelement.hidden = true | false; value a boolean which is true if the element is hidden from view; otherwise, the value is false.
HTMLMediaElement - Web APIs
htmlmediaelement.mozfragmentend is a double that provides access to the fragment end time if the media element has a fragment uri for currentsrc, otherwise it is equal to the media duration.
...true if the audio is muted and false otherwise.
HTMLObjectElement - Web APIs
htmlobjectelement.contentdocument read only returns a document representing the active document of the object element's nested browsing context, if any; otherwise null.
... htmlobjectelement.contentwindow read only returns a windowproxy representing the window proxy of the object element's nested browsing context, if any; otherwise null.
HTMLOutputElement - Web APIs
htmloutputelement.htmlforread only a domtokenlist reflecting the for html attribute, containing a list of ids of other elements in the same document that contribute to (or otherwise affect) the calculated value.
...the value property otherwise behaves like the textcontent property.
HTMLSelectElement - Web APIs
when multiple is true, it returns "select-multiple"; otherwise, it returns "select-one".
...returns the value property of the first selected option element if there is one, otherwise the empty string.
Basic concepts - Web APIs
when a database is first created, its version is the integer 1 if not specified otherwise.
...if the object store has a key path, it is using in-line keys; otherwise, it is using out-of-line keys.
KeyboardEvent.initKeyEvent() - Web APIs
keycodearg is a unsigned long representing the virtual key code value of the key which was depressed, otherwise 0.
... charcodearg is a unsigned long representingthe unicode character associated with the depressed key otherwise 0.
MediaDevices.getUserMedia() - Web APIs
otherwise, the user will never even be asked for permission to use the input devices.
... // first get ahold of the legacy getusermedia, if present var getusermedia = navigator.webkitgetusermedia || navigator.mozgetusermedia; // some browsers just don't implement it - return a rejected promise with an error // to keep a consistent interface if (!getusermedia) { return promise.reject(new error('getusermedia is not implemented in this browser')); } // otherwise, wrap the call to the old navigator.getusermedia with a promise return new promise(function(resolve, reject) { getusermedia.call(navigator, constraints, resolve, reject); }); } } navigator.mediadevices.getusermedia({ audio: true, video: true }) .then(function(stream) { var video = document.queryselector('video'); // older browsers may not have srcobject if ("srcobject" in v...
MediaRecorder.onerror - Web APIs
invalidstateerror an attempt was made to stop or pause or an inactive recorder, start or resume an active recorder, or otherwise manipulate the mediarecorder while in the wrong state.
... unknownerror an non-security related error occurred that cannot otherwise be categorized.
active - Web APIs
the active read-only property of the mediastream interface returns a boolean value which is true if the stream is currently active; otherwise, it returns false.
... syntax var isactive = mediastream.active; value a boolean value which is true if the stream is currently active; otherwise, the value is false.
MediaStreamTrack - Web APIs
mediastreamtrack.readonly read only returns a boolean value with a value of true if the track is readonly (such a video file source or a camera that settings can't be modified), false otherwise.
... mediastreamtrack.remote read only returns a boolean with a value of true if the track is sourced by a rtcpeerconnection, false otherwise.
MediaTrackConstraints.latency - Web APIs
in most cases, low latency is desirable for performance and user experience purposes, but when power consumption is a concern, or delays are otherwise acceptable, higher latency might be acceptable.
...otherwise, the value of this constraindouble will guide the user agent in its efforts to provide an exact match to the required latency (if exact is specified or both min and max are provided and have the same value) or to a best-possible value.
PaymentRequest.canMakePayment() - Web APIs
if (await supportsapplepay) { // show apple pay logo, for instance return; } // otherwise...
... let's see if we can use basic card const supportsbasiccard = await new paymentrequest( [{ supportedmethods: "basic-card" }], details ).canmakepayment(); if (supportsbasiccard) { // show basic card support return; } // otherwise, make payments using html form element } specifications specification status comment payment request apithe definition of 'canmakepayment()' in that specification.
PointerEvent.isPrimary - Web APIs
it returns true if the pointer that caused the event to be fired is the primary device and returns false otherwise.
... syntax var isprimary = pointerevent.isprimary; return value isprimary returns true if the pointer for this event is the primary pointer and returns false otherwise.
RTCPeerConnection.createDataChannel() - Web APIs
protocol optional the name of the sub-protocol being used on the rtcdatachannel, if any; otherwise, the empty string ("").
... return value a new rtcdatachannel object with the specified label, configured using the options specified by options if that parameter is included; otherwise, the defaults listed above are established.
RTCPeerConnection.createOffer() - Web APIs
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.
Request.cache - Web APIs
WebAPIRequestcache
otherwise the resource will be downloaded from the server and the cache will be updated.
...otherwise the resource will be downloaded from the server and the cache will be updated.
TextEncoder.prototype.encodeInto() - Web APIs
otherwise, first allocate for rounduptobucketsize(s.length) and convert.
...for example, if your wasm allocator is known to use power-of-two buckets, rounduptobucketsize() should return the argument if it is a power-of-two or the next power-of-two otherwise.
TouchEvent.targetTouches - Web APIs
in following code snippet, the function compares the length of the touches list to the the length of the targettouches list and returns true if the lengths are the same and returns false otherwise.
... function touches_in_target(ev) { // return true if all of the touches are within the target element; // otherwise return false.
ValidityState - Web APIs
if true, the element matches the :valid css pseudo-class; the :invalid css pseudo-class otherwise.
... valuemissing read only a boolean that is true if the element has a required attribute, but no value, or false otherwise.
VideoTrack.label - Web APIs
WebAPIVideoTracklabel
the read-only videotrack property label returns a string specifying the video track's human-readable label, if one is available; otherwise, it returns an empty string.
...otherwise, an empty string ("") is returned.
VideoTrackList.selectedIndex - Web APIs
the read-only videotracklist property selectedindex returns the index of the currently selected track, if any, or -1 otherwise.
... syntax var index = videotracklist.selectedindex; value a number indicating the index of the currently selected track, if any, or -1 otherwise.
WebRTC connectivity - Web APIs
when reading the description (returned by rtcpeerconnection.localdescription and rtcpeerconnection.remotedescription), the returned value is the value of pendinglocaldescription/pendingremotedescription if there's a pending description (that is, the pending description isn't null); otherwise, the current description (currentlocaldescription/currentremotedescription) is returned.
...after all, you were most likely just trying to upgrade or downgrade the connection, or to otherwise make adaptations to an ongoing session.
Writing WebSocket servers - Web APIs
the server must be careful to understand everything the client asks for, otherwise security issues can occur.
...if it's 0, then the server keeps listening for more parts of the message; otherwise, the server should consider the message delivered.
Movement, orientation, and motion: A WebXR example - Web APIs
otherwise, we create from the orientation changes in mousepitch and mouseyaw a quaternion specifying the inverse of that orientation, so that applying the inverseorientation to the cube will correctly appear to reflect the viewer's movement.
... ispowerof2() returns true if the specified value is a power of two; otherwise returns false.
Rendering and the WebXR frame animation callback - Web APIs
your mission, then, is to keep your code tight and lightweight enough that you don't overrrun the time available to you or otherwise cause dropped frames or excessively abuse the main thread.
...after interpreting inputs from the controls (both xr-affliated and otherwise), you need to apply those changes to the scene in order to simulate the user's movement.
Window.open() - Web APIs
WebAPIWindowopen
otherwise the call to window.open() will just create a new window.
...the javascript console in mozilla-based browsers will report the warning message: "scripts may not close windows that were not opened by script." otherwise the history of urls visited during the browser session would be lost.
XRPermissionDescriptor.optionalFeatures - Web APIs
otherwise, typically, one of the other reference space types will be used more often.
...e notes examples let xrpermissiondesc = { name: "xr", mode: "immersive-vr", optionalfeatures: [ "bounded-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.optionalfeatures' in that specification.
XRPermissionDescriptor.requiredFeatures - Web APIs
otherwise, typically, one of the other reference space types will be used more often.
... let xrpermissiondesc = { name: "xr", mode: "immersive-ar", 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.requiredfeatures' in that specification.
XRSystem: isSessionSupported() - Web APIs
otherwise, the promise resolves with false.
... return value a promise that resolves to true if the specified session mode is supported; otherwise the promise resolves to false.
XRView.eye - Web APIs
WebAPIXRVieweye
none the xrview describes a monoscopic view, or the view otherwise doesn't represent a particular eye's point-of-view.
...otherwise, we don't.
XRWebGLLayer.antialias - Web APIs
otherwise, this property's value is false.
...otherwise, this property is false.
XRWebGLLayer.ignoreDepthValues - Web APIs
otherwise, if this is true, the depth buffer's values are being used to assist in placing objects in the scene.
... since the xr compositor uses the depth buffer by default, this value is false unless explicitly set otherwise when creating the xrwebgllayer using its constructor, xrwebgllayer().
ARIA: tab role - Accessibility
when working with elements with the tab role, when they are selected or active, they should have their aria-selected attribute set to true, otherwise it should be set to false.
... when a tab is selected or active, its controlled tabpanel should have its aria-expanded and hidden attributes set to true, otherwise they should be set to false.
ARIA: listbox role - Accessibility
aria-readonly the user cannot change which options are selected or unselected, but the listbox is otherwise operable.
... update the aria-activedescendant value on the listbox to the id of the newly selected option visually handle the blur, focus, and selected states of the option toggling the state of an option in a multi select listbox when the user clicks on an option, hits space when focused on an option, or otherwise toggles the state of an option, the following must occur: toggle the aria-selected state of the currently focused option, changing the state of the aria-selected to true if it was false or false if it was true.
Perceivable - Accessibility
otherwise, screenreaders may try to read out the filepath, etc.
...content images should have text available that clearly describes the image's contents, which can be programmatically associated with it (e.g., alt text), or otherwise is easy to associate (e.g., describes it and is sat right next to it).
-webkit-mask-position-x - CSS: Cascading Style Sheets
/ -webkit-mask-position-x: 50px; -webkit-mask-position-x: -1cm; /* multiple values values */ -webkit-mask-position-x: 50px, 25%, -3em; /* global values */ -webkit-mask-position-x: inherit; -webkit-mask-position-x: initial; -webkit-mask-position-x: unset; initial value0%applies toall elementsinheritednopercentagesrefer to the size of the box itselfcomputed valuefor <length> the absolute value, otherwise a percentageanimation typediscrete syntax values <length-percentage> a length indicating the position of the left edge of the image relative to the box's left padding edge.
... formal definition initial value0%applies toall elementsinheritednopercentagesrefer to the size of the box itselfcomputed valuefor <length> the absolute value, otherwise a percentageanimation typediscrete formal syntax [ <length-percentage> | left | center | right ]#where <length-percentage> = <length> | <percentage> examples horizontally positioning a mask image .exampleone { -webkit-mask-image: url(mask.png); -webkit-mask-position-x: right; } .exampletwo { -webkit-mask-image: url(mask.png); -webkit-mask-position-x: 25%; } specifications not par...
-webkit-mask-position-y - CSS: Cascading Style Sheets
/ -webkit-mask-position-y: 50px; -webkit-mask-position-y: -1cm; /* multiple values values */ -webkit-mask-position-y: 50px, 25%, -3em; /* global values */ -webkit-mask-position-y: inherit; -webkit-mask-position-y: initial; -webkit-mask-position-y: unset; initial value0%applies toall elementsinheritednopercentagesrefer to the size of the box itselfcomputed valuefor <length> the absolute value, otherwise a percentageanimation typediscrete syntax values <length-percentage> a length indicating the position of the top side of the image relative to the box's top padding edge.
... formal definition initial value0%applies toall elementsinheritednopercentagesrefer to the size of the box itselfcomputed valuefor <length> the absolute value, otherwise a percentageanimation typediscrete formal syntax [ <length-percentage> | top | center | bottom ]#where <length-percentage> = <length> | <percentage> examples vertically positioning a mask image .exampleone { -webkit-mask-image: url(mask.png); -webkit-mask-position-y: bottom; } .exampletwo { -webkit-mask-image: url(mask.png); -webkit-mask-position-y: 25%; } specifications not part...
@supports - CSS: Cascading Style Sheets
WebCSS@supports
otherwise, the condition is invalid and the whole rule is ignored.
...ch don't support :is() */ :is(ul, ol) > li { … /* css applied when the :is(…) selector is supported */ } @supports not selector(:is(a, b)) { /* fallback for when :is() is unsupported */ ul > li, ol > li { … /* the above expanded for browsers which don't support :is(…) */ } } @supports selector(:nth-child(1n of a, b)) { /* this rule needs to be inside the @supports block, otherwise it will be partially applied in browsers which don't support the `of` argument of :nth-child(…) is supported */ :is(:nth-child(1n of ul, ol) a, details > summary) { … /* css applied when the :is(…) selector and the `of` argument of :nth-child(…) are both supported */ } } specifications specification status comment css conditional...
Overview of CSS Shapes - CSS: Cascading Style Sheets
the specification defines four <basic-shape> values, which are: inset() circle() ellipse() polygon() using the value inset() wraps text around a rectangular shape however you are able to add offset values, thus pulling the line boxes of any wrapping content closer to the object than would otherwise happen.
... note that images used in this way must be cors compatible, otherwise shape-outside will act as if none had been given as the value, and you will get no shape.
margin-inline - CSS: Cascading Style Sheets
formal definition initial value0applies tosame as margininheritednopercentagesdepends on layout modelcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typediscrete formal syntax <'margin-left'>{1,2} examples setting inline start and end margins html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-rl; margin-inline: 20px 40px; background-color: #c8c800; } result specifications specific...
... initial value0applies tosame as margininheritednopercentagesdepends on layout modelcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typediscrete ...
position - CSS: Cascading Style Sheets
WebCSSposition
it is positioned relative to its closest positioned ancestor, if any; otherwise, it is placed relative to the initial containing block.
...otherwise, it will be indistinguishable from relative positioning.
shape-outside - CSS: Cascading Style Sheets
otherwise, the reference box defaults to margin-box.
... formal definition initial valuenoneapplies tofloatsinheritednocomputed valueas defined for <basic-shape> (with <shape-box> following, if supplied), the <image> with its uri made absolute, otherwise as specified.animation typeyes, as specified for <basic-shape>, otherwise no formal syntax none | <shape-box> | <basic-shape> | <image>where <shape-box> = <box> | margin-box<basic-shape> = <inset()> | <circle()> | <ellipse()> | <polygon()> | <path()><image> = <url> | <image()> | <image-set()> | <element()> | <paint()> | <cross-fade()> | <gradient>where <box> = border-box | padding-box | content...
word-break - CSS: Cascading Style Sheets
the word-break css property sets whether line breaks appear wherever the text would otherwise overflow its content box.
... note: in contrast to word-break: break-word and overflow-wrap: break-word (see overflow-wrap), word-break: break-all will create a break at the exact place where text would otherwise overflow its container (even if putting an entire word on its own line would negate the need for a break).
HTML attribute: multiple - HTML: Hypertext Markup Language
otherwise, the <select> element represents a control for selecting a single <option> from the list of options.
...otherwise, the <select> element represents a control for selecting a single <option> from the list of options.
<a>: The Anchor element - HTML: Hypertext Markup Language
WebHTMLElementa
implicit aria role link when href attribute is present, otherwise no corresponding role permitted aria roles when href attribute is present: button checkbox menuitem menuitemcheckbox menuitemradio option radio switch tab treeitem when href attribute is not present: any dom interface htmlanchorelement examples linking to an absolute url htm...
...spacing helps people with motor control issues, who may otherwise accidentally activate the wrong interactive content.
<area> - HTML: Hypertext Markup Language
WebHTMLElementarea
implicit aria role link when href attribute is present, otherwise no corresponding role permitted aria roles no role permitted dom interface htmlareaelement attributes this element's attributes include the global attributes.
...this is a user agent’s default behavior, if no policy is otherwise specified.
<audio>: The Embed Audio element - HTML: Hypertext Markup Language
WebHTMLElementaudio
otherwise, setting currenttime sets the current playback position to the given time and seeks the media to that position if the media is currently loaded.
...for example, in the webvtt below, note the use of square brackets to provide tone and emotional insight to the viewer; this can help establish the mood otherwise provided using music, nonverbal sounds and crucial sound effects, and so forth.
<fieldset>: The Field Set element - HTML: Hypertext Markup Language
WebHTMLElementfieldset
if the <fieldset> is styled with an inline-level display value, it will behave as inline-block, otherwise it will behave as block.
...otherwise, it establishes a block formatting context.
<img>: The Image Embed element - HTML: Hypertext Markup Language
WebHTMLElementimg
this is the default if no policy is otherwise specified.
...when the (max-width: 600px) media condition matches, the 200 pixel-wide image will load (it is the one that matches 200px most closely), otherwise the other image will load.
<input type="number"> - HTML: Hypertext Markup Language
WebHTMLElementinputnumber
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 following screenshot is taken from firefox for android: a simple number input in its most basic form, a number input can be implemented like this: <label for="ticketnum">number of tickets you would like to buy:</label> <input id="ticketnum" type="number" name="ticketnum" value="0"> a number input is considered valid when empty and when a single number is entered, but is otherwise invalid.
<input type="time"> - HTML: Hypertext Markup Language
WebHTMLElementinputtime
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.
...in general, otherwise, support is good — especially on mobile platforms, which tend to have very nice user interfaces for specifying a time value.
Standard metadata names - HTML: Hypertext Markup Language
WebHTMLElementmetaname
otherwise, send no referrer.
...by specification, only dark is not valid, because forcing a document to render in dark mode when it isn't truly compatible with it can result in unreadable content; all major browsers default to light mode if not otherwise configured.
HTML elements reference - HTML: Hypertext Markup Language
WebHTMLElement
<b> the html bring attention to element (<b>) is used to draw the reader's attention to the element's contents, which are not otherwise granted special importance.
... <wbr> the html <wbr> element represents a word break opportunity—a position within text where the browser may optionally break a line, though its line-breaking rules would not otherwise create a break at that location.
Proxy Auto-Configuration (PAC) file - HTTP
otherwise, they are assumed to be in the local timezone.
...otherwise, the local timezone is used.
Control flow and error handling - JavaScript
otherwise, statement_2 is executed.
...otherwise, it displays an alert and returns false.
Details of the object model - JavaScript
otherwise, the operator returns the value of the second argument.
...otherwise, it sets this.name to the empty string.
Classes - JavaScript
you first need to declare your class and then access it, otherwise code like the following will throw a referenceerror: const p = new rectangle(); // referenceerror class rectangle {} class expressions a class expression is another way to define a class.
... strict mode the body of a class is executed in strict mode, i.e., code written here is subject to stricter syntax for increased performance, some otherwise silent errors will be thrown, and certain keywords are reserved for future versions of ecmascript.
Array.prototype.filter() - JavaScript
return true to keep the element, false otherwise.
...otherwise, the value undefined will be used as its this value.
Array.prototype.find() - JavaScript
otherwise, undefined is returned.
...otherwise, find returns undefined.
Array.prototype.findIndex() - JavaScript
otherwise, it returns -1, indicating that no element passed the test.
...otherwise, -1.
Array.isArray() - JavaScript
return value true if the value is an array; otherwise, false.
... description if the value is an array, true is returned; otherwise, false is.
JSON.parse() - JavaScript
otherwise, the property is redefined to be the return value.
... if the reviver only transforms some values and not others, be certain to return all untransformed values as-is, otherwise, they will be deleted from the resulting object.
Promise.prototype.catch() - JavaScript
the promise returned by catch() is rejected if onrejected throws an error or returns a promise which is itself rejected; otherwise, it is resolved.
...this is considered good practice in contrast to throwing strings; otherwise, the part doing the catching would have to perform checks to see if the argument was a string or an error, and you might lose valuable information like stack traces.
RegExp.prototype.dotAll - JavaScript
property attributes of regexp.prototype.dotall writable no enumerable no configurable yes description the value of dotall is a boolean and true if the "s" flag was used; otherwise, false.
... the "s" flag indicates that the dot special character (".") should additionally match the following line terminator ("newline") characters in a string, which it would not match otherwise: u+000a line feed (lf) ("\n") u+000d carriage return (cr) ("\r") u+2028 line separator u+2029 paragraph separator this effectively means the dot will match any character on the unicode basic multilingual plane (bmp).
Symbol.for() - JavaScript
otherwise a new symbol gets created in the global symbol registry with this key.
... return value an existing symbol with the given key if found; otherwise, a new symbol is created and returned.
TypedArray.prototype.filter() - JavaScript
return true to keep the element, false otherwise.
... otherwise, the value undefined will be passed for use as its this value.
eval() - JavaScript
function call overhead is minimal, making the far smaller code size well worth the benefit function() more easily allows your code to utilize the performance buttering "use strict"; the code does not use eval(), making it orders of magnitude faster than otherwise.
...this string consists of javascript statements that assigns z a value of 42 if x is five, and assigns 0 to z otherwise.
isFinite() - JavaScript
return value false if the argument is positive or negative infinity or nan or undefined; otherwise, true.
...if the argument is nan, positive infinity, or negative infinity, this method returns false; otherwise, it returns true.
Logical NOT (!) - JavaScript
when used with non-boolean values, it returns false if its single operand can be converted to true; otherwise, returns true.
... syntax !expr description returns false if its single operand can be converted to true; otherwise, returns true.
for...in - JavaScript
array indexes are just enumerable properties with integer names and are otherwise identical to general object properties.
... it may be most practically used for debugging purposes, being an easy way to check the properties of an object (by outputting to the console or otherwise).
var - JavaScript
fails silently otherwise.
...fails silently otherwise.
Autoplay guide for media and Web Audio APIs - Web media technologies
otherwise, the playback will likely be blocked.
...the default value, true, means that even when otherwise available, autoplay won't take place until after a tab is brought to the foreground.
Web audio codec guide - Web media technologies
otherwise, flac is likely a better choice, if you must use a lossless codec.
... mp3 (mpeg-1 audio layer iii) of the audio formats specified by the mpeg/mpeg-2 standards, mpeg-1 audio layer iii—otherwise known as mp3—is by far the most widely used and best-known.
Media container formats (file types) - Web media technologies
9, opera 24, safari 3.1 ogg ogg chrome 3, firefox 3.5, edge 173 (desktop only), internet explorer 9, opera 10.50 quicktime (mov) apple quicktime movie only older versions of safari, plus other browsers that supported apple's quicktime plugin webm web media chrome 6, edge 173 (desktop only), firefox 4, opera 10.6, safari (webrtc only) [1] unless otherwise specified, both mobile and desktop browser compatibility is implied if a browser is listed here.
...otherwise, mpeg-1 and mpeg-2 are not widely used in web content.
Image file type and format guide - Web media technologies
otherwise, jpeg is the safe choice for compatibility.
...otherwise, you should use a lossless format like png.
Critical rendering path - Web Performance
unless otherwise defined, the body has a width of 100%, meaning it will be 100% of the width of the viewport.
...layout happens every time a device is rotated or browser is otherwise resized.
dominant-baseline - SVG: Scalable Vector Graphics
otherwise, if the writing-mode is vertical, then the value of the dominant-baseline component is central.
... if the computed baseline-shift value actually shifts the baseline, then the baseline-table font-size component is set to the value of the font-size attribute on the element on which the dominant-baseline attribute occurs, otherwise the baseline-table font-size remains the same as that of the element.
SVG documentation index - SVG: Scalable Vector Graphics
WebSVGIndex
this allows representation of values that would otherwise be clamped to 0 or 1.
...it determines whether or not all of the named features are supported by the browser; if all of them are supported, the attribute evaluates to true end the element is rendered; otherwise, the attribute evaluates to false and the current element and its children are skipped and thus will not be rendered.
boolean - XPath
otherwise, it evaluates true.
...otherwise, it evaluates to true.
<xsl:choose> - XSLT: Extensible Stylesheet Language Transformations
WebXSLTElementchoose
syntax <xsl:choose> <xsl:when test="[whatever to test1]"></xsl:when> <xsl:when test="[whatever to test2]"></xsl:when> <xsl:otherwise></xsl:otherwise> [optional] </xsl:choose> required attributes none.
...it contains one or more <xsl:when> elements, and, optionally, a final <xsl:otherwise> element.
XSLT elements reference - XSLT: Extensible Stylesheet Language Transformations
WebXSLTElement
<xsl:apply-imports><xsl:apply-templates><xsl:attribute-set><xsl:attribute><xsl:call-template><xsl:choose><xsl:comment><xsl:copy-of><xsl:copy><xsl:decimal-format><xsl:element><xsl:fallback><xsl:for-each><xsl:if><xsl:import><xsl:include><xsl:key><xsl:message><xsl:namespace-alias><xsl:number><xsl:otherwise><xsl:output><xsl:param><xsl:preserve-space><xsl:processing-instruction><xsl:sort><xsl:strip-space><xsl:stylesheet><xsl:template><xsl:text><xsl:transform><xsl:value-of><xsl:variable><xsl:when><xsl:with-param> <xsl:apply-imports> <xsl:apply-templates> <xsl:attribute> <xsl:attribute-set> <xsl:call-template> <xsl:choose> <xsl:comment> <xsl:copy> <xsl:copy-of> <xsl:decimal-format> <xsl:el...
...ement> <xsl:fallback> (not supported) <xsl:for-each> <xsl:if> <xsl:import> (mostly supported) <xsl:include> <xsl:key> <xsl:message> <xsl:namespace-alias> (not supported) <xsl:number> (partially supported) <xsl:otherwise> <xsl:output> (partially supported) <xsl:param> <xsl:preserve-space> <xsl:processing-instruction> <xsl:sort> <xsl:strip-space> <xsl:stylesheet> (partially supported) <xsl:template> <xsl:text> (partially supported) <xsl:transform> <xsl:value-of> (partially supported) <xsl:variable> <xsl:when> <xsl:with-param> ...
Compiling a New C/C++ Module to WebAssembly - WebAssembly
due to c versus c++ name mangling rules, this would otherwise break, but here we are setting it so that it treats it as an external c function if you are using c++.
...(note that we need to compile with no_exit_runtime, which is necessary as otherwise when main() exits the runtime would be shut down — necessary for proper c emulation, e.g., atexits are called — and it wouldn't be valid to call compiled code.) emcc -o hello3.html hello3.c -o3 -s wasm=1 --shell-file html_template/shell_minimal.html -s no_exit_runtime=1 -s "extra_exported_runtime_methods=['ccall']" if you load the example in your browser again, you'll see the same t...
Classes and Inheritance - Archive of obsolete content
otherwise, it repeats the comparison for the prototype of the right hand side, and so on, until either it returns true, or the prototype becomes null, in which case it returns false.
Modules - Archive of obsolete content
otherwise, the compartment will have content privileges by default.
passwords - Archive of obsolete content
otherwise, it is omitted.
ui - Archive of obsolete content
it's otherwise identical to the action button.
High-Level APIs - Archive of obsolete content
unless the documentation explicitly says otherwise, all these modules are "stable": we'll avoid making incompatible changes to them.
/loader - Archive of obsolete content
if options.source is provided then its value is evaluated, otherwise source is read from the supplied uri.
stylesheet/utils - Archive of obsolete content
returns boolean : true if the type given is valid, otherwise false.
system/runtime - Archive of obsolete content
globals properties insafemode this value is true if firefox was started in safe mode, otherwise false.
tabs/utils - Archive of obsolete content
returns boolean : true if the tab is open, otherwise false.
ui/button/action - Archive of obsolete content
otherwise, it functions as a getter and returns the button's state for the specified object.
ui/button/toggle - Archive of obsolete content
otherwise, it functions as a getter and returns the button's state for the specified object.
util/collection - Archive of obsolete content
otherwise a new empty array will be used, and no one but the collection will have access to it.
util/match-pattern - Archive of obsolete content
returns boolean : true if the url matches the pattern and false otherwise.
util/uuid - Archive of obsolete content
otherwise a new nsid will be generated and returned.
cfx - Archive of obsolete content
if "default" is defined in the local.json cfx will use that configuration unless otherwise specified.
Dialogs and Prompts - Archive of obsolete content
the header to the right of the sections buttons is made with <dialogheader>: <dialogheader title="general" description="whatever"/> note, that you should only use this element in a <dialog>, because otherwise it may be not styled properly.
File I/O - Archive of obsolete content
in this case an nsichannel object has to be explicitly created from the file: components.utils.import("resource://gre/modules/netutil.jsm"); // content type hint is useful on mobile platforms where the filesystem // would otherwise try to determine the content type.
Miscellaneous - Archive of obsolete content
id: "@mozilla.org/certs-service;2", classid: components.id("{e9d2d37c-bf25-4e37-82a1-16b8fa089939}"), queryinterface: xpcomutils.generateqi([ci.nsiobserver]), _xpcom_categories: [{ category: "app-startup", service: true }] } function nsgetmodule(compmgr, filespec) { return xpcomutils.generatemodule([certsservice]); } you need to delete your existing profile, otherwise the xpcom service is not used.
StringView - Archive of obsolete content
it can be: another stringview a string a number an arraybuffer a typed array of uint8array, uint16array, or uint32array subclass any other kind of ordered object (like arrays, collections, etc.) if it is a number it will become the length of the new stringview; otherwise it will become its content.
Custom about: URLs - Archive of obsolete content
it is imported to queryinterface the components.manager otherwise this will not work.
Extension Packaging - Archive of obsolete content
otherwise, the extension manager may not function properly with the extension, or the extension itself may not work properly.
Install Manifests - Archive of obsolete content
required property reference your install manifest must specify these properties correctly otherwise your add-on may not install.
Appendix: What you should know about open-source software licenses - Archive of obsolete content
insert the license declaration in the top of every file in your source code; include the full text of the license in your source-code archive; place the source code on a website or otherwise make it accessible; tell all your friends.
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
if aoverwrite is true, the currently open tab is overwritten; otherwise, a new tab is created for the restored content.
Local Storage - Archive of obsolete content
otherwise you may run into problems if the same extension is installed in multiple profiles.
Observer Notifications - Archive of obsolete content
also, be careful not to add the same observer to a notification topic more than once, otherwise the same code in the observer will be run several times when a notification is sent.
The Essentials of an Extension - Archive of obsolete content
otherwise, the root menu might be your only recourse.
XPCOM Objects - Archive of obsolete content
hat methods and attributes must have the same names as their idl counterparts, and that the queryinterface method is implemented: queryinterface : function(aiid) { if (!aiid.equals(ci.xsihellocounter) && !aiid.equals(ci.nsisupports)) { throw cr.ns_error_no_interface; } return this; } the method is very simple, it validates that the caller is requesting a supported interface, otherwise it throws an exception.
Session store API - Archive of obsolete content
if you want to set permissions or otherwise manipulate a restored tab before the page is loaded into it, you should watch sstabrestoring.
Updating addons broken by private browsing changes - Archive of obsolete content
passing {private: true} will cause a private window to open, otherwise the window will always be non-private.
An Interview With Douglas Bowman of Wired News - Archive of obsolete content
a developer would tell me something wasn't possible, and i could prove otherwise every time.
Case Sensitivity in class and id Names - Archive of obsolete content
in the authoring of both css and javascript/dom (otherwise known as dhtml) routines, it is a near-certainty that class and id names will be used to identify elements.
Same-origin policy for file: URIs - Archive of obsolete content
for cross-window dom access, each file is treated as a separate origin, with one exception: if a file is loaded from another file that would otherwise be able to load it following this same-origin policy, they are considered to have the same origin.
Compiling The npruntime Sample Plugin in Visual Studio - Archive of obsolete content
otherwise you'll delete files later.
Creating a Microsummary - Archive of obsolete content
otherwise, if the url returns plain text content (or html content that can be converted to plain text), firefox uses the content as the microsummary for the page.
Drag and Drop JavaScript Wrapper - Archive of obsolete content
otherwise, the plain text version will be used instead.
Block and Line Layout Cheat Sheet - Archive of obsolete content
it is cleared, otherwise.
Document Loading - From Load Start to Finding a Handler - Archive of obsolete content
otherwise, dispatchcontent goes through a three-step process to try to find the correct listener.
JavaScript Client API - Archive of obsolete content
itemexists(guid) should simply return true if an item with the given guid exists in the store, false otherwise.
First run - Archive of obsolete content
otherwise, the value is assumed to be html, and it becomes the body of your first-run page.
First Run - Archive of obsolete content
otherwise, the value is assumed to be html, and it becomes the body of your first-run page.
Simple Storage - Archive of obsolete content
otherwise, don't// modify the menu at all.
Simple Storage - Archive of obsolete content
otherwise, don't // modify the menu at all.
Microsummary topics - Archive of obsolete content
otherwise, it is a user-initiated request.
How to Write and Land Nanojit Patches - Archive of obsolete content
otherwise, it might be possible that the broken patch gets pulled into tm/tr but the fix doesn't for quite some time, which will cause problems for others in the meantime.
New Security Model for Web Services - Archive of obsolete content
asking the user where the sandbox cannot otherwise determine whether the executing script should be permitted access to the resource, a dialog box may be raised to ask the user to grant special privileges.
Space Manager High Level Design - Archive of obsolete content
thus, changes to floats on other lines may cause impact to otherwise clean lines, and the space manager facilitates the detection of this.
Merging TraceMonkey Repo - Archive of obsolete content
otherwise, you can run hg parents filename to find the changesets which may have contributed to the conflict.
Actionscript Acceptance Tests - Archive of obsolete content
the underscore is necessary otherwise the buildbot system will delete the .abc before starting up a testrun (not an issue when running locally, but makes it easy to differentiate between binary-only abc files and generated abcs.
URIs and URLs - Archive of obsolete content
otherwise, the reference uri's scheme is inherited from the base uri's scheme component.
Using cross commit - Archive of obsolete content
otherwise cross-commit will end up waiting forever for you to type a cvs checkin message in an editor that it never shows you!
XML in Mozilla - Archive of obsolete content
we don't use that always, so if you want to avoid doing duplicate work you could start working on bugs that have future milestone, or otherwise have a milestone that is set way into the future.
compareTo - Archive of obsolete content
otherwise, it returns a positive number.
confirm - Archive of obsolete content
unless specified otherwise, this is the default.
writeString - Archive of obsolete content
returns true if successfully scheduled, otherwise, false.
valueExists - Archive of obsolete content
returns boolean value: true if the key exists and the user has read access to it, otherwise false.
searchbutton - Archive of obsolete content
otherwise, the command event is fired whenever the user modifies the value.
accesskey - Archive of obsolete content
otherwise, if the label has two or more characters which are same as its accesskey, the first of those characters in the label will be underlined.
allowevents - Archive of obsolete content
otherwise, events are passed to the element only.
datasources - Archive of obsolete content
otherwise, you cannot add one later.
ignorecase - Archive of obsolete content
otherwise, the default value is false, to indicate that the value should match with the same case.
lightweightthemes - Archive of obsolete content
« xul reference home lightweightthemes type: boolean true if the window supports lightweight themes, otherwise false.
multiple - Archive of obsolete content
otherwise, the entire value string is compared.
panel.type - Archive of obsolete content
otherwise leave this attribute out.
sizetopopup - Archive of obsolete content
otherwise, the menu will size itself to at least the size of the popup.
treecol.type - Archive of obsolete content
this style must come before treechildren::-moz-tree-checkbox(checked) otherwise it won't take effect.
var - Archive of obsolete content
ArchiveMozillaXULAttributevar
« xul reference home var type: string for the xul assign attribute, this is the variable to assign the value to; otherwise it's a reference to a template variable such as "?name".
wait-cursor - Archive of obsolete content
in order to revert to the normal cursor state call the method removeattribute("wait-cursor") when the process effectively has ended otherwise the wait cursor might never disappear.
Working With Directories - Archive of obsolete content
this method returns true if a file object returned by nsiscriptableio.getfile() refers to a directory, and false otherwise.
Getting File Information - Archive of obsolete content
otherwise, an attempt to write to the file will generate an error.
International characters in XUL JavaScript - Archive of obsolete content
otherwise, the character encoding will be the same as the one used by the xul file (which can be specified using an encoding attribute in the <?xml?> tag).
insertItem - Archive of obsolete content
otherwise, if the beforepermanent argument is false, the new item is added to the end of the toolbar.
stopEditing - Archive of obsolete content
otherwise the cell label is reverted to the value it had prior to editing.
Extensions - Archive of obsolete content
(note: was removed from thunderbird 3 - see bug 463003 for a replacement) iscontentselected true if anything, text or otherwise, is selected.
MenuItems - Archive of obsolete content
<menuitem label="show toolbar" accesskey="t" type="checkbox" oncommand="changetoolbarstate();"/> in this example, we show the toolbar when the menuitem is checked and hide the toolbar otherwise.
MenuModification - Archive of obsolete content
otherwise, a new submenu would be added every time the menu is opened, which is clearly not desirable.
OpenClose - Archive of obsolete content
if the open property is set to true, then the menu is open, otherwise the menu is closed.
clickSelectsAll - Archive of obsolete content
« xul reference clickselectsall type: boolean if set to true, the contents of the textbox are selected when focused; otherwise, the cursor is left unchanged.
contextMenu - Archive of obsolete content
note that the value of this property does not reflect the value of the context attribute, which is otherwise identical to the contextmenu attribute.
selstyle - Archive of obsolete content
otherwise, the entire row will be highlighted.
chromeclass-toolbar - Archive of obsolete content
otherwise, this option will be ignored for this toolbar and it will always be visible.
Additional Template Attributes - Archive of obsolete content
note also that a rule element is needed here, otherwise the builder will think the container and member attributes are conditions to check.
Filtering - Archive of obsolete content
if this is set, we add a filter, otherwise we remove it.
Adding Methods to XBL-defined Elements - Archive of obsolete content
note that the less-than symbol has to be escaped because otherwise it would look like the start of a tag.
Additional Install Features - Archive of obsolete content
otherwise, the number will be an error code which indicates the type of error that occured.
Grids - Archive of obsolete content
ArchiveMozillaXULTutorialGrids
the flex attribute has also been added to the grid element so that the entire grid is flexible, otherwise it would only grow in one direction.
Localization - Archive of obsolete content
otherwise, errors will occur as it won't be able to find the entities.
Manifest Files - Archive of obsolete content
otherwise, if an extension attempted to call the modified versions, it would likely not work properly, or worse, create a security hole.
Tabboxes - Archive of obsolete content
however, you should probably leave the tabs on top, otherwise they might not look very good under particular themes.
Tree Selection - Archive of obsolete content
otherwise, the user may select multiple rows, which will not necessarily be contiguous.
Tree View Details - Archive of obsolete content
otherwise, we just iterate backwards through the rows looking for one that is a container.
Trees - Archive of obsolete content
ArchiveMozillaXULTutorialTrees
otherwise strange things might happen.
XULBrowserWindow - Archive of obsolete content
return value true if chrome should be hidden while displaying the specified location; otherwise false.
XUL Event Propagation - Archive of obsolete content
note: the dom provides the addeventlistener method for creating event listeners on nodes that do not otherwise supply them.
assign - Archive of obsolete content
var type: string for the xul assign attribute, this is the variable to assign the value to; otherwise it's a reference to a template variable such as "?name".
key - Archive of obsolete content
ArchiveMozillaXULkey
for example: <!-- this element handles all key events --> <key/> <!-- these elements don't handle any key events --> <key key="" modifiers="control"/> <key keycode="" modifiers="control"/> modifying attributes in case you want to change one of the <key>'s attributes, such as the modifiers attribute, the keyset element has to be re-added to its parent node; otherwise the new attributes won't be applied.
menuitem - Archive of obsolete content
otherwise, events are passed to the element only.
menulist - Archive of obsolete content
otherwise, the menu will size itself to at least the size of the popup.
menuseparator - Archive of obsolete content
otherwise, events are passed to the element only.
prefpane - Archive of obsolete content
otherwise the dialog will show erratic behavior and not display correctly.
treecol - Archive of obsolete content
this style must come before treechildren::-moz-tree-checkbox(checked) otherwise it won't take effect.
window - Archive of obsolete content
lightweightthemes type: boolean true if the window supports lightweight themes, otherwise false.
toolkit.singletonWindowType - Archive of obsolete content
if such a window is found, it will be re-used, otherwise a new window will be opened.
Mozprocess - Archive of obsolete content
mozprocess aims to provide the ability to robustly terminate a process (by timeout or otherwise), along with any child processes, on windows, os x, and linux.
Archived Mozilla and build documentation - Archive of obsolete content
mozprocess aims to provide the ability to robustly terminate a process (by timeout or otherwise), along with any child processes, on windows, os x, and linux.
NPN_Enumerate - Archive of obsolete content
returns true if the names of the properties and methods were successfully retrieved, otherwise false.
NPN_Evaluate - Archive of obsolete content
returns true if the script was evaluated successfully, otherwise false.
NPN_GetProperty - Archive of obsolete content
returns true if the value was retrieved successfully, otherwise false.
NPN_HasMethod - Archive of obsolete content
returns true if the method exists on the specified object, otherwise false.
NPN_HasProperty - Archive of obsolete content
returns true if the property exists on the specified object, otherwise false.
NPN_IdentifierIsString - Archive of obsolete content
returns true if the identifier is a string identifier, or false otherwise.
NPN_Invoke - Archive of obsolete content
returns true if the method was successfully invoked, otherwise false.
NPN_InvokeDefault - Archive of obsolete content
returns true if the default method was successfully invoked, otherwise false.
NPN_ReloadPlugins - Archive of obsolete content
if true, all pages are reloaded once the plugins are reloaded; otherwise, they aren't.
NPN_RemoveProperty - Archive of obsolete content
returns true if the property was removed successfully, otherwise false.
NPN_SetProperty - Archive of obsolete content
returns true if the value was set successfully, otherwise false.
Atomic RSS - Archive of obsolete content
ArchiveRSSModuleAtom
otherwise, just comment it out getting started a guided tutorial that will help you get started with atomic rss.
Content - Archive of obsolete content
otherwise, just comment it out getting started a guided tutorial that will help you get started with the rss content module.
Introduction to Public-Key Cryptography - Archive of obsolete content
otherwise, the issuer's certificate is checked to make sure it contains the appropriate subordinate ca indication in the red hat certificate type extension, and chain verification returns to step 1 to start again, but with this new certificate.
Table Reflow Internals - Archive of obsolete content
a text run) user defined - currently only used for fixed positioned frames kinds of reflows incremental reflow (continued) reflower not allowed to change available size of reflowee reflow commands get coalesced to streamline processing style change a target changed stylistic if there is a target, otherwise every frame may need to respond parent of target usually turns it into an incremental reflow with a style changed command type table frames nstableouter frame ↙ ↘ nstable frame nstablecaption frame ↙ ↘ ↓ nstablecol groupframe nstablerow groupframe nsblockframe ↓ ↓ nstablecol frame nstablerow ...
Using the W3C DOM - Archive of obsolete content
css 1 and css 2.x specifications require that non-zero values must be specified with a length unit; otherwise, the css declaration will be ignored.
-moz-windows-compositor - Archive of obsolete content
otherwise it's 0.
::-ms-fill - Archive of obsolete content
(a progress bar is determinate if it has a value attribute set; otherwise it is indeterminate.
-moz-scrollbar-end-backward - Archive of obsolete content
otherwise it's 0.
-moz-scrollbar-end-forward - Archive of obsolete content
otherwise it's 0.
-moz-scrollbar-start-backward - Archive of obsolete content
otherwise it's 0.
-moz-scrollbar-start-forward - Archive of obsolete content
otherwise it's 0.
-moz-scrollbar-thumb-proportional - Archive of obsolete content
otherwise it's 0.
-moz-touch-enabled - Archive of obsolete content
otherwise it's 0.
-moz-windows-accent-color-in-titlebar - Archive of obsolete content
otherwise it's 0.
-moz-windows-classic - Archive of obsolete content
otherwise it's 0.
-moz-windows-default-theme - Archive of obsolete content
otherwise it's 0.
-moz-windows-glass - Archive of obsolete content
syntax <integer> if the user is using windows glass theme, this is 1; otherwise it's 0.
display-inside - Archive of obsolete content
otherwise, this value computes to block.
E4X for templating - Archive of obsolete content
number.positive_infinity; min = 1; } if (h.length === 1) { for (k in arr) { if (it < min) { ++it; continue; } if (it > max) { break; } ret+=h(arr[k], it, lev); // need to get it or lev via arguments[] since our length detection implies no explicit additional params; otherwise define with more than one param (see below) ++it; } } else { for (k in arr) { if (it < min) { ++it; continue; } if (it > max) { break; } ret+=h(k, arr[k], it, lev); ++it; } } return ret; } the following real case example iterat...
The global XML object - Archive of obsolete content
ignores whitespace between nodes and leading and trailing whitespace in text nodes, which would otherwise be interpreted as text nodes or as part of those text nodes, respectively.
Iterator - Archive of obsolete content
iterator instance returns [property_name, property_value] array for each iteration if keyonly is falsy, otherwise, if keyonly is truthy, it returns property_name for each iteration.
Enumerator.atEnd - Archive of obsolete content
otherwise, it returns false.
Error.stackTraceLimit - Archive of obsolete content
otherwise, touint32 is used to convert the value.
Microsoft JavaScript extensions - Archive of obsolete content
microsoft browsers (internet explorer, and in a few cases, microsoft edge) support a number of special microsoft extensions to the otherwise standard javascript apis.
Archived JavaScript Reference - Archive of obsolete content
to make the function a legacy generator, the function body should contain at least one yield expression.microsoft javascript extensionsmicrosoft browsers (internet explorer, and in a few cases, microsoft edge) support a number of special microsoft extensions to the otherwise standard javascript apis.new in javascriptthis chapter contains information about javascript's version history and implementation status for mozilla/spidermonkey-based javascript applications, such as firefox.number.tointeger()the number.tointeger() method used to evaluate the passed value and convert it to an integer, but its implementation has been removed.object.getnotifier()the object.getnoti...
Sharp variables in JavaScript - Archive of obsolete content
you can use this to create objects in a single line of code that would otherwise take multiple lines of code.
Reference - Archive of obsolete content
otherwise, i think we should just remove the "behavior in other versions" sections, and rename the "javascript 1.2" section headings to something like "differences with javascript 1.2," as well as include a link to the yet-to-be-written javascript 1.2 page documenting the various oddities and deviations made in that version, something which i think we should do anyway.
Writing JavaScript for XHTML - Archive of obsolete content
if (variable < 10 && variable >= 0) action(); ]]> </script> note that the cdata section is only necessary because of the < in the code; otherwise you could have ignored it.
XForms Select Element - Archive of obsolete content
loses focus), otherwise it is updated upon item selection check group the select is represented as group of checkboxes (xhtml/xul).
Common causes of memory leaks in extensions - Extensions
while bug 695480 should prevent most of these compartment leaks, add-ons still need to be aware of the practices that caused these leaks, as the fix causes many add-ons which would have otherwise caused a leak to instead throw errors when attempting to access nodes from documents which no longer exist.
Desktop gamepad controls - Game development
if it is, then the function returns true; false otherwise.
Desktop mouse and keyboard controls - Game development
how to play we've implemented the controls, and now we should inform the player about their options to control the game — they wouldn't know about them otherwise.
Visual-js game engine - Game development
3) please read the following terms and conditions before using this application: disclaimer of warranty 'visual js' is provided "as-is" and without warranty of any kind, express, implied or otherwise, including without limitation, any warranty of merchantability or fitness for a particular purpose.
ARIA - MDN Web Docs Glossary: Definitions of Web-related terms
for example, you could add the attribute role="alert" to a <p> tag to notify a sight-challenged user that the information is important and time-sensitive (which you might otherwise convey through text color).
Asynchronous - MDN Web Docs Glossary: Definitions of Web-related terms
additionally, messages may be sent without waiting for acknowledgement, with the understanding that if a problem occurs, the recipient will request corrections or otherwise handle the situation.
CSS pixel - MDN Web Docs Glossary: Definitions of Web-related terms
the css pixel—denoted in css with the suffix px—is a unit of length which roughly corresponds to the width or height of a single dot that can be comfortably seen by the human eye without strain, but is otherwise as small as possible.
Conditional - MDN Web Docs Glossary: Definitions of Web-related terms
otherwise, another instruction is executed.
Dynamic programming language - MDN Web Docs Glossary: Definitions of Web-related terms
a dynamic programming language is a programming language in which operations otherwise done at compile-time can be done at run-time.
Entity - MDN Web Docs Glossary: Definitions of Web-related terms
entities are frequently used to display reserved characters (which would otherwise be interpreted as html code), and invisible characters (like non-breaking spaces).
Fuzz testing - MDN Web Docs Glossary: Definitions of Web-related terms
fuzzing is a technique for testing software using automated tools to provide invalid or unexpected input to a program or function in a program, then checking the results to see if the program crashes or otherwise acts inappropriately.
Scroll container - MDN Web Docs Glossary: Definitions of Web-related terms
the scroll container allows the user to scroll through parts of the overflow region that would otherwise be clipped and hidden from view.
Syntax - MDN Web Docs Glossary: Definitions of Web-related terms
code must have correct syntax in order to compile correctly, otherwise a syntax error occurs.
XInclude - MDN Web Docs Glossary: Definitions of Web-related terms
); var a = []; for(var k = 0; k < xpathresult.snapshotlength; k++) { a[k] = xpathresult.snapshotitem(k); } responsenodes = a; } else { // otherwise, the response must be a single well-formed document response responsenodes = [response.documentelement]; // put in array so can be treated the same way as the above } // prepend any node(s) (as xml) then remove xinclude for (j=0; j < responsenodes.length ; j++) { ...
What is the difference between webpage, website, web server, and search engine? - Learn web development
otherwise, we only use the term document.
What is a URL? - Learn web development
otherwise it is mandatory.
The HTML5 input types - Learn web development
the browser will report an error if no protocol (such as http:) is entered, or if the url is otherwise malformed.
Styling web forms - Learn web development
take the following example: to position the legend in this manner, we used the following css (other declarations removed for brevity): fieldset { position: relative; } legend { position: absolute; bottom: 0; right: 0; } the <fieldset> needs to be positioned too, so that the <legend> is positioned relative to it (otherwise the <legend> would be positioned relative to the <body>.) the <legend> element is very important for accessibility — it will be spoken by assistive technologies as part of the label of each form element inside the fieldset — but using a technique like the one above is fine.
CSS basics - Learn web development
otherwise, the styling won't change the appearance of the html.
Installing basic software - Learn web development
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).
Tips for authoring fast-loading HTML pages - Learn web development
otherwise, the browser will not render anything that is after the script tags that do not have these attributes.
Creating hyperlinks - Learn web development
almost any web content can be converted to a link so that when clicked or otherwise activated the web browser goes to another web address (url).
Document and website structure - Learn web development
take care to use them only when there is no better semantic solution and try to reduce their usage to the minimum otherwise you'll have a hard time updating and maintaining your documents.
Structuring a page of content - Learn web development
hints and tips use the w3c nu html checker to catch unintended mistakes in your html, css, and svg — mistakes you might have otherwise missed — so that you can fix them.
From object to iframe — other embedding technologies - Learn web development
if someone else made it, assume it's dangerous until proven otherwise." besides security, you should also be aware of intellectual property issues.
Responsive images - Learn web development
in all cases, you must provide an <img> element, with src and alt, right before </picture>, otherwise no images will appear.
Video and audio content - Learn web development
timed descriptions text which should be spoken by the media player in order to describe important visuals to blind or otherwise visually impaired users.
Fetching data from the server - Learn web development
add this next: request.responsetype = 'text'; fetching a resource from the network is an asynchronous operation, meaning that you have to wait for that operation to complete (e.g., the resource is returned from the network) before you can do anything with that response, otherwise, an error will be thrown.
Manipulating documents - Learn web development
make sure you don't get these mixed up, otherwise it won't work.
Third-party APIs - Learn web development
}) to check whether each article has any images associated with it (some stories don't.) we display the first image only if it exists (otherwise an error would be thrown).
Handling text — strings in JavaScript - Learn web development
try the following (we are using the typeof operator to check whether the variable is a number or a string): let mydate = '19' + '67'; typeof mydate; if you have a numeric variable that you want to convert to a string but not change otherwise, or a string variable that you want to convert to a number but not change otherwise, you can use the following two constructs: the number object converts anything passed to it into a number, if it can.
Storing the information you need — Variables - Learn web development
when you give a variable a string value, you need to wrap it in single or double quote marks; otherwise, javascript tries to interpret it as another variable name.
JavaScript object basics - Learn web development
try these in the js console: person.name.first person.name.last important: at this point you'll also need to go through your method code and change any instances of name[0] name[1] to name.first name.last otherwise your methods will no longer work.
Object-oriented JavaScript for beginners - Learn web development
the basic idea of oop is that we use objects to model real world things that we want to represent inside our programs, and/or provide a simple way to access functionality that would otherwise be hard or impossible to make use of.
Object building practice - Learn web development
along the way we'll make use of some nifty objects, and show you a couple of nice techniques like bouncing balls off walls, and checking whether they have hit each other (otherwise known as collision detection).
Multimedia: video - Learn web development
otherwise, it wastes a lot of bandwidth.
Client-Server Overview - Learn web development
the information is otherwise similar to that for the response to a get request.
Introduction to the server side - Learn web development
client-side web frameworks simplify layout and presentation tasks while server-side web frameworks provide a lot of “common” web server functionality that you might otherwise have to implement yourself (e.g.
Website security - Learn web development
the process of modifying user data so that it can't be used to run scripts or otherwise affect the execution of server code is known as input sanitization.
Getting started with Ember - Learn web development
the templating language is used to make build and runtime optimizations that otherwise wouldn't be possible.
Ember app structure and componentization - Learn web development
testing is outside the scope of this tutorial, although generally testing should be implemented as you develop, rather than after, otherwise it tends to be forgotten about.
Advanced Svelte: Reactivity, lifecycle, accessibility - Learn web development
and that makes sense, because otherwise svelte would be aware of the inner workings of the foreach() method; the same would therefore be true for any method attached to any object or array.
Vue conditional rendering: editing existing todos - Learn web development
it's important to note that v-else and v-else-if blocks need to be the first sibling of a v-if/v-else-if block, otherwise vue will not recognize them.
Creating our first Vue component - Learn web development
note that you need to use the v-bind syntax, because otherwise true is passed as a string.
Getting started with Vue - Learn web development
if you like these settings over the existing presets and want to use them again, type y , otherwise type n.
Rendering a list of Vue components - Learn web development
you are no longer using uniqueid, so you need to remove the import uniqueid from 'lodash.uniqueid'; line, otherwise your app will throw an error.
Handling common accessibility problems - Learn web development
element relationships and context there are certain features and best practices in html designed to provide context and relationships between elements where none otherwise exists.
Setting up your own test automation environment - Learn web development
for example if you load a new page, you'll want to wait for the page's dom to finish loading before you try to interact with any of its elements, otherwise the test will likely fail.
Deploying our app - Learn web development
this remote location needs to be added to our local git repository before we can push it up there, otherwise it won't be able to find it.
Client-side tooling overview - Learn web development
this is one reason we wrote this series of articles, to hopefully provide that first step that is hard to find otherwise.
Package management basics - Learn web development
parcel expects an index.html and an index.js file to work with, but otherwise it is very unopinionated about how you structure your project.
Mozilla accessibility architecture
in that case we also override ::getaccnextsibling(), ::getaccprevioussibling() for the dom-less children; otherwise they do not know how to find each other.
Software accessibility: Where are we today?
otherwise, screen magnification programs may be used, which allow zooming in to portions of the screen, while following the mouse or the current focus.
A bird's-eye view of the Mozilla framework
otherwise it returns null.
Chrome registration
each line is parsed individually; if the line is parsable the chrome registry takes the action identified by that line, otherwise the chrome registry ignores that line (and prints a warning message in the runtime error console).
Simple SeaMonkey build
# on windows, be sure to use mozmake instead of make, otherwise parallel building will break.
mach
another possible reason: mach gives you an error, while running, say bootstrap.py directly (that is to type in a bash shell: python2 ./bootstrap.py enter-key ) in an otherwise empty ..../subdir/ may work for you!
Multiple Firefox profiles
otherwise, enter a space character followed by --profilemanager.
Cross Process Object Wrappers
this makes the cpow call much safer than it would otherwise be.
Frame script loading and lifetime
for example, from bootstrap.js: services.mm.addmessagelistener( 'my-addon-id', { receivemessage: function() { console.log('incoming message from frame script:', amsg.data); } }, true // must set this argument to true, otherwise sending message from framescript will not work during and after the unload event on the contentmessagemanager triggers ); then in your frame script, listen for the unload event of the message manager (which is the global this), and sending a message.
Performance best practices for Firefox front-end engineers
otherwise, we're doing a cheap look-up of cached information.
Using the Browser API
MozillaGeckoChromeAPIBrowser APIUsing
we do this with the following function, which runs the htmliframeelement.stop() method to stop the page loading if the button is displaying a cross, and the htmliframeelement.reload() method to reload the page otherwise.
CSS -moz-bool-pref() @supports function
syntax -moz-bool-pref( <string> ) parameters <string> the preference name returns evaluates to true if the preference is enabled, false otherwise.
Roll your own browser: An embedding how-to
ns_initembedding() must be called from the main thread of your application, otherwise it won't work.
Gecko Keypress Event
otherwise, gecko can replace the charcode with an ascii character.
HTML parser threading
otherwise it has failed.
Geckoview-Junit Tests
before running tests, install the androidtest apk on your device; otherwise, 'mach geckoview-junit' will offer to install it.
How to get a stacktrace with WinDbg
.logopen /t c:\temp\firefox-debug.log .childdbg 1 .tlist sxn gp lm if you see firefox.exe listed in the output from .tlist more than once, then you are already running the application and need to close the running instance first before you start debugging, otherwise you won't get useful results.
IPDL Tutorial
message implementations should return false from a message implementation if the data is corrupted or otherwise malformed.
Implementing Download Resuming
otherwise, call resumeat with the desired start position, and the previously stored entity id.
Addon
if possible the uninstall will happen immediately, otherwise it will wait until the next application restart.
Add-on Repository
issearching boolean true if a search is currently in progress; otherwise false.
AsyncShutdown.jsm
return value returns true if a blocker has been removed, or false otherwise.
DeferredTask.jsm
bool ispending(); return value returns true if pending, false otherwise.
Dict.jsm
return value true if the specified key is in the dictionary, otherwise false.
Interfacing with the Add-on Repository
otherwise, the addoninstall object's install() method is called to install the add-on.
JavaScript OS.Constants
debug set to true on debug build configurations, non-existent otherwise.
PerfMeasurement.jsm
otherwise, it returns false.
Examples
always wrap that function in a try catch and make that catch return promise.reject(ex) otherwise it will not trigger the rejection function of the promise.then.
Promise
for example, the os.file.exists function returns a promise that will eventually fulfill with a boolean: promise<boolean> exists(string path); the rejection reason may be specified separately in the function's documentation, and is considered to be an error object unless otherwise specified.
PromiseWorker.jsm
in summary, from a worker file, data can only be sent back as a response to a request from the main thread, it is not possible for a worker to send data to the main thread otherwise, this is a key difference between promiseworker worker file and all other types of workers.
XPCOMUtils.jsm
otherwise, null is returned.
Localizing with Koala
for example: c:\users\stas> cd c:\mozilla\l10n\locale\x-testing c:\mozilla\l10n\locale\x-testing> rmdir 3.6 c:\mozilla\l10n\locale\x-testing> hg clone http://bitbucket.org/mozillal10n/x-testing 3.6 otherwise, it's a good idea to create your local repository in order to be able to track changes you make to the localization files.
QA phase
if you're using koala, this should be located at /path/to/your/koala.project/locale/3.6/x-testing, otherwise, it should be located at /path/to/your/working_dir/l10n_base/x-testing.
Release phase
otherwise, in order to be able to make any changes to the localization files, you will need to clone the repository on your local machine and work in the local clone.
Creating localizable web applications
otherwise, php will treat $s as a regular variable, instead of parsing the whole %1$s formatting symbol.
Basics
f ( 4 ) ( η ) , a ≤ η ≤ b | x | = { - x if x < 0 x otherwise you can also typeset 2d mathematical constructs such as matrices.
MathML Demo: <mtable> - tables and matrices
this would be pretty hard to obtain otherwise.
Using the viewport meta tag to control layout on mobile browsers
otherwise, the relationship between css pixels and device pixels depends on the current zoom level.
Mozilla Port Blocking
"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.
Mozilla Web Developer FAQ
otherwise, finding out the intentions of each particular author would require psychic abilities which can’t be implemented in software.
Mozilla Web Services Security Model
the from attribute otherwise gives a url to match, which may contain up to two asterisks (*) that match any characters in the url.
Mozilla Quirks Mode Behavior
maybe (firefox 3) when computing the minimum intrinsic width of an inline flow directly in a table cell (no blocks in between), it is assumed that it is not possible to break before and after an image (when otherwise it would be).
Intel Power Gadget
the api is otherwise unlikely to be of interest to mozilla developers.
Refcount tracing and balancing
this can help remove some of the clutter from an otherwise noisy tree.
tools/power/rapl
otherwise, it will fail with an error message explaining this requirement.
Productization guide
the second purpose (demonstrate certain features of the product) is equally important: by providing these default services, we demonstrate particular features of the product, the ones which otherwise wouldn’t be as discoverable.
NSPR Poll Method
otherwise ((new_flags & out_flags) is 0), you should do the following.
PRBool
otherwise, use prbool for variables and parameter types.
PRFileDesc
otherwise, you use functions such as pr_open and pr_newtcpsocket to obtain a file descriptor, which you should treat as an opaque structure.
PR_ASSERT
when the result is zero (false) the application terminates; otherwise the application continues.
PR_CLIST_IS_EMPTY
description pr_clist_is_empty returns a non-zero value if the specified list is an empty list, otherwise returns zero.
PR_GetErrorTextLength
otherwise, the value returned is sufficient to contain the error text currently available.
PR_GetSpecialFD
otherwise, pr_getspecialfd returns null and sets the error to pr_invalid_argument_error.
PR_Interrupt
otherwise, pr_failure.
PR_LOG_TEST
possible values are: pr_log_none = 0 pr_log_always = 1 pr_log_error = 2 pr_log_warning = 3 pr_log_debug = 4 pr_log_notice = pr_log_debug pr_log_warn = pr_log_warning pr_log_min = pr_log_debug pr_log_max = pr_log_debug returns pr_true when logging is enabled for the given module and level, otherwise pr_false.
PR_STATIC_ASSERT
when the result is zero (false) program compilation will fail with a compiler error; otherwise compilation completes successfully.
PR_SetErrorText
otherwise the text is assumed to be the length specified and to possibly include null characters (as might occur in a multilingual string).
PR_SetLogFile
otherwise, pr_false.
PR_StringToNetAddr
otherwise, use of anything other than ipv4 dotted notation results in an error.
NSS Code Coverage
if file was tested, link points to annotated source file (in tcov directory), otherwise to original source file (cvs directory).
NSS 3.34 release notes
prbool resumed is pr_true when the session is resumed, and pr_false otherwise.
NSS API Guidelines
this means if an arena is specified (non-null), it is used, otherwise (null) the routine uses the heap.
nss tech note3
otherwise it is not (except that trust flags may override this, see discussion of trust flags farther below).
NSS PKCS11 Functions
otherwise, pr_false.
Build instructions
otherwise, you get a debug build.
FC_GetSessionInfo
otherwise, it fills in the ck_session_info structure with the following information: state: the state of the session, i.e., no role is assumed, the user role is assumed, or the crypto officer role is assumed flags: bit flags that define the type of session ckf_rw_session (0x00000002): true if the session is read/write; false if the session is read-only.
FC_GetSlotList
syntax ck_rv fc_getslotlist( ck_bbool tokenpresent, ck_slot_id_ptr pslotlist, ck_ulong_ptr pulcount ); parameters tokenpresent [in] if true only slots with a token present are included in the list, otherwise all slots are included.
NSS tools : certutil
unless specified otherwise the default token is an internal slot.
pkfnc.html
otherwise, pr_false.
NSS Tools certutil
unless specified otherwise the default token is an internal slot (specifically, internal slot 2).
certutil
unless specified otherwise the default token is an internal slot (specifically, internal slot 2).
Proxies in Necko
otherwise, the proxy info is discarded.
Rhino Debugger
otherwise control will return to the debugger at the next line in the current function.
Small Footprint
removing org.mozilla.javascript.javaadapter will disable this functionality, but rhino will otherwise run correctly.
Rhino license
the copyright owner or * contributors be liable for any direct, indirect, incidental, special, * exemplary, or consequential damages (including, but not limited to, * procurement of substitute goods or services; loss of use, data, or * profits; or business interruption) however caused and on any theory of * liability, whether in contract, strict liability, or tort (including * negligence or otherwise) arising in any way out of the use of this * software, even if advised of the possibility of such damage.
Rhino shell
otherwise it is converted to string denoting the last argument and options objects assumed to be empty.
GC Rooting Guide
use js::rooted<t> fields when possible for aggregates, otherwise use an autorooter.
Functions
otherwise the gvar instructions are as slow as name instructions.
Statistics API
when logging to a file is used in combination with multi-process firefox (e10s) it is necessary to set security.sandbox.content.level = 0, otherwise the content process will crash.
SpiderMonkey Internals: Thread Safety
and obviously you shouldn't block or otherwise dilly-dally while in a request; it prohibits gc.
Self-hosted builtins in SpiderMonkey
this restriction was added because otherwise it's extremely easy to accidentally call methods that have been changed by content, changing the behavior from what was expected.
SpiderMonkey Internals
(otherwise, spidermonkey converts primitive values to objects before invoking their methods, per ecma 262-3 §11.2.1.) error handling spidermonkey has two interdependent error-handling systems: javascript exceptions (which are not implemented with, or even compatible with, any kind of native c/c++ exception handling) and error reporting.
JSAPI Cookbook
* otherwise, convert the number to floating point (see the next example).
INT_FITS_IN_JSVAL
otherwise, int_fits_in_jsval returns false.
JS::Add*Root
otherwise they report an out of memory error and return false.
JS::CallArgs
js::value computethis(jscontext *cx) const returns the this value if this is an object, otherwise calls js_computethis and returns it.
JS::Compile
otherwise, it returns false and the value left in script is undefined.
JS::CompileFunction
otherwise, it returns false and the value left in fun is undefined.
JS::CreateError
if successful, js::createerror stores the created error object to *rval and returns true, otherwise returns false and the value of *rval is undefined.
JS::Evaluate
otherwise it returns false and the value left in *rval is undefined.
JS::GetFirstArgumentAsTypeHint
otherwise, return false with a typeerror pending.
JS::GetSelfHostedFunction
otherwise, it reports an out-of-memory error and returns null.
JS::ToString
otherwise, it converts the value to string.
JSAutoByteString
you should call this before calling encode* methods or initbytes method if a string is already owned, otherwise the string will never be freed.
JSDeletePropertyOp
otherwise the callback must return true, and the property operation proceeds.
JSErrorReport
jsreport_strict_mode_error this condition is an error in strict mode code, a warning if js_has_strict_option(cx), and otherwise should not be reported at all.
JSExtendedClass
(this is a feature of the c and c++ languages.) otherwise, use memset.
JSHasInstanceOp
return false on error or exception, true on success with true in *bp if v is an instance of obj, false in *bp otherwise.
JSNative
otherwise it should either report an error (using e.g.
JSObjectOps.dropProperty
it may not otherwise call into the jsapi in ways that might trigger other property accesses.
JSObjectOps.enumerate
otherwise, it invokes the jsclass.enumerate hook as an old-style jsenumerateop to give the object an opportunity to define any remaining lazy properties.
JSObjectOps.setProto
description these hooks must check for cycles without deadlocking, and otherwise take special steps.
JSPrincipalsTranscoder
otherwise xdr->mode == jsxdr_encode, and *principalsp points to the jsprincipals object to be serialized.
JSPropertyOp
otherwise the callback must return true, and the property operation proceeds.
JSVAL_IS_PRIMITIVE
otherwise it is false, and v is an object.
JSVAL_LOCK
otherwise, it evaluates to false.
JSVAL_TO_BOOLEAN
otherwise the behavior is undefined.
JSVAL_TO_GCTHING
otherwise the resulting pointer is undefined.
JSVAL_UNLOCK
otherwise, it evaluates to false.
JS_AddArgumentFormatter
otherwise it returns js_false.
JS_Add*Root
otherwise they report an out of memory error and return js_false.
JS_BufferIsCompilableUnit
otherwise return true.
JS_CallFunction
otherwise it returns false, and rval is undefined.
JS_ClearRegExpStatics
on successful, js_clearregexpstatics returns true, otherwise returns false.
JS_CompileScript
otherwise, they report an error, stores null to *script, and return false.
JS_CompileUTF8File
otherwise it returns null.
JS_ContextIterator
otherwise *iterp must point to an existing context in rt, and js_contextiterator modifies it to point to the next context in the list, if any, and null otherwise.
JS_ConvertArgumentsVA
otherwise it returns false.
JS_DecompileFunction
otherwise, it returns null.
JS_DecompileFunctionBody
otherwise, it returns null.
JS_DefineConstDoubles
otherwise it returns false.
JS_DefineElement
otherwise it returns false.
JS_DefineProperties
otherwise it returns false.
JS_DeleteElement
otherwise it returns false.
JS_EncodeString
otherwise the high byte is simply dropped from each char16_t.
JS_EnterCrossCompartmentCall
otherwise it returns null.
JS_ErrorFromException
otherwise, it returns nullptr.
JS_EvaluateScript
otherwise it returns js_false and the value left in *rval is undefined.
JS_EvaluateScriptForPrincipals
otherwise it returns js_false, and the value left in *rval is undefined.
JS_ExecuteScriptPart
otherwise it returns js_false, and the value left in *rval is undefined.
JS_FileEscapedString
if successful, js_fileescapedstring returns true, otherwise false.
JS_GetClassObject
if successful, js_getclassobject stores the class constructor to *objp and returns true, otherwise returns false and the value of *objp is undefined.
JS_GetClassPrototype
if successful, js_getclassprototype stores the class prototype object to *objp and returns true, otherwise returns false and the value of *objp is undefined.
JS_GetConstructor
otherwise, it reports an error and returns null.
JS_GetElement
on success, *vp receives the current value of the element, if it exists, and undefined otherwise.
JS_GetFunctionArity
otherwise fun is implemented in javascript, and the result is the number of identifiers in its formal parameter list (see ecma 262-3 §13).
JS_GetInstancePrivate
otherwise it returns null.
JS_GetLatin1InternedStringChars
if successful, js_getlatin1stringcharsandlength and js_gettwobytestringcharsandlength return a pointer to the string, otherwise return null.
JS_GetLatin1StringCharsAndLength
if successful, js_getlatin1stringcharsandlength and js_gettwobytestringcharsandlength return a pointer to the string, and store the length to *length, otherwise return null.
JS_GetPendingException
otherwise, it returns false, and the value left in *vp is undefined.
JS_GetPrototype
otherwise, it stores a pointer to the prototype or null to *protop and returns true.
JS_GetRegExpFlags
if successful, js_getregexpflags returns the flags, otherwise returns false.
JS_GetRegExpSource
if successful, js_getregexpsource returns a pointer to the source string, otherwise returns null.
JS_GetStringBytes
otherwise the high byte is simply dropped from each jschar.
JS_GetStringCharAt
on successful, js_getstringcharat returns true and stores the character code into *res, otherwise returns false.
JS_GetStringCharsAndLength
description js_getstringcharsandlength gets the characters and the length of the string, str if successful, js_getstringcharsandlength returns a pointer to the string, and store the length to *length, otherwise returns null see also bug 1037869 ...
JS_HasElement
on success, it stores true to *foundp, false otherwise.
JS_HasInstance
otherwise js_hasinstance returns false.
JS_IdToProtoKey
otherwise it returns jsproto_null.
JS_IdToValue
otherwise it returns false.
JS_IsArrayObject
otherwise returns false on failure.
JS_IsConstructing
otherwise it returns js_false.
JS_IsConstructor
otherwise it returns false.
JS_IsExceptionPending
otherwise, it returns false this can be used from jsnative functions which call js code to determine if the called js code threw an exception or not.
JS_IsExternalString
description js_isexternalstring returns true if the string is an external string; otherwise it's false.
JS_IsGlobalObject
description js_isglobalobject returns true if obj is a global object, false otherwise.
JS_IsIdentifier
on successful, js_isidentifier stores the test result to *isidentifier and returns true, otherwise returns false and the value of *isidentifier is undefined.
JS_IsNativeFunction
otherwise it returns false.
JS_IsRunning
otherwise it returns false.
JS_IsStopIteration
description js_isstopiteration returns true if v is stopiteration, otherwise false.
JS_LeaveLocalRootScopeWithResult
otherwise, the value is stored in an internal per-jscontext slot.
JS_LookupProperty
otherwise, flags must be the logical or of one or more of the following bits: jsresolve_qualified behave as though the property name appeared to the right of a dot, as in alert(obj.name).
JS_LooselyEqual
if the comparison attempt was successful, the method returns js_true and stores the result in *equal; otherwise it returns js_false.
JS_NewArrayObject
otherwise it reports an error as though by calling js_reportoutofmemory and returns null.
JS_NewCompartmentAndGlobalObject
otherwise it returns null.
JS_NewContext
otherwise it returns null.
JS_NewDependentString
otherwise it returns null.
JS_NewDouble
otherwise it returns null.
JS_NewDoubleValue
otherwise it returns js_false and the value left in *rval is unspecified.
JS_NewObjectForConstructor
the prototype is the prototype of the constructor if it is an object, otherwise null.
JS_NewPlainObject
otherwise it returns nullptr.
JS_NewRuntime
otherwise it returns null.
JS_NewScriptObject
otherwise it returns null.
JS_NewStringCopyN
otherwise they return null.
JS_NumberValue
otherwise, a new floating-point js::value is created.
JS_ObjectIsFunction
js_objectisfunction returns true if obj is a function and false otherwise.
JS_ObjectIsRegExp
otherwise it returns false.
JS_RemoveExternalStringFinalizer
otherwise, string data will be leaked by the gc, for want of a finalizer to call.
JS_ResolveStandardClass
false otherwise.
JS_ScheduleGC
otherwise, no additional gcs take place.
JS_SetArrayLength
otherwise it returns false.
JS_SetInterruptCallback
otherwise the engine may call the interrupt callback again, reentering it.
JS_SetOperationCallback
otherwise the engine may call the operation callback again, reentering it.
JS_SetParent
otherwise, it reports an error or sets an exception and returns js_false.
JS_SetPropertyAttributes
otherwise, it sets foundp to js_true, and attempts to set the attributes as specified.
JS_SetPrototype
otherwise it returns false.
JS_SetRegExpInput
on successful, js_setregexpinput returns true, otherwise returns false.
JS_StrictlyEqual
if the comparison attempt was successful, the method returns true and stores the result in *equal; otherwise it returns false.
JS_StringEqualsAscii
on successful, js_stringequalsascii stores the comparison result into *match and returns true, otherwise returns false.
JS_THREADSAFE
when one thread calls js_gc or otherwise finds that garbage collection is necessary, it must wait for all other threads that are in requests to pause before garbage collection can occur.
JS_ValueToFunction
otherwise, v is an object.
JS_ValueToInt32
otherwise, the floating-point number is rounded to the nearest integer value.
JSAPI reference
otherwise the garbage collector will not find all reachable objects and may collect objects that are still reachable, leading to a crash.
Parser API
if the parser produced no information about the node's source location, the field is null; otherwise it is an object consisting of a start position (the position of the first character of the parsed source region) and an end position (the position of the first character after the parsed source region): interface sourcelocation { source: string | null; start: position; end: position; } each position object consists of a line number (1-indexed) and a column number (0-indexed): inte...
Setting up CDT to work on SpiderMonkey
under "behavior", make sure that "enable parallel build" is deactivated, as cdt’s indexer will freak out otherwise.
Thread Sanitizer
m_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.
Using RAII classes in Mozilla
however, there are some variations for special cases: first, if the constructor (otherwise) takes no arguments, then you have to use the moz_guard_object_notifier_only_param macro instead.
Secure Development Guidelines
elated registers (esp, ebp) mark top and bottom of current stack frame status register (eflags) contains various state information instruction pointer (eip) points to register being executed; can’t be modified directly introduction: gaining control (2) eip is modified using call or jump instructions attacks usually rely on obtaining control over the eip otherwise the attacker can try to control memory pointed to by an existing function pointer a vulnerability is required to modify the eip or sensitive memory saved return addr or function pointer get altered introduction: gaining control (3) common issues used to gain control buffer overflows format string bugs integer overflows/underflows writing secure code: input validation in...
Setting up an update server
these are the files that must be changed: toolkit/components/maintenanceservice/moz.build toolkit/mozapps/update/tests/moz.build firefox should otherwise be built normally.
Signing Mozilla apps for Mac OS X
note that you cannot specify an identifier requirement if you do this, or otherwise you need to sign the outer application again with the identifier requirement.
Animated PNG graphics
MozillaTechAPNG
otherwise, the default image is not part of the animation.
XUL Accessibility
aggregating the text from element subtree if the child node is hidden then it's ignored excepting the case when the element used as label is hidden itself if the child node is text node then its rendered value is appended if the child node is element then if it implements nsidomxullabeledcontrolelement then the value of label property is appended otherwise if it's a label element then then value attribute is appended otherwise append tooltiptext attribute append the accessible value searching specific element in neighbour of the element search inside the element subtree go up through parents (max level is 5) and search inside theirs subtrees if the element is anonymous then search in whole anonymous subtree, here the attribute anonid is used...
Places Expiration
common expiration runs on a timer, every 3 minutes and uses a simple adaptive algorithm: if the last step was unable to expire enough entries the next one will expire more entries, otherwise if the previous step completed the cleanup the next step will be delayed.
Retrieving part of the bookmarks tree
otherwise, it will continue to get observer notifications and update itself, slowing down the whole browser.
Using the Places favicon service
otherwise, nsifaviconservice.setandloadfaviconforpage() will use the default expiration time.
Using the Places history service
otherwise, the link is colored as unvisited.
extISessionStorage
boolean has(in astring aname) parameters aname the name of an item return value true if an item exists with the given name, false otherwise.
XPCOM array guide
MozillaTechXPCOMGuideArrays
otherwise use nsiarray and make liberal use of queryelementat().
Creating the Component Code
component registration all xpcom components - whether they're stored in shared libraries (dlls, dsos, dylibs), javascript files, or otherwise - need to be registered before they can be used.
Mozilla internal string guide
es will outlive the string instance in addition, there is a special string class, ns[c]autostring, that additionally contains an internal 64-unit buffer (intended primarily for use on the stack), leading to a fourth ownership model: storage within an auto string's stack buffer auto strings will prefer reference counting an existing reference-counted buffer over their stack buffer, but will otherwise use their stack buffer for anything that will fit in it.
Interfacing with the XPCOM cycle collector
if it encounters an unknown edge during its traversal, it gives up on that edge; this means that every edge involved in a cycle must be participating, otherwise the cycle will not be found.
Components.utils.evalInWindow
if this is just native (for example, a dom node), then the function relies on xraywrappers to wrap the returned content, otherwise the result is structured-cloned.
Components.utils.isXrayWrapper
returns true if the object is an xray: false otherwise.
XPCshell Test Manifest Expressions
system on which the test is being run toolkit - the graphics toolkit used by this build one of: 'windows', 'cocoa', 'gtk2', 'android' processor - the cpu which the code is compiled for one of: 'x86', 'x86_64', 'arm' bits - the pointer size of the cpu architecture, in bits one of 32, 64, possibly unknown debug - set to true if this build is a debug build, false otherwise crashreporter - set to true if this build has crash reporting code enabled, false otherwise.
NS_GetComponentManager
otherwise, it returns an error code.
NS_GetComponentRegistrar
otherwise, it returns an error code.
NS_GetMemoryManager
otherwise, it returns an error code.
NS_GetServiceManager
otherwise, it returns an error code.
NS_InitXPCOM2
otherwise, it returns an error code.
NS_InitXPCOM3
otherwise, it returns an error code.
NS_NewLocalFile
otherwise, it returns an error code.
NS_NewNativeLocalFile
otherwise, it returns an error code.
NS_ShutdownXPCOM
otherwise, it returns an error code.
Append
otherwise, adata need not be null terminated.
Assign
otherwise, adata need not be null terminated.
Insert
otherwise, adata need not be null terminated.
Replace
otherwise, adata need not be null terminated.
Append
otherwise, adata need not be null terminated.
Assign
otherwise, adata need not be null terminated.
Insert
otherwise, adata need not be null terminated.
Replace
otherwise, adata need not be null terminated.
nsEmbedCString
otherwise, adata need not be null terminated.
nsEmbedString
otherwise, adata need not be null terminated.
Clone
otherwise, it returns a pointer to the newly allocated buffer.
HeapMinimize
otherwise, it returns an error code.
Realloc
otherwise, it returns a pointer to the newly allocated buffer.
IAccessibleHyperlink
[propget] hresult valid( [out] boolean valid ); parameters valid true if the referenced target is still valid and false otherwise.
IAccessibleTableCell
[propget] hresult isselected( [out] boolean isselected ); parameters isselected returns true if the specified cell is selected and false otherwise.
imgILoader
return value true if a decoder is available, false otherwise.
imgIRequest
otherwise returns the same request.
mozIRepresentativeColorCallback
void oncomplete( in boolean success, [optional] in unsigned long color ); parameters success true if analysis was successful, false otherwise.
mozIStorageStatement
boolean step() return value true if there are more rows left in the results, otherwise false.
mozIStorageStatementWrapper
return value returns true if the stepping the wrapped statement was successful, otherwise returns false.
mozIStorageValueArray
return value returns true if the column specified by aindex is null, or false otherwise.
mozIVisitStatusCallback
avisitedstatus true if the specified uri has been visited; otherwise false.
nsIAboutModule
otherwise, only chrome will be able to link to it.
nsIAccessibleDocument
otherwise, it will return the first cached accessible in the parent chain.
nsIAccessibleHyperText
return value the index of the link if it's presented on the given character index, otherwise -1.
nsIAccessibleSelectable
otherwise, returns true.
nsIAccessibleTextChangeEvent
return value true if text was inserted, otherwise false.
nsIAlertsService
the text must not be too long, otherwise it might be truncated to a platform-specific length.
nsIApplicationCache
henamespace getmatchingnamespace(in acstring key); unsigned long gettypes(in acstring key); void initashandle(in acstring groupid, in acstring clientid); void markentry(in acstring key, in unsigned long typebits); void unmarkentry(in acstring key, in unsigned long typebits); attributes attribute type description active boolean true if the cache is the active cache for this group, otherwise false.
nsIApplicationCacheChannel
loadedfromapplicationcache prbool true if the resource was loaded from the application cache, otherwise false.
nsIApplicationUpdateService
obsolete since gecko 1.9.1.7pre isdownloading boolean true if a download is in progress, otherwise false.
nsIAsyncInputStream
otherwise, the event will be dispatched when the stream becomes readable or closed.
nsIAsyncOutputStream
otherwise, the event will be dispatched when the stream becomes writable or closed.
nsIAuthModule
confidential if set to true, it will encrypt the data, otherwise data will just be integrity protected (checksummed).
nsIAuthPrompt2
level_pw_encrypted 1 password will be sent encrypted, but the connection is otherwise insecure.
nsIAuthPromptCallback
usercancel if false, this prompt was cancelled by calling the the cancel method on the nsicancelable; otherwise, it was cancelled by the user.
nsIAutoCompleteInput
disableautocomplete boolean true if auto-complete is currently disabled; otherwise false.
nsIBlocklistPrompt
these are javascript objects with properties: name - the plugin or extension name version - the version of the extension or plugin icon - the plugin or extension icon disable - can be used by the nsiblocklistprompt to allows users to decide whether a soft-blocked add-on should be disabled blocked - true if the item is hard-blocked, false otherwise item - the nsiplugintag or addon object acount optional the number of addons.
nsIBlocklistService
return value true if the item is blocklisted, otherwise false.
nsICacheEntryInfo
return value returns true if the cache entry is stream based, otherwise returns false.
nsICacheMetaDataVisitor
return value returns true if the provided key/value finds a cache entry, otherwise returns false.
nsIChromeFrameMessageManager
aallowdelayedload if true, the script will be loaded when the remote frame becomes available; otherwise, the script will only be loaded if the frame is already available.
nsIChromeRegistry
return value true if xpcnativewrappers are enabled for the specified uri; otherwise false.
nsICommandLine
return value true if the flag was found, otherwise false.
nsIContentPrefService
return value true if the preference exists; otherwise false.
nsIContentPrefService2
pass an nsiloadcontext to use storage appropriate to the context's useprivatebrowsing attribute: if useprivatebrowsing is true, temporary private-browsing storage is used, and otherwise permanent storage is used.
nsIContentViewer
return value true if the document will allow unloading; otherwise false.
nsIDOMEventGroup
return value returns true if the two objects are the same, otherwise false.
nsIDOMOfflineResourceList
return value true if the resource is in the list, otherwise false.
nsIDOMProgressEvent
otherwise, specify false.
getFile
c constant string value notes ns_os_home_dir "home" ns_os_temp_dir "tmpd" ns_os_current_working_dir "curworkd" ns_os_desktop_dir "desk" otherwise same as home ns_os_current_process_dir "curprocd" ns_xpcom_current_process_dir "xcurprocd" can be overriden by passing a "bin directory" to ns_initxpcom2().
nsIDownloadManagerUI
d gecko 1.9 inherits from: nsisupports last changed in gecko 1.9 (firefox 3) method overview void getattention(); void show([optional] in nsiinterfacerequestor awindowcontext, [optional] in unsigned long aid, [optional] in short areason); attributes attribute type description visible boolean true if the download manager ui is visible; otherwise false.
nsIDownloader
if null, the downloader will select a location and the resulting file will be deleted (or otherwise made invalid) when the downloader object is destroyed.
nsIDragSession
return value true if the specified flavor matches any of the native data on the clipboard, otherwise false.
nsIDroppedLinkHandler
aname the link title if it exists, or an empty string otherwise.
nsIEditor
true if the current selection anchor is editable; otherwise false.
nsIEventListenerInfo
otherwise null.
nsIExternalHelperAppService
return value true if data from urls with the specified extension and encoding should be decoded prior to saving the file or delivering it to a helper application; otherwise false.
nsIFocusManager
void setfocus( in nsidomelement aelement, in unsigned long aflags ); parameters aelement aflags native code only!windowhidden called when a document in a window has been hidden or otherwise can no longer accept focus.
nsIFrameScriptLoader
otherwise it will only be loaded into frames that exist at the time of the call.
nsIGeolocationProvider
return value true if the device is ready and has a position available to return; otherwise false.
nsIGlobalHistory3
otherwise, nsiglobalhistory2.adduri() should be called with redirect=true.
nsIHttpActivityObserver
n gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) method overview void observeactivity(in nsisupports ahttpchannel, in pruint32 aactivitytype, in pruint32 aactivitysubtype, in prtime atimestamp, in pruint64 aextrasizedata, in acstring aextrastringdata); attributes attribute type description isactive boolean true when the interface is active and should observe http activity, otherwise false.
nsIHttpChannel
return value returns true if the server sent the equivalent of a "cache-control: no-cache" response header, otherwise false.
nsIIOService
return value true if the port is allowed, false otherwise.
nsIJSON
writebom specify true if you wish to write a byte-order mark (bom) into the stream, otherwise specify false.
nsIJumpListItem
return value true if items are the same, otherwise false ...
nsILivemarkService
return value true if the given folder is a livemark folder, otherwise it returns false.
nsILoginManagerStorage
return value return true if login saving is enabled for the specified host; otherwise, return false.
nsIMenuBoxObject
openedwithkey boolean true if the menubar was opened using the keyboard; otherwise false.
nsIMessageListener
sync true if the message was sent using sendsyncmessage, false otherwise.
nsIMicrosummaryService
otherwise, it'll asynchronously download the necessary information (the generator and/or page) before refreshing the microsummary.
nsIMsgCustomColumnHandler
false otherwise.
nsIMsgDatabase
otherwise, we'll just delete them from the db.
nsIMsgFilterCustomAction
otherwise, be careful * that the action does correct notifications to maintain counts, and correct * manipulations of both imap and local non-database storage of message * metadata.
nsINavHistoryQuery
otherwise, it will return anything whose host name ends in domain.
nsINavHistoryQueryResultNode
otherwise, this is set to -1.
nsINavHistoryResultNode
otherwise this is an empty string.
nsINavHistoryResultTreeViewer
this is only valid when a tree is attached, the result will be 0 otherwise.
nsINavHistoryService
return value returns true if this uri would be added to the history, otherwise returns false.
nsIObserverService
otherwise an error will be returned.
Component; nsIPrefBranch
note: you must call removeobserver method on the same nsiprefbranch instance on which you called addobserver method in order to remove aobserver; otherwise, the observer will not be removed.
nsIPrefBranch2
note: you must call removeobserver method on the same nsiprefbranch2 instance on which you called addobserver() method in order to remove aobserver; otherwise, the observer will not be removed.
nsIPrefService
when using a get method a user set value will be returned if one exists, otherwise a default value will be returned.
nsIProcess
isrunning boolean true if the process is running, otherwise false.
nsIProcessScriptLoader
otherwise it will only be loaded into child processes that exist at the time of the call.
nsIProfile
useexistingdir if true, an existing directory may be used; otherwise, the profile directory will be unique.
nsIScriptableUnescapeHTML
isxml set this to true if the fragment is an xml string; otherwise set it to false.
nsISearchEngine
return value returns true if the engine spec has a url with the given responsetype, false otherwise.
nsIServerSocket
otherwise, it will accept connections from any interface.
nsISessionStartup
return value true if the session should be restored, otherwise false.
nsISocketTransport
otherwise false.
nsITextInputProcessorCallback
otherwise, false.
nsITraceableChannel
1.0 66 introduced gecko 1.9.0.4 inherits from: nsisupports last changed in gecko 1.9.0.4 the typical way to use this interface is as follows: register for the "http-on-examine-response" notification to track all http responses; skip redirects (responsestatus = 3xx on nsihttpchannel), since otherwise you may end up with two listeners registered for a channel; qi the channel passed as the "subject" to your observer to nsitraceablechannel, and replace the default nsistreamlistener (that passes the data to the original requester - e.g.
nsITransferable
return value true if the data is large; otherwise, the result is false.
nsITreeBoxObject
this must be followed by calling endupdatebatch(), otherwise the tree will get out of sync.
nsIUTF8StringEnumerator
return value true if there are remaining strings in the enumerator, otherwise false.
nsIVariant
return value if the conversion succeeds, ns_ok is returned, otherwise ns_error_cannot_convert_data is returned.
nsIWebBrowser
otherwise, the implementation should not refcount this interface; it should assume that a non null value is always valid.
nsIWebBrowserChrome3
otherwise returns originaltarget.
nsIWebContentHandlerRegistrar
otherwise ns_error_dom_syntax_err will be thrown.
nsIWebNavigationInfo
you may specify null to check for compatibility with nsiwebnavigation objects that are in their default state; otherwise, the result is determined based on the configuration of the specified object (that is, how it is configured by using nsiwebbrowsersetup).
nsIWebProgressListener
these are instead intended as a rough indicator that may be used to, for example, color code a security indicator or otherwise provide basic data transfer security feedback to the user.
nsIWinAppHelper
returns true only if all the following conditions are all true at once: the operating system is at least windows vista user account control is enabled the user is an administrator the application is not already running with elevated permissions otherwise it returns false.
nsIXSLTProcessor
returns null otherwise.
nsIXULTemplateBuilder
return value returns true if the node has content generated for it; otherwise returns false.
nsIZipEntry
isdirectory boolean true if the name of the entry ends with '/' and false otherwise.
nsPIPromptService
otherwise, it's a normal edit field.
NS_IF_ADDREF
only use this macro if the pointer might be null; use ns_addref otherwise.
NS_IF_RELEASE
this macro should only be used when the pointer might be null; otherwise, use ns_release.
NS_CStringContainerInit
otherwise, it returns an error code.
NS_CStringContainerInit2
otherwise, it returns an error code.
NS_CStringCopy
otherwise, it returns an error code.
NS_CStringCutData
otherwise, it returns an error code.
NS_CStringToUTF16
otherwise, it returns an error code.
NS_StringContainerInit
otherwise, it returns an error code.
NS_StringCopy
otherwise, it returns an error code.
NS_StringCutData
otherwise, it returns an error code.
NS_UTF16ToCString
otherwise, it returns an error code.
Storage
otherwise, it's strongly recommended that you use asynchronous execution, for performance reasons.
Using the clipboard
otherwise, use a one from a logical source window instead (see the description above).
XPCOM
unless otherwise noted you register for the topics using the nsiobserverservice.setting http request headershttp is one of the core technologies behind the web.
XPIDL Syntax
MozillaTechXPIDLSyntax
text inside raw code fragments are not otherwise parsed by xpidl directly.
XPIDL
otherwise, the return type of the native method is nsresult, and the return type acts as a final outparameter if it is not void.
XUL Overlays
MozillaTechXULOverlays
using the id attribute on an otherwise empty node in the base file, you can essentially reference a subtree defined in an overlay file and merge it in wherever it's needed.
Autoconfiguration in Thunderbird
all config files must be served as content-type: text/xml (or application/xml), otherwise the file will be ignored.
MailNews Filters
if one of the actions is a move, or a stop filter execution action, we move on to the next header; otherwise, we move on to the next filter.
Folders and message lists
otherwise, use one of the methods described below.
Using the Multiple Accounts API
appendix a: listing of all properties (when brendan's idldoc comes along, i'll just link to that) all preferences are strings, unless otherwise noted.
Toolkit version format
otherwise, the version strings are equal.
Zombie compartments
otherwise, please file a bug (using the "tech evangelism" product and the "add-ons" component), add "[memshrink]" to its whiteboard, and mark it as blocking bug 668871 and bug 700547.
Using Objective-C from js-ctypes
otherwise, the following functions can be used, depending on return type and architecture.
Using js-ctypes
otherwise, the system looks for the library in its standard locations.
CData
known_len : 500; var ptrasarr = ctypes.cast(stringptr, ctypes.unsigned_char.array(assumption_max_len).ptr).contents; // must cast to unsigned char (not ctypes.jschar, or ctypes.char) as otherwise i dont get foreign characters, as they are got as negative values, and i should read till i find a 0 which is null terminator which will have unsigned_char code of 0 // can test this by reading a string like this: "_scratchpad/entehandle.js at master · noitidart/_scratchpad mdnfirefox" at js array position 36 (so 37 if count from 1), we see 183, and at 77 we see char code of 0 if casted to unsig...
PointerType
return value true if the pointer's value is null, otherwise false.
Drawing and Event Handling - Plugins
the browser sets the port's clip region to the region of the plug-in currently visible (not scrolled off the page, obscured by floating palettes, or otherwise hidden).
Plug-in Basics - Plugins
otherwise, the plug-in cannot be embedded.
Accessibility Inspector - Firefox Developer Tools
the accessibility inspector provides a means to access important information exposed to assistive technologies on the current page via the accessibility tree, allowing you to check what's missing or otherwise needs attention.
Introduction to DOM Inspector - Firefox Developer Tools
one common use of the dom inspector is to find the name and location of particular icon being used in the user interface, which is not an easy task otherwise.
Debugger-API - Firefox Developer Tools
a debugger.source can furnish a full copy of its source code, and explain how the code entered the system, whether via a call to eval, a <script> element, or otherwise.
Index - Firefox Developer Tools
3 accessibility inspector accessibility, accessibility inspector, devtools, guide, tools the accessibility inspector provides a means to access important information exposed to assistive technologies on the current page via the accessibility tree, allowing you to check what's missing or otherwise needs attention.
Dominators view - Firefox Developer Tools
otherwise, you might want to review the article on dominators concepts.
Network request details - Firefox Developer Tools
(see referrer-policy for a description of possible values) blocking: if the request is to a site that is associated with a known tracker, an icon and a message are shown; otherwise, this field is not shown.
Responsive Design Mode - Firefox Developer Tools
reloading on these changes can be helpful because certain page behaviors would otherwise not be applied.
Web Console Helpers - Firefox Developer Tools
otherwise, json.stringify will be called on the argument, and the result will be copied to the clipboard.
The JavaScript input interpreter - Firefox Developer Tools
otherwise, json.stringify will be called on the argument, and the result will be copied to the clipboard.
Firefox Developer Tools
accessibility inspector provides a means to access the page's accessibility tree, allowing you to check what's missing or otherwise needs attention.
Animation.pending - Web APIs
WebAPIAnimationpending
syntax var pending = animation.pending; value true if the animation is pending, false otherwise.
Animation.persist() - Web APIs
WebAPIAnimationpersist
the persist() method of the web animations api's animation interface explicitly persists an animation, when it would otherwise be removed due to the browser's automatically removing filling animations behavior.
Animation - Web APIs
WebAPIAnimation
animation.persist() explicitly persists an animation, when it would otherwise be removed due to the browser's automatically removing filling animations behavior.
AudioBuffer() - Web APIs
exceptions notsupportederror one or more of the options are negative or otherwise has an invalid value (such as numberofchannels being higher than supported, or a samplerate outside the nominal range).
AudioBufferSourceNode.loop - Web APIs
syntax var loopingenabled = audiobuffersourcenode.loop; audiobuffersourcenode.loop = true | false; value a boolean which is true if looping is enabled; otherwise, the value is false.
AudioListener.forwardX - Web APIs
note: the parameter is a-rate when used with a pannernode whose panningmodel is set to equalpower, or k-rate otherwise.
AudioListener.forwardY - Web APIs
note: the parameter is a-rate when used with a pannernode whose panningmodel is set to equalpower, or k-rate otherwise.
AudioListener.forwardZ - Web APIs
note: the parameter is a-rate when used with a pannernode whose panningmodel is set to equalpower, or k-rate otherwise.
AudioListener.positionX - Web APIs
note: the parameter is a-rate when used with a pannernode whose pannernode is set to equalpower, or k-rate otherwise.
AudioListener.positionY - Web APIs
note: the parameter is a-rate when used with a pannernode whose pannernode is set to equalpower, or k-rate otherwise.
AudioListener.positionZ - Web APIs
note: the parameter is a-rate when used with a pannernode whose pannernode is set to equalpower, or k-rate otherwise.
AudioListener.upX - Web APIs
WebAPIAudioListenerupX
note: the parameter is a-rate when used with a pannernode whose pannernode is set to equalpower, or k-rate otherwise.
AudioListener.upY - Web APIs
WebAPIAudioListenerupY
note: the parameter is a-rate when used with a pannernode whose pannernode is set to equalpower, or k-rate otherwise.
AudioListener.upZ - Web APIs
WebAPIAudioListenerupZ
note: the parameter is a-rate when used with a pannernode whose pannernode is set to equalpower, or k-rate otherwise.
AudioNode.connect() - Web APIs
WebAPIAudioNodeconnect
otherwise, a notsupportederror exception is thrown.
AudioScheduledSourceNode - Web APIs
unless stated otherwise, nodes based upon audioscheduledsourcenode output silence when not playing (that is, before start() is called and after stop() is called).
AudioWorkletProcessor.process - Web APIs
return value a boolean value indicating whether or not to force the audioworkletnode to remain active even if the user agent's internal logic would otherwise decide that it's safe to shut down the node.
BaseAudioContext.createBuffer() - Web APIs
exceptions notsupportederror one or more of the options are negative or otherwise has an invalid value (such as numberofchannels being higher than supported, or a samplerate outside the nominal range).
BaseAudioContext.createPeriodicWave() - Web APIs
the real and imag arrays have to have the same length, otherwise an error is thrown.
BatteryManager.charging - Web APIs
otherwise, the value is false.
Bluetooth.getAvailability() - Web APIs
for a returns a boolean which is true if the deveice has a bluetooth adapter and false otherwise (unless user configured user agent not to expose a real value).
BluetoothRemoteGATTCharacteristic.readValue() - Web APIs
otherwise it throws an error.
BluetoothRemoteGATTCharacteristic - Web APIs
otherwise it throws an error.
readValue() - Web APIs
otherwise it throws an error.
BluetoothRemoteGATTDescriptor - Web APIs
otherwise it throws an error.
CSS.supports() - Web APIs
WebAPICSSsupports
return value true if the browser supports the rule, otherwise false.
CSSNumericValue - Web APIs
otherwise, false.
CSSRule - Web APIs
WebAPICSSRule
cssrule.parentrule read only returns the containing rule, otherwise null.
CSSStyleSheet - Web APIs
ownerrule read only if this stylesheet is imported into the document using an @import rule, the ownerrule property returns the corresponding cssimportrule; otherwise, this property's value is null.
CSS Font Loading API - Web APIs
fontfacesource a mixin providing all of the fonts used in font-related operations, unless defined otherwise.
CSS Typed Object Model API - Web APIs
otherwise, false cssnumericvalue.to - converts value into another one with the specified unit.
Cache.delete() - Web APIs
WebAPICachedelete
return value a promise that resolves to true if the cache entry is deleted, or false otherwise.
Cache - Web APIs
WebAPICache
console.log(' found response in cache:', response); return response; } // otherwise, if there is no entry in the cache for event.request, response will be // undefined, and we need to fetch() the resource.
CacheStorage.delete() - Web APIs
return value a promise that resolves to true if the cache object is found and deleted, and false otherwise.
CanvasRenderingContext2D.drawWindow() - Web APIs
drawwindow_do_not_flush 0x02 do not flush pending layout notifications that could otherwise be batched up.
Applying styles and colors - Web APIs
the globalalpha property can be useful if you want to draw a lot of shapes on the canvas with similar transparency, but otherwise it's generally more useful to set the transparency on individual shapes when setting their colors.
Drawing shapes with canvas - Web APIs
the anticlockwise parameter is a boolean value which, when true, draws the arc anticlockwise; otherwise, the arc is drawn clockwise.
Using images - Web APIs
if the hosting domain permits cross-domain access to the image, the image can be used in your canvas without tainting it; otherwise using the image will taint the canvas.
Clients.matchAll() - Web APIs
WebAPIClientsmatchAll
otherwise, it returns only the service worker clients controlled by the current service worker.
Clipboard.read() - Web APIs
WebAPIClipboardread
otherwise, an image element referred to using the variable imgelem has its source replaced with the clipboard's contents.
console.log() - Web APIs
WebAPIConsolelog
otherwise, many browsers provide a live view that constantly updates as values change.
CustomElementRegistry.define() - Web APIs
exceptions exception description notsupportederror the customelementregistry already contains an entry with the same name or the same constructor (or is otherwise already defined), or extends is specified and it is a valid custom element name, or extends is specified but the element it is trying to extend is an unknown element.
DOMTokenList - Web APIs
domtokenlist.contains(token) returns true if the list contains the given token, otherwise false.
DataTransfer.setDragImage() - Web APIs
if element is an img element, then set the drag data store bitmap to the element's image (at its intrinsic size); otherwise, set the drag data store bitmap to an image generated from the given element (the exact mechanism for doing so is not currently specified).
DataTransferItem.getAsFile() - Web APIs
return value file if the drag data item is a file, a file object is returned; otherwise null is returned.
Document.fullscreen - Web APIs
syntax var isfullscreen = document.fullscreen; value a boolean value which is true if the document is currently displaying an element in full-screen mode; otherwise, the value is false.
Document: fullscreenchange event - Web APIs
to find out whether the element is entering or exiting full-screen mode, check the value of documentorshadowroot.fullscreenelement: if this value is null then the element is exiting full-screen mode, otherwise it is entering full-screen mode.
Document.mozSyntheticDocument - Web APIs
syntax var issynthetic = document.mozsyntheticdocument; on return, issynthetic is true if the document is a synthetic one; otherwise it's false.
Document.onfullscreenchange - Web APIs
otherwise, the specified element is about to take over the screen.
Document.querySelectorAll() - Web APIs
otherwise, you can simply use standard array notation to access the contents of the list.
Document.rootElement - Web APIs
document.rootelement returns the element that is the root element of the document if it is an <svg> element, otherwise null.
Document.scrollingElement - Web APIs
when in quirks mode, the scrollingelement attribute returns the html body element if it exists and is not potentially scrollable, otherwise it returns null.
Document.title - Web APIs
WebAPIDocumenttitle
otherwise, it contains the title specified in the markup (see the notes below).
EffectTiming.duration - Web APIs
this value must not be negative; otherwise, it can have any value (including positive infinity).
Element.classList - Web APIs
WebAPIElementclassList
examples const div = document.createelement('div'); div.classname = 'foo'; // our starting state: <div class="foo"></div> console.log(div.outerhtml); // use the classlist api to remove and add classes div.classlist.remove("foo"); div.classlist.add("anotherclass"); // <div class="anotherclass"></div> console.log(div.outerhtml); // if visible is set remove it, otherwise add it div.classlist.toggle("visible"); // add/remove visible, depending on test conditional, i less than 10 div.classlist.toggle("visible", i < 10 ); console.log(div.classlist.contains("foo")); // add or remove multiple classes div.classlist.add("foo", "bar", "baz"); div.classlist.remove("foo", "bar", "baz"); // add or remove multiple classes using spread syntax const cls = ["foo", "bar"]; d...
Element.clientHeight - Web APIs
the element.clientheight read-only property is zero for elements with no css or inline layout boxes; otherwise, it's the inner height of an element in pixels.
Element.clientWidth - Web APIs
the element.clientwidth property is zero for inline elements and elements with no css; otherwise, it's the inner width of an element in pixels.
Element: error event - Web APIs
bubbles no cancelable no interface event or uievent event handler property onerror the event object is a uievent instance if it was generated from a user interface element, or an event instance otherwise.
Element.getElementsByClassName() - Web APIs
otherwise, they're case sensitive.
Element.querySelectorAll() - Web APIs
otherwise, you can simply use standard array notation to access the contents of the list.
Element.requestFullscreen() - Web APIs
note: this method must be called while responding to a user interaction or a device orientation change; otherwise it will fail.
Element: select event - Web APIs
bubbles yes cancelable no interface uievent if generated from a user interface, event otherwise event handler property onselect the event is not available for all elements in all languages.
Element.setAttribute() - Web APIs
if the attribute already exists, the value is updated; otherwise a new attribute is added with the specified name and value.
Element.toggleAttribute() - Web APIs
return value true if attribute name is eventually present, and false otherwise.
Event.msConvertURL() - Web APIs
the msconverturl method instructs the html paste operation on how to modify the src attribute that corresponds to each file in the clipboarddata.files collection, allowing otherwise inaccessible files to be converted to blob or data uris.
Event.returnValue - Web APIs
WebAPIEventreturnValue
syntax event.returnvalue = bool; var bool = event.returnvalue; value a boolean value which is true if the event has not been canceled; otherwise, if the event has been canceled or the default has been prevented, the value is false.
EventTarget.dispatchEvent() - Web APIs
otherwise it returns true.
EventTarget.removeEventListener() - Web APIs
ails element.removeeventlistener("mousedown", handlemousedown, { passive: false }); // succeeds element.removeeventlistener("mousedown", handlemousedown, false); // succeeds element.removeeventlistener("mousedown", handlemousedown, true); // fails it's worth noting that some browser releases have been inconsistent on this, and unless you have specific reasons otherwise, it's probably wise to use the same values used for the call to addeventlistener() when calling removeeventlistener().
FetchEvent.isReload - Web APIs
the isreload read-only property of the fetchevent interface returns true if the event was dispatched by the user attempting to reload the page, and false otherwise.
Using Fetch - Web APIs
otherwise, they fail silently.
FileSystemEntry - Web APIs
isdirectory read only a boolean which is true if the entry represents a directory; otherwise, it's false.
FileSystemEntrySync - Web APIs
various browsers implement pieces of the file and directory entries api (otherwise known as the file system api) but you should try to avoid using it.
File and Directory Entries API - Web APIs
the interfaces below otherwise mirror the ones from the asynchronous api.
accessKeyLabel - Web APIs
the htmlelement.accesskeylabel read-only property returns a string that represents the element's assigned access key (if any); otherwise it returns an empty string.
HTMLElement.isContentEditable - Web APIs
the htmlelement.iscontenteditable read-only property returns a boolean that is true if the contents of the element are editable; otherwise it returns false.
HTMLFormElement.requestSubmit() - Web APIs
otherwise, the form is submitted with no submitter parameter, so it's submitted directly by the form itself.
HTMLImageElement.alt - Web APIs
otherwise, readers will find it open by default, which is not the intent here.
HTMLImageElement.complete - Web APIs
syntax let doneloading = htmlimageelement.complete; value a boolean value which is true if the image has completely loaded; otherwise, the value is false.
HTMLImageElement.currentSrc - Web APIs
the sizes attribute is provided to indicate that the image should be drawn at 50% of the document width if the viewport is under 400px wide; otherwise, the image is drawn at 90% width of the document.
HTMLImageElement.isMap - Web APIs
syntax htmlimageelement.ismap = true|false; let ismap = htmlimageelement.ismap; value a boolean value which is true if the image is being used for a server-side image map; otherwise, the value is false.
HTMLImageElement.lowSrc - Web APIs
the htmlimageelement interface's obsolete lowsrc property can be used to specify the url of a reduced-quality or otherwise faster-loading version of the image specified by the src property.
HTMLImageElement.src - Web APIs
additionally, if you use src along with both sizes (or the corresponding sizes content attribute) and srcset in order to choose an image based on the viewport size, the src attribute is only used as a fallback for browsers that don't support sizes and srcset; otherwise, it's not used at all.
HTMLImageElement.srcset - Web APIs
otherwise, the condition descriptor may take one of two forms: to indicate that the image resource specified by the image candidate string should be used when the image is being rendered with a particular width in pixels, provide a width descriptor comprised the number giving that width in pixels followed by the lower case letter "w".
HTMLImageElement - Web APIs
htmlimageelement.naturalwidth read only an integer value representing the intrinsic width of the image in css pixels, if it is available; otherwise, it will show 0.
HTMLLegendElement - Web APIs
otherwise, it returns null.
HTMLMediaElement.currentSrc - Web APIs
syntax var mediaurl = audioobject.currentsrc; value a domstring object containing the absolute url of the chosen media source; this may be an empty string if networkstate is empty; otherwise, it will be one of the resources listed by the htmlsourceelement contained within the media element, or the value or src if no <source> element is provided.
HTMLMediaElement.currentTime - Web APIs
example var video = document.createelement('video'); console.log(video.currenttime); usage notes reduced time precision to offer protection against timing attacks and fingerprinting, browsers may round or otherwise adjust the value returned by currenttime.
HTMLObjectElement.contentDocument - Web APIs
the contentdocument read-only property of the htmlobjectelement interface returns a document representing the active document of the object element's nested browsing context, if any; otherwise null.
HTMLObjectElement.contentWindow - Web APIs
the contentwindow read-only property of the htmlobjectelement interface returns a windowproxy representing the window proxy of the object element's nested browsing context, if any; otherwise null.
HTMLOptionElement - Web APIs
htmloptionelement.value is a domstring that reflects the value of the value html attribute, if it exists; otherwise reflects value of the node.textcontent property.
HTMLScriptElement - Web APIs
if the script is blocked, its element receives an error event; otherwise, it receives a load event.
The HTML DOM API - Web APIs
otherwise, the code ensures that the button is enabled.
File drag and drop - Web APIs
in the following drop handler, if the browser supports datatransferitemlist interface, the getasfile() method is used to access each file; otherwise the datatransfer interface's files property is used to access each file.
History.pushState() - Web APIs
WebAPIHistorypushState
the new url must be of the same origin as the current url; otherwise, pushstate() will throw an exception.
History.replaceState() - Web APIs
the new url must be of the same origin as the current url; otherwise replacestate throws an exception.
Working with the History API - Web APIs
the new url must be of the same origin as the current url; otherwise, pushstate() will throw an exception.
IDBCursorSync - Web APIs
returns false if the cursor has reached the end of its range; otherwise returns true.
IDBFactorySync - Web APIs
if there is already a database with the specified name, it uses that one; otherwise, it creates the database using the specified name and description.
compareVersion - Web APIs
otherwise, this method returns a positive number.
enabled - Web APIs
method of installtrigger object syntax boolean enabled (); parameters none returns true if software installation is enabled for this client machine; otherwise, false.
getVersion - Web APIs
otherwise, it returns an installversion object representing the version of the component.
IntersectionObserverEntry.rootBounds - Web APIs
otherwise, it's the bounds of the root element.
IntersectionObserverEntry - Web APIs
instances of intersectionobserverentry are delivered to an intersectionobserver callback in its entries parameter; otherwise, these objects can only be obtained by calling intersectionobserver.takerecords().
Intersection Observer API - Web APIs
otherwise, the root intersection rectangle is the intersection root's bounding client rectangle (as returned by calling getboundingclientrect() on it).
KeyboardEvent.charCode - Web APIs
otherwise, the code of the pressed key is stored in keycode.
KeyboardEvent.getModifierState() - Web APIs
the keyboardevent.getmodifierstate() method returns the current state of the specified modifier key: true if the modifier is active (that is the modifier key is pressed or locked), otherwise, false.
KeyboardEvent.location - Web APIs
otherwise, when numlock is unlocked and the keyboard actually has a numeric keypad, gecko always returns dom_key_location_numpad too.
LargestContentfulPaint - Web APIs
// https://bugs.webkit.org/show_bug.cgi?id=209216 try { let lcp; const po = new performanceobserver((entrylist) => { const entries = entrylist.getentries(); const lastentry = entries[entries.length - 1]; // update `lcp` to the latest value, using `rendertime` if it's available, // otherwise using `loadtime`.
MediaDeviceInfo - Web APIs
the set of device labels could otherwise be used as part of a fingerprinting mechanism to identify a user.
MediaQueryList.matches - Web APIs
syntax var matches = <varm>mediaquerylist.matches; value a boolean which is true if the document currently matches the media query list; otherwise, it's false.
MediaStream() - Web APIs
otherwise, the stream has no tracks.
MediaStream.getTrackById() - Web APIs
otherwise, the returned value is null.
MediaStream - Web APIs
mediastream.active read only a boolean value that returns true if the mediastream is active, or false otherwise.
MediaStreamTrack.enabled - Web APIs
when enabled, a track's data is output from the source to the destination; otherwise, empty frames are output.
MediaTrackConstraints.aspectRatio - Web APIs
otherwise, the value of this constraindouble will guide the user agent in its efforts to provide an exact match to the required aspect ratio (if exact is specified or both min and max are provided and have the same value) or to a best-possible value.
MediaTrackConstraints.channelCount - Web APIs
otherwise, the value of this constrainlong will guide the user agent in its efforts to provide an exact match to the required channel count (if exact is specified or both min and max are provided and have the same value) or to a best-possible value.
MediaTrackConstraints.frameRate - Web APIs
otherwise, the value of this constraindouble will guide the user agent in its efforts to provide an exact match to the required frame rate (if exact is specified or both min and max are provided and have the same value) or to a best-possible value.
MediaTrackConstraints.height - Web APIs
otherwise, the value of this constrainlong will guide the user agent in its efforts to provide an exact match to the required height (if exact is specified or both min and max are provided and have the same value) or to a best-possible value.
MediaTrackConstraints.sampleRate - Web APIs
otherwise, the value of this constrainlong will guide the user agent in its efforts to provide an exact match to the required sample rate (if exact is specified or both min and max are provided and have the same value) or to a best-possible value.
MediaTrackConstraints.sampleSize - Web APIs
otherwise, the value of this constrainlong will guide the user agent in its efforts to provide an exact match to the required sample size (if exact is specified or both min and max are provided and have the same value) or to a best-possible value.
MediaTrackControls.volume - Web APIs
otherwise, the value of this constraindouble will guide the user agent in its efforts to provide an exact match to the required volume (if exact is specified or both min and max are provided and have the same value) or to a best-possible value.
MediaTrackConstraints.width - Web APIs
otherwise, the value of this constrainlong will guide the user agent in its efforts to provide an exact match to the required width (if exact is specified or both min and max are provided and have the same value) or to a best-possible value.
MediaTrackSupportedConstraints.frameRate - Web APIs
"not supported" with code to provide alternative methods for presenting the audiovisual information you want to share with the user or otherwise work with.
Capabilities, constraints, and settings - Web APIs
otherwise, we follow these steps to apply the updated constraints to the already-active stream: buildconstraints() is called to construct updated mediatrackconstraints objects for the audio track (audioconstraints) and the video track (videoconstraints).
MessageEvent.ports - Web APIs
otherwise called implicitly by onmessage setter.
MessageEvent - Web APIs
otherwise called implicitly by onmessage setter.
Microdata DOM API - Web APIs
otherwise, an empty htmlpropertiescollection object.
Microsoft API extensions - Web APIs
microsoft browsers (internet explorer, and in a few cases, microsoft edge) support a number of special microsoft extensions to the otherwise standard dom apis.
MouseEvent.getModifierState() - Web APIs
the mouseevent.getmodifierstate() method returns the current state of the specified modifier key: true if the modifier is active (i.e., the modifier key is pressed or locked), otherwise, false.
msPlayToPrimary - Web APIs
syntax ptr = object.msplaytoprimary; value boolean value set to true indicates that the device is the primary dlna playto device, otherwise false.
Navigation Timing API - Web APIs
calculate page render time as another example of an interesting piece of data you can obtain using the navigation timing api that you can't otherwise easily get, you can get the amount of time it took to render the page: const rendertime = perfdata.domcomplete - perfdata.domloading; this is obtained by starting with the time at which loading of the dom and its dependencies is complete (domcomplete) and subtracting from it the time at which parsing of the dom began (domloading).
Navigator.doNotTrack - Web APIs
example console.log(navigator.donottrack); // prints "1" if dnt is enabled; "0" if the user opted-in for tracking; otherwise this is "unspecified" specifications specification status comment tracking preference expression (dnt)the definition of 'navigator.donottrack' in that specification.
Navigator.msLaunchUri() - Web APIs
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.
Navigator.registerProtocolHandler() - Web APIs
otherwise, the scheme must be one of the following: bitcoin geo im irc ircs magnet mailto mms news nntp openpgp4fpr sip sms smsto ssh tel urn webcal wtai xmpp example if your site is burgers.example.com, you can register a protocol handler for it to handle web+burger: links, like so: navigator.registerprotocolhandler("web+burger", "https://burge...
Navigator.sendBeacon() - Web APIs
otherwise, it returns false.
Navigator - Web APIs
WebAPINavigator
navigator.cookieenabled read only returns false if setting a cookie will be ignored and true otherwise.
Node.hasChildNodes() - Web APIs
syntax bool = node.haschildnodes(); return value a boolean that is true if the node has child nodes, and false otherwise.
Notification.permission - Web APIs
t's check if the browser supports notifications if (!("notification" in window)) { console.log("this browser does not support 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 den...
Notification.requestPermission() - Web APIs
// let's check if the browser supports notifications if (!("notification" in window)) { alert("this browser does not support desktop notification"); } // let's check whether notification permissions have already 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.requestpermission().then(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 // wa...
Notification - Web APIs
// let's check if the browser supports notifications if (!("notification" in window)) { alert("this browser does not support desktop notification"); } // let's check whether notification permissions have already 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.requestpermission().then(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 // wa...
Using the Notifications API - Web APIs
" + i, {tag: 'somanynotification'}); if (i++ == 9) { window.clearinterval(interval); } }, 200); } // otherwise, we can fallback to a regular modal alert else { alert("hi!"); } }); } // if the user refuses to get notified else { // we can fallback to a regular modal alert alert("hi!"); } }); }); see the live result below: specifications specification status comment notifications api living standard living stan...
Page Visibility API - Web APIs
videoelement.addeventlistener("play", function(){ document.title = 'playing'; }, false); } properties added to the document interface the page visibility api adds the following properties to the document interface: document.hidden read only returns true if the page is in a state considered to be hidden to the user, and false otherwise.
PannerNode.coneInnerAngle - Web APIs
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 [x1, y1, z1] = yrotationtovector(0); // schedule the no-rotation vector immediately panner.orientat...
PannerNode.coneOuterAngle - Web APIs
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 [x1, y1, z1] = yrotationtovector(0); // schedule the no-rotation vector immediately panner.orientat...
PannerNode.coneOuterGain - Web APIs
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 [x1, y1, z1] = yrotationtovector(0); // schedule the no-rotation vector immediately panner.orientat...
PannerNode.orientationX - Web APIs
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 [x1, y1, z1] = yrotationtovector(0); // schedule the no-rotation vector immediately panner.orientat...
PannerNode.orientationY - Web APIs
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 [x1, y1, z1] = yrotationtovector(0); // schedule the no-rotation vector immediately panner.orientat...
PannerNode.orientationZ - Web APIs
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 [x1, y1, z1] = yrotationtovector(0); // schedule the no-rotation vector immediately panner.orientat...
performance.now() - Web APIs
WebAPIPerformancenow
otherwise, performance.timing.navigationstart + performance.now() will be approximately equal to date.now().
PerformanceResourceTiming.nextHopProtocol - Web APIs
otherwise, this property returns the alpn protocol id of the first hop to the proxy.
PerformanceResourceTiming.redirectEnd - Web APIs
when fetching a resource, if there are multiple http redirects, and any of the redirects have an origin that is different from the current document, and the timing allow check algorithm passes for each redirected resource, this property returns the time immediately after receiving the last byte of the response of the last redirect; otherwise, zero is returned.
PerformanceResourceTiming.redirectStart - Web APIs
if there are http redirects when fetching the resource and if any of the redirects are not from the same origin as the current document, but the timing allow check algorithm passes for each redirected resource, this property returns the starting time of the fetch that initiates the redirect; otherwise, zero is returned.
PointerEvent.pressure - Web APIs
for hardware that does not support pressure, such as a mouse, the value is 0.5 when the pointer is active buttons state and 0 otherwise.
Using Pointer Events - Web APIs
handling canceled touches if the user's finger wanders into browser ui, or the touch otherwise needs to be canceled, the pointercancel event is sent, and we call the handlecancel() function below.
Proximity Events - Web APIs
example window.addeventlistener('userproximity', function(event) { if (event.near) { // let's power off the screen navigator.mozpower.screenenabled = false; } else { // otherwise, let's power on the screen navigator.mozpower.screenenabled = true; } }); specifications specification status comment proximity sensorthe definition of 'proximity events' in that specification.
PushSubscription.expirationTime - Web APIs
the expirationtime read-only property of the pushsubscription interface returns a domhighrestimestamp of the subscription expiration time associated with the push subscription, if there is one, or null otherwise.
PushSubscription - Web APIs
pushsubscription.expirationtime read only a domhighrestimestamp of the subscription expiration time associated with the push subscription, if there is one, or null otherwise.
RTCConfiguration - Web APIs
otherwise, both the rtp and rtcp candidates are returned, separately.
RTCDataChannel.ordered - Web APIs
syntax var ordered = adatachannel.ordered; a boolean value which is true if in-order delivery is guaranteed and is otherwise false.
RTCIceCandidate.address - Web APIs
address is null by default if not otherwise specified.
RTCIceCandidate.usernameFragment - Web APIs
otherwise, after checking every receiver, it adds the new candidate to the connection.
RTCIceCandidate - Web APIs
otherwise, tcptype is null.
RTCIceCandidatePairStats.circuitBreakerTriggerCount - Web APIs
a circuit breaker trigger is fired each time the connection times out or otherwise needs to be halted automatically.
RTCIceCandidatePairStats - Web APIs
the circuit breaker is triggered whenever a connection times out or otherwise needs to be automatically aborted.
RTCIceCandidateStats.address - Web APIs
otherwise, the address is presumed to be a fully-qualified domain name, which is resolved first using an aaaa record (assuming ipv6 is available), then using an a record (if no result is found or the device onlu supports ipv4).
RTCIceCandidateStats.relayProtocol - Web APIs
the ice protocl being used by the candidate otherwise can be obtained from the protocol property.
RTCOfferOptions.iceRestart - Web APIs
otherwise, we call back to the older technique: we manually create a new offer with icerestart set to true, then that offer is set as the new local description for the connection.
RTCPeerConnection() - Web APIs
return value a newly-created rtcpeerconnection object, configured as described by configuration, if specified; otherwise, configured to appropriate basic defaults.
RTCPeerConnection.addTrack() - Web APIs
otherwise, the first time ontrack is called, a new stream is created and attached to the video element, and then the track is added to the new stream.
RTCPeerConnection: addstream event - Web APIs
if it does, a track event listener is set up; otherwise, an addstream event listener is set up.
RTCPeerConnection.localDescription - Web APIs
syntax var sessiondescription = peerconnection.localdescription; on a more fundamental level, the returned value is the value of rtcpeerconnection.pendinglocaldescription if that property isn't null; otherwise, the value of rtcpeerconnection.currentlocaldescription is returned.
RTCPeerConnection.pendingLocalDescription - Web APIs
otherwise, this returns null.
RTCPeerConnection.pendingRemoteDescription - Web APIs
otherwise, this returns null.
RTCPeerConnection.remoteDescription - Web APIs
syntax var sessiondescription = peerconnection.remotedescription; on a more fundamental level, the returned value is the value of rtcpeerconnection.pendingremotedescription if that property isn't null; otherwise, the value of rtcpeerconnection.currentremotedescription is returned.
RTCPeerConnection.setLocalDescription() - Web APIs
otherwise, setlocaldescription() creates an answer, which becomes the new local description.
RTCPeerConnection - Web APIs
otherwise, both the rtp and rtcp candidates are returned, separately.
RTCRtpContributingSource.audioLevel - Web APIs
audiolevel will be the level value defined in [rfc6465] if the rfc 6465 header extension is present, and otherwise null.
RTCRtpReceiver.getCapabilities() static function - Web APIs
nothing is loaded, fetched, or otherwise prepared.
RTCRtpSender.getCapabilities() static function - Web APIs
nothing is loaded, fetched, or otherwise prepared.
RTCRtpTransceiver - Web APIs
an rtcrtptransceiver is associated with an m-line if its mid is non-null; otherwise it's considered disassociated.
RTCStatsReport - Web APIs
the active candidate pair is deleted after the transport switches to another candidate pair; this change cannot be detected otherwise.
RTCStatsType - Web APIs
the active candidate pair is deleted after the transport switches to another candidate pair; this change cannot be detected otherwise.
ReadableStreamBYOBReader.releaseLock() - Web APIs
if the associated stream is errored when the lock is released, the reader will appear errored in that same way subsequently; otherwise, the reader will appear closed.
ReadableStreamDefaultReader.releaseLock() - Web APIs
if the associated stream is errored when the lock is released, the reader will appear errored in that same way subsequently; otherwise, the reader will appear closed.
SVGAngle - Web APIs
WebAPISVGAngle
unless otherwise described, an svgangle object is not associated with any element.
SVGMarkerElement - Web APIs
if markerunits is svg_marker_orient_angle, the angle value for attribute orient; otherwise, it will be set to zero.
SVGSVGElement - Web APIs
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
otherwise, the screen orientation will change from an orientation to another as long as the orientations are amongst the orientations the device has been locked to.
ServiceWorkerGlobalScope.skipWaiting() - Web APIs
example while self.skipwaiting() can be called at any point during the service worker's execution, it will only have an effect if there's a newly installed service worker that might otherwise remain in the waiting state.
ServiceWorkerRegistration.unregister() - Web APIs
the promise will resolve to false if no registration was found, otherwise it resolves to true irrespective of whether unregistration happened or not (it may not unregister if someone else just called serviceworkercontainer.register() with the same scope.) the service worker will finish any ongoing operations before it is unregistered.
SharedWorker - Web APIs
otherwise called implicitly by onmessage setter.
StorageManager.persist() - Web APIs
the persist() method of the storagemanager interface requests permission to use persistent storage, and returns a promise that resolves to true if permission is granted and box mode is persistent, and false otherwise.
Using the Storage Access API - Web APIs
usage notes the storage access api is designed to allow embedded content to request access to storage that would otherwise be blocked when a user’s browser is set to block all third-party cookies.
Streams API concepts - Web APIs
as well as the conventional readable stream there is a type called a byte stream — this is an extended version of a conventional stream for reading underlying byte sources (otherwise known as byob, or “bring your own buffer”) sources.
Using readable streams - Web APIs
beginning generation of data or otherwise getting access to the source.
SubtleCrypto.deriveBits() - Web APIs
otherwise it will be the initial key material for the derivation function: for example, for pbkdf2 it might be a password, imported as a cryptokey using subtlecrypto.importkey().
SubtleCrypto.deriveKey() - Web APIs
otherwise it will be the initial key material for the derivation function: for example, for pbkdf2 it might be a password, imported as a cryptokey using subtlecrypto.importkey().
SubtleCrypto.exportKey() - Web APIs
otherwise the promise fulfills with an arraybuffer containing the key.
SubtleCrypto.wrapKey() - Web APIs
wrapping a key helps protect it in untrusted environments, such as inside an otherwise unprotected data store or in transmission over an unprotected network.
TextTrack.mode - Web APIs
WebAPITextTrackmode
while the track's presence is exposed in the dom, the user agent is otherwise ignoring it.
TextTrack - Web APIs
WebAPITextTrack
texttrack.label read only a human-readable domstring which contains the text track's label, if one is present; otherwise, this is an empty string (""), in which case a custom label may need to be generated by your code using other attributes of the track, if the track's label needs to be exposed to the user.
TextTrackList: change event - Web APIs
the change event is fired when a text track is made active or inactive, or a texttracklist is otherwise changed.
TouchEvent.altKey - Web APIs
WebAPITouchEventaltKey
otherwise, it is false.
TouchEvent.ctrlKey - Web APIs
otherwise, it is false.
TouchEvent.metaKey - Web APIs
otherwise, it is false.
TouchEvent.shiftKey - Web APIs
otherwise, it is false.
TouchList.item() - Web APIs
WebAPITouchListitem
target = document.getelementbyid("target"); target.addeventlistener('touchstart', function(ev) { // if this touchstart event started on element target, // set touch to the first item in the targettouches list; // otherwise set touch to the first item in the touches list var touch; if (ev.targettouches.length >= 1) touch = ev.targettouches.item(0); else touch = ev.touches.item(0); }, false); specifications specification status comment touch events – level 2 draft non-stable version.
TouchList.length - Web APIs
WebAPITouchListlength
target = document.getelementbyid("target"); target.addeventlistener('touchstart', function(ev) { // if this touchstart event started on element target, // set touch to the first item in the targettouches list; // otherwise set touch to the first item in the touches list var touch; if (ev.targettouches.length >= 1) touch = ev.targettouches.item(0); else touch = ev.touches.item(0); }, false); specifications specification status comment touch events – level 2 draft non-stable version.
Touch events - Web APIs
handling canceled touches if the user's finger wanders into browser ui, or the touch otherwise needs to be canceled, the touchcancel event is sent, and we call the handlecancel() function below.
UIEvent.isChar - Web APIs
WebAPIUIEventisChar
syntax var ischar = uievent.ischar; value a boolean which is true if the event produces a character; otherwise false.
URLSearchParams.get() - Web APIs
return value a usvstring if the given search parameter is found; otherwise, null.
VideoTrackList - Web APIs
selectedindex read only the index of the currently selected track, if any, or −1 otherwise.
WebGL2RenderingContext.getFragDataLocation() - Web APIs
return value a glint indicating the assigned color number binding, or -1 otherwise.
WebGLRenderingContext.getActiveUniform() - Web APIs
otherwise, it is 1 (this includes interface blocks instanced with arrays).
WebGLRenderingContext.getAttribLocation() - Web APIs
returns -1 otherwise.
WebGLRenderingContext.getVertexAttrib() - Web APIs
otherwise false.
WebGLRenderingContext.isBuffer() - Web APIs
the webglrenderingcontext.isbuffer() method of the webgl api returns true if the passed webglbuffer is valid and false otherwise.
WebGLRenderingContext.isFramebuffer() - Web APIs
the webglrenderingcontext.isframebuffer() method of the webgl api returns true if the passed webglframebuffer is valid and false otherwise.
WebGLRenderingContext.isProgram() - Web APIs
the webglrenderingcontext.isprogram() method of the webgl api returns true if the passed webglprogram is valid, false otherwise.
WebGLRenderingContext.isRenderbuffer() - Web APIs
the webglrenderingcontext.isrenderbuffer() method of the webgl api returns true if the passed webglrenderbuffer is valid and false otherwise.
WebGLRenderingContext.isShader() - Web APIs
the webglrenderingcontext.isshader() method of the webgl api returns true if the passed webglshader is valid, false otherwise.
WebGLRenderingContext.isTexture() - Web APIs
the webglrenderingcontext.istexture() method of the webgl api returns true if the passed webgltexture is valid and false otherwise.
WebGLRenderingContext - Web APIs
webglrenderingcontext.iscontextlost() returns true if the context is lost, otherwise returns false.
Clearing by clicking - Web APIs
// otherwise, initialize the drawing buffer (the viewport).
Clearing with colors - Web APIs
otherwise, initialize // the drawing buffer (the viewport) and clear the context // with a solid color.
Raining rectangles - Web APIs
// otherwise we won't get any animation.
Compressed texture formats - Web APIs
usage unless otherwise specified, this article applies to both webgl 1 and 2 contexts.
WebGL constants - Web APIs
returns true if it was, false otherwise.
Using WebGL extensions - Web APIs
for example: var float_texture_ext = gl.getextension('oes_texture_float'); the return value is null if the extension is not supported, or an extension object otherwise.
Signaling and video calling - Web APIs
otherwise, the message is broadcast to all users by iterating over the connection list, sending the message to each user.
WebRTC API - Web APIs
this event does not bubble (except where otherwise stated) and is not cancelable (except where otherwise stated).
Using bounded reference spaces - Web APIs
because bounded-floor is a floor-bound reference space, the user starts out on the floor of the space, which is sensible given the real-world implications otherwise.
Fundamentals of WebXR - Web APIs
caves a cave automated virtual environment (cave) is an immersive vr environment in which the scene is projected or otherwise displayed on the walls (as well as possibly the ceiling and/or floor), thus completely surrounding the user with the simulation and allowing them to be immersed in the scene.
WebXR application life cycle - Web APIs
when the time comes (such as when the user exits your app or navigates away from your site), end the xr session; otherwise, continue the loop until the user chooses to exit xr mode.
WebXR permissions and security - Web APIs
otherwise, an appropriate exception is thrown, such as securityerror if the document doesn't have permission to enter immersive mode.
Using the Web Animations API - Web APIs
this means that a keyframe object with three keys will play the middle key 50% of the way through each loop of the animation unless told otherwise.
Basic concepts behind Web Audio API - Web APIs
secondly, signals must be low-pass filtered before sampling, otherwise aliasing occurs.
Web Audio API best practices - Web APIs
user control if your website or application contains sound, you should allow the user control over it, otherwise again, it will become annoying.
Tools for analyzing Web Audio usage - Web APIs
while working on your web audio api code, you may find that you need tools to analyze the graph of nodes you create or to otherwise debug your work.
Web Audio API - Web APIs
tools for analyzing web audio usagewhile working on your web audio api code, you may find that you need tools to analyze the graph of nodes you create or to otherwise debug your work.
Window: beforeunload event - Web APIs
if the user confirms, the browser navigates to the new page, otherwise it cancels the navigation.
Window: error event - Web APIs
bubbles no cancelable no interface event or uievent event handler property onerror the event object is a uievent instance if it was generated from a user interface element, or an event instance otherwise.
Window.find() - Web APIs
WebAPIWindowfind
returns true if the string is found; otherwise, false.
Window.fullScreen - Web APIs
WebAPIWindowfullScreen
syntax isinfullscreen = windowref.fullscreen; with chrome privileges, the property is read-write, otherwise it is read-only.
Privileged features - Web APIs
alwaysontop if on, the new window will always be displayed on top of all other windows (browser windows and otherwise), regardless of whether it is active or not.
window.postMessage() - Web APIs
otherwise, a security hole in the site you trusted to send only trusted messages could then open a cross-site scripting hole in your site.
Window.requestAnimationFrame() - Web APIs
be sure to always use the first argument (or some other method for getting the current time) to calculate how much the animation will progress in a frame, otherwise the animation will run faster on high refresh rate screens.
window.requestIdleCallback() - Web APIs
a timeout option is strongly recommended for required work, as otherwise it's possible multiple seconds will elapse before the callback is fired.
Window.window - Web APIs
WebAPIWindowwindow
otherwise, you'd have to do a manual var window = this; assignment at the top of your script.
WindowOrWorkerGlobalScope.atob() - Web APIs
you can use the btoa() method to encode and transmit data which may otherwise cause communication problems, then transmit it and use the atob() method to decode the data again.
WindowOrWorkerGlobalScope.btoa() - Web APIs
you can use this method to encode data which may otherwise cause communication problems, transmit it, then use the atob() method to decode the data again.
WritableStreamDefaultWriter.releaseLock() - Web APIs
if the associated stream is errored when the lock is released, the writer will appear errored in the same way from now on; otherwise, the writer will appear closed.
WritableStreamDefaultWriter - Web APIs
if the associated stream is errored when the lock is released, the writer will appear errored in the same way from now on; otherwise, the writer will appear closed.
HTML in XMLHttpRequest - Web APIs
otherwise, the file is decoded as utf-8.
XPathException - Web APIs
constants constant value description invalid_expression_err 51 if the expression has a syntax error or otherwise is not a legal expression according to the rules of the specific xpathevaluator or contains specialized extension functions or variables not supported by this implementation.
XREye - Web APIs
WebAPIXREye
none the xrview describes a monoscopic view, or the view otherwise doesn't represent a particular eye's point-of-view.
XRPermissionDescriptor.mode - Web APIs
let xrpermissiondesc = { name: "xr", mode: "immersive-vr" }; 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.mode' in that specification.
XRPermissionDescriptor - Web APIs
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.
XRPermissionStatus.granted - Web APIs
otherwise, typically, one of the other reference space types will be used more often.
XRPose.transform - Web APIs
WebAPIXRPosetransform
if the source is a controller in the user's primary hand, a function is called on the targeted object called primaryaction(); otherwise, it calls the targeted object's offhandaction() function.
XRReferenceSpace.getOffsetReferenceSpace() - Web APIs
in order to use mouse, keyboard, or other input devices to move or otherwise transform objects in the 3d space—or to allow the user to move through the space—you'll need to write some code to read the inputs and move perform the movements.
XRReferenceSpace - Web APIs
otherwise, typically, one of the other reference space types will be used more often.
XRReferenceSpaceType - Web APIs
otherwise, typically, one of the other reference space types will be used more often.
XRRenderStateInit - Web APIs
the default value is otherwise π * 0.5 (half of the value of pi).
XRSession.requestReferenceSpace() - Web APIs
otherwise, typically, one of the other reference space types will be used more often.
XRSession.updateRenderState() - Web APIs
the default value is otherwise π * 0.5 (half of the value of pi).
XRSystem: devicechange event - Web APIs
if there is, the button to enter xr mode is enabled; otherwise it's disabled.
XRView - Web APIs
WebAPIXRView
vec3.cross(vecx, vecy, cubeorientation); vec3.cross(vecy, cubeorientation, vecx); // now compute the transform that teleports the object to the // specified point and save a copy of it to display to the user // later; otherwise we probably wouldn't need to save mousematrix // at all.
XRWebGLLayer.framebuffer - Web APIs
otherwise, this property's value is null.
XRWebGLLayerInit.alpha - Web APIs
otherwise, the color buffer won't have an alpha channel.
XSLTProcessor - Web APIs
if the given node is a document node, you can pass in a full xsl transform or a literal result element transform; otherwise, it must be an <xsl:stylesheet> or <xsl:transform> element.
msPutPropertyEnabled - Web APIs
otherwise, it returns an hresult error code.
msWriteProfilerMark - Web APIs
otherwise, it returns an hresult error code.
Using the aria-valuenow attribute - Accessibility
value string representation of a number possible effects on user agents and assistive technology for elements with role progressbar and scrollbar, assistive technologies should render the actual value as a percentage, calculated as a position on the range from aria-valuemin to aria-valuemax if both are defined, otherwise the actual value with a percent indicator.
ARIA: row role - Accessibility
if the interaction provides for the selection state of individual cells, if left to right and top to botton navigation is provided, or if the user interface allows the rearranging of cell order or otherwise changing individual cell order such as through drag and drop, use grid or treegrid instead.
ARIA: switch role - Accessibility
text in these elements remains visible to the user agent and may be read or otherwise delivered to the user, unless it's expressly hidden using display: none or aria-hidden="true".
ARIA: table role - Accessibility
if the interaction provides for the selection state of individual cells, if left to right and top to bottom navigation is provided, or if the user interface allows the rearranging of cell order or otherwise changing individual cell order such as through drag and drop, use grid or treegrid instead.
ARIA: dialog role - Accessibility
otherwise the focus can be dropped to the beginning of the page.
Basic form hints - Accessibility
uired="false"/> </div> <div> <label for="email">* e-mail:</label> <input type="text" value="email" id="email" aria-required="true"/> </div> </form> the script that validates the form entry would look something like this: var validate = function () { var emailelement = document.getelementbyid(emailfieldid); var valid = emailvalid(formdata.email); // returns true if valid, false otherwise emailelement.setattribute("aria-invalid", !valid); setelementbordercolour(emailelement, valid); // sets the border to red if second arg is false }; providing helpful error messages read how to use aria alerts to enhance forms.
ARIA - Accessibility
it supplements html so that interactions and widgets commonly used in applications can be passed to assistive technologies when there is not otherwise a mechanism.
Implementing a Microsoft Active Accessibility (MSAA) Server - Accessibility
however, nsimageaccessible overrides getaccfirstchild, returning the first area of an image map if there is one, otherwise nsnull.
Understandable - Accessibility
client-side validation is too easy to turn off or otherwise get around, so it can't be relied on alone.
-webkit-line-clamp - CSS: Cascading Style Sheets
in most cases you will also want to set overflow to hidden, otherwise the contents won't be clipped but an ellipsis will still be shown after the specified number of lines.
-webkit-mask-repeat-y - CSS: Cascading Style Sheets
formal definition initial valuerepeatapplies toall elementsinheritednocomputed valuefor <length> the absolute value, otherwise a percentageanimation typediscrete formal syntax repeat | no-repeat | space | round examples using a repeating or non-repeating mask image .exampleone { -webkit-mask-image: url('mask.png'); -webkit-mask-repeat-y: repeat; } .exampletwo { -webkit-mask-image: url('mask.png'); -webkit-mask-repeat-y: no-repeat; } using multiple mask images you can specify a different <repeat-style> fo...
::-webkit-scrollbar - CSS: Cascading Style Sheets
examples .visible-scrollbar, .invisible-scrollbar, .mostly-customized-scrollbar { display: block; width: 10em; overflow: auto; height: 2em; } .invisible-scrollbar::-webkit-scrollbar { display: none; } /* demonstrate a "mostly customized" scrollbar * (won't be visible otherwise if width/height is specified) */ .mostly-customized-scrollbar::-webkit-scrollbar { width: 5px; height: 8px; background-color: #aaa; /* or add it to the track */ } /* add a thumb */ .mostly-customized-scrollbar::-webkit-scrollbar-thumb { background: #000; } <div class="visible-scrollbar"> etiam sagittis sem sed lacus laoreet, eu fermentum eros auctor.
:visited - CSS: Cascading Style Sheets
WebCSS:visited
syntax :visited examples properties that would otherwise have no color or be transparent cannot be modified with :visited.
@font-face - CSS: Cascading Style Sheets
otherwise, the font resource specified using the url() function is downloaded and used.
bleed - CSS: Cascading Style Sheets
WebCSS@pagebleed
otherwise it computes to zero.
max-height - CSS: Cascading Style Sheets
formal definition related at-rule@viewportinitial valueautopercentagesrefer to the height of the initial viewportcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, auto formal syntax <viewport-length>where <viewport-length> = auto | <length-percentage>where <length-percentage> = <length> | <percentage> examples setting viewport max height in pixels @viewport { max-height: 600px; } specifications specification status comment css device adaptationthe definition of '"max-height" descriptor' in that specification.
max-width - CSS: Cascading Style Sheets
formal definition related at-rule@viewportinitial valueautopercentagesrefer to the width of the initial viewportcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, auto formal syntax <viewport-length>where <viewport-length> = auto | <length-percentage>where <length-percentage> = <length> | <percentage> examples setting viewport max width in pixels @viewport { max-width: 600px; } specifications specification status comment css device adaptationthe definition of '"max-width" descriptor' in that specification.
min-height - CSS: Cascading Style Sheets
formal definition related at-rule@viewportinitial valueautopercentagesrefer to the height of the initial viewportcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, auto formal syntax <viewport-length>where <viewport-length> = auto | <length-percentage>where <length-percentage> = <length> | <percentage> examples setting viewport min height in pixels @viewport { min-height: 200px; } specifications specification status comment css device adaptationthe definition of '"min-height" descriptor' in that specification.
min-width - CSS: Cascading Style Sheets
formal definition related at-rule@viewportinitial valueautopercentagesrefer to the width of the initial viewportcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, auto formal syntax <viewport-length>where <viewport-length> = auto | <length-percentage>where <length-percentage> = <length> | <percentage> examples setting viewport min width in pixels @viewport { min-width: 200px; } specifications specification status comment css device adaptationthe definition of '"min-width" descriptor' in that specification.
Detecting CSS animation support - CSS: Cascading Style Sheets
otherwise, we can use javascript to create the desired css animation effects.
Color picker tool - CSS: Cascading Style Sheets
the generated colors you create above can be used anywhere color is used in css and html, unless otherwise noted.
Aligning Items in a Flex Container - CSS: Cascading Style Sheets
you can try this out in the example below, which has a flex container with flex-direction: column yet otherwise is exactly the same as the previous example.
Ordering Flex Items - CSS: Cascading Style Sheets
if you are using a reverse value, or otherwise reordering your items, you should consider whether you actually need to change the logical order in the source.
Variable fonts guide - CSS: Cascading Style Sheets
therefore wherever possible, the appropriate property should be used, with the lower-level syntax of font-variation-settings only being used to set values or axes not available otherwise.
Auto-placement in CSS Grid Layout - CSS: Cascading Style Sheets
otherwise they will stay by default in the order that they are entered in the document source.
CSS grids, logical values, and writing modes - CSS: Cascading Style Sheets
mixed writing modes and grid layout in addition to displaying documents, using the correct writing mode for the language, writing modes can be used creatively within documents that are otherwise ltr.
CSS Grid Layout and Progressive Enhancement - CSS: Cascading Style Sheets
you could start by simply enhancing elements in your design with grid, that could otherwise display using an older method.
Grid template areas - CSS: Cascading Style Sheets
late-areas: "hd hd hd hd hd hd hd hd hd" "sd sd sd main main main main main main" "sd sd sd ft ft ft ft ft ft"; } <div class="wrapper"> <div class="header">header</div> <div class="sidebar">sidebar</div> <div class="content">content</div> <div class="footer">footer</div> </div> the value of grid-template-areas must show a complete grid, otherwise it is invalid (and the property is ignored).
Using CSS gradients - CSS: Cascading Style Sheets
<div class="radial-gradient"></div> div { width: 120px; height: 120px; } .radial-gradient { background: radial-gradient(red 10px, yellow 30%, #1e90ff 50%); } positioning the center of the gradient you can position the center of the gradient with keyterms, percentage, or absolute lengths, length and percentage values repeating if only one is present, otherwise in the order of position from the left and position from the top.
Consistent list indentation - CSS: Cascading Style Sheets
this list item has no marker (otherwise known as a "bullet") and is not yet part of a list itself.
Using CSS counters - CSS: Cascading Style Sheets
the counter's name must not be "none", "inherit", or "initial"; otherwise the declaration is ignored.
CSS Overflow - CSS: Cascading Style Sheets
this is the overflow of painting effects which do not affect layout or otherwise extend the scrollable overflow region, such as box shadows, border images, text decoration, overhanging glyphs, outlines, etc.
CSS values and units - CSS: Cascading Style Sheets
otherwise, the unit identifier is required, is case insensitive, and must come immediately after the numeric part of the value, with no space in-between.
Testing media queries programmatically - CSS: Cascading Style Sheets
this makes our listener perform adjustments based on the current device orientation; otherwise, our code might assume the device is in portrait mode at startup, even if it's actually in landscape mode.
Using media queries - CSS: Cascading Style Sheets
not the not operator is used to negate a media query, returning true if the query would otherwise return false.
Shorthand properties - CSS: Cascading Style Sheets
unset resets the property to its natural value, which means that if the property is naturally inherited it acts like inherit, otherwise it acts like initial.
Value definition syntax - CSS: Cascading Style Sheets
exclamation point (!) the exclamation point multiplier after a group indicates that the group is required, and must produce at least one value; even if the grammar of the items within the group would otherwise allow the entire contents to be omitted, at least one component value must not be omitted.
Visual formatting model - CSS: Cascading Style Sheets
multiple-column layout creates anonymous column boxes around the columns; these also cannot be styled or otherwise targetted.
align-self - CSS: Cascading Style Sheets
otherwise the specified value.animation typediscrete formal syntax auto | normal | stretch | <baseline-position> | <overflow-position>?
aspect-ratio - CSS: Cascading Style Sheets
syntax aspect-ratio: 1 / 1; /* global values */ aspect-ratio: inherit; aspect-ratio: initial; aspect-ratio: unset; values <auto> replaced elements with an intrinsic aspect ratio use that aspect ratio, otherwise the box has no preferred aspect ratio.
background-clip - CSS: Cascading Style Sheets
if the element has no background-image or background-color, this property will only have a visual effect when the border has transparent regions or partially opaque regions (due to border-style or border-image); otherwise, the border masks the difference.
background-position - CSS: Cascading Style Sheets
o ::first-letter and ::first-line.inheritednopercentagesrefer to the size of the background positioning area minus size of background image; size refers to the width for horizontal offsets and to the height for vertical offsetscomputed valuea list, each item consisting of two keywords representing the origin and two offsets from that origin, each given as an absolute length (if given a <length>), otherwise as a percentageanimation typerepeatable list of simple list of length, percentage, or calc formal syntax <bg-position>#where <bg-position> = [ [ left | center | right | top | bottom | <length-percentage> ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ] | [ center | [ left | right ] <length-percentage>?
background - CSS: Cascading Style Sheets
d to the height for vertical offsetsbackground-size: relative to the background positioning areacomputed valueas each of the properties of the shorthand:background-image: as specified, but with <url> values made absolutebackground-position: a list, each item consisting of two keywords representing the origin and two offsets from that origin, each given as an absolute length (if given a <length>), otherwise as a percentagebackground-size: as specified, but with relative lengths converted into absolute lengthsbackground-repeat: a list, each item consisting of two keywords, one per dimensionbackground-origin: as specifiedbackground-clip: as specifiedbackground-attachment: as specifiedbackground-color: computed coloranimation typeas each of the properties of the shorthand:background-color: a colorbackg...
block-size - CSS: Cascading Style Sheets
alues */ block-size: 300px; block-size: 25em; /* <percentage> values */ block-size: 75%; /* keyword values */ block-size: max-content; block-size: min-content; block-size: fit-content(20em); block-size: auto; /* global values */ block-size: inherit; block-size: initial; block-size: unset; if the writing mode is vertically oriented, the value of block-size relates to the width of the element; otherwise, it relates to the height of the element.
border-image-slice - CSS: Cascading Style Sheets
these are repeated, scaled, or otherwise modified in the final border image to match the dimensions of the element.
bottom - CSS: Cascading Style Sheets
WebCSSbottom
formal definition initial valueautoapplies topositioned elementsinheritednopercentagesrefer to the height of the containing blockcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typea length, percentage or calc(); formal syntax <length> | <percentage> | auto examples absolute and fixed positioning this example demonstrates the difference in behavior of the bottom property, when position is absolute versus fixed.
box-shadow - CSS: Cascading Style Sheets
it also applies to ::first-letter.inheritednocomputed valueany length made absolute; any specified color computed; otherwise as specifiedanimation typea shadow list formal syntax none | <shadow>#where <shadow> = inset?
box-sizing - CSS: Cascading Style Sheets
formal definition initial valuecontent-boxapplies toall elements that accept width or heightinheritednocomputed valueas specifiedanimation typediscrete formal syntax content-box | border-box examples box sizes with content-box and border-box this example shows how different box-sizing values alter the rendered size of two otherwise identical elements.
clip-path - CSS: Cascading Style Sheets
WebCSSclip-path
formal definition initial valuenoneapplies toall elements; in svg, it applies to container elements excluding the defs element and all graphics elementsinheritednopercentagesrefer to reference box when specified, otherwise border-boxcomputed valueas specified, but with <url> values made absoluteanimation typeyes, as specified for <basic-shape>, otherwise no formal syntax <clip-source> | [ <basic-shape> | <geometry-box> ] | nonewhere <clip-source> = <url><basic-shape> = <inset()> | <circle()> | <ellipse()> | <polygon()> | <path()><geometry-box> = <shape-box> | fill-box | stroke-box | view-boxwhere <inset()> = inse...
clip - CSS: Cascading Style Sheets
WebCSSclip
formal definition initial valueautoapplies toabsolutely positioned elementsinheritednocomputed valueauto if specified as auto, otherwise a rectangle with four values, each of which is auto if specified as auto or the computed length otherwiseanimation typea rectangle formal syntax <shape> | autowhere <shape> = rect(<top>, <right>, <bottom>, <left>) examples clipping an image css .dotted-border { border: dotted; position: relative; width: 536px; height: 350px; } #top-left, #middle, #bottom-right { position: absolut...
content - CSS: Cascading Style Sheets
WebCSScontent
otherwise, for uri values, the absolute uri; for attr() values, the resulting string; for other keywords, as specified.animation typediscrete formal syntax normal | none | [ <content-replacement> | <content-list> ] [/ <string> ]?where <content-replacement> = <image><content-list> = [ <string> | contents | <image> | <quote> | <target> | <leader()> ]+where <image> = <url> | <image()> | <image-set()> | <ele...
<display-inside> - CSS: Cascading Style Sheets
otherwise it generates a block container box.
display - CSS: Cascading Style Sheets
WebCSSdisplay
otherwise it generates a block container box.
filter - CSS: Cascading Style Sheets
WebCSSfilter
otherwise, discrete interpolation is used.
fit-content() - CSS: Cascading Style Sheets
otherwise it is relative to the available inline size or block size of the laid out box depending on the writing mode.
flex-basis - CSS: Cascading Style Sheets
it sets the size of the content box unless otherwise set with box-sizing.
flex-grow - CSS: Cascading Style Sheets
WebCSSflex-grow
if all sibling items have the same flex grow factor, then all items will receive the same share of remaining space, otherwise it is distributed according to the ratio defined by the different flex grow factors.
font-kerning - CSS: Cascading Style Sheets
in well-kerned fonts, this feature makes character spacing more uniform and pleasant to read than it would otherwise be.
font-style - CSS: Cascading Style Sheets
in general, for a requested angle of 14 degrees or greater, larger angles are prefered; otherwise, smaller angles are preferred (see the spec's font matching section for the precise algorithm).
font - CSS: Cascading Style Sheets
WebCSSfont
lfcomputed valueas each of the properties of the shorthand:font-style: as specifiedfont-variant: as specifiedfont-weight: the keyword or the numerical value as specified, with bolder and lighter transformed to the real valuefont-stretch: as specifiedfont-size: as specified, but with relative lengths converted into absolute lengthsline-height: for percentage and length values, the absolute length, otherwise as specifiedfont-family: as specifiedanimation typeas each of the properties of the shorthand:font-style: discretefont-variant: discretefont-weight: a font weightfont-stretch: a font stretchfont-size: a lengthline-height: either number or lengthfont-family: discrete formal syntax [ [ <'font-style'> | <font-variant-css21> | <'font-weight'> | <'font-stretch'> ]?
grid-column-end - CSS: Cascading Style Sheets
otherwise, this is treated as if the integer 1 had been specified along with the <custom-ident>.
grid-column-start - CSS: Cascading Style Sheets
otherwise, this is treated as if the integer 1 had been specified along with the <custom-ident>.
grid-column - CSS: Cascading Style Sheets
otherwise, this is treated as if the integer 1 had been specified along with the <custom-ident>.
grid-row-end - CSS: Cascading Style Sheets
otherwise, this is treated as if the integer 1 had been specified along with the <custom-ident>.
grid-row-start - CSS: Cascading Style Sheets
otherwise, this is treated as if the integer 1 had been specified along with the <custom-ident>.
grid-row - CSS: Cascading Style Sheets
WebCSSgrid-row
otherwise, this is treated as if the integer 1 had been specified along with the <custom-ident>.
hanging-punctuation - CSS: Cascading Style Sheets
allow-end a stop or comma at the end of a line hangs if it does not otherwise fit prior to justification.
<image> - CSS: Cascading Style Sheets
WebCSSimage
ement(#realid) /* a part of the webpage, referenced with the element() function, if "realid" is an existing id on the page */ image(ltr 'arrow.png#xywh=0,0,16,16', red) /* a section 16x16 section of <url>, starting from the top, left of the original image as long as arrow.png is a supported image, otherwise a solid red swatch.
inline-size - CSS: Cascading Style Sheets
ine-size: 300px; inline-size: 25em; /* <percentage> values */ inline-size: 75%; /* keyword values */ inline-size: max-content; inline-size: min-content; inline-size: fit-content(20em); inline-size: auto; /* global values */ inline-size: inherit; inline-size: initial; inline-size: unset; if the writing mode is vertically oriented, the value of inline-size relates to the height of the element; otherwise, it relates to the width of the element.
left - CSS: Cascading Style Sheets
WebCSSleft
formal definition initial valueautoapplies topositioned elementsinheritednopercentagesrefer to the width of the containing blockcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typea length, percentage or calc(); formal syntax <length> | <percentage> | auto examples positioning elements html <div id="wrap"> <div id="example_1"> <pre> position: absolute; left: 20px; top: 20px; </pre> <p>the only containing element for this div is the main window, so it positions itself in relation to it.</p> </div> <div id="exampl...
line-height - CSS: Cascading Style Sheets
it also applies to ::first-letter and ::first-line.inheritedyespercentagesrefer to the font size of the element itselfcomputed valuefor percentage and length values, the absolute length, otherwise as specifiedanimation typeeither number or length formal syntax normal | <number> | <length> | <percentage> examples basic example /* all rules below have the same resultant line height */ div { line-height: 1.2; font-size: 10pt; } /* number/unitless */ div { line-height: 1.2em; font-size: 10pt; } /* length */ div { line-height: 120%; font-size: 10pt; } /* percentage */ div { font:...
margin-block-end - CSS: Cascading Style Sheets
formal definition initial value0applies tosame as margininheritednopercentagesdepends on layout modelcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typea length formal syntax <'margin-left'> examples setting block end margin html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-rl; margin-block-end: 20px; background-color: #c8c800; } result specifications specification status ...
margin-block-start - CSS: Cascading Style Sheets
formal definition initial value0applies tosame as margininheritednopercentagesdepends on layout modelcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typea length formal syntax <'margin-left'> examples setting block start margin html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; margin-block-start: 20px; background-color: #c8c800; } result specifications specification status...
margin-block - CSS: Cascading Style Sheets
formal definition initial value0applies tosame as margininheritednopercentagesdepends on layout modelcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typediscrete formal syntax <'margin-left'>{1,2} examples setting block start and end margins html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-rl; margin-block: 20px 40px; background-color: #c8c800; } result specifications specificat...
margin-inline-end - CSS: Cascading Style Sheets
formal definition initial value0applies tosame as margininheritednopercentagesdepends on layout modelcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typea length formal syntax <'margin-left'> examples setting inline end margin html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; margin-inline-end: 20px; background-color: #c8c800; } result specifications specification status ...
margin-inline-start - CSS: Cascading Style Sheets
formal definition initial value0applies tosame as margininheritednopercentagesdepends on layout modelcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typea length formal syntax <'margin-left'> examples setting inline start margin html <div> <p class="exampletext">example text</p> </div> css div { background-color: yellow; width: 120px; height: 120px; } .exampletext { writing-mode: vertical-lr; margin-inline-start: 20px; background-color: #c8c800; } result specifications specification stat...
mask-border-slice - CSS: Cascading Style Sheets
these are repeated, scaled, or otherwise modified in the final border image to match the dimensions of the element.
mask-position - CSS: Cascading Style Sheets
terapplies toall elements; in svg, it applies to container elements excluding the defs element and all graphics elementsinheritednopercentagesrefer to size of mask painting area minus size of mask layer image (see the text for background-position)computed valueconsists of two keywords representing the origin and two offsets from that origin, each given as an absolute length (if given a <length>), otherwise as a percentage.animation typerepeatable list of simple list of length, percentage, or calc formal syntax <position>#where <position> = [ [ left | center | right ] | [ top | center | bottom ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]?
mask - CSS: Cascading Style Sheets
WebCSSmask
ayer image (see the text for background-position)computed valueas each of the properties of the shorthand:mask-image: as specified, but with <url> values made absolutemask-mode: as specifiedmask-repeat: consists of two keywords, one per dimensionmask-position: consists of two keywords representing the origin and two offsets from that origin, each given as an absolute length (if given a <length>), otherwise as a percentage.mask-clip: as specifiedmask-origin: as specifiedmask-size: as specified, but with relative lengths converted into absolute lengthsmask-composite: as specifiedanimation typeas each of the properties of the shorthand:mask-image: discretemask-mode: discretemask-repeat: discretemask-position: repeatable list of simple list of length, percentage, or calcmask-clip: discretemask-origin: ...
max-inline-size - CSS: Cascading Style Sheets
if the writing mode is vertically oriented, the value of max-inline-size relates to the maximal height of the element, otherwise it relates to the maximal width of the element.
min-block-size - CSS: Cascading Style Sheets
x; min-block-size: 5em; /* <percentage> values */ min-block-size: 10%; /* keyword values */ min-block-size: max-content; min-block-size: min-content; min-block-size: fit-content(20em); /* global values */ min-block-size: inherit; min-block-size: initial; min-block-size: unset; if the writing mode is vertically oriented, the value of min-block-size relates to the minimum width of the element; otherwise, it relates to the minimum height of the element.
min-inline-size - CSS: Cascading Style Sheets
ine-size: 5em; /* <percentage> values */ min-inline-size: 10%; /* keyword values */ min-inline-size: max-content; min-inline-size: min-content; min-inline-size: fit-content(20em); /* global values */ min-inline-size: inherit; min-inline-size: initial; min-inline-size: unset; if the writing mode is vertically oriented, the value of min-inline-size relates to the minimum height of the element; otherwise, it relates to the minimum width of the element.
offset-anchor - CSS: Cascading Style Sheets
formal definition initial valueautoapplies totransformable elementsinheritednopercentagesrelativetowidthandheightcomputed valuefor <length> the absolute value, otherwise a percentageanimation typea position formal syntax auto | <position>where <position> = [ [ left | center | right ] | [ top | center | bottom ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]?
offset-distance - CSS: Cascading Style Sheets
formal definition initial value0applies totransformable elementsinheritednopercentagesrefer to the total path lengthcomputed valuefor <length> the absolute value, otherwise a percentageanimation typea length, percentage or calc(); formal syntax <length-percentage>where <length-percentage> = <length> | <percentage> examples using offset-distance in an animation the motion aspect in css motion path typically comes from animating the offset-distance property.
offset-position - CSS: Cascading Style Sheets
formal definition initial valueautoapplies totransformable elementsinheritednopercentagesrefertosizeofcontainingblockcomputed valuefor <length> the absolute value, otherwise a percentageanimation typea position formal syntax auto | <position>where <position> = [ [ left | center | right ] | [ top | center | bottom ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]?
offset - CSS: Cascading Style Sheets
WebCSSoffset
ath: noneoffset-distance: 0offset-anchor: autooffset-rotate: autoapplies totransformable elementsinheritednopercentagesas each of the properties of the shorthand:offset-position: refertosizeofcontainingblockoffset-distance: refer to the total path lengthoffset-anchor: relativetowidthandheightcomputed valueas each of the properties of the shorthand:offset-position: for <length> the absolute value, otherwise a percentageoffset-path: as specifiedoffset-distance: for <length> the absolute value, otherwise a percentageoffset-anchor: for <length> the absolute value, otherwise a percentageoffset-rotate: as specifiedanimation typeas each of the properties of the shorthand:offset-position: a positionoffset-path: as <angle>, <basic-shape> or <path()>offset-distance: a length, percentage or calc();offset-anch...
overflow - CSS: Cascading Style Sheets
WebCSSoverflow
otherwise, both overflow-x and overflow-y are set to the same value.
perspective-origin - CSS: Cascading Style Sheets
formal definition initial value50% 50%applies totransformable elementsinheritednopercentagesrefer to the size of bounding boxcomputed valuefor <length> the absolute value, otherwise a percentageanimation typesimple list of length, percentage, or calc formal syntax <position>where <position> = [ [ left | center | right ] | [ top | center | bottom ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]?
place-self - CSS: Cascading Style Sheets
otherwise the specified value.justify-self: as specifiedanimation typediscrete formal syntax <'align-self'> <'justify-self'>?
quotes - CSS: Cascading Style Sheets
WebCSSquotes
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.
revert - CSS: Cascading Style Sheets
WebCSSrevert
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.
right - CSS: Cascading Style Sheets
WebCSSright
formal definition initial valueautoapplies topositioned elementsinheritednopercentagesrefer to the width of the containing blockcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typea length, percentage or calc(); formal syntax <length> | <percentage> | auto examples absolute and relative positioning using right html <div id="relative">relatively positioned</div> <div id="absolute">absolutely positioned</div> css #relative { width: 100px; height: 100px; background-color: #ffc7e4; position: relative; top: 20px; left: 20px; } #absolute ...
<string> - CSS: Cascading Style Sheets
WebCSSstring
importantly, certain characters which would otherwise be invalid can be escaped with a backslash.
table-layout - CSS: Cascading Style Sheets
cells use the overflow property to determine whether to clip any overflowing content, but only if the table has a known width; otherwise, they won't overflow the cells.
text-decoration-skip-ink - CSS: Cascading Style Sheets
that is, they are interrupted where they would otherwise cross over a glyph.
top - CSS: Cascading Style Sheets
WebCSStop
formal definition initial valueautoapplies topositioned elementsinheritednopercentagesrefer to the height of the containing blockcomputed valueif specified as a length, the corresponding absolute length; if specified as a percentage, the specified value; otherwise, autoanimation typea length, percentage or calc(); formal syntax <length> | <percentage> | auto examples body { background: beige; } div { position: absolute; top: 10%; right: 40%; bottom: 20%; left: 15%; background: gold; border: 1px solid blue; } <div>the size of this content is determined by the position of its edges.</div> specifications specification sta...
transform-origin - CSS: Cascading Style Sheets
words are convenience shorthands and match the following <percentage> values: keyword value left 0% center 50% right 100% top 0% bottom 100% formal definition initial value50% 50% 0applies totransformable elementsinheritednopercentagesrefer to the size of bounding boxcomputed valuefor <length> the absolute value, otherwise a percentageanimation typesimple list of length, percentage, or calc formal syntax [ <length-percentage> | left | center | right | top | bottom ] | [ [ <length-percentage> | left | center | right ] && [ <length-percentage> | top | center | bottom ] ] <length>?where <length-percentage> = <length> | <percentage> examples code sample transform: none; <...
user-select - CSS: Cascading Style Sheets
auto the used value of auto is determined as follows: on the ::before and ::after pseudo elements, the used value is none if the element is an editable element, the used value is contain otherwise, if the used value of user-select on the parent of this element is all, the used value is all otherwise, if the used value of user-select on the parent of this element is none, the used value is none otherwise, the used value is text text the text can be selected by the user.
vertical-align - CSS: Cascading Style Sheets
it also applies to ::first-letter and ::first-line.inheritednopercentagesrefer to the line-height of the element itselfcomputed valuefor percentage and length values, the absolute length, otherwise the keyword as specifiedanimation typea length formal syntax baseline | sub | super | text-top | text-bottom | middle | top | bottom | <percentage> | <length> examples basic example html <div>an <img src="https://udn.realityripple.com/samples/b4/e1f0faff5b.svg" alt="link" width="32" height="32" /> image with a default alignment.</div> <div>an <img class="top" src="https://udn.realityripple.
will-change - CSS: Cascading Style Sheets
but adding will-change directly in a stylesheet implies that the targeted elements are always a few moments away from changing and the browser will keep the optimizations for much longer time than it would have otherwise.
regexp:replace() - EXSLT
WebEXSLTregexpreplace
otherwise only the first occurrence is replaced.
set:has-same-node() - EXSLT
returns true if the two node-sets have any nodes in common; otherwise false.
Getting Started - Developer guides
keep the method all-capitals as per the http standard, otherwise some browsers (like firefox) might not process the request.
Video player styling basics - Developer guides
there are some browser-specific properties that need to be set to ensure that firefox and chrome use the required colour for the progress bar: .controls progress::-moz-progress-bar { background-color:#0095dd; } .controls progress::-webkit-progress-value { background-color:#0095dd; } although the same properties are set to the same value, these rules need to be defined separately, otherwise chrome ignores it.
Event developer guide - Developer guides
WebGuideEvents
the window in which the browser is displayed can trigger events; for example, change size if the user maximizes the window or otherwise changes it.
Applying color to HTML elements using CSS - HTML: Hypertext Markup Language
the hsl() css function is very similar to the rgb() function in usage otherwise.
disabled - HTML: Hypertext Markup Language
if declared on an <optgroup>, the select is still interactive (unless otherwise disabled), but none of the items in the option group are selectable.
HTML attribute: minlength - HTML: Hypertext Markup Language
this value must be less than or equal to the value of maxlength, otherwise the value will never be valid, as it is impossible to meet both criteria.
Date and time formats used in HTML - HTML: Hypertext Markup Language
otherwise, the time zone string is constructed as follows: a character indicating the sign of the offset: the plus character ("+", or u+002b) for time zones to the east of the prime meridian or the minus character ("-", or u+002d) for time zones to the west of the prime meridian.
<b>: The Bring Attention To element - HTML: Hypertext Markup Language
WebHTMLElementb
the html bring attention to element (<b>) is used to draw the reader's attention to the element's contents, which are not otherwise granted special importance.
<button>: The Button element - HTML: Hypertext Markup Language
WebHTMLElementbutton
otherwise they will try to submit form data and to load the (nonexistent) response, possibly destroying the current state of the document.
<dfn>: The Definition element - HTML: Hypertext Markup Language
WebHTMLElementdfn
otherwise, the text content of the <dfn> element is the term being defined.
<figure>: The Figure with Optional Caption element - HTML: Hypertext Markup Language
WebHTMLElementfigure
implicit aria role figure permitted aria roles with no figcaption descendant: any, otherwise no permitted roles dom interface htmlelement attributes this element only includes the global attributes.
<form> - HTML: Hypertext Markup Language
WebHTMLElementform
permitted parents any element that accepts flow content implicit aria role form if the form has an accessible name, otherwise no corresponding role permitted aria roles search, none or presentation dom interface htmlformelement attributes this element includes the global attributes.
<head>: The Document Metadata (Header) element - HTML: Hypertext Markup Language
WebHTMLElementhead
otherwise, one or more elements of metadata content where exactly one is a <title> element.
<hgroup> - HTML: Hypertext Markup Language
WebHTMLElementhgroup
in other words, the <hgroup> element prevents any of its secondary <h1>–<h6> children from creating separate sections of their own in the outline—as those <h1>–<h6> elements otherwise normally would if they were not children of any <hgroup>.
<input type="checkbox"> - HTML: Hypertext Markup Language
WebHTMLElementinputcheckbox
if the value is not otherwise specified, it is the string on by default.
<input type="date"> - HTML: Hypertext Markup Language
WebHTMLElementinputdate
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.
<input type="datetime-local"> - HTML: Hypertext Markup Language
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.
<input type="email"> - HTML: Hypertext Markup Language
WebHTMLElementinputemail
in its most basic form, an email input can be implemented like this: <input id="emailaddress" type="email"> notice that it's considered valid when empty and when a single validly-formatted e-mail address is entered, but is otherwise not considered valid.
<input type="month"> - HTML: Hypertext Markup Language
WebHTMLElementinputmonth
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.
<input type="radio"> - HTML: Hypertext Markup Language
WebHTMLElementinputradio
if the value is not otherwise specified, it is the string on by default.
<input type="range"> - HTML: Hypertext Markup Language
WebHTMLElementinputrange
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.
<input type="reset"> - HTML: Hypertext Markup Language
WebHTMLElementinputreset
buttons such as reset don't have a value otherwise.
<input type="search"> - HTML: Hypertext Markup Language
WebHTMLElementinputsearch
you must remember to set a name for your input, otherwise nothing will be submitted.
<input type="submit"> - HTML: Hypertext Markup Language
WebHTMLElementinputsubmit
buttons do not have a true value otherwise.
<input type="text"> - HTML: Hypertext Markup Language
WebHTMLElementinputtext
you must remember to include name attribute on the <input> element, otherwise the text field's value won't be included with the submitted data.
<input type="url"> - HTML: Hypertext Markup Language
WebHTMLElementinputurl
in its most basic form, a url input can be implemented like this: <input id="myurl" name="myurl" type="url"> notice that it's considered valid when empty and when a single validly-formatted url address is entered, but is otherwise not considered valid.
<input type="week"> - HTML: Hypertext Markup Language
WebHTMLElementinputweek
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.
<link>: The External Resource Link element - HTML: Hypertext Markup Language
WebHTMLElementlink
this is a user agent’s default behavior, if no policy is otherwise specified.
<mark>: The Mark Text element - HTML: Hypertext Markup Language
WebHTMLElementmark
otherwise, <mark> indicates a portion of the document's content which is likely to be relevant to the user's current activity.
<noscript> - HTML: Hypertext Markup Language
WebHTMLElementnoscript
otherwise: flow content or phrasing content.
<ol>: The Ordered List element - HTML: Hypertext Markup Language
WebHTMLElementol
for example: steps in a recipe turn-by-turn directions the list of ingredients in decreasing proportion on nutrition information labels to determine which list to use, try changing the order of the list items; if the meaning changes, use the <ol> element — otherwise you can use <ul>.
<output>: The Output element - HTML: Hypertext Markup Language
WebHTMLElementoutput
for a space-separated list of other elements’ ids, indicating that those elements contributed input values to (or otherwise affected) the calculation.
<script>: The Script element - HTML: Hypertext Markup Language
WebHTMLElementscript
it is critical to provide a nonce that cannot be guessed as bypassing a resource's policy is otherwise trivial.
<section>: The Generic Section element - HTML: Hypertext Markup Language
WebHTMLElementsection
implicit aria role region if the element has an accessible name, otherwise no corresponding role permitted aria roles alert, alertdialog, application, banner, complementary, contentinfo, dialog, document, feed, log, main, marquee, navigation, none, note, presentation, search, status, tabpanel dom interface htmlelement attributes this element only includes the global attributes.
<select>: The HTML Select element - HTML: Hypertext Markup Language
WebHTMLElementselect
implicit aria role combobox with no multiple attribute and no size attribute greater than 1, otherwise listbox permitted aria roles menu with no multiple attribute and no size attribute greater than 1, otherwise no role permitted dom interface htmlselectelement specifications specification status comments html living standardthe definition of '<select>' in that specification.
<style>: The Style Information element - HTML: Hypertext Markup Language
WebHTMLElementstyle
it is critical to provide a nonce that cannot be guessed as bypassing a resource’s policy is otherwise trivial.
<sub>: The Subscript element - HTML: Hypertext Markup Language
WebHTMLElementsub
denoting the number of atoms of a given element within a chemical formula (such as every developer's best friend, c8h10n4o2, otherwise known as "caffeine").
<tr>: The Table Row element - HTML: Hypertext Markup Language
WebHTMLElementtr
end tag may be omitted if the <tr> element is immediately followed by a <tr> element, or if the row is the last element in its parent table group (<thead>, <tbody> or <tfoot>) element permitted parents <table> (only if the table has no child <tbody> element, and even then only after any <caption>, <colgroup>, and <thead> elements); otherwise, the parent must be <thead>, <tbody> or <tfoot> implicit aria role row permitted aria roles any dom interface htmltablerowelement specifications specification status comment html living standardthe definition of 'tr element' in that specification.
<ul>: The Unordered List element - HTML: Hypertext Markup Language
WebHTMLElementul
as a rule of thumb to determine which one to use, try changing the order of the list items; if the meaning is changed, the <ol> element should be used, otherwise you can use <ul>.
<var>: The Variable element - HTML: Hypertext Markup Language
WebHTMLElementvar
in this example, variable names are rendered using bold courier if it's available, otherwise it falls back to the default monospace font.
<wbr> - HTML: Hypertext Markup Language
WebHTMLElementwbr
the html <wbr> element represents a word break opportunity—a position within text where the browser may optionally break a line, though its line-breaking rules would not otherwise create a break at that location.
tabindex - HTML: Hypertext Markup Language
these elements have built-in roles and states that communicate status to the accessibility that would otherwise have to be managed by aria.
Link types: noreferrer - HTML: Hypertext Markup Language
the noreferrer keyword for the rel attribute of the <a>, <area>, and <form> elements instructs the browser, when navigating to the target resource, to omit the referer header and otherwise leak no referrer information — and additionally to behave as if the noopener keyword were also specified.
Link types - HTML: Hypertext Markup Language
otherwise, the link defines an alternative page, of one of these types: for another medium, like a handheld device (if the media attribute is set) in another language (if the hreflang attribute is set), in another format, such as a pdf (if the type attribute is set) a combination of these <a>, <area>, <link> <form> archives define...
Using the application cache - HTML: Hypertext Markup Language
important: do not specify the manifest itself in the cache manifest file, otherwise it will be nearly impossible to inform the browser a new manifest is available.
Data URLs - HTTP
otherwise, you can specify base64 to embed base64-encoded binary data.
Identifying resources on the Web - HTTP
otherwise it is mandatory.
Configuring servers for Ogg media - HTTP
it must return 206: partial content to all byte range requests; otherwise, browsers can't be sure you actually support byte range requests.
Content negotiation - HTTP
the default value identity is at the lowest priority (unless otherwise declared).
Age - HTTP
WebHTTPHeadersAge
if it is age: 0, it was probably just fetched from the origin server; otherwise it is usually calculated as a difference between the proxy's current date and the date general header included in the http response.
CSP: base-uri - HTTP
it is critical to provide an unguessable nonce, as bypassing a resource’s policy is otherwise trivial.
CSP: child-src - HTTP
it is critical to provide an unguessable nonce, as bypassing a resource’s policy is otherwise trivial.
CSP: connect-src - HTTP
it is critical to provide an unguessable nonce, as bypassing a resource’s policy is otherwise trivial.
CSP: default-src - HTTP
it is critical to provide an unguessable nonce, as bypassing a resource’s policy is otherwise trivial.
CSP: font-src - HTTP
it is critical to provide an unguessable nonce, as bypassing a resource’s policy is otherwise trivial.
CSP: form-action - HTTP
it is critical to provide an unguessable nonce, as bypassing a resource’s policy is otherwise trivial.
CSP: frame-src - HTTP
it is critical to provide an unguessable nonce, as bypassing a resource’s policy is otherwise trivial.
CSP: img-src - HTTP
it is critical to provide an unguessable nonce, as bypassing a resource’s policy is otherwise trivial.
CSP: manifest-src - HTTP
it is critical to provide an unguessable nonce, as bypassing a resource’s policy is otherwise trivial.
CSP: media-src - HTTP
it is critical to provide an unguessable nonce, as bypassing a resource’s policy is otherwise trivial.
CSP: navigate-to - HTTP
it is critical to provide an unguessable nonce, as bypassing a resource’s policy is otherwise trivial.
CSP: object-src - HTTP
it is critical to provide an unguessable nonce, as bypassing a resource’s policy is otherwise trivial.
CSP: prefetch-src - HTTP
it is critical to provide an unguessable nonce, as bypassing a resource’s policy is otherwise trivial.
CSP: script-src-attr - HTTP
it is critical to provide an unguessable nonce, as bypassing a resource’s policy is otherwise trivial.
CSP: script-src-elem - HTTP
it is critical to provide an unguessable nonce, as bypassing a resource’s policy is otherwise trivial.
CSP: script-src - HTTP
it is critical to provide an unguessable nonce, as bypassing a resource’s policy is otherwise trivial.
CSP: style-src-attr - HTTP
it is critical to provide an unguessable nonce, as bypassing a resource’s policy is otherwise trivial.
CSP: style-src-elem - HTTP
it is critical to provide an unguessable nonce, as bypassing a resource’s policy is otherwise trivial.
CSP: style-src - HTTP
it is critical to provide an unguessable nonce, as bypassing a resource’s policy is otherwise trivial.
CSP: worker-src - HTTP
it is critical to provide an unguessable nonce, as bypassing a resource’s policy is otherwise trivial.
Content-Security-Policy-Report-Only - HTTP
the csp report-uri directive should be used with this header, otherwise this header will be an expensive no-op machine.
Expect - HTTP
WebHTTPHeadersExpect
the only expectation defined in the specification is expect: 100-continue, to which the server shall respond with: 100 if the information contained in the header is sufficient to cause an immediate success, 417 (expectation failed) if it cannot meet the expectation; or any other 4xx status otherwise.
Index - HTTP
WebHTTPHeadersIndex
105 timing-allow-origin cors, http, reference, timing-allow-origin, header the timing-allow-origin response header specifies origins that are allowed to see values of attributes retrieved via features of the resource timing api, which would otherwise be reported as zero due to cross-origin restrictions.
Public-Key-Pins-Report-Only - HTTP
this directive should be used with this header, otherwise this header will be a no-op.
Timing-Allow-Origin - HTTP
the timing-allow-origin response header specifies origins that are allowed to see values of attributes retrieved via features of the resource timing api, which would otherwise be reported as zero due to cross-origin restrictions.
HTTP Index - HTTP
WebHTTPIndex
186 timing-allow-origin cors, http, reference, timing-allow-origin, header the timing-allow-origin response header specifies origins that are allowed to see values of attributes retrieved via features of the resource timing api, which would otherwise be reported as zero due to cross-origin restrictions.
501 Not Implemented - HTTP
WebHTTPStatus501
a 501 response is cacheable by default; that is, unless caching headers instruct otherwise.
A re-introduction to JavaScript (JS tutorial) - JavaScript
but they do still exist — otherwise, the adder functions would be unable to work.
About JavaScript - JavaScript
objects are created programmatically in javascript, by attaching methods and properties to otherwise empty objects at run time, as opposed to the syntactic class definitions common in compiled languages like c++ and java.
Indexed collections - JavaScript
otherwise, an array with a single element (the provided value) will be created.
Loops and iteration - JavaScript
make sure the condition in a loop eventually becomes false—otherwise, the loop will never terminate!
Meta programming - JavaScript
eflect.apply(math.floor, undefined, [1.75]) // 1 reflect.apply(string.fromcharcode, undefined, [104, 101, 108, 108, 111]) // "hello" reflect.apply(regexp.prototype.exec, /ab/, ['confabulation']).index // 4 reflect.apply(''.charat, 'ponies', [3]) // "i" checking if property definition has been successful with object.defineproperty, which returns an object if successful, or throws a typeerror otherwise, you would use a try...catch block to catch any error that occurred while defining a property.
JavaScript modules - JavaScript
we mentioned this before, but to reiterate: .js files need to be loaded with a mime-type of text/javascript (or another javascript-compatible mime-type, but text/javascript is recommended), otherwise you'll get a strict mime type checking error like "the server responded with a non-javascript mime type".
Regular expressions - JavaScript
similarly, if you're writing a regular expression literal and need to match a slash ("/"), you need to escape that (otherwise, it terminates the pattern).
Using Promises - JavaScript
you might see this expressed with arrow functions instead: dosomething() .then(result => dosomethingelse(result)) .then(newresult => dothirdthing(newresult)) .then(finalresult => { console.log(`got the final result: ${finalresult}`); }) .catch(failurecallback); important: always return results, otherwise callbacks won't catch the result of a previous promise (with arrow functions () => x is short for () => { return x; }).
Working with objects - JavaScript
mber o.b — a getter that returns o.a plus 1 o.c — a setter that sets the value of o.a to half of the value o.c is being set to please note that function names of getters and setters defined in an object literal using "[gs]et property()" (as opposed to __define[gs]etter__ ) are not the names of the getters themselves, even though the [gs]et propertyname(){ } syntax may mislead you to think otherwise.
Inheritance and the prototype chain - JavaScript
otherwise, if the __proto__ of dosomeinstancing does not have the property, then the __proto__ of the __proto__ of dosomeinstancing is checked for the property.
SyntaxError: test for equality (==) mistyped as assignment (=)? - JavaScript
for example: if ((x = y)) { // do the right thing } otherwise, you probably meant to use a comparison operator (e.g.
RangeError: invalid array length - JavaScript
otherwise, you might want to clamp the length before setting the length property, or using it as argument of the constructor.
SyntaxError: missing : after property id - JavaScript
otherwise the property name can't be computed: var obj = { 'b'+'ar': 'foo' }; // syntaxerror: missing : after property id put the expression in brackets []: var obj = { ['b'+'ar']: 'foo' }; ...
arguments.callee - JavaScript
1 : arguments.callee(n - 1) * n; }); however, this was actually a really bad solution as this (in conjunction with other arguments, callee, and caller issues) make inlining and tail recursion impossible in the general case (you can achieve it in select cases through tracing, etc., but even the best code is suboptimal due to checks that would not otherwise be necessary.) the other major issue is that the recursive call will get a different this value, e.g.: var global = this; var sillyfunction = function(recursed) { if (!recursed) { return arguments.callee(true); } if (this !== global) { alert('this is: ' + this); } else { alert('this is the global'); } } sillyfunction(); ecmascript 3 resolved these issues by all...
Functions - JavaScript
if so, it is used; otherwise, some other action is taken.
Array.prototype.reduce() - JavaScript
otherwise, it starts from index 1.
Array.prototype.map() - JavaScript
otherwise, the value undefined will be used as its this value.
Array - JavaScript
array.isarray() returns true if the argument is an array, or false otherwise.
ArrayBuffer.isView() - JavaScript
return value true if the given argument is one of the arraybuffer views; otherwise, false.
ArrayBuffer - JavaScript
returns false otherwise.
Date.prototype.setYear() - JavaScript
otherwise, the year for dateobj is set to yearvalue.
Error - JavaScript
otherwise, old versions of babel and other transpilers will not correctly handle the following code without additional configuration.
FinalizationRegistry - JavaScript
cleanup callbacks may be useful for reducing memory usage across the course of a program, but are unlikely to be useful otherwise.
Function.prototype.apply() - JavaScript
const array = ['a', 'b']; const elements = [0, 1, 2]; array.push.apply(array, elements); console.info(array); // ["a", "b", 0, 1, 2] using apply and built-in functions clever usage of apply allows you to use built-in functions for some tasks that would probably have otherwise been written by looping over the array values.
Function.caller - JavaScript
description if the function f was invoked by the top level code, the value of f.caller is null, otherwise it's the function that called f.
Map.prototype.forEach() - JavaScript
otherwise, the value undefined will be passed for use as its this value.
Map.prototype.has() - JavaScript
return value true if an element with the specified key exists in the map object; otherwise false.
Math.acos() - JavaScript
return value the arccosine (angle in radians) of the given number if it's between -1 and 1; otherwise, nan.
Math.asin() - JavaScript
return value the arcsine (in radians) of the given number if it's between -1 and 1; otherwise, nan.
Math.sign() - JavaScript
otherwise, nan is returned.
Number.MAX_VALUE - JavaScript
if the result is less than or equal to max_value, the func1 function is called; otherwise, the func2 function is called.
Number.MIN_VALUE - JavaScript
if the result is greater than or equal to min_value, the func1 function is called; otherwise, the func2 function is called.
Number.isInteger() - JavaScript
description if the target value is an integer, return true, otherwise return false.
Number.isNaN() - JavaScript
return value true if the given value is nan and its type is number; otherwise, false.
Object() constructor - JavaScript
otherwise, it will return an object of a type that corresponds to the given value.
Object.freeze() - JavaScript
use the pattern on a case-by-case basis based on your design when you know the object contains no cycles in the reference graph, otherwise an endless loop will be triggered.
Object.getOwnPropertyDescriptor() - JavaScript
return value a property descriptor of the given property if it exists on the object, undefined otherwise.
Object.isSealed() - JavaScript
description returns true if the object is sealed, otherwise false.
Object.setPrototypeOf() - JavaScript
otherwise, this method changes the [[prototype]] of obj to the new value.
Object - JavaScript
otherwise, it will return an object of a type that corresponds to the given value.
Promise.resolve() - JavaScript
has a "then" method), the returned promise will "follow" that thenable, adopting its eventual state; otherwise the returned promise will be fulfilled with the value.
Promise - JavaScript
has a then method), the returned promise will "follow" that thenable, adopting its eventual state; otherwise the returned promise will be fulfilled with the value.
handler.setPrototypeOf() - JavaScript
return value the setprototypeof() method returns true if the [[prototype]] was successfully changed, otherwise false.
Reflect.defineProperty() - JavaScript
examples using reflect.defineproperty() let obj = {} reflect.defineproperty(obj, 'x', {value: 7}) // true obj.x // 7 checking if property definition has been successful with object.defineproperty, which returns an object if successful, or throws a typeerror otherwise, you would use a try...catch block to catch any error that occurred while defining a property.
Reflect.setPrototypeOf() - JavaScript
it sets the prototype (i.e., the internal [[prototype]] property) of a specified object to another object or to null, and returns true if the operation was successful, or false otherwise.
Reflect - JavaScript
returns a property descriptor of the given property if it exists on the object, undefined otherwise.
RegExp.prototype[@@search]() - JavaScript
otherwise, it returns -1.
RegExp.prototype.global - JavaScript
property attributes of regexp.prototype.global writable no enumerable no configurable yes description the value of global is a boolean and true if the "g" flag was used; otherwise, false.
RegExp.prototype.ignoreCase - JavaScript
property attributes of regexp.prototype.ignorecase writable no enumerable no configurable yes description the value of ignorecase is a boolean and true if the "i" flag was used; otherwise, false.
RegExpInstance.lastIndex - JavaScript
otherwise, lastindex is set to the next position following the most recent match.
RegExp.prototype.multiline - JavaScript
property attributes of regexp.prototype.multiline writable no enumerable no configurable yes description the value of multiline is a boolean and is true if the "m" flag was used; otherwise, false.
RegExp.$1-$9 - JavaScript
regexp.$1 : '0'; number; // "24" please note that any operation involving the usage of other regular expressions between a re.test(str) call and the regexp.$n property, might have side effects, so that accessing these special properties should be done instantly, otherwise the result might be unexpected.
RegExp.prototype.sticky - JavaScript
property attributes of regexp.prototype.sticky writable no enumerable no configurable yes description the value of sticky is a boolean and true if the "y" flag was used; otherwise, false.
RegExp.prototype.test() - JavaScript
otherwise, false.
RegExp.prototype.unicode - JavaScript
property attributes of regexp.prototype.unicode writable no enumerable no configurable yes description the value of unicode is a boolean and true if the "u" flag was used; otherwise false.
Set.prototype.delete() - JavaScript
return value returns true if value was successfully removed from myset; otherwise false.
Set.prototype.forEach() - JavaScript
otherwise, the value undefined will be passed for use as its this value.
Set.prototype.has() - JavaScript
return value returns true if an element with the specified value exists in the set object; otherwise false.
String.prototype.endsWith() - JavaScript
return value true if the given characters are found at the end of the string; otherwise, false.
String.prototype.includes() - JavaScript
(defaults to 0.) return value true if the search string is found anywhere within the given string; otherwise, false if not.
String.prototype.matchAll() - JavaScript
the regexp object must have the /g flag, otherwise a typeerror will be thrown.
String.prototype.replaceAll() - JavaScript
syntax const newstr = str.replaceall(regexp|substr, newsubstr|function) when using a `regexp` you must have to set the global ("g") flag; otherwise, it will throw a typeerror: "replaceall must be called with a global regexp".
String.prototype.startsWith() - JavaScript
return value true if the given characters are found at the beginning of the string; otherwise, false.
Symbol.keyFor() - JavaScript
return value a string representing the key for the given symbol if one is found on the global registry; otherwise, undefined.
Symbol - JavaScript
otherwise a new symbol gets created in the global symbol registry with key.
TypedArray.prototype.forEach() - JavaScript
otherwise, the value undefined will be passed for use as its this value.
TypedArray.prototype.map() - JavaScript
otherwise, the value undefined will be passed for use as its this value.
WeakMap.prototype.has() - JavaScript
return value boolean returns true if an element with the specified key exists in the weakmap object; otherwise false.
WeakSet.prototype.has() - JavaScript
return value boolean returns true if an element with the specified value exists in the weakset object; otherwise false.
WebAssembly.compile() - JavaScript
this function is useful if it is necessary to a compile a module before it can be instantiated (otherwise, the webassembly.instantiate() function should be used).
WebAssembly.compileStreaming() - JavaScript
this function is useful if it is necessary to a compile a module before it can be instantiated (otherwise, the webassembly.instantiatestreaming() function should be used).
isNaN() - JavaScript
return value true if the given value is nan; otherwise, false.
parseInt() - JavaScript
if no signs are found, the algorithm moves to the following step; otherwise, it removes the sign and runs the number-parsing on the rest of the string.
Greater than (>) - JavaScript
the greater than operator (>) returns true if the left operand is greater than the right operand, and false otherwise.
Greater than or equal (>=) - JavaScript
the greater than or equal operator (>=) returns true if the left operand is greater than or equal to the right operand, and false otherwise.
Less than or equal (<=) - JavaScript
the less than or equal operator (<=) returns true if the left operand is less than or equal to the right operand, and false otherwise.
Logical OR assignment (||=) - JavaScript
if an empty string is returned (a falsy value), ||= must be used, otherwise you want to use the ??= operator (for null or undefined return values).
Nullish coalescing operator (??) - JavaScript
the nullish coalescing operator (??) is a logical operator that returns its right-hand side operand when its left-hand side operand is null or undefined, and otherwise returns its left-hand side operand.
Spread syntax (...) - JavaScript
without spread syntax, this is done as: const arr1 = [0, 1, 2]; const arr2 = [3, 4, 5]; // append all items from arr2 onto arr1 arr1 = arr1.concat(arr2); with spread syntax this becomes: let arr1 = [0, 1, 2]; let arr2 = [3, 4, 5]; arr1 = [...arr1, ...arr2]; // arr1 is now [0, 1, 2, 3, 4, 5] // note: not to use const otherwise, it will give typeerror (invalid assignment) array.prototype.unshift() is often used to insert an array of values at the start of an existing array.
Strict equality (===) - JavaScript
otherwise, compare the two operand's values: numbers must have the same numeric values.
new.target - JavaScript
in ordinary functions, it refers to the function itself, assuming it was invoked via the new operator; otherwise new.target is undefined.
this - JavaScript
otherwise, * // the result of the expression is the object * // currently bound to |this| * // (i.e., the common case most usually seen).
with - JavaScript
otherwise a referenceerror is thrown.
Strict mode - JavaScript
assignments, which would accidentally create global variables, instead throw an error in strict mode: 'use strict'; // assuming no global variable mistypedvariable exists mistypevariable = 17; // this line throws a referenceerror due to the // misspelling of variable second, strict mode makes assignments which would otherwise silently fail to throw an exception.
<mfrac> - MathML
WebMathMLElementmfrac
otherwise, if set to false (which is the default value), numerator and denominator are on top of each other.
<mmultiscripts> - MathML
prescripts are optional and are separated by the empty tag <mprescripts/> (only one <mprescripts /> element is allowed, otherwise you will get an duplicatemprescripts error in the error console and "invalid-markup" in your rendering).
<mo> - MathML
WebMathMLElementmo
the default value is true if stretchy is set to true and otherwise false.
<semantics> - MathML
the <semantics> element acts as a container element associating annotations and must have child elements (it will raise an invalid markup error otherwise).
Performance fundamentals - Web Performance
in addition, transforms give you capabilities you might not otherwise have.
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.
Mobile first - Progressive web apps (PWAs)
i had to make sure both of these were not direct children of the <article>, otherwise the following would not work: #bottom, #top { font-size: 0.8em; position:absolute; right: 1em; text-decoration: none; } #top { color: white; top: 0.5em; } #bottom { bottom: 0.5em; } i also set their parents to be positioned relatively, so they would become the positioning contexts of the absolutely positioned elements (you don't want them to be positioned relative to the <body> ...
bias - SVG: Scalable Vector Graphics
WebSVGAttributebias
this allows representation of values that would otherwise be clamped to 0 or 1.
enable-background - SVG: Scalable Vector Graphics
otherwise, there is no current background image canvas, so graphics elements are only rendered onto the target device.
fill-rule - SVG: Scalable Vector Graphics
otherwise, it is inside.
glyph-orientation-horizontal - SVG: Scalable Vector Graphics
otherwise, if the value of this attribute is not a multiple of 180 degrees, then the current text position is incremented according to the vertical metrics of the glyph.
glyph-orientation-vertical - SVG: Scalable Vector Graphics
otherwise, if the angle is not a multiple of 180 degrees, then the current text position is incremented according to the horizontal metrics of the glyph.
in - SVG: Scalable Vector Graphics
WebSVGAttributein
posite>, <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.
requiredExtensions - SVG: Scalable Vector Graphics
if all of the given extensions are supported, then the attribute evaluates to true; otherwise, the current element and its children are skipped and thus will not be rendered.
requiredFeatures - SVG: Scalable Vector Graphics
it determines whether or not all of the named features are supported by the browser; if all of them are supported, the attribute evaluates to true end the element is rendered; otherwise, the attribute evaluates to false and the current element and its children are skipped and thus will not be rendered.
systemLanguage - SVG: Scalable Vector Graphics
otherwise it evaluates to "false".
Content type - SVG: Scalable Vector Graphics
unless stated otherwise for a particular attribute or property, the range for an <integer> encompasses (at a minimum) -2147483648 to 2147483647.
<cursor> - SVG: Scalable Vector Graphics
WebSVGElementcursor
if the transparency mask can be determined, the mask defines the shape of the cursor; otherwise, the cursor is an opaque rectangle.
<symbol> - SVG: Scalable Vector Graphics
WebSVGElementsymbol
that means that some browsers could refuse to directly display a <symbol> element even if the css display property tells otherwise.
Gradients in SVG - SVG: Scalable Vector Graphics
you must give the gradient an id attribute; otherwise it can't be referenced by other elements inside the file.
How to turn off form autocompletion - Web security
since users do not have to remember passwords that the browser stores for them, they are able to choose stronger passwords than they would otherwise.
xml:base - XML: Extensible Markup Language
WebXMLxml:base
the base uri of an element is: the base uri specified by an xml:base attribute on the element, if one exists, otherwise the base uri of the element's parent element within the document entity or external entity, if one exists, otherwise the base uri of the document entity or external entity containing the element.
choose - XPath
returns if the boolean parameter is true, the first object is returned; otherwise, the second object is returned.
contains - XPath
otherwise, false.
element-available - XPath
otherwise, it refers to an extension element.
lang - XPath
WebXPathFunctionslang
otherwise, false.
starts-with - XPath
otherwise, false.
unparsed-entity-url - XPath
otherwise an empty string.
XPath snippets - XPath
otherwise, you have to provide your own implementation of xpathnsresolver.
<xsl:for-each> - XSLT: Extensible Stylesheet Language Transformations
WebXSLTElementfor-each
otherwise, nodes are processed in document order.
<xsl:if> - XSLT: Extensible Stylesheet Language Transformations
WebXSLTElementif
to achieve the functionality of an if-then-else statement, however, use the <xsl:choose> element with one <xsl:when> and one <xsl:otherwise> children.
The Netscape XSLT/XPath Reference - XSLT: Extensible Stylesheet Language Transformations
d) xsl:comment (supported) xsl:copy (supported) xsl:copy-of (supported) xsl:decimal-format (supported) xsl:element (supported) xsl:fallback (not supported) xsl:for-each (supported) xsl:if (supported) xsl:import (mostly supported) xsl:include (supported) xsl:key (supported) xsl:message (supported) xsl:namespace-alias (not supported) xsl:number (partially supported) xsl:otherwise (supported) xsl:output (partially supported) xsl:param (supported) xsl:preserve-space (supported) xsl:processing-instruction xsl:sort (supported) xsl:strip-space (supported) xsl:stylesheet (partially supported) xsl:template (supported) xsl:text (partially supported) xsl:transform (supported) xsl:value-of (partially supported) xsl:variable (supported) xsl:when (supported)...
Transforming XML with XSLT - XSLT: Extensible Stylesheet Language Transformations
oose (supported) xsl:comment (supported) xsl:copy (supported) xsl:copy-of (supported) xsl:decimal-format (supported) xsl:element (supported) xsl:fallback (not supported) xsl:for-each (supported) xsl:if (supported) xsl:import (mostly supported) xsl:include (supported) xsl:key (supported) xsl:message (supported) xsl:namespace-alias (not supported) xsl:number (partially supported) xsl:otherwise (supported) xsl:output (partially supported) xsl:param (supported) xsl:preserve-space (supported) xsl:processing-instruction xsl:sort (supported) xsl:strip-space (supported) xsl:stylesheet (partially supported) xsl:template (supported) xsl:text (partially supported) xsl:transform (supported) xsl:value-of (partially supported) xsl:variable (supported) xsl:when (supported) xsl:with-pa...
Using the Mozilla JavaScript interface to XSL Transformations - XSLT: Extensible Stylesheet Language Transformations
if that node is a document node, you can pass in a full xsl transform or a literal result element transform, otherwise it must be an xsl:stylesheet or xsl:transform element.
WebAssembly Concepts - WebAssembly
to functions) that could not otherwise be stored as raw bytes in memory (for safety and portability reasons).