Search completed in 1.07 seconds.
5171 results for "name":
Your results are loading. Please wait...
CSSNamespaceRule.namespaceURI - Web APIs
the cssnamespacerule.namespaceuri read-only property returns a domstring containing the text of the uri of the given namespace.
... the cssnamespacerule.namespaceuri read-only property returns a domstring containing the text of the uri of the given namespace.
... the cssnamespacerule.namespaceuri read-only property returns a domstring containing the text of the uri of the given namespace.
...And 2 more matches
NamedNodeMap.getNamedItem() - Web APIs
the getnameditem() method of the namednodemap interface returns the attr corresponding to the given name, or null if there is no corresponding attribute.
... the getnameditem() method of the namednodemap interface returns the attr corresponding to the given name, or null if there is no corresponding attribute.
... the getnameditem() method of the namednodemap interface returns the attr corresponding to the given name, or null if there is no corresponding attribute.
...And 2 more matches
Namespaces crash course - SVG: Scalable Vector Graphics
as an xml dialect, svg is namespaced.
... as an xml dialect, svg is namespaced.
... as an xml dialect, svg is namespaced.
...And 85 more matches
Function.name - JavaScript
a function object's read-only name property indicates the function's name as specified when it was created, or it may be rather anonymous or ''(an empty string) for functions created anonymously.
...me as specified when it was created, or it may be rather anonymous or ''(an empty string) for functions created anonymously.
...e-examples and send us a pull request.
...And 63 more matches
Layout using named grid lines - CSS: Cascading Style Sheets
in previous guides we’ve looked at placing items by the lines created by defining grid tracks and also how to place items using named template areas.
... in previous guides we’ve looked at placing items by the lines created by defining grid tracks and also how to place items using named template areas.
... in previous guides we’ve looked at placing items by the lines created by defining grid tracks and also how to place items using named template areas.
...And 58 more matches
Intl.DisplayNames - JavaScript
the intl.displaynames object is a constructor for objects that enables the consistent translation of language, region and script display names.
... the intl.displaynames object is a constructor for objects that enables the consistent translation of language, region and script display names.
...constructor for objects that enables the consistent translation of language, region and script display names.
...And 51 more matches
Internationalized Domain Names (IDN) Support in Mozilla Browsers
introduction netscape 7.1 is the first commercial browser that has built-in support for internationalized domain name under the new ietf rfc's established in 2003.
... introduction netscape 7.1 is the first commercial browser that has built-in support for internationalized domain name under the new ietf rfc's established in 2003.
... introduction netscape 7.1 is the first commercial browser that has built-in support for internationalized domain name under the new ietf rfc's established in 2003.
...And 49 more matches
Namespaces - Archive of obsolete content
in addition to this document, see namespaces crash course.
... in addition to this document, see namespaces crash course.
... in addition to this document, see namespaces crash course.
...And 40 more matches
What is a Domain Name? - Learn web development
prerequisites: first you need to know how the internet works and understand what urls are.
... prerequisites: first you need to know how the internet works and understand what urls are.
...ss, either an ipv4 address (e.g.
...And 39 more matches
@namespace - CSS: Cascading Style Sheets
@namespace is an at-rule that defines xml namespaces to be used in a css style sheet.
... @namespace is an at-rule that defines xml namespaces to be used in a css style sheet.
... @namespace is an at-rule that defines xml namespaces to be used in a css style sheet.
...And 36 more matches
NamedNodeMap - Web APIs
the namednodemap interface represents a collection of attr objects.
... the namednodemap interface represents a collection of attr objects.
... the namednodemap interface represents a collection of attr objects.
...And 30 more matches
Case Sensitivity in class and id Names - Archive of obsolete content
summary: although css is itself case-insensitive, class and id names are defined to be case-sensitive in html 4.01.
... summary: although css is itself case-insensitive, class and id names are defined to be case-sensitive in html 4.01.
...are defined to be case-sensitive in html 4.01.
...And 25 more matches
Standard metadata names - HTML: Hypertext Markup Language
Web › HTML › Element › meta › name
the <meta> element can be used to provide document metadata in terms of name-value pairs, with the name attribute giving the metadata name, and the content attribute giving the value.
... the <meta> element can be used to provide document metadata in terms of name-value pairs, with the name attribute giving the metadata name, and the content attribute giving the value.
... the <meta> element can be used to provide document metadata in terms of name-value pairs, with the name attribute giving the metadata name, and the content attribute giving the value.
...And 24 more matches
Document.getElementsByTagNameNS() - Web APIs
returns a list of elements with the given tag name belonging to the given namespace.
... returns a list of elements with the given tag name belonging to the given namespace.
... returns a list of elements with the given tag name belonging to the given namespace.
...And 23 more matches
Node.namespaceURI - Web APIs
Web › API › Node › namespaceURI
the node.namespaceuri read-only property returns the namespace uri of the node, or null if the node is not in a namespace.
... the node.namespaceuri read-only property returns the namespace uri of the node, or null if the node is not in a namespace.
... the node.namespaceuri read-only property returns the namespace uri of the node, or null if the node is not in a namespace.
...And 23 more matches
JS_DumpNamedRoots
obsolete since jsapi 19this feature is obsolete.
... obsolete since jsapi 19this feature is obsolete.
... obsolete since jsapi 19this feature is obsolete.
...And 21 more matches
Document.getElementsByName() - Web APIs
the getelementsbyname() method of the document object returns a nodelist collection of elements with a given name in the document.
... the getelementsbyname() method of the document object returns a nodelist collection of elements with a given name in the document.
... the getelementsbyname() method of the document object returns a nodelist collection of elements with a given name in the document.
...And 21 more matches
Namespaces - Archive of obsolete content
« previousnext » e4x and namespaces oftentimes, xml documents will contain elements from a variety of namespaces.
... « previousnext » e4x and namespaces oftentimes, xml documents will contain elements from a variety of namespaces.
... « previousnext » e4x and namespaces oftentimes, xml documents will contain elements from a variety of namespaces.
...And 20 more matches
nsIApplicationCacheNamespace
netwerk/base/public/nsiapplicationcache.idlscriptable this interface represents an application cache namespace.
... netwerk/base/public/nsiapplicationcache.idlscriptable this interface represents an application cache namespace.
...lscriptable this interface represents an application cache namespace.
...And 20 more matches
Document.getElementsByClassName() - Web APIs
the getelementsbyclassname method of document interface returns an array-like object of all child elements which have all of the given class name(s).
... the getelementsbyclassname method of document interface returns an array-like object of all child elements which have all of the given class name(s).
...elementsbyclassname method of document interface returns an array-like object of all child elements which have all of the given class name(s).
...And 20 more matches
name - SVG: Scalable Vector Graphics
Web › SVG › Attribute › name
the name attribute specifies either the name of a color profile or a font face.
... the name attribute specifies either the name of a color profile or a font face.
... the name attribute specifies either the name of a color profile or a font face.
...And 20 more matches
Attr.namespaceURI - Web APIs
Web › API › Attr › namespaceURI
the attr.namespaceuri read-only property returns the namespace uri of the attribute, or null if the element is not in a namespace.
... the attr.namespaceuri read-only property returns the namespace uri of the attribute, or null if the element is not in a namespace.
... the attr.namespaceuri read-only property returns the namespace uri of the attribute, or null if the element is not in a namespace.
...And 19 more matches
Element.getElementsByClassName() - Web APIs
the element method getelementsbyclassname() returns a live htmlcollection which contains every descendant element which has the specified class name or names.
... the element method getelementsbyclassname() returns a live htmlcollection which contains every descendant element which has the specified class name or names.
... the element method getelementsbyclassname() returns a live htmlcollection which contains every descendant element which has the specified class name or names.
...And 17 more matches
IDBIndex.name - Web APIs
Web › API › IDBIndex › name
the name property of the idbindex interface contains a string which names the index.
... the name property of the idbindex interface contains a string which names the index.
... the name property of the idbindex interface contains a string which names the index.
...And 17 more matches
Named Shared Memory
the chapter describes the nspr api for named shared memory.
... the chapter describes the nspr api for named shared memory.
... the chapter describes the nspr api for named shared memory.
...And 16 more matches
Document.getElementsByTagName() - Web APIs
the getelementsbytagname method of document interface returns an htmlcollection of elements with the given tag name.
... the getelementsbytagname method of document interface returns an htmlcollection of elements with the given tag name.
...getelementsbytagname method of document interface returns an htmlcollection of elements with the given tag name.
...And 16 more matches
LookupNamespaceURI - Archive of obsolete content
here is an implementation of node.lookupnamespaceuri which should work cross-browser.
... here is an implementation of node.lookupnamespaceuri which should work cross-browser.
...ookupnamespaceuri which should work cross-browser.
...And 15 more matches
JS_SetCompartmentNameCallback
this article covers features introduced in spidermonkey 17 set callback function to name each compartment.
... this article covers features introduced in spidermonkey 17 set callback function to name each compartment.
... this article covers features introduced in spidermonkey 17 set callback function to name each compartment.
...And 15 more matches
Element.getElementsByTagNameNS() - Web APIs
the element.getelementsbytagnamens() method returns a live htmlcollection of elements with the given tag name belonging to the given namespace.
... the element.getelementsbytagnamens() method returns a live htmlcollection of elements with the given tag name belonging to the given namespace.
... the element.getelementsbytagnamens() method returns a live htmlcollection of elements with the given tag name belonging to the given namespace.
...And 15 more matches
Element.namespaceURI - Web APIs
the element.namespaceuri read-only property returns the namespace uri of the element, or null if the element is not in a namespace.
... the element.namespaceuri read-only property returns the namespace uri of the element, or null if the element is not in a namespace.
... the element.namespaceuri read-only property returns the namespace uri of the element, or null if the element is not in a namespace.
...And 15 more matches
Element.className - Web APIs
Web › API › Element › className
the classname property of the element interface gets and sets the value of the class attribute of the specified element.
... the classname property of the element interface gets and sets the value of the class attribute of the specified element.
... the classname property of the element interface gets and sets the value of the class attribute of the specified element.
...And 14 more matches
Element.getElementsByTagName() - Web APIs
the element.getelementsbytagname() method returns a live htmlcollection of elements with the given tag name.
... the element.getelementsbytagname() method returns a live htmlcollection of elements with the given tag name.
... name.
...And 14 more matches
Node.nodeName - Web APIs
Web › API › Node › nodeName
the nodename read-only property returns the name of the current node as a string.
... the nodename read-only property returns the name of the current node as a string.
... the nodename read-only property returns the name of the current node as a string.
...And 14 more matches
IDBObjectStore.name - Web APIs
the name property of the idbobjectstore interface indicates the name of this object store.
... the name property of the idbobjectstore interface indicates the name of this object store.
... the name property of the idbobjectstore interface indicates the name of this object store.
...And 13 more matches
Node.localName - Web APIs
Web › API › Node › localName
the node.localname read-only property returns the local part of the qualified name of this node.
... the node.localname read-only property returns the local part of the qualified name of this node.
... the node.localname read-only property returns the local part of the qualified name of this node.
...And 13 more matches
PR_Rename
renames a file.
... renames a file.
... renames a file.
...And 12 more matches
animation-name - CSS: Cascading Style Sheets
the animation-name css property specifies the names of one or more @keyframes at-rules describing the animation or animations to apply to the element.
... to apply to the element.
...nt.
...And 12 more matches
Object.getOwnPropertyNames() - JavaScript
the object.getownpropertynames() method returns an array of all properties (including non-enumerable properties except for those which use symbol) found directly in a given object.
... the object.getownpropertynames() method returns an array of all properties (including non-enumerable properties except for those which use symbol) found directly in a given object.
...properties (including non-enumerable properties except for those which use symbol) found directly in a given object.
...And 12 more matches
Element.tagName - Web APIs
Web › API › Element › tagName
the tagname read-only property of the element interface returns the tag name of the element on which it's called.
... the tagname read-only property of the element interface returns the tag name of the element on which it's called.
... the tagname read-only property of the element interface returns the tag name of the element on which it's called.
...And 11 more matches
RTCIceCandidate.usernameFragment - Web APIs
the read-only usernamefragment property on the rtcicecandidate interface is a string indicating the username fragment ("ufrag") that uniquely identifies a single ice interaction session.
... the read-only usernamefragment property on the rtcicecandidate interface is a string indicating the username fragment ("ufrag") that uniquely identifies a single ice interaction session.
...amefragment property on the rtcicecandidate interface is a string indicating the username fragment ("ufrag") that uniquely identifies a single ice interaction session.
...And 11 more matches
TypedArray.name - JavaScript
the typedarray.name property represents a string value of the typed array constructor name.
... the typedarray.name property represents a string value of the typed array constructor name.
...please clone https://github.com/mdn/interactive-examples and send us a pull request.
...And 11 more matches
IsDefaultNamespace - Archive of obsolete content
the following is a snippet to get isdefaultnamespace() supported across other browsers.
... the following is a snippet to get isdefaultnamespace() supported across other browsers.
... the following is a snippet to get isdefaultnamespace() supported across other browsers.
...And 10 more matches
PR_GetLibraryName
constructs a full library path name.
... constructs a full library path name.
... constructs a full library path name.
...And 10 more matches
JS::PropertySpecNameEqualsId
this article covers features introduced in spidermonkey 38 determine if the given jspropertyspec::name or jsfunctionspec::name value equals the given jsid.
... this article covers features introduced in spidermonkey 38 determine if the given jspropertyspec::name or jsfunctionspec::name value equals the given jsid.
... this article covers features introduced in spidermonkey 38 determine if the given jspropertyspec::name or jsfunctionspec::name value equals the given jsid.
...And 10 more matches
CSSNamespaceRule - Web APIs
the cssnamespacerule interface describes an object representing a single css @namespace at-rule.
... the cssnamespacerule interface describes an object representing a single css @namespace at-rule.
... the cssnamespacerule interface describes an object representing a single css @namespace at-rule.
...And 10 more matches
Element.localName - Web APIs
Web › API › Element › localName
the element.localname read-only property returns the local part of the qualified name of an element.
... the element.localname read-only property returns the local part of the qualified name of an element.
... the element.localname read-only property returns the local part of the qualified name of an element.
...And 10 more matches
Element.name - Web APIs
Web › API › Element › name
name gets or sets the name property of an element in the dom.
... name gets or sets the name property of an element in the dom.
... name gets or sets the name property of an element in the dom.
...And 10 more matches
JS::PropertySpecNameIsSymbol
this article covers features introduced in spidermonkey 38 determine if the given jspropertyspec::name or jsfunctionspec::name value is actually a symbol code and not a string.
... this article covers features introduced in spidermonkey 38 determine if the given jspropertyspec::name or jsfunctionspec::name value is actually a symbol code and not a string.
... this article covers features introduced in spidermonkey 38 determine if the given jspropertyspec::name or jsfunctionspec::name value is actually a symbol code and not a string.
...And 9 more matches
JS::PropertySpecNameToPermanentId
this article covers features introduced in spidermonkey 38 create a jsid that does not need to be marked for gc.
... this article covers features introduced in spidermonkey 38 create a jsid that does not need to be marked for gc.
... this article covers features introduced in spidermonkey 38 create a jsid that does not need to be marked for gc.
...And 9 more matches
HTMLFormElement.name - Web APIs
the htmlformelement.name property represents the name of the current <form> element as a string.
... the htmlformelement.name property represents the name of the current <form> element as a string.
... the htmlformelement.name property represents the name of the current <form> element as a string.
...And 9 more matches
NameList - Web APIs
Web › API › NameList
obsolete since gecko 10.0 (firefox 10.0 / thunderbird 10.0 / seamonkey 2.7)this feature is obsolete.
...obsolete since gecko 10.0 (firefox 10.0 / thunderbird 10.0 / seamonkey 2.7)this feature is obsolete.
....7)this feature is obsolete.
...And 9 more matches
PayerErrors.name - Web APIs
Web › API › PayerErrors › name
the name property is included in a payererrors object if the payername returned in the response couldn't be validated.
... the name property is included in a payererrors object if the payername returned in the response couldn't be validated.
... the name property is included in a payererrors object if the payername returned in the response couldn't be validated.
...And 9 more matches
PerformanceObserverEntryList.getEntriesByName() - Web APIs
the getentriesbyname() method of the performanceobserverentrylist interface returns a list of explicitly observed performance entry objects for a given name and entry type.
...ce returns a list of explicitly observed performance entry objects for a given name and entry type.
...turns a list of explicitly observed performance entry objects for a given name and entry type.
...And 9 more matches
Window.name - Web APIs
Web › API › Window › name
gets/sets the name of the window's browsing context.
... gets/sets the name of the window's browsing context.
... gets/sets the name of the window's browsing context.
...And 9 more matches
Intl.DisplayNames.prototype.of() - JavaScript
the of() method receives a code and returns a string based on the locale and options provided when instantiating intl.displaynames.
... the of() method receives a code and returns a string based on the locale and options provided when instantiating intl.displaynames.
...riant ) subsequence of the unicode_language_id grammar in uts 35's unicode language and locale identifiers grammar.
...And 9 more matches
core/namespace - Archive of obsolete content
provides an api for creating namespaces for objects, which effectively may be used for creating fields that are not part of objects public api.
... provides an api for creating namespaces for objects, which effectively may be used for creating fields that are not part of objects public api.
... provides an api for creating namespaces for objects, which effectively may be used for creating fields that are not part of objects public api.
...And 8 more matches
Attr.localName - Web APIs
Web › API › Attr › localName
the attr.localname read-only property returns the local part of the qualified name of an attribute.
... the attr.localname read-only property returns the local part of the qualified name of an attribute.
... the attr.localname read-only property returns the local part of the qualified name of an attribute.
...And 8 more matches
Element.getAttributeNames() - Web APIs
the getattributenames() method of the element interface returns the attribute names of the element as an array of strings.
... the getattributenames() method of the element interface returns the attribute names of the element as an array of strings.
... the getattributenames() method of the element interface returns the attribute names of the element as an array of strings.
...And 8 more matches
IDBDatabase.name - Web APIs
Web › API › IDBDatabase › name
the name read-only property of the idbdatabase interface is a domstring that contains the name of the connected database.
... the name read-only property of the idbdatabase interface is a domstring that contains the name of the connected database.
... the name read-only property of the idbdatabase interface is a domstring that contains the name of the connected database.
...And 8 more matches
performance.getEntriesByName() - Web APIs
the getentriesbyname() method returns a list of performanceentry objects for the given name and type.
... the getentriesbyname() method returns a list of performanceentry objects for the given name and type.
... the getentriesbyname() method returns a list of performanceentry objects for the given name and type.
...And 8 more matches
Text labels and names - Accessibility
there are many situations in which a control, dialog, or other website feature should be given a descriptive name or label to allow users of assistive technologies to understand what its purpose is and to be able to understand and operate it correctly.
... and to be able to understand and operate it correctly.
...o use for users of assistive technology — they need alternative text to be able to understand the purpose of an image.
...And 8 more matches
SyntaxError: missing variable name - JavaScript
the javascript exception "missing variable name" occurs way too often as naming things is so hard.
... the javascript exception "missing variable name" occurs way too often as naming things is so hard.
... the javascript exception "missing variable name" occurs way too often as naming things is so hard.
...And 8 more matches
Underscores in class and ID Names - Archive of obsolete content
jor display problems in multiple browsers.
...character (_) in the place of a "space" in variable and function names.
... the length of a string" might be called get_string_length, and a variable representing the number of people who voted republican might be voted_republican.
...And 7 more matches
Locks.name - Web APIs
Web › API › Lock › name
the name read-only property of the lock interface returns the name passed to lockmanager.request selected when the lock was requested.
... the name read-only property of the lock interface returns the name passed to lockmanager.request selected when the lock was requested.
... the name read-only property of the lock interface returns the name passed to lockmanager.request selected when the lock was requested.
...And 7 more matches
RTCIceServer.username - Web APIs
the rtciceserver dictionary's username property is a string which specifies the username to use when authenticating with the ice server being described.
... the rtciceserver dictionary's username property is a string which specifies the username to use when authenticating with the ice server being described.
... the rtciceserver dictionary's username property is a string which specifies the username to use when authenticating with the ice server being described.
...And 7 more matches
SyntaxError: function statement requires a name - JavaScript
the javascript exception "function statement requires a name" occurs when there is a function statement in the code that requires a name.
... the javascript exception "function statement requires a name" occurs when there is a function statement in the code that requires a name.
... the javascript exception "function statement requires a name" occurs when there is a function statement in the code that requires a name.
...And 7 more matches
Function.displayName - JavaScript
the function.displayname property returns the display name of the function.
... the function.displayname property returns the display name of the function.
... the function.displayname property returns the display name of the function.
...And 7 more matches
PR GetAddrInfoByName
looks up a host by name.
... looks up a host by name.
... looks up a host by name.
...And 6 more matches
DedicatedWorkerGlobalScope.name - Web APIs
the name read-only property of the dedicatedworkerglobalscope interface returns the name that the worker was (optionally) given when it was created.
... the name read-only property of the dedicatedworkerglobalscope interface returns the name that the worker was (optionally) given when it was created.
... the name read-only property of the dedicatedworkerglobalscope interface returns the name that the worker was (optionally) given when it was created.
...And 6 more matches
HTMLImageElement.name - Web APIs
the htmlimageelement interface's deprecated name property specifies a name for the element.
... the htmlimageelement interface's deprecated name property specifies a name for the element.
... the htmlimageelement interface's deprecated name property specifies a name for the element.
...And 6 more matches
IDBDatabase.objectStoreNames - Web APIs
the objectstorenames read-only property of the idbdatabase interface is a domstringlist containing a list of the names of the object stores currently in the connected database.
... the objectstorenames read-only property of the idbdatabase interface is a domstringlist containing a list of the names of the object stores currently in the connected database.
... the objectstorenames read-only property of the idbdatabase interface is a domstringlist containing a list of the names of the object stores currently in the connected database.
...And 6 more matches
IDBObjectStore.indexNames - Web APIs
the indexnames read-only property of the idbobjectstore interface returns a list of the names of indexes on objects in this object store.
... the indexnames read-only property of the idbobjectstore interface returns a list of the names of indexes on objects in this object store.
... the indexnames read-only property of the idbobjectstore interface returns a list of the names of indexes on objects in this object store.
...And 6 more matches
PerformanceEntry.name - Web APIs
the name property of the performanceentry interface returns a value that further specifies the value returned by the performanceentry.entrytype property.
... the name property of the performanceentry interface returns a value that further specifies the value returned by the performanceentry.entrytype property.
... the name property of the performanceentry interface returns a value that further specifies the value returned by the performanceentry.entrytype property.
...And 6 more matches
SharedWorkerGlobalScope.name - Web APIs
the name read-only property of the sharedworkerglobalscope interface returns the name that the sharedworker was (optionally) given when it was created.
... the name read-only property of the sharedworkerglobalscope interface returns the name that the sharedworker was (optionally) given when it was created.
... the name read-only property of the sharedworkerglobalscope interface returns the name that the sharedworker was (optionally) given when it was created.
...And 6 more matches
short_name - Web app manifests
type string mandatory no the short_name member is a string that represents the name of the web application displayed to the user if there is not enough space to display name (e.g., as a label for an icon on the phone home screen).
... type string mandatory no the short_name member is a string that represents the name of the web application displayed to the user if there is not enough space to display name (e.g., as a label for an icon on the phone home screen).
... no the short_name member is a string that represents the name of the web application displayed to the user if there is not enough space to display name (e.g., as a label for an icon on the phone home screen).
...And 6 more matches
Namespaces - Archive of obsolete content
xml namespaces can be used in xul templates by binding the namespace uri and prefix to the template element.
... xml namespaces can be used in xul templates by binding the namespace uri and prefix to the template element.
... xml namespaces can be used in xul templates by binding the namespace uri and prefix to the template element.
...And 5 more matches
FileSystemEntry.name - Web APIs
the read-only name property of the filesystementry interface returns a usvstring specifying the entry's name; this is the entry within its parent directory (the last component of the path as indicated by the fullpath property).
... the read-only name property of the filesystementry interface returns a usvstring specifying the entry's name; this is the entry within its parent directory (the last component of the path as indicated by the fullpath property).
... the read-only name property of the filesystementry interface returns a usvstring specifying the entry's name; this is the entry within its parent directory (the last component of the path as indicated by the fullpath property).
...And 5 more matches
HTMLSlotElement.name - Web APIs
the name property of the htmlslotelement interface returns or sets the slot name.
... the name property of the htmlslotelement interface returns or sets the slot name.
... the name property of the htmlslotelement interface returns or sets the slot name.
...And 5 more matches
Node.isDefaultNamespace() - Web APIs
the node.isdefaultnamespace() method accepts a namespace uri as an argument and returns a boolean with a value of true if the namespace is the default namespace on the given node or false if not.
... the node.isdefaultnamespace() method accepts a namespace uri as an argument and returns a boolean with a value of true if the namespace is the default namespace on the given node or false if not.
... the node.isdefaultnamespace() method accepts a namespace uri as an argument and returns a boolean with a value of true if the namespace is the default namespace on the given node or false if not.
...And 5 more matches
SpeechSynthesisVoice.name - Web APIs
the name read-only property of the speechsynthesisvoice interface returns a human-readable name that represents the voice.
... the name read-only property of the speechsynthesisvoice interface returns a human-readable name that represents the voice.
... the name read-only property of the speechsynthesisvoice interface returns a human-readable name that represents the voice.
...And 5 more matches
URL.username - Web APIs
Web › API › URL › username
the username property of the url interface is a usvstring containing the username specified before the domain name.
... the username property of the url interface is a usvstring containing the username specified before the domain name.
... the username property of the url interface is a usvstring containing the username specified before the domain name.
...And 5 more matches
WebGL2RenderingContext.getActiveUniformBlockName() - Web APIs
the webgl2renderingcontext.getactiveuniformblockname() method of the webgl 2 api retrieves the name of the active uniform block at a given index within a webglprogram.
... the webgl2renderingcontext.getactiveuniformblockname() method of the webgl 2 api retrieves the name of the active uniform block at a given index within a webglprogram.
... the webgl2renderingcontext.getactiveuniformblockname() method of the webgl 2 api retrieves the name of the active uniform block at a given index within a webglprogram.
...And 5 more matches
glyph-name - SVG: Scalable Vector Graphics
the glyph-name attribute specifies the name of a glyph.
... the glyph-name attribute specifies the name of a glyph.
... the glyph-name attribute specifies the name of a glyph.
...And 5 more matches
name - XPath
Web › XPath › Functions › name
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the name function returns a string representing the qname of the first node in a given node-set.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the name function returns a string representing the qname of the first node in a given node-set.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the name function returns a string representing the qname of the first node in a given node-set.
...And 5 more matches
<xsl:namespace-alias> - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:namespace-alias> element is a rarely used device that maps a namespace in the stylesheet to a different namespace in the output tree.
...ias> element is a rarely used device that maps a namespace in the stylesheet to a different namespace in the output tree.
...he stylesheet to a different namespace in the output tree.
...And 5 more matches
dirRename - Archive of obsolete content
dirrename renames a directory in place.
... dirrename renames a directory in place.
... dirrename renames a directory in place.
...And 4 more matches
rename - Archive of obsolete content
summary renames a specified file in place.
... summary renames a specified file in place.
... summary renames a specified file in place.
...And 4 more matches
JS_GetFunctionName
retrieve the given name for a specified function.
... retrieve the given name for a specified function.
... retrieve the given name for a specified function.
...And 4 more matches
BasicCardResponse.cardholderName - Web APIs
the cardnumber property of the basiccardresponse dictionary contains the cardholder name of the card used to make the payment.
... the cardnumber property of the basiccardresponse dictionary contains the cardholder name of the card used to make the payment.
... the cardnumber property of the basiccardresponse dictionary contains the cardholder name of the card used to make the payment.
...And 4 more matches
File.name - Web APIs
Web › API › File › name
returns the name of the file represented by a file object.
... returns the name of the file represented by a file object.
... returns the name of the file represented by a file object.
...And 4 more matches
HTMLHyperlinkElementUtils.pathname - Web APIs
the htmlhyperlinkelementutils.pathname property is a usvstring containing an initial '/' followed by the path of the url (or the empty string if there is no path).
... the htmlhyperlinkelementutils.pathname property is a usvstring containing an initial '/' followed by the path of the url (or the empty string if there is no path).
... the htmlhyperlinkelementutils.pathname property is a usvstring containing an initial '/' followed by the path of the url (or the empty string if there is no path).
...And 4 more matches
HTMLInputElement.mozGetFileNameArray() - Web APIs
the htmlinputelement.mozgetfilenamearray() method returns an array of the names of the files that were selected by the user on an html input element.
... the htmlinputelement.mozgetfilenamearray() method returns an array of the names of the files that were selected by the user on an html input element.
... the htmlinputelement.mozgetfilenamearray() method returns an array of the names of the files that were selected by the user on an html input element.
...And 4 more matches
HTMLInputElement.mozSetFileNameArray() - Web APIs
the htmlinputelement.mozsetfilenamearray() method sets the names of the files that selected on an html input element.
... the htmlinputelement.mozsetfilenamearray() method sets the names of the files that selected on an html input element.
... the htmlinputelement.mozsetfilenamearray() method sets the names of the files that selected on an html input element.
...And 4 more matches
Location: pathname - Web APIs
Web › API › Location › pathname
the pathname property of the location interface is a usvstring containing an initial '/' followed by the path of the url (or the empty string if there is no path).
... the pathname property of the location interface is a usvstring containing an initial '/' followed by the path of the url (or the empty string if there is no path).
... the pathname property of the location interface is a usvstring containing an initial '/' followed by the path of the url (or the empty string if there is no path).
...And 4 more matches
PaymentRequest.payerName - Web APIs
the payername read-only property of the paymentresponse interface returns the name supplied by the user.
... the payername read-only property of the paymentresponse interface returns the name supplied by the user.
... the payername read-only property of the paymentresponse interface returns the name supplied by the user.
...And 4 more matches
URL.pathname - Web APIs
Web › API › URL › pathname
the pathname property of the url interface is a usvstring containing an initial '/' followed by the path of the url (or the empty string if there is no path).
... the pathname property of the url interface is a usvstring containing an initial '/' followed by the path of the url (or the empty string if there is no path).
... the pathname property of the url interface is a usvstring containing an initial '/' followed by the path of the url (or the empty string if there is no path).
...And 4 more matches
URL.pathname - Web APIs
the pathname property of the url interface is a usvstring containing an initial '/' followed by the path of the url (or the empty string if there is no path).
... the pathname property of the url interface is a usvstring containing an initial '/' followed by the path of the url (or the empty string if there is no path).
... the pathname property of the url interface is a usvstring containing an initial '/' followed by the path of the url (or the empty string if there is no path).
...And 4 more matches
URLUtilsReadOnly.pathname - Web APIs
the urlutilsreadonly.pathname read-only property returns a domstring containing an initial '/' followed by the path of the url.
... the urlutilsreadonly.pathname read-only property returns a domstring containing an initial '/' followed by the path of the url.
... the urlutilsreadonly.pathname read-only property returns a domstring containing an initial '/' followed by the path of the url.
...And 4 more matches
Intl.DisplayNames.prototype.resolvedOptions() - JavaScript
the intl.displaynames.prototype.resolvedoptions() method returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current displaynames object.
... the intl.displaynames.prototype.resolvedoptions() method returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current displaynames object.
... the intl.displaynames.prototype.resolvedoptions() method returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current displaynames object.
...And 4 more matches
name - Web app manifests
Web › Manifest › name
type string mandatory yes the name member is a string that represents the name of the web application as it is usually displayed to the user (e.g., amongst a list of other applications, or as a label for an icon).
... type string mandatory yes the name member is a string that represents the name of the web application as it is usually displayed to the user (e.g., amongst a list of other applications, or as a label for an icon).
... string mandatory yes the name member is a string that represents the name of the web application as it is usually displayed to the user (e.g., amongst a list of other applications, or as a label for an icon).
...And 4 more matches
Domain name - MDN Web Docs Glossary: Definitions of Web-related terms
a domain name is a website's address on the internet.
... a domain name is a website's address on the internet.
... a domain name is a website's address on the internet.
...And 3 more matches
Function_Name
one-line description of what the function does (more than just what it returns).
... one-line description of what the function does (more than just what it returns).
... one-line description of what the function does (more than just what it returns).
...And 3 more matches
BroadcastChannel.name - Web APIs
the read-only broadcastchannel.name property returns a domstring, which uniquely identifies the given channel with its name.
... the read-only broadcastchannel.name property returns a domstring, which uniquely identifies the given channel with its name.
... the read-only broadcastchannel.name property returns a domstring, which uniquely identifies the given channel with its name.
...And 3 more matches
FileSystem.name - Web APIs
Web › API › FileSystem › name
the read-only name property of the filesystem interface indicates the file system's name.
... the read-only name property of the filesystem interface indicates the file system's name.
... the read-only name property of the filesystem interface indicates the file system's name.
...And 3 more matches
HTMLHyperlinkElementUtils.hostname - Web APIs
the htmlhyperlinkelementutils.hostname property is a usvstring containing the domain of the url.
... the htmlhyperlinkelementutils.hostname property is a usvstring containing the domain of the url.
... the htmlhyperlinkelementutils.hostname property is a usvstring containing the domain of the url.
...And 3 more matches
HTMLHyperlinkElementUtils.username - Web APIs
the htmlhyperlinkelementutils.username property is a usvstring containing the username specified before the domain name.
... the htmlhyperlinkelementutils.username property is a usvstring containing the username specified before the domain name.
... the htmlhyperlinkelementutils.username property is a usvstring containing the username specified before the domain name.
...And 3 more matches
IDBTransaction.objectStoreNames - Web APIs
the objectstorenames read-only property of the idbtransaction interface returns a domstringlist of names of idbobjectstore objects.
... the objectstorenames read-only property of the idbtransaction interface returns a domstringlist of names of idbobjectstore objects.
... the objectstorenames read-only property of the idbtransaction interface returns a domstringlist of names of idbobjectstore objects.
...And 3 more matches
Location: hostname - Web APIs
Web › API › Location › hostname
the hostname property of the location interface is a usvstring containing the domain of the url.
... the hostname property of the location interface is a usvstring containing the domain of the url.
... the hostname property of the location interface is a usvstring containing the domain of the url.
...And 3 more matches
Node.lookupNamespaceURI() - Web APIs
the node.lookupnamespaceuri() method accepts a prefix and returns the namespace uri associated with it on the given node if found (and null if not).
... the node.lookupnamespaceuri() method accepts a prefix and returns the namespace uri associated with it on the given node if found (and null if not).
... the node.lookupnamespaceuri() method accepts a prefix and returns the namespace uri associated with it on the given node if found (and null if not).
...And 3 more matches
PasswordCredential.idName - Web APIs
the idname property of the passwordcredential interface returns a usvstring, representing the name that will be used for the id field, when submitting the current object to a remote endpoint via fetch.
... the idname property of the passwordcredential interface returns a usvstring, representing the name that will be used for the id field, when submitting the current object to a remote endpoint via fetch.
... the idname property of the passwordcredential interface returns a usvstring, representing the name that will be used for the id field, when submitting the current object to a remote endpoint via fetch.
...And 3 more matches
RTCIceParameters.usernameFragment - Web APIs
the rtciceparameters dictionary's usernamefragment property specifies the username fragment ("ufrag") that uniquely identifies the corresponding ice session for the duration of the current ice session.
... the rtciceparameters dictionary's usernamefragment property specifies the username fragment ("ufrag") that uniquely identifies the corresponding ice session for the duration of the current ice session.
... the rtciceparameters dictionary's usernamefragment property specifies the username fragment ("ufrag") that uniquely identifies the corresponding ice session for the duration of the current ice session.
...And 3 more matches
URL.hostname - Web APIs
Web › API › URL › hostname
the hostname property of the url interface is a usvstring containing the domain name of the url.
... the hostname property of the url interface is a usvstring containing the domain name of the url.
... the hostname property of the url interface is a usvstring containing the domain name of the url.
...And 3 more matches
URLUtilsReadOnly.hostname - Web APIs
the urlutilsreadonly.hostname read-only property returns a domstring containing the domain of the url.
... the urlutilsreadonly.hostname read-only property returns a domstring containing the domain of the url.
... the urlutilsreadonly.hostname read-only property returns a domstring containing the domain of the url.
...And 3 more matches
SyntaxError: missing name after . operator - JavaScript
the javascript exception "missing name after .
... the javascript exception "missing name after .
... the javascript exception "missing name after .
...And 3 more matches
Error.prototype.name - JavaScript
the name property represents a name for the type of error.
... the name property represents a name for the type of error.
... the name property represents a name for the type of error.
...And 3 more matches
enumValueNames - Archive of obsolete content
enumvaluenames enumerates the value of a given key.
... enumvaluenames enumerates the value of a given key.
... enumvaluenames enumerates the value of a given key.
...And 2 more matches
menuitem.name - Archive of obsolete content
« xul reference home name type: string name radio menuitems with the same name as put into a group.
... « xul reference home name type: string name radio menuitems with the same name as put into a group.
...e name type: string name radio menuitems with the same name as put into a group.
...And 2 more matches
Forbidden header name - MDN Web Docs Glossary: Definitions of Web-related terms
a forbidden header name is the name of any http header that cannot be modified programmatically; specifically, an http request header name (in contrast with a forbidden response header name).
... a forbidden header name is the name of any http header that cannot be modified programmatically; specifically, an http request header name (in contrast with a forbidden response header name).
...nnot be modified programmatically; specifically, an http request header name (in contrast with a forbidden response header name).
...And 2 more matches
Namespace - MDN Web Docs Glossary: Definitions of Web-related terms
namespace is a context for identifiers, a logical grouping of names used in a program.
... namespace is a context for identifiers, a logical grouping of names used in a program.
... namespace is a context for identifiers, a logical grouping of names used in a program.
...And 2 more matches
PR_GetHostByName
looks up a host by name.
... looks up a host by name.
... looks up a host by name.
...And 2 more matches
PR_GetProtoByName
looks up a protocol entry based on the protocol's name.
... looks up a protocol entry based on the protocol's name.
... looks up a protocol entry based on the protocol's name.
...And 2 more matches
Credential.name - Web APIs
Web › API › Credential › name
the name property of the credential interface returns a domstring, containing the name associated with a credential.
... the name property of the credential interface returns a domstring, containing the name associated with a credential.
... the name property of the credential interface returns a domstring, containing the name associated with a credential.
...And 2 more matches
HTMLFormControlsCollection.namedItem() - Web APIs
the htmlformcontrolscollection.nameditem() method returns the radionodelist or the element in the collection whose name or id match the specified name, or null if no node matches.
... the htmlformcontrolscollection.nameditem() method returns the radionodelist or the element in the collection whose name or id match the specified name, or null if no node matches.
... the htmlformcontrolscollection.nameditem() method returns the radionodelist or the element in the collection whose name or id match the specified name, or null if no node matches.
...And 2 more matches
HTMLSelectElement.namedItem() - Web APIs
the htmlselectelement.nameditem() method returns the htmloptionelement corresponding to the htmloptionelement whose name or id match the specified name, or null if no option matches.
... the htmlselectelement.nameditem() method returns the htmloptionelement corresponding to the htmloptionelement whose name or id match the specified name, or null if no option matches.
... the htmlselectelement.nameditem() method returns the htmloptionelement corresponding to the htmloptionelement whose name or id match the specified name, or null if no option matches.
...And 2 more matches
Location: username - Web APIs
Web › API › Location › username
the username property of the location interface is a usvstring containing the username specified before the domain name.
... the username property of the location interface is a usvstring containing the username specified before the domain name.
... the username property of the location interface is a usvstring containing the username specified before the domain name.
...And 2 more matches
NavigatorID.appCodeName - Web APIs
the value of the navigatorid.appcodename property is always "mozilla", in any browser.
... the value of the navigatorid.appcodename property is always "mozilla", in any browser.
... the value of the navigatorid.appcodename property is always "mozilla", in any browser.
...And 2 more matches
NavigatorID.appName - Web APIs
the value of the navigatorid.appname property is always "netscape", in any browser.
... the value of the navigatorid.appname property is always "netscape", in any browser.
... the value of the navigatorid.appname property is always "netscape", in any browser.
...And 2 more matches
PasswordCredential.name - Web APIs
the name read-only property of the passwordcredential interface returns a usvstring containing a human-readable public name for display in a credential chooser.
... the name read-only property of the passwordcredential interface returns a usvstring containing a human-readable public name for display in a credential chooser.
... the name read-only property of the passwordcredential interface returns a usvstring containing a human-readable public name for display in a credential chooser.
...And 2 more matches
PasswordCredential.passwordName - Web APIs
the passwordname property of the passwordcredential interface returns a usvstring, depicting the name used by the password field, when submitting the current object to a remote endpoint via fetch.
... the passwordname property of the passwordcredential interface returns a usvstring, depicting the name used by the password field, when submitting the current object to a remote endpoint via fetch.
... the passwordname property of the passwordcredential interface returns a usvstring, depicting the name used by the password field, when submitting the current object to a remote endpoint via fetch.
...And 2 more matches
PaymentMethodChangeEvent.methodName - Web APIs
the read-only methodname property of the paymentmethodchangeevent interface is a string which uniquely identifies the payment handler currently selected by the user.
...f the paymentmethodchangeevent interface is a string which uniquely identifies the payment handler currently selected by the user.
...ce is a string which uniquely identifies the payment handler currently selected by the user.
...And 2 more matches
PaymentResponse.methodName - Web APIs
the methodname read-only property of the paymentresponse interface returns a string uniquely identifying the payment handler selected by the user.
... the methodname read-only property of the paymentresponse interface returns a string uniquely identifying the payment handler selected by the user.
... the methodname read-only property of the paymentresponse interface returns a string uniquely identifying the payment handler selected by the user.
...And 2 more matches
SVGFontFaceNameElement - Web APIs
the svgfontfacenameelement interface corresponds to the <font-face-name> elements.
... the svgfontfacenameelement interface corresponds to the <font-face-name> elements.
...face-name> element via the svg dom is not possible.
...And 2 more matches
TaskAttributionTiming.containerName - Web APIs
the containername readonly property of the taskattributiontiming interface returns the container's name attribute.
... the containername readonly property of the taskattributiontiming interface returns the container's name attribute.
... the containername readonly property of the taskattributiontiming interface returns the container's name attribute.
...And 2 more matches
USBConfiguration.configurationName - Web APIs
the configurationname read-only property of the usbconfiguration interface returns the name provided by the device to describe this configuration.
... the configurationname read-only property of the usbconfiguration interface returns the name provided by the device to describe this configuration.
... the configurationname read-only property of the usbconfiguration interface returns the name provided by the device to describe this configuration.
...And 2 more matches
Intl.DisplayNames() constructor - JavaScript
the intl.displaynames() constructor creates objects that enables the consistent translation of language, region and script display names.
... the intl.displaynames() constructor creates objects that enables the consistent translation of language, region and script display names.
...rt" "long" type the type to use, the default is "language".
...And 2 more matches
Intl.Locale.prototype.baseName - JavaScript
the intl.locale.prototype.basename property returns a substring of the locale's string representation, containing core information about the locale.
... the intl.locale.prototype.basename property returns a substring of the locale's string representation, containing core information about the locale.
... representation, containing core information about the locale.
...And 2 more matches
attributeName - SVG: Scalable Vector Graphics
the attributename attribute indicates the name of the css property or attribute of the target element that is going to be changed during an animation.
...ame of the css property or attribute of the target element that is going to be changed during an animation.
...are using this attribute: <animate>, <animatecolor>, <animatetransform>, and <set> html, body, svg { height: 100%; } <svg viewbox="0 0 250 250" xmlns="http://www.w3.org/2000/svg"> <rect x="50" y="50" width="100" height="100"> <animate attributetype="xml" attributename="y" from="0" to="50" dur="5s" repeatcount="indefinite"/> </rect> </svg> usage notes value <name> default value none animatable no <name> this value indicates the name of the css property or attribute of the target element to be animated.
...And 2 more matches
local-name - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the local-name function returns a string representing the local name of the first node in a given node-set.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the local-name function returns a string representing the local name of the first node in a given node-set.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the local-name function returns a string representing the local name of the first node in a given node-set.
...And 2 more matches
namespace-uri - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the namespace-uri function returns a string representing the namespace uri of the first node in a given node-set.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the namespace-uri function returns a string representing the namespace uri of the first node in a given node-set.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the namespace-uri function returns a string representing the namespace uri of the first node in a given node-set.
...And 2 more matches
windowsGetShortName - Archive of obsolete content
summary returns a path that conforms to the windows 8.3 file naming convention.
... summary returns a path that conforms to the windows 8.3 file naming convention.
...ndowsgetshortname( object localdirspec ) parameters the windowsregisterserver method has the following parameter: localdirspec a filespecobject representing a directory obtained by getcomponentfolder or getfolder.
...ters the windowsregisterserver method has the following parameter: localdirspec a filespecobject representing a directory obtained by getcomponentfolder or getfolder.
mozbrowserusernameandpasswordrequired
non-standard this feature is non-standard and is not on a standards track.
... web: it will not work for every user.
... host a domstring representing the host requesting the http authentification.
... authentication is a proxy server (true) or not (false).
PR GetCanonNameFromAddrInfo
extracts the canonical name of the hostname passed to pr_getaddrinfobyname.
... extracts the canonical name of the hostname passed to pr_getaddrinfobyname.
... extracts the canonical name of the hostname passed to pr_getaddrinfobyname.
...ts the canonical name of the hostname passed to pr_getaddrinfobyname.
JS_GetTypeName
obsolete since jsapi 34this feature is obsolete.
... obsolete since jsapi 34this feature is obsolete.
...ral description of a specified js data type.
...xt * pointer to a js context from which to derive runtime information.
AnimationEvent.animationName - Web APIs
the animationevent.animationname read-only property is a domstring containing the value of the animation-name css property associated with the transition.
... the animationevent.animationname read-only property is a domstring containing the value of the animation-name css property associated with the transition.
... the animationevent.animationname read-only property is a domstring containing the value of the animation-name css property associated with the transition.
... the animationevent.animationname read-only property is a domstring containing the value of the animation-name css property associated with the transition.
BluetoothDevice.name - Web APIs
the bluetoothdevice.name read-only property returns a domstring that provides a human-readable name for the device.
... the bluetoothdevice.name read-only property returns a domstring that provides a human-readable name for the device.
... the bluetoothdevice.name read-only property returns a domstring that provides a human-readable name for the device.
... the bluetoothdevice.name read-only property returns a domstring that provides a human-readable name for the device.
CSSNamespaceRule.prefix - Web APIs
the cssnamespacerule.prefix read-only property returns a domstring with the name of the prefix associated to this namespace.
... the cssnamespacerule.prefix read-only property returns a domstring with the name of the prefix associated to this namespace.
... the cssnamespacerule.prefix read-only property returns a domstring with the name of the prefix associated to this namespace.
...he cssnamespacerule.prefix read-only property returns a domstring with the name of the prefix associated to this namespace.
DOMException.name - Web APIs
Web › API › DOMException › name
the name read-only property of the domexception interface returns a domstring that contains one of the strings associated with an error name.
... the name read-only property of the domexception interface returns a domstring that contains one of the strings associated with an error name.
... the name read-only property of the domexception interface returns a domstring that contains one of the strings associated with an error name.
... the name read-only property of the domexception interface returns a domstring that contains one of the strings associated with an error name.
File.fileName - Web APIs
Web › API › File › fileName
he web: it will not work for every user.
...vior may change in the future.
...re.
...e gecko 7.0 (firefox 7.0 / thunderbird 7.0 / seamonkey 2.4)this feature is obsolete.
HTMLObjectElement.name - Web APIs
the name property of the htmlobjectelement interface returns a domstring that reflects the name html attribute, specifying the name of the browsing context.
... the name property of the htmlobjectelement interface returns a domstring that reflects the name html attribute, specifying the name of the browsing context.
... the name property of the htmlobjectelement interface returns a domstring that reflects the name html attribute, specifying the name of the browsing context.
... the name property of the htmlobjectelement interface returns a domstring that reflects the name html attribute, specifying the name of the browsing context.
OverconstrainedError.name - Web APIs
the name read-only property of the overconstrainederror interface will always return 'overconstrainederror'.
... the name read-only property of the overconstrainederror interface will always return 'overconstrainederror'.
... the name read-only property of the overconstrainederror interface will always return 'overconstrainederror'.
... the name read-only property of the overconstrainederror interface will always return 'overconstrainederror'.
SpeechSynthesisEvent.name - Web APIs
the name read-only property of the speechsynthesisutterance interface returns the name associated with certain types of events occuring as the speechsynthesisutterance.text is being spoken: the name of the ssml marker reached in the case of a mark event, or the type of boundary reached in the case of a boundary event.
... the name read-only property of the speechsynthesisutterance interface returns the name associated with certain types of events occuring as the speechsynthesisutterance.text is being spoken: the name of the ssml marker reached in the case of a mark event, or the type of boundary reached in the case of a boundary event.
...speechsynthesisutterance interface returns the name associated with certain types of events occuring as the speechsynthesisutterance.text is being spoken: the name of the ssml marker reached in the case of a mark event, or the type of boundary reached in the case of a boundary event.
...er reached in the case of a mark event, or the type of boundary reached in the case of a boundary event.
TransitionEvent.transitionName - Web APIs
the transitionevent.transitionname read-only property is a domstring containing the name of the css property associated with the transition.
... the transitionevent.transitionname read-only property is a domstring containing the name of the css property associated with the transition.
... the transitionevent.transitionname read-only property is a domstring containing the name of the css property associated with the transition.
... the transitionevent.transitionname read-only property is a domstring containing the name of the css property associated with the transition.
USBDevice.productName - Web APIs
the productname read only property of the usbdevice interface the manufacturer-defined name that identifies a usb device.
... the productname read only property of the usbdevice interface the manufacturer-defined name that identifies a usb device.
... the productname read only property of the usbdevice interface the manufacturer-defined name that identifies a usb device.
... the productname read only property of the usbdevice interface the manufacturer-defined name that identifies a usb device.
WebGLActiveInfo.name - Web APIs
the read-only webglactiveinfo.name property represents the name of the requested data returned by calling the getactiveattrib() or getactiveuniform() methods.
... the read-only webglactiveinfo.name property represents the name of the requested data returned by calling the getactiveattrib() or getactiveuniform() methods.
... the read-only webglactiveinfo.name property represents the name of the requested data returned by calling the getactiveattrib() or getactiveuniform() methods.
...operty represents the name of the requested data returned by calling the getactiveattrib() or getactiveuniform() methods.
XPathNSResolver.lookupNamespaceURI() - Web APIs
the lookupnamespaceuri method looks up the namespace uri associated to the given namespace prefix within an xpath expression evaluated by the xpathevaluator interface.
... the lookupnamespaceuri method looks up the namespace uri associated to the given namespace prefix within an xpath expression evaluated by the xpathevaluator interface.
... the lookupnamespaceuri method looks up the namespace uri associated to the given namespace prefix within an xpath expression evaluated by the xpathevaluator interface.
....
Intl.DisplayNames.supportedLocalesOf() - JavaScript
the intl.displaynames.supportedlocalesof() method returns an array containing those of the provided locales that are supported in date and time formatting without having to fall back to the runtime's default locale.
... the intl.displaynames.supportedlocalesof() method returns an array containing those of the provided locales that are supported in date and time formatting without having to fall back to the runtime's default locale.
...ikely to be supported.
...or balinese since most balinese speakers also understand indonesian, and therefore return the balinese language tag as well.
<font-face-name> - SVG: Scalable Vector Graphics
the <font-face-name> element points to a locally installed copy of this font, identified by its name.
... the <font-face-name> element points to a locally installed copy of this font, identified by its name.
... the <font-face-name> element points to a locally installed copy of this font, identified by its name.
...font, identified by its name.
mozilla::services namespace
the services c++ namespace offers an easy and efficient alternative for obtaining a service as compared to the indirect xpcom approach: getservice(), callgetservice(), etc methods are expensive and should be avoided when possible.
...ce offers an easy and efficient alternative for obtaining a service as compared to the indirect xpcom approach: getservice(), callgetservice(), etc methods are expensive and should be avoided when possible.
... to use it, you first need to include the header into your c++ file: #include "mozilla/services.h" then you can obtain references to services by simply accessing them from the mozilla::services namespace.
GetActionName
« nsiaccessible page summary this method retrieves the name of the accessible action at the given zero-based index.
... « nsiaccessible page summary this method retrieves the name of the accessible action at the given zero-based index.
... « nsiaccessible page summary this method retrieves the name of the accessible action at the given zero-based index.
FileHandle.name - Web APIs
non-standard this feature is non-standard and is not on a standards track.
... non-standard this feature is non-standard and is not on a standards track.
... non-standard this feature is non-standard and is not on a standards track.
MerchantValidationEvent.methodName - Web APIs
the merchantvalidationevent property methodname is a read-only value which returns a string indicating the payment method identifier which represents the payment handler that requires merchant validation.
... the merchantvalidationevent property methodname is a read-only value which returns a string indicating the payment method identifier which represents the payment handler that requires merchant validation.
...ntax methodid = merchantvalidationevent.methodname; value a read-only domstring which uniquely identifies the payment handler which is requesting merchant validation.
PerformanceServerTiming.name - Web APIs
the name read-only property returns a domstring value of the server-specified metric name.
... the name read-only property returns a domstring value of the server-specified metric name.
... the name read-only property returns a domstring value of the server-specified metric name.
RTCIceCandidateInit.usernameFragment - Web APIs
the optional property usernamefragment in the rtcicecandidateinit dictionary specifies the value of the rtcicecandidate object's usernamefragment property.
... the optional property usernamefragment in the rtcicecandidateinit dictionary specifies the value of the rtcicecandidate object's usernamefragment property.
... which bit 4 of each character is randomly selected between 0 and 1.
USBDevice.manufacturerName - Web APIs
the manufacturername read only property of the usbdevice interface the of the organization that manufactured the usb device.
... the manufacturername read only property of the usbdevice interface the of the organization that manufactured the usb device.
... the manufacturername read only property of the usbdevice interface the of the organization that manufactured the usb device.
CSS Namespaces - CSS: Cascading Style Sheets
css namespaces is a css module that allows authors to specify xml namespaces in css.
... css namespaces is a css module that allows authors to specify xml namespaces in css.
... css namespaces is a css module that allows authors to specify xml namespaces in css.
SyntaxError: applying the 'delete' operator to an unqualified name is deprecated - JavaScript
the javascript strict mode-only exception "applying the 'delete' operator to an unqualified name is deprecated" occurs when variables are attempted to be deleted using the delete operator.
... the javascript strict mode-only exception "applying the 'delete' operator to an unqualified name is deprecated" occurs when variables are attempted to be deleted using the delete operator.
... delete operator page for more details.
Error.prototype.fileName - JavaScript
the filename property contains the path to the file that raised this error.
... the filename property contains the path to the file that raised this error.
... the filename property contains the path to the file that raised this error.
preference.name - Archive of obsolete content
« xul reference home name type: string the name of the preference to change.
... « xul reference home name type: string the name of the preference to change.
query.name - Archive of obsolete content
« xul reference home name type: string the name of a parameter within the sql statement.
... « xul reference home name type: string the name of a parameter within the sql statement.
Forbidden response header name - MDN Web Docs Glossary: Definitions of Web-related terms
a forbidden response header name is an http header name (either `set-cookie` or `set-cookie2`) that cannot be modified programmatically.
... a forbidden response header name is an http header name (either `set-cookie` or `set-cookie2`) that cannot be modified programmatically.
PR_FreeLibraryName
frees memory allocated by nspr for library names and path names.
... frees memory allocated by nspr for library names and path names.
PR_GetNameForIdentity
gets the string associated with a layer's unique identity.
...ction has the following parameter: ident a layer's identity.
Name
« nsiaccessible page summary accessible name -- the main text equivalent for this node.
... « nsiaccessible page summary accessible name -- the main text equivalent for this node.
name - Archive of obsolete content
Archive › Mozilla › XUL › Attribute › name
« xul reference home see also menuitem.name preference.name query.name ...
toolbarname - Archive of obsolete content
« xul reference home toolbarname not in seamonkey 1.x type: string the name of the toolbar, which is listed on the show/hide toolbars menu.
getSessionByName - Archive of obsolete content
« xul reference home getsessionbyname( name ) obsolete since gecko 26 return type: nsiautocompletesession returns the session object with the given name.
className - Archive of obsolete content
« xul reference classname type: string gets and sets the value of the class attribute.
name - Archive of obsolete content
Archive › Mozilla › XUL › Property › name
« xul reference name type: string the name of the preference to change.
toolbarName - Archive of obsolete content
« xul reference toolbarname not in seamonkey 1.x type: string the name of the toolbar.
Placeholder names - MDN Web Docs Glossary: Definitions of Web-related terms
placeholder names are commonly used in cryptography to indicate the participants in a conversation, without resorting to terminology such as "party a," "eavesdropper," and "malicious attacker." the most commonly used names are: alice and bob, two parties who want to send messages to each other, occasionally joined by carol, a third participant eve, a passive attacker who is eavesdropping on alice and bob's conversation mallory, an active attacker ("man-in-the-middle") who is able to modify their conversation and replay old messages ...
Namespace
below, find links to articles about c++ classes mozilla uses within various namespaces, primarily the mozilla namespace.
PR_GetPeerName
gets the network address of the connected peer.
PR_GetSockName
gets network address for a specified socket.
PR_NAME
syntax #include <prinit.h> #define pr_name "nspr" description nspr name.
namespace - XPath
Web › XPath › Axes › namespace
(not supported) the namespace axis indicates all the nodes that are in scope for the context node.
Index - Web APIs
Web › API › Index
ip code, payment, postalcode an object based on addresserrors includes a postalcode property when the address's postalcode property couldn't be validated.
... web animations the animationevent interface represents events providing information related to animations.
...87 animationevent() api, animationevent, cssom, constructor, experimental, reference, web animations the animationevent() constructor returns a newly created animationevent, representing an event in relation with an animation.
...And 476 more matches
Index
ublic portion of your own certificates, the certificates of peers or cas, and a list of trust decisions (such as to not trust a built-in ca, or to explicitly trust other cas).
...f peers or cas, and a list of trust decisions (such as to not trust a built-in ca, or to explicitly trust other cas).
... wrapped using a protective layer (such as password-based encryption).
...And 253 more matches
Bytecode Descriptions
ndefined pop the top value on the stack, discard it, and push undefined.
...op value on the stack, discard it, and push undefined.
...ays a string that depends on the type of val.
...And 157 more matches
nsIAnnotationService
/annotation-service;1".
... .getservice(components.interfaces.nsiannotationservice); note: the annotation service is not thread-safe.
...it from the main thread.
...And 148 more matches
WebIDL bindings
notes: need to document the setup for indexed and named setters/creators/deleters.
... dom/tests/mochitest/general/test_interfaces.html will most likely fail.
... annoy the dom peers and they'll make you get the review anyway.
...And 128 more matches
Enc Dec MAC Using Key Wrap CertReq PKCS10 CSR
, add_cert_to_db, save_cert_to_header, encrypt, decrypt, sign, verify, unknown } commandtype; typedef enum { symkey = 0, mackey = 1, iv = 2, mac = 3, pad = 4, pubkey = 5, lab = 6, certenc= 7, certvfy= 8, sig = 9 } headertype; /* * print usage message and exit */ static void usage(const char *progname) { fprintf(stderr, "\nusage: %s %s %s %s %s %s %s %s %s %s\n\n", progname, " -<g|a|h|e|ds|v> -d <dbdirpath> ", "[-p <dbpwd> | -f <dbpwdfile>] [-z <noisefilename>] [-a <\"\">]", "-s <subject> -r <csr> | ", "-n <nickname> -t <trust> -c <cert> [ -r <csr> -u <issuernickname> [-x <\"\">] -m <serialnumber> ] | ", "-n <...
... fprintf(stderr, "\nusage: %s %s %s %s %s %s %s %s %s %s\n\n", progname, " -<g|a|h|e|ds|v> -d <dbdirpath> ", "[-p <dbpwd> | -f <dbpwdfile>] [-z <noisefilename>] [-a <\"\">]", "-s <subject> -r <csr> | ", "-n <nickname> -t <trust> -c <cert> [ -r <csr> -u <issuernickname> [-x <\"\">] -m <serialnumber> ] | ", "-n <nickname> -b <headerfilename> | ", "-b <headerfilename> -i <ipfilename> -e <encryptfilename> | ", "-b <headerfilename> -i <ipfilename> | ", "-b <headerfilename> -i <ipfilename> | ", "-b <headerfilename> -e <encryptfilename> -o <opfilename> \n"); fprintf(stderr, "commands:\n\n"); fprintf(stderr, "%s %s\n --for generating cert request (for ca als...
... "-b <headerfilename> -i <ipfilename> -e <encryptfilename> | ", "-b <headerfilename> -i <ipfilename> | ", "-b <headerfilename> -i <ipfilename> | ", "-b <headerfilename> -e <encryptfilename> -o <opfilename> \n"); fprintf(stderr, "commands:\n\n"); fprintf(stderr, "%s %s\n --for generating cert request (for ca also)\n\n", progname, "-g -s <subject> -r <csr>"); fprintf(stderr, "%s %s\n --to input and store cert (for ca also)\n\n", progname, "-a -n <nickname> -t <trust> -c <cert> [ -r <csr> -u <issuernickname> [-x <\"\">] -m <serialnumber> ]"); fprintf(stderr, "%s %s\n --to put cert in header\n\n", progname, "-h -n <nickname> -b <headerfilename> [-v <\"\">]"); fprintf(stderr, "%s %s...
...And 96 more matches
nsIContentPrefService2
introduced gecko 20.0 inherits from: nsisupports last changed in gecko 20.0 (firefox 20.0 / thunderbird 20.0 / seamonkey 2.17) description content preferences allow the application to associate arbitrary data, or "preferences", with specific domains, or web "content".
...".
...e user's preference for a certain zoom level on www.mozilla.org pages, you might store a preference whose domain is "www.mozilla.org", whose name is "zoomlevel", and whose value is the numeric zoom level.
...And 86 more matches
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
Web › HTML › Element › input
e different types are covered in their own separate reference pages.
...the available types are as follows: type description basic examples spec button a push button with no default behavior displaying the value of the value attribute, empty by default.
... displaying the value of the value attribute, empty by default.
...And 86 more matches
sample2
_errortostring((err), pr_language_i_default) #endif /* sample 6 commands */ typedef enum { generate_csr, add_cert_to_db, save_cert_to_header, encrypt, decrypt, sign, verify, unknown } commandtype; typedef enum { symkey = 0, mackey = 1, iv = 2, mac = 3, pad = 4, pubkey = 5, lab = 6, certenc= 7, certvfy= 8, sig = 9 } headertype; /* * print usage message and exit */ static void usage(const char *progname) { fprintf(stderr, "\nusage: %s %s %s %s %s %s %s %s %s %s\n\n", progname, " -<g|a|h|e|ds|v> -d <dbdirpath> ", "[-p <dbpwd> | -f <dbpwdfile>] [-z <noisefilename>] [-a <\"\">]", "-s <subject> -r <csr> | ", "-n <nickname> -t <trust> -c <cert> [ -r <csr> -u <issuernickname> [-x <\"\">] -m <serialnumber> ] | ", "-n <nickname> -b <headerfilename> | ", "-b <headerfilename> -i <ipfilename> -e <encryptfi...
...{ fprintf(stderr, "\nusage: %s %s %s %s %s %s %s %s %s %s\n\n", progname, " -<g|a|h|e|ds|v> -d <dbdirpath> ", "[-p <dbpwd> | -f <dbpwdfile>] [-z <noisefilename>] [-a <\"\">]", "-s <subject> -r <csr> | ", "-n <nickname> -t <trust> -c <cert> [ -r <csr> -u <issuernickname> [-x <\"\">] -m <serialnumber> ] | ", "-n <nickname> -b <headerfilename> | ", "-b <headerfilename> -i <ipfilename> -e <encryptfilename> | ", "-b <headerfilename> -i <ipfilename> | ", "-b <headerfilename> -i <ipfilename> | ", "-b <headerfilename> -e <encryptfilename> -o <opfilename> \n"); fprintf(stderr, "commands:\n\n"); fprintf(stderr, "%s %s\n --for generating cert request (for ca also)\n\n", progname, "-g -s <subject> -r <csr>"); fprintf(stderr, "%s %s\n --to input and store cert (for ca also)\n\n", progname, "-a -n <nickname...
... "-b <headerfilename> -i <ipfilename> | ", "-b <headerfilename> -e <encryptfilename> -o <opfilename> \n"); fprintf(stderr, "commands:\n\n"); fprintf(stderr, "%s %s\n --for generating cert request (for ca also)\n\n", progname, "-g -s <subject> -r <csr>"); fprintf(stderr, "%s %s\n --to input and store cert (for ca also)\n\n", progname, "-a -n <nickname> -t <trust> -c <cert> [ -r <csr> -u <issuernickname> [-x <\"\">] -m <serialnumber> ]"); fprintf(stderr, "%s %s\n --to put cert in header\n\n", progname, "-h -n <nickname> -b <headerfilename> [-v <\"\">]"); fprintf(stderr, "%s %s\n --to find public key from cert in header and encrypt\n\n", progname, "-e -b <headerfilename> -i <ipfilename> -e <encryptfilename> "); fprintf(stderr, "%s %s\n --decrypt using corresponding private key \n\n", progname, "-...
...And 83 more matches
Client-side storage - Learn web development
y are still used commonly to store data related to user personalization and state, e.g.
...s tokens.
...n.
...And 80 more matches
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
nux systems (i suspect mac osx would be fine too).
...y is 7), and the presence of the file (netscape.cfg) in the mozilla_home directory suffices for it to be read and executed.
...the mozilla_home directory suffices for it to be read and executed.
...And 79 more matches
A re-introduction to JavaScript (JS tutorial) - JavaScript
profile applications, showing that deeper knowledge of this technology is an important skill for any web or mobile developer.
...alues can be called "truthy" and "falsy", respectively.
...riable pi is set pi = 1; // will throw an error because you cannot change a constant variable.
...And 78 more matches
Index
andle jsapi reference, reference, référence(2), spidermonkey here, ptr represents the private member of js::mutablehandle<t>, typed with t *.
... reference, référence(2), spidermonkey here, ptr represents the private member of js::mutablehandle<t>, typed with t *.
... spidermonkey js::ordinarytoprimitive converts a javascript object to a specified type value, by the algorithm specified in es6 draft rev 28 (2014 oct 14) 7.1.1, second algorithm.
...And 75 more matches
nsIDOMElement
dom/interfaces/core/nsidomelement.idlscriptable this interface represents an element in an html or xml document.
... dom/interfaces/core/nsidomelement.idlscriptable this interface represents an element in an html or xml document.
... dom/interfaces/core/nsidomelement.idlscriptable this interface represents an element in an html or xml document.
...And 73 more matches
Details of the object model - JavaScript
es and inheritance in a class-based language, you create a hierarchy of classes through the class definitions.
...ubclass of an already existing class.
...erty.
...And 72 more matches
JavaScript Object Management - Archive of obsolete content
« previousnext » chrome javascript in this section we'll look into how to handle javascript data effectively, beginning with chrome code, in ways which will prevent pollution of shared namespaces and conflicts with other add-ons resulting from such global namespace pollution.
... « previousnext » chrome javascript in this section we'll look into how to handle javascript data effectively, beginning with chrome code, in ways which will prevent pollution of shared namespaces and conflicts with other add-ons resulting from such global namespace pollution.
... javascript data effectively, beginning with chrome code, in ways which will prevent pollution of shared namespaces and conflicts with other add-ons resulting from such global namespace pollution.
...And 68 more matches
Debugger.Object - Firefox Developer Tools
ect prototype a debugger.object instance inherits the following accessor properties from its prototype: proto the referent's prototype (as a new debugger.object instance), or null if it has no prototype.
...e a debugger.object instance inherits the following accessor properties from its prototype: proto the referent's prototype (as a new debugger.object instance), or null if it has no prototype.
...erits the following accessor properties from its prototype: proto the referent's prototype (as a new debugger.object instance), or null if it has no prototype.
...And 68 more matches
JXON - Archive of obsolete content
jxon (lossless javascript xml object notation) is a generic name by which is defined the representation of javascript objects using xml.
...ized compromise for a javascript usage, since all of the information of an xml document is contained in these node types.
...t is contained in these node types.
...And 67 more matches
React interactivity: Events and state - Learn web development
ct to run a given function when the user clicks on the button.
...ecognize onclick (again, it is already used in javascript for a specific purpose, which is related but different — standard onclick handler properties).
...nstead, we can write a function in <app /> that will expect some data from our form as an input, then pass that function to <form /> as a prop.
...And 66 more matches
Advanced Svelte: Reactivity, lifecycle, accessibility - Learn web development
erates the required javascript to update only the parts of the dom that need to be updated.
...m to be created and added to the dom in order to use them.
...its own component.
...And 66 more matches
nsIWindowsRegKey
nged in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) the interface represents a single key in the registry.
...onkey 1.0) the interface represents a single key in the registry.
...face is highly win32 specific.
...And 65 more matches
React interactivity: Editing, filtering, conditional rendering - Learn web development
of tasks between all, completed, and incomplete tasks.
... at conditional ui rendering along the way.
...ering in react, and implementing list filtering and an editing ui in our app.
...And 64 more matches
Working with objects - JavaScript
« previousnext » javascript is designed on a simple object-based paradigm.
... a javascript object has properties associated with it.
... object has properties associated with it.
...And 63 more matches
mozIStorageBindingParams
code only!
...void bindint64byindex(in unsigned long aindex, in long long avalue); native code only!
...g long avalue); native code only!
...And 62 more matches
Introduction to using XPath in JavaScript - XPath
xpressions against an xml based document (including html documents), and returns a xpathresult object, which can be a single node or a set of nodes.
... xpathexpression, contextnode, namespaceresolver, resulttype, result ); parameters the evaluate function takes a total of five parameters: xpathexpression: a string containing the xpath expression to be evaluated.
...lttype, result ); parameters the evaluate function takes a total of five parameters: xpathexpression: a string containing the xpath expression to be evaluated.
...And 62 more matches
nsIFile
.
...de support on windows 2000 or later where the os itself does not have such a limitation.
... this change.
...And 61 more matches
Index - Archive of obsolete content
a file, and has a well defined interface.
...es functions to modify a page content.
... content/symbiont used by sdk modules that can load web content and attach content scripts to it.
...And 59 more matches
Using IndexedDB - Web APIs
e., db in the example).
...ger needed.
...change the keypath), then you must delete the old object store and create it again with the new options.
...And 59 more matches
passwords - Archive of obsolete content
interact with firefox's password manager to add, retrieve and remove stored credentials.
...om the password manager.
...fferent sorts of stored credentials include various additional properties, as outlined in this section.
...And 55 more matches
Fullscreen API - Web APIs
end us a pull request.
...equest.
...eedgefirefoxinternet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetfullscreen deprecatedchrome full support 71 full support 71 full support 15alternate name alternate name uses the non-standard name: webkitisfullscreenedge full support ≤79 full support ≤79 full support ≤79alternate name alternate name uses the non-standard name: webkitisfullscreenfirefox full support 64 full support ...
...And 55 more matches
NSS tools : certutil
name certutil — manage keys and certificate in both nss databases and other nss tokens synopsis certutil [options] [[arguments]] description the certificate database tool, certutil, is a command-line utility that can create and modify certificate and key databases.
...n will initialize one by default.
...he specified batch file.
...And 54 more matches
Old Proxy API - Archive of obsolete content
d, then that trap's code is called whenever the corresponding behavior happens on the proxy.
...the corresponding behavior happens on the proxy.
...sed.
...And 53 more matches
NSS tools : modutil
name modutil - manage pkcs #11 module information within the security module database.
...e security database files.
...abase files.
...And 53 more matches
NSS tools : modutil
Mozilla › Projects › NSS › tools › modutil
name modutil — manage pkcs #11 module information within the security module database.
... files.
...ociated with security module database management are part of a process that typically also involves managing key databases and certificate databases.
...And 53 more matches
Componentizing our React app - Learn web development
to todo.js too, as follows.
... we define the function and export it on the same line: export default function todo() { return ( ); } this is ok so far, but our component has to return something!
... ); } this is ok so far, but our component has to return something!
...And 52 more matches
JavaScript-DOM Prototypes in Mozilla
sobject properties such as constructor, and the non-standard __parent__, __proto__, etc.), all the dom functionality of obj comes from obj's prototype (obj.__proto__) that xpconnect sets up when exposing the first image in document to javascript.
...s nor their associated prototypes.
...ated prototypes.
...And 51 more matches
Encrypt Decrypt_MAC_Using Token
define mac_trailer "-----end mac-----" #define pad_header "-----begin pad-----" #define pad_trailer "-----end pad-----" typedef enum { encrypt, decrypt, unknown } commandtype; typedef enum { symkey = 0, mackey = 1, iv = 2, mac = 3, pad = 4 } headertype; /* * print usage message and exit.
...trailer "-----end pad-----" typedef enum { encrypt, decrypt, unknown } commandtype; typedef enum { symkey = 0, mackey = 1, iv = 2, mac = 3, pad = 4 } headertype; /* * print usage message and exit.
..."-c "); fprintf(stderr, "%-20s specify 'b' for decrypt operation\n\n", " "); fprintf(stderr, "%-20s specify db directory path\n\n", "-d "); fprintf(stderr, "%-20s specify db password [optional]\n\n", "-p "); fprintf(stderr, "%-20s specify db password file [optional]\n\n", "-f "); fprintf(stderr, "%-20s specify noise file name [optional]\n\n", "-z "); fprintf(stderr, "%-21s specify an input file name\n\n", "-i "); fprintf(stderr, "%-21s specify an output file name\n\n", "-o "); fprintf(stderr, "%-7s for encrypt, it takes as an input file and produces\n", "note :"); fprintf(stderr, "%-7s .enc and .header as intermediate output files.\n\n", ...
...And 51 more matches
certutil
name certutil — manage keys and certificate in the the nss database.
...ion will initialize one by default.
... delete a private key from a key database.
...And 51 more matches
nsIAbCard/Thunderbird3
mpletely for thunderbird 3.
...erbird 3.
...documentation for the old nsiabcard interface is currently at nsiabcard.
...And 51 more matches
sslcrt.html
certificate functions chapter 5 certificate functions this chapter describes the functions and related types used to work with a certificate database such as the cert7.db database provided with communicator.
...e functions this chapter describes the functions and related types used to work with a certificate database such as the cert7.db database provided with communicator.
... pr_geterror to obtain the error code.
...And 50 more matches
Index - MDN Web Docs Glossary: Definitions of Web-related terms
essibility, glossary aria (accessible rich internet applications) is a w3c specification for adding semantics and other metadata to html to cater to users of assistive technology.
...r decrypt messages that are longer than the block size.
...uter science, a boolean is a logical data type that can have only the values true or false.
...And 49 more matches
WebGL constants - Web APIs
the webgl api provides several constants that are passed into or returned by functions.
...torial has more information, examples, and resources on how to get started with webgl.
...rrent depth buffer.
...And 49 more matches
Closures - JavaScript
e combination of a function bundled together (enclosed) with references to its surrounding state (the lexical environment).
...nction bundled together (enclosed) with references to its surrounding state (the lexical environment).
...urrounding state (the lexical environment).
...And 49 more matches
JavaScript basics - Learn web development
ay have to start small, and progress gradually.
...nguages too!
...; note: a semicolon at the end of a line indicates where a statement ends.
...And 48 more matches
Storing the information you need — Variables - Learn web development
to access this tool).
...is a variable?
...s a container for a value, like a number we might use in a sum, or a string that we might use as part of a sentence.
...And 48 more matches
JavaScript object basics - Learn web development
now open your browser's javascript console, enter person into it, and press enter/return.
...to one of the below lines: [object object] object { } { } congratulations, you've just created your first object.
...ines: [object object] object { } { } congratulations, you've just created your first object.
...And 48 more matches
Enc Dec MAC Output Public Key as CSR
n't.
.../ #ifndef port_errortostring #ifndef sec_error_base #define sec_error_base (-0x2000) #define port_errortostring(err) pr_errortostring((err), pr_language_i_default) #endif #endif /* * print usage message and exit */ static void usage(const char *progname) { fprintf(stderr, "\nusage: %s -c -d [-z ] " "[-p | -f ] -s -r -i -o \n\n", progname); fprintf(stderr, "%-20s specify 'g' for generating rsa keypair for wrapping\n\n", "g"); fprintf(stderr, "%-20s specify 'e' for encrypt operation\n\n", "e"); fprintf(stderr, "%-20s specify 'd' for decrypt operation\n\n", "d"); fprintf(stderr, "%-20s specify db directory path\n\n", "-d "); fprintf(stderr, "%-20s specify d...
... "e"); fprintf(stderr, "%-20s specify 'd' for decrypt operation\n\n", "d"); fprintf(stderr, "%-20s specify db directory path\n\n", "-d "); fprintf(stderr, "%-20s specify db password [optional]\n\n", "-p "); fprintf(stderr, "%-20s specify db password file [optional]\n\n", "-f "); fprintf(stderr, "%-20s specify noise file name [optional]\n\n", "-z "); fprintf(stderr, "%-21s specify subject\n\n", "-s "); fprintf(stderr, "%-21s specify certficate request file name\n\n", "-r "); fprintf(stderr, "%-21s specify an input file name\n\n", "-i "); fprintf(stderr, "%-21s specify an output file name\n\n", "-o "); fprintf(stderr, "%-7s for encrypt...
...And 48 more matches
Debugger.Object - Firefox Developer Tools
eferent’s prototype (as a new debugger.object instance), or null if it has no prototype.
...prototype (as a new debugger.object instance), or null if it has no prototype.
...ct instance), or null if it has no prototype.
...And 48 more matches
NSS Tools modutil
specify an action.
...the modutil command are defined as follows: options -create create new secmod.db, key3.db, and cert8.db files.
...rt8.db files.
...And 47 more matches
nsIContentPrefService
last changed in gecko 2 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) inherits from: nsisupports implemented by: @mozilla.org/content-pref/service;1.
...ted by: @mozilla.org/content-pref/service;1.
...vice;1"] .getservice(components.interfaces.nsicontentprefservice); method overview void addobserver(in astring aname, in nsicontentprefobserver aobserver); nsivariant getpref(in nsivariant agroup, in astring aname, [optional] in nsicontentprefcallback acallback); nsipropertybag2 getprefs(in nsivariant agroup); nsipropertybag2 getprefsbyname(in astring aname); boolean haspref(in nsivariant agroup, in astring aname); void removegroupedprefs(); void removeobserver(in astring aname, in nsicontentprefobserver aobserver); void removepref(in nsivariant agroup, in astring aname); void removeprefsbyname(in astring aname); void setpref(in nsivariant agroup, in astring aname, in nsivaria...
...And 46 more matches
:is() (:matches(), :any()) - CSS: Cascading Style Sheets
Web › CSS › :is
note: :matches() was renamed to :is() in csswg issue #3258.
...or: red; cursor: pointer; } syntax :is( <complex-selector-list> )where <complex-selector-list> = <complex-selector>#where <complex-selector> = <compound-selector> [ <combinator>?
...[ <pseudo-element-selector> <pseudo-class-selector>* ]* ]!<combinator> = '>' | '+' | '~' | [ '|' ]where <type-selector> = <wq-name> | <ns-prefix>?
...And 45 more matches
Migrate apps from Internet Explorer to Mozilla - Archive of obsolete content
rich text editing, that mozilla does support because no w3c equivalent existed at the time.
...nts legacy apis if they are unachievable with w3c web standards.
...vable with w3c web standards.
...And 44 more matches
Gecko info for Windows accessibility vendors
ll need the tools and docs that come with the active accessibility 2.0 sdk tools.
...ons, text fields, combo boxes and list boxes.
...subtrees of iaccessibles whenever an event_reorder is received, indicating important changes have invalidated part of the model.
...And 44 more matches
NSS Sample Code Sample_3_Basic Encryption and MACing
" #define mac_trailer "-----end mac-----" #define pad_header "-----begin pad-----" #define pad_trailer "-----end pad-----" typedef enum { encrypt, decrypt, unknown } commandtype; typedef enum { symkey = 0, mackey = 1, iv = 2, mac = 3, pad = 4 } headertype; /* print a usage message and exit */ static void usage(const char *progname) { fprintf(stderr, "\nusage: %s -c <a|b> -d <dbdirpath> [-z <noisefilename>] " "[-p <dbpwd> | -f <dbpwdfile>] -i <ipfilename> -o <opfilename>\n\n", progname); fprintf(stderr, "%-20s specify 'a' for encrypt operation\n\n", "-c <a|b>"); fprintf(stderr, "%-20s specify 'b' for decrypt operation\n\n", " "); fprintf(stderr, "%-20s sp...
...%-20s specify 'b' for decrypt operation\n\n", " "); fprintf(stderr, "%-20s specify db directory path\n\n", "-d <dbdirpath>"); fprintf(stderr, "%-20s specify db password [optional]\n\n", "-p <dbpwd>"); fprintf(stderr, "%-20s specify db password file [optional]\n\n", "-f <dbpwdfile>"); fprintf(stderr, "%-20s specify noise file name [optional]\n\n", "-z <noisefilename>"); fprintf(stderr, "%-21s specify an input file name\n\n", "-i <ipfilename>"); fprintf(stderr, "%-21s specify an output file name\n\n", "-o <opfilename>"); fprintf(stderr, "%-7s for encrypt, it takes <ipfilename> as an input file and produces\n", "note :"); fprintf(stderr, "%-7s <ipfilename>.e...
...n", "-z <noisefilename>"); fprintf(stderr, "%-21s specify an input file name\n\n", "-i <ipfilename>"); fprintf(stderr, "%-21s specify an output file name\n\n", "-o <opfilename>"); fprintf(stderr, "%-7s for encrypt, it takes <ipfilename> as an input file and produces\n", "note :"); fprintf(stderr, "%-7s <ipfilename>.enc and <ipfilename>.header as intermediate output files.\n\n", ""); fprintf(stderr, "%-7s for decrypt, it takes <ipfilename>.enc and <ipfilename>.header\n", ""); fprintf(stderr, "%-7s as input files and produces <opfilename> as a final output file.\n\n", ""); exit(-1); } /* this source code form is subject to the terms of the mozilla public * license, v.
...And 42 more matches
NSS tools : signtool
name signtool — digitally sign objects and files.
... name signtool — digitally sign objects and files.
... name signtool — digitally sign objects and files.
...And 42 more matches
Shell global objects
is function is an alias of the print() function.
...print() function.
... accessed perfmeasurement see perfmeasurement.jsm.
...And 42 more matches
Using the Places annotation service
the annotation contract id is @mozilla.org/browser/annotation-service;1 var annotationservice = components.classes["@mozilla.org/browser/annotation-service;1"] .getservice(components.interfaces.nsiannotationservice); note that the annotation service is not thread-safe.
...mozilla.org/browser/annotation-service;1 var annotationservice = components.classes["@mozilla.org/browser/annotation-service;1"] .getservice(components.interfaces.nsiannotationservice); note that the annotation service is not thread-safe.
...browser/annotation-service;1 var annotationservice = components.classes["@mozilla.org/browser/annotation-service;1"] .getservice(components.interfaces.nsiannotationservice); note that the annotation service is not thread-safe.
...And 42 more matches
Index
Mozilla › Tech › XPCOM › Index
developing mozilla, developing_mozilla:tools, extensions, tools, xpcom guids are used in mozilla programming for identifying several types of entities, including xpcom interfaces (this type of guids is callled iid), components (cid), and legacy add-ons—like extensions and themes—that were created prior to firefox 1.5.
...t whose properties are classes indexed by contractid.
...mponents.manager xpcom:language bindings, xpconnect components.manager is a convenience reflection of the global native component manager service.
...And 42 more matches
DOMException - Web APIs
the domexception interface represents an abnormal event (called an exception) that occurs as a result of calling a method or accessing a property of a web api.
...nts an abnormal event (called an exception) that occurs as a result of calling a method or accessing a property of a web api.
...identifying the error or abnormal condition.
...And 42 more matches
Signaling and video calling - Web APIs
to its own ice subsystem.
...ognized message types are passed through and delivered, without the server needing to know what they are.
...r needing to know what they are.
...And 42 more matches
Elements - Archive of obsolete content
tion is tested and adjusted for the current firefox implementation.
...ed for the current firefox implementation.
...n actual behavior differs from the described one.
...And 41 more matches
Object-oriented JavaScript for beginners - Learn web development
ccess functionality that would otherwise be hard or impossible to make use of.
...rd or impossible to make use of.
...ecific programming language.
...And 41 more matches
Setting up your own test automation environment - Learn web development
ckodriver (for firefox) and chromedriver drivers.
... make sure everything is working.
...le_test.js: give it the following contents, then save it: const webdriver = require('selenium-webdriver'), by = webdriver.by, until = webdriver.until; const driver = new webdriver.builder() .forbrowser('firefox') .build(); driver.get('http://www.google.com'); driver.findelement(by.name('q')).sendkeys('webdriver'); driver.sleep(1000).then(function() { driver.findelement(by.name('q')).sendkeys(webdriver.key.tab); }); driver.findelement(by.name('btnk')).click(); driver.sleep(2000).then(function() { driver.gettitle().then(function(title) { if(title === 'webdriver - google search') { console.log('test passed'); } else { console.log('test failed'); } driver.quit(); }); }); in terminal, make sure you are inside your project folder, then ...
...And 41 more matches
nsIMsgHeaderParser
tion of interface ???
...s from: nsisupports last changed in gecko 1.9 (firefox 3) to create an instance, use: var msgheaderparser = components.classes["@mozilla.org/messenger/headerparser;1"] .createinstance(components.interfaces.nsimsgheaderparser); method overview string extractheaderaddressmailboxes(in string line); void extractheaderaddressname(in string line, out string name); void extractheaderaddressnames(in string line, out string usernames); astring makefulladdress(in astring aname, in astring aaddress); string makefulladdressstring(in string aname, in string aaddress); wstring makefulladdresswstring(in wstring name, in wstring addr); obsolete since gecko 1.9 void parseheaderaddresses(in string line, out string names,...
... string aname, in string aaddress); wstring makefulladdresswstring(in wstring name, in wstring addr); obsolete since gecko 1.9 void parseheaderaddresses(in string line, out string names, out string addresses, out pruint32 numaddresses); void parseheaderswitharray(in wstring aline, [array, size_is(count)] out wstring aemailaddresses, [array, size_is(count)] out wstring anames, [array, size_is(count)] out wstring afullnames, [retval] out unsigned long count); void reformatheaderaddresses(in string line, out string reformattedaddress); wstring reformatunquotedaddresses(in wstring line); void removeduplicateaddresses(in string addrs, in string other_addrs, in prbool removealiasestome, out string newaddress); string unquotephraseoraddr...
...And 41 more matches
Element - Web APIs
Web › API › Element
t-anchor="middle" alignment-baseline="middle">element</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent interface, node, and by extension that interface's parent, eventtarget.
...ode, and by extension that interface's parent, eventtarget.
... read only returns a number representing the inner height of the element.
...And 41 more matches
Proxy Auto-Configuration (PAC) file - HTTP
enabled to false in policy or by launching with the --unsafe-pac-url command-line flag (in chrome 74, only the flag works, and from 75 onward, there is no way to disable path-stripping; as of chrome 81, path-stripping does not apply to http urls, but there is interest in changing this behavior to match https); in firefox, the preference is network.proxy.autoconfig_url.include_path.
...rect same as above, but if both proxies go down, automatically start making direct connections.
...on about making direct connections; in this case, there is no user intervention.) proxy w3proxy.netscape.com:8080; socks socks:1080 use socks if the primary proxy goes down.
...And 41 more matches
JavaScript modules - JavaScript
full support 45safari ios full support 10.3samsung internet android full support 8.0nodejs full support 13.2.0notes full support 13.2.0notes notes modules must either have a filename ending in .mjs, or the nearest parent package.json file must contain "type": "module".
... 13.2.0notes full support 13.2.0notes notes modules must either have a filename ending in .mjs, or the nearest parent package.json file must contain "type": "module".
...12.0.0notes disabled notes modules must either have a filename ending in .mjs, or the nearest parent package.json file must contain "type": "module".
...And 41 more matches
Functions - JavaScript
"honda", model: "accord", year: 1998 }; /* logs 'honda' */ console.log(mycar.brand); /* pass object reference to the function */ myfunc(mycar); /* * logs 'toyota' as the value of the 'brand' property * of the object, as changed to by the function.
...function.
... does not refer to the currently executing function, so you must refer to function objects by name, even within the function body.
...And 41 more matches
Encrypt Decrypt MAC Keys As Session Objects
#define mac_trailer "-----end mac-----" #define pad_header "-----begin pad-----" #define pad_trailer "-----end pad-----" typedef enum { encrypt, decrypt, unknown } commandtype; typedef enum { symkey = 0, mackey = 1, iv = 2, mac = 3, pad = 4 } headertype; /* * print usage message and exit */ static void usage(const char *progname) { fprintf(stderr, "\nusage: %s -c -d [-z ] " "[-p | -f ] -i -o \n\n", progname); fprintf(stderr, "%-20s specify 'a' for encrypt operation\n\n", "-c "); fprintf(stderr, "%-20s specify 'b' for decrypt operation\n\n", " "); fprintf(stderr, "%-20s specify db directory path\n\n", "-d "); fprintf(stderr, "%-20s ...
..."-c "); fprintf(stderr, "%-20s specify 'b' for decrypt operation\n\n", " "); fprintf(stderr, "%-20s specify db directory path\n\n", "-d "); fprintf(stderr, "%-20s specify db password [optional]\n\n", "-p "); fprintf(stderr, "%-20s specify db password file [optional]\n\n", "-f "); fprintf(stderr, "%-20s specify noise file name [optional]\n\n", "-z "); fprintf(stderr, "%-21s specify an input file name\n\n", "-i "); fprintf(stderr, "%-21s specify an output file name\n\n", "-o "); fprintf(stderr, "%-7s for encrypt, it takes as an input file and produces\n", "note :"); fprintf(stderr, "%-7s .enc and .header as intermediate output files.\n\n", ...
...ymkey(pk11slotinfo *slot, ck_mechanism_type mechanism, int keysize, secitem *keyid, secupwdata *pwdata) { secstatus rv; pk11symkey *key; if (pk11_needlogin(slot)) { rv = pk11_authenticate(slot, pr_true, pwdata); if (rv != secsuccess) { pr_fprintf(pr_stderr, "could not authenticate to token %s.\n", pk11_gettokenname(slot)); return null; } } /* generate the symmetric key */ key = pk11_tokenkeygen(slot, mechanism, null, keysize, keyid, pr_true, pwdata); if (!key) { pr_fprintf(pr_stderr, "symmetric key generation failed \n"); } return key; } /* * macinit */ secstatus macinit(pk11context *ctx) { secstatus rv = pk11_digestbeg...
...And 40 more matches
Encrypt and decrypt MAC using token
#define mac_trailer "-----end mac-----" #define pad_header "-----begin pad-----" #define pad_trailer "-----end pad-----" typedef enum { encrypt, decrypt, unknown } commandtype; typedef enum { symkey = 0, mackey = 1, iv = 2, mac = 3, pad = 4 } headertype; /* * print usage message and exit */ static void usage(const char *progname) { fprintf(stderr, "\nusage: %s -c -d [-z ] " "[-p | -f ] -i -o \n\n", progname); fprintf(stderr, "%-20s specify 'a' for encrypt operation\n\n", "-c "); fprintf(stderr, "%-20s specify 'b' for decrypt operation\n\n", " "); fprintf(stderr, "%-20s specify db directory path\n\n", "-d "); fprintf(stderr, "%-20s ...
..."-c "); fprintf(stderr, "%-20s specify 'b' for decrypt operation\n\n", " "); fprintf(stderr, "%-20s specify db directory path\n\n", "-d "); fprintf(stderr, "%-20s specify db password [optional]\n\n", "-p "); fprintf(stderr, "%-20s specify db password file [optional]\n\n", "-f "); fprintf(stderr, "%-20s specify noise file name [optional]\n\n", "-z "); fprintf(stderr, "%-21s specify an input file name\n\n", "-i "); fprintf(stderr, "%-21s specify an output file name\n\n", "-o "); fprintf(stderr, "%-7s for encrypt, it takes as an input file and produces\n", "note :"); fprintf(stderr, "%-7s .enc and .header as intermediate output files.\n\n", ...
...ymkey(pk11slotinfo *slot, ck_mechanism_type mechanism, int keysize, secitem *keyid, secupwdata *pwdata) { secstatus rv; pk11symkey *key; if (pk11_needlogin(slot)) { rv = pk11_authenticate(slot, pr_true, pwdata); if (rv != secsuccess) { pr_fprintf(pr_stderr, "could not authenticate to token %s.\n", pk11_gettokenname(slot)); return null; } } /* generate the symmetric key */ key = pk11_tokenkeygen(slot, mechanism, null, keysize, keyid, pr_true, pwdata); if (!key) { pr_fprintf(pr_stderr, "symmetric key generation failed \n"); } return key; } /* * macinit */ secstatus macinit(pk11context *ctx) { secstatus rv = pk11_digestbeg...
...And 40 more matches
EncDecMAC using token object - sample 3
ne iv_trailer "-----end iv-----" #define mac_header "-----begin mac-----" #define mac_trailer "-----end mac-----" #define pad_header "-----begin pad-----" #define pad_trailer "-----end pad-----" typedef enum { encrypt, decrypt, unknown } commandtype; typedef enum { symkey = 0, mackey = 1, iv = 2, mac = 3, pad = 4 } headertype; /* * print usage message and exit */ static void usage(const char *progname) { fprintf(stderr, "\nusage: %s -c -d [-z ] " "[-p | -f ] -i -o \n\n", progname); fprintf(stderr, "%-20s specify 'a' for encrypt operation\n\n", "-c "); fprintf(stderr, "%-20s specify 'b' for decrypt operation\n\n", " "); fprintf(stderr, "%-20s specify db directory path\n\n", "-d "); fprintf(stderr, "%-20s specify db password [optional]\n\n", "-p "); fprintf(stderr, "%-20s specify db password fil...
...", progname); fprintf(stderr, "%-20s specify 'a' for encrypt operation\n\n", "-c "); fprintf(stderr, "%-20s specify 'b' for decrypt operation\n\n", " "); fprintf(stderr, "%-20s specify db directory path\n\n", "-d "); fprintf(stderr, "%-20s specify db password [optional]\n\n", "-p "); fprintf(stderr, "%-20s specify db password file [optional]\n\n", "-f "); fprintf(stderr, "%-20s specify noise file name [optional]\n\n", "-z "); fprintf(stderr, "%-21s specify an input file name\n\n", "-i "); fprintf(stderr, "%-21s specify an output file name\n\n", "-o "); fprintf(stderr, "%-7s for encrypt, it takes as an input file and produces\n", "note :"); fprintf(stderr, "%-7s .enc and .header as intermediate output files.\n\n", ""); fprintf(stderr, "%-7s for decrypt, it takes .enc and .header\n", ""); fprint...
...e\n"); return rv; } return rv; } /* * generate a symmetric key */ pk11symkey * generatesymkey(pk11slotinfo *slot, ck_mechanism_type mechanism, int keysize, secitem *keyid, secupwdata *pwdata) { secstatus rv; pk11symkey *key; if (pk11_needlogin(slot)) { rv = pk11_authenticate(slot, pr_true, pwdata); if (rv != secsuccess) { pr_fprintf(pr_stderr, "could not authenticate to token %s.\n", pk11_gettokenname(slot)); return null; } } /* generate the symmetric key */ key = pk11_tokenkeygen(slot, mechanism, null, keysize, keyid, pr_true, pwdata); if (!key) { pr_fprintf(pr_stderr, "symmetric key generation failed \n"); } return key; } /* * macinit */ secstatus macinit(pk11context *ctx) { secstatus rv = pk11_digestbegin(ctx); if (rv != secsuccess) { pr_fprintf(pr_stderr, "compute mac failed : pk11_digestb...
...And 40 more matches
sslfnc.html
erversidcache ssl_inheritmpserversidcache nss_init sets up configuration files and performs other tasks required to run network security services.
...ts up configuration files and performs other tasks required to run network security services.
...his table are declared in ssl.h.
...And 40 more matches
Window.open() - Web APIs
Web › API › Window › open
the window interface's open() method loads the specified resource into the new or existing browsing context (window, <iframe> or tab) with the specified name.
... the window interface's open() method loads the specified resource into the new or existing browsing context (window, <iframe> or tab) with the specified name.
... the window interface's open() method loads the specified resource into the new or existing browsing context (window, <iframe> or tab) with the specified name.
...And 40 more matches
<nextid>: The NeXT ID element (Obsolete) - HTML: Hypertext Markup Language
Web › HTML › Element › nextid
<nextid> is an obsolete html element that served to enable the next web designing tool to generate automatic name labels for its anchors.
...the numeric value alone as an "attribute." html "0.d" - from november 26, 1992 through may 24, 1993 during this span, next and the oldest surviving dtd's show <nextid> to take only a number for a value of its newly-introduced attribute n.
...version 3.2 <nextid> has vanished altogether, never to be heard from again.
...And 40 more matches
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
table 1: preferences to set for developing extensions to make these changes, start your development profile, type about:config into firefox’s location bar and open the preferences window; find the preferences listed in table 1 and double-click on them to set them accordingly.
...de only one skin package, but you can include multiple skin packages to allow the gui to change with different themes.
...r chrome packages with firefox and start using them.
...And 39 more matches
Back to the Server: Server-Side JavaScript On The Rise - Archive of obsolete content
look at various ssjs implementations and some examples of putting them to use.
...c driver for mysql, extract the class files, and include the path in your classpath environment variable.
...dbc.driver" ); // create connection to the database var conn = drivermanager.getconnection( "jdbc:mysql://localhost/rhino", "urhino", "prhino" ); // create a statement handle var stmt = conn.createstatement(); // get a resultset var rs = stmt.executequery( "select * from employee" ); // get the metadata from the resultset var meta = rs.getmetadata(); // loop over the records, dump out column names and values while( rs.next() ) { for( var i = 1; i <= meta.getcolumncount(); i++ ) { print( meta.getcolumnname( i ) + ": " + rs.getobject( i ) + "\n" ); } print( "----------\n" ); } // cleanup rs.close(); stmt.close(); conn.close(); this code starts off by using a rhino function named importpackage which is just like using the import statement in java.
...And 39 more matches
preferences/service - Archive of obsolete content
ystem in firefox.
...and set system-wide settings.
....
...And 38 more matches
Search Extension Tutorial (Draft) - Archive of obsolete content
d where possible.
...ss add-ons, is to add the preference changes to a file in an extension's defaults/preferences/ directory.
...s/ directory.
...And 38 more matches
Using the User Timing API - Web APIs
the user timing interface allows the developer to create application specific timestamps that are part of the browser's performance timeline.
... the user timing interface allows the developer to create application specific timestamps that are part of the browser's performance timeline.
...w to create mark and measure performance entry types and how to use user timing methods (which are extensions of the performance interface) to retrieve and remove entries from the browser's performance timeline.
...And 38 more matches
The HTML autocomplete attribute - HTML: Hypertext Markup Language
er agent has to provide automated assistance in filling out form field values, as well as guidance to the browser as to the type of information expected in the field.
...then browsers use the autocomplete attribute of the element's form owner, which is either the <form> element that the element is a descendant of, or the <form> whose id is specified by the form attribute of the element.
...r is not permitted to automatically enter or select a value for this field.
...And 38 more matches
NSS functions
, applications that support ssl use some of the certificate functions, crypto functions, and utility functions described below on this page.
...documentation is available for a function listed below, the function name is linked to either its mdc wiki page or its entry in the old ssl reference.
... 3.2 and later ssl_shutdownserversessionidcache mxr 3.7.4 and later deprecated ssl functions the following ssl functions have been replaced with newer versions.
...And 37 more matches
Component; nsIPrefBranch
e root "browser.startup.", the preferences "browser.startup.page", "browser.startup.homepage", and "browser.startup.homepage_override" can be accessed by simply passing "page", "homepage", or "homepage_override" to the various get/set methods.
...owser.startup.homepage_override" can be accessed by simply passing "page", "homepage", or "homepage_override" to the various get/set methods.
...ide" to the various get/set methods.
...And 37 more matches
Microdata DOM API - Web APIs
in some browsers for a long time.
...using the element.itemtype idl attribute on the element with the itemscope attribute.
... particular type given in the document: var cats = document.getitems("http://example.com/feline"); once an element representing an item has been obtained, its properties can be extracted using the properties idl attribute.
...And 37 more matches
SVG documentation index - SVG: Scalable Vector Graphics
Web › SVG › Index
dstechnicalreview, svg, types, data types svg makes use of a number of data types.
...mber of data types.
...with their syntax and descriptions of what they're used for.
...And 37 more matches
itemprop - HTML: Hypertext Markup Language
the itemprop global attribute is used to add properties to an item.
... the itemprop global attribute is used to add properties to an item.
... or a url and can be associated with a very wide range of elements including <audio>, <embed>, <iframe>, <img>, <link>, <object>, <source> , <track>, and <video>.
...And 36 more matches
PI Parameters - XSLT: Extensible Stylesheet Language Transformations
rts the concept of passing parameters to a stylesheet when executing it.
...n (pi) there used to be no way to provide parameters.
... parameters.
...And 36 more matches
UI pseudo-classes - Learn web development
validation is whether a form input is required (it has to be filled in before the form can be submitted) or optional.
...is whether a form input is required (it has to be filled in before the form can be submitted) or optional.
...ed (it has to be filled in before the form can be submitted) or optional.
...And 35 more matches
Experimental features in Firefox
its associated dom apis provide support for html-based modal dialog boxes.
...as been updated as per the whatwg spec (bug 1509527), but we still need to make other changes too, like making it available on contenteditable content.
...able earlier and are less likely to block page rendering.
...And 35 more matches
nsIProfile
the profile manager service: var profile = components.classes["@mozilla.org/profile/manager;1"] .getservice(components.interfaces.nsiprofile); note: this interface was used by seamonkey up through seamonkey 1.1 versions, which were based off gecko 1.8.1.
...lasses["@mozilla.org/profile/manager;1"] .getservice(components.interfaces.nsiprofile); note: this interface was used by seamonkey up through seamonkey 1.1 versions, which were based off gecko 1.8.1.
...ce was used by seamonkey up through seamonkey 1.1 versions, which were based off gecko 1.8.1.
...And 35 more matches
Linear-gradient Generator - CSS: Cascading Style Sheets
"0" data-max="1000" data-sensivity="5"></div> <div id="delete-point" class="button"> delete point </div> </div> <div class="ui-color-picker" data-topic="picker"></div> </div> <div class="section"> <div class="title"> active axis </div> <div class="property"> <div class="name"> axis unit </div> <div class="ui-dropdown" data-topic="axis-unit" data-selected="1"> <div data-value='px'> pixels (px) </div> <div data-value='%'> percentage (%) </div> </div> <div id="delete-axis" class="button"> delete line </div> </div> <div class="proper...
...operty"> <div class="ui-slider" data-topic="axis-rotation" data-info="rotation" data-min="-180" data-value="0" data-max="180"></div> </div> </div> <div id="tool-section" class="section"> <div class="title"> tool settings </div> <div class="property"> <div class="name"> alpha background </div> <div id="canvas-bg"></div> <div id="add-axis" class="button"> add line </div> </div> <div id="order"> <div id="gradient-axes"></div> <div id="gradient-order"></div> </div> </div> </div> <div id="output"> ...
...-picker .slider-picker { width: 2px; height: 100%; margin: 0 0 0 -2px; border: 1px solid #777; background-color: #fff; position: relative; top: -1px; } /* input hsv and rgb */ .ui-color-picker .info { width: 200px; margin: 5px; float: left; } .ui-color-picker .info * { float: left; } .ui-color-picker .input { width: 64px; margin: 5px 2px; float: left; } .ui-color-picker .input .name { height: 20px; width: 30px; text-align: center; font-size: 14px; line-height: 18px; float: left; } .ui-color-picker .input input { width: 30px; height: 18px; margin: 0; padding: 0; border: 1px solid #ddd; text-align: center; float: right; -moz-user-select: text; -webkit-user-select: text; -ms-user-select: text; } .ui-color-picker .input[data-topic="lightness"] { display: none...
...And 35 more matches
Functions - JavaScript
en the input and the output.
...ions a function definition (also called a function declaration, or function statement) consists of the function keyword, followed by: the name of the function.
... 1998}; var x, y; x = mycar.make; // x gets the value "honda" myfunc(mycar); y = mycar.make; // y gets the value "toyota" // (the make property was changed by the function) function expressions while the function declaration above is syntactically a statement, functions can also be created by a function expression.
...And 35 more matches
import - JavaScript
used in embedded scripts unless such script has a type="module".
...ripts unless such script has a type="module".
...script has a type="module".
...And 35 more matches
simple-prefs - Archive of obsolete content
and modify preferences across different add-ons.
...or your add-on's preferences.
...ve it one entry for each preference: { "fullname": "example add-on", ...
...And 34 more matches
Componentizing our Svelte app - Learn web development
.
... create a new component file — components/todo.svelte.
...let todo </script> <div class="stack-small"> <div class="c-cb"> <input type="checkbox" id="todo-{todo.id}" on:click={() => todo.completed = !todo.completed} checked={todo.completed} /> <label for="todo-{todo.id}" class="todo-label">{todo.name}</label> </div> <div class="btn-group"> <button type="button" class="btn"> edit <span class="visually-hidden">{todo.name}</span> </button> <button type="button" class="btn btn__danger" on:click={() => alert('not implemented')}> delete <span class="visually-hidden">{todo.name}</span> </button> </div> </div> now we need to import our todo component into todos.svelte.
...And 34 more matches
Dynamic behavior in Svelte: working with variables and props - Learn web development
sks information from the markup and store it in a todos array.
...also create two variables to keep track of the total number of tasks and the completed tasks.
...and the completed tasks.
...And 34 more matches
NSS Tools crlutil
n.1 encode format.
... specify the file which contains the crl to import -f password-file specify a file that will automatically supply the password to include in a certificate or to access a certificate database.
...nclude in a certificate or to access a certificate database.
...And 33 more matches
Starting WebLock
rt of persistent data (after all, we want to have the component start up every time the application does).
... new service that manages sets of related data comes in handy.
...n handy.
...And 33 more matches
<input type="text"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › text
the enter key.
...sing text inputs <input> elements of type text create basic, single-line inputs.
...text create basic, single-line inputs.
...And 32 more matches
jspage - Archive of obsolete content
var mootools={version:"1.2.4",build:"0d9113241a90b9cd5643b926795852a2026710d4"};var native=function(k){k=k||{};var a=k.name;var i=k.legacy;var b=k.protect; var c=k.implement;var h=k.generics;var f=k.initialize;var g=k.afterimplement||function(){};var d=f||i;h=h!==false;d.constructor=native;d.$family={name:"native"}; if(i&&f){d.prototype=i.prototype;}d.prototype.constructor=d;if(a){var e=a.tolowercase();d.prototype.$family={name:e};native.typize(d,e);}var j=function(n,l,o,m){if(!b||m||!n.prototype[l]){n.prototype[l]=o; }if(h){native.genericize(n,l,b);}g.call(n,l,o);return n;};d.alias=function(n,l,p){if(typeof n=="string"){var o=this.prototype[n];if((n=o)){return j(this,l,n,p); }}for(var m in n){this.alias(m,n[m],l);}return this;};d.implement=function(m,l,o){if(typeof m=="string"){return...
...nction(){var d=array.prototype.slice.call(arguments); return b.prototype[c].apply(d.shift(),d);};}};native.implement=function(d,c){for(var b=0,a=d.length;b<a;b++){d[b].implement(c);}};native.typize=function(a,b){if(!a.type){a.type=function(c){return($type(c)===b); };}};(function(){var a={array:array,date:date,function:function,number:number,regexp:regexp,string:string};for(var h in a){new native({name:h,initialize:a[h],protect:true}); }var d={"boolean":boolean,"native":native,object:object};for(var c in d){native.typize(d[c],c);}var f={array:["concat","indexof","join","lastindexof","pop","push","reverse","shift","slice","sort","splice","tostring","unshift","valueof"],string:["charat","charcodeat","concat","indexof","lastindexof","match","replace","search","slice","split","substr","substring","...
...cat","indexof","join","lastindexof","pop","push","reverse","shift","slice","sort","splice","tostring","unshift","valueof"],string:["charat","charcodeat","concat","indexof","lastindexof","match","replace","search","slice","split","substr","substring","tolowercase","touppercase","valueof"]}; for(var e in f){for(var b=f[e].length;b--;){native.genericize(a[e],f[e][b],true);}}})();var hash=new native({name:"hash",initialize:function(a){if($type(a)=="hash"){a=$unlink(a.getclean()); }for(var b in a){this[b]=a[b];}return this;}});hash.implement({foreach:function(b,c){for(var a in this){if(this.hasownproperty(a)){b.call(c,this[a],a,this); }}},getclean:function(){var b={};for(var a in this){if(this.hasownproperty(a)){b[a]=this[a];}}return b;},getlength:function(){var b=0;for(var a in this){if(this.hasow...
...And 31 more matches
Browser Feature Detection - Archive of obsolete content
thods of browser detection, many people recommend using the existence of specific properties or methods in a browser's dom to detect the browser type and whether it supports a given operation.
...ser has for particular standards and reports a rating as the percentage of names the browser defines.
...ing as the percentage of names the browser defines.
...And 31 more matches
Python binding for NSS
nic means to follow accepted python paradigms and idoms in the python language and libraries.
...api should be rigidly followed or a more pythonic api provided the pythonic implementation wins because python programmers do not want to write c programs in python, rather they want their python code to feel like python code with the richness of full python.
...n.
...And 31 more matches
NSS Tools certutil
processing into a finished certificate.
...ious pair is overwritten.
...ecified nickname.
...And 31 more matches
nsIMsgDBHdr
g it as read, or replied to, or whatever, you must do it through its corresponding nsimsgfolder (msghdr.folder) or nsimsgdatabase (msghdr.folder.msgdatabase).
...do it through its corresponding nsimsgfolder (msghdr.folder) or nsimsgdatabase (msghdr.folder.msgdatabase).
...sghdr.folder.msgdatabase).
...And 31 more matches
How to structure a web form - Learn web development
any assistive technologies will use the <legend> element as if it is a part of the label of each control inside the corresponding <fieldset> element.
...ponding <fieldset> element.
...eaking the label of each control.
...And 30 more matches
Content-Disposition - HTTP
the field it applies to.
...applies to.
...is defined in the larger context of mime messages for e-mail, but only a subset of the possible parameters apply to http forms and post requests.
...And 30 more matches
Classes - JavaScript
cs that are not shared with es5 classalike semantics.
...tion declarations and class declarations is that function declarations are hoisted and class declarations are not.
...ations and class declarations is that function declarations are hoisted and class declarations are not.
...And 30 more matches
nsIDBFolderInfo
??????????????????????????"] .createinstance(components.interfaces.nsidbfolderinfo); method overview long andflags(in long flags); void changeexpungedbytes(in long delta); void changenummessages(in long delta); void changenumunreadmessages(in long delta); boolean getbooleanproperty(in string propertyname, in boolean defaultvalue); void getcharacterset(out acstring charset, out boolean overriden); void getcharactersetoverride(out boolean charactersetoverride); obsolete since gecko 1.8 string getcharptrcharacterset(); string getcharptrproperty(in string propertyname); void getlocale(in nsstring result); native code only...
...terset(out acstring charset, out boolean overriden); void getcharactersetoverride(out boolean charactersetoverride); obsolete since gecko 1.8 string getcharptrcharacterset(); string getcharptrproperty(in string propertyname); void getlocale(in nsstring result); native code only!
...charset, out boolean overriden); void getcharactersetoverride(out boolean charactersetoverride); obsolete since gecko 1.8 string getcharptrcharacterset(); string getcharptrproperty(in string propertyname); void getlocale(in nsstring result); native code only!
...And 29 more matches
nsIMsgIncomingServer
iptsfilter(); void closecachedconnections(); void configuretemporaryfilters(in nsimsgfilterlist filterlist); void configuretemporaryreturnreceiptsfilter(in nsimsgfilterlist filterlist); obsolete since gecko 1.8 void displayofflinemsg(in nsimsgwindow awindow); boolean equals(in nsimsgincomingserver server); void forgetpassword(); void forgetsessionpassword(); astring generateprettynameformigration(); boolean getboolattribute(in string name); boolean getboolvalue(in string attr); acstring getcharattribute(in string name); acstring getcharvalue(in string attr); nsilocalfile getfilevalue(in string relpref, in string abspref); nsimsgfilterlist getfilterlist(in nsimsgwindow amsgwindow); long getintattribute(in string name); long getintvalue(in string attr); nsimsgf...
...ng getintvalue(in string attr); nsimsgfolder getmsgfolderfromuri(in nsimsgfolder afolderresource, in acstring auri); void getnewmessages(in nsimsgfolder afolder, in nsimsgwindow amsgwindow, in nsiurllistener aurllistener); acstring getpasswordwithui(in astring apromptstring, in astring aprompttitle, in nsimsgwindow amsgwindow, out boolean okayvalue); astring getunicharattribute(in string name); astring getunicharvalue(in string attr); boolean isnewhdrduplicate(in nsimsgdbhdr anewhdr); void onuserorhostnamechanged(in acstring oldname, in acstring newname); void performbiff(in nsimsgwindow amsgwindow); void performexpand(in nsimsgwindow amsgwindow); void removefiles(); void setboolattribute(in string name, in boolean value); void setboolvalue(in string attr, in boolean ...
...r); boolean isnewhdrduplicate(in nsimsgdbhdr anewhdr); void onuserorhostnamechanged(in acstring oldname, in acstring newname); void performbiff(in nsimsgwindow amsgwindow); void performexpand(in nsimsgwindow amsgwindow); void removefiles(); void setboolattribute(in string name, in boolean value); void setboolvalue(in string attr, in boolean value); void setcharattribute(in string name, in acstring value); void setcharvalue(in string attr, in acstring value); void setdefaultlocalpath(in nsilocalfile adefaultlocalpath); void setfilevalue(in string relpref, in string abspref, in nsilocalfile avalue); void setfilterlist(in nsimsgfilterlist afilterlist); void setintattribute(in string name, in long value); void setintvalue(in string attr, in long value); void setunich...
...And 29 more matches
Guide to the Fullscreen API - Web APIs
().
...end us a pull request.
...equest.
...And 29 more matches
HTMLFormElement - Web APIs
/text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent, htmlelement.
...dd; pointer-events: all;} properties this interface also inherits properties from its parent, htmlelement.
...erties this interface also inherits properties from its parent, htmlelement.
...And 29 more matches
Event reference
ications of things happening in the rendering model.
... error a resource failed to load.
... beforeunload the window, the document and its resources are about to be unloaded.
...And 29 more matches
Using templates and slots - Web Components
e can only display one bit of text inside it, meaning that at the moment it is even less useful than a regular paragraph!
...late>, available since chrome 53, opera 40, safari 10, firefox 59, and edge 79.
... like this: <p><slot name="my-text">my default text</slot></p> if the slot's content isn't defined when the element is included in the markup, or if the browser doesn't support slots, <my-paragraph> just contains the fallback content "my default text".
...And 29 more matches
Using the Right Markup to Invoke Plugins - Archive of obsolete content
owsers such as netscape 7.
...d to invoke a plugin that is built on the activex architecture.
...activex architecture.
...And 28 more matches
mozIStorageConnection
ee storage.
... mozistoragestatement clone([optional] in boolean areadonly); void close(); void committransaction(); void createaggregatefunction(in autf8string afunctionname, in long anumarguments, in mozistorageaggregatefunction afunction); mozistorageasyncstatement createasyncstatement(in autf8string asqlstatement); void createfunction(in autf8string afunctionname, in long anumarguments, in mozistoragefunction afunction); mozistoragestatement createstatement(in autf8string asqlstatement); void createtable(in string atablename, in string atableschema); mozistoragependingstatement executeasync([array, size_is(anumstatements)] in mozistoragebasestatement astatements, in unsigned long anumstatements, [optional] in mozistoragestatemen...
... void createtable(in string atablename, in string atableschema); mozistoragependingstatement executeasync([array, size_is(anumstatements)] in mozistoragebasestatement astatements, in unsigned long anumstatements, [optional] in mozistoragestatementcallback acallback ); void executesimplesql(in autf8string asqlstatement); boolean indexexists(in autf8string aindexname); void preload(); obsolete since gecko 1.9 void removefunction(in autf8string afunctionname); mozistorageprogresshandler removeprogresshandler(); void rollbacktransaction(); void setgrowthincrement(in print32 aincrement, in autf8string adatabasename); mozistorageprogresshandler setprogresshandler(in print32 agranularity, in mozistorageprogr...
...And 28 more matches
User Timing API - Web APIs
the user timing interface allows the developer to create application specific timestamps that are part of the browser's performance timeline.
... the user timing interface allows the developer to create application specific timestamps that are part of the browser's performance timeline.
...n two marks thus they are effectively a midpoint between two marks.
...And 28 more matches
Microformats - HTML: Hypertext Markup Language
eviated μf) are standards used to embed semantics & structured data in html, and provide an api to be used by search engines, aggregators, and other tools.
...ing new attributes.
...eatly from direct access to this structured data because it allows them to understand the information on web pages and provide more relevant results to users.
...And 28 more matches
Custom XUL Elements with XBL - Archive of obsolete content
nd images.
...claration.
...both files: person.xml - this is the main binding file.
...And 27 more matches
OS.File for the main thread
let array = encoder.encode("this is some text"); // convert the text to an array let promise = os.file.writeatomic("file.txt", array, // write the array atomically to "file.txt", using as temporary {tmppath: "file.txt.tmp", nooverwrite: true}); // buffer "file.txt.tmp".
...; // convert the text to an array let promise = os.file.writeatomic("file.txt", array, // write the array atomically to "file.txt", using as temporary {tmppath: "file.txt.tmp", nooverwrite: true}); // buffer "file.txt.tmp".
... array let promise = os.file.writeatomic("file.txt", array, // write the array atomically to "file.txt", using as temporary {tmppath: "file.txt.tmp", nooverwrite: true}); // buffer "file.txt.tmp".
...And 27 more matches
NSS tools : crlutil
name crlutil — list, generate, modify, or delete crls within the nss security database file(s) and list, create, modify or delete certificates entries in a particular crl.
...crl which can be located in cert db or in arbitrary file.
...tory.
...And 27 more matches
NSS tools : crlutil
Mozilla › Projects › NSS › tools › crlutil
name crlutil — list, generate, modify, or delete crls within the nss security database file(s) and list, create, modify or delete certificates entries in a particular crl.
...ed in file it should be encoded in asn.1 encode format.
...ry.
...And 27 more matches
nsIFormHistory2
toolkit/components/satchel/public/nsiformhistory.idlscriptable a service which holds a set of name/value pairs.
... toolkit/components/satchel/public/nsiformhistory.idlscriptable a service which holds a set of name/value pairs.
... toolkit/components/satchel/public/nsiformhistory.idlscriptable a service which holds a set of name/value pairs.
...And 27 more matches
Node - Web APIs
Web › API › Node
y or indirectly) to the context object, e.g.
...cument object in the case of the normal dom, or the shadowroot in the case of a shadow dom.
... dom, or the shadowroot in the case of a shadow dom.
...And 27 more matches
Border-image generator - CSS: Cascading Style Sheets
s" class="group section"> <div id="toggle-gallery" data-action="hide"> </div> <div id="load-image" class="button"> upload image </div> <input id="remote-url" type="text" placeholder="load an image from url"/> <div id="load-remote" class="button"> </div> </div> <div id="general-controls" class="group section"> <div class="name"> control box </div> <div class="separator"></div> <div class="property"> <div class="name">scale</div> <div class="ui-input-slider" data-topic="scale" data-unit="%" data-max="300" data-sensivity="10"> </div> </div> <div class="separator"></div> <div class="property"> ...
... <div class="separator"></div> <div class="property"> <div class="name">scale</div> <div class="ui-input-slider" data-topic="scale" data-unit="%" data-max="300" data-sensivity="10"> </div> </div> <div class="separator"></div> <div class="property"> <div class="name">draggable</div> <div class="ui-checkbox" data-topic='drag-subject'></div> </div> <div class="property right"> <div class="name">section height</div> <div class="ui-input-slider" data-topic="preview-area-height" data-min="400" data-max="1000"> </div> </div> </div> ...
...ce-left"></div> </div> <div id="preview"> </div> </div> <!-- controls --> <div id="controls" class="group section"> <!-- border-image-slice --> <div id="border-slice-control" class="category"> <div class="title"> border-image-slice </div> <div class="property"> <div class="name">fill</div> <div class="ui-checkbox" data-topic='slice-fill'></div> </div> </div> <!-- border-image-width --> <div id="border-width-control" class="category"> <div class="title"> border-image-width </div> </div> <!-- border-image-outset --> <div id="border-outset-control" ...
...And 27 more matches
nsIMsgFolder
rlist filterlist); void forcedbclosed(); void delete(); void deletesubfolders(in nsisupportsarray folders, in nsimsgwindow msgwindow); void propagatedelete(in nsimsgfolder folder, in boolean deletestorage,in nsimsgwindow msgwindow); void recursivedelete(in boolean deletestorage, in nsimsgwindow msgwindow); void createsubfolder(in astring foldername, in nsimsgwindow msgwindow); nsimsgfolder addsubfolder(in astring foldername); void createstorageifmissing(in nsiurllistener urllistener); void compact(in nsiurllistener alistener, in nsimsgwindow amsgwindow); void compactall(in nsiurllistener alistener, innsimsgwindow amsgwindow,in nsisupportsarray afolderarray, in boolean acompactofflinealso,in nsisupportsarr...
...ndow); void compactall(in nsiurllistener alistener, innsimsgwindow amsgwindow,in nsisupportsarray afolderarray, in boolean acompactofflinealso,in nsisupportsarray aofflinefolderarray); void compactallofflinestores(in nsimsgwindow amsgwindow,in nsisupportsarray aofflinefolderarray); void emptytrash(in nsimsgwindow amsgwindow, in nsiurllistener alistener); void rename(in astring name, in nsimsgwindow msgwindow); void renamesubfolders( in nsimsgwindow msgwindow, in nsimsgfolder oldfolder); astring generateuniquesubfoldername(in astring prefix,in nsimsgfolder otherfolder); void updatesummarytotals(in boolean force); void summarychanged(); long getnumunread(in boolean deep); long gettotalmessages(in boolean de...
...long notificationtype, in boolean enable, in boolean dbbatching); boolean iscommandenabled(in acstring command); boolean matchorchangefilterdestination(in nsimsgfolder folder,in boolean caseinsensitive); boolean confirmfolderdeletionforfilter(in nsimsgwindow msgwindow); void alertfilterchanged(in nsimsgwindow msgwindow); void throwalertmsg(in string msgname, in nsimsgwindow msgwindow); astring getstringwithfoldernamefrombundle(in string msgname); void notifycompactcompleted(); long comparesortkeys(in nsimsgfolder msgfolder); [noscript] void getsortkey(out octet_ptr key, out unsigned long length); boolean callfilterplugins(in nsimsgwindow amsgwindow); acstring getstringproperty(in string propertyn...
...And 26 more matches
nsIURLParser
netwerk/base/public/nsiurlparser.idlscriptable specifies the interface to an url parser that attempts to follow the definitions of rfc 2396.
... netwerk/base/public/nsiurlparser.idlscriptable specifies the interface to an url parser that attempts to follow the definitions of rfc 2396.
...e/public/nsiurlparser.idlscriptable specifies the interface to an url parser that attempts to follow the definitions of rfc 2396.
...And 26 more matches
Color picker tool - CSS: Cascading Style Sheets
k.png"); } .ui-color-picker .slider-picker { width: 2px; height: 100%; border: 1px solid #777; background-color: #fff; position: relative; top: -1px; } /* input hsv and rgb */ .ui-color-picker .info { width: 200px; margin: 5px; float: left; } .ui-color-picker .info * { float: left; } .ui-color-picker .input { width: 64px; margin: 5px 2px; float: left; } .ui-color-picker .input .name { height: 20px; width: 30px; text-align: center; font-size: 14px; line-height: 18px; float: left; } .ui-color-picker .input input { width: 30px; height: 18px; margin: 0; padding: 0; border: 1px solid #ddd; text-align: center; float: right; -moz-user-select: text; -webkit-user-select: text; -ms-user-select: text; } .ui-color-picker .input[data-topic="lightness"] { display: none...
...text; -ms-user-select: text; } .ui-color-picker .input[data-topic="lightness"] { display: none; } .ui-color-picker[data-mode='hsl'] .input[data-topic="value"] { display: none; } .ui-color-picker[data-mode='hsl'] .input[data-topic="lightness"] { display: block; } .ui-color-picker .input[data-topic="alpha"] { margin-top: 10px; width: 93px; } .ui-color-picker .input[data-topic="alpha"] > .name { width: 60px; } .ui-color-picker .input[data-topic="alpha"] > input { float: right; } .ui-color-picker .input[data-topic="hexa"] { width: auto; float: right; margin: 6px 8px 0 0; } .ui-color-picker .input[data-topic="hexa"] > .name { display: none; } .ui-color-picker .input[data-topic="hexa"] > input { width: 90px; height: 24px; padding: 2px 0; -moz-box-sizing: border-box; -webkit...
...px; padding: 0px 10px 0px 0px; text-align: right; text-transform: lowercase; } .ui-input-slider-left, .ui-input-slider-right { width: 16px; cursor: pointer; background: url("https://mdn.mozillademos.org/files/5679/arrows.png") center left no-repeat; } .ui-input-slider-right { background: url("https://mdn.mozillademos.org/files/5679/arrows.png") center right no-repeat; } .ui-input-slider-name { width: 90px; padding: 0 10px 0 0; text-align: right; text-transform: lowercase; } .ui-input-slider-btn-set { width: 25px; background-color: #2c9fc9; border-radius: 5px; color: #fff; font-weight: bold; line-height: 14px; text-align: center; } .ui-input-slider-btn-set:hover { background-color: #379b4a; cursor: pointer; } /* * color picker tool */ body { max-width: 1000px; mar...
...And 26 more matches
Grammar and types - JavaScript
previousnext » this chapter discusses javascript's basic grammar, variable declarations, data types and literals.
...nt used to specify the path to a particular javascript engine that should execute the script.
...ne that should execute the script.
...And 26 more matches
Getting started with React - Learn web development
a fairly modern set of browsers — ie9+ by way of some polyfills.
...ills.
...ers a part of our app.
...And 25 more matches
Mozilla DOM Hacking Guide
e js engine asks xpconnect to search for the relevant c++ method to call.
...html, xml, xul, xbl, range, css, events, etc...
...cpp, maps each dom class to its helper class and to the interfaces that are exposed to javascript.
...And 25 more matches
Using XPCOM Utilities to Make Things Easier
on the actual logic for your component.
...scribed in this section are similar but are used in slightly different situations.
...in this section are similar but are used in slightly different situations.
...And 25 more matches
nsIAbCard
code, most of the documentation below is out of date.
...f date.
...details.
...And 25 more matches
nsIMsgIdentity
nsimsgidentity interface contains all the personal outgoing mail information for a given person.
... outgoing mail information for a given person.
...fied by a key, which is the id string in the identity preferences, such as in mail.identity.<id>.replyto.
...And 25 more matches
Storage
erall procedure for use is: get the storage service - mozistorageservice.
...nt.
...etfile("profd", ["my_db_file_name.sqlite"]); let dbconn = services.storage.opendatabase(file); // will also create the file if it does not exist likewise, the c++ would look like this: nscomptr<nsifile> dbfile; rv = ns_getspecialdirectory(ns_app_user_profile_50_dir, getter_addrefs(dbfile)); ns_ensure_success(rv, rv); rv = dbfile->append(ns_literal_string("my_db_file_name.sqlite")); ns_ensure_success(rv, rv); nscomptr<mozistorageservice> dbservice = do_getservice(moz_storage_service_contractid, &rv); ns_ensure_success(rv, rv); nscomptr<mozistorageconnection> dbconn; rv = dbservice->opendatabase(dbfile, getter_addrefs(dbconn)); ns_ensure_success(rv, rv); note: moz_storage_service_contractid is defined in storage/build/mozstoragecid.h.
...And 25 more matches
Using XMLHttpRequest - Web APIs
ing the post method and setting the enctype attribute to application/x-www-form-urlencoded (default); using the post method and setting the enctype attribute to text/plain; using the post method and setting the enctype attribute to multipart/form-data; using the get method (in this case the enctype attribute will be ignored).
...oo=bar&baz=the+first+line.%0d%0athe+second+line.%0d%0a method: post; encoding type: text/plain: content-type: text/plain foo=bar baz=the first line.
...t/plain: content-type: text/plain foo=bar baz=the first line.
...And 25 more matches
Destructuring assignment - JavaScript
gnment without a declaration.
...{a, b} on the left-hand side is considered a block and not an object literal.
...n or it may be used to execute a function on the previous line.
...And 25 more matches
Creating custom Firefox extensions with the Mozilla build system - Archive of obsolete content
up taking far longer than i originally expected.
...r of complex extensions that are integrated into its build process.
...d process.
...And 24 more matches
Appendix D: Loading Scripts - Archive of obsolete content
rc="overlay.js"/> </overlay> evalinsandbox the components.utils.evalinsandbox method may be used to load arbitrary code into components.utils.sandbox objects.
...insandbox method may be used to load arbitrary code into components.utils.sandbox objects.
...ay be used to load arbitrary code into components.utils.sandbox objects.
...And 24 more matches
Introduction to Public-Key Cryptography - Archive of obsolete content
pply to a government agency, such as the department of motor vehicles, which verifies your identity, your ability to drive, your address, and other information before issuing the license.
...validate other forms of identification vary depending on who is issuing the id and the purpose for which it will be used.
...o is issuing the id and the purpose for which it will be used.
...And 24 more matches
Object.prototype.__noSuchMethod__ - Archive of obsolete content
a function to be executed when a non-existent method is called on an object, but this function is no longer available.
....
... console.log(id, '(' + args.join(', ') + ')'); } }; o.foo(1, 2, 3); o.bar(4, 5); o.baz(); // output // foo (1, 2, 3) // bar (4, 5) // baz () using __nosuchmethod__ to simulate multiple inheritance an example of code that implements a primitive form of multiple inheritance is shown below.
...And 24 more matches
Chrome registration
provider is responsible for providing a complete set of files that describe the visual appearance of the chrome.
...st is "chrome.manifest" in the root of an extension, or theme, or xulrunner application.
...me.manifest" in the root of an extension, or theme, or xulrunner application.
...And 24 more matches
Extending a Protocol
f webidl, c++ header files, and es6.
...iles, and es6.
... obvious though.
...And 24 more matches
Scripting Java
al object system for that matter).
...ava] as a handy shortcut, rhino defines a top-level variable java that is equivalent to packages.java.
... js> java.io.file [javaclass java.io.file] if your scripts access a lot of different java classes, it can get awkward to use the full package name of the class every time.
...And 24 more matches
JSAPI User Guide
ance, applications should also use js_setoptions to enable jsoption_varobjfix.
...es of code, as shown below.
... js_propertystub, js_deletepropertystub, js_propertystub, js_strictpropertystub, js_enumeratestub, js_resolvestub, js_convertstub, nullptr, nullptr, nullptr, nullptr, js_globalobjecttracehook }; // the error reporter callback.
...And 24 more matches
nsIMessenger
unsigned long getredotransactiontype(); void undo(in nsimsgwindow msgwindow); void redo(in nsimsgwindow msgwindow); void sendunsentmessages(in nsimsgidentity aidentity, in nsimsgwindow amsgwindow); void setdocumentcharset(in acstring characterset); void saveas(in acstring auri, in boolean aasfile, in nsimsgidentity aidentity, in astring amsgfilename); void openattachment(in acstring contenttpe, in acstring url, in acstring displayname, in acstring messageuri, in boolean isexternalattachment); void saveattachment(in acstring contenttpe, in acstring url, in acstring displayname, in acstring messageuri, in boolean isexternalattachment); void saveallattachments(in unsigned long count, [array, size_is(count)] in string ...
...string messageuri, in boolean isexternalattachment); void saveattachment(in acstring contenttpe, in acstring url, in acstring displayname, in acstring messageuri, in boolean isexternalattachment); void saveallattachments(in unsigned long count, [array, size_is(count)] in string contenttypearray, [array, size_is(count)] in string urlarray, [array, size_is(count)] in string displaynamearray, [array, size_is(count)] in string messageuriarray); void saveattachmenttofile(in nsifile afile, in acstring aurl, in acstring amessageuri, in acstring acontenttype, in nsiurllistener alistener); void detachattachment(in string contenttpe, in string url, in string displayname, in string messageuri, in boolean savefirst, [optional] in boolean withoutwarning); void d...
...in nsiurllistener alistener); void detachattachment(in string contenttpe, in string url, in string displayname, in string messageuri, in boolean savefirst, [optional] in boolean withoutwarning); void detachallattachments(in unsigned long count, [array, size_is(count)] in string contenttypearray, [array, size_is(count)] in string urlarray, [array, size_is(count)] in string displaynamearray, [array, size_is(count)] in string messageuriarray, in boolean savefirst, [optional] in boolean withoutwarning); nsilocalfile saveattachmenttofolder(in acstring contenttype, in acstring url, in acstring displayname, in acstring messageuri, in nsilocalfile adestfolder); nsimsgmessageservice messageservicefromuri(in acstring auri); nsimsgdbhdr msghdrfromuri(in acstri...
...And 24 more matches
Using Objective-C from js-ctypes
objective-c syntax.
...speechsynthesizer class definition.
...getclass(const char *name); in /usr/include/objc/objc.h, class is defined as an opaque type by the following: typedef struct objc_class *class; in this example, we need the classnsspeechsynthesizer, which is retrieved with the following code: class nsspeechsynthesizer = objc_getclass("nsspeechsynthesizer"); registering a selector selectors can be registered and retrieved with sel_registername function, also declared in /usr/include/objc/runtime.h.
...And 24 more matches
IDBDatabaseSync - Web APIs
s originally intended for use only with web workers, and was eventually removed from the spec because its need was questionable.
...oduced in the future if there is enough demand from web developers.
...resents a synchronous connection to a database.
...And 24 more matches
Appendix E: DOM Building and Insertion (HTML & XUL) - Archive of obsolete content
arbitrary text as html.
...er's pc open to remote attack.
... attack.
...And 23 more matches
SeaMonkey - making custom toolbar (SM ver. 1.x) - Archive of obsolete content
text editor for plain text files character encoding some text editors have a setting for character encoding.
...m, it will include your new extension.
...copy and paste the line from here, to avoid typing errors: content,install,url,resource:/chrome/custombutton/ explanation: this line registers your custom toolbar button extension, linking it into seamonkey.
...And 23 more matches
Document Object Model - Archive of obsolete content
an api that is accessible by javascript.
...ript.
...elf is just a scripting language that can access these objects because mozilla provides these objects for use.
...And 23 more matches
Your first form - Learn web development
ms ux, including an older but still relevant extensive guide to web form usability article.
...ethod to send the data with (usually get or post).
...is a single-line text field.
...And 23 more matches
Parser API
yses, translators, compilers, obfuscators, etc.
...ng the parsed abstract syntax tree (ast).
...ibed under builder objects.
...And 23 more matches
mozIStorageStatement
last changed in gecko 1.9.2 (firefox 3.6 / thunderbird 3.1 / fennec 1.0) for an introduction on how to use this interface, see the storage overview document.
...n on how to use this interface, see the storage overview document.
...he storage overview document.
...And 23 more matches
Using the Multiple Accounts API
nsimsgaccount): an account consists of a single incoming server, and one or more identities.
...n account consists of a single incoming server, and one or more identities.
...ervers (nsimsgincomingserver): an incoming server represents a remote message store such as a pop, imap, or nntp server.
...And 23 more matches
package.json - Archive of obsolete content
the package.json file contains manifest data for your add-on, providing not only descriptive information about the add-on for presentation in the add-ons manager, but other metadata required of add-ons.
...uilt using jpm xpi.
... "id": "jid1-1fergv45e4f4f@jetpack", "description": "a basic add-on", "author": "", "license": "mpl-2.0", "version": "0.1" } if you are using the new jpm tool, you can easily access manifest data from package.json by requiring it like any other module: var title = require("./package.json").title; key reference package.json may contain the following keys: author the name of the package's original author; this could be the name of a person or a company.
...And 22 more matches
The Essentials of an Extension - Archive of obsolete content
he important parts of the file.
...practice is to use a generated uuid string, which is extremely unlikely to be duplicated.
...uid string, which is extremely unlikely to be duplicated.
...And 22 more matches
Adding Properties to XBL-defined Elements - Archive of obsolete content
have code execute when an attempt is made to retrieve or modify the value.
...nctions which may be executed.
...h may be executed.
...And 22 more matches
TypeError: Reduce of empty array with no initial value - JavaScript
er()) which will remove all elements of the list.
...s of the list.
...he list.
...And 22 more matches
Function expression - JavaScript
on.
...ctive example is stored in a github repository.
... github repository.
...And 22 more matches
Strict mode - JavaScript
tement needed to initiate it.
... a new property on a non-extensible object var fixed = {}; object.preventextensions(fixed); fixed.newprop = 'ohai'; // throws a typeerror third, strict mode makes attempts to delete undeletable properties throw (where before the attempt would simply have no effect): 'use strict'; delete object.prototype; // throws a typeerror fourth, strict mode prior to gecko 34 requires that all properties named in an object literal be unique.
...nsions(fixed); fixed.newprop = 'ohai'; // throws a typeerror third, strict mode makes attempts to delete undeletable properties throw (where before the attempt would simply have no effect): 'use strict'; delete object.prototype; // throws a typeerror fourth, strict mode prior to gecko 34 requires that all properties named in an object literal be unique.
...And 22 more matches
Private Properties - Archive of obsolete content
drawbacks, they are either not restrictive enough or too restrictive, respectively.
...restrictive enough or too restrictive, respectively.
...ts, which solve both these problems.
...And 21 more matches
NSS Sample Code Sample_1_Hashing
.
...am that demonstrates how to compute the hash of a file and save it to another file.
... it to another file.
...And 21 more matches
Hashing - sample 1
e terms of the mozilla public * license, v.
...ic * license, v.
... with this * file, you can obtain one at http://mozilla.org/mpl/2.0/.
...And 21 more matches
sample1
1.
... 1.
...ute the hash of a file and save it to another file.
...And 21 more matches
NSS PKCS11 Functions
r describes the core pkcs #11 functions that an application needs for communicating with cryptographic modules.
... that an application needs for communicating with cryptographic modules.
...on needs for communicating with cryptographic modules.
...And 21 more matches
pkfnc.html
very much appreciated.
...documentation may be found in the current nss reference pkcs #11 functions chapter 7 pkcs #11 functions this chapter describes the core pkcs #11 functions that an application needs for communicating with cryptographic modules.
... found in the current nss reference pkcs #11 functions chapter 7 pkcs #11 functions this chapter describes the core pkcs #11 functions that an application needs for communicating with cryptographic modules.
...And 21 more matches
Box-shadow generator - CSS: Cascading Style Sheets
e='' data-action="hexa"></div> </div> </div> </div> </div> <div class="wrap-right"> <div id="shadow_properties" class="category"> <div class="title"> shadow properties </div> <div class="group"> <div class="group property"> <div class="ui-slider-name"> inset </div> <div class="ui-checkbox" data-topic='inset'></div> </div> <div class="slidergroup"> <div class="ui-slider-name"> position x </div> <div class="ui-slider-btn-set" data-topic="posx" data-type="sub"></div> <div class="ui-slider" data-topic="posx" ...
...pic="posx" data-min="-500" data-max="500" data-step="1"> </div> <div class="ui-slider-btn-set" data-topic="posx" data-type="add"></div> <div class="ui-slider-input" data-topic="posx" data-unit="px"></div> </div> <div class="slidergroup"> <div class="ui-slider-name"> position y </div> <div class="ui-slider-btn-set" data-topic="posy" data-type="sub"></div> <div class="ui-slider" data-topic="posy" data-min="-500" data-max="500" data-step="1"> </div> <div class="ui-slider-btn-set" data-topic="posy" data-type="add"></div> <div class="ui-sl...
...pic="posy" data-min="-500" data-max="500" data-step="1"> </div> <div class="ui-slider-btn-set" data-topic="posy" data-type="add"></div> <div class="ui-slider-input" data-topic="posy" data-unit="px"></div> </div> <div class="slidergroup"> <div class="ui-slider-name"> blur </div> <div class="ui-slider-btn-set" data-topic="blur" data-type="sub"></div> <div class="ui-slider" data-topic="blur" data-min="0" data-max="200" data-step="1"> </div> <div class="ui-slider-btn-set" data-topic="blur" data-type="add"></div> <div class="ui-slider-inpu...
...And 21 more matches
export - JavaScript
with the import statement.
...ad by the importing module the value updates whenever it is updated by the exporting module.
...he importing module the value updates whenever it is updated by the exporting module.
...And 21 more matches
cfx - Archive of obsolete content
jsconsole argument to firefox, which will launch the javascript error console, try the following: cfx run --binary-args -jsconsole to pass multiple arguments, or arguments containing spaces, quote them: cfx run --binary-args '-url "www.mozilla.org" -jsconsole' --extra-packages=extra_packages extra packages to include, specified as a comma-separated list of package names.
...llowing: cfx run --binary-args -jsconsole to pass multiple arguments, or arguments containing spaces, quote them: cfx run --binary-args '-url "www.mozilla.org" -jsconsole' --extra-packages=extra_packages extra packages to include, specified as a comma-separated list of package names.
...nt directory.
...And 20 more matches
Localization - Archive of obsolete content
d description fields of your add-on's preferences.
...es.
...ibute set.
...And 20 more matches
Install.js - Archive of obsolete content
t\ sampleext\ locale\ (optional) en-us\ sampleext\ ...
...e\ (optional) en-us\ sampleext\ ...
... skin\ (optional) classic\ sampleext\ ...
...And 20 more matches
Actionscript Acceptance Tests - Archive of obsolete content
ound here.
...hen testing versioned bug fixes (using avmplus.system.swfversion) there are a couple of requirements: you must use system.swfversion when looking up the swfversion.
...ion.
...And 20 more matches
Index - Archive of obsolete content
Archive › Mozilla › XUL › Index
187 maxwidth xul attributes, xul reference no summary!
...e no summary!
...mary!
...And 20 more matches
Client-side form validation - Learn web development
.
... element matches the :required ui pseudo-class and the form won't submit, displaying an error message on submission when the input is empty.
...hes exactly abc or exactly xyz (but not abcxyz or a or y, and so on).
...And 20 more matches
NSS_3.12_release_notes.html
.12 requires.
...ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.7.1/.
...ert.h) cert_encodeinfoaccessextension (see cert.h) cert_encodeinhibitanyextension (see cert.h) cert_encodenoticereference (see cert.h) cert_encodepolicyconstraintsextension (see cert.h) cert_encodepolicymappingextension (see cert.h) cert_encodesubjectkeyid (see certdb/cert.h) cert_encodeusernotice (see cert.h) cert_findcrlentryreasonexten (see cert.h) cert_findcrlnumberexten (see cert.h) cert_findnameconstraintsexten (see cert.h) cert_getclassicocspdisabledpolicy (see cert.h) cert_getclassicocspenabledhardfailurepolicy (see cert.h) cert_getclassicocspenabledsoftfailurepolicy (see cert.h) cert_getpkixverifynistrevocationpolicy (see cert.h) cert_getusepkixforvalidation (see cert.h) cert_getvaliddnspatternsfromcert (see cert.h) cert_newtempcertificate (see cert.h) cert_setocsptimeout (see certhig...
...And 20 more matches
JS_CompileFunction
obsolete since jsapi 36this feature is obsolete.
... obsolete since jsapi 36this feature is obsolete.
...this feature is obsolete.
...And 20 more matches
Plug-in Basics - Plugins
windows directory pointed to by moz_plugin_path environment variable.
...ser application data directory.
...configured differently.
...And 20 more matches
performance.measure() - Web APIs
the measure() method creates a named timestamp in the browser's performance entry buffer between marks, the navigation start time, or the current time.
... the measure() method creates a named timestamp in the browser's performance entry buffer between marks, the navigation start time, or the current time.
... the measure() method creates a named timestamp in the browser's performance entry buffer between marks, the navigation start time, or the current time.
...And 20 more matches
Migrating from webkitAudioContext - Web APIs
y fixes some of these changes to make most code targetting webkitaudiocontext to work on the standards based audiocontext out of the box, but it currently doesn't handle all of the cases below.
...ting webkitaudiocontext to work on the standards based audiocontext out of the box, but it currently doesn't handle all of the cases below.
...sed audiocontext out of the box, but it currently doesn't handle all of the cases below.
...And 20 more matches
Extension Etiquette - Archive of obsolete content
n a browser — for example, a feed reader that reloads and stops — use icons from the browser's theme.
...reader that reloads and stops — use icons from the browser's theme.
...mers, be they other add-ons, web code, or the browser itself.
...And 19 more matches
SQLite Templates - Archive of obsolete content
tabase.
...t set datasources in the xul to rdf:null).
...should just set the ref attribute to a dummy value; '*' is typically used.
...And 19 more matches
Windows Media in Netscape - Archive of obsolete content
pobject(clid) { var player = null; try { player = new geckoactivexobject(clid); } catch(e) { ; } return player; } // instantiate players wmp7or9 = creategeckowmpobject("{6bf52a52-394a-11d3-b153-00c04f79faa6}"); if (!wmp7or9) { wmp64 = creategeckowmpobject("{22d6f312-b0f6-11d0-94ab-0080c74c7e95}"); } .....
...ent to create control if you are running netscape 7.1 and later or ie, and have installed windows media player 7 or above, the snippet of code below should produce a windows media control and play a song.
...ing netscape 7.1 and later or ie, and have installed windows media player 7 or above, the snippet of code below should produce a windows media control and play a song.
...And 19 more matches
Getting started with Svelte - Learn web development
ript> // logic goes here </script> <style> /* styles go here */ </style> <!-- markup (zero or more html elements) goes here --> note: for more information on the component format, have a look at the svelte documentation.
... <style> /* styles go here */ </style> <!-- markup (zero or more html elements) goes here --> note: for more information on the component format, have a look at the svelte documentation.
...; } } </style> the <script> section the <script> block contains javascript that runs when a component instance is created.
...And 19 more matches
Multiple Firefox profiles
ul tools you discover to the list!
...e in windows, macos or linux, type about:profiles into the browser url search bar.
... then try again.
...And 19 more matches
nsIApplicationCache
pensession() method, to access the cache's entries.
... access the cache's entries.
...roup id belong to a cache group.
...And 19 more matches
nsILoginInfo
inherits from: nsisupports implemented by: @mozilla.org/login-manager/logininfo;1.
.../logininfo;1.
...ar logininfo = components.classes["@mozilla.org/login-manager/logininfo;1"] .createinstance(components.interfaces.nsilogininfo); method overview nsilogininfo clone(); boolean equals(in nsilogininfo alogininfo); void init(in astring ahostname, in astring aformsubmiturl, in astring ahttprealm, in astring ausername, in astring apassword, in astring ausernamefield, in astring apasswordfield); boolean matches(in nsilogininfo alogininfo, in boolean ignorepassword); attributes attribute type description formsubmiturl astring the origin, not url, a form-based login was submitted to.
...And 19 more matches
nsIXPConnect
use the object */ } method overview void addjsholder(in voidptr aholder, in nsscriptobjecttracerptr atracer); native code only!
...thod overview void addjsholder(in voidptr aholder, in nsscriptobjecttracerptr atracer); native code only!
...); [noscript,notxpcom] prbool definedomquickstubs(in jscontextptr cx, in jsobjectptr proto, in pruint32 flags, in pruint32 interfacecount, [array, size_is(interfacecount)] in nsiidptr interfacearray); jsval evalinsandboxobject(in astring source, in jscontextptr cx, in nsixpconnectjsobjectholder sandbox, in prbool returnstringonly); native code only!
...And 19 more matches
nsIXSLTProcessor
or inherits from: nsisupports last changed in gecko 1.7 implemented by: @mozilla.org/document-transformer;1?type=xslt.
... last changed in gecko 1.7 implemented by: @mozilla.org/document-transformer;1?type=xslt.
...t.
...And 19 more matches
XUL Overlays
Mozilla › Tech › XUL › Overlays
r, these elements should be defined in overlay files.
...erlay files.
... a media plug-in, for example, may add new icons and menu items to the interface: in the navigatoroverlay.xul file or in a separate navigatorsspoverlay.xul file (where navigator.xul defines the basic ui for the navigator package), these new plug-in elements would be defined as a collection of elements or subtrees: <menuitem name="super stream player"/> <menupopup name="ss favorites"> <menuitem name="wave" src="mavericks.ssp"/> <menuitem name="soccer" src="brazil_soccer.ssp"/> </menupopup> <titledbutton id="ssp" crop="right" flex="1" value="&ssbutton.label;" onclick="firessp()"/> overlays and id attributes bases and overlays are merged when they share the same id attribute.
...And 19 more matches
Debugger.Script - Firefox Developer Tools
bugger.script instance inherits the following accessor properties from its prototype: isgeneratorfunction true if this instance refers to a jsscript for a function defined with a function* expression or statement.
...ototype: isgeneratorfunction true if this instance refers to a jsscript for a function defined with a function* expression or statement.
...ance refers to a jsscript for a function defined with a function* expression or statement.
...And 19 more matches
FileSystemEntrySync - Web APIs
the filesystementrysync interface of the file and directory entries api represents an entry in a file system; it can be either a fileentrysync or directoryentry.
...of the origin of the app.
...ks.com/temporary/ in a tab.
...And 19 more matches
Alerts - Accessibility
the problem you have a form — a contact form, for example — that you want to put some accessible error checking into.
... the problem you have a form — a contact form, for example — that you want to put some accessible error checking into.
... the problem you have a form — a contact form, for example — that you want to put some accessible error checking into.
...And 19 more matches
font-variant-alternates - CSS: Cascading Style Sheets
the font-variant-alternates css property controls the usage of alternate glyphs.
...ature-values.
...-ident); font-variant-alternates: swash(user-defined-ident); font-variant-alternates: ornaments(user-defined-ident); font-variant-alternates: annotation(user-defined-ident); font-variant-alternates: swash(ident1) annotation(ident2); /* global values */ font-variant-alternates: initial; font-variant-alternates: inherit; font-variant-alternates: unset; the @font-feature-values at-rule can define names for alternative glyph functions (stylistic, styleset, character-variant, swash, ornament or annotation), associating the name with opentype parameters.
...And 19 more matches
grid-template-columns - CSS: Cascading Style Sheets
the grid-template-columns css property defines the line names and track sizing functions of the grid columns.
...ions of the grid columns.
...or this interactive example is stored in a github repository.
...And 19 more matches
grid-template-rows - CSS: Cascading Style Sheets
the grid-template-rows css property defines the line names and track sizing functions of the grid rows.
...sizing functions of the grid rows.
...the source for this interactive example is stored in a github repository.
...And 19 more matches
HTML documentation index - HTML: Hypertext Markup Language
Web › HTML › Index
ow text input is automatically capitalized as it is entered/edited by the user.
...icrodata, reference, itemid the itemid global attribute provides microdata in the form of a unique, global identifier of an item.
...temid the itemid global attribute provides microdata in the form of a unique, global identifier of an item.
...And 19 more matches
WebAssembly.Module.customSections() - JavaScript
the webassembly.customsections() function returns a copy of the contents of all custom sections in the given module with the given string name.
... the webassembly.customsections() function returns a copy of the contents of all custom sections in the given module with the given string name.
... the webassembly.customsections() function returns a copy of the contents of all custom sections in the given module with the given string name.
...And 19 more matches
How to convert an overlay extension to restartless - Archive of obsolete content
e on out, it is assumed you've imported services.jsm somewhere at the top of whatever file you're in and will be using it in all code examples.
...d services.jsm somewhere at the top of whatever file you're in and will be using it in all code examples.
... file (see below).
...And 18 more matches
Processing XML with E4X - Archive of obsolete content
in a similar way to a regular javascript object, the two are not the same thing.
... (or variable) attribute content, however (e.g., bar="a{var1}{var2}").
...nguages.@type.tostring() === 'agile') { ...
...And 18 more matches
Basic native form controls - Learn web development
fallback value if the value you specify for the type attribute is unknown by the browser (for example if you specify type="color" and the browser doesn't support native color pickers).
... html5 enhanced the basic original single line text field by adding special values for the type attribute that enforce specific validation constraints and other features, for example specific to entering urls or numbers.
...s invisible to the user, but is still sent to the server along with the rest of the form data once submitted — for example you might want to submit a timestamp to the server stating when an order was placed.
...And 18 more matches
Command line options
do when they open.
...nager" command line option with mozilla's thunderbird mail client.
... 67's downgrade protection prevents accidentally starting firefox in a profile running a later version of firefox.
...And 18 more matches
PKCS #11 Module Specs
pkcs #11 module specs the following is a proposal to the pkcs #11 working group made in august 2001 for configuring pkcs #11 modules.
... pkcs #11 module specs the following is a proposal to the pkcs #11 working group made in august 2001 for configuring pkcs #11 modules.
... pkcs #11 module specs the following is a proposal to the pkcs #11 working group made in august 2001 for configuring pkcs #11 modules.
...And 18 more matches
Introduction to the JavaScript shell
perimenting or testing new features.
...l.
...th your own jsshell to see if there is anything undocumented.
...And 18 more matches
Debugger.Environment - Firefox Developer Tools
a debugger.environment instance represents a lexical environment, associating names with variables.
...ts.
...javascript object whose optimizedout property is true on all bindings, and setvariable throws a referenceerror.
...And 18 more matches
Traversing an HTML table with JavaScript and DOM Interfaces - Web APIs
includes both methods for generic document access and manipulation (dom 1 core) as well as methods specific to html documents (dom 1 html).
...he tree model for the structures you are planning to create; this will make it easier to write the necessary code.
...model for the structures you are planning to create; this will make it easier to write the necessary code.
...And 18 more matches
compareVersion - Web APIs
plug-in developers must switch away from install.js based packages to the new packaging scheme with an install.rdf manifest.
...new packaging scheme with an install.rdf manifest.
...lugin developers should see how to package a plugin as an extension.
...And 18 more matches
Getting Started - Developer guides
a more realistic example, see step 3 of this article.
... receive a response back.
...by setting the onreadystatechange property of the object and naming it after the function to call when the request changes state, like this: httprequest.onreadystatechange = nameofthefunction; note that there are no parentheses or parameters after the function name, because you're assigning a reference to the function, rather than actually calling it.
...And 18 more matches
core/heritage - Archive of obsolete content
helper functions for inheritance.
...uch code requires sharp eye and lot's of discipline, mainly due to code fragmentation and lots of machinery being exposed: // defining a simple class function dog(name) { // classes are for creating instances, calling them without `new` changes // behavior, which in majority cases you need to handle, so you end up // with additional boilerplate.
...es sharp eye and lot's of discipline, mainly due to code fragmentation and lots of machinery being exposed: // defining a simple class function dog(name) { // classes are for creating instances, calling them without `new` changes // behavior, which in majority cases you need to handle, so you end up // with additional boilerplate.
...And 17 more matches
No Proxy For configuration - Archive of obsolete content
rs (*.mozilla.org).
... to block ...
...lla.org" does not block domains that end in the same string (amozilla.org) sub-domains domain suffix, starting with a dot ".mozilla.org" does not block the main domain (mozilla.org) a hostname (without domain) hostname-only (see problems below) "localhost" also blocks any possible domains that start with the entry ("www.otherdomain.localhost") a hostname (with domain) domain name "www.mozilla.org" does not block hostnames or domains that end in the same string (other-www.mozilla.org) an ip address ip address "1.2.3.4" does not block hostnames that resolve to the ip address ("127.0.0.1" does not block "localhost") a network network w/ cidr block "10.0.0.0/8" does not block hostnames that resolve to the ...
...And 17 more matches
Introduction to XUL - Archive of obsolete content
figurable, downloadable chrome, meaning that the arrangement and even presence or absence of controls in the main window is not hardwired into the application, but loaded from a separate ui description.
... are widgets and certain infrastructure associated with the behaviour of the window, explained below.
...ml document, a description of which we will leave to other excellent xml documentation which we assume must exist but have never seen.
...And 17 more matches
Attribute Substitution - Archive of obsolete content
« previousnext » so far, attribute replacement in an action body has been used to replace an entire attribute with the value of a variable.
... « previousnext » so far, attribute replacement in an action body has been used to replace an entire attribute with the value of a variable.
... « previousnext » so far, attribute replacement in an action body has been used to replace an entire attribute with the value of a variable.
...And 17 more matches
XML Templates - Archive of obsolete content
disclosure triangles ("twisties") be persistent, be sure to give each node a unique "id" attribute.
... sure to give each node a unique "id" attribute.
...te.
...And 17 more matches
Custom toolbar button - Archive of obsolete content
editor for plain text files character encoding some text editors have a setting for character encoding.
... extensions directory there.
...ctory there.
...And 17 more matches
Sending forms through JavaScript - Learn web development
ata with xmlhttprequest, prepare the data by url-encoding it, and obey the specifics of form data requests.
...f form data requests.
...</button> and now the javascript: const btn = document.queryselector('button'); function senddata( data ) { console.log( 'sending data' ); const xhr = new xmlhttprequest(); let urlencodeddata = "", urlencodeddatapairs = [], name; // turn the data object into an array of url-encoded key/value pairs.
...And 17 more matches
Object prototypes - Learn web development
nished writing our person() constructor — load the example in your browser.
...name = { 'first': first, 'last' : last }; this.age = age; this.gender = gender; //...see link in summary above for full definition } we have then created an object instance like this: let person1 = new person('bob', 'smith', 32, 'male', ['music', 'skiing']); if you type "person1." into your javascript console, you should see the browser try to auto-complete this with the member names available on this object: in this list, you will see the members defined on person1's constructor — person() — name, age, gender, interests, bio, and greeting.
...and methods defined?
...And 17 more matches
Sqlite.jsm
is deal with management of tables and database schema.
..., this will return the string "0".
...maversion(value) sets value as the new version associated with the schema for the current database.
...And 17 more matches
WebRequest.jsm
t: onbeforerequest onbeforesendheaders onsendheaders onheadersreceived onresponsestarted oncompleted each of these objects defines two functions: addlistener(callback, filter, opt_extrainfospec) removelistener(callback) adding listeners use addlistener to add a listener to a particular event.
...ve a listener for an event, call removelistener on the event in question, passing it the listener to remove.
... wait for your event listener to return before continuing with the request.
...And 17 more matches
Certificate functions
the public functions listed here are used to interact with certificate databases.
...if documentation is available for a function listed below, the function name is linked to either its mdc wiki page or its entry in the old ssl reference.
...nition, prototype definition, and source code references.
...And 17 more matches
NSS API Guidelines
omfx.h naming conventions this section describes the rules that (ideally) should be followed for naming and identifying new files, functions, and data types.
...009) $ $name$" you can put the string in a comment or in a static char array.
...ed library.
...And 17 more matches
JS_CompileFunctionForPrincipals
obsolete since jsapi 28this feature is obsolete.
...ce jsapi 28this feature is obsolete.
...ork in some browsers, its use is discouraged since it could be removed at any time.
...And 17 more matches
extIPreferenceBranch
tent covers features introduced in thunderbird 3 the extipreferencebranch interface provides simplified access to preferences.
...ferences have an empty root.
...name" parameters used in this interface are relative to the root branch.
...And 17 more matches
nsIWindowWatcher
clients need do nothing special about that requirement.
...g special about that requirement.
...romeforwindow(in nsidomwindow awindow); nsiauthprompt getnewauthprompter(in nsidomwindow aparent); nsiprompt getnewprompter(in nsidomwindow aparent); nsidomwindow getwindowbyname(in wstring atargetname, in nsidomwindow acurrentwindow); nsisimpleenumerator getwindowenumerator(); nsidomwindow openwindow(in nsidomwindow aparent, in string aurl, in string aname, in string afeatures, in nsisupports aarguments); void registernotification(in nsiobserver aobserver); void setwindowcreator(in nsiwindowcreator creator); void unregisternotification(in nsiobserver aobserver); attributes attribute type description activewindow nsidomwindow the watcher serves as a global storage facility for the curr...
...And 17 more matches
AudioParam.cancelAndHoldAtTime() - Web APIs
compat-data and send us a pull request.
... send us a pull request.
...esktopmobilechromeedgefirefoxinternet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung internetcancelandholdattimechrome full support 57 full support 57 no support ?
...And 17 more matches
SubtleCrypto.wrapKey() - Web APIs
ge set.
...ord-derived key, to encrypt it.
... window.prompt("enter your password"); const enc = new textencoder(); return window.crypto.subtle.importkey( "raw", enc.encode(password), {name: "pbkdf2"}, false, ["derivebits", "derivekey"] ); } /* given some key material and some random salt derive an aes-kw key using pbkdf2.
...And 17 more matches
Example and tutorial: Simple synth keyboard - Web APIs
space to build the keyboard into.
... left side of the bar and place a label and an <input> element of type "range".
... <div class="left"> <span>volume: </span> <input type="range" min="0.0" max="1.0" step="0.01" value="0.5" list="volumes" name="volume"> <datalist id="volumes"> <option value="0.0" label="mute"> <option value="1.0" label="100%"> </datalist> </div> we specify a default value of 0.5, and we provide a <datalist> element which is connected to the range using the name attribute to find an option list whose id matches; in this case, the data set is named "volume".
...And 17 more matches
font-family - CSS: Cascading Style Sheets
the font-family css property specifies a prioritized list of one or more font family names and/or generic family names for the selected element.
...nd send us a pull request.
... the user's system.
...And 17 more matches
InternalError: too much recursion - JavaScript
// do stuff loop(x + 1); } loop(0); // internalerror: too much recursion this recursive function is missing a base case.
...o stuff loop(x + 1); } loop(0); // internalerror: too much recursion this recursive function is missing a base case.
...(x + 1); } loop(0); // internalerror: too much recursion this recursive function is missing a base case.
...And 17 more matches
class expression - JavaScript
the class expression is one way to define a class in ecmascript 2015.
... the class expression is one way to define a class in ecmascript 2015.
... the class expression is one way to define a class in ecmascript 2015.
...And 17 more matches
Install Manifests - Archive of obsolete content
ies --> </description> </rdf> some properties are required, some are optional.
... has checking to ensure that your id falls into one format or the other and will refuse to install add-ons that have malformed ids.
...refuse to install add-ons that have malformed ids.
...And 16 more matches
Chapter 4: Using XPCOM—Implementing advanced processes - Archive of obsolete content
and the interface definitions from xpidl in the actual source code.
...zilla 1.9.1." for the current development trunk of firefox, choose "mozilla central" and for thunderbird, choose "comm.
..." for the current development trunk of firefox, choose "mozilla central" and for thunderbird, choose "comm.
...And 16 more matches
Textbox (XPFE autocomplete) - Archive of obsolete content
sforpopup, nomatch, open, popup, popupopen, resultspopup, searchcount, searchparam, searchsessions, selectionend, selectionstart, sessioncount, showcommentcolumn, showpopup, size, tabindex, tabscrolling, textlength, textvalue, timeout, type, useraction, value methods addsession, clearresults, getdefaultsession, getresultat, getresultcount, getresultvalueat, getsession, getsessionbyname, getsessionresultat, getsessionstatusat, getsessionvalueat, removesession, select, setselectionrange, syncsessions examples (example needed) attributes accesskey type: character this should be set to a character that is used as a shortcut key.
...ll be displayed even when there are no matches.
...s attribute is obsolete as of gecko 1.9.1; to control the display of the popup, use the minresultsforpopup attribute instead.
...And 16 more matches
Introduction to RDF - Archive of obsolete content
ation of data.
...rds, each with a set of data associated with it, such as a url, a bookmark title and a visited date.
...associated with it, such as a url, a bookmark title and a visited date.
...And 16 more matches
Templates - Archive of obsolete content
s to them from other sources.
...de the template need to be declared differently.
...n the example above that the button has a uri attribute and an unusual value for the label attribute.
...And 16 more matches
Introduction to automated testing - Learn web development
rmation required to set up the project; you can just select the defaults for now.
....
...ulp'); gulp.task('default', function() { console.log('gulp running'); }); this requires the gulp module we installed earlier, and then runs a basic task that does nothing except for printing a message to the terminal — this is useful for letting us know that gulp is working.
...And 16 more matches
JNI.jsm
r android (fennec).
...underlying data is all ctype data.
...lifiedname, [optional] object adeclares); cdata newstring(cdata ajenv, string astr); string readstring(cdata ajenv, cdata ajavastring); void unloadclasses(); methods getforthread() blah blah cdata getforthread(); parameters this function does not take any arguments.
...And 16 more matches
Localization Use Cases
ties to improve the localization of gaia (the ui layer of firefox os) by using l20n.
...oblem definition in many inflected languages (e.g.
...n, finnish, hungarian, all slavic languages), the about preposition governs the grammatical case of the complement.
...And 16 more matches
sslerr.html
eans the remote client has requested the use of a version of ssl older than version 2.
...ent authentication failed: private key in key database does not correspond to public key in certificate database." ssl_error_bad_cert_domain -12276 "unable to communicate securely with peer: requested domain name does not match the server's certificate." this error code should be returned by the certificate authentication callback function when it detects that the common name in the remote server's certificate does not match the hostname sought by the local client, according to the matching rules specified for cert_verifycertname.
... ssl_error_no_renegotiation_alert -12186 "peer does not permit renegotiation of ssl security parameters." ssl_error_unsupported_extension_alert -12184 "ssl peer does not support requested tls hello extension." ssl_error_certificate_unobtainable_alert -12183 "ssl peer could not obtain your certificate from the supplied url." ssl_error_unrecognized_name_alert -12182 "ssl peer has no certificate for the requested dns name." ssl_error_bad_cert_status_response_alert -12181 "ssl peer was unable to get an ocsp response for its certificate." ssl_error_bad_cert_hash_value_alert -12180 "ssl peer reported bad certificate hash value." unspecified errors that occurred while attempting some operation: a...
...And 16 more matches
JSAPI Cookbook
this article shows the jsapi equivalent for a tiny handful of common javascript idioms.
... "object" && v !== null; /* jsapi */ js::rootedvalue v(cx, computesomevalue()); bool isstring = v.isstring(); bool isnumber = v.isnumber(); bool isint32 = v.isint32(); // note: internal representation, not numeric value bool isnull = v.isnull(); bool isboolean = v.isboolean(); bool isobject = v.isobject(); // note: not broken like typeof === "object" is :-) to set a value use a correspondingly named member mutator function, or assign the result of the correspondingly named standalone function: // javascript var v; v = 0; v = 0.5; v = somestring; v = null; v = undefined; v = false; /* jsapi */ js::rootedvalue v(cx); js::rootedstring somestring(cx, ...); v.setint32(0); // or: v = js::int32value(0); v.setdouble(0.5); // or: v = js::doublevalue(0.5); v.setstring(somestring)...
...son| and check that it is an object.
...And 16 more matches
JS_Add*Root
e garbage collector's root set, to protect anything the root points at from garbage collection.
...he root points at from garbage collection.
...om garbage collection.
...And 16 more matches
JS_LookupProperty
obsolete since jsapi 37this feature is obsolete.
...ough it may still work in some browsers, its use is discouraged since it could be removed at any time.
...till work in some browsers, its use is discouraged since it could be removed at any time.
...And 16 more matches
nsIHTMLEditor
lign); boolean breakisvisible(in nsidomnode anode); boolean candrag(in nsidomevent aevent); void checkselectionstateforanonymousbuttons(in nsiselection aselection); nsidomelement createanonymouselement(in astring atag, in nsidomnode aparentnode, in astring aanonclass, in boolean aiscreatedhidden); nsidomelement createelementwithdefaults(in astring atagname); void decreasefontsize(); void dodrag(in nsidomevent aevent); void getalignment(out boolean amixed, out short aalign); astring getbackgroundcolorstate(out boolean amixed); nsidomelement getelementorparentbytagname(in astring atagname, in nsidomnode anode); astring getfontcolorstate(out boolean amixed); astring getfontfacestate(out bo...
..., out boolean aany, out boolean aall); nsisupportsarray getlinkedobjects(); void getlistitemstate(out boolean amixed, out boolean ali, out boolean adt, out boolean add); void getliststate(out boolean amixed, out boolean aol, out boolean aul, out boolean adl); astring getparagraphstate(out boolean amixed); nsidomelement getselectedelement(in astring atagname); nsidomelement getselectioncontainer(); void ignorespuriousdragevent(in boolean aignorespuriousdragevent); void increasefontsize(); void indent(in astring aindent); void insertelementatselection(in nsidomelement aelement, in boolean adeleteselection); void insertfromdrop(in nsidomevent aevent); void inserthtml(in astring ainputstring...
...idden" is to be added to the created anonymous element.
...And 16 more matches
nsIJetpack
js/jetpack/nsijetpack.idlscriptable this interface enables communication between the chrome process and a remote jetpack process.
...terface enables communication between the chrome process and a remote jetpack process.
...tpack process.
...And 16 more matches
nsIMimeConverter
the nsimimeconverter service allows you to convert headers into and out of mime format.
...and out of mime format.
...partiistr() an variant of encodemimepartiistr_utf8() which treats the header as written in the given charset.
...And 16 more matches
XPIDL
string const nsastring& nsastring& string full unicode set permitted jsval const jsval& jsval* anything jsid jsid jsid* not allowed promise mozilla::dom::promise* mozilla::dom::promise** promise typedefs in idl are basically as they are in c or c++: you define first the type that you want to refer to and then the name of the type.
...in type.
...ly (native str)* ref the type is really (native str)& utf8string this is an nsacstring declaration whose text is utf-8.
...And 16 more matches
Address Book examples
ervice(components.interfaces.nsiabmanager); let alladdressbooks = abmanager.directories; while (alladdressbooks.hasmoreelements()) { let addressbook = alladdressbooks.getnext() .queryinterface(components.interfaces.nsiabdirectory); if (addressbook instanceof components.interfaces.nsiabdirectory) { // or nsiabitem or nsiabcollection // alert ("directory name:" + addressbook.dirname); ...
... in address book trees etc).
... ...
...And 16 more matches
Document.createElementNS() - Web APIs
creates an element with the specified namespace uri and qualified name.
... creates an element with the specified namespace uri and qualified name.
... creates an element with the specified namespace uri and qualified name.
...And 16 more matches
HTMLAnchorElement - Web APIs
inherits properties from its parent, htmlelement, and implements those from htmlhyperlinkelementutils.
...m its parent, htmlelement, and implements those from htmlhyperlinkelementutils.
...t, and implements those from htmlhyperlinkelementutils.
...And 16 more matches
IDBObjectStoreSync - Web APIs
spec because its need was questionable.
...s questionable.
...ses (idbdatabaseexception); idbindexsync createindex (in domstring name, in domstring storename, in domstring keypath, in optional boolean unique); any get (in any key) raises (idbdatabaseexception); idbcursorsync opencursor (in optional idbkeyrange range, in optional unsigned short direction) raises (idbdatabaseexception); idbindexsync openindex (in domstring name) raises (idbdatabaseexception); any put (in any value, in optional any key) raises (idbdatabaseexception); void remove (in any key) raises (idbdatabaseexception); void removeindex (in domstring indexname) raises (idbdatabaseexception); attributes attribute type description indexnames readonly domstringlist a list of the names ...
...And 16 more matches
ARIA: button role - Accessibility
d state indicates whether the controlled grouping is currently expanded or collapsed.
... controlled grouping is currently expanded or collapsed.
...rrently expanded; if the button has aria-expanded="true" set, it is currently expanded; if the button has aria-expanded="undefined" set or the attribute is ommitted, it is not expandable.
...And 16 more matches
Implementing a Microsoft Active Accessibility (MSAA) Server - Accessibility
ee of iaccessible's, each one representing a data node, similar to a dom.
...le's, each one representing a data node, similar to a dom.
...imilar to a dom.
...And 16 more matches
Object initializer - JavaScript
objects can be initialized using new object(), object.create(), or using the literal notation (initializer notation).
... o = {} let o = {a: 'foo', b: 42, c: {}} let a = 'foo', b = 42, c = {} let o = {a: a, b: b, c: c} let o = { property: function (parameters) {}, get property() {}, set property(value) {} }; new notations in ecmascript 2015 please see the compatibility table for support for these notations.
..., b: b, c: c} let o = { property: function (parameters) {}, get property() {}, set property(value) {} }; new notations in ecmascript 2015 please see the compatibility table for support for these notations.
...And 16 more matches
delete operator - JavaScript
.
...s.
... any property declared with let or const cannot be deleted from the scope within which they were defined.
...And 16 more matches
Chapter 3: Introduction to XUL—How to build a more intuitive UI - Archive of obsolete content
which can be used only within a xul window.
...k element for layering other elements, and so on.
... so on.
...And 15 more matches
URIs and URLs - Archive of obsolete content
hen its content---the entities to which it currently corresponds---changes over time, provided that the conceptual mapping is not changed in the process.
...ething that has identity.
... with a restricted syntax.
...And 15 more matches
Install script template - Archive of obsolete content
is plugin consists of an xpt file because it is scriptable // http://mozilla.org/projects/plugins/scripting-plugins.html var component_file = "npmypluginscriptable.xpt"; var plugin_size = 2000; // (dll file) reserve a little extra so it is not required to update too often var component_size = 10; // (xpi file) reserve a little extra so it is not required to update too often var software_name="cult3d mozilla viewer"; // plids (http://mozilla.org/projects/plugins/plugin-identifier.html) are coined by vendors.
...e) reserve a little extra so it is not required to update too often var software_name="cult3d mozilla viewer"; // plids (http://mozilla.org/projects/plugins/plugin-identifier.html) are coined by vendors.
...error = -4711; var winregisnullerror = -4712; var invalidrootkeyerror = -4713; var registrykeynotwritableerror = -4714; //initinstall block //the installation is initialized here -- if we fail here, cancel the installation // initinstall is quite an overloaded method, but i have invoked it here with three strings // which are globally defined err = initinstall(software_name, plid, version); if (err != 0) { // call initinstall again in case illegal characters in plid err = initinstall(software_name, software_name, version); if (err != 0) cancelinstall(err); } //addfiles to current browser block var pluginsfolder = getfolder("plugins"); //verify disk space if(verifydiskspace(pluginsfolder, plugin_size+component_size)) { // start installing plugin shared...
...And 15 more matches
Using Recursive Templates - Archive of obsolete content
« previousnext » you may recall that templates generate content recursively.
... « previousnext » you may recall that templates generate content recursively.
...hat templates generate content recursively.
...And 15 more matches
Adding Methods to XBL-defined Elements - Archive of obsolete content
next, we'll find out how to add custom methods to xbl-defined elements.
... find out how to add custom methods to xbl-defined elements.
...en() method loads the specified resource into the browsing context (window, <iframe> or tab) with the specified name.
...And 15 more matches
XPCOM Interfaces - Archive of obsolete content
a that does things.
...functions that can be performed on files.
...for its name, modification date and its size.
...And 15 more matches
LiveConnect Overview - Archive of obsolete content
the packages object.
...manually load it like this: var widgetry = java.lang.thread.currentthread().getcontextclassloader().loadclass("org.mywidgets.widgetry"); in javascript 1.3 and earlier, javaclass objects are not automatically converted to instances of java.lang.class when you pass them as parameters to java methods—you must create a wrapper around an instance of java.lang.class.
...r, javaclass objects are not automatically converted to instances of java.lang.class when you pass them as parameters to java methods—you must create a wrapper around an instance of java.lang.class.
...And 15 more matches
HTML: A good basis for accessibility - Learn web development
href="#" align="center">home</a> </td> <td width="200"> <a href="#" align="center">our team</a> </td> <td width="200"> <a href="#" align="center">projects</a> </td> <td width="200"> <a href="#" align="center">contact</a> </td> <td width="300"> <form width="300"> <input type="search" name="q" placeholder="search query" width="300"> </form> </td> <td width="100"> <button width="100">go!</button> </td> </tr> <!-- spacer row --> <tr id="spacer" height="10"> <td> </td> </tr> <!-- main content and aside row --> <tr id="main"> <td id="content" colspan="4" bgcolor="#ffffff"> ...
... <p>another link, to the <a href="https://developer.mozilla.org">mozilla developer network</a>.</p> <h2>buttons</h2> <p> <button data-message="this is from the first button">click me!</button> <button data-message="this is from the second button">click me too!</button> <button data-message="this is from the third button">and me!</button> </p> <h2>form</h2> <form> <div> <label for="name">fill in your name:</label> <input type="text" id="name" name="name"> </div> <div> <label for="age">enter your age:</label> <input type="text" id="age" name="age"> </div> <div> <label for="mood">choose your mood:</label> <select id="mood" name="mood"> <option>happy</option> <option>sad</option> <option>angry</option> <option>worried</option> ...
...les.html">click here</a>.</p> note: you can find a lot more about link implementation and best practices in our creating hyperlinks article.
...And 15 more matches
HTML: A good basis for accessibility - Learn web development
href="#" align="center">home</a> </td> <td width="200"> <a href="#" align="center">our team</a> </td> <td width="200"> <a href="#" align="center">projects</a> </td> <td width="200"> <a href="#" align="center">contact</a> </td> <td width="300"> <form width="300"> <input type="search" name="q" placeholder="search query" width="300"> </form> </td> <td width="100"> <button width="100">go!</button> </td> </tr> <!-- spacer row --> <tr id="spacer" height="10"> <td> </td> </tr> <!-- main content and aside row --> <tr id="main"> <td id="content" colspan="4" bgcolor="#ffffff"> ...
... <p>another link, to the <a href="https://developer.mozilla.org">mozilla developer network</a>.</p> <h2>buttons</h2> <p> <button data-message="this is from the first button">click me!</button> <button data-message="this is from the second button">click me too!</button> <button data-message="this is from the third button">and me!</button> </p> <h2>form</h2> <form> <div> <label for="name">fill in your name:</label> <input type="text" id="name" name="name"> </div> <div> <label for="age">enter your age:</label> <input type="text" id="age" name="age"> </div> <div> <label for="mood">choose your mood:</label> <select id="mood" name="mood"> <option>happy</option> <option>sad</option> <option>angry</option> <option>worried</option> ...
...les.html">click here</a>.</p> note: you can find a lot more about link implementation and best practices in our creating hyperlinks article.
...And 15 more matches
Introduction to events - Learn web development
e.backgroundcolor = rndcol; } the onclick property is the event handler property being used in this situation.
...or = rndcol; } the onclick property is the event handler property being used in this situation.
...t.queryselector('button'); function bgchange() { const rndcol = 'rgb(' + random(255) + ',' + random(255) + ',' + random(255) + ')'; document.body.style.backgroundcolor = rndcol; } btn.addeventlistener('click', bgchange); note: you can find the full source code for this example on github (also see it running live).
...And 15 more matches
Inheritance in JavaScript - Learn web development
getting started first of all, make yourself a local copy of our oojs-class-inheritance-start.html file (see it running live also).
...th a slight difference — we've defined only the properties inside the constructor: function person(first, last, age, gender, interests) { this.name = { first, last }; this.age = age; this.gender = gender; this.interests = interests; }; the methods are all defined on the constructor's prototype.
...take the same parameters as the person() constructor it is inheriting from, so we specify them all as parameters in the call() invocation.
...And 15 more matches
Beginning our React todo list - Learn web development
have to start it again using npm start.
...t for this project, we're going to provide two things: an app() function to replace the one you have now, and some css to style your app.
...ion to replace the one you have now, and some css to style your app.
...And 15 more matches
TypeScript support in Svelte - Learn web development
c typing, classes, interfaces, and generics.
...application, from the root of your project's folder, type code .
...ation (ci) pipeline.
...And 15 more matches
XPCOMUtils.jsm
m_factory: { ...
... nsgetmodule() entry point so gecko can start up your component: // "components" is the array created in the previous section if ("generatensgetfactory" in xpcomutils) var nsgetfactory = xpcomutils.generatensgetfactory(components); // gecko 2.0+ else var nsgetmodule = xpcomutils.generatensgetmodule(components); // gecko 1.9.x method overview function definelazygetter(aobject, aname, alambda); function definelazymodulegetter(aobject, aname, aresource, [optional] asymbol); function definelazyservicegetter(aobject, aname, acontract, ainterfacename); function generatensgetfactory(componentsarray); function generateci(classinfo); function generateqi(interfaces); void importrelative(that, path, scope); generator iter...
... value is calculated the first time the getter is called, and is then cached (or memoized), so subsequent accesses return the cached value without recalculating it.
...And 15 more matches
Creating localizable web applications
hat, it is tempting to use the $category or $tab variables in the interface.
...entence, while some grammars might require, for instance, to put the date in front of the "added" descriptor.
...<strong/> html tags inside the gettext function call and take advantage of the printf() variable that will be substituted by the date upon interpretation of the code (snippet 3).
...And 15 more matches
An overview of NSS Internals
ublic portion of your own certificates, the certificates of peers or cas, and a list of trust decisions (such as to not trust a built-in ca, or to explicitly trust other cas).
...f peers or cas, and a list of trust decisions (such as to not trust a built-in ca, or to explicitly trust other cas).
... wrapped using a protective layer (such as password-based encryption).
...And 15 more matches
JS::CompileOptions
this article covers features introduced in spidermonkey 17 compile options classes.
...ow.onerror handler) for juicy morsels of its contents.
...y morsels of its contents.
...And 15 more matches
IAccessibleAction
ct that can be manipulated via the native gui beyond the methods available either in the msaa iaccessible interface or in the set of iaccessible2 interfaces (other than this iaccessibleaction interface) should support the iaccessibleaction interface in order to provide assistive technology access to all the actions that can be performed by the object.
... action, iaccessibleaction should also be implemented.
...ented.
...And 15 more matches
IAccessibleApplication
other-licenses/ia2/accessibleapplication.idlnot scriptable this interface gives access to the application's name and version information.
...r applications, from other versions of this application, or from other versions of this application running on different versions of an accessibility bridge or accessibility toolkit.
...or from other versions of this application running on different versions of an accessibility bridge or accessibility toolkit.
...And 15 more matches
nsIAnnotationObserver
toolkit/components/places/public/nsiannotationservice.idlscriptable please add a summary to this article.
... toolkit/components/places/public/nsiannotationservice.idlscriptable please add a summary to this article.
...criptable please add a summary to this article.
...And 15 more matches
nsILoginManager
er = components.classes["@mozilla.org/login-manager;1"] .getservice(components.interfaces.nsiloginmanager); method overview void addlogin(in nsilogininfo alogin); nsiautocompleteresult autocompletesearch(in astring asearchstring, in nsiautocompleteresult apreviousresult, in nsidomhtmlinputelement aelement); unsigned long countlogins(in astring ahostname, in astring aactionurl, in astring ahttprealm); boolean fillform(in nsidomhtmlformelement aform); void findlogins(out unsigned long count, in astring ahostname, in astring aactionurl, in astring ahttprealm, [retval, array, size_is(count)] out nsilogininfo logins); void getalldisabledhosts([optional] out unsigned long count, [retval, array, size_is(count)] out wstring h...
...n astring aactionurl, in astring ahttprealm); boolean fillform(in nsidomhtmlformelement aform); void findlogins(out unsigned long count, in astring ahostname, in astring aactionurl, in astring ahttprealm, [retval, array, size_is(count)] out nsilogininfo logins); void getalldisabledhosts([optional] out unsigned long count, [retval, array, size_is(count)] out wstring hostnames); void getalllogins([optional] out unsigned long count, [retval, array, size_is(count)] out nsilogininfo logins); boolean getloginsavingenabled(in astring ahost); void modifylogin(in nsilogininfo oldlogin, in nsisupports newlogindata); void removealllogins(); void removelogin(in nsilogininfo alogin); void searchlogins(out unsigned long count,...
...reviousresult missing description aelement missing description return value missing description countlogins() returns the number of logins matching the specified criteria.
...And 15 more matches
nsILoginManagerStorage
ow you do it.
...ss/store logins should use the login manager service and nsiloginmanager interface instead.
... nsilogininfo alogin); unsigned long countlogins(in astring ahostname, in astring aactionurl, in astring ahttprealm); void findlogins(out unsigned long count, in astring ahostname, in astring aactionurl, in astring ahttprealm, [retval, array, size_is(count)] out nsilogininfo logins); void getalldisabledhosts([optional] out unsigned long count, [retval, array, size_is(count)] out wstring hostnames); void getallencryptedlogins([optional] out unsigned long count, [retval, array, size_is(count)] out nsilogininfo logins); void getalllogins([optional] out unsigned long count, [retval, array, size_is(count)] out nsilogininfo logins); boolean getloginsavingenabled(in astring ahost); void init(); void initwithfile(in nsifile ainputfile, in nsifile aoutputfile); void modifylogin(in ns...
...And 15 more matches
nsIStringBundle
o retrieve strings.
...s.
...rvice.
...And 15 more matches
Element.getAttributeNS() - Web APIs
the getattributens() method of the element interface returns the string value of the attribute with the specified namespace and name.
... the getattributens() method of the element interface returns the string value of the attribute with the specified namespace and name.
... the getattributens() method of the element interface returns the string value of the attribute with the specified namespace and name.
...And 15 more matches
FormData.append() - Web APIs
Web › API › FormData › append
the difference between formdata.set and append() is that if the specified key already exists, formdata.set will overwrite all existing values with the new one, whereas append() will append the new value onto the end of the existing set of values.
...ta.set and append() is that if the specified key already exists, formdata.set will overwrite all existing values with the new one, whereas append() will append the new value onto the end of the existing set of values.
...() is that if the specified key already exists, formdata.set will overwrite all existing values with the new one, whereas append() will append the new value onto the end of the existing set of values.
...And 15 more matches
Using Web Workers - Web APIs
request (although the responsexml and channel attributes are always null).
...rkers: further details for a much more thorough explanation.
... worker, its onerror event handler is called.
...And 15 more matches
<input type="checkbox"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › checkbox
presenting the value of the checkbox.
...mon attributes checked idl attributes checked, indeterminate and value methods select() value a domstring representing the value of the checkbox.
...t-side, but on the server this is the value given to the data submitted with the checkbox's name.
...And 15 more matches
Sorting and filtering a custom tree view - Archive of obsolete content
="center" id="search-box"> <label accesskey="f" control="filter">filter</label> <textbox id="filter" oninput="inputfilter(event)" flex="1"/> <button id="clearfilter" oncommand="clearfilter()" label="clear" accesskey="c" disabled="true"/> </hbox> <tree id="tree" flex="1" persist="sortdirection sortresource" sortdirection="ascending" sortresource="description"> <treecols> <treecol id="name" label="name" flex="1" persist="width ordinal hidden" onclick="sort(this)" class="sortdirectionindicator" sortdirection="ascending"/> <splitter class="tree-splitter"/> <treecol id="description" label="description" flex="1" persist="width ordinal hidden" onclick="sort(this)" class="sortdirectionindicator"/> <splitter class="tree-splitter"/> <treecol id="weapon" label="weapon" flex="1" ...
...e the tree is sorted, filtered, or reloaded function loadtable() { //remember scroll position.
...s is an editable table //to prevent the user from losing the row they edited var topvisiblerow = null; if (table) { topvisiblerow = gettopvisiblerow(); } if (data == null) { //put object loading code here.
...And 14 more matches
The Chrome URL - Archive of obsolete content
wn.
...urn the right data.
... doesn't matter where the package is installed to be able to access it.
...And 14 more matches
Sunbird Theme Tutorial - Archive of obsolete content
s.
...nd provide different icons on the buttons.
... find the profile directory, see the mozillazine article: profile folder inside the profile directory, go to the <tt>extensions</tt> directory.
...And 14 more matches
Getting Started with Chat
re the most enjoyable and productive experience: as with all mozilla forums and events, agreeing to our community participation guidelines is a requirement for participation.
...e message box at the bottom of the screen and press enter: /join #channel joins you to the specified channel until you quit your irc client or quit the channel /leave leave the current channel /mode #channel +k password sets a password for the channel.
...ickname sets specified user as an owner or moderator of the specified channel.
...And 14 more matches
Following the Android Toasts Tutorial from a JNI Perspective
constructors, and fields that are being used.
... will start by declaring the types needed.
...statement so if any errors occur we make sure to unload the classes and the java environment, this is good for performance.
...And 14 more matches
Localization content best practices
ers with very diverse technical skills: some of them rely exclusively on translation tools, others prefer to work directly with text editors and don't have problems working with vcs systems.
...'s important to consider this when adding strings, and especially localization comments for strings that contain references, or obscure technical details.
... localization notes localizers usually work on the localizable files without the context of the source files including the localized strings; it is important to add comments to the localizable files themselves, too.
...And 14 more matches
NSS Sample Code Sample1
nss sample code 1: key generation and transport between servers.
...rver, loading the encryption and macing keys // from files int start(); // shut down the server.
...server.
...And 14 more matches
JS::Add*Root
ble as a member of the garbage collector's root set, to protect anything the root points at from garbage collection.
...at from garbage collection.
...ection.
...And 14 more matches
JS_DefineProperty
create a new property on an object.
... create a new property on an object.
...ue value, unsigned attrs, jsnative getter = nullptr, jsnative setter = nullptr); bool js_defineproperty(jscontext *cx, js::handleobject obj, const char *name, js::handleobject value, unsigned attrs, jsnative getter = nullptr, jsnative setter = nullptr); bool js_defineproperty(jscontext *cx, js::handleobject obj, const char *name, js::handlestring value, unsigned attrs, jsnative getter = nullptr, jsnative setter = nullptr); bool js_defineproperty(jscontext *cx, js::handleobject obj, const char *name, int32_t value, unsigned attrs, jsnative getter = nullptr, jsnative setter = nullptr); bool js_defineproperty(jscontext *cx, js::handleobject obj, const...
...And 14 more matches
extISessionStorage
plication (e.g.
...orage is defined in toolkit/components/exthelper/extiapplication.idl.
...l.
...And 14 more matches
nsIDOMXULElement
dom/interfaces/xul/nsidomxulelement.idlscriptable represents a xul element within the dom.
...xulelement.idlscriptable represents a xul element within the dom.
...represents a xul element within the dom.
...And 14 more matches
nsIEffectiveTLDService
netwerk/dns/nsieffectivetldservice.idlscriptable this is an interface that examines a hostname and determines the longest portion that should be treated as though it were a top-level domain (tld).
...the base domain of a uri.
...x("a.b.c.nonexistent"), you will get back "nonexistent" - this "tld" is not in the public suffix list, but the implicit "*" rule means that it is returned.
...And 14 more matches
nsIPromptService
ow aparent,in wstring adialogtitle,in wstring atext, in unsigned long abuttonflags,in wstring abutton0title, in wstring abutton1title,in wstring abutton2title,in wstring acheckmsg, inout boolean acheckstate); boolean prompt(in nsidomwindow aparent, in wstring adialogtitle, in wstring atext, inout wstring avalue, in wstring acheckmsg, inout boolean acheckstate); boolean promptusernameandpassword(in nsidomwindow aparent, in wstring adialogtitle, in wstring atext, inout wstring ausername, inout wstring apassword, in wstring acheckmsg, inout boolean acheckstate); boolean promptpassword(in nsidomwindow aparent, in wstring adialogtitle, in wstring atext, inout wstring apassword, in wstring acheckmsg, inout boolean acheckstate); boolean select(in nsidomwindow apare...
... boolean select(in nsidomwindow aparent, in wstring adialogtitle, in wstring atext, in pruint32 acount, [array, size_is(acount)] in wstring aselectlist, out long aoutselection); constants the following flags are combined to form the abuttonflags parameter passed to confirmex.
...ing adialogtitle, in wstring atext, in pruint32 acount, [array, size_is(acount)] in wstring aselectlist, out long aoutselection); constants the following flags are combined to form the abuttonflags parameter passed to confirmex.
...And 14 more matches
nsIZipReader
o 10.0 (firefox 10.0 / thunderbird 10.0 / seamonkey 2.7) implemented by: @mozilla.org/libjar/zip-reader;1.
...der has a code page problem; that is, in the zip specification, filenames are supposed to use 7-bit ascii; however, most modern filesystems use 8 bit code pages, such as utf-8.
...dern filesystems use 8 bit code pages, such as utf-8.
...And 14 more matches
Add to iPhoto
this), a pointer to the unicode string to copy into the new string object (ctypes.jschar.ptr), and the length of the unicode string in characters.
...urlref, // returns ctypes.voidptr_t, // input: allocator ctypes.unsigned_char.ptr, // input: pointer to string cfindex, // input: string length ctypes.bool) // input: isdirectory this method is used to convert a unix pathname into an url.
... // input: string length ctypes.bool) // input: isdirectory this method is used to convert a unix pathname into an url.
...And 14 more matches
Console.table() - Web APIs
Web › API › Console › table
ment data, which must be an array or an object, and one additional optional parameter columns.
...be the property names.
...perty names.
...And 14 more matches
Document.createNSResolver() - Web APIs
creates an xpathnsresolver which resolves namespaces with respect to the definitions in scope for a specified node.
... creates an xpathnsresolver which resolves namespaces with respect to the definitions in scope for a specified node.
... creates an xpathnsresolver which resolves namespaces with respect to the definitions in scope for a specified node.
...And 14 more matches
Introduction to the DOM - Web APIs
entation of the web page, which can be modified with a scripting language such as javascript.
... implemented in most modern browsers.
...where documents may be accessed by various browsers with different doms.
...And 14 more matches
min-width - CSS: Cascading Style Sheets
Web › CSS › min-width
full support 33safari ios full support 11 full support 11 full support 7prefixed prefixed implemented with the vendor prefix: -webkit-samsung internet android full support 5.0alternate name full support 5.0alternate name alternate name uses the non-standard name: -webkit-fill-availablemax-contentchrome full support 46 full support 46 full support 25prefixed prefixed implemented with the vendor prefix: -we...
... noopera full support 15prefixed full support 15prefixed prefixed implemented with the vendor prefix: -webkit-safari full support 11 full support 11 full support 2alternate name alternate name uses the non-standard name: intrinsicwebview android full support 46 full support 46 full support ≤37prefixed prefixed implemented with the vendor prefix: -webkit-chrome android full support 46firefox a...
... 66 full support 4prefixed prefixed implemented with the vendor prefix: -moz-opera android full support 33safari ios full support 11 full support 11 full support 1alternate name alternate name uses the non-standard name: intrinsicsamsung internet android full support 5.0min-contentchrome full support 46 full support 46 full support 25prefixed prefixed implemented with the vendor prefix: -webkit...
...And 14 more matches
Object - JavaScript
do so, one must use the delete operator.
...t is a wrapper for the given value.
...) returns an array containing all of the [key, value] pairs of a given object's own enumerable string properties.
...And 14 more matches
Using Dependent Libraries In Extension Components - Archive of obsolete content
y/libraries/component.dll extension-directory/components/interface1.xpt extension-directory/components/interface2.xpt extension-directory/components/bsmedberg_stub.dll extensions/stub/makefile.in # copyright (c) 2005 benjamin smedberg <benjamin@smedbergs.us> depth = ../..
...sgetmodule on // the component.
...comptr<nsilocalfile> library(do_queryinterface(libraries)); if (!library) return ns_error_unexpected; library->setnativeleafname(ns_literal_cstring("libraries")); library->appendnative(ns_literal_cstring("dummy")); // loop through and load dependent libraries for (char const *const *dependent = kdependentlibraries; *dependent; ++dependent) { library->setnativeleafname(nsdependentcstring(*dependent)); prlibrary *lib; library->load(&lib); // 1) we don't care if this failed!
...And 13 more matches
Using microformats - Archive of obsolete content
adr represents an address (such as a street or mailing address).
... address).
...aphical location using latitude and longitude.
...And 13 more matches
Moving, Copying and Deleting Files - Archive of obsolete content
n disk.
... copy a file, while nsifile.moveto() is used to move files.
...files.
...And 13 more matches
Publishing your website - Learn web development
e effort.
...it.
...eps through one method that can work right away for many readers.
...And 13 more matches
What is JavaScript? - Learn web development
center; border: 2px solid rgba(0,0,200,0.6); background: rgba(0,0,200,0.3); color: rgba(0,0,200,0.6); box-shadow: 1px 1px 2px rgba(0,0,200,0.4); border-radius: 10px; padding: 3px 10px; display: inline-block; cursor: pointer; } and finally, we can add some javascript to implement dynamic behaviour: const para = document.queryselector('p'); para.addeventlistener('click', updatename); function updatename() { let name = prompt('enter a new name'); para.textcontent = 'player 1: ' + name; } try clicking on this last version of the text label to see what happens (note also that you can find this demo on github — see the source code, or run it live)!
...that you can find this demo on github — see the source code, or run it live)!
...ub — see the source code, or run it live)!
...And 13 more matches
DMD
a heap profiler within firefox.
...tell it is working by going to about:memory and looking for "save dmd output".
...ample, from javascript code you can do the following.
...And 13 more matches
Rhino shell
the javascript shell provides a simple way to run scripts in batch mode or an interactive environment for exploratory programming.
... the javascript shell provides a simple way to run scripts in batch mode or an interactive environment for exploratory programming.
... the javascript shell provides a simple way to run scripts in batch mode or an interactive environment for exploratory programming.
...And 13 more matches
Property cache
the results of part 1 above, telling which object contains the desired property.
...t 1 above, telling which object contains the desired property.
...lling which object contains the desired property.
...And 13 more matches
JS_DeleteProperty2
obsolete since jsapi 39this feature is obsolete.
... obsolete since jsapi 39this feature is obsolete.
...e browsers, its use is discouraged since it could be removed at any time.
...And 13 more matches
JS_FS
macros for describing functions, for use with js_defineproperties and js_initclass.
... macros for describing functions, for use with js_defineproperties and js_initclass.
... macros for describing functions, for use with js_defineproperties and js_initclass.
...And 13 more matches
JS_SetProperty
assign a value to a property of an object.
... assign a value to a property of an object.
... assign a value to a property of an object.
...And 13 more matches
SpiderMonkey 1.8.5
makefile.ref) is no longer supported.
..., but most of those changes will be detected by the c/c++ compiler, so they are easy to detect and updating the code is a fairly straightforward job.
...r in spidermonkey 1.8.5.
...And 13 more matches
A Web PKI x509 certificate primer
escribed on rfc 5280, but that is out of the scope of this document.
... the scope of this document.
...document.
...And 13 more matches
Places utilities for JavaScript
e interface available to that type.
...it(anode) asfullvisit(anode) ascontainer(anode) asquery(anode) annotations a few annotation names are defined here.
...w_drop_types methods createfixeduri nsiuri createfixeduri(string aspec) takes in a spec and returns a valid uri based on it using the nsiurifixup service.
...And 13 more matches
Accessing the Windows Registry Using XPCOM
ad); var id = wrk.readstringvalue("productid"); wrk.close(); this example, while simple, shows several important things about using the interface.
...notice in the open() call that the root key to use is specified using the named constants available on the nsiwindowsregkey interface, in this case root_key_local_machine, which corresponds to hkey_local_machine in the windows registry.
...ted in.
...And 13 more matches
nsIIDNService
netwerk/dns/nsiidnservice.idlscriptable this interface provides support for internationalized domain names, including methods for manipulating idn hostnames according to ietf specification.
...e(components.interfaces.nsiidnservice); method overview autf8string convertacetoutf8(in acstring input); autf8string converttodisplayidn(in autf8string input, out boolean isascii); acstring convertutf8toace(in autf8string input); boolean isace(in acstring input); autf8string normalize(in autf8string input); methods convertacetoutf8() converts an ace (ascii compatible encoding) hostname into unicode format, returning a utf-8 format string.
...g input); methods convertacetoutf8() converts an ace (ascii compatible encoding) hostname into unicode format, returning a utf-8 format string.
...And 13 more matches
Autoconfiguration in Thunderbird
ksch please do not change this document without consulting the author thunderbird 3.1 and later (and 3.0 to some degree) includes mail account autoconfiguration functionality.
...l big isps (including microsoft) will set up a configuration server for thunderbird.
...his is mainly intended for companies who install thunderbird on their employees' computers and want to enable easy account setup without having to set up a configuration server.
...And 13 more matches
Network request details - Firefox Developer Tools
s the request.
...added by firefox.) you can copy some or all of the response header in json format by using the context menu: if you select copy, a single key word, value pair is copied.
...son format by using the context menu: if you select copy, a single key word, value pair is copied.
...And 13 more matches
Cache - Web APIs
Web › API › Cache
the cache interface provides a storage mechanism for request / response object pairs that are cached, for example as part of the serviceworker life cycle.
...e to use it in conjunction with service workers, even though it is defined in the service worker spec.
... entries.
...And 13 more matches
HTMLAreaElement - Web APIs
g that reflects the alt html attribute, containing alternative text for the element.
...tml attribute, containing alternative text for the element.
...g alternative text for the element.
...And 13 more matches
Using server-sent events - Web APIs
separated by a pair of newline characters.
...he fields for that message.
...ollowed by a colon, followed by the text data for that field's value.
...And 13 more matches
Using CSS animations - CSS: Cascading Style Sheets
the animation property or its sub-properties.
...rty or its sub-properties.
...ext slide across the browser window this simple example styles the <p> element so that the text slides in from off the right edge of the browser window.
...And 13 more matches
Using CSS transitions - CSS: Cascading Style Sheets
nd lots of time debugging in css.
...of time debugging in css.
...ransform color; -webkit-transition-duration: 0.5s; -webkit-transition-timing-function: ease-in-out; transition-property: width height background-color font-size left top transform -webkit-transformv color; transition-duration: 0.5s; transition-timing-function: ease-in-out; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var intervalid = window.setinterval(updatetransition, 7000); transition-duration: 1s <div class="parent"> <div class="box">lorem</div> </div> .parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-s...
...And 13 more matches
<input type="image"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › image
available on <input type="submit"> and <button> elements.
...ies that the form should not be validated before submission to the server.
...type="submit"> and <button> elements.
...And 13 more matches
Groups and ranges - JavaScript
n't return groups if the /.../g flag is set.
...l use string.matchall() to get all matches.
... matches.
...And 13 more matches
Compiling from Rust to WebAssembly - WebAssembly
llow the instructions.
...rgo has generated some rust code for us in src/lib.rs: #[cfg(test)] mod tests { #[test] fn it_works() { assert_eq!(2 + 2, 4); } } we won't use this test code at all, so go ahead and delete it.
...lib.rs: #[cfg(test)] mod tests { #[test] fn it_works() { assert_eq!(2 + 2, 4); } } we won't use this test code at all, so go ahead and delete it.
...And 13 more matches
context-menu - Archive of obsolete content
tems for each add-on will be grouped together automatically.
... least one image, but declarative contexts won't help you there.
...nt passed to the "context" event will not always match the type specified in selectorcontext.
...And 12 more matches
page-mod - Archive of obsolete content
"); pagemod.pagemod({ include: "*.mozilla.org", contentscriptfile: data.url("element-getter.js"), onattach: function(worker) { worker.port.emit("getelements", tag); worker.port.on("gotelement", function(elementcontent) { console.log(elementcontent); }); } }); /data/element-getter.js: self.port.on("getelements", function(tag) { var elements = document.getelementsbytagname(tag); for (var i = 0; i < elements.length; i++) { self.port.emit("gotelement", elements[i].innerhtml); } }); when the user loads a document hosted at "mozilla.org": the content script "element-getter.js" is attached to the document and runs.
...ately.
...ighlight divs", icon: "./icon-16.png", onclick: function() { require("sdk/tabs").activetab.attach({ contentscript: 'var divs = document.getelementsbytagname("div");' + 'for (var i = 0; i < divs.length; ++i) {' + 'divs[i].setattribute("style", "border: solid red 1px;");' + '}' }); } }); to run this example you'll also have to have an icon file named "icon-16.png" saved in your add-on's "data" directory.
...And 12 more matches
Preferences - Archive of obsolete content
nsisupportsstring objects in preferences (as strings — note that from the preferences system's point of view, complex values have a nsiprefbranch.pref_string type.) there are two nsiprefbranch methods implementing the concept — setcomplexvalue() and getcomplexvalue().
...e a nsiprefbranch.pref_string type.) there are two nsiprefbranch methods implementing the concept — setcomplexvalue() and getcomplexvalue().
...in nsisupports avalue); as you can see, both of them take a parameter, atype, which can have one of the following values (to be precise, you should pass components.interfaces.nsiwhatever instead of just nsiwhatever, which is undefined).
...And 12 more matches
Signing an XPI - Archive of obsolete content
orming this operation while the browser is running could cause corruption of your security databases.
... should exit the browser before continuing this operation.
...37%) adding: meta-inf/zigbert.sf (deflated 40%) adding: chrome/fsb.jar (deflated 74%) adding: chrome.manifest (deflated 69%) adding: install.rdf (deflated 62%) test your certificate to test your certificate, install it into your browser, and attempt to load the signed extension by following these steps: 1.
...And 12 more matches
Binding Implementations - Archive of obsolete content
y from the bound element.
...ethods and properties of an implementation can be defined declaratively using method and property tags in xml, or an external implementation (e.g., a binary implementation) can be specified using the src attribute.
...of an implementation can be defined declaratively using method and property tags in xml, or an external implementation (e.g., a binary implementation) can be specified using the src attribute.
...And 12 more matches
Building accessible custom components in XUL - Archive of obsolete content
ng" flex="1"/> <label value="dinner" flex="1"/> <label value="lodging" flex="1"/> <label value="breakfast" flex="1"/> <label value="lunch" flex="1"/> <label value="dinner" flex="1"/> </column> <-- several columns omitted for brevity --> </columns> </grid> </code> now we can use css to add some minimal styling to make it actually look like a spreadsheet.
... grid element is really a spreadsheet.
...each label element is really a cell within the spreadsheet.
...And 12 more matches
RDF Datasources - Archive of obsolete content
s the list of urls the user has visited recently.
...ently.
...sources (or fields) that you can retrieve from the history datasource.
...And 12 more matches
preference - Archive of obsolete content
ust be placed inside a preferences element.
...d in the user's preferences file.
... element's preference attribute.
...And 12 more matches
XULRunner tips - Archive of obsolete content
/locale/extensions/extensions.properties"); pref("extensions.getmoreextensionsurl", "chrome://mozapps/locale/extensions/extensions.properties"); pref("extensions.getmorethemesurl", "chrome://mozapps/locale/extensions/extensions.properties"); if your application is based on gecko 2.0, you need to register a component through the new component registration because the extension manager uses fuel, namely application.restart(), to restart your xulrunner-based application after any change (installation, removal, enabling, disabling) in the extensions' list: copy files fuelapplication.js and fuelapplication.manifest from browser/fuel/src for instance into your components/ directory tweak the line #include ../../../toolkit/components/exthelper/extapplication.js in your copy of fuelapplication.j...
...ing stub.
..."chrome://communicator/skin/" as an alias for "chrome://global/skin/" and this alias was maintained in the xulrunner toolkit until xulrunner 1.9 was released.
...And 12 more matches
CSS and JavaScript accessibility best practices - Learn web development
an be creative with link styles, as long as you keep giving users feedback when they interact with the links.
...th link styles, as long as you keep giving users feedback when they interact with the links.
...ving users feedback when they interact with the links.
...And 12 more matches
Client-Server Overview - Learn web development
ate a new one if it doesn't exist).
...source.
...ion can be encoded with the request (for example, html form data).
...And 12 more matches
Communicating with frame scripts
access to content objects.
...he frame script can choose to send synchronous or asynchronous messages to chrome code.
... code.
...And 12 more matches
NSS tools : pk12util
nss tools : pk12util name pk12util — export and import keys and certificate to or from a pkcs #12 file and the nss database synopsis pk12util [-i p12file|-l p12file|-o p12file] [-d [sql:]directory] [-h tokenname] [-p dbprefix] [-r] [-v] [-k slotpasswordfile|-k slotpassword] [-w p12filepasswordfile|-w p12filepassword] description the pkcs #12 utility, pk12util, enables sharing certificates among any server that supports pkcs#12.
... -d [sql:]directory specify the database directory into which to import to or export from certificates and keys.
...y specify the database directory into which to import to or export from certificates and keys.
...And 12 more matches
NSS tools : pk12util
name pk12util — export and import keys and certificate to or from a pkcs #12 file and the nss database synopsis pk12util [-i p12file [-h tokenname] [-v] [common-options] ] [ -l p12file [-h tokenname] [-r] [common-options] ] [ -o p12file -n certname [-c keycipher] [-c certcipher] [-m|--key_len keylen] [-n|--cert_key_len certkeylen] [common-options] ] [ common-options are: [-d [sql:]directory] [-p dbprefix] [-k slotpasswordfile|-k slotpassword] [-w p12filepasswordfile|-w p12filepassword] ] description the pkcs #12 utility, pk12util, enables sharing certificates among any server that supports pkcs#12.
...es, and list certificates and keys.
...keys.
...And 12 more matches
Hacking Tips
ing optimizations.
...function in a release build.
...ts caller.
...And 12 more matches
JSAPI reference
pidermonkey 17 js_entercompartment added in spidermonkey 24 js_leavecompartment added in spidermonkey 24 js_getcompartmentprivate added in spidermonkey 1.8.5 js_setcompartmentprivate added in spidermonkey 1.8.5 js_getglobalforcompartmentornull added in spidermonkey 17 js_iteratecompartments added in spidermonkey 17 js_setdestroycompartmentcallback added in spidermonkey 17 js_setcompartmentnamecallback added in spidermonkey 17 js_newcompartmentandglobalobject added in spidermonkey 1.8.1 obsolete since jsapi 16 js_entercrosscompartmentcall added in spidermonkey 1.8.1 obsolete since jsapi 18 js_leavecrosscompartmentcall added in spidermonkey 1.8.1 obsolete since jsapi 18 locale callbacks: struct jslocalecallbacks js_getlocalecallbacks js_setlocalecallbacks locale callback t...
...api 42 int_fits_in_jsval obsolete since javascript 1.8.5 jsval_to_boolean obsolete since jsapi 32 jsval_to_int obsolete since jsapi 32 jsval_to_double obsolete since jsapi 32 jsval_to_object obsolete since jsapi 32 jsval_to_string obsolete since jsapi 32 jsval_to_gcthing obsolete since jsapi 32 jsval_to_private obsolete since jsapi 32 a function that behaves like typeof: js_gettypename obsolete since jsapi 34 and functions that behave like the equality operators: js_strictlyequal js_looselyequal js_samevalue memory management these functions act like the standard c malloc family of functions, except that errors are reported using the spidermonkey error apis rather than errno.
... class js::autoscriptvector added in spidermonkey 17 class js::handlevaluearray added in spidermonkey 31 js::add*root added in spidermonkey 31 obsolete since jsapi 38 js::addvalueroot added in spidermonkey 31 obsolete since jsapi 38 js::addstringroot added in spidermonkey 31 obsolete since jsapi 38 js::addobjectroot added in spidermonkey 31 obsolete since jsapi 38 js::addnamedvalueroot added in spidermonkey 31 obsolete since jsapi 38 js::addnamedvaluerootrt added in spidermonkey 31 obsolete since jsapi 38 js::addnamedscriptroot added in spidermonkey 31 obsolete since jsapi 38 js::addnamedstringroot added in spidermonkey 31 obsolete since jsapi 38 js::addnamedobjectroot added in spidermonkey 31 obsolete since jsapi 38 js::remove*root added in spidermo...
...And 12 more matches
nsIMessageListenerManager
erits from: nsisupports last changed in gecko 41 (firefox 41 / thunderbird 41 / seamonkey 2.38) implemented by: @mozilla.org/globalmessagemanager;1.
...balmm = components.classes["@mozilla.org/globalmessagemanager;1"] .getservice(components.interfaces.nsimessagelistenermanager); method overview void addmessagelistener(in astring messagename, in nsimessagelistener listener, [optional] in boolean listenwhenclosed) void removemessagelistener(in astring messagename, in nsimessagelistener listener); void addweakmessagelistener(in astring messagename, in nsimessagelistener listener); void removeweakmessagelistener(in astring messagename, in nsimessagelistener listener); methods addmessagelistener() register listener to receive messagena...
...n nsimessagelistener listener); methods addmessagelistener() register listener to receive messagename.
...And 12 more matches
LDAP Support
to use an ldap directory.
...y be a large number of users in the directory with the same name.
... book attribute and its ldap counterpart.
...And 12 more matches
StructType
structtype represents c structures.
... structtype represents c structures.
... structtype represents c structures.
...And 12 more matches
ctypes
the ctypes object contains methods and predefined data types used to create and manage a library.
... the ctypes object contains methods and predefined data types used to create and manage a library.
... object contains methods and predefined data types used to create and manage a library.
...And 12 more matches
DevTools API - Firefox Developer Tools
the toolbox is undocked).
...efined.
...of the panel document.
...And 12 more matches
Document - Web APIs
Web › API › Document
nly returns the <head> element of the current document.
...d eventtarget interfaces.
...object and returns it.
...And 12 more matches
Element.setAttributeNS() - Web APIs
setattributens adds a new attribute or changes the value of an attribute with the given namespace and name.
... setattributens adds a new attribute or changes the value of an attribute with the given namespace and name.
... setattributens adds a new attribute or changes the value of an attribute with the given namespace and name.
...And 12 more matches
FileSystemEntry - Web APIs
the filesystementry interface of the file and directory entries api represents a single in a file system.
...heme for the root directory of the origin of the app.
...e full, absolute path from the file system's root to the entry; it can also be thought of as a path which is relative to the root directory, prepended with a "/" character.
...And 12 more matches
MutationObserverInit.attributeFilter - Web APIs
the mutationobserverinit dictionary's optional attributefilter property is an array of strings specifying the names of the attributes whose values are to be monitored for changes.
... specifying the names of the attributes whose values are to be monitored for changes.
...d for changes.
...And 12 more matches
Realizing common layouts using CSS Grid Layout - CSS: Cascading Style Sheets
a responsive layout with 1 to 3 fluid columns using grid-template-areas many websites are a variation of this type of layout, with content, sidebars, a header and a footer.
... we go to a two column layout, and then to a three column layout by redefining the grid, and the placement of items on the grid.</p> </article> <aside class="side">sidebar</aside> <div class="ad">advertising</div> <footer class="main-footer">the footer</footer> </div> as we are using grid-template-areas to create the layout.
...umn layout, and then to a three column layout by redefining the grid, and the placement of items on the grid.</p> </article> <aside class="side">sidebar</aside> <div class="ad">advertising</div> <footer class="main-footer">the footer</footer> </div> as we are using grid-template-areas to create the layout.
...And 12 more matches
grid-area - CSS: Cascading Style Sheets
Web › CSS › grid-area
>; otherwise, it is set to auto.
...ustom-ident> ] values */ grid-area: span 3; grid-area: span 3 / span some-grid-area; grid-area: 2 span / another-grid-area span; /* global values */ grid-area: inherit; grid-area: initial; grid-area: unset; values auto is a keyword indicating that the property contributes nothing to the grid item’s placement, indicating auto-placement or a default span of 1.
...s */ grid-area: span 3; grid-area: span 3 / span some-grid-area; grid-area: 2 span / another-grid-area span; /* global values */ grid-area: inherit; grid-area: initial; grid-area: unset; values auto is a keyword indicating that the property contributes nothing to the grid item’s placement, indicating auto-placement or a default span of 1.
...And 12 more matches
<form> - HTML: Hypertext Markup Language
Web › HTML › Element › form
not the elements inside the form are valid.
...er input elements can by default have their values automatically completed by the browser.
...lements can by default have their values automatically completed by the browser.
...And 12 more matches
<input type="radio"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › radio
lue idl attributes checked and value methods select() value the value attribute is a domstring containing the radio button's value.
...hich radio button in a group is selected.
...me name.
...And 12 more matches
<keygen> - HTML: Hypertext Markup Language
Web › HTML › Element › keygen
sociated with (its form owner).
...ith (its form owner).
...f this attribute is not specified, this element must be a descendant of a <form> element.
...And 12 more matches
<label> - HTML: Hypertext Markup Language
Web › HTML › Element › label
evice.
...ling considerations for <label> elements — structurally they are simple inline elements, and so can be styled in much the same way as a <span> or <a> element.
...turally they are simple inline elements, and so can be styled in much the same way as a <span> or <a> element.
...And 12 more matches
Expressions and operators - JavaScript
nt operator assigns a value to its left operand based on the value of its right operand.
...= 0, j = 9; i <= j; i++, j--) // ^ console.log('a[' + i + '][' + j + ']= ' + a[i][j]); unary operators a unary operation is an operation with only one operand.
...ning a value.
...And 12 more matches
Regular expression syntax cheatsheet - JavaScript
n't return groups if the /.../g flag is set.
...l use string.matchall() to get all matches.
... matches.
...And 12 more matches
Property accessors - JavaScript
for this interactive example is stored in a github repository.
...r, the property/method distinction is little more than a convention.
...re than a convention.
...And 12 more matches
Index - XPath
Web › XPath › Index
is indicates the children of the context node.
...dicates all of the children of the context node, and all of their children, and so forth.
...descendant-or-self axis indicates the context node and all of its descendants.
...And 12 more matches
Index - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Index
an equivalent rule in the main stylesheet.
...t, apply-templates the <xsl:apply-templates> element selects a set of nodes in the input tree and instructs the processor to apply the proper templates to them.
...et.
...And 12 more matches
ui/frame - Archive of obsolete content
on, which is a url pointing to an html document supplied under your add-ons "data" directory.
...t type="text/javascript" src="city-info.js"></script> </body> </html> if we save this document as "city-info.html" under the add-on's "data" directory, we can create a frame hosting it and add the frame to a toolbar like this: var { frame } = require("sdk/ui/frame"); var { toolbar } = require("sdk/ui/toolbar"); var frame = new frame({ url: "./city-info.html" }); var toolbar = toolbar({ name: "city-info", title: "city info", items: [frame] }); the toolbar is positioned between the address bar and the content window.
...o listen for these messages in the main add-on code, you can assign a listener to the frame's message event.
...And 11 more matches
jpm - Archive of obsolete content
ager like apt, install npm via that.
...nter sudo apt-get install nodejs nodejs-legacy npm.
... jpm sign package your add-on as an xpi file, and then retrieve a new xpi signed by mozilla.
...And 11 more matches
Connecting to Remote Content - Archive of obsolete content
use the javascript eval function.
...since eval executes any code contained in the string, workarounds had to be devised in order to close security holes.
...le", "code": "a001"}, {"name": "orange"}], "total": 100} when the onload callback function is called, the response text is converted into a js object using the parse method.
...And 11 more matches
Promises - Archive of obsolete content
e following examples make use of the task api, which harnesses generator functions to remove some of the syntactic clutter of raw promises, such that asynchronous promise code more closely resembles synchronous, procedural code.
...ctic clutter of raw promises, such that asynchronous promise code more closely resembles synchronous, procedural code.
...* () { var response = yield request("login", { username: user, password: password }); if (response.messages) { try { yield publish({ username: user, messages: response.messages }); } catch (e) { self.reporterror("publication failed", e); } } }); can be converted to a pure promise-based equivalent as such: request("login", { username: user, password: password }) .then(response => { if (response.messages) return publish({ username: user, messages: response.messages }); }) .then(null, (e) => { self.reporterror("publication failed", e); }); file io file io in add-ons should be done via the os.file api, which provides a simple, but powerful, interface for reading, writing, and manipul...
...And 11 more matches
initInstall - Archive of obsolete content
initinstall initializes the installation of the specified software and version.
... initinstall initializes the installation of the specified software and version.
... initinstall initializes the installation of the specified software and version.
...And 11 more matches
Multiple Rules - Archive of obsolete content
to is that of the first rule with the button, whereas the content for the other photos is that of the second rule with the normal images.
... second rule with the normal images.
...startswithmatch if a value starts with a specific string endswithmatch if a value ends with a specific string containsmatch if a value contains a substringto highlight results that contain a search term here is an example using the 'contains' operator: <vbox datasources="people.xml" ref="*" querytype="xml"> <template> <query expr="person"> <assign var="?letters" expr="string-length(@name) - 1"/> </query> <rule> <where subject="?name" rel="contains" value=" "/> <action> <label uri="?" value="?name has two names for a total length of ?letters"/> </action> </rule> </template> </vbox> this example contains only one rule with a condition which checks for names that contain a space character, which has the effect of selecting only those people w...
...And 11 more matches
Advanced Rules - Archive of obsolete content
ons match for that resource, the content in the actions element is generated for that resource.
...e root resource while the conditions are analyzed for a match.
...r/cities"> <rdf:li resource="http://www.xulplanet.com/rdf/weather/city/paris"/> <rdf:li resource="http://www.xulplanet.com/rdf/weather/city/manchester"/> <rdf:li resource="http://www.xulplanet.com/rdf/weather/city/melbourne"/> <rdf:li resource="http://www.xulplanet.com/rdf/weather/city/kiev"/> </rdf:seq> <rdf:description about="http://www.xulplanet.com/rdf/weather/city/paris"> <cityset:name>paris</cityset:name> </rdf:description> .
...And 11 more matches
Manifest Files - Archive of obsolete content
ts up to see what packages are installed.
... tests file:///c:/testfiles/ the file path in that line should point to the directory created above.
...to do is add some xul files into that new directory, and you will be able to load them by typing in a chrome url of the form chrome://tests/content/<filename>.
...And 11 more matches
GetObject - Archive of obsolete content
non-standard.
... non-standard.
... non-standard.
...And 11 more matches
Plug-in Development Overview - Gecko Plugin API Reference
n of user preferences that are private to the browser, the contents of the plug-ins directory, or the registry on windows.
...n how gecko finds plug-ins.
...-in described below in installation using the registry.
...And 11 more matches
The HTML5 input types - Learn web development
r our extensive <input> types reference.
... is required to type a valid email address into the field.
...t-side form validation article later on.
...And 11 more matches
Working with JSON - Learn web development
f .json, and a mime type of application/json.
...ct literal format.
...struct a data hierarchy, like so: { "squadname": "super hero squad", "hometown": "metro city", "formed": 2016, "secretbase": "super tower", "active": true, "members": [ { "name": "molecule man", "age": 29, "secretidentity": "dan jukes", "powers": [ "radiation resistance", "turning tiny", "radiation blast" ] }, { "name": "madame uppercut", "age": 39, "secretidentity": "jane wilson", "powers": [ "million tonne punch", "damage resistance", "superhuman reflexes" ] }, { "name": "eternal flame", "age": 1000000, "secretidentity": "unknown", "powers": [ "immortality", "heat immunity", "inferno", "teleportati...
...And 11 more matches
Command line crash course - Learn web development
.
...ay, the terminal is not going away anytime soon.
...erminal commands without needing to use the terminal directly.
...And 11 more matches
Adding a new event
this is useful for widget notifying dom tree of something or retrieving something from dom tree.
...om tree of something or retrieving something from dom tree.
...'re in case 1 (a simple dom event), you can skip this section.
...And 11 more matches
Makefile - variables
note: non-functional links can be fixed by inserting en/.
...ed by inserting en/.
...s cpp_unit_tests a list of source files to compile as unit tests.
...And 11 more matches
Creating Custom Events That Can Pass Data
with version 6, firefox supports dom level 3 customevent, which lets you dispatch custom events with arbitrary data from javascript.
... events with arbitrary data from javascript.
...ata from javascript.
...And 11 more matches
IPDL Tutorial
protocol pplugin { child: async init(nscstring pluginpath); async shutdown(); parent: async ready(); }; this code declares the pplugin protocol.
...ary knows how to serialize and deserialize these types.
...criptableobject* get_ppluginscriptableobject(); }; aunion.type() can be used to determine the type of a union received in an ipdl message handler, with the remaining functions granting access to its contents.
...And 11 more matches
NSPR LOG MODULES
this environment variable specifies which log modules have logging enabled.
... this environment variable specifies which log modules have logging enabled.
... this environment variable specifies which log modules have logging enabled.
...And 11 more matches
Invariants
t's scope chain (found by chasing jsobject::fslots[jsslot_parent]) never forms a cycle.
...locked.
...king is not really that fine-grained, but that is a transparent optimization as long as we follow the rules.) a thread holding a property lock never leaves or suspends the current request.
...And 11 more matches
JS_PSGS
this article covers features introduced in spidermonkey 17 macros for describing properties, for use with js_defineproperties and js_initclass.
... this article covers features introduced in spidermonkey 17 macros for describing properties, for use with js_defineproperties and js_initclass.
... this article covers features introduced in spidermonkey 17 macros for describing properties, for use with js_defineproperties and js_initclass.
...And 11 more matches
nsIDNSService
netwerk/dns/nsidnsservice.idlscriptable provides domain name resolution service.
... .createinstance(components.interfaces.nsidnsservice); note: starting in gecko 7.0, the "happy eyeballs" strategy is used to reduce lengthy timeouts when attempting backup connections during attempts to connect from clients that have broken ipv6 connectivity.
...ons during attempts to connect from clients that have broken ipv6 connectivity.
...And 11 more matches
nsINavBookmarksService
.getservice(components.interfaces.nsinavbookmarksservice); method overview void addobserver(in nsinavbookmarkobserver observer, in boolean ownsweak); void beginupdatebatch(); obsolete since gecko 1.9 void changebookmarkuri(in long long aitemid, in nsiuri anewuri); long long createdynamiccontainer(in long long aparentfolder, in autf8string aname, in astring acontractid, in long aindex); note: renamed from createcontainer in gecko 1.9 obsolete since gecko 13.0 long long createfolder(in long long aparentfolder, in autf8string name, in long index); void endupdatebatch(); obsolete since gecko 1.9 void exportbookmarkshtml(in nsifile file); obsolete since gecko 1.9 nsiuri getbookmarkedurifor(in nsiuri auri);...
... void exportbookmarkshtml(in nsifile file); obsolete since gecko 1.9 nsiuri getbookmarkedurifor(in nsiuri auri); void getbookmarkfolderstarray(in nsiuri auri, in print64array aresult); native code only!
...title); void setkeywordforbookmark(in long long aitemid, in astring akeyword); obsolete since gecko 40.0 void setkeywordforuri(in nsiuri uri, in astring keyword); obsolete since gecko 1.9 obsolete since gecko 40.0 attributes attribute type description bookmarksmenufolder long long the item id of the bookmarks menu folder.
...And 11 more matches
nsIURI
an interface for an uniform resource identifier with internationalization support, offering attributes that allow setting and querying the basic components of a uri, and methods for performing basic operations on uris.
...ction makeuri(aurl, aorigincharset, abaseuri) { var ioservice = components.classes["@mozilla.org/network/io-service;1"] .getservice(components.interfaces.nsiioservice); return ioservice.newuri(aurl, aorigincharset, abaseuri); } components of a uri prepath path scheme userpass host port ref ftp :// username@password @ hostname : portnumber /pathname?query=value #ref method overview nsiuri clone(); nsiuri cloneignoringref(); boolean equals(in nsiuri other); boolean equalsexceptref(in nsiuri other); autf8string resolve(in autf8string relativepath); boolean schemeis(in string scheme); attributes attribute...
...(in nsiuri other); boolean equalsexceptref(in nsiuri other); autf8string resolve(in autf8string relativepath); boolean schemeis(in string scheme); attributes attribute type description asciihost acstring the uri host with an ascii compatible encoding.
...And 11 more matches
Plug-in Development Overview - Plugins
n of user preferences that are private to the browser, the contents of the plug-ins directory, or the registry on windows.
...n how gecko finds plug-ins.
...-in described below in installation using the registry.
...And 11 more matches
Examine and edit CSS - Firefox Developer Tools
an info icon that gives more information when clicked.
...uding grid lines and tracks.
... pseudo-class has been applied.
...And 11 more matches
Attr - Web APIs
Web › API › Attr
alignment-baseline="middle">attr</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} warning: starting in gecko 7.0 (firefox 7.0 / thunderbird 7.0 / seamonkey 2.4), a number of deprecated properties and methods output warning messages to the console.
...</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} warning: starting in gecko 7.0 (firefox 7.0 / thunderbird 7.0 / seamonkey 2.4), a number of deprecated properties and methods output warning messages to the console.
...</a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} warning: starting in gecko 7.0 (firefox 7.0 / thunderbird 7.0 / seamonkey 2.4), a number of deprecated properties and methods output warning messages to the console.
...And 11 more matches
Element.setAttribute() - Web APIs
sets the value of an attribute on the specified element.
... sets the value of an attribute on the specified element.
... sets the value of an attribute on the specified element.
...And 11 more matches
FormData.set() - Web APIs
Web › API › FormData › set
the difference between set() and formdata.append is that if the specified key does already exist, set() will overwrite all existing values with the new one, whereas formdata.append will append the new value onto the end of the existing set of values.
...) and formdata.append is that if the specified key does already exist, set() will overwrite all existing values with the new one, whereas formdata.append will append the new value onto the end of the existing set of values.
...pend is that if the specified key does already exist, set() will overwrite all existing values with the new one, whereas formdata.append will append the new value onto the end of the existing set of values.
...And 11 more matches
How to check the security state of an XMLHTTPRequest over SSL - Web APIs
als) if ((status & 0xffff) < math.abs(nsinsserrorsservice.nss_sec_error_base)) { // the bases are actually negative, so in our positive numeric space, we // need to subtract the base off our value.
...n our positive numeric space, we // need to subtract the base off our value.
...break; // per bsmith, we will be unable to tell these errors apart very soon, // so it makes sense to just folder them all together already.
...And 11 more matches
ARIA: form role - Accessibility
n.
...ssistive technologies that there is a form.
...named landmark is appropriate (e.g.
...And 11 more matches
@font-feature-values - CSS: Cascading Style Sheets
the @font-feature-values css at-rule lets you use a common name in the font-variant-alternates property for features activated differently in opentype.
... the @font-feature-values css at-rule lets you use a common name in the font-variant-alternates property for features activated differently in opentype.
...font-feature-values at-rule may be used either at the top level of your css or inside any css conditional-group at-rule.
...And 11 more matches
grid-column-end - CSS: Cascading Style Sheets
mn-end: span 3; grid-column-end: span somegridarea; grid-column-end: 5 somegridarea span; /* global values */ grid-column-end: inherit; grid-column-end: initial; grid-column-end: unset; values auto is a keyword indicating that the property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a default span of 1.
...-column-end: span somegridarea; grid-column-end: 5 somegridarea span; /* global values */ grid-column-end: inherit; grid-column-end: initial; grid-column-end: unset; values auto is a keyword indicating that the property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a default span of 1.
...n-end: inherit; grid-column-end: initial; grid-column-end: unset; values auto is a keyword indicating that the property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a default span of 1.
...And 11 more matches
grid-column-start - CSS: Cascading Style Sheets
a <custom-ident> value or an <integer> value or both <custom-ident> and <integer>, separated by a space or the keyword span together with either a <custom-ident> or an <integer> or both.
...ue or an <integer> value or both <custom-ident> and <integer>, separated by a space or the keyword span together with either a <custom-ident> or an <integer> or both.
... span together with either a <custom-ident> or an <integer> or both.
...And 11 more matches
grid-column - CSS: Cascading Style Sheets
custom-ident> value or an <integer> value or both <custom-ident> and <integer>, separated by a space or the keyword span together with either a <custom-ident> or an <integer> or both.
... or an <integer> value or both <custom-ident> and <integer>, separated by a space or the keyword span together with either a <custom-ident> or an <integer> or both.
... a <custom-ident> or an <integer> or both.
...And 11 more matches
grid-row-end - CSS: Cascading Style Sheets
alues */ grid-row-end: span 3; grid-row-end: span somegridarea; grid-row-end: 5 somegridarea span; /* global values */ grid-row-end: inherit; grid-row-end: initial; grid-row-end: unset; values auto is a keyword indicating that the property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a default span of 1.
...d: span 3; grid-row-end: span somegridarea; grid-row-end: 5 somegridarea span; /* global values */ grid-row-end: inherit; grid-row-end: initial; grid-row-end: unset; values auto is a keyword indicating that the property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a default span of 1.
...rid-row-end: inherit; grid-row-end: initial; grid-row-end: unset; values auto is a keyword indicating that the property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a default span of 1.
...And 11 more matches
grid-row-start - CSS: Cascading Style Sheets
custom-ident> value or an <integer> value or both <custom-ident> and <integer>, separated by a space or the keyword span together with either a <custom-ident> or an <integer> or both.
... or an <integer> value or both <custom-ident> and <integer>, separated by a space or the keyword span together with either a <custom-ident> or an <integer> or both.
...ogether with either a <custom-ident> or an <integer> or both.
...And 11 more matches
grid-row - CSS: Cascading Style Sheets
Web › CSS › grid-row
row: span 3 / 6; grid-row: span somegridarea / span someothergridarea; grid-row: 5 somegridarea span / 2 span; /* global values */ grid-row: inherit; grid-row: initial; grid-row: unset; values auto is a keyword indicating that the property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a default span of 1.
...d-row: span somegridarea / span someothergridarea; grid-row: 5 somegridarea span / 2 span; /* global values */ grid-row: inherit; grid-row: initial; grid-row: unset; values auto is a keyword indicating that the property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a default span of 1.
...herit; grid-row: initial; grid-row: unset; values auto is a keyword indicating that the property contributes nothing to the grid item’s placement, indicating auto-placement, an automatic span, or a default span of 1.
...And 11 more matches
max-width - CSS: Cascading Style Sheets
Web › CSS › max-width
g.ie no support noopera full support 44safari full support 6.1prefixed full support 6.1prefixed prefixed implemented with the vendor prefix: -webkit- full support 2alternate name alternate name uses the non-standard name: intrinsicwebview android full support 46 full support 46 full support ≤37prefixed prefixed implemented with the vendor prefix: -webkit-chrome android full support 46firefox a...
...finition of fit-content is simpler than in css3 sizing.opera android full support 43safari ios full support 7prefixed full support 7prefixed prefixed implemented with the vendor prefix: -webkit- full support 1alternate name alternate name uses the non-standard name: intrinsicsamsung internet android full support 5.0max-content experimentalchrome full support 46 full support 46 full support 22prefixed prefixed implemented with the vendor pr...
...z-ie no support noopera full support 44safari full support 6.1prefixed full support 6.1prefixed prefixed implemented with the vendor prefix: -webkit- full support 2alternate name alternate name uses the non-standard name: intrinsicwebview android full support 46 full support 46 full support ≤37prefixed prefixed implemented with the vendor prefix: -webkit-chrome android full support 46firefox a...
...And 11 more matches
Set-Cookie - HTTP
okie http response header is used to send a cookie from the server to the user agent, so the user agent can send it back to the server later.
...hould be sent in the same response.
... block frontend javascript code from accessing the set cookie header, as required by the fetch spec, which defines set-cookie as a forbidden response-header name that must be filtered out from any response exposed to frontend code.
...And 11 more matches
X-DNS-Prefetch-Control - HTTP
the x-dns-prefetch-control http response header controls dns prefetching, a feature by which browsers proactively perform domain name resolution on both links that the user may choose to follow as well as urls for items referenced by the document, including images, css, javascript, and so forth.
...s that the user may choose to follow as well as urls for items referenced by the document, including images, css, javascript, and so forth.
...hese domains.
...And 11 more matches
TypeError: "x" is not a function - JavaScript
a function, but the value is not actually a function.
...en working with array or typedarray objects: array.prototype.every(), array.prototype.some(), array.prototype.foreach(), array.prototype.map(), array.prototype.filter(), array.prototype.reduce(), array.prototype.reduceright(), array.prototype.find() when working with map and set objects: map.prototype.foreach() and set.prototype.foreach() examples a typo in the function name in this case, which happens way too often, there is a typo in the method name: let x = document.getelementbyid('foo'); // typeerror: document.getelementbyid is not a function the correct function name is getelementbyid: let x = document.getelementbyid('foo'); function called on the wrong object for certain methods, you have to provide a (callback) function and it will work on specific obj...
...tion and it will work on specific objects only.
...And 11 more matches
function declaration - JavaScript
tion statement) defines a function with the specified parameters.
...ters.
... define functions using the function constructor and a function expression.
...And 11 more matches
var - JavaScript
the var statement declares a function-scoped or globally-scoped variable, optionally initializing it to a value.
... the var statement declares a function-scoped or globally-scoped variable, optionally initializing it to a value.
...r statement declares a function-scoped or globally-scoped variable, optionally initializing it to a value.
...And 11 more matches
Structural overview of progressive web apps - Progressive web apps (PWAs)
ng js13kgames.png index.html js13kpwa.webmanifest style.css sw.js the html the html in the file index.html creates the structure of the app.
...ectly relevant to the app shell model are found outside the <section> with the id content within this page.
...are found outside the <section> with the id content within this page.
...And 11 more matches
Creating a Microsummary - Archive of obsolete content
oints to a generator, it uses the generator to generate the microsummary for the page.
... generators are expressed as xml documents whose root element is the <generator> element in the http://www.mozilla.org/microsummaries/0.1 namespace.
...xml documents whose root element is the <generator> element in the http://www.mozilla.org/microsummaries/0.1 namespace.
...And 10 more matches
Repackaging Firefox - Archive of obsolete content
x, both set in the partner.js file: localizable preferences, which have a value of a chrome:// uri pointing to the properties file where firefox can fetch the localized value from.
...ble preferences, which have a value of a chrome:// uri pointing to the properties file where firefox can fetch the localized value from.
...ll set of preferences which will be given to you by mozilla.
...And 10 more matches
Settings - Archive of obsolete content
the jetpack.storage.settings namespace allows jetpacks to specify user-configurable settings.
...pecification.
...rsist across browser sessions and are stored using the jetpack [simple storage api][].
...And 10 more matches
Settings - Archive of obsolete content
note: this page documents the jetpack prototype, which is no longer under active development.
...s browser sessions and are stored using the jetpack simple storage api.
...ored using the jetpack simple storage api.
...And 10 more matches
addDirectory - Archive of obsolete content
adddirectory unpacks an entire directory into a temporary location.
... adddirectory unpacks an entire directory into a temporary location.
...f install object syntax public int adddirectory ( string xpisourcepath); public int adddirectory ( string registryname, string xpisourcepath, object localdirspec, string relativelocalpath); public int adddirectory ( string registryname, string version, string xpisourcepath, object localdirspec, string relativelocalpath); public int adddirectory ( string registryname, string version, string xpisourcepath, object localdirspec, string relativelocalpath, boolean forceupdate); public int adddirectory ( string registryname, installversion version, string xpisourcepath, object localdirspec, string relativelocalpath, boolean forceupdate); parameters the adddirectory method has the following parameters: registryname t...
...And 10 more matches
Sorting Results - Archive of obsolete content
cking the column headers, however, you can programmatically change the sort as well.
...umn headers, however, you can programmatically change the sort as well.
...however, you can programmatically change the sort as well.
...And 10 more matches
Creating XULRunner Apps with the Mozilla Build System - Archive of obsolete content
oy --enable-application=mccoy ac_add_app_options mccoy --with-libxul-sdk=../xulrunner/dist the first section tells mozilla what to build and where to put the resulting object files.
...ase we're creating a debug build, so you'd have to change the relevant options if you want a release build instead.
...s if you want a release build instead.
...And 10 more matches
Gecko Compatibility Handbook - Archive of obsolete content
ter restarting your browser, add the the user-agent strings that you want to test to the list (tools | user agent switcher | options | options...
...rrectly detect gecko browsers.
...ko browsers and internet explorer your css relies on bugs in internet explorer's implementation of css.
...And 10 more matches
Sending form data - Learn web development
n you do this, the data is encrypted along with the rest of the request, even if the form itself is hosted on an insecure page accessed using http.
...even if the form itself is hosted on an insecure page accessed using http.
...er to send back a given resource: "hey server, i want to get this resource." in this case, the browser sends an empty body.
...And 10 more matches
A first splash into JavaScript - Learn web development
= document.queryselector('.guesssubmit'); const guessfield = document.queryselector('.guessfield'); let guesscount = 1; let resetbutton; this section of the code sets up the variables and constants we need to store the data our program will use.
...t: function checkguess() { alert('i am a placeholder'); } functions are reusable blocks of code that you can write once and run again and again, saving the need to keep repeating code all the time.
...y useful.
...And 10 more matches
Deploying our app - Learn web development
tests prevent deployment.
... code to a live url: or potentially a staging url so it can be reviewed first.
...se we're using parcel for development, the build option is extremely simple to add.
...And 10 more matches
Debugging on Mac OS X
r the project directory rather than link to them (still the case in xcode 10?) which breaks debugging and the possibility to modify-rebuild-relaunch from inside xcode.
...ate/select a temporary directory to contain the project and then click create.
...ry in the temporary directory, move it into your mozilla source tree, and then double-click on it to reopen it.
...And 10 more matches
Error codes returned by Mozilla APIs
the following tables list errors that can occur when calling various mozilla apis.
...ile errors the following table lists the errors that could occur when using files.
...if an attempt was made to perform an operation on a directory that is only valid for files.
...And 10 more matches
How to implement a custom autocomplete search component
tocomplete.
...ly paths beginning with / or ~/ will be autocompleted.
.../ will be autocompleted.
...And 10 more matches
source-editor.jsm
followed by findnext()).
...the string was never found.
...n set this value to true to make the editor read only, thereby preventing the user from making changes.
...And 10 more matches
NSS environment variables
ved from nss.
... of environment variables that affect how nss is built, documented below.
...ith /dev/urandom.
...And 10 more matches
Functions
there are several flavors of javascript function.
... there are several flavors of javascript function.
...ompiled to bytecode.
...And 10 more matches
JS::CompileFunction
this article covers features introduced in spidermonkey 17 create a javascript function from a text string.
... this article covers features introduced in spidermonkey 17 create a javascript function from a text string.
... const js::readonlycompileoptions &options, const char *name, unsigned nargs, const char *const *argnames, const char16_t *chars, size_t length, js::mutablehandlefunction fun); bool js::compilefunction(jscontext *cx, js::autoobjectvector &scopechain, const js::readonlycompileoptions &options, const char *name, unsigned nargs, const char *const *argnames, js::sourcebufferholder &srcbuf, js::mutablehandlefunction fun); bool js::compilefunction(jscontext *cx, js::autoobjectvector &scopechain, const js::readonlycompileoptions &options, const char *name, unsigned nargs, const char *const *argnames, const char *bytes, size_t le...
...And 10 more matches
JS_GetFunctionId
get a function's name as a jsstring.
... get a function's name as a jsstring.
... get a function's name as a jsstring.
...And 10 more matches
JS_HasProperty
determine whether a javascript object has a specified property.
... determine whether a javascript object has a specified property.
... determine whether a javascript object has a specified property.
...And 10 more matches
nsIToolkitProfileService
ersions will require the separate profile manager application.
...ning: this service is synchronous so it is recommended that you use os.file to find the profile directory via os.constants.path.profiledir.
... synchronous so it is recommended that you use os.file to find the profile directory via os.constants.path.profiledir.
...And 10 more matches
nsIURL
netwerk/base/public/nsiurl.idlscriptable this interface provides convenience methods that further break down the path portion of nsiuri.
... netwerk/base/public/nsiurl.idlscriptable this interface provides convenience methods that further break down the path portion of nsiuri.
... netwerk/base/public/nsiurl.idlscriptable this interface provides convenience methods that further break down the path portion of nsiuri.
...And 10 more matches
Setting HTTP request headers
tpchannel.
...f interest to us is setrequestheader.
... some sample code where we set an http header.
...And 10 more matches
Filelink Providers
filelink is a thunderbird feature that makes it easy for users to upload large attachments to web-based storage services such as hightail.
...est files.
...er menulist.
...And 10 more matches
Constraint validation API - Web APIs
shown to the user upon submitting the form, explaining why the value is not valid — when a message is set, the validity state is set to invalid.
...r upon submitting the form, explaining why the value is not valid — when a message is set, the validity state is set to invalid.
...— when a message is set, the validity state is set to invalid.
...And 10 more matches
IDBDatabase.transaction() - Web APIs
the transaction method of the idbdatabase interface immediately returns a transaction object (idbtransaction) containing the idbtransaction.objectstore method, which you can use to access your object store.
... the transaction method of the idbdatabase interface immediately returns a transaction object (idbtransaction) containing the idbtransaction.objectstore method, which you can use to access your object store.
...ect (idbtransaction) containing the idbtransaction.objectstore method, which you can use to access your object store.
...And 10 more matches
PasswordCredential - Web APIs
the interface of the credential management api provides information about a username/password pair.
... a urlsearchparams instance, or null.
... the objects will be added to the request body and sent to the remote endpoint with the credentials.
...And 10 more matches
ARIA Test Cases - Accessibility
pass expected behaviour met fail expected behaviour notmet 1.
...ss zoomtext fail- announced as 'alert' pass - - orca - - - - button basic button button with description dojo nightly build -- lots of other types of buttons there as well.
... - - - - button basic button button with description dojo nightly build -- lots of other types of buttons there as well.
...And 10 more matches
Border-radius generator - CSS: Cascading Style Sheets
px; padding: 0px 10px 0px 0px; text-align: right; text-transform: lowercase; } .ui-input-slider-left, .ui-input-slider-right { width: 16px; cursor: pointer; background: url("https://mdn.mozillademos.org/files/5679/arrows.png") center left no-repeat; } .ui-input-slider-right { background: url("https://mdn.mozillademos.org/files/5679/arrows.png") center right no-repeat; } .ui-input-slider-name { width: 90px; padding: 0 10px 0 0; text-align: right; text-transform: lowercase; } .ui-input-slider-btn-set { width: 25px; background-color: #2c9fc9; border-radius: 5px; color: #fff; font-weight: bold; line-height: 14px; text-align: center; } .ui-input-slider-btn-set:hover { background-color: #379b4a; cursor: pointer; } /* * ui component */ /* checkbox */ .ui-checkbox { text...
...start_value; setvalue(obj.topic, value); } return slider; } var inputslider = function(node) { var min = node.getattribute('data-min') | 0; var max = node.getattribute('data-max') | 0; var step = node.getattribute('data-step') | 0; var value = node.getattribute('data-value') | 0; var topic = node.getattribute('data-topic'); var unit = node.getattribute('data-unit'); var name = node.getattribute('data-info'); var sensivity = node.getattribute('data-sensivity') | 0; this.min = min; this.max = max > 0 ?
...attribute('data-sensivity') | 0; this.min = min; this.max = max > 0 ?
...And 10 more matches
animation - CSS: Cascading Style Sheets
Web › CSS › animation
the animation shorthand css property applies an animation between styles.
...imation-direction, animation-fill-mode, and animation-play-state.
... for this interactive example is stored in a github repository.
...And 10 more matches
counters() - CSS: Cascading Style Sheets
Web › CSS › counters
the counters() css function enables nested counters, returning a concatenated string representing the current values of the named counters, if there are any.
... the counters() css function enables nested counters, returning a concatenated string representing the current values of the named counters, if there are any.
... the counters() css function enables nested counters, returning a concatenated string representing the current values of the named counters, if there are any.
...And 10 more matches
font - CSS: Cascading Style Sheets
Web › CSS › font
p { font: bold italic large serif } /* use the same font as the status bar of the window */ p { font: status-bar } live sample html <p> change the radio buttons below to see the generated shorthand and it's effect.
...o buttons below to see the generated shorthand and it's effect.
... font-style<br/> <input type="radio" id="font-style-none" name="font_style" checked="" value="" onchange="setcss()"> <label for="font-style-none">none</label><br/> <input type="radio" id="font-style-normal" name="font_style" value="normal" onchange="setcss()"> <label for="font-style-normal">normal</label><br/> <input type="radio" id="font-style-italic" name="font_style" value="italic" onchange="setcss()"> <label for="font-style-italic">italic</label><br/> <input type="radio" id="font-style-oblique" name="font_style" value="oblique" onchange="setcss()"> <label for="font-style-oblique">oblique</label> </div> <div class="setpropcont"> font-variant<br> <input type="radio" id="font-variant-none" name="...
...And 10 more matches
<meta>: The Document-level Metadata element - HTML: Hypertext Markup Language
Web › HTML › Element › meta
http-equiv>: a <head> element.
...ole permitted dom interface htmlmetaelement the type of metadata provided by the meta element can be one of the following: if the name attribute is set, the meta element provides document-level metadata, applying to the whole page.
...tive, providing information equivalent to what can be given by a similarly-named http header.
...And 10 more matches
Unicode property escapes - JavaScript
.
...ter classes (such as \w which matches only latin letters, a to z) but the latter is better supported among browsers (as of january 2020).
...tter supported among browsers (as of january 2020).
...And 10 more matches
Function.prototype.call() - JavaScript
s function is almost identical to that of apply(), the fundamental difference is that call() accepts an argument list, while apply() accepts a single array of arguments.
...hat call() accepts an argument list, while apply() accepts a single array of arguments.
...ccepts a single array of arguments.
...And 10 more matches
Add to Home screen - Progressive web apps (PWAs)
rect fields filled in, linked from the html head.
...illed in, linked from the html head.
... app (and not just a web page), you should choose a value such as fullscreen (no ui is shown at all) or standalone (very similar, but system-level ui elements such as the status bar might be visible).
...And 10 more matches
element-available - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the element-available function determines if an element is available and returns true or false.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the element-available function determines if an element is available and returns true or false.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the element-available function determines if an element is available and returns true or false.
...And 10 more matches
XPath snippets - XPath
uld replace the call to new xpathevaluator() with the following fragment: // xpathevaluator is implemented on objects that implement document var xpe = anode.ownerdocument || anode; in that case the creation of the xpathnsresolver can be simplified as: var nsresolver = xpe.creatensresolver(xpe.documentelement); note however that creatensresolver should only be used if you are sure the namespace prefixes in the xpath expression match those in the document you want to query (and that no default namespace is being used (though see document.creatensresolver for a workaround)).
...emote xml file into a dom tree (as described in parsing and serializing xml), the first argument to evaluatexpath() should be req.responsexml.
...escribed in parsing and serializing xml), the first argument to evaluatexpath() should be req.responsexml.
...And 10 more matches
An Overview - XSLT: Extensible Stylesheet Language Transformations
xml rules, including well-formedness.
...tion is that one xml document is used to transform another xml document.
...slt stylesheet is marked as such by the inclusion of a standard xslt heading.
...And 10 more matches
Understanding WebAssembly text format - WebAssembly
n.
...(local f64) local.get 0 local.get 1 local.get 2) the instruction local.get 0 would get the i32 parameter, local.get 1 would get the f32 parameter, and local.get 2 would get the f64 local.
...st of the available opcodes, consult the webassembly.org semantics reference.
...And 10 more matches
lang/functional - Archive of obsolete content
returns function : the partial function.
...partial function.
...ber of functions as arguments and composes them from right to left.
...And 9 more matches
system/xul-app - Archive of obsolete content
experimental information about the application on which your add-on is running.
... experimental information about the application on which your add-on is running.
... experimental information about the application on which your add-on is running.
...And 9 more matches
Handling Preferences - Archive of obsolete content
n dom window in non-chrome code.
... are stored.
...ing you to change them as you please.
...And 9 more matches
Creating a status bar extension - Archive of obsolete content
the host application important information about the extension.
...t information about the extension.
...999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <description about="urn:mozilla:install-manifest"> <em:id>status-bar-sample-1@example.com</em:id> <em:version>1.0</em:version> <em:type>2</em:type> <!-- front end metadata --> <em:name>status bar sample 1</em:name> <em:description>sample static status bar panel</em:description> <em:creator>my name</em:creator> <em:homepageurl>http://developer.mozilla.org/en/docs/creating_a_status_bar_extension</em:homepageurl> <!-- describe the firefox versions we support --> <em:targetapplication> <description> <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <em:minversion>1.5</em:minversion> <em:maxversion>2.0.0.*</em:maxversion> </description> </em:targetappl...
...And 9 more matches
Venkman Introduction - Archive of obsolete content
laces.
...eft portion of the window.
...esenting the file extension.
...And 9 more matches
addFile - Archive of obsolete content
addfile unpacks a single subcomponent into a temporary location.
...e subcomponent into a temporary location.
...registryname, installversion version, string xpisourcepath, object localdirspec, string relativelocalpath, boolean forceupdate); public int addfile ( string registryname, string version, string xpisourcepath, object localdirspec, string relativelocalpath, boolean forceupdate); public int addfile ( string xpisourcepath); public int addfile ( string registryname, string xpisourcepath, object localdirspec, string relativelocalpath); public int addfile ( string registryname, string version, string xpisourcepath, object localdirspec, string relativelocalpath); parameters the addfile method has the following parameters: registryname the pathname in the client version registry about the file.
...And 9 more matches
toolbar - Archive of obsolete content
ernal toolbar with a toolbox for the purpose of managing your toolbars by setting the toolboxid property on the toolbar.
... with a toolbox for the purpose of managing your toolbars by setting the toolboxid property on the toolbar.
...n the toolbar.
...And 9 more matches
Adobe Flash - Archive of obsolete content
s the version of flash, and whether it is scriptable in netscape gecko: can we have javascript in a wiki page?
..., to send the text to the flash movie below: the example is missing.
...etscape gecko browsers: use dom methods to get a handle to the html element that spawns the plugin.
...And 9 more matches
Introduction to SSL - Archive of obsolete content
entication process won't go any further.
...ca to sign the server certificate, the client won't authenticate the server's identity.
...t authenticate the server's identity.
...And 9 more matches
Writing JavaScript for XHTML - Archive of obsolete content
is: <script type="text/javascript"><!--//--><![cdata[//><!-- ...
... <!-- (for styles, it is different) --> <style type="text/css"><!--/*--><![cdata[/*><!--*/ ...
...ent) --> <style type="text/css"><!--/*--><![cdata[/*><!--*/ ...
...And 9 more matches
Hoisting - MDN Web Docs Glossary: Definitions of Web-related terms
pens.
... instead, the variable and function declarations are put into memory during the compile phase, but stay exactly where you typed them in your code.
...ion declarations are put into memory during the compile phase, but stay exactly where you typed them in your code.
...And 9 more matches
CSS FAQ - Learn web development
Learn › CSS › Howto › CSS FAQ
why doesn't my css, which is valid, render at all?
... path to css file wrong.
... css stylesheet must be served with a text/css mime type.
...And 9 more matches
Functions — reusable blocks of code - Learn web development
ble related resources across the web.
...eded this function because the browser's built-in math.random() function only generates a random decimal number between 0 and 1.
...he name of the function in the code somewhere, followed by parentheses.
...And 9 more matches
Looping code - Learn web development
t immediately exits the switch statement and moves onto the code after it.
...t the loop and make the browser move on to any code that follows it.
...me: </label> <input id="search" type="text"> <button>search</button> <p></p> now on to the javascript: const contacts = ['chris:2232322', 'sarah:3453456', 'bill:7654322', 'mary:9998769', 'dianne:9384975']; const para = document.queryselector('p'); const input = document.queryselector('input'); const btn = document.queryselector('button'); btn.addeventlistener('click', function() { let searchname = input.value.tolowercase(); input.value = ''; input.focus(); for (let i = 0; i < contacts.length; i++) { let splitcontact = contacts[i].split(':'); if (splitcontact[0].tolowercase() === searchname) { para.textcontent = splitcontact[0] + '\'s number is ' + splitcontact[1] + '.'; break; } else { para.textcontent = 'contact not found.'; } } }); hidden cod...
...And 9 more matches
Website security - Learn web development
the server, or destroy/modify the data to make it unusable.
...r, or destroy/modify the data to make it unusable.
...ased sql injection, sql injection based on boolean errors, and time-based sql injection.
...And 9 more matches
Profiling with the Firefox Profiler
e calls and js).
...nd the tree view (see below) reflects the selected element.
...ows the samples organized by 'running time' which will show the data by wall clock time.
...And 9 more matches
TraceMalloc
o older versions of the codebase that still contain it.
...ree calls (this currently covers all operator new and delete calls in mozilla, too).
...e-malloc.
...And 9 more matches
Utilities for nss samples
ith server environments * where prompting the user for a password or requiring it * to be entered in the commnd line is not a feasible option.
...ere prompting the user for a password or requiring it * to be entered in the commnd line is not a feasible option.
...ord(pk11slotinfo *slot, int retry, void *pwdata); /* * generaterandom */ extern secstatus generaterandom(unsigned char *rbuf, int rsize); /* * filetoitem */ extern secstatus filetoitem(secitem *dst, prfiledesc *src); /* * seedfromnoisefile */ extern secstatus seedfromnoisefile(const char *noisefilename); /* * filesize */ extern long filesize(const char* filename); /* * readderfromfile */ extern secstatus readderfromfile(secitem *der, const char *infilename, prbool ascii); #endif /* _util_h */ util.c /* this source code form is subject to the terms of the mozilla public * license, v.
...And 9 more matches
JS_DefineFunction
create a native function and assign it as a property to a specified js object.
... create a native function and assign it as a property to a specified js object.
... create a native function and assign it as a property to a specified js object.
...And 9 more matches
JS_DefinePropertyWithTinyId
obsolete since jsapi 30this feature is obsolete.
...aged since it could be removed at any time.
... could be removed at any time.
...And 9 more matches
JS_DeleteProperty
removes a specified property from an object.
... removes a specified property from an object.
...; // added in spidermonkey 1.8.1 // added in spidermonkey 45 bool js_deleteproperty(jscontext *cx, js::handleobject obj, const char *name, js::objectopresult &result); bool js_deletepropertybyid(jscontext *cx, js::handleobject obj, js::handleid id, js::objectopresult &result); bool js_deleteucproperty(jscontext *cx, js::handleobject obj, const char16_t *name, size_t namelen, js::objectopresult &result); name type description cx jscontext * pointer to a js context from which to derive runtime information.
...And 9 more matches
JS_GetProperty
find a specified property and retrieve its value.
... find a specified property and retrieve its value.
... find a specified property and retrieve its value.
...And 9 more matches
JS_NewFunction
create a new javascript function that is implemented in c/c++ as a jsnative.
...ed nargs, unsigned flags, const char *name); // obsolete since jsapi 44 jsfunction * js_newfunctionbyid(jscontext *cx, jsnative call, unsigned nargs, unsigned flags, js::handle<jsid> id); // obsolete since jsapi 39 jsfunction * js_newfunction(jscontext *cx, jsnative call, unsigned nargs, unsigned flags, js::handle<jsobject*> parent, const char *name); jsfunction * js_newfunctionbyid(jscontext *cx, jsnative call, unsigned nargs, unsigned flags, js::handle<jsobject*> parent, js::handle<jsid> id); // added in spidermonkey 17 name type description cx jscontext * the context in which to create the new function.
...entation of this function.
...And 9 more matches
SpiderMonkey 1.8.7
.
...r in spidermonkey 1.8.5.
...irely.
...And 9 more matches
Redis Tips
rifying, but it's not actually such a big deal in practice.
...edis1> 1) "myqueue" 2) "42" (26.87s) that rules!
...s!
...And 9 more matches
Creating a Python XPCOM component
will need to tell python where it can find the pyxpcom library.
...ecessary when your components are loaded by mozilla as the python loader modifies sys.path.
...la/ nsipysimple.idl on windows you must point to the idl directory as part of your mozilla build.
...And 9 more matches
nsIAlertsService
s a service: var alertsservice = components.classes["@mozilla.org/alerts-service;1"] .getservice(components.interfaces.nsialertsservice); method overview void showalertnotification(in astring imageurl, in astring title, in astring text, [optional] in boolean textclickable, [optional] in astring cookie, [optional] in nsiobserver alertlistener, [optional] in astring name, [optional] in astring dir, [optional] in astring lang, [optional] in astring data, [optional] in nsiprincipal principal,[optional] in boolean inprivatebrowsing); void closealert([optional] in astring name, [optional] in nsiprincipal principal); methods showalertnotification() displays a notification window.
...fication() displays a notification window.
...alert; may be null if you don't care about callbacks.
...And 9 more matches
nsIBoxObject
layout/xul/base/public/nsiboxobject.idlscriptable please add a summary to this article.
...table please add a summary to this article.
...: nsisupports last changed in gecko 1.9 (firefox 3) to get an instance, use the boxobject property.
...And 9 more matches
nsIEnvironment
xpcom/threads/nsienvironment.idlscriptable scriptable access to the current process environment.
...access to the current process environment.
... inherits from: nsisupports last changed in gecko 1.7 implemented by: @mozilla.org/process/environment;1 as a service: var env = components.classes["@mozilla.org/process/environment;1"].
...And 9 more matches
nsISecurityCheckedComponent
alues of '"allaccess" or "noaccess" unconditionally allow or deny access to the operation.
...llaccess" capability, and no code has the "noaccess" capability.
...is interface is used in mozilla by xpconnect and a handful of things that need special handing (xul controllers, the ui for the <video> tag, etc.).
...And 9 more matches
nsISyncMessageSender
ent-process message manager.
... may be temporarily interrupted to process an urgent incoming message (such as a cpow request).
...ring messagename, [optional] in jsval obj, [optional] in jsval objects, [optional] in nsiprincipal principal); sendsyncmessage() like sendasyncmessage(), except blocks the sender until all listeners of the message have been invoked.
...And 9 more matches
Working with windows in chrome code
in a window or an overlay to open a new window, we usually use a window.open or window.opendialog dom call, like this: var win = window.open("chrome://myextension/content/about.xul", "aboutmyextension", "chrome,centerscreen"); the first parameter to window.open is the uri of the xul file that describes the window and its contents.
...ow or an overlay to open a new window, we usually use a window.open or window.opendialog dom call, like this: var win = window.open("chrome://myextension/content/about.xul", "aboutmyextension", "chrome,centerscreen"); the first parameter to window.open is the uri of the xul file that describes the window and its contents.
...ves only) for those times when you don't have access to a window object (such as a javascript xpcom object), you can use nsiwindowwatcher.openwindow to open a xul window.
...And 9 more matches
Web Console remoting - Firefox Developer Tools
setpreferences packet: { "to": "conn0.console9", "type": "setpreferences", "preferences": { "networkmonitor.saverequestandresponsebodies": false } } reply: { "updated": [ "networkmonitor.saverequestandresponsebodies" ], "from": "conn0.console10" } for convenience you can use webconsoleclient.setpreferences(prefs, onresponse).
...sole34", "type": "getpreferences", "preferences": [ "networkmonitor.saverequestandresponsebodies" ] } reply packet: { "preferences": { "networkmonitor.saverequestandresponsebodies": false }, "from": "conn0.console34" } you can also use the webconsoleclient.getpreferences(prefs, onresponse).
... attached to the global console actor, it does not make sense for tab console actors.
...And 9 more matches
CacheStorage - Web APIs
the cachestorage interface represents the storage for cache objects.
... named caches that can be accessed by a serviceworker or other type of worker or window scope (you’re not limited to only using it with service workers, even though the service workers spec defines it).
... using https, although this definition will likely become more complex in the future.) when testing, you can get around this by checking the "enable service workers over http (when toolbox is open)" option in the firefox devtools options/gear menu.
...And 9 more matches
Using FormData Objects - Web APIs
eyed data.
...rmdata); note: the fields "userfile" and "webmasterfile" both contain a file.
...note: the fields "userfile" and "webmasterfile" both contain a file.
...And 9 more matches
PaymentResponse.onpayerdetailchange - Web APIs
en the user makes changes to their personal information while editing a payment request form.
... onpayerdetailchange is used to set up a listener for the payerdetailchange event in order to validate the information entered by the user, requesting that any mistakes be corrected // options for paymentrequest(), indicating that shipping address, // payer email address, name, and phone number all be collected.
...ptions for paymentrequest(), indicating that shipping address, // payer email address, name, and phone number all be collected.
...And 9 more matches
PaymentResponse: payerdetailchange event - Web APIs
paymentrequestupdateevent event handler property onpayerdetailchange examples in the example below, onpayerdetailchange is used to set up a listener for the payerdetailchange event in order to validate the information entered by the user, requesting that any mistakes be corrected // options for paymentrequest(), indicating that shipping address, // payer email address, name, and phone number all be collected.
... onpayerdetailchange is used to set up a listener for the payerdetailchange event in order to validate the information entered by the user, requesting that any mistakes be corrected // options for paymentrequest(), indicating that shipping address, // payer email address, name, and phone number all be collected.
...ptions for paymentrequest(), indicating that shipping address, // payer email address, name, and phone number all be collected.
...And 9 more matches
Using the Web Speech API - Web APIs
pec.
...ent to populate the <select> element with the different voice options the device has available, we've written a populatevoicelist() function.
...ent voice options the device has available, we've written a populatevoicelist() function.
...And 9 more matches
grid-template - CSS: Cascading Style Sheets
ve-examples and send us a pull request.
...us a pull request.
... constituent properties this property is a shorthand for the following css properties: grid-template-areas grid-template-columns grid-template-rows syntax /* keyword value */ grid-template: none; /* grid-template-rows / grid-template-columns values */ grid-template: 100px 1fr / 50px 1fr; grid-template: auto 1fr / auto 1fr auto; grid-template: [linename] 100px / [columnname1] 30% [columnname2] 70%; grid-template: fit-content(100px) / fit-content(40%); /* grid-template-areas grid-template-rows / grid-template-column values */ grid-template: "a a a" "b b b"; grid-template: "a a a" 20% "b b b" auto; grid-template: [header-top] "a a a" [header-bottom] [main-top] "b b b" 1fr [main-bottom] / auto 1fr auto; /* ...
...And 9 more matches
<button>: The Button element - HTML: Hypertext Markup Language
Web › HTML › Element › button
button is a submit button, this boolean attribute specifies that the form is not to be validated when it is submitted.
...ttribute is specified, it overrides the novalidate attribute of the button's form owner.
...is is the name of, or keyword for, a browsing context (a tab, window, or <iframe>).
...And 9 more matches
<tr>: The Table Row element - HTML: Hypertext Markup Language
Web › HTML › Element › tr
e bottom edge of those cells.
...ic styling to create lines around the components of the table for something resembling clarity.
...r column that shows the date the user's membership ended, along with a super-heading above the "joined" and "canceled" dates called "membership dates".
...And 9 more matches
Cross-Origin Resource Sharing (CORS) - HTTP
Web › HTTP › CORS
mple requests” in this article, though the fetch spec (which defines cors) doesn’t use that term.
...ests are preflighted like this since they may have implications to user data.
...eflighted like this since they may have implications to user data.
...And 9 more matches
constructor - JavaScript
hub repository.
...f you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
... like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...And 9 more matches
url - Archive of obsolete content
ion.
... file path.
...nsole.log(urls.gettld("https://developer.mozilla.org/")); // "org" parameters url : string the url, as a string.
...And 8 more matches
LookupPrefix - Archive of obsolete content
here is an implementation of lookupprefix which should work cross-browser.
... here is an implementation of lookupprefix which should work cross-browser.
...rk cross-browser.
...And 8 more matches
Using XML Data Islands in Mozilla - Archive of obsolete content
fy an executable script type.
...cript type.
... sure that the xml content you are embedding does not have an end tag that case-insensitively matches "</script>".
...And 8 more matches
Dehydra Object Reference - Archive of obsolete content
y sets boolean flags when they are true.
...g, value: string or number, if applicable } see an example on enforcing final classes.
...cable } see an example on enforcing final classes.
...And 8 more matches
patch - Archive of obsolete content
summary updates an existing component.
... summary updates an existing component.
... summary updates an existing component.
...And 8 more matches
textbox (Toolkit autocomplete) - Archive of obsolete content
ey.
... autocompletepopup type: id the id of a popup element used to hold autocomplete results for the element.
... the id of a popup element used to hold autocomplete results for the element.
...And 8 more matches
Theme changes in Firefox 2 - Archive of obsolete content
serve as a how-to guide for updating themes.
... global/tab-middle.png new file; the middle of a tab.
...s for the extensions view.
...And 8 more matches
Object.prototype.watch() - Archive of obsolete content
and removed in firefox 58+.
...ies instead.
...to ' + newval); return newval; }); o.p = 2; o.p = 3; delete o.p; o.p = 4; o.unwatch('p'); o.p = 5; this script displays the following: o.p changed from 1 to 2 o.p changed from 2 to 3 o.p changed from undefined to 4 using watch() to validate an object's properties you can use watch to test any assignment to an object's properties.
...And 8 more matches
XForms Custom Controls - Archive of obsolete content
; } custom data types if you define a new schema data type or you use a built-in data type and find the current xforms control for this type to be insufficient, then you should write a new custom control.
...e and find the current xforms control for this type to be insufficient, then you should write a new custom control.
...eger is inherited from the xsd:decimal data type.
...And 8 more matches
Dealing with files - Learn web development
oose a place to store your website projects.
... no spaces.
...computers, particularly web servers, are case-sensitive.
...And 8 more matches
Creating hyperlinks - Learn web development
an index.html file, respectively.
... contact a specific staff member?
...d details on our <a href="contacts.html">contacts page</a>.</p> moving down into subdirectories: if you wanted to include a hyperlink inside index.html (the top level index.html) pointing to projects/index.html, you would need to go down into the projects directory before indicating the file you want to link to.
...And 8 more matches
Server-side web frameworks - Learn web development
e.
...erent mechanisms for the mapping.
...eld definitions may also specify their maximum size, default values, selection list options, help text for documentation, label text for forms etc.
...And 8 more matches
Working with Svelte stores - Learn web development
s, so you can organize them in any way you please.
...pacity: 95%; } div p { color: #fff; } div svg { height: 1.6rem; fill: currentcolor; width: 1.4rem; margin-right: 0.5rem; } </style> let's walk through this piece of code in detail.
...aving us from typing boiler plate, but also generating less error-prone code.
...And 8 more matches
Package management basics - Learn web development
can mean a faster user experience.
... configuration details in case we want to recreate this environment later on, or even publish the package to the npm registry (although this is somewhat beyond the scope of this article).
...ration details in case we want to recreate this environment later on, or even publish the package to the npm registry (although this is somewhat beyond the scope of this article).
...And 8 more matches
Pork Tool Development
files and locations most tools are in the "oink" directory.
... files and locations most tools are in the "oink" directory.
... files and locations most tools are in the "oink" directory.
...And 8 more matches
Rhino JavaScript compiler
t another time, providing a convenient method for transferring javascript, and for avoiding translation cost.
...ipt, and for avoiding translation cost.
...mmand line java org.mozilla.javascript.tools.jsc.main [options] file1.js [file2.js...] where options are: -extends java-class-name specifies that a java class extending the java class java-class-name should be generated from the incoming javascript source file.
...And 8 more matches
JS_AliasProperty
obsolete since jsapi 8this feature is obsolete.
... obsolete since jsapi 8this feature is obsolete.
...bool js_aliasproperty(jscontext *cx, jsobject *obj, const char *name, const char *alias); name type description cx jscontext * pointer to a js context from which to derive runtime information.
...And 8 more matches
Running Automated JavaScript Tests
are marked as randomly failing; random failures are usually just noise when being run for day-to-day developer testing.
...just noise when being run for day-to-day developer testing.
...ust one directory: jstests.py path_to_js_shell test_path_substring [ test_path_substring_2 ...
...And 8 more matches
Setting up the Gecko SDK
rectories the bin directory contains static libraries, dynamic libraries, and in some cases tools that may be useful in development.
...braries, dynamic libraries, and in some cases tools that may be useful in development.
...s file names for the executables.
...And 8 more matches
How to build a binary XPCOM component using Visual Studio
onent.
...our_idl_file} the generated h file actually has a skeleton implementation (commented out).
...hing_contractid "@starkravingfinkle.org/specialthing;1" #define specialthing_classname "specialthing" #define specialthing_cid { 0x245626, 0x5cc1, 0x11db, { 0x96, 0x73, 0x0, 0xe0, 0x81, 0x61, 0x16, 0x5f } } class cspecialthing : public ispecialthing { public: ns_decl_isupports ns_decl_ispecialthing cspecialthing(); private: ~cspecialthing(); protected: /* additional members */ nsstring mname; }; #endif cpp file: #include "comp-impl.h" ns_impl_isupports1(cspecialthing, ispecialthing) cspecialthing::cspecialthing() { /* member initializers and constructor code */ mname.assign(l"default name"); } cspecialthing::~cspecialthing() { /* destructor code */ } /* attribute astring name; */ ns_imethodimp cspecialthing::getname(nsastring & aname) { aname.assign(mname); return ns_ok; ...
...And 8 more matches
nsIBrowserSearchService
need to write code that is executed during startup and makes use of nsibrowsersearchservice, you should make sure that this code is executed from the callback to init().
...oid addenginewithdetails(in astring name, in astring iconurl, in astring alias, in astring description, in astring method, in astring url); void getdefaultengines([optional] out unsigned long enginecount, [retval, array, size_is(enginecount)] out nsisearchengine engines); nsisearchengine getenginebyalias(in astring alias); nsisearchengine getenginebyname(in astring aenginename); void getengines([optional] out unsigned long enginecount, [retval, array, size_is(enginecount)] out nsisearchengine engines); void getvisibleengines([optional] out unsigned long enginecount, [retval, array, size_is(enginecount)] out nsisearchengine engines); void init([optional] in nsibrowsersearchinitobserver observer); ...
... complete, or if the addition fails.
...And 8 more matches
nsIComponentRegistrar
ifile aspec); void autounregister(in nsifile aspec); string cidtocontractid(in nscidref aclass); nscidptr contractidtocid(in string acontractid); nsisimpleenumerator enumeratecids(); nsisimpleenumerator enumeratecontractids(); boolean iscidregistered(in nscidref aclass); boolean iscontractidregistered(in string acontractid); void registerfactory(in nscidref aclass, in string aclassname, in string acontractid, in nsifactory afactory); void registerfactorylocation(in nscidref aclass, in string aclassname, in string acontractid, in nsifile afile, in string aloaderstr, in string atype); void unregisterfactory(in nscidref aclass, in nsifactory afactory); void unregisterfactorylocation(in nscidref aclass, in nsifile afile); methods autoregister() register a component (.manif...
...the existence of a class implementing a specific contractid.
...string acontractid ); parameters acontractid the contractid to be queried.
...And 8 more matches
nsIDOMWindowUtils
boolean aflushlayout); void entermodalstate(); nsidomelement findelementwithviewid(in nsviewid aid); void focus(in nsidomelement aelement); void forceupdatenativemenuat(in astring indexstring); void garbagecollect([optional] in nsicyclecollectorlistener alistener); short getcursortype(); astring getdocumentmetadata(in astring aname); nsidomwindow getouterwindowwithid(in unsigned long long aouterwindowid); long getpccountscriptcount(); astring getpccountscriptsummary(in long ascript); astring getpccountscriptcontents(in long ascript); void getscrollxy(in boolean aflushlayout, out long ascrollx, out long ascrolly); astring getvisiteddependentcomputedstyle(in nsi...
...aouterwindowid); long getpccountscriptcount(); astring getpccountscriptsummary(in long ascript); astring getpccountscriptcontents(in long ascript); void getscrollxy(in boolean aflushlayout, out long ascrollx, out long ascrolly); astring getvisiteddependentcomputedstyle(in nsidomelement aelement, in astring apseudoelement, in astring apropertyname); boolean isinmodalstate(); void leavemodalstate(); void loadsheet(in nsiuri sheeturi, in unsigned long type); nsidomnodelist nodesfromrect(in float ax, in float ay, in float atopsize, in float arightsize, in float abottomsize, in float aleftsize, in boolean aignorerootscrollframe, in boolean aflushlayout); void processupdates(); obsolete since g...
...t(in nsiuri sheeturi, in unsigned long type); void resumetimeouts(); void sendcompositionevent(in astring atype); obsolete since gecko 9 void sendcompositionevent(in astring atype, in astring adata, in astring alocale); obsolete since gecko 38.0 void sendcontentcommandevent(in astring atype, [optional] in nsitransferable atransferable); void getclassname(in object aobj); boolean sendkeyevent(in astring atype, in long akeycode, in long acharcode, in long amodifiers, [optional] in boolean apreventdefault); obsolete since gecko 15.0 boolean sendkeyevent(in astring atype, in long akeycode, in long acharcode, in long amodifiers, [optional] in unsigned long aadditionalflags); deprecated since gecko 38.0 void sendmouseevent...
...And 8 more matches
nsIPasswordManager
n astring auser, in astring apassword); void removeuser(in autf8string ahost, in astring auser); void addreject(in autf8string ahost); void removereject(in autf8string ahost); attributes attribute type description enumerator nsisimpleenumerator readonly: an enumeration of the stored usernames and passwords as nsipassword objects.
...assword objects.
...enumerator readonly: an enumeration of the rejected sites as nsipassword objects.
...And 8 more matches
nsIPluginHost
dom/plugins/base/nsipluginhost.idlscriptable please add a summary to this article.
...d destroy(); native code only!
...string aurl, out string aresult); native code only!
...And 8 more matches
nsIPrincipal
void disablecapability(in string capability, inout voidptr annotation); native code only!
...ription certificate nsisupports the certificate associated with this principal, if any.
... nsisupports the certificate associated with this principal, if any.
...And 8 more matches
nsIPrinterEnumerator
rticle.
...rinter, in nsiprintsettings aprintsettings); void enumerateprinters(out pruint32 acount,[retval, array, size_is(acount)] out wstring aresult); obsolete since gecko 1.9 void initprintsettingsfromprinter(in wstring aprintername, in nsiprintsettings aprintsettings); attributes attribute type description defaultprintername wstring the name of the system default printer.
...erateprinters(out pruint32 acount,[retval, array, size_is(acount)] out wstring aresult); obsolete since gecko 1.9 void initprintsettingsfromprinter(in wstring aprintername, in nsiprintsettings aprintsettings); attributes attribute type description defaultprintername wstring the name of the system default printer.
...And 8 more matches
nsIScriptableIO
ct.
...ce to a file or directory on disk.
...ethod simply creates the file reference which may then be passed to the newinputstream() or newoutputstream() method to open the file for reading or writing.
...And 8 more matches
nsIXmlRpcClient
warning: this interface was removed from firefox 3 and is no longer available.
...om firefox 3 and is no longer available.
...thod overview void init(in string serverurl); void setauthentication(in string username, in string password); void clearauthentication(in string username, in string password); void setencoding(in string encoding); void setencoding(in unsigned long type, out nsiidref uuid, out nsqiresult result); void asynccall (in nsixmlrpcclientlistener listener, in nsisupports ctxt, in string methodname, in nsisupports arguments, in pruint32 count); attributes attribute type description serverurl readonly nsiurl the url of the xml-rpc server inprogress readonly boolean whether or not a call is in progress fault readonly nsixmlrpcfault the most recent xml-rpc fault from returned from this server.
...And 8 more matches
Mozilla
ng that flag set are searching for nsiapplicationcache object prior inspecting normal http cache.
...y nsinavhistoryresult objects to the user.
....
...And 8 more matches
AudioWorkletGlobalScope.registerProcessor - Web APIs
the registerprocessor method of the audioworkletglobalscope interface registers a class constructor derived from audioworkletprocessor interface under a specified name.
... the registerprocessor method of the audioworkletglobalscope interface registers a class constructor derived from audioworkletprocessor interface under a specified name.
... the registerprocessor method of the audioworkletglobalscope interface registers a class constructor derived from audioworkletprocessor interface under a specified name.
...And 8 more matches
Document.createElement() - Web APIs
in an html document, the document.createelement() method creates the html element specified by tagname, or an htmlunknownelement if tagname isn't recognized.
... in an html document, the document.createelement() method creates the html element specified by tagname, or an htmlunknownelement if tagname isn't recognized.
... in an html document, the document.createelement() method creates the html element specified by tagname, or an htmlunknownelement if tagname isn't recognized.
...And 8 more matches
Element.getAttributeNodeNS() - Web APIs
returns the attr node for the attribute with the given namespace and name.
... returns the attr node for the attribute with the given namespace and name.
... returns the attr node for the attribute with the given namespace and name.
...And 8 more matches
Element.toggleAttribute() - Web APIs
the toggleattribute() method of the element interface toggles a boolean attribute (removing it if it is present and adding it if it is not present) on the given element.
... the toggleattribute() method of the element interface toggles a boolean attribute (removing it if it is present and adding it if it is not present) on the given element.
... the toggleattribute() method of the element interface toggles a boolean attribute (removing it if it is present and adding it if it is not present) on the given element.
...And 8 more matches
HTMLCollection - Web APIs
on.length read only returns the number of items in the collection.
....
... returns the specific node at the given zero-based index into the list.
...And 8 more matches
HTMLInputElement - Web APIs
er uses to submit the form.
... this overrides the novalidate attribute of the parent form.
...he parent form.
...And 8 more matches
HTMLOrForeignElement.dataset - Web APIs
the dom.
...with one entry for each custom data attribute.
...ta attributes.
...And 8 more matches
The HTML DOM API - Web APIs
e websockets_api.
...et server-sent events interfaces the eventsource interface represents the source which sent or is sending server-sent events.
...ored in order to update the state of a form's "submit" button based on whether or not a given field currently has a value.
...And 8 more matches
PluginArray - Web APIs
the pluginarray interface is used to store a list of plugin objects describing the available plugins; it's returned by the window.navigator.plugins property.
... the pluginarray interface is used to store a list of plugin objects describing the available plugins; it's returned by the window.navigator.plugins property.
... individual items using bracket notation (plugins[2]), as well as via item(index) and nameditem("name") methods.
...And 8 more matches
StorageManager.persist() - Web APIs
dn/browser-compat-data and send us a pull request.
...at-data and send us a pull request.
...request.
...And 8 more matches
SubtleCrypto.unwrapKey() - Web APIs
et.
...ning the type of key to unwrap and providing extra algorithm-specific parameters as required.
...g extra algorithm-specific parameters as required.
...And 8 more matches
WebGLRenderingContext.getUniformLocation() - Web APIs
ed either as a list of values or as a float32array or int32array.
... uniform's value to the specified matrix, possibly with transposition.
... matrix, possibly with transposition.
...And 8 more matches
Accessibility documentation index - Accessibility
ogies.
... the following pages provide various techniques for improving the accessibility of web forms: 9 alerts aria, accessibility, forms, web you have a form — a contact form, for example — that you want to put some accessible error checking into.
...owing pages provide various techniques for improving the accessibility of web forms: 9 alerts aria, accessibility, forms, web you have a form — a contact form, for example — that you want to put some accessible error checking into.
...And 8 more matches
Grid template areas - CSS: Cascading Style Sheets
previous guide we looked at grid lines, and how to position items against those lines.
...od of grid layout!
...ue all four of the lines used to position a grid area.
...And 8 more matches
max-height - CSS: Cascading Style Sheets
g.ie no support noopera full support 44safari full support 6.1prefixed full support 6.1prefixed prefixed implemented with the vendor prefix: -webkit- full support 2alternate name alternate name uses the non-standard name: intrinsicwebview android full support 46 full support 46 full support ≤37prefixed prefixed implemented with the vendor prefix: -webkit-chrome android full support 46 ...
...finition of fit-content is simpler than in css3 sizing.opera android full support 43safari ios full support 7prefixed full support 7prefixed prefixed implemented with the vendor prefix: -webkit- full support 1alternate name alternate name uses the non-standard name: intrinsicsamsung internet android full support 5.0 full support 5.0 full support 1.5prefixed prefixed implemented with the vendor prefix: -webkit-max-contentchrome full support ...
...rt 11 full support 11 full support 9prefixed prefixed implemented with the vendor prefix: -webkit-samsung internet android full support 5.0stretch experimentalchrome full support 28alternate name full support 28alternate name alternate name uses the non-standard name: -webkit-fill-availableedge full support 79alternate name full support 79alternate name alternate name uses the non-standard name: -webkit-fill-availablefirefox no support ...
...And 8 more matches
<input type="datetime-local"> - HTML: Hypertext Markup Language
he date entered into the input.
...datetime-local">, then offer advice on mitigating the browser support issue later on (see handling browser support).
... setting maximum and minimum dates and times you can use the min and max attributes to restrict the dates/times that can be chosen by the user.
...And 8 more matches
<input type="tel"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › tel
ial keyboard for entering phone numbers.
...ing an example of a valid value, which is displayed inside the edit box when the element's value is "".
...the physical length of the input box, but also the minimum and maximum lengths allowed for the input text itself.
...And 8 more matches
Control flow and error handling - JavaScript
throw 'error2'; // string type throw 42; // number type throw true; // boolean type throw {tostring: function() { return "i'm an object!"; } }; note: you can specify an object when you throw an exception.
... when you throw an exception.
...rom within the try block) throws an exception, control immediately shifts to the catch block.
...And 8 more matches
Error.prototype.toString() - JavaScript
return value a string representing the specified error object.
... a string representing the specified error object.
...ng representing the specified error object.
...And 8 more matches
Error - JavaScript
d type.
...error creates an instance representing an error that occurs when encodeuri() or decodeuri() are passed invalid parameters.
...ace() a non-standard v8 function that creates the stack property on an error instance.
...And 8 more matches
Object.prototype.hasOwnProperty() - JavaScript
ndicating whether the object has the specified property as its own property (as opposed to inheriting it).
...dex exists.
...erties of an object the following example shows how to iterate over the properties of an object without executing on inherited properties.
...And 8 more matches
String.prototype.replace() - JavaScript
the matched substring.
...string.
...erts the portion of the string that follows the matched substring.
...And 8 more matches
Web video codec guide - Web media technologies
for your project's video.
...common codecs the following video codecs are those which are most commonly used on the web.
...bps.
...And 8 more matches
Progressive web app structure - Progressive web apps (PWAs)
structure is quite simple: it consists of a single html file (index.html) with basic css styling (style.css), and a few images, scripts, and fonts.
...ke this: the html from the html point of view, the app shell is everything outside the content section: <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>js13kgames a-frame entries</title> <meta name="description" content="a list of a-frame entries submitted to the js13kgames 2017 competition, used as an example for the mdn articles about progressive web apps."> <meta name="author" content="end3r"> <meta name="theme-color" content="#b12a34"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta property="og:image" content="icons/icon-512.png"> <link rel="shortcut icon" href="favicon.ico"> <link rel="stylesheet" href="style.css"> <link rel="manifest" href="js13kpwa.webmanifest"> <script src="data/games.js" defer></script> <script src="ap...
...le styling of the html elements.
...And 8 more matches
<xsl:element> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › element
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:element> element creates an element in the output document.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:element> element creates an element in the output document.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:element> element creates an element in the output document.
...And 8 more matches
<xsl:stylesheet> - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:stylesheet> element (or the equivalent <xsl:transform> element) is the outermost element of a stylesheet.
...ions, xpath axes the <xsl:stylesheet> element (or the equivalent <xsl:transform> element) is the outermost element of a stylesheet.
...ment (or the equivalent <xsl:transform> element) is the outermost element of a stylesheet.
...And 8 more matches
system - Archive of obsolete content
v.path); // operating system console.log("platform = " + system.platform); // processor architecture console.log("architecture = " + system.architecture); // compiler used to build host application console.log("compiler = " + system.compiler); // host application build identifier console.log("build = " + system.build); // host application uuid console.log("id = " + system.id); // host application name console.log("name = " + system.name); // host application version console.log("version = " + system.version); // host application vendor console.log("vendor = " + system.vendor); // host application profile directory console.log("profile directory = " + system.pathfor("profd")); quit the host application to quit the host application, use the exit() function.
...authors.
.../desktop on linux // or c:\documents and settings\username\desktop on windows).
...And 7 more matches
Dialogs and Prompts - Archive of obsolete content
ept — ok button.
......
...ure — more info button.
...And 7 more matches
Windows - Archive of obsolete content
to(newx, newy); } } function mouseup(event) { startpos = null; } window.addeventlistener("mousedown", mousedown, false); window.addeventlistener("mouseup", mouseup, false); window.addeventlistener("mousemove", mousemove, false); xul titlebar element xul applications can take advantage of the titlebar element to achieve a similar result without extra javascript code.
...up(event) { startpos = null; } window.addeventlistener("mousedown", mousedown, false); window.addeventlistener("mouseup", mouseup, false); window.addeventlistener("mousemove", mousemove, false); xul titlebar element xul applications can take advantage of the titlebar element to achieve a similar result without extra javascript code.
... window.addeventlistener("mouseup", mouseup, false); window.addeventlistener("mousemove", mousemove, false); xul titlebar element xul applications can take advantage of the titlebar element to achieve a similar result without extra javascript code.
...And 7 more matches
Appendix: What you should know about open-source software licenses - Archive of obsolete content
and modification provided that a copyright statement and liability disclaimer are included.
...e copyright notice, this list of conditions and the following disclaimer.
...ions and the following disclaimer.
...And 7 more matches
Chapter 6: Firefox extensions and XUL applications - Archive of obsolete content
ching, set up the editor you’ll use to write tests.
... %f filename %l line number %c column number the author uses meadow, which is opened using gnuserv.
...mplement the addition operation create test case begin by creating the test case.
...And 7 more matches
Dehydra Function Reference - Archive of obsolete content
uiltin functions the following functions are provided by dehydra and may be called by the user: print(msg) print a string to stdout (or stderr if the compiler is piping output).
...provided by dehydra and may be called by the user: print(msg) print a string to stdout (or stderr if the compiler is piping output).
...ring to stdout (or stderr if the compiler is piping output).
...And 7 more matches
JavaScript Client API - Archive of obsolete content
nloaded by other sync clients.
...values that you want to have encrypted, stored on the server, decrypted, and synced up.
... set bar(value) { this.cleartext.bar = value; }, get baz() this.cleartext.baz, set baz(value) { this.cleartext.baz = value; } }; to save all that typing for declaring the getters and setters, you can also use utils.defergetset: function foorecord(collection, id) { cryptowrapper.call(this, collection, id); } foorecord.prototype = { __proto__: cryptowrapper.prototype, _logname: "record.foo", ttl: foo_ttl // optional }; utils.defergetset(foorec, "cleartext", ["bar", "baz"]); the store object the store object (which extends store, as defined in services/sync/modules/engines.js) has the job of creating and maintaining a set of record objects from the underlying data.
...And 7 more matches
File object - Archive of obsolete content
esystem access is implemented with nspr i/o functions, and as such shares many semantics.
...ted with nspr i/o functions, and as such shares many semantics.
...th nspr i/o functions, and as such shares many semantics.
...And 7 more matches
Example Sticky Notes - Archive of obsolete content
com/samples/e2/dd625ef1cd.png" width="88" height="31" alt="valid html 4.01" style="border: 1px none"></a></p> </body> </html> notes.xml <?xml version="1.0"?> <bindings xmlns="http://www.mozilla.org/xbl" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- in above only xbl namespace declaration is mandatory.
...tp://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- in above only xbl namespace declaration is mandatory.
...this" in this context refers to the bound element.
...And 7 more matches
MenuItems - Archive of obsolete content
he removeattribute method.
...hod.
...up of menuitems in which only one can be checked at a time.
...And 7 more matches
XML Assignments - Archive of obsolete content
« previousnext » sometimes, you will want to use a more complex substitution apart from just taking an attribute from the xml.
... « previousnext » sometimes, you will want to use a more complex substitution apart from just taking an attribute from the xml.
... name of a person, but the length of their name.
...And 7 more matches
Code Samples - Archive of obsolete content
erfaces.nsiexternalprotocolservice) .loadurl(uri) compose an e-mail to compose an e-mail, use the same code as in the section open a web page above.
...rotocolservice) .loadurl(uri) compose an e-mail to compose an e-mail, use the same code as in the section open a web page above.
...ow to open one of the application's windows, use code like this.
...And 7 more matches
Modifying a XUL Interface - Archive of obsolete content
« previousnext » the dom provides various functions to modify the document.
...ement in xul.
...ment with the id "abox".
...And 7 more matches
SAX - Archive of obsolete content
nts (e.g.
...g.
...function print(s) { dump(s + "\n"); } xmlreader.contenthandler = { // nsisaxcontenthandler startdocument: function() { print("startdocument"); }, enddocument: function() { print("enddocument"); }, startelement: function(uri, localname, qname, /*nsisaxattributes*/ attributes) { var attrs = []; for(var i=0; i<attributes.length; i++) { attrs.push(attributes.getqname(i) + "='" + attributes.getvalue(i) + "'"); } print("startelement: namespace='" + uri + "', localname='" + localname + "', qname='" + qname + "', attributes={" + attrs.join(",") + "}"); }, endelement: function(uri, localname, qname) { print("endelement: namespace='" + uri + "', localname='" + localname + "', qname='" + qname + "'"); ...
...And 7 more matches
Building a Theme - Archive of obsolete content
<!-- target application this theme can install into, with minimum and maximum supported versions.
...ication this theme can install into, with minimum and maximum supported versions.
... install into, with minimum and maximum supported versions.
...And 7 more matches
Using the W3C DOM - Archive of obsolete content
nsupported dom-related properties the following ie proprietary document object properties are not supported in the w3c document object model: document.layers[] id_attribute_value document.all document.all.id_attribute_value document.all[id_attribute_value] the following form related properties (originally from internet explorer) are not supported in the w3c document object model: formname.inputname.value inputname.value formctrlname document.forms(0) (note: document.forms[0] (using square brackets) uses the dom standard forms collection) scripts that use these properties will throw errors in most standards-compliant browsers.
...o script the element.
...for example, the following short sample dynamically sets the left margin of a <div> element with an id of "inset" to half an inch: // in the html: <div id="inset">sample text</div> document.getelementbyid("inset").style.marginleft = ".5in"; note: internet explorer 5 through 7 have a flawed implementation of getelementbyid(), which returns the first element with a matching name or id (id versus name when using getelementbyid, msdn: getelementbyid method).
...And 7 more matches
Troubleshooting XForms Forms - Archive of obsolete content
a blank spot on the page, and select view page info.
...e filesystem, make sure that has .xhtml or .xml as the file ending.
...a xforms is built upon the xhtml 1.0 specification, which is located at http://www.w3.org/1999/xhtml .
...And 7 more matches
RDF in Mozilla FAQ - Archive of obsolete content
ervice will create an rdf/xml datasource and asynchronously parse it.
...ce will remain "cached" until the last reference to the datasource is released.
...source("http://www.mozilla.org/some-rdf-file.rdf"); // note that ds will load asynchronously, so assertions will not // be immediately available alternatively, you can create one directly using the xpcom component manager, as the following code fragment illustrates: // create an rdf/xml datasource using the xpcom component manager var ds = components .classes["@mozilla.org/rdf/datasource;1?name=xml-datasource"] .createinstance(components.interfaces.nsirdfdatasource); // the nsirdfremotedatasource interface has the interfaces // that we need to setup the datasource.
...And 7 more matches
Silly story generator - Learn web development
help — see the assessment or further help section at the bottom of this page.
...r help section at the bottom of this page.
...ottom of this page.
...And 7 more matches
Solve common problems in your JavaScript code - Learn web development
the following links point to solutions to common problems you may encounter when writing javascript.
... the following links point to solutions to common problems you may encounter when writing javascript.
...mon problems you may encounter when writing javascript.
...And 7 more matches
Accessibility in React - Learn web development
quisites: familiarity with the core html, css, and javascript languages, knowledge of the terminal/command line.
...round the "add" button beneath the input.
...hing is in focus at all.
...And 7 more matches
Mozilla accessibility architecture
lt-in assumptions about what is the most important information, and how an accessibility server like mozilla should use the api's programmatic interfaces to expose this information to an accessibility client (the assistive technology).
...has made different assumptions, although there are a number of common characteristics.
...r text representation, of each object, and they all use an enumerated integer value from a finite list, to expose the role of an object.
...And 7 more matches
Eclipse CDT
d-g/ctrl-g is not sufficient.
... that key combination (using the bindings column to sort by key combination helps with this) and remove them, or else you need to make your binding very specific by setting the "when" field to "c/c++ editor" instead of the more general "editing text".
...is eclipse bug 26873).
...And 7 more matches
JavaScript Tips
xul tips when inserting code with an xul overlay, wrap functions and variables inside an object with a unique name to avoid conflicting with existing or future function and variable names.
... xul tips when inserting code with an xul overlay, wrap functions and variables inside an object with a unique name to avoid conflicting with existing or future function and variable names.
...ction queryinterface(aiid) { if (aiid.equals(components.interfaces.nsiobserver) || aiid.equals(components.interfaces.nsisupportsweakreference) || aiid.equals(components.interfaces.nsisupports)) return this; throw components.results.ns_nointerface; }, observe: function observe(asubject, atopic, astate) { } } when declaring xpcom methods, try to use the same names for method parameters as are used in the interface definition.
...And 7 more matches
Application Translation with Mercurial
p://hg.mozilla.org/releases/l10n/mozilla-aurora/de/ de-mozilla-aurora this should proceed pretty fast.
...zilla-aurora this should proceed pretty fast.
...ow list all the files here: ls -a if there is no file called .hgrc , create it with > .hgrc this file stores your general mercurial settings (mercurial is the tool which manages the source code and its history of changes).
...And 7 more matches
Localizing with Koala
rt komodo when the installation is complete.
...x).
...), type the url of the remote repository, e.g.
...And 7 more matches
I/O Functions
this chapter describes the nspr functions used to perform operations such as system access, normal file i/o, and socket (network) i/o.
...commonly used with the functions described in this chapter, see i/o types.
...types.
...And 7 more matches
JS_GetPropertyAttributes
obsolete since jsapi 26this feature is obsolete.
...solete.
...ugh it may still work in some browsers, its use is discouraged since it could be removed at any time.
...And 7 more matches
SpiderMonkey 38
ocumented, because of the breadth of the changes involved.
...ompiler, so they are easy to detect and updating the code is a fairly straightforward job.
... and updating the code is a fairly straightforward job.
...And 7 more matches
TPS Password Lists
a password asset list is an array of objects, each representing a stored password.
... a password asset list is an array of objects, each representing a stored password.
... a password asset list is an array of objects, each representing a stored password.
...And 7 more matches
XPCOM array guide
Mozilla › Tech › XPCOM › Guide › Arrays
ingenumerator to a caller.
...ou can use the variation of ns_newstringenumerator that ensures the owner of the array outlives the enumerator.
...counted.
...And 7 more matches
mozIStorageService
a mozistorageconnection to a database file, as well as create backups of an unopened database file.
...databasefile); mozistorageconnection openspecialdatabase(in string astoragekey); mozistorageconnection openunshareddatabase(in nsifile adatabasefile); methods backupdatabasefile() this method makes a backup of the specified file.
...enspecialdatabase(in string astoragekey); mozistorageconnection openunshareddatabase(in nsifile adatabasefile); methods backupdatabasefile() this method makes a backup of the specified file.
...And 7 more matches
nsIAccessible
bc-98cc-04c0bf173530)] interface nsiaccessible : nsisupports { ...
...x 3.6 / thunderbird 3.1 / fennec 1.0) overview this section provides short overview of methods and attributes of this interface.
... overview this section provides short overview of methods and attributes of this interface.
...And 7 more matches
nsIAccessibleDocument
node of a document.
... also get one from nsiaccessnode.getaccessibledocument() or nsiaccessibleevent.getaccessibledocument() method overview nsiaccessible getaccessibleinparentchain(in nsidomnode adomnode, in boolean acancreate); obsolete since gecko 2.0 nsiaccessnode getcachedaccessnode(in voidptr auniqueid); native code only!
...aceuriforid(in short namespaceid); attributes attribute type description caretaccessible nsiaccessible read only.
...And 7 more matches
nsIAccessibleTable
accessible/public/nsiaccessibletable.idlscriptable please add a summary to this article.
...ible/public/nsiaccessibletable.idlscriptable please add a summary to this article.
...accessible getcellat(in long rowindex, in long columnindex); note: renamed from cellrefat in gecko 1.9.2 long getcellindexat(in long rowindex, in long columnindex); note: renamed from getindexat in gecko 1.9.2 astring getcolumndescription(in long columnindex); long getcolumnextentat(in long row, in long column); long getcolumnindexat(in long cellindex); note: renamed from getcolumnatindex in gecko 1.9.2 void getrowandcolumnindicesat(in long cellindex, out long rowindex, out long columnindex); astring getrowdescription(in long rowindex); long getrowextentat(in long row, in long column); long getrowindexat(in long cellindex); note: renamed from getrowatindex in gecko 1.9.2 void getselectedcellindices(out unsigned l...
...And 7 more matches
nsIController
content/xul/document/public/nsicontroller.idlscriptable an interface that can be implemented to receive and process commands and events.
...receive and process commands and events.
... last changed in gecko 1.7 method overview void docommand(in string command); boolean iscommandenabled(in string command); void onevent(in string eventname); boolean supportscommand(in string command); methods docommand() when this method is called, your implementation should execute the command with the specified name.
...And 7 more matches
nsIDOMNSHTMLDocument
color compatmode domstring returns "backcompat" if the document is in quirks mode or "css1compat" if the document is in full standards or almost standards mode.
...disable editing for the entire document at once.
...reevents( in long eventflags ); parameters eventflags clear() used to reset a document to blank, but deprecated since gecko 1.0 and provided for compatibility with netscape 4.x; use open() and close() instead.
...And 7 more matches
nsIDOMXPathEvaluator
prior to gecko 1.9, you could call this method on documents other than the one you planned to run the xpath against; starting with gecko 1.9, however, you must call it on the same document.
...an the one you planned to run the xpath against; starting with gecko 1.9, however, you must call it on the same document.
... gecko 1.9, however, you must call it on the same document.
...And 7 more matches
Using nsILoginManager
des a way of storing login information.
... getting nsiloginmanager to get a component implementing nsiloginmanager, use the following: var passwordmanager = components.classes["@mozilla.org/login-manager;1"].getservice( components.interfaces.nsiloginmanager ); most login manager functions take an nsilogininfo object as a parameter.
...nsiloginmanager to get a component implementing nsiloginmanager, use the following: var passwordmanager = components.classes["@mozilla.org/login-manager;1"].getservice( components.interfaces.nsiloginmanager ); most login manager functions take an nsilogininfo object as a parameter.
...And 7 more matches
nsIPropertyBag
xpcom/ds/nsipropertybag.idlscriptable this interface is used to store a set of properties.
...re a set of properties.
...isupports last changed in gecko 1.0 method overview nsivariant getproperty(in astring name); attributes attribute type description enumerator nsisimpleenumerator get a nsisimpleenumerator whose elements are nsiproperty objects.
...And 7 more matches
nsIScriptError
interface was merged into this interface in gecko 12.0.
... subclass offered the nsiscripterror.initwithwindowid() method for that purpose; that method is now available in this interface, however.
... read only.
...And 7 more matches
nsIWritablePropertyBag
xpcom/ds/nsiwritablepropertybag.idlscriptable please add a summary to this article.
... xpcom/ds/nsiwritablepropertybag.idlscriptable please add a summary to this article.
...blepropertybag.idlscriptable please add a summary to this article.
...And 7 more matches
Xray vision
the browser console to see the expected output.
...nderstand exactly what the code is doing.
...s in this article.
...And 7 more matches
Accessibility Inspector - Firefox Developer Tools
the accessibility tree for the current page.
...ility tree for the current page.
...ms with nested children have arrows that can be clicked to reveal the children, so you can move deeper into the hierarchy.
...And 7 more matches
Bluetooth.requestDevice() - Web APIs
the first device matching the criteria.
...hing the criteria.
...ecified options.
...And 7 more matches
Element.classList - Web APIs
Web › API › Element › classList
the element.classlist is a read-only property that returns a live domtokenlist collection of the class attributes of the element.
....classlist; returns a domtokenlist representing the contents of the element's class attribute.
...lasslist.remove(...cls); // replace class "foo" with class "bar" div.classlist.replace("foo", "bar"); versions of firefox before 26 do not implement the use of several arguments in the add/remove/toggle methods.
...And 7 more matches
EventTarget.addEventListener() - Web APIs
tener to be called twice, and they do not need to be removed manually with the removeeventlistener() method.
...d, such as when using a generic handler for a set of similar elements.
...andler for a set of similar elements.
...And 7 more matches
FileSystem - Web APIs
ect: you can directly ask for one representing a sandboxed file system created just for your web app directly by calling window.requestfilesystem().
...d file system created just for your web app directly by calling window.requestfilesystem().
...em created just for your web app directly by calling window.requestfilesystem().
...And 7 more matches
FileSystemDirectoryEntry - Web APIs
the browser-specific prefixes.
... if you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
...om/mdn/browser-compat-data and send us a pull request.
...And 7 more matches
FileSystemDirectoryReader - Web APIs
ike to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
...ser-compat-data and send us a pull request.
... and send us a pull request.
...And 7 more matches
FileSystemEntry.getParent() - Web APIs
r.invalid_state_err the operation failed because the file system's state doesn't permit it.
...system's state doesn't permit it.
...s cached state differs from the actual state of the file system.
...And 7 more matches
HTMLFormElement.elements - Web APIs
the htmlformelement property elements returns an htmlformcontrolscollection listing all the form controls contained in the <form> element.
...e is "image" are omitted for historical reasons) <object> <output> <select> <textarea> no other elements are included in the list returned by elements, which makes it an excellent way to get at the elements most important when processing forms.
...ect> <output> <select> <textarea> no other elements are included in the list returned by elements, which makes it an excellent way to get at the elements most important when processing forms.
...And 7 more matches
HTMLSelectElement - Web APIs
with of a <form> element, then it returns null.
...t returns null.
...abelsread only a nodelist of <label> elements associated with the element.
...And 7 more matches
Headers - Web APIs
Web › API › Headers
the headers interface of the fetch api allows you to perform various actions on http request and response headers.
... various actions on http request and response headers.
...ders object has an associated header list, which is initially empty and consists of zero or more name and value pairs.
...And 7 more matches
LockManager.request() - Web APIs
the request() method of the lockmanager interface requests a lock object with parameters specifying its name and characteristics.
...lback, while the function itself returns a promise that resolves with undefined.
... promise that resolves with undefined.
...And 7 more matches
NavigatorPlugins.plugins - Web APIs
returns a pluginarray object, listing the plugin objects describing the plugins installed in the application.
...ing the plugin objects describing the plugins installed in the application.
...irefox 29 and later, enumeration of the navigator.plugins array may be restricted as a privacy measure.
...And 7 more matches
PerformanceEntry.entryType - Web APIs
the entrytype property returns a domstring representing the type of performance metric such as, for example, "mark".
... a domstring representing the type of performance metric such as, for example, "mark".
...mance metric such as, for example, "mark".
...And 7 more matches
Using Performance Timeline - Web APIs
together, these interfaces can be used to help identify an application's performance bottlenecks.
... bottlenecks.
...(metrics), depending on the specified filter criteria.
...And 7 more matches
URL - Web APIs
Web › API › URL
uire this to be prefixed.
...tructor new url() creates and returns a url object referencing the url specified using an absolute url string, or a relative url string and a base url string.
...stname) followed by (if a port was specified) a ':' and the port of the url.
...And 7 more matches
URL API - Web APIs
Web › API › URL API
computers on a network, and the algorithms for parsing ip addresses and dom addresses are specified.
...o most developers is the api itself.
...pet above creates a url object for the article you're reading right now, then fetches the host and pathname properties.
...And 7 more matches
XSLTProcessor - Web APIs
he xsltprocessor.importstylesheet() function.
...lesheet() function.
...type html htmldocument xml xmldocument text xmldocument with a single root element <transformiix:result> with the text as a child [throws] void xsltprocessor.setparameter(string namespaceuri, string localname, any value) sets a parameter in the xslt stylesheet that was imported.
...And 7 more matches
::slotted() - CSS: Cascading Style Sheets
Web › CSS › ::slotted
ed inside a slot */ ::slotted(*) { font-weight: bold; } /* selects any <span> placed inside a slot */ ::slotted(span) { font-weight: bold; } syntax ::slotted( <compound-selector-list> )where <compound-selector-list> = <compound-selector>#where <compound-selector> = [ <type-selector>?
...[ <type-selector>?
... <id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector><pseudo-element-selector> = ':' <pseudo-class-selector><pseudo-class-selector> = ':' <ident-token> | ':' <function-token> <any-value> ')'where <wq-name> = <ns-prefix>?
...And 7 more matches
@font-face - CSS: Cascading Style Sheets
r a locally-installed font on the user's own computer.
...n other modern browsers) this also accepts two values to specify a range that is supported by a font-face, for example font-weight: 100 400; font-variant a font-variant value.
...font-feature-settings allows control over advanced typographic features in opentype fonts.
...And 7 more matches
Subgrid - CSS: Cascading Style Sheets
id-template-rows or both, instead of creating a new track listing the nested grid uses the tracks defined on the parent.
...fined on the parent.
...he example below.
...And 7 more matches
content - CSS: Cascading Style Sheets
Web › CSS › content
es: for example, \000a9 represents the copyright symbol.
...00a9 represents the copyright symbol.
...gradient> data type, or part of the webpage, defined by the element() function, denoting the content to display.
...And 7 more matches
counter() - CSS: Cascading Style Sheets
Web › CSS › counter
the counter() css function returns a string representing the current value of the named counter, if there is one.
... the counter() css function returns a string representing the current value of the named counter, if there is one.
... the counter() css function returns a string representing the current value of the named counter, if there is one.
...And 7 more matches
<input type="file"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › file
, even though it has relatively broad support, it is still not standard and should not be used unless you have no alternative.
..., separated by commas.
... file per <input>, omit the multiple attribute.
...And 7 more matches
<input type="month"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › month
, followed by the two-digit month).
...ale of the user's operating system, whereas the date value is always formatted yyyy-mm.
...t basic and more complex uses of <input type="month">, then offer advice on mitigating the browser support issue in the section handling browser support).
...And 7 more matches
<input type="search"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › search
uts <input> elements of type search are very similar to those of type text, except that they are specifically intended for handling search terms.
...ifically intended for handling search terms.
...ior, but user agents may choose to style them differently by default (and, of course, sites may use stylesheets to apply custom styles to them).
...And 7 more matches
<input type="time"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › time
ate, valueasnumber, and list.
...ut element.
...starttime = document.getelementbyid("starttime"); var valuespan = document.getelementbyid("value"); starttime.addeventlistener("input", function() { valuespan.innertext = starttime.value; }, false); when a form including a time input is submitted, the value is encoded before being included in the form's data.
...And 7 more matches
<textarea> - HTML: Hypertext Markup Language
Web › HTML › Element › textarea
urce for this interactive example is stored in a github repository.
...example is stored in a github repository.
... attribute enables you to place <textarea> elements anywhere within a document, not just as descendants of form elements.
...And 7 more matches
itemtype - HTML: Hypertext Markup Language
the global attribute itemtype specifies the url of the vocabulary that will be used to define itemprop's (item properties) in the data structure.
...e itemtype specifies the url of the vocabulary that will be used to define itemprop's (item properties) in the data structure.
... specifications to define whether multiple items of the same global identifier (whether on the same page or different pages) are allowed to exist, and what processing rules for that vocabulary are, with respect to handling the case of multiple items with the same id.
...And 7 more matches
HTTP authentication - HTTP
thentication of cross-site images.
...ould be used with basic authentication.
...on.
...And 7 more matches
Browser detection using the user agent - HTTP
(0,function(){ if (orientationchanged && !mediaqueryupdated) for (var i=0,len=mql.length|0; i<len; i=i+1|0) mql[i][1]( mql[i][0] ); mediaqueryupdated = orientationchanged = false; },0)); which part of the user agent contains the information you are looking for?
...rt.
...y want "browser detection", often they actually want "rendering engine detection".
...And 7 more matches
HTTP Index - HTTP
Web › HTTP › Index
ue to enable their use.
...ne invalid header name.
...low-headers’ from cors preflight channel cors, corsmissingallowheaderfrompreflight, cross-origin, error, http, https, messages, reasons, security, console, troubleshooting the access-control-allow-headers header is sent by the server to let the client know which headers it supports for cors requests.
...And 7 more matches
Array.prototype.sort() - JavaScript
expressions: var numbers = [4, 2, 5, 1, 3]; numbers.sort(function(a, b) { return a - b; }); console.log(numbers); // [1, 2, 3, 4, 5] es2015 provides arrow function expressions with even shorter syntax.
..., 5, 1, 3]; numbers.sort(function(a, b) { return a - b; }); console.log(numbers); // [1, 2, 3, 4, 5] es2015 provides arrow function expressions with even shorter syntax.
...(a, b) { return a - b; }); console.log(numbers); // [1, 2, 3, 4, 5] es2015 provides arrow function expressions with even shorter syntax.
...And 7 more matches
String.prototype.anchor() - JavaScript
the anchor() method creates a string beginning with an <a name="..."> start tag, then some text, and then an </a> end tag.
... the anchor() method creates a string beginning with an <a name="..."> start tag, then some text, and then an </a> end tag.
... the anchor() method creates a string beginning with an <a name="..."> start tag, then some text, and then an </a> end tag.
...And 7 more matches
eval() - JavaScript
t susceptible.
... 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.
...ied too as seen in the minified code below.
...And 7 more matches
Transitioning to strict mode - JavaScript
he transition to it can be made gradually.
...vidually and even to transition code to strict mode down to the function granularity.
... with statement using delete on a variable name delete myvariable; using eval or arguments as variable or function argument name using one of the newly reserved keywords (in prevision for ecmascript 2015): implements, interface, let, package, private, protected, public, static, and yield declaring function in blocks if (a < b) { function f() {} } obvious errors declaring twice the same name for a property name in an object literal {a: 1, b: 3, a: 7} this is no longer the case in ecmascript 2015 (bug 1041128).
...And 7 more matches
How to make PWAs installable - Progressive web apps (PWAs)
a few common kinds of manifest file that have been used in the past: manifest.webapp was popular in firefox os app manifests, and many use manifest.json for web manifests as the contents are organized in a json structure.
...n used in the past: manifest.webapp was popular in firefox os app manifests, and many use manifest.json for web manifests as the contents are organized in a json structure.
... "sizes": "32x32", "type": "image/png" }, // ...
...And 7 more matches
target - SVG: Scalable Vector Graphics
Web › SVG › Attribute › target
the target attribute should be used when there are multiple possible targets for the ending resource, such as when the parent document is embedded within an html or xhtml document, or is viewed with a tabbed browser.
...f"> <text x="0" y="20">open link within iframe</text> </a> <a href="https://developer.mozilla.org" target="_blank"> <text x="0" y="60">open link in new tab or window</text> </a> <a href="https://developer.mozilla.org" target="_top"> <text x="0" y="100">open link in this tab or window</text> </a> </svg> usage notes value _self | _parent | _top | _blank | <xml-name> default value _self animatable yes _replace the current svg image is replaced by the linked content in the same rectangular area in the same frame as the current svg image.
...e linked content in the same browsing context as the current svg image.
...And 7 more matches
<xsl:attribute> - XSLT: Extensible Stylesheet Language Transformations
t creates an attribute in the output document, using any values that can be accessed from the stylesheet.
...ates an attribute in the output document, using any values that can be accessed from the stylesheet.
...an attribute in the output document, using any values that can be accessed from the stylesheet.
...And 7 more matches
Caching compiled WebAssembly modules - WebAssembly
ed dbversion passed into the function.
...ion.
...setting up the database the first helper function contained inside instantiatecachedurl() — opendatabase() — creates an object store for storing wasm modules, and also handles clearing out the database if the dbversion is updated; it returns a promise resolving to the new database.
...And 7 more matches
self - Archive of obsolete content
as the passwords module.
... printable string that is unique for each add-on.
...s unique for each add-on.
...And 6 more matches
File I/O - Archive of obsolete content
data.txt"]); or the same without using fileutils.jsm: // get profile directory.
...n directory).
... %curprocd%/defaults - the root directory of all defaults directories.
...And 6 more matches
Miscellaneous - Archive of obsolete content
this page contains small, self-explanatory code snippets.
... this page contains small, self-explanatory code snippets.
... include // handling for fields dynamically added to the page (e.g., by page javascript).
...And 6 more matches
Jetpack Processes - Archive of obsolete content
power.
...sable this feature has been proposed in bug 614351.
... [, v2 [, ...]]]) similar to nsijetpack.sendmessage(), this function asynchronously sends a message to the chrome process.
...And 6 more matches
XPCOM Objects - Archive of obsolete content
ist in your current firefox installation, just run the following code in the error console: var str = ""; for (var i in components.classes) { str += i + "\n" }; str a run on firefox 3.6.2 with a few extensions installed yields 876 strings.
... awkward to handle.
...st need to "cast" the component to interface x.
...And 6 more matches
Setting up an extension development environment - Archive of obsolete content
how to set up even more user profiles, take a look at multiple firefox profiles.
... of all currently available firefox versions.
...tart -> run "%programfiles(x86)%\mozilla firefox\firefox.exe" -no-remote -p dev to start thunderbird or seamonkey instead of firefox, substitute thunderbird, or seamonkey for the firefox used in our examples.
...And 6 more matches
Adding preferences to an extension - Archive of obsolete content
add a new folder to our extension's package, called "defaults", which in turn contains another folder called "preferences".
...aults", which in turn contains another folder called "preferences".
... being altered, our observe() method will be called automatically.
...And 6 more matches
JavaScript crypto - Archive of obsolete content
to the ca/ra ca/ra verifies signature on signed blob ca/ra validates identity of user ca/ra sends wrapped encryption private key to kra kra sends escrow verification back to ca ca creates and signs certificates ca sends certificates back to the user (importusercertificates) typical use the ca's enrollment page could look something like this: <!doctype html> <h2>request a cert</h2> <form name="reqform" method="post" action="http://your.ra.site.org"> <p><input type=hidden name=cert_request value=""> <p>name: <input type=text name=name value=""> <p>password: <input type=password name="password" value=""> <p><input type=submit name="send" value="submit"> </form> <script> /* the following values could be filled in by the server cgi */ var authenticator = "server_magic"; var keytransportce...
...ype=submit name="send" value="submit"> </form> <script> /* the following values could be filled in by the server cgi */ var authenticator = "server_magic"; var keytransportcert = null; var crmfobject = null; var form = document.forms[0]; function validate() { // generate keys for nsm.
...", 1024, null, "rsa-dual-use"); } return false; } function setcrmfrequest() { form.cert_request.value = crmfobject.request; form.submit(); } form.onsubmit = validate; </script> on completion of the request, the ca may submit a page that looks something like this: <!doctype html> <h2>certificate request successful</h2> <p>hit 'load' to load your certificate</p> <form name="reqform"> <p><input type=submit name="load" value="submit"></p> </form> <script> /* the following values could be filled in by the server cgi */ var nickname= "mycertnickname"; var cert = "mkjflakdjfiwjflaksufklasf ..."; var forcebackup = false; function loadcertificate() { window.crypto.importusercertificates(nickname, cert, forcebackup); return false; } document.forms[0].onsubmit = loadc...
...And 6 more matches
Tamarin build documentation - Archive of obsolete content
p to build tamarin for android you will need an sdk/ndk.
...st* be used if you've cloned tamarin at changeset 5844:92ad3ca84a0b or later and will be using the cross-compile build method.
...k/ndk tree on a mac: - create an sdk/ndk top folder under your main volume named /android-public.
...And 6 more matches
Creating a Windows Inno Setup installer for XULRunner applications - Archive of obsolete content
, the script editor.
...unner-stub.exe and rename) xulrunner/ please test your application before deploying it.
...me directory's deployment point, so you have to edit the iss file yourself.
...And 6 more matches
xulauncher - Archive of obsolete content
[ $# -lt 1 ] then echo "you need to give the xul file as first parameter" exit fi # check if 1st parameter is a file ############################################################################## if [ !
...] then echo "you need to give the xul file as first parameter" exit fi # check if 1st parameter is a file ############################################################################## if [ !
...l file as first parameter" exit fi # check if 1st parameter is a file ############################################################################## if [ !
...And 6 more matches
Function - MDN Web Docs Glossary: Definitions of Web-related terms
a function is a code snippet that can be called by other code or by itself, or a variable that refers to the function.
... a function is a code snippet that can be called by other code or by itself, or a variable that refers to the function.
...led by other code or by itself, or a variable that refers to the function.
...And 6 more matches
WAI-ARIA basics - Learn web development
provides special input types to render such controls: <input type="date"> <input type="range"> these are not well-supported across browsers, and it is also difficult to style them, making them not very useful for integrating with website designs.
...ure in this example — the <input> element has been given the attribute aria-label, which gives it a descriptive label to be read out by a screenreader, even though we haven't included a <label> element.
...we mark required fields for sighted users.
...And 6 more matches
Advanced form styling - Learn web development
le values listed for -webkit-appearance, however by far the most helpful value, and probably the only one you'll use, is none.
...y one you'll use, is none.
...g, as much as possible, and lets you build up the styles yourself using css.
...And 6 more matches
Getting started with HTML - Learn web development
ercase.
...ragraph), wrapped in opening and closing angle brackets.
... element categories: see element content categories.
...And 6 more matches
What’s in the head? Metadata in HTML - Learn web development
y opening the code up in your code editor, editing the contents of these elements, then refreshing the page in your browser.
...ive learning: experiment with character encoding to try this out, revisit the simple html template you obtained in the previous section on <title> (the title-example.html page), try changing the meta charset value to iso-8859-1, and add the japanese to your page.
...aracter encoding to try this out, revisit the simple html template you obtained in the previous section on <title> (the title-example.html page), try changing the meta charset value to iso-8859-1, and add the japanese to your page.
...And 6 more matches
Arrays - Learn web development
previous overview: first steps next in the final article of this module, we'll look at arrays — a neat way of storing a list of data items under a single variable name.
...ollowing: let mynewstring = myarray.join(','); mynewstring; another way of converting an array to a string is to use the tostring() method.
...mynewstring; another way of converting an array to a string is to use the tostring() method.
...And 6 more matches
Useful string methods - Learn web development
t's enter some examples into the browser developer console.
...of a string this is easy — you simply use the length property.
...ngths of a series of names so you can display them in order of length, or let a user know that a username they have entered into a form field is too long if it is over a certain length.
...And 6 more matches
Test your skills: Object basics - Learn web development
n at the bottom of this page.
....
...r devtools' console).
...And 6 more matches
Adding a new todo form: Vue events, methods, and models - Learn web development
template> <script> export default {}; </script> let's add in an html form that lets you enter a new todo item and submit it into the app.
...he data property you set on it and keeps it in sync with the <input>.
...ed to-do item to our app component.
...And 6 more matches
Creating a spell check dictionary add-on
uage of a web page in order to select the right dictionary to use.
...or does not respond.
... extension instead of the normal .zip file extension.
...And 6 more matches
AsyncTestUtils extended framework
or need a callback or fancy promise, create an instance of asyncurllistener.
...ect: (automatically generated random subject) force all the messages to have the same subject you pass in.
...ach recipient is a list whose first element is a (display) name and second element is an email address.
...And 6 more matches
Cryptography functions
the public functions listed here perform cryptographic operations based on the pkcs #11 interface.
...umentation is available for a function listed below, the function name is linked to either its mdc wiki page or its entry in the old ssl reference.
... pk11_findbestkeamatch mxr 3.2 and later pk11_findcertandkeybyrecipientlist mxr 3.2 and later pk11_findcertandkeybyrecipientlistnew mxr 3.2 and later pk11_findcertbyissuerandsn mxr 3.2 and later pk11_findcertfromdercert mxr 3.2 and later pk11_findcertfromnickname mxr 3.2 and later pk11_findcertinslot mxr 3.2 and later pk11_findgenericobjects mxr 3.9.2 and later pk11_findfixedkey mxr 3.2 and later pk11_findkeybyanycert mxr 3.2 and later pk11_findkeybydercert mxr 3.2 and later pk11_findprivat...
...And 6 more matches
NSS 3.12.4 release notes
io timeout during cert fetching makes libpkix abort validation.
... chain manner by downstream distributions bug 486999: calling ssl_setsockpeerid a second time leaks the previous value bug 487007: make lib/jar conform to nss coding style bug 487162: ckfw/capi build failure on windows bug 487239: nssutil.rc doesn't compile on wince bug 487254: sftkmod.c uses posix file io functions on wince bug 487255: sdb.c uses posix file io functions on wince bug 487487: cert_nametoascii reports !invalid ava!
...d options mozilla_security_build and mozilla_bsafe_build bug 487884: object leak in libpkix library upon error bug 488067: pk11_importcrl reports sec_error_crl_not_found when it fails to import a crl bug 488350: nspr-free freebl interface need to do post tests only in fips mode.
...And 6 more matches
NSS 3.12.6 release notes
tion is false.
... these options can also be set with the following ssl options: ssloptions.enablerenegotiation ssloptions.requiresafenegotiation new pseudo cipher suite value: tls_empty_renegotiation_info_scsv (cannot be negotiated) tls server name indication for servers tls server name indication (sni) for servers is almost fully implemented in nss 3.12.6.
...equiresafenegotiation new pseudo cipher suite value: tls_empty_renegotiation_info_scsv (cannot be negotiated) tls server name indication for servers tls server name indication (sni) for servers is almost fully implemented in nss 3.12.6.
...And 6 more matches
NSS 3.18 release notes
the hg tag is nss_3_18_rtm.
...istributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_18_rtm/src/ new in nss 3.18 new functionality when importing certificates and keys from a pkcs#12 source, it's now possible to override the nicknames, prior to importing them into the nss database, using new api sec_pkcs12decoderrenamecertnicknames.
...g a database (-d).
...And 6 more matches
NSS Tools pk12util
tes among enterprise server 3.x and any server (netscape products or non-netscape products) that supports pkcs#12 possible.
...ducts or non-netscape products) that supports pkcs#12 possible.
... or export them and also list certificates and keys in such files.
...And 6 more matches
Rhino serialization
e and then read into a new instance of rhino and called.
... and scriptableinputstream, were introduced to handle serialization of rhino classes.
...leoutputstream fos = new fileoutputstream(filename); scriptableoutputstream out = new scriptableoutputstream(fos, scope); out.writeobject(obj); out.close(); here filename is the file to write to, obj is the object or function to write, and scope is the top-level scope containing obj.
...And 6 more matches
How to embed the JavaScript engine
e spinning the event loop js::rootedobject global(cx, js_newglobalobject(cx, &global_class, nullptr)); if (!global) return 1; js::rootedvalue rval(cx); { // scope for jsautocompartment jsautocompartment ac(cx, global); js_initstandardclasses(cx, global); const char *script = "'hello'+'world, it is '+new date()"; const char *filename = "noname"; int lineno = 1; bool ok = js_evaluatescript(cx, global, script, strlen(script), filename, lineno, rval.address()); if (!ok) return 1; } jsstring *str = rval.tostring(); printf("%s\n", js_encodestring(cx, str)); } js_destroycontext(cx); js_destroyruntime(rt); js_shutdown(); return 0; } spidermonkey 31 // follo...
... js::rootedobject global(cx, js_newglobalobject(cx, &global_class, nullptr, js::fireonnewglobalhook)); if (!global) return 1; js::rootedvalue rval(cx); { // scope for jsautocompartment jsautocompartment ac(cx, global); js_initstandardclasses(cx, global); const char *script = "'hello'+'world, it is '+new date()"; const char *filename = "noname"; int lineno = 1; bool ok = js_evaluatescript(cx, global, script, strlen(script), filename, lineno, &rval); if (!ok) return 1; } jsstring *str = rval.tostring(); printf("%s\n", js_encodestring(cx, str)); } js_destroycontext(cx); js_destroyruntime(rt); js_shutdown(); return 0; } spidermonkey 38 // following code...
... js::rootedobject global(cx, js_newglobalobject(cx, &global_class, nullptr, js::fireonnewglobalhook)); if (!global) return 1; js::rootedvalue rval(cx); { // scope for jsautocompartment jsautocompartment ac(cx, global); js_initstandardclasses(cx, global); const char *script = "'hello'+'world, it is '+new date()"; const char *filename = "noname"; int lineno = 1; js::compileoptions opts(cx); opts.setfileandline(filename, lineno); bool ok = js::evaluate(cx, global, opts, script, strlen(script), &rval); if (!ok) return 1; } jsstring *str = rval.tostring(); printf("%s\n", js_encodestring(cx, str)); } js_destroycontext(cx); js_destroyruntime(rt); ...
...And 6 more matches
JSFunctionSpec
defines a single function for an object.
... defines a single function for an object.
... defines a single function for an object.
...And 6 more matches
JS_AlreadyHasOwnProperty
this article covers features introduced in spidermonkey 1.8 determine whether a property is already physically present on a jsobject.
... this article covers features introduced in spidermonkey 1.8 determine whether a property is already physically present on a jsobject.
... this article covers features introduced in spidermonkey 1.8 determine whether a property is already physically present on a jsobject.
...And 6 more matches
JS_CallFunction
calls a specified js function.
... calls a specified js function.
...levaluearray& args, js::mutablehandlevalue rval); bool js_callfunctionvalue(jscontext *cx, js::handleobject obj, js::handlevalue fval, const js::handlevaluearray& args, js::mutablehandlevalue rval); /* obsolete since jsapi 30 */ bool js_callfunction(jscontext *cx, jsobject *obj, jsfunction *fun, unsigned argc, jsval *argv, jsval *rval); bool js_callfunctionname(jscontext *cx, jsobject *obj, const char *name, unsigned argc, jsval *argv, jsval *rval); bool js_callfunctionvalue(jscontext *cx, jsobject *obj, jsval fval, unsigned argc, jsval *argv, jsval *rval); name type description cx jscontext * pointer to a js context from which to derive runtime information.
...And 6 more matches
JS_CompileUTF8FileHandle
obsolete since jsapi 19this feature is obsolete.
...ay still work in some browsers, its use is discouraged since it could be removed at any time.
...ce it could be removed at any time.
...And 6 more matches
JS_GetPropertyAttrsGetterAndSetter
obsolete since jsapi 26this feature is obsolete.
...emoved at any time.
... time.
...And 6 more matches
JS_SetPropertyAttributes
obsolete since jsapi 26this feature is obsolete.
...bsolete.
...ough it may still work in some browsers, its use is discouraged since it could be removed at any time.
...And 6 more matches
inIDOMUtils
zilla.org/inspector/dom-utils;1 as a service: var inidomutils = components.classes["@mozilla.org/inspector/dom-utils;1"] .getservice(components.interfaces.inidomutils); method overview void addpseudoclasslock(in nsidomelement aelement, in domstring apseudoclass); void clearpseudoclasslocks(in nsidomelement aelement); [implicit_jscontext] jsval colornametorgb(in domstring acolorname); nsiarray getbindingurls(in nsidomelement aelement); nsidomnodelist getchildrenfornode(in nsidomnode anode, in boolean ashowinganonymouscontent); unsigned long long getcontentstate(in nsidomelement aelement); void getcsspropertynames([optional] in unsigned long aflags, [optional] out unsigned long acount, [retval, array, size_is(a...
...index); unsigned long long getspecificity(in nsidomcssstylerule arule, in unsigned long aselectorindex); nsidomfontfacelist getusedfontfaces(in nsidomrange arange); bool haspseudoclasslock(in nsidomelement aelement, in domstring apseudoclass); boolean isignorablewhitespace(in nsidomcharacterdata adatanode); bool isinheritedproperty(in astring apropertyname); void parsestylesheet(in nsidomcssstylesheet asheet, in domstring ainput); void removepseudoclasslock(in nsidomelement aelement, in domstring apseudoclass); astring rgbtocolorname(in octet ar, in octet ag, in octet ab); bool selectormatcheselement(in nsidomelement aelement, in nsidomcssstylerule arule, in unsigned long aselectorindex, [optional] in domstring ...
...t of the insertion point.
...And 6 more matches
nsIAccessNode
nsiaccessnode tree for a given dom window has a one to one relationship to the dom tree.
...he dom node for this access node is "accessible", then a queryinterface to nsiaccessible will succeed.
...olltopoint(in unsigned long acoordinatetype, in long ax, in long ay); attributes note: attempting to access the attributes of a node that is unattached from the accessible tree will result in an exception - ns_error_failure.
...And 6 more matches
nsIAuthPrompt
einstance(components.interfaces.nsiauthprompt); method overview boolean prompt(in wstring dialogtitle, in wstring text, in wstring passwordrealm, in pruint32 savepassword, in wstring defaulttext, out wstring result); boolean promptpassword(in wstring dialogtitle, in wstring text, in wstring passwordrealm, in pruint32 savepassword, inout wstring pwd); boolean promptusernameandpassword(in wstring dialogtitle, in wstring text, in wstring passwordrealm, in pruint32 savepassword, inout wstring user, inout wstring pwd); constants constant value description save_password_never 0 never saves the password.
...ssword realm.
...ldap://localhost/dc=test.
...And 6 more matches
getFile
« xpcom api reference called by the directory service to obtain an nsifile object corresponding for a given standard path location.
... « xpcom api reference called by the directory service to obtain an nsifile object corresponding for a given standard path location.
...m api reference called by the directory service to obtain an nsifile object corresponding for a given standard path location.
...And 6 more matches
nsIMsgAccountManagerExtension
the nsimsgaccountmanagerextension interface is used to add a new panel to thunderbird's account manager.
...nager extension is a xpcom compontent implementing this interface.
...g this interface.
...And 6 more matches
nsITextInputProcessor
idomkeyevent adomkeyevent, [optional] in unsigned long akeyflags); boolean commitcompositionwith(in domstring acommitstring, [optional] in nsidomkeyevent adomkeyevent, [optional] in unsigned long akeyflags); boolean flushpendingcomposition([optional] in nsidomkeyevent adomkeyevent, [optional] in unsigned long akeyflags); boolean getmodifierstate(in domstring amodifierkeyname); boolean keydown([optional] in nsidomkeyevent adomkeyevent, [optional] in unsigned long akeyflags); boolean keyup([optional] in nsidomkeyevent adomkeyevent, [optional] in unsigned long akeyflags); void setcaretinpendingcomposition(in unsigned long aoffset); void setpendingcompositionstring(in domstring astring); void sharemodifierstateof(in nsitextinp...
...001 one of akeyflags.
... key_non_printable_key 0x00000002 one of akeyflags.
...And 6 more matches
nsIUserInfo
nfo = components.classes["@mozilla.org/userinfo;1"] .getservice(components.interfaces.nsiuserinfo); you can then look at the userinfo object's attributes to learn what the system knows about the user.
... system knows about the user.
...g read only.
...And 6 more matches
nsIXPCScriptable
ve wrapper, in jscontextptr cx, in jsobjectptr obj, in jsval val); jsobjectptr outerobject(in nsixpconnectwrappednative wrapper, in jscontextptr cx, in jsobjectptr obj); jsobjectptr innerobject(in nsixpconnectwrappednative wrapper, in jscontextptr cx, in jsobjectptr obj); void postcreateprototype(in jscontextptr cx, in jsobjectptr proto); attributes attribute type description classname string scriptableflags pruint32 the bitwise or'd set of flags (define below) that indicate the behavior of this object.
...r_addproperty 1 << 17 use_jsstub_for_delproperty 1 << 18 use_jsstub_for_setproperty 1 << 19 dont_enum_static_props 1 << 20 dont_enum_query_interface 1 << 21 dont_ask_instance_for_scriptable 1 << 22 classinfo_interfaces_only 1 << 23 allow_prop_mods_during_resolve 1 << 24 allow_prop_mods_to_prototype 1 << 25 dont_share_prototype 1 << 26 dont_reflect_interface_names 1 << 27 want_equality 1 << 28 want_outer_object 1 << 29 want_inner_object 1 << 30 reserved 1 << 31 the high order bit is reserved for consumers of these flags.
...nds on the value of enum_op.
...And 6 more matches
nsIMsgCloudFileProvider
acstring urlforfile(in nsilocalfile afile); void cancelfileupload(in nsilocalfile afile); void refreshuserinfo(in boolean awithui, in nsirequestobserver acallback); void deletefile(in nsilocalfile afile, in nsirequestobserver acallback); void createnewaccount(in acstring aemailaddress, in acstring apassword, in acstring afirstname, in acstring alastname, in nsirequestobserver acallback); void createexistingaccount(in nsirequestobserver acallback); acstring providerurlforerror(in unsigned long aerror); attributes attribute type description type acstring readonly: the type is a unique string identifier which can be used by interface elements fo...
...id createexistingaccount(in nsirequestobserver acallback); acstring providerurlforerror(in unsigned long aerror); attributes attribute type description type acstring readonly: the type is a unique string identifier which can be used by interface elements for styling.
... acstring providerurlforerror(in unsigned long aerror); attributes attribute type description type acstring readonly: the type is a unique string identifier which can be used by interface elements for styling.
...And 6 more matches
Index
, thunderbird authoritative definition 14 autoconfiguration in thunderbird moved to autoconfiguration 15 buddy icons in mail seth spitzer mozilla is now able to show icons in the message header area and the addressbook card pane.
...uthoritative definition 14 autoconfiguration in thunderbird moved to autoconfiguration 15 buddy icons in mail seth spitzer mozilla is now able to show icons in the message header area and the addressbook card pane.
... moved to autoconfiguration 15 buddy icons in mail seth spitzer mozilla is now able to show icons in the message header area and the addressbook card pane.
...And 6 more matches
Thunderbird Configuration Files
linux.
... you should know how to find your profile folder, which is where thunderbird saves all your settings on your hard drive.
...ath is usually ~/.thunderbird/xxxxxxxx.default/ on mac os x, the path is usually ~/library/thunderbird/profiles/xxxxxxxx.default/ %appdata% is a shorthand for the application data path on windows 2000/xp/vista.
...And 6 more matches
Monster example - Firefox Developer Tools
this article describes a very simple web page that we'll use to illustrate some features of the memory tool.
... this article describes a very simple web page that we'll use to illustrate some features of the memory tool.
...b page that we'll use to illustrate some features of the memory tool.
...And 6 more matches
CSS Grid Inspector: Examine grid layouts - Firefox Developer Tools
the grid inspector allows you to examine css grid layouts using the firefox devtools, discovering grids present on a page, examining and modifying them, debugging layout issues, and more.
... the grid section of the layout view looks like this: you'll see a number of options contained within: overlay grid: contains a checkbox for each grid present on the page, along with various options.
...n of the layout view looks like this: you'll see a number of options contained within: overlay grid: contains a checkbox for each grid present on the page, along with various options.
...And 6 more matches
Tips - Firefox Developer Tools
general screenshots: entire page: click the screenshot button (; needs to be enabled first).
...e inspector icon () next to any selector to highlight all elements that match it.
...hlight all elements that match it.
...And 6 more matches
Using the CSS Painting API - Web APIs
ate an image used by a css stylesheet we need to work through a few steps: define a paint worklet using the registerpaint() function register the worklet include the paint() css function to elaborate over these steps, we're going to start by creating a half-highlight background, like on this header: css paint worklet in an external script file, we employ the registerpaint() function to name our css paint worklet.
...eps: define a paint worklet using the registerpaint() function register the worklet include the paint() css function to elaborate over these steps, we're going to start by creating a half-highlight background, like on this header: css paint worklet in an external script file, we employ the registerpaint() function to name our css paint worklet.
...registerpaint() function register the worklet include the paint() css function to elaborate over these steps, we're going to start by creating a half-highlight background, like on this header: css paint worklet in an external script file, we employ the registerpaint() function to name our css paint worklet.
...And 6 more matches
Console.profileEnd() - Web APIs
calling this api immediately after console.profile() can cause it to not work.
...use it to not work.
...rk around this, call it in a settimeout with at least 5ms delay.
...And 6 more matches
CustomElementRegistry.define() - Web APIs
the define() method of the customelementregistry interface defines a new custom element.
... the customelementregistry interface defines a new custom element.
...ustomelementregistry interface defines a new custom element.
...And 6 more matches
Element.hasAttributeNS() - Web APIs
hasattributens returns a boolean value indicating whether the current element has the specified attribute.
... hasattributens returns a boolean value indicating whether the current element has the specified attribute.
... hasattributens returns a boolean value indicating whether the current element has the specified attribute.
...And 6 more matches
Using files from web applications - Web APIs
attribute: const numfiles = filelist.length; individual file objects can be retrieved by simply accessing the list as an array: for (let i = 0, numfiles = filelist.length; i < numfiles; i++) { const file = filelist[i]; // ...
... numfiles = filelist.length; individual file objects can be retrieved by simply accessing the list as an array: for (let i = 0, numfiles = filelist.length; i < numfiles; i++) { const file = filelist[i]; // ...
...cts can be retrieved by simply accessing the list as an array: for (let i = 0, numfiles = filelist.length; i < numfiles; i++) { const file = filelist[i]; // ...
...And 6 more matches
FileSystemFileEntry - Web APIs
m structured data.
...t https://github.com/mdn/browser-compat-data and send us a pull request.
...b.com/mdn/browser-compat-data and send us a pull request.
...And 6 more matches
FormData.getAll() - Web APIs
Web › API › FormData › getAll
the getall() method of the formdata interface returns all the values associated with a given key from within a formdata object.
... the getall() method of the formdata interface returns all the values associated with a given key from within a formdata object.
... the getall() method of the formdata interface returns all the values associated with a given key from within a formdata object.
...And 6 more matches
Headers.get() - Web APIs
Web › API › Headers › get
the get() method of the headers interface returns a byte string of all the values of a header within a headers object with a given name.
... the get() method of the headers interface returns a byte string of all the values of a header within a headers object with a given name.
... the get() method of the headers interface returns a byte string of all the values of a header within a headers object with a given name.
...And 6 more matches
IDBIndex - Web APIs
Web › API › IDBIndex
workers.
... properties idbindex.isautolocale read only returns a boolean indicating whether the index had a locale value of auto specified upon its creation (see createindex()'s optionalparameters.) idbindex.locale read only returns the locale of the index (for example en-us, or pl) if it had a locale value specified upon its creation (see createindex()'s optionalparameters.) idbindex.name the name of this index.
... a boolean indicating whether the index had a locale value of auto specified upon its creation (see createindex()'s optionalparameters.) idbindex.locale read only returns the locale of the index (for example en-us, or pl) if it had a locale value specified upon its creation (see createindex()'s optionalparameters.) idbindex.name the name of this index.
...And 6 more matches
IDBObjectStore.index() - Web APIs
the index() method of the idbobjectstore interface opens a named index in the current object store, after which it can be used to, for example, return a series of records sorted by that index using a cursor.
... the index() method of the idbobjectstore interface opens a named index in the current object store, after which it can be used to, for example, return a series of records sorted by that index using a cursor.
... the index() method of the idbobjectstore interface opens a named index in the current object store, after which it can be used to, for example, return a series of records sorted by that index using a cursor.
...And 6 more matches
MutationObserverInit.attributes - Web APIs
es of attributes on the node or nodes being monitored.
...alue property.
... all of its descendants (true), or just the target node (false).
...And 6 more matches
PublicKeyCredentialCreationOptions.user - Web APIs
the user property of the publickeycredentialcreationoptions dictionary is an object describing the user account for which the credentials are generated (via navigator.credentials.create()).
... the user property of the publickeycredentialcreationoptions dictionary is an object describing the user account for which the credentials are generated (via navigator.credentials.create()).
...ions dictionary is an object describing the user account for which the credentials are generated (via navigator.credentials.create()).
...And 6 more matches
Sensor APIs - Web APIs
s because your code is inconsistent with the policies set on your server.
...wn to a user.
...e === 'notallowederror') { // branch to code for requesting permission.
...And 6 more matches
Background audio processing using AudioWorklet - Web APIs
hich takes audio from one or more incoming sources, performs its operation on the data, and outputs the resulting audio data.
... consists of the following: a javascript class which defines the audio processor.
...data as manipulated by the processor.
...And 6 more matches
CSS values and units - CSS: Cascading Style Sheets
t data types are either <string>, a quoted series of characters, or an <ident>, a "css identifier" which is an unquoted string.
...t>, must be unquoted.
...t values are permitted, the specification will list <custom-ident> | <string>, meaning quotes are optional, such as is the case with animation names: @keyframe validident { /* keyframes go here */ } @keyframe 'validstring' { /* keyframes go here */ } some text values are not valid if encompassed in quotes.
...And 6 more matches
CSS reference - CSS: Cascading Style Sheets
Web › CSS › Reference
ax error in a rule definition invalidates the entire rule.
...re rule.
...ser.
...And 6 more matches
HTML5 Parser - Developer guides
Web › Guide › HTML › HTML5 › HTML5 Parser
er is one of the most complicated and sensitive pieces of a browser.
...ehave more consistently with each other.
...not valid javascript escapes; the character code strategy is more general-purpose.) inline svg and mathml support as a completely new parsing feature, html5 introduced support for inline svg and mathml in text/html.
...And 6 more matches
HTML attribute: multiple - HTML: Hypertext Markup Language
us a single line dropdown when the attribute is ommitted.
...perly-formed comma-separated e-mail addresses.
...<input type="file" multiple name="uploads" id="uploads"> when the attribute is omitted, the user can only select a single file per <input>.
...And 6 more matches
HTML attribute: pattern - HTML: Hypertext Markup Language
e string and its end anchored to the end of the string, which is slightly different from javascript regular expressions: in the case of pattern attribute, we are matching against the entire value, not just any subset, as if a ^(?: were implied at the start of the pattern and )$ at the end.
...sions: in the case of pattern attribute, we are matching against the entire value, not just any subset, as if a ^(?: were implied at the start of the pattern and )$ at the end.
...a ^(?: were implied at the start of the pattern and )$ at the end.
...And 6 more matches
<bdi>: The Bidirectional Isolate element - HTML: Hypertext Markup Language
Web › HTML › Element › bdi
ifferently than normal: it defaults to auto, meaning its value is never inherited from the parent element.
...rited from the parent element.
... a value of either rtl or ltr for dir, the user agent will determine the correct directionality to use based on the contents of the <bdi>.
...And 6 more matches
<input type="hidden"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › hidden
s when a form is submitted.
...e the value isn't displayed to the user in the page's content, it is visible—and can be edited—using any browser's developer tools or "view source" functionality.
... user in the page's content, it is visible—and can be edited—using any browser's developer tools or "view source" functionality.
...And 6 more matches
<input type="url"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › url
for any security purposes.
...xample of a valid value, which is displayed inside the edit box when the element's value is "".
...the physical length of the input box, but also the minimum and maximum lengths allowed for the input text itself.
...And 6 more matches
itemscope - HTML: Hypertext Markup Language
itemscope is a boolean global attribute that defines the scope of associated metadata.
... not have an associated itemtype must have an associated itemref.
...>avatar</h1> <span>director: <span itemprop="director">james cameron</span> (born august 16, 1954)</span> <span itemprop="genre">science fiction</span> <a href="https://youtu.be/0ay1xikx7by" itemprop="trailer">trailer</a> </div> structured data the following table shows the structured data from the preceding example.
...And 6 more matches
Set-Cookie2 - HTTP
the obsolete set-cookie2 http response header used to send cookies from the server to the user agent, but has been deprecated by the specification.
... the obsolete set-cookie2 http response header used to send cookies from the server to the user agent, but has been deprecated by the specification.
... the obsolete set-cookie2 http response header used to send cookies from the server to the user agent, but has been deprecated by the specification.
...And 6 more matches
Intl.DateTimeFormat.prototype.formatToParts() - JavaScript
sed for the hour, for example "3" or "03".
...", ",", "o'clock", "de", etc.
... minute the string used for the minute, for example "00".
...And 6 more matches
attributeType - SVG: Scalable Vector Graphics
the attributetype attribute specifies the namespace in which the target attribute and its associated values are defined.
...type attribute specifies the namespace in which the target attribute and its associated values are defined.
...x="0 0 250 250" xmlns="http://www.w3.org/2000/svg"> <rect x="50" y="50" width="100" height="100"> <animate attributetype="xml" attributename="y" from="0" to="50" dur="5s" repeatcount="indefinite"/> </rect> </svg> usage notes value css | xml | auto default value auto animatable no css this value specifies that the value of attributename is the name of a css property defined as animatable.
...And 6 more matches
Subdomain takeovers - Web security
a subdomain takeover occurs when an attacker gains control over a subdomain of a target domain.
... a subdomain takeover occurs when an attacker gains control over a subdomain of a target domain.
... a subdomain takeover occurs when an attacker gains control over a subdomain of a target domain.
...And 6 more matches
<xsl:attribute-set> - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:attribute-set> element creates a named set of attributes, which can then be applied as whole to the output document, in a manner similar to named styles in css.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:attribute-set> element creates a named set of attributes, which can then be applied as whole to the output document, in a manner similar to named styles in css.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:attribute-set> element creates a named set of attributes, which can then be applied as whole to the output document, in a manner similar to named styles in css.
...And 6 more matches
Communicating using "port" - Archive of obsolete content
// handle the message }); compare this to the technique used to receive built-in messages in the content script.
...e two user-defined messages: click is sent from the page-mod to the add-on, when the user clicks an element in the page warning sends a silly string back to the page-mod port.emit() the port.emit() function sends a message from the "main.js", or another add-on module, to a content script, or vice versa.
...le to json.
...And 5 more matches
Porting the Library Detector - Archive of obsolete content
orks the current web page is using.
...-on script, main.js, will use a page-mod to inject the content script into every new page.
...aining its own state by listening for gbrowser events and updating the user interface, the content script will just run when it's loaded, collect the array of library names, and post it back to main.js: function testlibraries() { var win = unsafewindow; var librarylist = []; for(var i in ld_tests) { var passed = ld_tests[i].test(win); if (passed) { var libraryinfo = { name: i, version: passed.version }; librarylist.push(libraryinfo); } } self.postmessage(librarylist); } testlibraries(); main.js responds to that message by fetching the tab corresponding to that worker using worker.tab, and adding the array of library names to that tab's libraries property: pagemod.pagemod({ include: "*", contentscriptwhen: 'end', contentscriptfi...
...And 5 more matches
Testing the Add-on SDK - Archive of obsolete content
s being replaced by toolkit/loader.
...uite of python tests which test cfx itself (which is written in python).
...le add-ons.
...And 5 more matches
request - Archive of obsolete content
r more advanced usage, check out the net/xhr module, based on the browser's xmlhttprequest object.
... url string,url this is the url to which the request will be made.
...readystate == 4).
...And 5 more matches
window/utils - Archive of obsolete content
h of options as its second argument.
... window'); this function wraps nsiwindowwatcher.openwindow.
...unction wraps nsiwindowwatcher.openwindow.
...And 5 more matches
Enhanced Extension Installation - Archive of obsolete content
n initiation when an item is installed from the web, xpinstall is invoked and it calls into the extension system when it discovers that the xpi file contains an install.rdf manifest.
...ns.ini file listing the directories for the currently "active" items.
...a directory-based install location for items living in the application global extensions directory.
...And 5 more matches
Interaction between privileged and non-privileged pages - Archive of obsolete content
setattribute("attribute2", "hello world"); document.documentelement.appendchild(element); var evt = document.createevent("events"); evt.initevent("myextensionevent", true, false); element.dispatchevent(evt); this code creates an arbitrary element -- <myextensiondataelement/> -- and inserts it into the web page's dom.
...ents"); evt.initevent("myextensionevent", true, false); element.dispatchevent(evt); this code creates an arbitrary element -- <myextensiondataelement/> -- and inserts it into the web page's dom.
...extensionevent -- similar to the standard dom click event you catch with onclick handlers.
...And 5 more matches
Inner-browsing extending the browser navigation paradigm - Archive of obsolete content
des less fine-grained control over the experience, and it can strain bandwidth and other resources.
...he same model with a data loader and data binder component.
...edure traverses the dom that was returned via xmlhttprequest and generates markup based on the data provided in the dom nodes.
...And 5 more matches
Source code directories overview - Archive of obsolete content
it is a living document which is (supposed to be) updated monthly according to changes in the mozilla source tree.
...y according to changes in the mozilla source tree.
...n naming scheme is used throughout the mozilla source trees.
...And 5 more matches
ActiveX Control for Hosting Netscape Plug-ins in IE - Archive of obsolete content
a note to developers if you intend to modify this control in any way then you must also change the clsid from {dbb2de32-61f1-4f7f-beb8-a37f5bc24ee2} to something else and any other guids this control relies upon (iid, libids etc).
..., libids etc).
...tall it on a machine, you must register it either through an install script or manually: regsvr32 pluginhostctrl.dll you must have administrator privileges to install a new control on operating systems such as windows nt, 2000 & xp.
...And 5 more matches
Compiling The npruntime Sample Plugin in Visual Studio - Archive of obsolete content
general decisions filename of dll must start with "np" (not "ns") and ends with ".dll" (i wasted hours on this - repeatedly) mimetype reflects the data type handled by the plugin.
...tudio for a win32 gui library (dll) (in .net 2003: win32 template, then switch to dll in application settings in the following dialog, export symbols too?)(in visual studio 2008, it is visualc++|win32|win32 project, then check dll in the wizard).
...n switch to dll in application settings in the following dialog, export symbols too?)(in visual studio 2008, it is visualc++|win32|win32 project, then check dll in the wizard).
...And 5 more matches
importUserCertificates - Archive of obsolete content
at the bottom of this page to guide your decision.
... any time.
... features mentioned in this article are deleted proprietary mozilla extensions, and are not supported in any other browser.
...And 5 more matches
XML in Mozilla - Archive of obsolete content
y of specifications are supported, as well as other related technologies.
...ion.
...exercise the html code path.
...And 5 more matches
Using XPInstall to Install Plugins - Archive of obsolete content
ave already written a native code (e.g.
...myfile.typ" width="50" height="50" pluginurl="http://mytypecompany.xyz/jarpacks/mytypeplugin.jar"></embed> in the example above, the pluginurl attribute points to the signed jar file, which netscape communicator 4.x would then download (subject to the security dialog boxes) if the plugin was not located on the user's machine.
... to write and the information they should contain is discussed in detail in the specification posted on mozilla.org.
...And 5 more matches
How to implement a custom XUL query processor component - Archive of obsolete content
w xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <grid> <columns> <column flex="1"/> <column flex="3"/> <column flex="2"/> <column flex="1"/> </columns> <rows datasources="dummy" ref="." querytype="simpledata"> <template> <row uri="?"> <label value="?name"/> <label value="?age"/> <label value="?hair"/> <label value="?eye"/> </row> </template> </rows> </grid> </window> a few things to note.
...> </template> </rows> </grid> </window> a few things to note.
...erface: xpcomutils.generateqi([components.interfaces.nsixultemplateresult]), // private storage _data: null, // right now our results are flat lists, so no containing/recursion take place iscontainer: false, isempty: true, mayprocesschildren: false, resource: null, type: "simple-item", get id() { return this._id; }, // return the value of that bound variable such as ?name getbindingfor: function(avar) { // strip off the ?
...And 5 more matches
Install Scripts - Archive of obsolete content
r own xpcom components.
... to know for an installation is that the registry stores a set of information about your application, such as the file list and versions.
...is that the registry stores a set of information about your application, such as the file list and versions.
...And 5 more matches
More Menu Features - Archive of obsolete content
m.
... can create the radio style of checks by setting the type to a value of radio.
...reviously selected item is unchecked.
...And 5 more matches
XUL Structure - Archive of obsolete content
atures can be shared between both.
...long.
...d allow other parts, such as the text for different languages, to be downloaded separately.
...And 5 more matches
menuitem - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a single choice in a menupopup element.
...of menuitem-iconic for the image to appear.
...for the image to appear.
...And 5 more matches
stringbundle - Archive of obsolete content
lement which can be used to load localized resources from property files.
...used to load localized resources from property files.
... src attribute.
...And 5 more matches
NPN_GetStringIdentifiers - Archive of obsolete content
« gecko plugin api reference « scripting plugins summary returns an array of opaque identifiers for the names that are passed in.
... « gecko plugin api reference « scripting plugins summary returns an array of opaque identifiers for the names that are passed in.
... « gecko plugin api reference « scripting plugins summary returns an array of opaque identifiers for the names that are passed in.
...And 5 more matches
ActiveXObject - Archive of obsolete content
warning: this object is a microsoft extension and is supported in internet explorer only, not in windows 8.x store apps.
... warning: this object is a microsoft extension and is supported in internet explorer only, not in windows 8.x store apps.
... warning: this object is a microsoft extension and is supported in internet explorer only, not in windows 8.x store apps.
...And 5 more matches
Issues Arising From Arbitrary-Element hover - Archive of obsolete content
for legacy documents, browsers based on mozilla 1.0 and later (netscape 7+) include code that causes bare pseudo-classes to be restricted only to links if the document is rendered in "quirks" mode.
...k is extended to cover selectors that combine a bare class selector with the :hover pseudo-class (see bug 169078 for details).
...e class selector with the :hover pseudo-class (see bug 169078 for details).
...And 5 more matches
XUL Parser in Python - Archive of obsolete content
rser() >>> chrome_dir = 'd:\src\mozilla\xpfe' >>> res = myxp.parsexul(chrome_dir, 'window', 'id') where something like the above would write out all the xul window ids in the build.
...uess you could get a modify date from the files as you open them.
...he attributes' values, so all you have to do as you hit each xul element is build up a nested dictionary of elements and their associated attributes.
...And 5 more matches
Building up a basic demo with PlayCanvas editor - Game development
rojects and manage them, change their settings etc.
...ues in the right panel.
...me colors to the scene we need a new material that will be used on the newly created box.
...And 5 more matches
Introduction to CSS layout - Learn web development
being able to change the default presentation by turning an item from block to inline and vice versa, there are some bigger layout methods that start out as a value of display.
...dered a legacy method at this point, for those situations where you have very old browsers without support for flexbox or grid.
...ose situations where you have very old browsers without support for flexbox or grid.
...And 5 more matches
How much does it cost to do something on the Web? - Learn web development
getting involved on the web isn't as cheap as it looks.
...for “reasonable” bandwidth usage.
......
...And 5 more matches
How to build custom form controls - Learn web development
--> <ul class="optlist"> <!-- each option only contains the value to be displayed, we'll see later how to handle the real value that will be sent with the form data --> <li class="option">cherry</li> <li class="option">lemon</li> <li class="option">banana</li> <li class="option">strawberry</li> <li class="option">apple</li> </ul> </div> note the use of class names; these identify each relevant part regardless of the actual underlying html elements used.
... class names; these identify each relevant part regardless of the actual underlying html elements used.
... this, we need two things: first, we need to add a regular <select> element before each instance of our custom control.
...And 5 more matches
Creating reftest-based unit tests
the first line of mach.
...n the tests.
... the "--disable-tests" option and reftest will not work - see bug 369809.
...And 5 more matches
Configuring Build Options
mozconfig isn't in your source directory, you can also use the mozconfig environment variable to specify the path to your mozconfig.
...you can also use the mozconfig environment variable to specify the path to your mozconfig.
...specify a moz_objdir, it will be automatically set to @topsrcdir@/obj-@config_guess@.
...And 5 more matches
How Mozilla's build system works
d file is actually a python script.
... are unlike most python scripts.
...on/mozbuild/mozbuild/frontend/context.py.
...And 5 more matches
BloatView
auses a bloat log to be printed on program exit, and each time nstracerefcnt::dumpstatistics is called.
... 60| 89987 3| 302 |pcompositorchild | 412 412| 1 1| 308 |pimagebridgechild | 416 416| 1 1| the first line tells you the pid of the leaking process, along with the type of process.
...cing and balancing to discover the root cause.
...And 5 more matches
NSS Sample Code Utilities_1
server environments * where prompting the user for a password or requiring it * to be entered in the command line is not a feasible option.
... prompting the user for a password or requiring it * to be entered in the command line is not a feasible option.
...ord * case a line would just have the password whereas in the multi- * password variant they could be of the form * * token_1_name:its_password * token_2_name:its_password * */ char *filepasswd(pk11slotinfo *slot, prbool retry, void *arg) { char* phrases, *phrase; prfiledesc *fd; print32 nb; char *pwfile = arg; int i; const long maxpwdfilesize = 4096; char* tokenname = null; int tokenlen = 0; if (!pwfile) return 0; if (retry) { return 0; /* no good retrying - the file contents will be the same */ } phrases = port_zalloc(maxpwdfilesize); if (!phrases) { return 0; /* out of memory */ } fd = pr_open(pwfile, pr_rdonly, 0); if (!fd) { fprintf(stderr, "no password file \"%s\" exists.\n", pwfi...
...And 5 more matches
PKCS11 Implement
ds a new module.
...urned should include all the pkcs 2.0 function calls.
... the pkcs 2.0 function calls.
...And 5 more matches
NSS reference
s initialization and shutdown nss_init nss_initreadwrite nss_nodb_init nss_initialize nss_shutdown utility functions based on "utility functions" in nss public functions.
...write nss_nodb_init nss_initialize nss_shutdown utility functions based on "utility functions" in nss public functions.
... "certificate functions" in nss public functions.
...And 5 more matches
sslintro.html
ssible to force the handshake explicitly with ssl_forcehandshake or repeat it explicitly with ssl_rehandshake.
...ehandshake.
....
...And 5 more matches
NSS_3.12.3_release_notes.html
ffect these new behaviors.
... nss_use_decoded_cka_ec_point boolean (any non-empty value to enable) tells nss to send ec key points across the pkcs#11 interface in the non-standard unencoded format that was used by default before nss 3.12.3.
...key points across the pkcs#11 interface in the non-standard unencoded format that was used by default before nss 3.12.3.
...And 5 more matches
JS_CompileScriptForPrincipals
obsolete since jsapi 28this feature is obsolete.
... compile a security-enabled script for execution.
... length, const char *filename, unsigned int lineno); jsscript * js_compileucscriptforprincipals(jscontext *cx, jsobject *obj, jsprincipals *principals, const jschar *src, size_t length, const char *filename, unsigned int lineno); jsobject * js_compilescriptforprincipalsversion(jscontext *cx, jsobject *obj, jsprincipals *principals, const char *src, size_t length, const char *filename, unsigned int lineno, jsversion version); // obsoleted since jsapi 19 jsobject * js_compileucscriptforprincipalsversion(jscontext *cx, jsobject *obj, jsprincipals *principals, const jschar *src, size_t length, const char *filename, unsigned int lineno, jsversion version); // obsoleted since jsapi 19 name type description cx jscontext * the context in which...
...And 5 more matches
JS_EvaluateScript
obsolete since jsapi 36this feature is obsolete.
...se is discouraged since it could be removed at any time.
... try to avoid using it.
...And 5 more matches
JS_EvaluateScriptForPrincipals
obsolete since jsapi 30this feature is obsolete.
...cute a security-enabled script.
...igned int lineno, jsval *rval); jsbool js_evaluatescriptucforprincipals(jscontext *cx, jsobject *obj, jsprincipals *principals, const jschar *src, unsigned int length, const char *filename, unsigned int lineno, jsval *rval); jsbool js_evaluatescriptforprincipalsversion(jscontext *cx, jsobject *obj, jsprincipals *principals, const char *bytes, unsigned int length, const char *filename, unsigned int lineno, jsval *rval, jsversion version); jsbool js_evaluateucscriptforprincipalsversion(jscontext *cx, jsobject *obj, jsprincipals *principals, const jschar *chars, unsigned int length, const char *filename, unsigned int lineno, jsval *rval, jsversion version); name type description cx jscontext * the context in which to run the script.
...And 5 more matches
JS_HasOwnProperty
this article covers features introduced in spidermonkey 45 determine whether a javascript object has a specified own property.
... this article covers features introduced in spidermonkey 45 determine whether a javascript object has a specified own property.
... bool* foundp) bool js_hasownpropertybyid(jscontext* cx, handleobject obj, handleid id, bool* foundp) name type description cx jscontext * a context.
...And 5 more matches
TPS Tests
tps is an end to end test for sync.
... tps is an end to end test for sync.
... tps is an end to end test for sync.
...And 5 more matches
Mozilla internal string guide
mless but consistent state (containing a single replacement character if a capacity greater than 0 was requested, or in the char case if the three-byte utf-8 representation of the replacement character doesn't fit, an ascii substitute).
...sstring(const nsastring& str) { const nsastring& firstfive = substring(str, 0, 5); // from index 0, length 5 // firstfive is now a string representing the first 5 characters } unicode conversion ns*cstring vs.
...ll init(const nsliteralstring&) - enforces that it's only called with literals init(u"start value"_ns); // call init(const nsastring&) init(u"start value"_ns); // call init(const nsacstring&) init("start value"_ns); in case a literal is defined via a macro, you can just convert it to nsliteralstring or nsliteralcstring using their constructor.
...And 5 more matches
mozIStorageRow
ce represents a row in the result set from a storage database query.
...n the result set from a storage database query.
...tring aname); methods getresultbyindex() returns the value from a specific column in the row, using a zero-based index to identify the column.
...And 5 more matches
nsIAuthModule
hmodule.idlscriptable this interface is intended to be used as server and client authentication service.
...d client authentication service.
...r is given by aouttokenlength.
...And 5 more matches
nsIContentPrefObserver
dom/interfaces/base/nsicontentprefservice.idlscriptable this interface allows code to easily watch for changes to the values of content preferences.
...nsicontentprefservice.idlscriptable this interface allows code to easily watch for changes to the values of content preferences.
... inherits from: nsisupports last changed in gecko 1.9 (firefox 3) method overview void oncontentprefremoved(in astring agroup, in astring aname); void oncontentprefset(in astring agroup, in astring aname, in nsivariant avalue); methods oncontentprefremoved() called when a content preference is removed.
...And 5 more matches
nsIHttpChannel
nalresponseheader() get the value of a particular original response header, that is, in the same form as it came from the network.
... headers will have an empty string as value and multiple headers will not be merged as opposed to getresponseheader().
...er, in nsihttpheadervisitor avisitor ); parameters aheader the case-insensitive name of the response header to query (for example "set-cookie").
...And 5 more matches
nsILivemarkService
ox 3.6 / thunderbird 3.1 / fennec 1.0) this interface is obsolete.
...is service, use: var livemarkservice = components.classes["@mozilla.org/browser/livemark-service;2"] .getservice(components.interfaces.nsilivemarkservice); method overview long long createlivemark(in long long folder, in astring name, in nsiuri siteuri, in nsiuri feeduri, in long index); long long createlivemarkfolderonly(in long long folder, in astring name, in nsiuri siteuri, in nsiuri feeduri, in long index); nsiuri getfeeduri(in long long container); long long getlivemarkidforfeeduri(in nsiuri afeeduri); nsiuri getsiteuri(in long long container); boolean islivemark(in long long folder); void reloadalllivemarks(); void reloadlivemarkfolder(in long long folderid); void setfeeduri(in l...
...loadalllivemarks(); void reloadlivemarkfolder(in long long folderid); void setfeeduri(in long long container, in nsiuri feeduri); void setsiteuri(in long long container, in nsiuri siteuri); void start(); void stopupdatelivemarks(); methods createlivemark() creates a new livemark.
...And 5 more matches
nsIProperties
xpcom/ds/nsiproperties.idlscriptable this interface provides methods to access a map of named xpcom object values.
...nterfaces.nsiproperties); method overview void get(in string prop, in nsiidref iid, [iid_is(iid),retval] out nsqiresult result); void getkeys(out pruint32 count, [array, size_is(count), retval] out string keys); boolean has(in string prop); void set(in string prop, in nsisupports value); void undefine(in string prop); methods get() gets the xpcom object associated with a particular name.
... void getkeys(out pruint32 count, [array, size_is(count), retval] out string keys); boolean has(in string prop); void set(in string prop, in nsisupports value); void undefine(in string prop); methods get() gets the xpcom object associated with a particular name.
...And 5 more matches
nsIUpdateItem
bsolete gecko 2.0 inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) this interface is obsolete; instead of using the extension manager, you should use the addon manager.
...ng downloadurl, in astring xpihash, in astring iconurl, in astring updateurl, in astring updatekey, in long type, in astring targetappid); attributes attribute type description iconurl astring the url of the icon that can be shown for this item.
...item.
...And 5 more matches
nsIWebContentHandlerRegistrar
e below "gmail" and "yahoo!
... domwindows.getnext(); if (adomwindow.gbrowser) { if (adomwindow.gbrowser.tabcontainer) { //adomwindow has tabs var tabs = adomwindow.gbrowser.tabcontainer.childnodes; for (var i = 0; i < tabs.length; i++) { console.log(tabs[i].linkedbrowser.contentwindow.location); if (tabs[i].linkedbrowser.contentwindow.location.hostname == myurihostname) { htmlcontentwindow = tabs[i].linkedbrowser.contentwindow; break; //break for loop } } if (htmlcontentwindow) { break; //break while loop } } else { //adomwindow doest have any tabs if (adomwindow.gbrowser.contentwindow.location.hostname == ...
...hostname) { htmlcontentwindow = tabs[i].linkedbrowser.contentwindow; break; //break for loop } } if (htmlcontentwindow) { break; //break while loop } } else { //adomwindow doest have any tabs if (adomwindow.gbrowser.contentwindow.location.hostname == myurihostname) { htmlcontentwindow = adomwindow.contentwindow; break; } } } else { //adomwindow is a popup window if (adomwindow.location.hostname == myurihostname) { htmlcontentwindow = adomwindow; break; } } } // this section here is long and daunting, but its just finding a suitable contentwindow if ...
...And 5 more matches
nsIZipWriter
ions you wish to perform are added to the queue, a call to processqueue() will perform the operations in the order they were added to the queue.
...runcated/deleted var filetoaddtozip = fileutils.file('c:\\add this file.txt'); var saveinzipas = 'blah.txt'; zw.addentryfile(saveinzipas, ci.nsizipwriter.compression_none, filetoaddtozip, false); in the above example, the file ("add this file.txt") located at "c:\add this file.txt" will be added to the zip file "c:\myzipfile.zip", however in the zip file this file ("add this file.txt") will be named "blah.txt".
....txt'; zw.addentryfile(saveinzipas, ci.nsizipwriter.compression_none, filetoaddtozip, false); in the above example, the file ("add this file.txt") located at "c:\add this file.txt" will be added to the zip file "c:\myzipfile.zip", however in the zip file this file ("add this file.txt") will be named "blah.txt".
...And 5 more matches
Using nsIPasswordManager
re storage of sensitive password information.
... to get a component implementing nsipasswordmanager, use the following: var passwordmanager = components.classes["@mozilla.org/passwordmanager;1"] .getservice(components.interfaces.nsipasswordmanager); storing a password to store a password in the password manager, you need three things: a hostname/url (you'll need this to retrieve the password again later), a username, and a password.
...components.interfaces.nsipasswordmanager); storing a password to store a password in the password manager, you need three things: a hostname/url (you'll need this to retrieve the password again later), a username, and a password.
...And 5 more matches
Buddy icons in mail
warning: the content of this article may be out of date.
... warning: the content of this article may be out of date.
...may be out of date.
...And 5 more matches
MailNews fakeserver
ing liberal with the specs will require different handlers.
...rver since the number of protocols we use is very small, most people shouldn't have to write an entirely new daemon and handler setup by themselves.
...s and will normalize all occurrences of '\n' (but not '\r') to '\r\n' for you, as well as append the '\r\n' to the response if not present.
...And 5 more matches
Building a Thunderbird extension 3: install manifest
out the extension.
...e file called install.rdf that you created at the top of your extension's directory hierarchy and paste the following text into the file: <?xml version="1.0"?> <rdf xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <description about="urn:mozilla:install-manifest"> <em:id>myfirstext@jen.zed</em:id> <em:name>my first extension</em:name> <em:version>1.0</em:version> <em:creator>jenzed</em:creator> <em:targetapplication> <description> <em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id> <em:minversion>1.5</em:minversion> <em:maxversion>5.0.*</em:maxversion> </description> </em:targetapplication> </description> </rdf> the following items (shown in bold) should be customiz...
...<em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id> <em:minversion>1.5</em:minversion> <em:maxversion>5.0.*</em:maxversion> </description> </em:targetapplication> </description> </rdf> the following items (shown in bold) should be customized for your application: <em:id>myfirstext@jen.zed</em:id>: this is the id of the extension.
...And 5 more matches
URLs - Plugins
plug-ins can request and receive the data associated with urls of any type that the browser can handle, including http, ftp, news, mailto, and gopher.
...null.
...isplaying the page to retrieve a url and display it on a specified target page, you use the npn_geturl and npn_geturlnotify functions.
...And 5 more matches
Migrating from Firebug - Firefox Developer Tools
the request you switch to the network monitor, which has a preview tab.
...g xpaths.
... properties of the style attribute of an element, in firebug you have to right-click into the style side panel and choose edit element style...
...And 5 more matches
Taking screenshots - Firefox Developer Tools
he clipboard from firefox 53, you can also copy the screenshot to the clipboard.
...o copied to the clipboard.
...want to pop open a menu or invoke a hover state for the screenshot.
...And 5 more matches
Web Console Helpers - Firefox Developer Tools
ll be copied to the clipboard.
..., you can use the arrow keys to navigate the object.
...navigate the object.
...And 5 more matches
Document.enableStyleSheetsForSet() - Web APIs
enables the style sheets matching the specified name in the current style sheet set, and disables all other style sheets (except those without a title, which are always enabled).
... enables the style sheets matching the specified name in the current style sheet set, and disables all other style sheets (except those without a title, which are always enabled).
... enables the style sheets matching the specified name in the current style sheet set, and disables all other style sheets (except those without a title, which are always enabled).
...And 5 more matches
Document.execCommand() - Web APIs
thod to run commands that manipulate the current editable region, such as form inputs or contenteditable elements.
...tenteditable, execcommand() affects the currently active editable element.
...ts the currently active editable element.
...And 5 more matches
How to create a DOM tree - Web APIs
this page describes how to use the dom core api in javascript to create and modify dom objects.
... this page describes how to use the dom core api in javascript to create and modify dom objects.
... (extensions) and unprivileged (web pages) code.
...And 5 more matches
Element.removeAttributeNS() - Web APIs
the removeattributens() method of the element interface removes the specified attribute from an element.
... the removeattributens() method of the element interface removes the specified attribute from an element.
... the removeattributens() method of the element interface removes the specified attribute from an element.
...And 5 more matches
FileSystemEntry.moveTo() - Web APIs
the filesystementry interface's method moveto() moves the file specified by the entry to a new location on the file system, or renames the file if the destination directory is the same as the source.
... the filesystementry interface's method moveto() moves the file specified by the entry to a new location on the file system, or renames the file if the destination directory is the same as the source.
... the filesystementry interface's method moveto() moves the file specified by the entry to a new location on the file system, or renames the file if the destination directory is the same as the source.
...And 5 more matches
FormData.get() - Web APIs
Web › API › FormData › get
the get() method of the formdata interface returns the first value associated with a given key from within a formdata object.
... the get() method of the formdata interface returns the first value associated with a given key from within a formdata object.
... the get() method of the formdata interface returns the first value associated with a given key from within a formdata object.
...And 5 more matches
FormData.has() - Web APIs
Web › API › FormData › has
the has() method of the formdata interface returns a boolean stating whether a formdata object contains a certain key.
... the has() method of the formdata interface returns a boolean stating whether a formdata object contains a certain key.
... the has() method of the formdata interface returns a boolean stating whether a formdata object contains a certain key.
...And 5 more matches
Headers.getAll() - Web APIs
Web › API › Headers › getAll
obsolete since gecko 52 (firefox 52 / thunderbird 52 / seamonkey 2.49)this feature is obsolete.
...in a headers object with a given name; in newer versions of the fetch spec, it has been deleted, and headers.get() has been updated to fetch all header values instead of only the first one.
...; in newer versions of the fetch spec, it has been deleted, and headers.get() has been updated to fetch all header values instead of only the first one.
...And 5 more matches
IDBDatabase.createObjectStore() - Web APIs
the createobjectstore() method of the idbdatabase interface creates and returns a new object store or index.
...at lets you define important optional properties.
... properties.
...And 5 more matches
IDBDatabase.deleteObjectStore() - Web APIs
the deleteobjectstore() method of the idbdatabase interface destroys the object store with the given name in the connected database, along with any indexes that reference it.
... the deleteobjectstore() method of the idbdatabase interface destroys the object store with the given name in the connected database, along with any indexes that reference it.
... the deleteobjectstore() method of the idbdatabase interface destroys the object store with the given name in the connected database, along with any indexes that reference it.
...And 5 more matches
IDBDatabase - Web APIs
tabase" target="_top"><rect x="151" y="1" width="110" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="206" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">idbdatabase</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties idbdatabase.name read only a domstring that contains the name of the connected database.
...dbdatabase</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties idbdatabase.name read only a domstring that contains the name of the connected database.
...95dd; pointer-events: all;} properties idbdatabase.name read only a domstring that contains the name of the connected database.
...And 5 more matches
IDBFactorySync - Web APIs
tended for use only with web workers, and was eventually removed from the spec because its need was questionable.
...ssing the capabilities of indexed databases.
...basesync open (in domstring name, in domstring description, in optional boolean modifydatabase) raises (idbdatabaseexception); methods open() opens and returns a connection to a database.
...And 5 more matches
IDBObjectStore.createIndex() - Web APIs
ear in mind that indexeddb indexes can contain any javascript data type; indexeddb uses the structured clone algorithm to serialize stored objects, which allows for storage of simple and complex objects.
...data type; indexeddb uses the structured clone algorithm to serialize stored objects, which allows for storage of simple and complex objects.
...m to serialize stored objects, which allows for storage of simple and complex objects.
...And 5 more matches
Location - Web APIs
Web › API › Location
s the location (url) of the object it is linked to.
...rl) of the object it is linked to.
...elates to.
...And 5 more matches
Recording a media element - Web APIs
while the article using the mediastream recording api demonstrates using the mediarecorder interface to capture a mediastream generated by a hardware device, as returned by navigator.mediadevices.getusermedia(), you can also use an html media element (namely <audio> or <video>) as the source of the mediastream to be recorded.
...ed by a hardware device, as returned by navigator.mediadevices.getusermedia(), you can also use an html media element (namely <audio> or <video>) as the source of the mediastream to be recorded.
...ing process: function startrecording(stream, lengthinms) { let recorder = new mediarecorder(stream); let data = []; recorder.ondataavailable = event => data.push(event.data); recorder.start(); log(recorder.state + " for " + (lengthinms/1000) + " seconds..."); let stopped = new promise((resolve, reject) => { recorder.onstop = resolve; recorder.onerror = event => reject(event.name); }); let recorded = wait(lengthinms).then( () => recorder.state == "recording" && recorder.stop() ); return promise.all([ stopped, recorded ]) .then(() => data); } startrecording() takes two input parameters: a mediastream to record from and the length in milliseconds of the recording to make.
...And 5 more matches
MutationEvent - Web APIs
that have the mutation event listeners.
... listeners.
...upport these events are not implemented consistently across different browsers, for example: ie prior to version 9 didn't support the mutation events at all and does not implement some of them correctly in version 9 (for example, domnodeinserted) webkit doesn't support domattrmodified (see webkit bug 8191 and the workaround) "mutation name events", i.e.
...And 5 more matches
MutationObserverInit.attributeOldValue - Web APIs
ing whether or not the prior value of a changed attribute should be included in the mutationobserver.oldvalue property when reporting attribute value changes.
...in the mutationobserver.oldvalue property when reporting attribute value changes.
...value is set accordingly.
...And 5 more matches
WebGLRenderingContext.getActiveUniform() - Web APIs
the webglrenderingcontext.getactiveuniform() method of the webgl api returns a webglactiveinfo object containing size, type, and name of a uniform attribute.
...er_2d_array gl.sampler_2d_array_shadow gl.sampler_cube_shadow gl.int_sampler_2d gl.int_sampler_3d gl.int_sampler_cube gl.int_sampler_2d_array gl.unsigned_int_sampler_2d gl.unsigned_int_sampler_3d gl.unsigned_int_sampler_cube gl.unsigned_int_sampler_2d_array when gl.linkprogram is called, webgl creates a list of active uniforms.
...d_int_sampler_3d gl.unsigned_int_sampler_cube gl.unsigned_int_sampler_2d_array when gl.linkprogram is called, webgl creates a list of active uniforms.
...And 5 more matches
WebGLRenderingContext.getFramebufferAttachmentParameter() - Web APIs
the webglrenderingcontext.getframebufferattachmentparameter() method of the webgl api returns information about a framebuffer's attachment.
...attachment4_webgl ext.color_attachment5_webgl ext.color_attachment6_webgl ext.color_attachment7_webgl ext.color_attachment8_webgl ext.color_attachment9_webgl ext.color_attachment10_webgl ext.color_attachment11_webgl ext.color_attachment12_webgl ext.color_attachment13_webgl ext.color_attachment14_webgl ext.color_attachment15_webgl pname a glenum specifying information to query.
... ext.color_attachment10_webgl ext.color_attachment11_webgl ext.color_attachment12_webgl ext.color_attachment13_webgl ext.color_attachment14_webgl ext.color_attachment15_webgl pname a glenum specifying information to query.
...And 5 more matches
WebGLRenderingContext.getParameter() - Web APIs
the webglrenderingcontext.getparameter() method of the webgl api returns a value for the passed parameter name.
... the webglrenderingcontext.getparameter() method of the webgl api returns a value for the passed parameter name.
... the webglrenderingcontext.getparameter() method of the webgl api returns a value for the passed parameter name.
...And 5 more matches
Generating HTML - Web APIs
mon application of xslt in the browser is to transform xml into html on the client.
...lt in the browser is to transform xml into html on the client.
...he client.
...And 5 more matches
@supports - CSS: Cascading Style Sheets
Web › CSS › @supports
ide any other conditional group at-rule.
...face csssupportsrule.
...| ( <ident> <any-value> )where <supports-decl> = ( <declaration> )<supports-selector-fn> = selector( <complex-selector> )where <complex-selector> = <compound-selector> [ <combinator>?
...And 5 more matches
Using CSS counters - CSS: Cascading Style Sheets
mented by css rules to track how many times they're used.
...to any specific number.
...ber.
...And 5 more matches
Mutation events - Developer guides
that have the mutation event listeners.
... listeners.
...upport these events are not implemented consistently across different browsers, for example: ie prior to version 9 didn't support the mutation events at all and does not implement some of them correctly in version 9 (for example, domnodeinserted) webkit doesn't support domattrmodified (see webkit bug 8191 and the workaround) "mutation name events", i.e.
...And 5 more matches
<a>: The Anchor element - HTML: Hypertext Markup Language
Web › HTML › Element › a
.
...d of navigating to it.
...t a filename/extension, generated from various sources: the content-disposition http header the final segment in the url path the media type (from the (content-type header, the start of a data: url, or blob.type for a blob: url) defining a value suggests it as the filename.
...And 5 more matches
<input type="date"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › date
dvice on mitigating the browser support issue later (see handling browser support).
...to https://example.com — resulting in a url like https://example.com/?bday=1955-06-08.
...quired attribute to make filling in the date mandatory — an error will be displayed if you try to submit an empty date field.
...And 5 more matches
<input type="email"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › email
visually denote whether the current value of the field is a valid e-mail address or not.
...validated as conforming to e-mail syntax.
...ming to e-mail syntax.
...And 5 more matches
Microdata - HTML: Hypertext Markup Language
earch engines and web crawlers can extract and process microdata from a web page and use it to provide a richer browsing experience for users.
...ion on web pages and provide more relevant results to users.
...ers.
...And 5 more matches
MIME types (IANA media types) - HTTP
es.
...t, it consists of different parts, delimited by a boundary (a string starting with a double dash --).
...ifferent parts, delimited by a boundary (a string starting with a double dash --).
...And 5 more matches
Enumerability and ownership of properties - JavaScript
enumerable and nonenumerable not available without extra code not available without extra code in not available without extra code retrieval enumerable nonenumerable enumerable and nonenumerable object.keys getownpropertynames getownpropertysymbols getownpropertynames, getownpropertysymbols – filtered to exclude enumerables using propertyisenumerable getownpropertynames getownpropertysymbols not available without extra code not available without extra code iterable enumerable nonenumerab...
...enumerables using propertyisenumerable getownpropertynames getownpropertysymbols not available without extra code not available without extra code iterable enumerable nonenumerable enumerable and nonenumerable object.keys getownpropertynames getownpropertysymbols getownpropertynames, getownpropertysymbols – filtered to exclude enumerables using propertyisenumerable getownpropertynames getownpropertysymbols enumerable nonenumerable enumerable and nonenumerable for..in ...
...gorithm for all cases, but useful for a quick demonstration.
...And 5 more matches
Loops and iteration - JavaScript
, the function contains a for statement that counts the number of selected options in a scrolling list (a <select> element that allows multiple selections).
... selections).
...' + i); console.log('j = ' + j); } for...in statement the for...in statement iterates a specified variable over all the enumerable properties of an object.
...And 5 more matches
Method definitions - JavaScript
starting with ecmascript 2015, a shorter syntax for method definitions on objects initializers is introduced.
...following code: const obj = { foo: function() { // ...
...x as well.
...And 5 more matches
arguments.callee - JavaScript
the arguments.callee property contains the currently executing function.
... the arguments.callee property contains the currently executing function.
... to refer to the currently executing function inside the function body of that function.
...And 5 more matches
Object.freeze() - JavaScript
"?
...ddition, removal or value re-assignment operations only on object.
...ess loop will be triggered.
...And 5 more matches
Object.prototype.toSource() - JavaScript
following string indicating that the source code is not available: function object() { [native code] } for instances of object, tosource() returns a string representing the source code.
...g indicating that the source code is not available: function object() { [native code] } for instances of object, tosource() returns a string representing the source code.
...ating that the source code is not available: function object() { [native code] } for instances of object, tosource() returns a string representing the source code.
...And 5 more matches
Operator precedence - JavaScript
then the a is also set to 5, the return value of b = 5, aka right operand of the assignment.
... b = 5, aka right operand of the assignment.
... order of evaluation is always left-to-right irregardless of associativity.
...And 5 more matches
Optional chaining (?.) - JavaScript
which a method might be unavailable, either due to the age of the implementation or because of a feature which isn't available on the user's device.
...function dosomething(oncontent, onerror) { try { // ...
...ing the bracket notation of the property accessor: let nestedprop = obj?.['prop' + 'name']; optional chaining not valid on the left-hand side of an assignment let object = {}; object?.property = 1; // uncaught syntaxerror: invalid left-hand side in assignment array item access with optional chaining let arrayitem = arr?.[42]; examples basic example this example looks for the value of the name property for the member bar in a map when there is no such member.
...And 5 more matches
this - JavaScript
xt the behavior of this in classes and functions is similar, since classes are functions under the hood.
... object the method was called on, as if the method were on the object.
... other than addeventlistener()).
...And 5 more matches
Making PWAs work offline with Service workers - Progressive web apps (PWAs)
ivated.
...ts we are interested in — the first one is the install event: self.addeventlistener('install', (e) => { console.log('[service worker] install'); }); in the install listener, we can initialize the cache and add files to it for offline use.
...rays are merged using the array.prototype.concat() function.
...And 5 more matches
Using custom elements - Web Components
nts.
...a web document is the customelementregistry object — this object allows you to register a custom element on the page, return information on what custom elements are registered, etc.
...ard html elements.
...And 5 more matches
system-property - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the system-property function returns an object representing the given system-property.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the system-property function returns an object representing the given system-property.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the system-property function returns an object representing the given system-property.
...And 5 more matches
querystring - Archive of obsolete content
utility functions for working with query strings.
...{ foo: 'bar', baz: 4 }); // => 'foo=bar&baz=4' by default '&' and'=' are used as separator and assignment characters, but you can override this using additional optional parameters: querystring.stringify({ foo: 'bar', baz: 4 }, ';', ':'); // => 'foo:bar;baz:4' parameters fields : object the data to convert to a query string.
...d assignment characters, but you can override this using additional optional parameters: querystring.stringify({ foo: 'bar', baz: 4 }, ';', ':'); // => 'foo:bar;baz:4' parameters fields : object the data to convert to a query string.
...And 4 more matches
io/file - Archive of obsolete content
need to require("chrome") and use the xpcom directory service as described in this article about file i/o.
... for example, to specify the file at c:\users\myk, you need to use the string "c:\\users\\myk", not "c:\users\myk".
... path parameter must be an absolute path, relative paths will cause an error.
...And 4 more matches
io/text-streams - Archive of obsolete content
experimental provides streams for reading and writing text.
... experimental provides streams for reading and writing text.
... experimental provides streams for reading and writing text.
...And 4 more matches
places/bookmarks - Archive of obsolete content
e also get bookmarks that // match the second query.
...h 'mozilla', get returned // as well in this query }); globals constructors bookmark(options) creates an unsaved bookmark instance.
...hat the bookmark lives under.
...And 4 more matches
preferences/event-target - Archive of obsolete content
ese are the same preferences that are exposed to users in the about:config page.
... exposed to users in the about:config page.
...the add-on manager.
...And 4 more matches
console - Archive of obsolete content
or more javascript objects as arguments and log them to the console.
...me of your add-on: console.error("this is an error message"); error: my-addon: this is an error message console.exception(exception) logs the given exception instance as an error, outputting information about the exception's stack traceback if one is available.
...message) { this.message = message; this.name = "userexception"; } function dothing() { throw new userexception("thing could not be done!"); } error: my-addon: an exception occurred.
...And 4 more matches
HTML to DOM - Archive of obsolete content
s safer than chrome-level) <div> in the current page, then parsing the html fragment and attaching that fragment to the <div>.
...n parsing the html fragment and attaching that fragment to the <div>.
... document.implementation.createhtmldocument("example"); doc.documentelement.innerhtml = request.responsetext; after this any manipulation that we might want to do will be something as simple as the following: doc.body.textcontent = "this is inside the body!"; using a hidden iframe element to parse html to a window's dom sample code may need more work.
...And 4 more matches
getAttributeNS - Archive of obsolete content
as some browsers do not support getattributens, the following might be used to work on them as well.
... as some browsers do not support getattributens, the following might be used to work on them as well.
...tributens.
...And 4 more matches
Chapter 2: Technologies used in developing extensions - Archive of obsolete content
or web-related technologies.
...ful qualities: it is generic, extensible, and easy to validate as well-formed.
...ressing vector images; and mathml, for expressing mathematical formulas.
...And 4 more matches
Setting Up a Development Environment - Archive of obsolete content
where you'll find the extension xpi file once you get it to build.
...amed makefile under src.
...uild the xpi.
...And 4 more matches
Session store API - Archive of obsolete content
e with a tab the following code will attach a key/value pair to a tab, so that when the tab is restored, that pair is still associated with it.
...b, so that when the tab is restored, that pair is still associated with it.
... saved value you can fetch a value associated with a tab at any time (whether the tab is in the process of being restored or not), using code similar to the following: var ss = components.classes["@mozilla.org/browser/sessionstore;1"] .getservice(components.interfaces.nsisessionstore); var currenttab = gbrowser.selectedtab; var retrieveddata = ss.gettabvalue(currenttab, "key-name-here"); after this code executes, the variable retrieveddata contains the value saved for the key "key-name-here".
...And 4 more matches
XML data - Archive of obsolete content
ript can modify the dom.
...fy the dom.
... xml page in this wiki.
...And 4 more matches
Getting Started - Archive of obsolete content
ibe the skin.
...myskin/1.0" /> in the code search for the part listed above.
...tion.
...And 4 more matches
Editor Embedding Guide - Archive of obsolete content
browser.
...ossible to call docommand.
...reated an nsicommandparams you call the "set" methods.
...And 4 more matches
Creating a Help Content Pack - Archive of obsolete content
n this attribute later.
...less the user conducts a search of the help pack that would return glossary or index results.xxx this sentence is ugly - a little rewording help here would be nice a data source description is pretty much the same no matter which type you're defining, and the syntax is pretty simple.
...c:datasources instead of separate entries, as separate entries will require a slightly longer time to load.
...And 4 more matches
Microsummary XML grammar reference - Archive of obsolete content
d information about the xml grammar used to build microsummary generators, describing each element and their attributes.
...wnload count"> <template> <transform xmlns="http://www.w3.org/1999/xsl/transform" version="1.0"> <output method="text"/> <template match="/"> <value-of select="id('download-count')"/> <text> fx downloads</text> </template> </transform> </template> <pages> <include>http://(www\.)?spreadfirefox\.com/(index\.php)?</include> </pages> </generator> namespace the namespace uri for microsummary generator xml documents is: http://www.mozilla.org/microsummaries/0.1 all elements in a microsummary generator document should be in this namespace except the descendants of the <template> element, which should be in the xslt namespace: http://www.w3.org/1999/xsl/transform the <generator> element the <generator> element is the root tag for all microsummar...
...1 all elements in a microsummary generator document should be in this namespace except the descendants of the <template> element, which should be in the xslt namespace: http://www.w3.org/1999/xsl/transform the <generator> element the <generator> element is the root tag for all microsummary generators, and should contain the remainder of the xml code describing the generator.
...And 4 more matches
Configuration - Archive of obsolete content
configuration a webapp profile is a simple, ini-style text file that specifies some parameters about a webapp.
... parameters also control some of the features of the prism host window.
... is the list of parameters: id the unique name of this web application.
...And 4 more matches
SpiderMonkey coding conventions - Archive of obsolete content
use the spidermonkey c++ coding style page on wikimo which is more up to date and the canonical source.
... use the spidermonkey c++ coding style page on wikimo which is more up to date and the canonical source.
...page on wikimo which is more up to date and the canonical source.
...And 4 more matches
Abc Assembler Tests - Archive of obsolete content
be found in /test/acceptance/abcasm and end with the .abs extension.
...re run using the same runtests.py script that is used for the actionscript tests.
... runtests.py script that is used for the actionscript tests.
...And 4 more matches
Anonymous Content - Archive of obsolete content
id="fileupload"> <content> <html:input type="text"/> <html:input type="button"/> </content> </binding> because this content is not visible to its parent element, it is said to be anonymous content.
...ymous nodes.
...ttributes on anonymous content elements can be tied to attributes on the bound element.
...And 4 more matches
Creating XPI Installer Modules - Archive of obsolete content
ion: <?xml version="1.0"?> <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:chrome="http://www.mozilla.org/rdf/chrome#"> <!-- list all the packages being supplied --> <rdf:seq about="urn:mozilla:package:root"> <rdf:li resource="urn:mozilla:package:barley"/> </rdf:seq> <!-- package information --> <rdf:description about="urn:mozilla:package:barley" chrome:displayname="barley grain" chrome:author="ian oeschger" chrome:name="barley"> </rdf:description> </rdf:rdf> create a contents.rdf file like the one in the listing above and put it in the content/ subdirectory with the other package resources.
...df file like the one in the listing above and put it in the content/ subdirectory with the other package resources.
...ore complex--structure and content specification as the barley.jar.
...And 4 more matches
Windows Install - Archive of obsolete content
"); logcomment(" available: " + spaceavailable + " k"); return(false); } return(true); } function updatewinreg4ren8dot3() { var fprogram = getfolder("program"); var ftemp = getfolder("temporary"); //notes: // can't use a double backslash before subkey // - windows already puts it in.
... " k"); return(false); } return(true); } function updatewinreg4ren8dot3() { var fprogram = getfolder("program"); var ftemp = getfolder("temporary"); //notes: // can't use a double backslash before subkey // - windows already puts it in.
...eturn(false); } return(true); } function updatewinreg4ren8dot3() { var fprogram = getfolder("program"); var ftemp = getfolder("temporary"); //notes: // can't use a double backslash before subkey // - windows already puts it in.
...And 4 more matches
Learn XPI Installer Scripting by Example - Archive of obsolete content
ive in which the main components of the mozilla browser are archived for installation.
...) method on the install object creates a new installation for the specified software and version.
...bject creates a new installation for the specified software and version.
...And 4 more matches
A XUL Bestiary - Archive of obsolete content
oncommand="window.opendialog('chrome://help/content/help.xul', '_blank', 'chrome,all,dialog=no')" /> in this example, the chrome url is being used to point to a chrome within the package hierarchy of the mozilla application.
...xul', '_blank', 'chrome,all,dialog=no')" /> in this example, the chrome url is being used to point to a chrome within the package hierarchy of the mozilla application.
... '_blank', 'chrome,all,dialog=no')" /> in this example, the chrome url is being used to point to a chrome within the package hierarchy of the mozilla application.
...And 4 more matches
Result Generation - Archive of obsolete content
int and the endpoint is called the member.
...ather the list of the members, or children, of a container.
...ssible result as the seed iterate over the results determined so far and augment them with additional data add any new possible results remove any rejected results repeat steps 2 to 4 for each query statement once done, all remaining results become matches each possible result is made up of a set of variable-value pairs.
...And 4 more matches
Simple Query Syntax - Archive of obsolete content
uery syntax is equivalent to the following: <query> <content uri="?start"/> <member container="?start" child="?photo"/> </query> the template builder uses the simple query syntax whenever a template does not have a <query> element.
...network will look something like this: (?1 = http://www.xulplanet.com/rdf/myphotos, ?2 = http://www.xulplanet.com/ndeakin/images/t/palace.jpg) (?1 = http://www.xulplanet.com/rdf/myphotos, ?2 = http://www.xulplanet.com/ndeakin/images/t/canal.jpg) (?1 = http://www.xulplanet.com/rdf/myphotos, ?2 = http://www.xulplanet.com/ndeakin/images/t/obselisk.jpg) the numbers are used here for the variable names, but they are really just randomly generated so you can't refer to them in any way.
...gory or country.
...And 4 more matches
Template Logging - Archive of obsolete content
ther container or child variables of <member> has a value this indicates that a <member> was being checked and yet neither the variables specified for the container or the child have a value for a result.
...an xpath expression that is not valid.
...sion that is not valid.
...And 4 more matches
Complete - Archive of obsolete content
st of this page.
...s seamonkey.
... it supports two themes (classic and modern).
...And 4 more matches
Adding Event Handlers - Archive of obsolete content
code which responds to various events triggered by the user or other situations.
... triggered by the user or other situations.
...ner method.
...And 4 more matches
Creating an Installer - Archive of obsolete content
n place this installer file somewhere for users to download.
...al or remote content, meaning that it is suitable for a download from a web site.
...uitable for a download from a web site.
...And 4 more matches
Custom Tree Views - Archive of obsolete content
a separate object for each tree.
...t for each tree.
...ttribute on the columns.
...And 4 more matches
Localization - Archive of obsolete content
s, for example, us english (en-us) and french (fr).
... this case, we have declared that we want to use the findfile.dtd dtd file.
...ab;" selected="true"/> <tab label="&optionstab;"/> </tabs> <tabpanels> <tabpanel id="searchpanel" orient="vertical" context="editpopup"> <description> &finddescription; </description> <spacer class="titlespace"/> <groupbox orient="horizontal"> <caption label="&findcriteria;"/> <menulist id="searchtype"> <menupopup> <menuitem label="&type.name;"/> <menuitem label="&type.size;"/> <menuitem label="&type.date;"/> </menupopup> </menulist> <spacer class="springspace"/> <menulist id="searchmode"> <menupopup> <menuitem label="&mode.is;"/> <menuitem label="&mode.isnot;"/> </menupopup> </menulist> <spacer class="springspace"/> <menulist id="find-text" flex="1" ...
...And 4 more matches
Trees and Templates - Archive of obsolete content
o set the label for the cell.
...el for the cell.
... datasources="rdf:files" ref="nc:filesroot" flags="dont-build-content"> <treecols> <treecol id="name" label="name" primary="true" flex="1"/> <splitter/> <treecol id="date" label="date" flex="1"/> </treecols> <template> <rule> <treechildren> <treeitem uri="rdf:*"> <treerow> <treecell label="rdf:http://home.netscape.com/nc-rdf#name"/> <treecell label="rdf:http://home.netscape.com/web-rdf#lastmodifieddate"/> </treerow> </treeitem> </treechildren> </rule> </template> </tree> here, a tree is created with two columns, for the name and date of a file.
...And 4 more matches
XPCOM Examples - Archive of obsolete content
indows in the application.
...tor component this is fine for displaying a list of open windows, but we would like to enhance this so that clicking on the menu item will switch to that window.
... a window object.
...And 4 more matches
XUL Template Primer - Bindings - Archive of obsolete content
iends.rdf" ref="urn:root"> <template> <rule> <conditions> <content uri="?uri"/> <triple subject="?uri" predicate="http://home.netscape.com/nc-rdf#friends" object="?friends"/> <member container="?friends" child="?friend"/> <triple subject="?friend" predicate="http://home.netscape.com/nc-rdf#name" object="?name"/> </conditions> <bindings> <binding subject="?friend" predicate="http://home.netscape.com/nc-rdf#address" object="?addr"/> <binding subject="?addr" predicate="http://home.netscape.com/nc-rdf#street" object="?street"/> </bindings> <action>...
... <bindings> <binding subject="?friend" predicate="http://home.netscape.com/nc-rdf#address" object="?addr"/> <binding subject="?addr" predicate="http://home.netscape.com/nc-rdf#street" object="?street"/> </bindings> <action> <hbox uri="?friend"> <label value="?name"/> <label value="?street"/> </hbox> </action> </rule> </template> </vbox> </window> the xul template primer covers the <conditions> and <action> elements, so we won't discuss those here.
...> <label value="?name"/> <label value="?street"/> </hbox> </action> </rule> </template> </vbox> </window> the xul template primer covers the <conditions> and <action> elements, so we won't discuss those here.
...And 4 more matches
The Implementation of the Application Object Model - Archive of obsolete content
itecture itself and outlines enhancements to the xul language in order to allow the markup language to reference local data and to indicate how and when it would like to be annotatable with local data.
...hole slew of interfaces, since raptor has multiple apis for referring to these objects.
... the same thing in the function bodies.
...And 4 more matches
browser - Archive of obsolete content
docshell attached to the browser while keeping session history active.
...t this attribute off to enable it.
...ttribute off to enable it.
...And 4 more matches
preferences - Archive of obsolete content
ce home [ examples | attributes | properties | methods | related ] overview <preferences> is a container for <preference> elements.
... overview <preferences> is a container for <preference> elements.
...ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods void firechangedevent(in domelement preference); creates and dispatches a c...
...And 4 more matches
textbox - Archive of obsolete content
es, decimalsymbol, defaultvalue, disabled, editor, emptytext, increment, inputfield, label, max, maxlength, min, placeholder, readonly, searchbutton, selectionend, selectionstart, size, spinbuttons, tabindex, textlength, timeout, type, value, valuenumber, wraparound methods decrease, increase, reset, select, setselectionrange style classes plain examples <vbox> <label control="your-name" value="enter your name:"/> <textbox id="your-name" value="john"/> </vbox> attributes cols type: integer for multiline textboxes, the number of columns to display.
...ty which, except for menus and menuitems, is normally preferred to use of the attribute, as it may need to update additional state.
... disabled type: boolean gets and sets the value of the disabled attribute.
...And 4 more matches
tree - Archive of obsolete content
Archive › Mozilla › XUL › tree
ete list of view functions, see the nsitreeview interface.
...ns, see the nsitreeview interface.
...interface.
...And 4 more matches
Deploying XULRunner - Archive of obsolete content
windows inno setup installer for xulrunner applications.
...alled files should be arranged in the following directory structure: installdir/ application.ini components/ ...
... <key>cfbundledevelopmentregion</key> <string>english</string> <key>cfbundleexecutable</key> <string>xulrunner</string> <key>cfbundlegetinfostring</key> <string>1.0</string> <key>cfbundleiconfile</key> <string>app_icon.icns</string> <key>cfbundleidentifier</key> <string>net.yourcompany.yourapplication</string> <key>cfbundleinfodictionaryversion</key> <string>6.0</string> <key>cfbundlename</key> <string>applicationname</string> <key>cfbundlepackagetype</key> <string>appl</string> <key>cfbundleshortversionstring</key> <string>1.0</string> <key>cfbundlesignature</key> <string>????</string> <!--only useful if your app handle urls--> <key>cfbundleurltypes</key> <array> <dict> <key>cfbundleurliconfile</key> <string>app_icon.icns</string> <key>cfbundleurlname<...
...And 4 more matches
NPP_StreamAsFile - Archive of obsolete content
« gecko plugin api reference « plug-in side plug-in api summary provides a local file name for the data from a stream.
... « gecko plugin api reference « plug-in side plug-in api summary provides a local file name for the data from a stream.
......
...And 4 more matches
Common Firefox theme issues and solutions - Archive of obsolete content
e; background-color: -moz-dialog!important; } } for more information about this issue please see bug 732757 and bug 732757 and this mozillazine thread.
...pps/skin/extensions/extensions.svg#greyscale"); opacity:0.3; } about:memory about:memory nodes do not collapse the styling of about:memory is a little messed up in that nodes do not collapse as they should when clicked on.
... if you copy over the firefox 11 or newer style rules and graphics from the media folder in omni.ja you need to make the following changes in videocontrols.css or the pause and mute buttons will break in firefox 10.
...And 4 more matches
Iterator - Archive of obsolete content
point.
...urns an object which implements legacy iterator protocol and iterates over enumerable properties of an object.
...erator(object, [keyonly]) parameters object object to iterate over properties.
...And 4 more matches
Object.observe() - Archive of obsolete content
i has been deprecated and removed from browsers.
... deprecated and removed from browsers.
...ure", "setprototype", "preventextensions"] will be used.
...And 4 more matches
JSObject - Archive of obsolete content
ember sets the value of a property of a javascript object.
...of an array element of a javascript object.
...ects.
...And 4 more matches
Describing microformats in JavaScript - Archive of obsolete content
andardized structure format that has several standard members that describe the object.
...at has several standard members that describe the object.
...mat definition format the microformat definition must contain the following entries: mfversion specifies the version number of the microformat api to which the definition was written.
...And 4 more matches
Visual typescript game engine - Game development
lient config class.
...find configuration at ./src/lib/client-config.ts /** * addson * all addson are ansync loaded scripts.
...- cache is based on webworkers.
...And 4 more matches
DNS - MDN Web Docs Glossary: Definitions of Web-related terms
dns (domain name system) is a hierarchical and decentralized naming system for internet connected resources.
... dns (domain name system) is a hierarchical and decentralized naming system for internet connected resources.
... dns (domain name system) is a hierarchical and decentralized naming system for internet connected resources.
...And 4 more matches
Fundamental text and font styling - Learn web development
f the most used operating systems (windows, macos, the most common linux distributions, android, and ios).
...erating systems, which can help you make your decision about what you consider safe for your usage.
...ont along with a webpage, to allow you to customize your font usage in any way you want: web fonts.
...And 4 more matches
Other form controls - Learn web development
ontrol is activated, the browser displays a list of values the user can select between.
...ana</option> <option selected>cherry</option> <option>lemon</option> </select> if required, the default value for the select box can be set using the selected attribute on the desired <option> element — this option is then preselected when the page loads.
...hat value is sent when the form is submitted with that option selected.
...And 4 more matches
Example - Learn web development
this is the example code for the article your first html form.
... this is the example code for the article your first html form.
... this is the example code for the article your first html form.
...And 4 more matches
Cooperative asynchronous JavaScript: Timeouts and intervals - Learn web development
llback will be executed after a few seconds.
...e (see it running live, and see the source code): let mygreeting = settimeout(function() { alert('hello, mr.
...later, such as when you want to stop it.
...And 4 more matches
Handling text — strings in JavaScript - Learn web development
the only difference here is that when writing a string, you need to surround the value with quotes.
...ence here is that when writing a string, you need to surround the value with quotes.
...ine — ' + two; response; note: when you enter an actual string in your code, enclosed in single or double quotes, it is called a string literal.
...And 4 more matches
Starting our Svelte Todo list app - Learn web development
ompleted.
.../index.html to contain the text svelte to-do list: <title>svelte to-do list</title> open src/app.svelte and replace its contents with the following: <script> import todos from './components/todos.svelte' </script> <todos /> in development mode, svelte will issue a warning in the browser console when specifying a prop that doesn't exist in the component; in this case we have a name prop being specified when we instantiate the app component inside src/main.js, which isn't used inside app.
...</script> <todos /> in development mode, svelte will issue a warning in the browser console when specifying a prop that doesn't exist in the component; in this case we have a name prop being specified when we instantiate the app component inside src/main.js, which isn't used inside app.
...And 4 more matches
Rendering a list of Vue components - Learn web development
ate todoitem components.
...ning a todoitems field whose value is an array of todo items.
...ts in the list, it tries to patch list elements so it's not recreating them every time the list changes.
...And 4 more matches
Implementing feature detection - Learn web development
flex-flow: row) and (flex: 1) { main { display: flex; } main div { padding-right: 4%; flex: 1; } main div:last-child { padding-right: 0; } } this at-rule block applies the css rule within only if the current browser supports both the flex-flow: row and flex: 1 declarations.
...rnizr has updated your <html> class value like so: <html class="js no-htmlimports sizes flash transferables applicationcache blobconstructor blob-constructor cookies cors ...and loads more values!> it now contains a large number of classes that indicate the support status of different technology features.
...imports sizes flash transferables applicationcache blobconstructor blob-constructor cookies cors ...and loads more values!> it now contains a large number of classes that indicate the support status of different technology features.
...And 4 more matches
Embedding API for Accessibility
frame fixes the appearance of the page to match the new prefs, without reloading the document over the network.
...without reloading the document over the network.
...e aware that in debug builds, this can cause a great number of assertions (bug 71598) to use prefs in embedding, use something like the following code: #include "nsipref.h"; nsresult rv; nscomptr<nsipref> prefs(do_getservice(ns_pref_contractid, &rv)); prefs->setboolpref("bool.pref.name", pr_true /* or pr_false */); prefs->setintpref("int.pref.name", newvalue); prefs->setcharpref("string.pref.name", newcharstarvalue); to manually add a pref to your settings, add a line like the following to your prefs.js: user_pref("accessibility.browsewithcaret", true); accessibility prefs reference the following is a description of what accessibility prefs give us (or will give us), for accessibility: functionality implementation works as of ...
...And 4 more matches
mach
bconsole directory $ mach mochitest webconsole/test # run mochitests in devtools/client/webconsole/test enable tab completion to enable tab completion in bash, run the following command.
...x distro or derivate thereof ("manjaro"), you have something less tedious: octopi!
... in the core :: mach component or in any other component.
...And 4 more matches
mozbrowsermetachange
type read only domstring the type of event.
...the type of event.
...ly bubbles or not.
...And 4 more matches
AddonManager
import the addonmanager object in the add-on sdk, use: const { addonmanager } = require("resource://gre/modules/addonmanager.jsm"); to import it in a normal bootstrapped extension or similar, use: cu.import("resource://gre/modules/addonmanager.jsm"); method overview promise?
...ns.
... for a url.
...And 4 more matches
SourceMap.jsm
iving it a file position in the generated source.
... version: which version of the source map spec this map is following.
...mn: the column number in the generated source.
...And 4 more matches
Mozilla Content Localized in Your Language
this section of the style guide is for you to author.
...so, what are they?
... are bold, italics, underlines, etc.
...And 4 more matches
Mozilla Web Developer FAQ
the <link> and <style> elements should be inside the <head> element.
...ors are reported to the javascript console.
...ent.all, though, in newer versions of mozilla.
...And 4 more matches
Patches and pushes
now that you've made your productization selections, you may be interested in learning the technical aspects behind productization by creating a productization patch.
...eating a productization patch.
...zation patch.
...And 4 more matches
Profile Manager
profile manager to start profile manager, just launch profilemanager.exe (on windows) or profilemanager-bin (on linux and mac).
...on in the list has the following properties: path, version, and default.
...ose "delete".
...And 4 more matches
NSPR Error Handling
e is already locked.
...file_too_big_error completing the write or seek operation would have resulted in a file larger than the system could handle.
...allowed by the host operating system.
...And 4 more matches
PR_MkDir
creates a directory with a specified name and access mode.
... creates a directory with a specified name and access mode.
... creates a directory with a specified name and access mode.
...And 4 more matches
PR_Open
opens a file for reading, writing, or both.
... opens a file for reading, writing, or both.
... opens a file for reading, writing, or both.
...And 4 more matches
JSS FAQ
Mozilla › Projects › NSS › JSS › JSS FAQ
ificatefactory.getinstance(x.509)?
...org/mozilla/jss/asn1/sequence.java org/mozilla/jss/asn1/set.java org/mozilla/jss/pkcs10/certificationrequest.java org/mozilla/jss/pkcs12/pfx.java org/mozilla/jss/pkix/cert/certificate.java org/mozilla/jss/pkix/cmmf/certrepcontent.java org/mozilla/jss/pkix/crmf/certreqmsg.java org/mozilla/jss/pkix/crmf/certtemplate.java org/mozilla/jss/pkix/primitive/name.java org/mozilla/jss/provider/javax/crypto/jsssecretkeyfactoryspi.java org/mozilla/jss/util/utf8converter.java org/mozilla/jss/util/base64inputstream.java jss/samples/pqggen.java jss/samples/pkcs12.java if i don't call setcipherpolicy, is the domestic policy used by default?
...zilla.jss.crypto.x509certificate?
...And 4 more matches
NSS 3.21 release notes
requires nspr 4.10.10 or newer.
...er.
... 1142209) tls extended master secret extension (rfc 7627) is supported (bug 1117022) new info functions added for use during mid-handshake callbacks (bug 1084669) new functions in nss.h nss_optionset - sets nss global options nss_optionget - gets the current value of nss global options in secmod.h secmod_createmoduleex - create a new secmodmodule structure from module name string, module parameters string, nss specific parameters string, and nss configuration parameter string.
...And 4 more matches
NSS Sample Code Sample_2_Initialization of NSS
nss sample code 2: initializing nss this example program demonstrates how to initialize the nss database.
...ing.
...} /* * this example illustrates initialization of the nss database.
...And 4 more matches
Initialize NSS database - sample 2
nss sample code 2: initialize the nss database.
... nss sample code 2: initialize the nss database.
...} /* * this example illustrates initialization of the nss database.
...And 4 more matches
nss tech note4
ledesc *fd); if ssl client, this will get you the client cert's handle, if client auth happened if ssl server, this will get you the server's cert handle don't forget to clean up the cert handle when you're done with it void cert_destroycertificate(certcertificate *cert); some info is readily available cert->subjectname (char*) cert->issuername (char*) cert->emailaddr (char*) or char *cert_getcertificateemailaddress(certcertificate *cert); cert->keyusage (unsigned int) to break the issuer and subject names into components pass &(cert->issuer) or &(cert->subject) to the following functions char *cert_getcommonname(certname *name); char *cert_...
...suername (char*) cert->emailaddr (char*) or char *cert_getcertificateemailaddress(certcertificate *cert); cert->keyusage (unsigned int) to break the issuer and subject names into components pass &(cert->issuer) or &(cert->subject) to the following functions char *cert_getcommonname(certname *name); char *cert_getcertemailaddress(certname *name); char *cert_getcountryname(certname *name); char *cert_getlocalityname(certname *name); char *cert_getstatename(certname *name); char *cert_getorgname(certname *name); char *cert_getorgunitname(certname *name); char *cert_getdomaincomponentname(certname *name); char *cert_getcertuid(certname *name); example code...
...d) : a unique oid represents an algorithm, a mechanism, a piece of information, etc.
...And 4 more matches
gtstd.html
complete information about the command-line options used in the examples that follow, see using the certificate database tool.
...e database in the server_db directory.
...rver_db >certutil -n -d server_db import the new ca certificate into the server's certificate database, and mark it trusted for issuing certificates for ssl client and server authentication.
...And 4 more matches
Tutorial: Embedding Rhino
rguments evaluating a script printing the result exiting the context expose java apis using java apis implementing interfaces adding java objects using javascript objects from java using javascript variables calling javascript functions javascript host objects defining host objects counter example counter's constructors class name dynamic properties defining javascript "methods" adding counter to runscript runscript: a simple embedding about the simplest embedding of rhino possible is the runscript example.
... not specific to rhino.
...tructors the zero-argument constructor is used by rhino runtime to create instances.
...And 4 more matches
JS::Compile
context *cx, const js::readonlycompileoptions &options, const char16_t *chars, size_t length, js::mutablehandlescript script); bool js::compile(jscontext *cx, const js::readonlycompileoptions &options, file *file, js::mutablehandlescript script); bool js::compile(jscontext *cx, const js::readonlycompileoptions &options, const char *filename, js::mutablehandlescript script); // obsolete since jsapi 39 bool js::compile(jscontext *cx, js::handleobject obj, const js::readonlycompileoptions &options, js::sourcebufferholder &srcbuf, js::mutablehandlescript script); bool js::compile(jscontext *cx, js::handleobject obj, const js::readonlycompileoptions &options, const char *byte...
...ompileoptions &options, const char16_t *chars, size_t length, js::mutablehandlescript script); bool js::compile(jscontext *cx, js::handleobject obj, const js::readonlycompileoptions &options, file *file, js::mutablehandlescript script); bool js::compile(jscontext *cx, js::handleobject obj, const js::readonlycompileoptions &options, const char *filename, js::mutablehandlescript script); name type description cx jscontext * pointer to a js context from which to derive runtime information.
... srcbuf js::sourcebufferholder &amp; source buffer containing the script to compile.
...And 4 more matches
JS::Evaluate
readonlycompileoptions &options, const char16_t *chars, size_t length, js::mutablehandlevalue rval); bool js::evaluate(jscontext *cx, const js::readonlycompileoptions &options, const char *bytes, size_t length, js::mutablehandlevalue rval); bool js::evaluate(jscontext *cx, const js::readonlycompileoptions &options, const char *filename, js::mutablehandlevalue rval); bool js::evaluate(jscontext *cx, js::autoobjectvector &scopechain, const readonlycompileoptions &options, const char16_t *chars, size_t length, js::mutablehandlevalue rval); // added in spidermonkey 17 bool js::evaluate(jscontext *cx, js::autoobjectvector &scopechain, const js::readonlycompileoptions &options, j...
... const char16_t *chars, size_t length, js::mutablehandlevalue rval); bool js::evaluate(jscontext *cx, js::handleobject obj, const js::readonlycompileoptions &options, const char *bytes, size_t length, js::mutablehandlevalue rval); bool js::evaluate(jscontext *cx, js::handleobject obj, const js::readonlycompileoptions &options, const char *filename, js::mutablehandlevalue rval); name type description cx jscontext * the context in which to run the script.
...mp; compile options.
...And 4 more matches
JS_AliasElement
obsolete since jsapi 8this feature is obsolete.
... obsolete since jsapi 8this feature is obsolete.
...a native object.
...And 4 more matches
JS_CompileUCFunctionForPrincipalsVersion
this article covers features introduced in spidermonkey 1.8.5 please provide a description for this function.
... this article covers features introduced in spidermonkey 1.8.5 please provide a description for this function.
... this article covers features introduced in spidermonkey 1.8.5 please provide a description for this function.
...And 4 more matches
Setting up an update server
e from browser/config/version.txt (or something arbitrarily large like 2000.0a1).
...ing arbitrarily large like 2000.0a1).
...file within called update.xml with these contents, replacing <mar name>, <hash> and <size> with the mar's filename, its sha512 hash, and its file size in bytes.
...And 4 more matches
Animated PNG graphics
Mozilla › Tech › APNG
.
...all 'idat' chunks and before the 'fdat' chunks for the frame.
...e 'fdat' chunks within a frame.
...And 4 more matches
XPCOM changes in Gecko 2.0
tup notifications for details.
...mycomponent @foobar/mycomponent;1 important: formerly, the contract id of the category entry was prefixed with "service," if the component was implemented as a service.
...s prefixed with "service," if the component was implemented as a service.
...And 4 more matches
Components.Constructor
summary creates a javascript function which can be used to create or construct new instances of xpcom components.
... summary creates a javascript function which can be used to create or construct new instances of xpcom components.
... a javascript function which can be used to create or construct new instances of xpcom components.
...And 4 more matches
jsdIStackFrame
nly valid inside the jsdiexecutionhook which gave it to you.
...ble exception.
...view boolean eval(in astring bytes, in autf8string filename, in unsigned long line, out jsdivalue result); attributes attribute type description callee jsdivalue function object running in this stack frame.
...And 4 more matches
nsICategoryManager
xpcom/components/nsicategorymanager.idlscriptable this interface provides access to a data structure that holds a list of name-value pairs, called categories, where each value is a list of strings.
... string getcategoryentry(in string acategory, in string aentry); methods addcategoryentry() this method sets the value for the given entry on the given category.
...); methods addcategoryentry() this method sets the value for the given entry on the given category.
...And 4 more matches
nsICookieManager2
(firefox 3.6 / thunderbird 3.1 / fennec 1.0) inherits from: nsicookiemanager this interface is included in the services.jsm javascript code module.
...kie2 acookie, out unsigned long acountfromhost); obsolete since gecko 1.9 nsisimpleenumerator getcookiesfromhost(in autf8string ahost); void importcookies(in nsifile acookiefile); methods add() adds a cookie.
...ed as a non-domain cookie.
...And 4 more matches
nsIDOMFontFace
s whether or not the font was located in a font group.
...t was located in a font group.
...ndicates whether or not the font was located using language preferences.
...And 4 more matches
nsIJSID
js/src/xpconnect/idl/xpcjsid.idlscriptable this interface provides information about a contract or interface.
... js/src/xpconnect/idl/xpcjsid.idlscriptable this interface provides information about a contract or interface.
... this interface provides information about a contract or interface.
...And 4 more matches
nsIMessageSender
".
... see message manager interfaces for more details on the distinction between message senders and message broadcasters.
...adcasters.
...And 4 more matches
Building an Account Manager Extension
step 1: implementing nsiaccountmanagerextension as first step we have to implement the nsiaccountmanagerextension.
...nagerextension.
...vmo-account" and state that it is located in the chrome package "example@mozilla.org".
...And 4 more matches
nsISearchEngine
netwerk/base/public/nsibrowsersearchservice.idlscriptable please add a summary to this article.
... for the engine.
...is a unique identifier.
...And 4 more matches
nsIStackFrame
xpcom/base/nsiexception.idlscriptable please add a summary to this article.
... xpcom/base/nsiexception.idlscriptable please add a summary to this article.
...location that caused the error, which may or may not be a source file location.
...And 4 more matches
nsITreeView
tree); void toggleopenstate(in long index); attributes attribute type description rowcount long the total number of rows in the tree (including the offscreen rows).
...ype description rowcount long the total number of rows in the tree (including the offscreen rows).
...ng the offscreen rows).
...And 4 more matches
Standard OS Libraries
this article gives the names of standard libraries that can be accessed with js-ctypes.
...efore all the gdk library functions are available for use.
...pes - javascript modules are auto-generated from the os x header files githubgists :: noitidart / search · corefoundation - corefoundation js-ctypes snippets that can be copied and pasted to scratchpad cocoa see using objective-c from js-ctypes for more info.
...And 4 more matches
Library
the library object represents a native library loaded by the ctypes open() method.
...w close(); cdata declare(name, [abi, ], returntype[, argtype1, ...]); methods close() closes the library.
...type[, argtype1, ...]); methods close() closes the library.
...And 4 more matches
Dominators view - Firefox Developer Tools
variables allocated on the stack need to be rooted, or internal caches may need to root their​ elements.
...t to "type".
...you can set it instead to "call stack" to see exactly where in your code the objects are being allocated.
...And 4 more matches
The JavaScript input interpreter - Firefox Developer Tools
expression in the context of element and returns an array of matching nodes.
...s copied.
...ify will be called on the argument, and the result will be copied to the clipboard.
...And 4 more matches
AnimationEvent() - Web APIs
the animationevent() constructor returns a newly created animationevent, representing an event in relation with an animation.
... the animationevent() constructor returns a newly created animationevent, representing an event in relation with an animation.
... the animationevent() constructor returns a newly created animationevent, representing an event in relation with an animation.
...And 4 more matches
CSS.registerProperty() - Web APIs
not inherit their value.
...ring a custom property allows you to tell the browser how the custom property should behave; what are allowed types, whether the custom property inherits its value, and what the default value of the custom property is.
...x optional a domstring representing the expected syntax of the defined property.
...And 4 more matches
CustomElementRegistry.whenDefined() - Web APIs
the whendefined() method of the customelementregistry interface returns a promise that resolves when the named element is defined.
... the whendefined() method of the customelementregistry interface returns a promise that resolves when the named element is defined.
... the whendefined() method of the customelementregistry interface returns a promise that resolves when the named element is defined.
...And 4 more matches
DOMImplementation.createDocument() - Web APIs
the domimplementation.createdocument() method creates and returns an xmldocument.
... the domimplementation.createdocument() method creates and returns an xmldocument.
... the domimplementation.createdocument() method creates and returns an xmldocument.
...And 4 more matches
Document.cookie - Web APIs
Web › API › Document › cookie
to gecko 6.0, paths with quotes were treated as if the quotes were part of the string, instead of as if they were delimiters surrounding the actual path string.
...e flags are only settable with the secure attribute.
...t a data property with a value: what you write is not the same as what you read, everything is always mediated by the javascript interpreter.
...And 4 more matches
Element.hasAttribute() - Web APIs
the element.hasattribute() method returns a boolean value indicating whether the specified element has the specified attribute or not.
... the element.hasattribute() method returns a boolean value indicating whether the specified element has the specified attribute or not.
... the element.hasattribute() method returns a boolean value indicating whether the specified element has the specified attribute or not.
...And 4 more matches
Element.removeAttribute() - Web APIs
the element method removeattribute() removes the attribute with the specified name from the element.
... the element method removeattribute() removes the attribute with the specified name from the element.
... the element method removeattribute() removes the attribute with the specified name from the element.
...And 4 more matches
Element.removeAttributeNode() - Web APIs
node that needs to be removed.
...moved.
...align = d.getattributenode("align"); d.removeattributenode(d_align); // align is now removed: <div id="top" /> notes if the removed attribute has a default value, it is immediately replaced.
...And 4 more matches
HTMLCanvasElement.toBlob() - Web APIs
the htmlcanvaselement.toblob() method creates a blob object representing the image contained in the canvas; this file may be cached on the disk or stored in memory at the discretion of the user agent.
...get the image in jpeg format: canvas.toblob(function(blob){...}, 'image/jpeg', 0.95); // jpeg at 95% quality a way to convert a canvas to an ico (mozilla only) this uses -moz-parse to convert the canvas to ico.
... canvas.toblob(function(blob){...}, 'image/jpeg', 0.95); // jpeg at 95% quality a way to convert a canvas to an ico (mozilla only) this uses -moz-parse to convert the canvas to ico.
...And 4 more matches
HTMLHyperlinkElementUtils - Web APIs
face doesn't inherit any property.
...string containing the protocol scheme of the url, including the final ':'.
... the port of the url is not empty (which can happen because it was not specified or because it was specified to be the default port of the url's scheme), a ':', and the port of the url.
...And 4 more matches
HTMLTextAreaElement - Web APIs
maxlength long: returns / sets the element's maxlength attribute, indicating the maximum number of characters the user can enter.
...'s maxlength attribute, indicating the maximum number of characters the user can enter.
...ing the maximum number of characters the user can enter.
...And 4 more matches
Headers.delete() - Web APIs
Web › API › Headers › delete
the delete() method of the headers interface deletes a header from the current headers object.
... the delete() method of the headers interface deletes a header from the current headers object.
... the delete() method of the headers interface deletes a header from the current headers object.
...And 4 more matches
Headers.has() - Web APIs
Web › API › Headers › has
the has() method of the headers interface returns a boolean stating whether a headers object contains a certain header.
... the has() method of the headers interface returns a boolean stating whether a headers object contains a certain header.
... the has() method of the headers interface returns a boolean stating whether a headers object contains a certain header.
...And 4 more matches
Headers.set() - Web APIs
Web › API › Headers › set
es not already exist.
...e between set() and headers.append is that if the specified header already exists and accepts multiple values, set() overwrites the existing value with the new one, whereas headers.append appends the new value to the end of the set of values.
...pend is that if the specified header already exists and accepts multiple values, set() overwrites the existing value with the new one, whereas headers.append appends the new value to the end of the set of values.
...And 4 more matches
IDBIndex.objectStore - Web APIs
the objectstore property of the idbindex interface returns the name of the object store referenced by the current index.
... the objectstore property of the idbindex interface returns the name of the object store referenced by the current index.
...e from a simple contacts database.
...And 4 more matches
IDBObjectStore.deleteIndex() - Web APIs
the deleteindex() method of the idbobjectstore interface destroys the index with the specified name in the connected database, used during a version upgrade.
... the deleteindex() method of the idbobjectstore interface destroys the index with the specified name in the connected database, used during a version upgrade.
...od of the idbobjectstore interface destroys the index with the specified name in the connected database, used during a version upgrade.
...And 4 more matches
IDBObjectStore - Web APIs
the idbobjectstore interface of the indexeddb api represents an object store in a database.
... the idbobjectstore interface of the indexeddb api represents an object store in a database.
...es fast insertion, look-up, and ordered retrieval.
...And 4 more matches
performance.mark() - Web APIs
Web › API › Performance › mark
the mark() method creates a timestamp in the browser's performance entry buffer with the given name.
... the mark() method creates a timestamp in the browser's performance entry buffer with the given name.
...() method creates a timestamp in the browser's performance entry buffer with the given name.
...And 4 more matches
PerformanceObserverEntryList.getEntries() - Web APIs
determined by the set of entry types specified in the call to the observe() method.
... the set of entry types specified in the call to the observe() method.
...).
...And 4 more matches
Multi-touch interaction - Web APIs
var evcache1 = new array(); var evcache2 = new array(); var evcache3 = new array(); register event handlers event handlers are registered for the following pointer events: pointerdown, pointermove and pointerup.
...ister event handlers event handlers are registered for the following pointer events: pointerdown, pointermove and pointerup.
... of active touch points the element has.
...And 4 more matches
RTCPeerConnection.setIdentityProvider() - Web APIs
the rtcpeerconnection.setidentityprovider() method sets the identity provider (idp) to the triplet given in parameter: its name, the protocol used to communicate with it (optional) and an optional username.
... the rtcpeerconnection.setidentityprovider() method sets the identity provider (idp) to the triplet given in parameter: its name, the protocol used to communicate with it (optional) and an optional username.
...the rtcpeerconnection.setidentityprovider() method sets the identity provider (idp) to the triplet given in parameter: its name, the protocol used to communicate with it (optional) and an optional username.
...And 4 more matches
RTCRtcpParameters - Web APIs
the rtcrtcpparameters dictionary provides parameters of an rtcp connection.
... the rtcrtcpparameters dictionary provides parameters of an rtcp connection.
... the rtcrtcpparameters dictionary provides parameters of an rtcp connection.
...And 4 more matches
SpeechSynthesisVoice - Web APIs
the speechsynthesisvoice interface of the web speech api represents a voice that the system supports.
...oice is the default voice for the current app language (true), or not (false.) speechsynthesisvoice.lang read only returns a bcp 47 language tag indicating the language of the voice.
...app language (true), or not (false.) speechsynthesisvoice.lang read only returns a bcp 47 language tag indicating the language of the voice.
...And 4 more matches
TransitionEvent() - Web APIs
the transitionevent() constructor returns a newly created transitionevent, representing an event in relation with an transition.
... the transitionevent() constructor returns a newly created transitionevent, representing an event in relation with an transition.
... the transitionevent() constructor returns a newly created transitionevent, representing an event in relation with an transition.
...And 4 more matches
URLSearchParams.get() - Web APIs
the get() method of the urlsearchparams interface returns the first value associated to the given search parameter.
... the get() method of the urlsearchparams interface returns the first value associated to the given search parameter.
... the get() method of the urlsearchparams interface returns the first value associated to the given search parameter.
...And 4 more matches
Advanced techniques: Creating and sequencing audio - Web APIs
voice has four buttons, which represent four beats in one bar of music.
...time + 1); } controlling amplitude this is great, but wouldn't it be nice if we had an amplitude envelope to go with it?
...'s create a simple one so we get used to the methods we need to create an envelope with the web audio api.
...And 4 more matches
Using the aria-invalid attribute - Accessibility
his technique.
...chnique.
...he information provided above is one of those opinions and therefore not normative.
...And 4 more matches
HTML To MSAA - Accessibility
remarks the table below shows how gecko maps html elements to msaa.
... remarks the table below shows how gecko maps html elements to msaa.
... remarks the table below shows how gecko maps html elements to msaa.
...And 4 more matches
src - CSS: Cascading Style Sheets
Web › CSS › @font-face › src
values */ src: url(https://somewebsite.com/path/to/font.woff); /* absolute url */ src: url(path/to/font.woff); /* relative url */ src: url(path/to/font.woff) format("woff"); /* explicit format */ src: url('path/to/font.woff'); /* quoted url */ src: url(path/to/svgfont.svg#example); /* fragment identifying font */ /* <font-face-name> values */ src: local(font); /* unquoted name */ src: local(some font); /* name containing space */ src: local("font"); /* quoted name */ /* multiple items */ src: local(font), url(path/to/font.svg) format("svg"), url(path/to/font.woff) format("woff"), url(path/to/font.otf) format("opentype"); values <url> [ format( <string># ) ]?
... by an optional hint using the format() function to describe the format of the font resource referenced by that url.
...using the format() function to describe the format of the font resource referenced by that url.
...And 4 more matches
Attribute selectors - CSS: Cascading Style Sheets
*/ a[href="https://example.org"] { color: green; } /* <a> elements with an href containing "example" */ a[href*="example"] { font-size: 2em; } /* <a> elements with an href ending ".org" */ a[href$=".org"] { font-style: italic; } /* <a> elements whose class attribute contains the word "logo" */ a[class~="logo"] { padding: 2px; } syntax [attr] represents elements with an attribute name of attr.
...nts with an href containing "example" */ a[href*="example"] { font-size: 2em; } /* <a> elements with an href ending ".org" */ a[href$=".org"] { font-style: italic; } /* <a> elements whose class attribute contains the word "logo" */ a[class~="logo"] { padding: 2px; } syntax [attr] represents elements with an attribute name of attr.
...s with an href ending ".org" */ a[href$=".org"] { font-style: italic; } /* <a> elements whose class attribute contains the word "logo" */ a[class~="logo"] { padding: 2px; } syntax [attr] represents elements with an attribute name of attr.
...And 4 more matches
Detecting CSS animation support - CSS: Cascading Style Sheets
n this blog post by chris heilmann, demonstrates a technique for doing this.
...available: var animation = false, animationstring = 'animation', keyframeprefix = '', domprefixes = 'webkit moz o ms khtml'.split(' '), pfx = '', elem = document.createelement('div'); if( elem.style.animationname !== undefined ) { animation = true; } if( animation === false ) { for( var i = 0; i < domprefixes.length; i++ ) { if( elem.style[ domprefixes[i] + 'animationname' ] !== undefined ) { pfx = domprefixes[ i ]; animationstring = pfx + 'animation'; keyframeprefix = '-' + pfx.tolowercase() + '-'; animation = true; break; } } } for starters we define a few variables.
... pfx.tolowercase() + '-'; animation = true; break; } } } for starters we define a few variables.
...And 4 more matches
CSS Animations tips and tricks - CSS: Cascading Style Sheets
0% { background: yellow } 100% { background: blue } } .box { width: 100px; height: 100px; border: 1px solid black; } .changing { animation: colorchange 2s; } there are two classes here.
... course of two seconds to animate the box.
....
...And 4 more matches
Variable fonts guide - CSS: Cascading Style Sheets
specific font files where needed when using a non-variable font.
...ond the five registered ones.
...’s intent was for this syntax not to be used when other attributes are available.
...And 4 more matches
counter-set - CSS: Cascading Style Sheets
the counter-set css property sets a css counter to a given value.
...ter2 4; /* cancel any counter that could have been set in less specific rules */ counter-set: none; /* global values */ counter-set: inherit; counter-set: initial; counter-set: unset; the counter-set property is specified as either one of the following: a <custom-ident> naming the counter, followed optionally by an <integer>.
... /* cancel any counter that could have been set in less specific rules */ counter-set: none; /* global values */ counter-set: inherit; counter-set: initial; counter-set: unset; the counter-set property is specified as either one of the following: a <custom-ident> naming the counter, followed optionally by an <integer>.
...And 4 more matches
Writing Web Audio API code that works in every browser - Developer guides
you probably have already read the announcement on the web audio api coming to firefox, and are totally excited and ready to make your until-now-webkit-only sites work with firefox, which uses the unprefixed version of the spec.
...read the announcement on the web audio api coming to firefox, and are totally excited and ready to make your until-now-webkit-only sites work with firefox, which uses the unprefixed version of the spec.
...nd ready to make your until-now-webkit-only sites work with firefox, which uses the unprefixed version of the spec.
...And 4 more matches
Writing forward-compatible websites - Developer guides
er non-public websites; if we can't see your code, we can't see that it broke.
...example, if you have this markup: <div onclick="alert(ownerdocument)">click me</div> then clicking on the text alerts the ownerdocument of the div.
...n the text alerts the ownerdocument of the div.
...And 4 more matches
HTML attribute reference - HTML: Hypertext Markup Language
elements in html have attributes; these are additional values that configure the elements or adjust their behavior in various ways to meet the criteria the users want.
... with common properties.
... a color specified in the hexadecimal #rrggbb format.
...And 4 more matches
<input type="submit"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › submit
o available on <input type="image"> and <button> elements.
...fies that the form should not be validated before submission to the server.
... type="image"> and <button> elements.
...And 4 more matches
<select>: The HTML Select element - HTML: Hypertext Markup Language
Web › HTML › Element › select
options: the source for this interactive example is stored in a github repository.
...interactive example is stored in a github repository.
...t> elements to <form>s anywhere in the document, not just inside a <form>.
...And 4 more matches
data-* - HTML: Hypertext Markup Language
his interactive example is stored in a github repository.
...hub repository.
... the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...And 4 more matches
Using the application cache - HTML: Hypertext Markup Language
in chrome you can clear the offline cache by selecting "clear browsing data..." in the preferences or by visiting chrome://appcache-internals/.
... browsing data..." in the preferences or by visiting chrome://appcache-internals/.
... visiting chrome://appcache-internals/.
...And 4 more matches
Access-Control-Allow-Headers - HTTP
the access-control-allow-headers response header is used in response to a preflight request which includes the access-control-request-headers to indicate which http headers can be used during the actual request.
...ers response header is used in response to a preflight request which includes the access-control-request-headers to indicate which http headers can be used during the actual request.
...der is used in response to a preflight request which includes the access-control-request-headers to indicate which http headers can be used during the actual request.
...And 4 more matches
Access-Control-Expose-Headers - HTTP
the access-control-expose-headers response header indicates which headers can be exposed as part of the response by listing their names.
... the response by listing their names.
...s-safelisted response headers are exposed: cache-control content-language content-length content-type expires last-modified pragma if you want clients to be able to access other headers, you have to list them using the access-control-expose-headers header.
...And 4 more matches
Cookie - HTTP
Web › HTTP › Headers › Cookie
the cookie http request header contains stored http cookies previously sent by the server with the set-cookie header.
... the cookie http request header contains stored http cookies previously sent by the server with the set-cookie header.
... the cookie http request header contains stored http cookies previously sent by the server with the set-cookie header.
...And 4 more matches
Meta programming - JavaScript
uage operations (e.g.
...g.
...ignment, enumeration, function invocation, etc).
...And 4 more matches
Array.prototype.length - JavaScript
than the highest index in the array.
...ample is stored in a github repository.
...contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...And 4 more matches
Error.prototype.stack - JavaScript
the non-standard stack property of error objects offer a trace of which functions were called, in what order, from which line and file, and with what arguments.
...l scope call.
... its trace).) note that this is the format used by firefox.
...And 4 more matches
JSON.stringify() - JavaScript
placer, as a function function replacer(key, value) { // filtering out properties if (typeof value === 'string') { return undefined; } return value; } var foo = {foundation: 'mozilla', model: 'box', week: 45, transport: 'car', month: 7}; json.stringify(foo, replacer); // '{"week":45,"month":7}' example replacer, as an array if replacer is an array, the array's values indicate the names of the properties in the object that should be included in the resulting json string.
..., successive levels will be indented by this string (or the first ten characters of it).
...: 2 // }' tojson() behavior if an object being stringified has a property named tojson whose value is a function, then the tojson() method customizes json stringification behavior: instead of the object being serialized, the value returned by the tojson() method when called will be serialized.
...And 4 more matches
Object.prototype.constructor - JavaScript
the constructor property returns a reference to the object constructor function that created the instance object.
...= object // true let a = [] a.constructor === array // true let a = new array a.constructor === array // true let n = new number(3) n.constructor === number // true examples displaying the constructor of an object the following example creates a constructor (tree) and an object of that type (thetree).
...e let a = [] a.constructor === array // true let a = new array a.constructor === array // true let n = new number(3) n.constructor === number // true examples displaying the constructor of an object the following example creates a constructor (tree) and an object of that type (thetree).
...And 4 more matches
Object.setPrototypeOf() - JavaScript
e chains a combination of object.getprototypeof() and object.prototype.__proto__ permits appending a whole prototype chain to a new prototype object: /** *** object.appendchain(@object, @prototype) * * appends the first non-native prototype of a chain to a new prototype.
...bination of object.getprototypeof() and object.prototype.__proto__ permits appending a whole prototype chain to a new prototype object: /** *** object.appendchain(@object, @prototype) * * appends the first non-native prototype of a chain to a new prototype.
...ect.getprototypeof() and object.prototype.__proto__ permits appending a whole prototype chain to a new prototype object: /** *** object.appendchain(@object, @prototype) * * appends the first non-native prototype of a chain to a new prototype.
...And 4 more matches
Proxy - JavaScript
lect.get(...arguments); }, }; const proxy3 = new proxy(target, handler3); console.log(proxy3.message1); // hello console.log(proxy3.message2); // world constructor proxy() creates a new proxy object.
...{ var obj = object.create(base.prototype); this.apply(target, obj, args); return obj; }, apply: function(target, that, args) { sup.apply(that, args); base.apply(that, args); } }; var proxy = new proxy(base, handler); descriptor.value = proxy; object.defineproperty(base.prototype, 'constructor', descriptor); return proxy; } var person = function(name) { this.name = name; }; var boy = extend(person, function(name, age) { this.age = age; }); boy.prototype.gender = 'm'; var peter = new boy('peter', 13); console.log(peter.gender); // "m" console.log(peter.name); // "peter" console.log(peter.age); // 13 manipulating dom nodes sometimes you want to toggle the attribute or class name of two different elements.
...firefox', 'chrome'] console.log(products.latestbrowser); // 'chrome' finding an array item object by its property this proxy extends an array with some utility features.
...And 4 more matches
Lexical grammar - JavaScript
elements which are tokens, control characters, line terminators, comments or white space.
...he text's byte order (wikipedia).
...inators also affect the process of automatic semicolon insertion.
...And 4 more matches
function* expression - JavaScript
the function* keyword can be used to define a generator function inside an expression.
...tion* keyword can be used to define a generator function inside an expression.
... define a generator function inside an expression.
...And 4 more matches
class - JavaScript
the class declaration creates a new class with a given name using prototype-based inheritance.
...tored in a github repository.
...epository.
...And 4 more matches
const - JavaScript
e block-scoped, much like variables defined using the let keyword.
...ch like variables defined using the let keyword.
... using the let keyword.
...And 4 more matches
with - JavaScript
nt extends the scope chain for a statement.
... to the scope chain used when evaluating the statement.
...e multiple statements, use a block statement ({ ...
...And 4 more matches
OpenSearch description format
ed in adding search engines from web pages.
...ch engines from web pages.
...scription file the xml file that describes a search engine follows the basic template below.
...And 4 more matches
Populating the page: how browsers work - Web Performance
bandwidth are foes which can cause delays.
...ver with ip address of 93.184.216.34.
... a dns lookup must happen.
...And 4 more matches
<xsl:template> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › template
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:template> element defines an output producing template.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:template> element defines an output producing template.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:template> element defines an output producing template.
...And 4 more matches
port - Archive of obsolete content
roperty, and the main add-on code via a worker object associated with the sdk module you've used to attach the content script, such as page-mod or page-worker.
....js var mymessagepayload = "some data"; self.port.emit("mymessage", mymessagepayload); from the main add-on code to the content script: // main.js var mymessagepayload = "some data"; worker.port.emit("mymessage", mymessagepayload); on() the port.on() function registers a function as a listener for a particular message sent from the other side using port.emit().
...emymessage(mymessagepayload) { // handle the message }); once() often you'll want to receive a message just once, then stop listening.
...And 3 more matches
panel - Archive of obsolete content
e, here's an add-on whose content script intercepts mouse clicks on links inside the panel, and sends the target url to the main add-on code.
...ages (the "this connection is untrusted" warning) does not work, so panels which trigger it will be broken (bug 1031554).
... top edge 40px from the top // of the content window // - the bottom edge 100px from the bottom // of the content window require("sdk/panel").panel({ position: { top: 40, bottom: 100 } }).show(); if you set both top and bottom, but also set the panel's height explicitly using the height property, then the panel will ignore bottom, just as css does for its properties with the same name: // show the panel centered horizontally, with: // - the top edge 40px from the top // of the content window // - a height of 400px require("sdk/panel").panel({ position: { top: 40, bottom: 100, }, height: 400 }).show(); // this is equivalent to: require("panel").panel({ position { top: 40 }, height: 400 }).show(); the same principle is applied in the horizont...
...And 3 more matches
jpm-mobile - Archive of obsolete content
m-mobile run launch an instance of firefox with your add-on installed.
...st runs your add-on's unit tests.
...m-mobile run accepts the following options: --adb /path/to/adb provides the path to adb.
...And 3 more matches
xml:base support in old browsers - Archive of obsolete content
var link = xmlbase + xlink; if (!link.match(scheme)) { // if there is no domain, we'll need to use the current domain var loc = window.location; if (link.indexof('/') === 0 ) { // if link is an absolute url, it should be from the host only link = loc.protocol + '//' + loc.host + link; } else { // if link is relative, it should be from full path, minus the file var dirpath = loc.pathname.substring(0, loc.pathname.lastindexof('/')-1); if (link.lastindexof('/') !== link.length-1) { link += '/'; } link = loc.protocol + '//' + loc.host + dirpath + link; } } return link; } function getxmlbase (thisitem) { // fix: need to keep going up the chain if still a relative url!!!!!
...ll path, minus the file var dirpath = loc.pathname.substring(0, loc.pathname.lastindexof('/')-1); if (link.lastindexof('/') !== link.length-1) { link += '/'; } link = loc.protocol + '//' + loc.host + dirpath + link; } } return link; } function getxmlbase (thisitem) { // fix: need to keep going up the chain if still a relative url!!!!!
...gth-1) { link += '/'; } link = loc.protocol + '//' + loc.host + dirpath + link; } } return link; } function getxmlbase (thisitem) { // fix: need to keep going up the chain if still a relative url!!!!!
...And 3 more matches
Adding Toolbars and Toolbar Buttons - Archive of obsolete content
ent firefox toolbars.
... cases this is not what you want as default behavior, because it would be very hard for the user to discover your buttons.
...="xulschoolhello-hello-world-button" insertbefore="personaltoolbar" /> </toolbox> </window> (note for mac os x: <window id="main-window"> and </window> are not required) our toolbar is added as a child of the toolbox element in the main browser window.
...And 3 more matches
Appendix C: Avoiding using eval in Add-ons - Archive of obsolete content
me access; that is, introducing a remote code execution vulnerability.
... attacker might replace the json with attack code before it arrives at the user.
...ternally retrieved data will create security vulnerabilities.
...And 3 more matches
Firefox addons developer guide - Archive of obsolete content
rules: file and directory names: italic method and variable names: class name if you want to add a fixme, add: fixme: a message notes: the original document is in japanese and distributed via the xuldev.org website.
...being done using curly apostrophes instead of straight ones as is done everywhere else in mdc.
...ng the dom inspector (https://developer.mozilla.org/en/firefox_addons_developer_guide/let%27s_build_a_firefox_extension#install_the_dom_inspector) is not accurate for firefox 3 or later, since it's no longer included in the firefox installer and must be downloaded from amo.
...And 3 more matches
Automatically Handle Failed Asserts in Debug Builds - Archive of obsolete content
as of 2004-12-8, it is now possible to automatically handle failed asserts in debug builds of mozilla for windows.
...o prompt, by setting a value of 0xfffffffe.
... file d:/cvs-1.11.4/mozilla/content/xul/content/src/nsxulelement.cpp, line 3173 (note that i have my source tree in d:/cvs-1.11.4/mozilla) if you have a dword in hkcu\software\mozilla.org\windbgdlg\ named "d:/cvs-1.11.5/mozilla/content/xul/content/src/nsxulelement.cpp," (with the comma - matches are whole-word only) and value 0x5, the assert would automatically be ignored.
...And 3 more matches
Creating a Firefox sidebar extension - Archive of obsolete content
o use this structure.
... manifests for a complete listing of the required and optional properties.
...g of the required and optional properties.
...And 3 more matches
Getting Started - Archive of obsolete content
e folder containing seamonkey is called folder_with_seamonkey in this manual.
...iting classic (default seamonkey theme).
...avigator navigator contains some icons and styles for all sm components.
...And 3 more matches
Creating a Skin for Firefox/Getting Started - Archive of obsolete content
version of firefox and install it.
...eryone is editing the default firefox theme.
...the browser peripherals, such as the extension manager or update wizard.
...And 3 more matches
Creating regular expressions for a microsummary generator - Archive of obsolete content
xpressions and understand how to create expressions that match urls.
...earn how to create a microsummary generator, see creating a microsummary.
..., leaving us with the following regular expression: ^http://cgi\.ebay\.com/ws/ebayisapi\.dll\?viewitem&item= accommodating variations in query parameters we now have a regular expression that matches all four example urls.
...And 3 more matches
Running Tamarin performance tests - Archive of obsolete content
--html also create an html output file --notimecheck do not recompile .abc if timestamp is older than .as --java location of java executable (default=java) --javaargs arguments to pass to java --random run tests in random order --seed explicitly specify random seed for --random -s --avm2 second avmplus command to use --avmname nickname for avm to use as column header --avm2name nickname for avm2 to use as column header --detail display results in 'old-style' format --raw output all raw test values -i --iterations number of times to repeat test -l --log logs results to a file -k --socketlog logs results to a socket server -r --runtime name of the runtime vm ...
...ass to compile.py.
...ptimize do not optimize files when compiling --perfm parse the perfm results from avm --csv= also output to csv file, filename required --csvappend append to csv file instead of overwriting --score compute and print geometric mean of scores --index= index file to use (must end with .py) --saveindex= save results to given index file name option details indexing: there are two command line flags that control indexing: --index and —saveindex both require an index filename to be specified after the flag.
...And 3 more matches
Methods - Archive of obsolete content
er available.
...able.
...returns a boolean value indicating whether an object is a directory.
...And 3 more matches
getFolder - Archive of obsolete content
summary returns an object representing one of the standard directories.
... summary returns an object representing one of the standard directories.
... summary returns an object representing one of the standard directories.
...And 3 more matches
Return Codes - Archive of obsolete content
return codes the methods described in this chapter can return any of the following return codes.
... explanation success 0 success.
...uccess.
...And 3 more matches
getValue - Archive of obsolete content
getvalue netscape 6 and mozilla do not currently support this method.
...etvalue netscape 6 and mozilla do not currently support this method.
... 6 and mozilla do not currently support this method.
...And 3 more matches
getValueString - Archive of obsolete content
getvaluestring retrieves the value of a key when that value is a string.
... getvaluestring retrieves the value of a key when that value is a string.
... getvaluestring retrieves the value of a key when that value is a string.
...And 3 more matches
Adding Event Handlers to XBL-defined Elements - Archive of obsolete content
tag.
...cus and blur events.
...r syntax is as follows: <binding id="binding-name"> <handlers> <handler event="event-name" action="script"/> </handlers> </binding> place all of your handlers within the handlers element.
...And 3 more matches
Anonymous Content - Archive of obsolete content
it is really made up of a number of elements.
...see that it is made up of an arrow button, a slider, a thumb inside it and a second arrow button at the end, which are the elements that appear in the xbl above.
...de it and a second arrow button at the end, which are the elements that appear in the xbl above.
...And 3 more matches
XBL Attribute Inheritance - Archive of obsolete content
the binding was used.
...lows both the flexibility of the textbox and the label of the button to be different for each use of the binding.
... the label of the button to be different for each use of the binding.
...And 3 more matches
XUL Coding Style Guidelines - Archive of obsolete content
listed in the references section.
...make the translation work easier and less error-prone.
...error-prone.
...And 3 more matches
button - Archive of obsolete content
utton, which will accept the changes when pressed.
...mand attribute.
...ing gets and sets the value of the type attribute.
...And 3 more matches
content - Archive of obsolete content
flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width propiedades tag type: tag name this may be set to a tag name.
...n element directly inside this tag.
...uated for a match.
...And 3 more matches
param - Archive of obsolete content
Archive › Mozilla › XUL › param
« xul reference home [ examples | attributes | properties | methods | related ] for sql templates, used to bind values to parameters specified within an sql statement.
...[ examples | attributes | properties | methods | related ] for sql templates, used to bind values to parameters specified within an sql statement.
...s | properties | methods | related ] for sql templates, used to bind values to parameters specified within an sql statement.
...And 3 more matches
prefwindow - Archive of obsolete content
methods acceptdialog, addpane, canceldialog, centerwindowonscreen, getbutton, opensubdialog, openwindow, showpane examples <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <prefwindow xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <prefpane id="saveoptions" label="backups"> <preferences> <preference id="pref-backup" name="myapp.mybackups" type="bool"/> <preference id="pref-backupduration" name="myapp.mybackups.duration" type="int"/> </preferences> <checkbox label="automatically save backups" preference="pref-backup"/> <textbox label="duration:" preference="pref-backupduration"/> </prefpane> </prefwindow> attributes activetitlebarcolor type: color string specify background color of t...
...ing gets and sets the value of the type attribute.
... the value of the type attribute.
...And 3 more matches
radio - Archive of obsolete content
Archive › Mozilla › XUL › radio
ement will, however, still respond to mouse events.
...you can access it with a script for your own use.
...d set using the textbox.value and menulist.value syntax.
...And 3 more matches
tabbrowser - Archive of obsolete content
ich is used to monitor the progress of a document loading.
...he progress of a document loading.
...t loading.
...And 3 more matches
toolbarbutton - Archive of obsolete content
button, which will accept the changes when pressed.
...e command attribute.
...tring gets and sets the value of the type attribute.
...And 3 more matches
MacFAQ - Archive of obsolete content
)) installing your application your application must be installed as a xulrunner app before you can open it.
...a xulrunner app before you can open it.
...pp before you can open it.
...And 3 more matches
NPAPI plugin reference - Archive of obsolete content
the articles below describe each of the apis related to npapi plugins.
...ort contains information required by the window field of an npwindow structure.
...integers.
...And 3 more matches
The First Install Problem - Archive of obsolete content
this is an old working document; see en/gecko_plugin_api_reference/plug-in_development_overview for current information.
...k builds (bug 293062).
...cko version that the browser is compatible with.
...And 3 more matches
Solaris 10 Build Prerequisites - Archive of obsolete content
gnome-2-20/patches % gtar jxvf firefox-3.0-solaris-10-patches.tar.bz2 7.
...efox-3.0-solaris-10-patches.tar.bz2 7.
...r.bz2 7.
...And 3 more matches
Building up a basic demo with Babylon.js - Game development
amera, light and objects.
...t there be light there are various light sources available in babylon.js.
...inders and more complicated shapes available.
...And 3 more matches
IIFE - MDN Web Docs Glossary: Definitions of Web-related terms
variables within the iife idiom as well as polluting the global scope.
...well as polluting the global scope.
... part creates the immediately invoked function expression () through which the javascript engine will directly interpret the function.
...And 3 more matches
SQL Injection - MDN Web Docs Glossary: Definitions of Web-related terms
sql injection takes advantage of web apps that fail to validate user input.
...ackers can maliciously pass sql commands through the web app for execution by a backend database.
...jection can gain unauthorized access to a database or to retrieve information directly from the database.
...And 3 more matches
TLD - MDN Web Docs Glossary: Definitions of Web-related terms
a tld (top-level domain) is the most generic domain in the internet's hierarchical dns (domain name system).
... a tld (top-level domain) is the most generic domain in the internet's hierarchical dns (domain name system).
... a tld (top-level domain) is the most generic domain in the internet's hierarchical dns (domain name system).
...And 3 more matches
How CSS is structured - Learn web development
n.
...rties and values at its most basic level, css consists of two components: properties: these are human-readable identifiers that indicate which stylistic features you want to modify.
...alues which take the form of a function.
...And 3 more matches
How does the Internet work? - Learn web development
inked to a network has a unique address that identifies it, called an "ip address" (where ip stands for internet protocol).
...s a unique address that identifies it, called an "ip address" (where ip stands for internet protocol).
...rotocol).
...And 3 more matches
Styling web forms - Learn web development
act form; see here for the finished version.
...f you want to follow along with this example, make a local copy of our postcard-start.html file, and follow the below instructions.
...want to follow along with this example, make a local copy of our postcard-start.html file, and follow the below instructions.
...And 3 more matches
HTML basics - Learn web development
so on.
...r.
...trange results.
...And 3 more matches
Index - Learn web development
nner, css, design, html, needsactivelearning there's a reason we talk about web design.
...edsactivelearning there's a reason we talk about web design.
...ou start out with a blank page, and you can take it so many directions.
...And 3 more matches
Test your skills: Loops - Learn web development
g task we want you start by creating a simple loop that goes through all the items in the provided myarray and prints them out on the screen inside list items (i.e., <li> elements), which are appended to the provided list.
...loop that goes through all the items in the provided myarray and prints them out on the screen inside list items (i.e., <li> elements), which are appended to the provided list.
...ray and prints them out on the screen inside list items (i.e., <li> elements), which are appended to the provided list.
...And 3 more matches
Test your skills: variables - Learn web development
— see the assessment or further help section at the bottom of this page.
...ent or further help section at the bottom of this page.
...examples below, if there is an error in your code it will be outputted into the results panel on the page, to help you try to figure out the answer (or into the browser's javascript console, in the case of the downloadable version).
...And 3 more matches
Introduction to client-side frameworks - Learn web development
ui to match.
...et's say that our state is an array of objects structured like this: const state = [ { id: 'todo-0', name: 'learn some frameworks!' } ] how do we show one of those tasks to our user?
... ] how do we show one of those tasks to our user?
...And 3 more matches
Handling common HTML and CSS problems - Learn web development
ore carrying on.
...fferent css rules begin to conflict with one another.
...ss names it uses clashes with one you've already used for a different purpose.
...And 3 more matches
Application cache implementation overview
uriload().
...e given client id.
... using that session.
...And 3 more matches
Creating MozSearch plugins
used if your intention is to distribute the search plugin packaged in a firefox extension, or if you are creating plugins meant to be shipped by default in a firefox build.
...ns for installation from the web, see creating opensearch plugins for firefox the plugin file the mozsearch format is similar to the opensearch format.
...on from the web, see creating opensearch plugins for firefox the plugin file the mozsearch format is similar to the opensearch format.
...And 3 more matches
Commenting IDL for better documentation
if necessary.
...se will help generate much higher quality documentation, faster, with less human intervention required.
...description of the interface, keep it short and to the point.
...And 3 more matches
SVG Guidelines
,5 l1,1z"> similarly, this polygon: <polygon points=" 0,0 4,4 4,0 "/> can be cut down to this: <polygon points="0,0 4,4 4,0"/> line breaks you should only use line breaks for logical separation or if they help make the file readable.
...ibutes first, so they are easier to spot.
...e xml namespace definition that comes with the latter (xmlns:sketch, xmlns:sopodi, …) other metadata in addition to non-standard editor metadata, standard compliant metadata also exists.
...And 3 more matches
Task.jsm
except that: it doesn't immediately start the task, rather it returns an "async function" that starts the task when the function is called; it binds the task to the async function's this object and arguments; it requires the task to be a function.
...e task when the function is called; it binds the task to the async function's this object and arguments; it requires the task to be a function.
...s called; it binds the task to the async function's this object and arguments; it requires the task to be a function.
...And 3 more matches
Release phase
sh.
...u can only push through ssh.
... modify a config file to tell mercurial to push through ssh.
...And 3 more matches
Refcount tracing and balancing
nt variables to choose what kind of logging you want.
... in slower code, but at least you get some data about where the leaks might be occurring from.
...filtering the log once you've picked an object that leaked, you can use tools/rb/filter-log.pl to filter the log file to drop the call stack for other objects; this process reduces the size of the log file and also improves the performance.
...And 3 more matches
TimerFirings logging
these js timers are annotated with [content] and show the javascript source location where they were created.
...ozilla::refreshdrivertimer::timertick(nsitimer*, void*) (/home/njn/moz/mi1/o64/layout/b third, on other platforms dladdr is not implemented or doesn't work well, and the output will look like the followin.
...l on this os] the ???
...And 3 more matches
L20n HTML Bindings
ocalized event, which you can listen to: document.addeventlistener('documentlocalized', function() { // the dom has been localized and the user sees it in their language yourapp.init(); }); exposing context data you can expose important bits of data to the localization context in form of context data.
...tions": 3, "user": { "name": "jane", "gender": "feminine" } } </script> this data will be available context-wide to all localized strings.
...e" } } </script> this data will be available context-wide to all localized strings.
...And 3 more matches
Anonymous Shared Memory
bes the nspr api for anonymous shared memory.
...ed shared memory described in prshm.h.
...ions for extracting data from the prfilemap object.
...And 3 more matches
PR_GetUniqueIdentity
asks the runtime to allocate a unique identity for a layer identified by the layer's name.
... asks the runtime to allocate a unique identity for a layer identified by the layer's name.
... asks the runtime to allocate a unique identity for a layer identified by the layer's name.
...And 3 more matches
PR_OpenAnonFileMap
creates or opens a named semaphore with the specified name syntax #include <prshma.h> nspr_api( prfilemap *) pr_openanonfilemap( const char *dirname, prsize size, prfilemapprotect prot ); parameters the function has the following parameters: dirname a pointer to a directory name that will contain the anonymous file.
...the function has the following parameters: dirname a pointer to a directory name that will contain the anonymous file.
... following parameters: dirname a pointer to a directory name that will contain the anonymous file.
...And 3 more matches
PR_OpenDir
opens the directory with the specified pathname.
... opens the directory with the specified pathname.
... opens the directory with the specified pathname.
...And 3 more matches
PR_OpenSemaphore
creates or opens a named semaphore with the specified name.
... creates or opens a named semaphore with the specified name.
... creates or opens a named semaphore with the specified name.
...And 3 more matches
PR_RmDir
removes a directory with a specified name.
... removes a directory with a specified name.
... removes a directory with a specified name.
...And 3 more matches
NSS_3.12.1_release_notes.html
er files lib - nss shared libraries bin - nss tools and test programs you also need to download the nspr 4.7.1 binary distributions to get the nspr 4.7.1 header files and shared libraries, which nss 3.12.1 requires.
...- nss tools and test programs you also need to download the nspr 4.7.1 binary distributions to get the nspr 4.7.1 header files and shared libraries, which nss 3.12.1 requires.
...st be freed with port_free().
...And 3 more matches
NSS 3.16 release notes
g nss.
... of a single signerinfo.
... prefix.
...And 3 more matches
NSS sources building testing
hg (a distributed source control management tool).
...d to call them.
... nss, tests for the new feature should be added as well.
...And 3 more matches
OLD SSL Reference
blecipher ssl_setpolicy ssl_redohandshake chapter 5 certificate functions this chapter describes the functions and related types used to work with a certificate database such as the cert7.db database provided with communicator.
... chapter 5 certificate functions this chapter describes the functions and related types used to work with a certificate database such as the cert7.db database provided with communicator.
... cert_verifycertnow cert_verifycertname cert_checkcertvalidtimes nss_cmpcertchainwcanames manipulating certificates cert_dupcertificate cert_destroycertificate getting certificate information cert_findcertbyname cert_getcertnicknames cert_freenicknames cert_getdefaultcertdb nss_findcertkeatype comparing secitem objects secitem_compareitem chapter 6 key functions this chapter describes two functions used to manipulate private keys and key databases such as the key3.d...
...And 3 more matches
NSS Tools ssltap
onnection is ssl, the data display includes interpreted ssl records and handshaking.
...ions or any tcp protocol, as well as for ssl streams, as described here.
...l cannot and does not decrypt any encrypted message data.
...And 3 more matches
Renaming With Pork
make cxxflags="-wp,-k,-w0 -save-temps" will work.
...s" will work.
... to work mcpp has to be integrated into your compiler as described in the pork installation instructions 3.
...And 3 more matches
SpiderMonkey Internals
that stand in the way.
...or an atom (unique string), with the same tagged-pointer encoding as a jsval.
...oss versions) layer over the implementation.
...And 3 more matches
JS::Call
this article covers features introduced in spidermonkey 17 call a specified js function.
...:handlevalue fun, const js::handlevaluearray& args, js::mutablehandlevalue rval); bool js::call(jscontext *cx, js::handlevalue thisv, js::handlevalue fun, const js::handlevaluearray& args, js::mutablehandlevalue rval); bool js::call(jscontext *cx, js::handlevalue thisv, js::handleobject funobj, const js::handlevaluearray& args, js::mutablehandlevalue rval); name type description cx jscontext * pointer to a js context from which to derive runtime information.
...er must be in a request on this jscontext.
...And 3 more matches
JS::Remove*Root
emoveobjectroot(jscontext *cx, js::heap<jsobject *> *rp); void removescriptroot(jscontext *cx, js::heap<jsscript *> *rp); void removevaluerootrt(jsruntime *rt, js::heap<js::value> *vp); void removestringrootrt(jsruntime *rt, js::heap<jsstring *> *rp); void removeobjectrootrt(jsruntime *rt, js::heap<jsobject *> *rp); void removescriptrootrt(jsruntime *rt, js::heap<jsscript *> *rp); name type description cx jscontext * the context from which to remove the root.
... cx jscontext * the context from which to remove the root.
... the context from which to remove the root.
...And 3 more matches
JSConstDoubleSpec
this article covers features introduced in spidermonkey 17 describes a double and integer value and assigns it a name.
... this article covers features introduced in spidermonkey 17 describes a double and integer value and assigns it a name.
... this article covers features introduced in spidermonkey 17 describes a double and integer value and assigns it a name.
...And 3 more matches
JS_CompileUTF8File
obsolete since jsapi 19this feature is obsolete.
... obsolete since jsapi 19this feature is obsolete.
...rom a file.
...And 3 more matches
JS_DefineConstDoubles
create multiple constant double or integer valued properties on an object.
...y 38 name type description cx jscontext * the context in which to define the new properties.
...uest on this jscontext.
...And 3 more matches
JS_DefineObject
create an object that is a property of another object.
... create an object that is a property of another object.
..., const char *name, const jsclass *clasp = nullptr, unsigned attrs = 0); name type description cx jscontext * the context in which to create the new object.
...And 3 more matches
JS_RemoveRootRT
unregisters a pointer to a gc thing so that it is no longer a member of the garbage collector's root set.
...llector's root set.
...this enables any pointed-at gc thing to be garbage collected as needed.
...And 3 more matches
JS_SET_TRACING_DETAILS
this article covers features introduced in spidermonkey 1.8 set debugging information about the next thing to be traced by a jstracer.
... this article covers features introduced in spidermonkey 1.8 set debugging information about the next thing to be traced by a jstracer.
...ging information about the next thing to be traced by a jstracer.
...And 3 more matches
TPS Bookmark Lists
: "menu": the normal bookmarks menu "toolbar": the bookmarks toolbar "tags": the tags folder "unfiled": the unfiled bookmarks folder "places": the places root folder ("menu", "toolbar", and "unfiled" are all children of this) sub-folders are preceded with forward slashes, so "menu/folder1" denotes that "folder1" is a sub-folder of "menu".
...is object include the uri, title, loadinsidebar, description, tags, keyword properties above, plus two additional properties: location: the full path of the folder that the bookmark should be moved to position: the title of the existing bookmark item, in the current folder, where this bookmark should be moved to (i.e., this bookmark would be inserted into the bookmark list at the position of the named bookmark, causing that bookmark to be positioned below the current one) example: { uri: "http://www.google.com", title: "google", loadinsidebar: false, tags: [ "google", "computers", "misc" ] } livemark objects valid properties are: livemark: the livemark name.
...tion.
...And 3 more matches
Secure Development Guidelines
targeted at sql rather than html and javascript if input is mixed with sql, it could itself become an sql instruction and be used to: query data from the database (passwords) insert value into the database (a user account) change application logic based on results returned by the database sql injection: example snprintf(str, sizeof(str), "select * from account where name ='%s'", name); sqlite3_exec(db, str, null, null, null); sql injection: prevention use parameterized queries insert a marker for every piece of dynamic content so data does not get mixed with sql instructions example: sqlite3_stmt *stmt; char *str = "select * from account where name='?'"; sqlite3_prepare_v2(db, str, strlen(str), &stmt, null); sqlite3_bind_text(stmt, 1, name, strlen(...
... ='%s'", name); sqlite3_exec(db, str, null, null, null); sql injection: prevention use parameterized queries insert a marker for every piece of dynamic content so data does not get mixed with sql instructions example: sqlite3_stmt *stmt; char *str = "select * from account where name='?'"; sqlite3_prepare_v2(db, str, strlen(str), &stmt, null); sqlite3_bind_text(stmt, 1, name, strlen(name), sqlite_transient); sqlite3_step(stmt); sqlite3_finalize(p_stmt); writing secure code: arithmetic issues integer overflows/underflows overflows occur when an arithmetic operation attempts to create a numeric value that is larger than can be represented within the available storage space max + 1 will be 0 and 0 – 1 will be max!
...le class foo { private: char *ptr; public: foo() {} ~foo() { if (ptr) free(ptr); } }; constructor/destructor issues: prevention initialize the data members of an object in the constructor writing secure code: miscellaneous file i/o a lot can go wrong because a lot can be done with file input and output filenames permissions file handles and descriptors file i/o: filename divided in directories, subdirectories, and the file itself ‘/’ is separator; in windows ‘\’ would work too int openfile(char *file) { handle fh; if (strstr(file, “\”)) return -1; fh = createfilea(file, ...); writefile(fh, data, sizeofdata, null, null); } could be a nor...
...And 3 more matches
Fun With XBL and XPConnect
xpconnect to a c++ object that does auto completion.
...ject using regular javascript.
... to an xp-connect object.
...And 3 more matches
An Overview of XPCOM
an nsresult error value (see the xpcom api reference for a listing of these error codes).
...ted interface, it adds a reference to itself and passes back a pointer to that interface.
... of interfaces when it's published or frozen.
...And 3 more matches
mozIStorageStatementRow
this interface has no defined properties, but has properties based on the name of the columns in the sql result from the statement it was accessed off of.
... this interface has no defined properties, but has properties based on the name of the columns in the sql result from the statement it was accessed off of.
... this interface has no defined properties, but has properties based on the name of the columns in the sql result from the statement it was accessed off of.
...And 3 more matches
nsIAuthPrompt2
netwerk/base/public/nsiauthprompt2.idlscriptable an interface allowing to prompt for a username and password.
... constant value description level_none 0 the password will be sent unencrypted.
...ll be sent unencrypted.
...And 3 more matches
nsICommandLine
boolean handleflag(in astring aflag, in boolean acasesensitive); astring handleflagwithparam(in astring aflag, in boolean acasesensitive); void removearguments(in long astart, in long aend); nsifile resolvefile(in astring aargument); nsiuri resolveuri(in astring aargument); attributes attribute type description length long number of arguments in the command line.
...nce.
...indows, flags of the form /flag are normalized to -flag.
...And 3 more matches
nsIFileView
criptable this interface displays a list of files in a treebox.
... of files in a treebox.
... will be sorted in ascending order.
...And 3 more matches
nsILoginManagerPrompter
o call this service, use: var loginmanagerprompter = components.classes["@mozilla.org/login-manager/prompter;1"] .getservice(components.interfaces.nsiloginmanagerprompter); method overview void init(in nsidomwindow awindow); void prompttochangepassword(in nsilogininfo aoldlogin, in nsilogininfo anewlogin); void prompttochangepasswordwithusernames([array, size_is(count)] in nsilogininfo logins, in pruint32 count, in nsilogininfo anewlogin); void prompttosavepassword(in nsilogininfo alogin); methods init() initialize the prompter.
... being used, topmost opener in some cases).
...ewlogin ); parameters aoldlogin the existing login (with the old password).
...And 3 more matches
nsIMessageBroadcaster
d messages to, but rather a set of subordinate message managers.
... if the sender is not initialized.
... we will throw ns_error_not_initialized if we try to send a message to a cross-process frame but the other process has not yet been set up.
...And 3 more matches
nsIMsgSearchCustomTerm
defined in comm-central/ mailnews/ base/ search/ public/ nsimsgsearchcustomterm.idl attributes id /** * globally unique string to identify this search term.
... defined in comm-central/ mailnews/ base/ search/ public/ nsimsgsearchcustomterm.idl attributes id /** * globally unique string to identify this search term.
... defined in comm-central/ mailnews/ base/ search/ public/ nsimsgsearchcustomterm.idl attributes id /** * globally unique string to identify this search term.
...And 3 more matches
nsINavHistoryQuery
n unsigned long transitions, in unsigned long count); attributes attribute type description absolutebegintime prtime read only: retrieves the begin time value that the currently loaded reference points + offset resolve to.
...ly: retrieves the begin time value that the currently loaded reference points + offset resolve to.
...) as well as anything else that may have been tagged with an annotation.
...And 3 more matches
nsIPushSubscription
each subscription is associated with a unique url generated by the push service.
... the last time a message was sent to this subscription, in milliseconds since the epoch.
...y material for this subscription.
...And 3 more matches
nsISocketProvider
ecurityinfo); native code only!
...n long afamily, in string ahost, in long aport, in string aproxyhost, in long aproxyport, in unsigned long aflags, out prfiledescstar afiledesc, out nsisupports asecurityinfo); native code only!
...() with the exception of afiledesc, which is an input parameter instead.
...And 3 more matches
nsITelemetry
e: let telemetry = components.classes["@mozilla.org/base/telemetry;1"] .getservice(components.interfaces.nsitelemetry); method overview jsval gethistogrambyid(in acstring id); jsval snapshothistograms(in uint32_t adataset, in boolean asubsession, in boolean aclear); jsval getkeyedhistogrambyid(in acstring id); void capturestack(in acstring name); jsval snapshotcapturedstacks([optional] in boolean clear); nsisupports getloadedmodules(); jsval snapshotkeyedhistograms(in uint32_t adataset, in boolean asubsession, in boolean aclear); void sethistogramrecordingenabled(in acstring id, in boolean enabled); void asyncfetchtelemetrydata(in nsifetchtelemetrydatacallback acallback); double ms...
...lean clear); nsisupports getloadedmodules(); jsval snapshotkeyedhistograms(in uint32_t adataset, in boolean asubsession, in boolean aclear); void sethistogramrecordingenabled(in acstring id, in boolean enabled); void asyncfetchtelemetrydata(in nsifetchtelemetrydatacallback acallback); double mssinceprocessstart(); void scalaradd(in acstring aname, in jsval avalue); void scalarset(in acstring aname, in jsval avalue); void scalarsetmaximum(in acstring aname, in jsval avalue); jsval snapshotscalars(in uint32_t adataset, [optional] in boolean aclear); void keyedscalaradd(in acstring aname, in astring akey, in jsval avalue); void keyedscalarset(in acstring aname, in astring akey, in jsval avalue); ...
...cstring aname, in jsval avalue); void scalarsetmaximum(in acstring aname, in jsval avalue); jsval snapshotscalars(in uint32_t adataset, [optional] in boolean aclear); void keyedscalaradd(in acstring aname, in astring akey, in jsval avalue); void keyedscalarset(in acstring aname, in astring akey, in jsval avalue); void keyedscalarsetmaximum(in acstring aname, in astring akey, in jsval avalue); jsval snapshotkeyedscalars(in uint32_t adataset, [optional] in boolean aclear); void clearscalars(); test only void flushbatchedchildtelemetry(); void recordevent(in acstring acategory, in acstring amethod, in acstring aobject, [optional] in jsval avalue, [optional] in jsval extra); void seteventrecordingenabled(in a...
...And 3 more matches
nsIWindowsShellService
browser/components/shell/public/nsiwindowsshellservice.idlscriptable please add a summary to this article.
... browser/components/shell/public/nsiwindowsshellservice.idlscriptable please add a summary to this article.
...cko 1.8 hkcu 2 hkey_current_user.
...And 3 more matches
XPCOM ABI
sists of an .xpt file which fits all platforms and a dll (.dll on windows, .so on unix) which is platform-specific and has a certain abi.
...lowing javascript code: components.classes["@mozilla.org/xre/app-info;1"] .getservice(components.interfaces.nsixulruntime) .xpcomabi if either the cpu architecture or the c++ compiler are unknown, the application wouldn't have an xpcom abi string and attempts to get it will result in error ns_error_not_available.
...nd attempts to get it will result in error ns_error_not_available.
...And 3 more matches
xpidl
Mozilla › Tech › XPIDL › xpidl
, allowing us to generate headers used by the xpcom components.
...d by the xpcom components.
... components.
...And 3 more matches
Demo Addon
rate over all the accounts this demo is implemented in demo1.html in the content folder.
...accounts with their account type - either pop3 or imap - and the associated email addresses.
... info.type = server.type; } for each (let id in fixiterator(account.identities, ci.nsimsgidentity)) { // we're only interested in identities that have a real email.
...And 3 more matches
Declaring types
values of these types without declaring new types.
...ar i = ctypes.int32_t(5); you can then pass a pointer to this value to a c function that requires a pointer to a 32-bit integer, like this: some_c_function(i.address()); declaring new primitive types there are times when you want to create new types that are simply new names for existing primitive types.
...mple, on windows, you may wish to be able to use the windows-standard dword type name for unsigned 32-bit integers.
...And 3 more matches
Debugger.Frame - Firefox Developer Tools
generator frame, false otherwise.
... variableenvironment of the execution context that this frame represents.) if implementation restrictions prevent spidermonkey from extending this frame’s environment as requested, this call throws an error exception.
...h we should attributecode.
...And 3 more matches
Tutorial: Show Allocations Per Call Path - Firefox Developer Tools
ap.has(site)) return parentmap.get(site); var m = new map; parentmap.set(site, m); return m; } for (let [site, total] of totals) { childmapfor(site); } // print the allocation count for |site|.
...get(site); var m = new map; parentmap.set(site, m); return m; } for (let [site, total] of totals) { childmapfor(site); } // print the allocation count for |site|.
...ew map; parentmap.set(site, m); return m; } for (let [site, total] of totals) { childmapfor(site); } // print the allocation count for |site|.
...And 3 more matches
Index - Firefox Developer Tools
dom property viewer dom, tools, web development the dom property viewer lets you inspect the properties of the dom as an expandable tree structure, starting from the window object of the current page or the selected iframe.
...buggers.
... type in the storage tree of the storage inspector, a table lists the details of all the databases present for that origin.
...And 3 more matches
Network request list - Firefox Developer Tools
d used.
...twork simultaneously, which may improve load time for slow caches.
... or "[size] (raced)" depending on the faster source.
...And 3 more matches
Console messages - Firefox Developer Tools
in addition, a disclosure triangle indicates that further information is available; clicking it displays or collapses that information.
...sage itself.
... messages are not shown by default, for performance reasons (see bug 1452143).
...And 3 more matches
AudioParamDescriptor - Web APIs
ictionary of the web audio api specifies properties for an audioparam objects.
...properties for an audioparam objects.
...s.
...And 3 more matches
AudioWorkletNode() - Web APIs
the audioworkletnode() constructor creates a new audioworkletnode object, which represents an audionode that uses a javascript function to perform custom audio processing.
... the audioworkletnode() constructor creates a new audioworkletnode object, which represents an audionode that uses a javascript function to perform custom audio processing.
... the audioworkletnode() constructor creates a new audioworkletnode object, which represents an audionode that uses a javascript function to perform custom audio processing.
...And 3 more matches
AudioWorkletProcessor.parameterDescriptors (static getter) - Web APIs
ace, but, if defined, it is called internally by the audioworkletprocessor constructor to create a list of custom audioparam objects in the parameters property of the associated audioworkletnode.
...ally by the audioworkletprocessor constructor to create a list of custom audioparam objects in the parameters property of the associated audioworkletnode.
...onstructor to create a list of custom audioparam objects in the parameters property of the associated audioworkletnode.
...And 3 more matches
CSSStyleDeclaration.item() - Web APIs
the cssstyledeclaration.item() method interface returns a css property name from a cssstyledeclaration by index.
... the cssstyledeclaration.item() method interface returns a css property name from a cssstyledeclaration by index.
...a css property name from a cssstyledeclaration by index.
...And 3 more matches
console - Web APIs
Web › API › Console
up.
...ole.profile() starts the browser's built-in profiler (for example, the firefox performance tool).
...a", car, ".
...And 3 more matches
DOMError - Web APIs
Web › API › DOMError
the domerror interface describes an error object that contains an error name.
... the domerror interface describes an error object that contains an error name.
... the domerror interface describes an error object that contains an error name.
...And 3 more matches
Document.evaluate() - Web APIs
Web › API › Document › evaluate
returns an xpathresult based on an xpath expression and other given parameters.
...thresult based on an xpath expression and other given parameters.
...rameters.
...And 3 more matches
Element.getAttributeNode() - Web APIs
returns the specified attribute of the specified element, as an attr node.
... returns the specified attribute of the specified element, as an attr node.
... returns the specified attribute of the specified element, as an attr node.
...And 3 more matches
Element.innerHTML - Web APIs
Web › API › Element › innerHTML
ment's content attribute is replaced with the new documentfragment created in step 1.
...ated in step 1.
... the element's contents are replaced with the nodes in the new documentfragment.
...And 3 more matches
FileSystemSync - Web APIs
cifications (working draft) drafted on april 19, 2011.
...afted on april 19, 2011.
... specification is abandonned for the moment, failing to get significant traction.
...And 3 more matches
File and Directory Entries API support in Firefox - Web APIs
compatibility reasons, it was decided to implement a subset of the api in firefox; this was introduced in firefox 50.
....
... how the firefox implementation of the file and directory entries api differs from other implementations and/or the specification.
...And 3 more matches
Recommended Drag Types - Web APIs
g(event)" ondragover="return checkdrag(event)" ondrop="dodrop(event)"/> <script> function checkdrag(event) { return event.datatransfer.types.contains("application/x-moz-file"); } function dodrop(event) { var file = event.datatransfer.mozgetdataat("application/x-moz-file", 0); if (file instanceof components.interfaces.nsifile) { event.currenttarget.appenditem(file.leafname); } } </script> in this example, the event returns false only if the data transfer contains the application/x-moz-file type.
...) { var file = event.datatransfer.mozgetdataat("application/x-moz-file", 0); if (file instanceof components.interfaces.nsifile) { event.currenttarget.appenditem(file.leafname); } } </script> in this example, the event returns false only if the data transfer contains the application/x-moz-file type.
...vileged code) and the type application/moz-file-promise should be used.
...And 3 more matches
IDBFactory.deleteDatabase() - Web APIs
o undefined.
...e request object that is returned from this method.
...ed from this method.
...And 3 more matches
Timing element visibility with the Intersection Observer API - Web APIs
lly, if there's at least one element to redraw, we use requestanimationframe() to schedule a function that will redraw each element in the redrawlist during the next animation frame.
...o the time at which the document was created, at which the ad's visibility count was last updated, or the ad last became visible.
...omstringmap mapping each custom attribute's name to its value.
...And 3 more matches
KeyboardEvent - Web APIs
th that event.
...manually firing a key event does not cause that letter to appear in a focused text input.
...strict'; document.addeventlistener('keydown', (event) => { const keyname = event.key; if (keyname === 'control') { // do not alert when only control key is pressed.
...And 3 more matches
Lock - Web APIs
Web › API › Lock
the lock interface of the the web locks api provides the name and mode of a previously requested lock, which is received in the callback to lockmanager.request().
... the lock interface of the the web locks api provides the name and mode of a previously requested lock, which is received in the callback to lockmanager.request().
... the lock interface of the the web locks api provides the name and mode of a previously requested lock, which is received in the callback to lockmanager.request().
...And 3 more matches
PasswordCredential - Web APIs
the init object for global fetch.
...lobal fetch.
...formelement a reference to an htmlformelement with appropriate input fields.
...And 3 more matches
Performance - Web APIs
wser's performance entry buffer.
... the given measure from the browser's performance entry buffer.
....getentries() returns a list of performanceentry objects based on the given filter.
...And 3 more matches
Permissions.query() - Web APIs
Web › API › Permissions › query
the permissions.query() method of the permissions interface returns the state of a user permission on the global scope.
... the permissions.query() method of the permissions interface returns the state of a user permission on the global scope.
...issions.query() method of the permissions interface returns the state of a user permission on the global scope.
...And 3 more matches
RTCDataChannel.label - Web APIs
the read-only rtcdatachannel property label returns a domstring containing a name describing the data channel.
... the read-only rtcdatachannel property label returns a domstring containing a name describing the data channel.
...e same purpose, by giving them all the same name.
...And 3 more matches
RTCIceCandidateStats.address - Web APIs
the address property of the rtcicecandidatestats dictionary indicates the address of the ice candidate.
... the address property of the rtcicecandidatestats dictionary indicates the address of the ice candidate.
... the address property of the rtcicecandidatestats dictionary indicates the address of the ice candidate.
...And 3 more matches
RTCIceParameters - Web APIs
the rtciceparameters dictionary specifies the username fragment and password assigned to an ice session.
... the rtciceparameters dictionary specifies the username fragment and password assigned to an ice session.
... the rtciceparameters dictionary specifies the username fragment and password assigned to an ice session.
...And 3 more matches
SVGStylable - Web APIs
svg stylable interface the svgstylable interface is implemented on all objects corresponding to svg elements that can have style, class and presentation attributes specified on them.
... svg stylable interface the svgstylable interface is implemented on all objects corresponding to svg elements that can have style, class and presentation attributes specified on them.
...class and presentation attributes specified on them.
...And 3 more matches
SubtleCrypto.generateKey() - Web APIs
is a cryptokey of type secret or private but keyusages is empty.
...e code on github.
...let keypair = window.crypto.subtle.generatekey( { name: "rsa-oaep", moduluslength: 4096, publicexponent: new uint8array([1, 0, 1]), hash: "sha-256" }, true, ["encrypt", "decrypt"] ); elliptic curve key pair generation this code generates an ecdsa signing key pair.
...And 3 more matches
SubtleCrypto.importKey() - Web APIs
object defining the type of key to import and providing extra algorithm-specific parameters.
...and providing extra algorithm-specific parameters.
... "-----end private key-----"; const pemcontents = pem.substring(pemheader.length, pem.length - pemfooter.length); // base64 decode the string to get the binary data const binaryderstring = window.atob(pemcontents); // convert from a binary string to an arraybuffer const binaryder = str2ab(binaryderstring); return window.crypto.subtle.importkey( "pkcs8", binaryder, { name: "rsa-pss", // consider using a 4096-bit key for systems that require long-term security moduluslength: 2048, publicexponent: new uint8array([1, 0, 1]), hash: "sha-256", }, true, ["sign"] ); } subjectpublickeyinfo import this example imports an rsa public encryption key from a pem-encoded subjectpublickeyinfo object.
...And 3 more matches
Multi-touch interaction - Web APIs
black; } </style> global state tpcache is used to cache touch points for processing outside of the event where they were fired.
...outside of the event where they were fired.
...ous touches ev.target.style.background = "pink"; break; default: // more than two simultaneous touches ev.target.style.background = "lightblue"; } } event logging the functions are used to log event activity to the application window, to support debugging and learning about the event flow.
...And 3 more matches
UIEvent.layerX - Web APIs
Web › API › UIEvent › layerX
eturn the absolute position in the document, including page scrolling.</span> <span>make the page scroll more!
...</span> <span>make the page scroll more!
...ed div so clicking it will return layerx/layery values that are relative to the top-left corner of this positioned element.
...And 3 more matches
UIEvent.layerY - Web APIs
Web › API › UIEvent › layerY
eturn the absolute position in the document, including page scrolling.</span> <span>make the page scroll more!
...</span> <span>make the page scroll more!
...ed div so clicking it will return layerx/layery values that are relative to the top-left corner of this positioned element.
...And 3 more matches
UIEvent.pageY - Web APIs
Web › API › UIEvent › pageY
return the absolute position in the document, including page scrolling.</span> <span>make the page scroll more!
...e scrolling.</span> <span>make the page scroll more!
...s a positioned div so clicking it will return layerx/layery values that are relative to the top-left corner of this positioned element.
...And 3 more matches
UserDataHandler - Web APIs
underbird 26 / seamonkey 2.23 / firefox os 1.2)this feature is obsolete.
...deleted, renamed, or adopted.
...g) is the user key.
...And 3 more matches
WebGL2RenderingContext.getUniformBlockIndex() - Web APIs
the webgl2renderingcontext.getuniformblockindex() method of the webgl 2 api retrieves the index of a uniform block within a webglprogram.
... the webgl2renderingcontext.getuniformblockindex() method of the webgl 2 api retrieves the index of a uniform block within a webglprogram.
... the webgl2renderingcontext.getuniformblockindex() method of the webgl 2 api retrieves the index of a uniform block within a webglprogram.
...And 3 more matches
WebRTC Statistics API - Web APIs
.setinterval(getconnectionstats, 1000); /* add event handlers, etc */ } catch(err) { console.error("error creating rtcpeerconnection: " + err); } function getconnectionstats() { mypeerconnection.getstats(null).then(stats => { var statsoutput = ""; stats.foreach(report => { if (report.type === "inbound-rtp" && report.kind === "video") { object.keys(report).foreach(statname => { statsoutput += `<strong>${statname}:</strong> ${report[statname]}<br>\n`; }); } }); document.queryselector(".stats-box").innerhtml = statsoutput; }); } when the promise returned by getstats() is fulfilled, the resolution handler receives as input an rtcstatsreport object containing the statistics information.
....foreach(statname => { statsoutput += `<strong>${statname}:</strong> ${report[statname]}<br>\n`; }); } }); document.queryselector(".stats-box").innerhtml = statsoutput; }); } when the promise returned by getstats() is fulfilled, the resolution handler receives as input an rtcstatsreport object containing the statistics information.
... object contains a map of named dictionaries based on rtcstats and its affiliated types.
...And 3 more matches
Inputs and input sources - Web APIs
entify and poll the buttons and axes available on the controller.
... to assign uses to each of them.
...pps that may involve several user inputs.
...And 3 more matches
Window.getComputedStyle() - Web APIs
the window.getcomputedstyle() method returns an object containing the values of all css properties of an element, after applying active stylesheets and resolving any basic computation those values may contain.
...seudo-element spec).
...ntent</h3> <script> var h3 = document.queryselector('h3'); var result = getcomputedstyle(h3, ':after').content; console.log('the generated content is: ', result); // returns ' rocks!' </script> notes the returned cssstyledeclaration object contains active values for css property longhand names.
...And 3 more matches
Using the aria-required attribute - Accessibility
ogy screen readers should announce the field as required.
... readers should announce the field as required.
...as required.
...And 3 more matches
An overview of accessible web applications and widgets - Accessibility
erwise 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 on the element).
... a tooltip that uses aria-hidden to control the visibility of the tooltip.
...visibility of the tooltip.
...And 3 more matches
:focus-within - CSS: Cascading Style Sheets
ed */ div:focus-within { background: cyan; } this selector is useful, to take a common example, for highlighting an entire <form> container when the user focuses on one of its <input> fields.
...cus-within { background: cyan; } this selector is useful, to take a common example, for highlighting an entire <form> container when the user focuses on one of its <input> fields.
...} this selector is useful, to take a common example, for highlighting an entire <form> container when the user focuses on one of its <input> fields.
...And 3 more matches
:placeholder-shown - CSS: Cascading Style Sheets
here!"> css input { border: 1px solid black; padding: 3px; } input:placeholder-shown { border-color: teal; color: purple; font-style: italic; } result overflowing text when form fields are too small, placeholder text can get cropped in an undesirable way.
...:placeholder-shown { border-color: teal; color: purple; font-style: italic; } result overflowing text when form fields are too small, placeholder text can get cropped in an undesirable way.
...rflowing text is displayed.
...And 3 more matches
speak-as - CSS: Cascading Style Sheets
as descriptor specifies how a counter symbol constructed with a given @counter-style will be represented in the spoken form.
...ymbol constructed with a given @counter-style will be represented in the spoken form.
...ge.
...And 3 more matches
font-weight - CSS: Cascading Style Sheets
old; font-weight: 300 500; the font-weight property is described using any one of the values listed below.
...ght property is described using any one of the values listed below.
...600, 700, 800, and 900; non-variable fonts can only really make use of these set values, although fine-grained values (e.g.
...And 3 more matches
@import - CSS: Cascading Style Sheets
Web › CSS › @import
s.
...dia-not> = not <media-in-parens><media-and> = <media-in-parens> [ and <media-in-parens> ]+<media-or> = <media-in-parens> [ or <media-in-parens> ]+<media-in-parens> = ( <media-condition> ) | <media-feature> | <general-enclosed>where <media-feature> = ( [ <mf-plain> | <mf-boolean> | <mf-range> ] )<general-enclosed> = [ <function-token> <any-value> ) ] | ( <ident> <any-value> )where <mf-plain> = <mf-name> : <mf-value><mf-boolean> = <mf-name><mf-range> = <mf-name> [ '<' | '>' ]?
...in-parens> ]+<media-in-parens> = ( <media-condition> ) | <media-feature> | <general-enclosed>where <media-feature> = ( [ <mf-plain> | <mf-boolean> | <mf-range> ] )<general-enclosed> = [ <function-token> <any-value> ) ] | ( <ident> <any-value> )where <mf-plain> = <mf-name> : <mf-value><mf-boolean> = <mf-name><mf-range> = <mf-name> [ '<' | '>' ]?
...And 3 more matches
@keyframes - CSS: Cascading Style Sheets
mes css at-rule controls the intermediate steps in a css animation sequence by defining styles for keyframes (or waypoints) along the animation sequence.
...is must match the identifier production in css syntax.
...in css syntax.
...And 3 more matches
@media - CSS: Cascading Style Sheets
Web › CSS › @media
y were deprecated in media queries 4 and shouldn't be used.
...dia-not> = not <media-in-parens><media-and> = <media-in-parens> [ and <media-in-parens> ]+<media-or> = <media-in-parens> [ or <media-in-parens> ]+<media-in-parens> = ( <media-condition> ) | <media-feature> | <general-enclosed>where <media-feature> = ( [ <mf-plain> | <mf-boolean> | <mf-range> ] )<general-enclosed> = [ <function-token> <any-value> ) ] | ( <ident> <any-value> )where <mf-plain> = <mf-name> : <mf-value><mf-boolean> = <mf-name><mf-range> = <mf-name> [ '<' | '>' ]?
...in-parens> ]+<media-in-parens> = ( <media-condition> ) | <media-feature> | <general-enclosed>where <media-feature> = ( [ <mf-plain> | <mf-boolean> | <mf-range> ] )<general-enclosed> = [ <function-token> <any-value> ) ] | ( <ident> <any-value> )where <mf-plain> = <mf-name> : <mf-value><mf-boolean> = <mf-name><mf-range> = <mf-name> [ '<' | '>' ]?
...And 3 more matches
CSS selectors - CSS: Cascading Style Sheets
css selectors define the elements to which a set of css rules apply.
... css selectors define the elements to which a set of css rules apply.
...te: there are no selectors or combinators to select parent items, siblings of parents, or children of parent siblings.
...And 3 more matches
<custom-ident> - CSS: Cascading Style Sheets
the <custom-ident> css data type denotes an arbitrary user-defined string used as an identifier.
...nd toto\3f are the same identifiers.
... css counter styles level 3the definition of '<custom-ident> for list-style-type' in that specification.
...And 3 more matches
<display-internal> - CSS: Cascading Style Sheets
l elements.
...ents.
...e like <rt> html elements.
...And 3 more matches
font-variant - CSS: Cascading Style Sheets
istorical-lig-values>, <contextual-alt-values> specifies the keywords related to the font-variant-ligatures longhand property.
...mplified, traditional, full-width, proportional-width, ruby.
... ruby.
...And 3 more matches
font-weight - CSS: Cascading Style Sheets
bolder one relative font weight heavier than the parent element.
... than the parent element.
...weights available, they are ignored for the purposes of relative weight calculation.
...And 3 more matches
EXSLT
he exslt regular expressions package provides functions that allow testing, matching, and replacing text using javascript style regular expressions.sets (set)the exslt sets package offers functions that let you perform set manipulation.strings (str)the exslt strings package provides functions that allow the manipulation of strings.
... xmlns:xsl="http://www.w3.org/1999/xsl/transform" xmlns:regexp="http://exslt.org/regular-expressions"> <xsl:template match="/"> ...
...'before', 'gi', 'after')"/> ...
...And 3 more matches
WAI ARIA Live Regions/API Support - Developer guides
rs, who avoid those events because they cause crashes on some important system -- show/hide are the equivalent of those events.
...oints to the root of the atomic container that this object is in.
... be an ancestor of the current object.
...And 3 more matches
Challenge solutions - Developer guides
this page provides solutions to the challenges posed in the css getting started tutorial.
... this page provides solutions to the challenges posed in the css getting started tutorial.
...he css getting started tutorial.
...And 3 more matches
Overview of events and handlers - Developer guides
s approach also allows for event driven actions, which javascript leverages.
... with an agreement over a kind of event and: the name string used for the event, the type of the data structure used to represent the key properties of that event, and the javascript object which will 'emit' that event.
...o represent the key properties of that event, and the javascript object which will 'emit' that event.
...And 3 more matches
Rich-Text Editing in Mozilla - Developer guides
span style="font-weight: bold; font-style: italic; text-decoration: underline;">dinosaurs are big.</span> internet explorer: <strong>i love geckos.</strong> <strong><em><u>dinosaurs are big.</u></em></strong> another difference between mozilla and ie is how to access the document object of an iframe, which is usually used in conjunction with designmode.
...he html code clean.
...d using execcommand() and then sets focus back to the editable document, as clicking on a button will set focus on the button itself, which breaks the editing flow.
...And 3 more matches
Localizations and character encodings - Developer guides
.
...f locales where in the 1990s there wasn't an obvious single region-specific encoding and heuristic detection among multiple legacy encodings was introduced to web browsers.
... wasn't an obvious single region-specific encoding and heuristic detection among multiple legacy encodings was introduced to web browsers.
...And 3 more matches
<applet>: The Embed Java Applet element - HTML: Hypertext Markup Language
Web › HTML › Element › applet
upport java.
...so remember that content enclosed within the <applet> element may also be rendered as alternative text.
... loaded and executed.
...And 3 more matches
<area> - HTML: Hypertext Markup Language
Web › HTML › Element › area
r will be the origin of the page, that is roughly the scheme, the host and the port.
... defines the values rect, which defines a rectangular region; circle, which defines a circular region; poly, which defines a polygon; and default, which indicates the entire region beyond any defined shapes.
...rs, notably internet explorer 4 and higher, support circ, polygon, and rectangle as valid values for shape, but these values are non-standard.
...And 3 more matches
<img>: The Image Embed element - HTML: Hypertext Markup Language
Web › HTML › Element › img
header will include the page's origin (scheme, host, and port).
...use the margin css property instead.
...rgin css property instead.
...And 3 more matches
<input type="number"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › number
ther help with the user experience by showing a special keyboard more suited for entering numbers when the user tries to enter a value.
...e result looks like this: offering suggested values you can provide a list of default options from which the user can select by specifying the list attribute, which contains as its value the id of a <datalist>, which in turn contains one <option> element per suggested value.
...ultiples of 10).
...And 3 more matches
<input type="week"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › week
resenting the value of the week/year entered into the input.
...e'll look at basic and more complex uses of <input type="week">, then offer advice on mitigating the browser support issue later on (see handling browser support).
...ight want to restrict the range of choosable weeks.
...And 3 more matches
<kbd>: The Keyboard Input element - HTML: Hypertext Markup Language
Web › HTML › Element › kbd
t of input as a portion of a larger input.
...put.
...t has been echoed back to the user by the system.
...And 3 more matches
<map> - HTML: Hypertext Markup Language
Web › HTML › Element › map
content any transparent element.
... any transparent element.
... tag omission none, both the starting and ending tag are mandatory.
...And 3 more matches
<object> - HTML: Hypertext Markup Language
Web › HTML › Element › object
equent <object> element.
...ject> element.
...ement completely each that that the resource is reused.
...And 3 more matches
<output>: The Output element - HTML: Hypertext Markup Language
Web › HTML › Element › output
element to associate the output with (its form owner).
...e the output with (its form owner).
...bute must be the id of a <form> in the same document.
...And 3 more matches
<slot> - HTML: Hypertext Markup Language
Web › HTML › Element › slot
arent events slotchange tag omission none, both the starting and ending tag are mandatory.
...ents slotchange tag omission none, both the starting and ending tag are mandatory.
...lotchange tag omission none, both the starting and ending tag are mandatory.
...And 3 more matches
CSP: trusted-types - HTTP
known dom xss sinks to a predefined set of functions that only accept non-spoofable, typed values in place of strings.
...writing values to the dom and thus reducing the dom xss attack surface to small, isolated parts of the web application codebase, facilitating their monitoring and code review.
...ss attack surface to small, isolated parts of the web application codebase, facilitating their monitoring and code review.
...And 3 more matches
Firefox user agent string reference - HTTP
browsers (if you have to sniff for the browser engine instead of using feature detection) is by the presence of the "gecko" and "rv:" strings, since some other browsers include a "like gecko" token.
... presence of the "gecko" and "rv:" strings, since some other browsers include a "like gecko" token.
...o" and "rv:" strings, since some other browsers include a "like gecko" token.
...And 3 more matches
Via - HTTP
Web › HTTP › Headers › Via
the via general header is added by proxies, both forward and reverse proxies, and can appear in the request headers and the response headers.
...ia general header is added by proxies, both forward and reverse proxies, and can appear in the request headers and the response headers.
...and can appear in the request headers and the response headers.
...And 3 more matches
Indexed collections - JavaScript
« previousnext » this chapter introduces collections of data which are ordered by an index value.
... « previousnext » this chapter introduces collections of data which are ordered by an index value.
...ngth) // 0 console.log(arr.hasownproperty(3.4)) // true you can also populate an array when you create it: let myarray = new array('hello', myvar, 3.14159) // or let myarray = ['mango', 'apple', 'orange'] understanding length at the implementation level, javascript's arrays actually store their elements as standard object properties, using the array index as the property name.
...And 3 more matches
Text formatting - JavaScript
nit using an array bracket style.
... 15 and not 20." now, with template literals, you are able to make use of the syntactic sugar making substitutions like this more readable: const five = 5; const ten = 10; console.log(`fifteen is ${five + ten} and not ${2 * five + ten}.`); // "fifteen is 15 and not 20." for more information, read about template literals in the javascript reference.
...g date and time.
...And 3 more matches
JavaScript error reference - JavaScript
below, you'll find a list of errors which are thrown by javascript.
...each error is an object based upon the error object, and has a name and a message.
...on with non-simple parameterssyntaxerror: "x" is a reserved identifiersyntaxerror: json.parse: bad parsingsyntaxerror: malformed formal parametersyntaxerror: unexpected tokensyntaxerror: using //@ to indicate sourceurl pragmas is deprecated.
...And 3 more matches
Array.prototype.find() - JavaScript
; } // 7.
...efined.
... }, configurable: true, writable: true }); } if you need to support truly obsolete javascript engines that don't support object.defineproperty, it is best not to polyfill array.prototype at all, as you cannot make it non-enumerable.
...And 3 more matches
Array.prototype.forEach() - JavaScript
bind the this value.
...ject copy function the following code creates a copy of a given object.
... the following code creates a copy of a given object.
...And 3 more matches
Date.prototype.toString() - JavaScript
tive-examples and send us a pull request.
...l request.
...ostring() return value a string representing the given date.
...And 3 more matches
Object.prototype.toString() - JavaScript
ring method you can create a function to be called in place of the default tostring() method.
...tion to be called in place of the default tostring() method.
... be called in place of the default tostring() method.
...And 3 more matches
ReferenceError() constructor - JavaScript
the referenceerror object represents an error when a non-existent variable is referenced.
... the referenceerror object represents an error when a non-existent variable is referenced.
... the referenceerror object represents an error when a non-existent variable is referenced.
...And 3 more matches
ReferenceError - JavaScript
referenceerror object represents an error when a non-existent variable is referenced.
...or object represents an error when a non-existent variable is referenced.
... is referenced.
...And 3 more matches
String.prototype.match() - JavaScript
e complete regular expression will be returned, but capturing groups will not.
...rned, but capturing groups will not.
...ed, only the first complete match and its related capturing groups are returned.
...And 3 more matches
String.prototype.split() - JavaScript
s: "jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec" the separator is: "," the array has 12 elements: jan / feb / mar / apr / may / jun / jul / aug / sep / oct / nov / dec removing spaces from a string in the following example, split() looks for zero or more spaces, followed by a semicolon, followed by zero or more spaces—and, when found, removes the spaces and the semicolon from the string.
...ator is: "," the array has 12 elements: jan / feb / mar / apr / may / jun / jul / aug / sep / oct / nov / dec removing spaces from a string in the following example, split() looks for zero or more spaces, followed by a semicolon, followed by zero or more spaces—and, when found, removes the spaces and the semicolon from the string.
.../ sep / oct / nov / dec removing spaces from a string in the following example, split() looks for zero or more spaces, followed by a semicolon, followed by zero or more spaces—and, when found, removes the spaces and the semicolon from the string.
...And 3 more matches
SyntaxError - JavaScript
ounters tokens or token order that does not conform to the syntax of the language when parsing code.
...ns or token order that does not conform to the syntax of the language when parsing code.
...f the language when parsing code.
...And 3 more matches
TypeError() constructor - JavaScript
the typeerror() constructor creates a new error when an operation could not be performed, typically (but not exclusively) when a value is not of the expected type.
... the typeerror() constructor creates a new error when an operation could not be performed, typically (but not exclusively) when a value is not of the expected type.
... the typeerror() constructor creates a new error when an operation could not be performed, typically (but not exclusively) when a value is not of the expected type.
...And 3 more matches
TypeError - JavaScript
empting to modify a value that cannot be changed; or when attempting to use a value in an inappropriate way.
...odify a value that cannot be changed; or when attempting to use a value in an inappropriate way.
...ting to use a value in an inappropriate way.
...And 3 more matches
URIError() constructor - JavaScript
the urierror() constructor creates an error when a global uri handling function was used in a wrong way.
... the urierror() constructor creates an error when a global uri handling function was used in a wrong way.
... the urierror() constructor creates an error when a global uri handling function was used in a wrong way.
...And 3 more matches
URIError - JavaScript
the urierror object represents an error when a global uri handling function was used in a wrong way.
... the urierror object represents an error when a global uri handling function was used in a wrong way.
...obal uri handling function was used in a wrong way.
...And 3 more matches
async function expression - JavaScript
the async function keyword can be used to define async functions inside expressions.
... the async function keyword can be used to define async functions inside expressions.
... the async function keyword can be used to define async functions inside expressions.
...And 3 more matches
new operator - JavaScript
constructor of) this object to another object; passes the newly created object from step 1 as the this context; returns this if the function doesn't return an object.
... mycar and assigns it the specified values for its properties.
... specified values for its properties.
...And 3 more matches
switch - JavaScript
will traverse in the order that you put the case clauses, and it does not have to be numerically sequential.
...output += 'name'; case 4: output += '?'; console.log(output); break; case 5: output += '!'; console.log(output); break; default: console.log('please pick a number from 0 to 5!'); } the output from this example: value log text foo is nan or not 1, 2, 3, 4, 5, or 0 please pick a number from 0 to 5!
... '?'; console.log(output); break; case 5: output += '!'; console.log(output); break; default: console.log('please pick a number from 0 to 5!'); } the output from this example: value log text foo is nan or not 1, 2, 3, 4, 5, or 0 please pick a number from 0 to 5!
...And 3 more matches
Web app manifests
wnloaded in advance and can work offline, as well as use regular web apis.
... icon(s), version, description, and list of all the necessary resources (among other things).
...an pwa manifest contain comments?
...And 3 more matches
begin - SVG: Scalable Vector Graphics
Web › SVG › Attribute › begin
efault value 0s animatable no the definition of <begin-value-list> is the same as for the other animation elements.
...wbox="0 0 120 120" xmlns="http://www.w3.org/2000/svg" version="1.1"> <!-- animated rectangles --> <rect x="10" y="35" height="15" width="0"> <animate attributetype="xml" attributename="width" to="100" begin="0s" dur="8s" fill="freeze" /> </rect> <rect x="35" y="60" height="15" width="0"> <animate attributetype="xml" attributename="width" to="75" begin="2s" dur="6s" fill="freeze" /> </rect> <rect x="60" y="85" height="15" width="0"> <animate attributetype="xml" attributename="width" to="50" begin="4s" dur="4s" fill="freeze" /> </rect> <!-- grid --> <text x="10" y="20" text-anchor="middle">0s</text> <line x1="10" y1="25" x2...
...="10" y1="105" x2="110" y2="105" stroke="grey" stroke-width=".5" /> </svg> begin-1-offset.svg syncbase example <svg width="120" height="120" viewbox="0 0 120 120" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- animated rectangles --> <rect x="10" y="35" height="15" width="0"> <animate attributetype="xml" attributename="width" to="50" id="first" begin="0s;third.end" dur="4s" /> </rect> <rect x="60" y="60" height="15" width="0"> <animate attributetype="xml" attributename="width" to="25" id="second" begin="first.end" dur="2s" /> </rect> <rect x="85" y="85" height="15" width="0"> <animate attributetype="xml" attributename="width" to="25" ...
...And 3 more matches
class - SVG: Scalable Vector Graphics
Web › SVG › Attribute › class
« svg attribute reference home assigns a class name or set of class names to an element.
... « svg attribute reference home assigns a class name or set of class names to an element.
... « svg attribute reference home assigns a class name or set of class names to an element.
...And 3 more matches
g1 - SVG: Scalable Vector Graphics
Web › SVG › Attribute › g1
the g1 attribute specifies a list of glyph names which identify a set of possible first glyphs in the kerning pair.
... the g1 attribute specifies a list of glyph names which identify a set of possible first glyphs in the kerning pair.
... the g1 attribute specifies a list of glyph names which identify a set of possible first glyphs in the kerning pair.
...And 3 more matches
g2 - SVG: Scalable Vector Graphics
Web › SVG › Attribute › g2
the g2 attribute specifies a list of glyph names which identify a set of possible second glyphs in the kerning pair.
... the g2 attribute specifies a list of glyph names which identify a set of possible second glyphs in the kerning pair.
... the g2 attribute specifies a list of glyph names which identify a set of possible second glyphs in the kerning pair.
...And 3 more matches
Content type - SVG: Scalable Vector Graphics
followed by a frequency unit identifier.
...gative.
...form-feed" (u+000c).
...And 3 more matches
mimeTypes.rdf corruption - SVG: Scalable Vector Graphics
this page explains a problem that can cause svg to stop working in mozilla due to the way mozilla maps filename extensions to media types.
... not experiencing this problem.
...ml using the html <embed> and <object> tags is (unfortunately) obtained in the same way as it's obtained for local files instead of using the http headers as it should.
...And 3 more matches
Transport Layer Security - Web security
cipher suite includes a set of cryptographic algorithms that together provide the negotiation of the shared secret, the means by which a server is authenticated, and the method that will be used to encrypt data.
...thms that together provide the negotiation of the shared secret, the means by which a server is authenticated, and the method that will be used to encrypt data.
...a server is authenticated, and the method that will be used to encrypt data.
...And 3 more matches
<xsl:key> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › key
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:key> element declares a named key which can be used elsewhere in the stylesheet with the key( ) function.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:key> element declares a named key which can be used elsewhere in the stylesheet with the key( ) function.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:key> element declares a named key which can be used elsewhere in the stylesheet with the key( ) function.
...And 3 more matches
<xsl:param> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › param
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:param> element establishes a parameter by name and, optionally, a default value for that parameter.
...slt elements, exslt functions, xpath functions, xpath axes the <xsl:param> element establishes a parameter by name and, optionally, a default value for that parameter.
...lements, exslt functions, xpath functions, xpath axes the <xsl:param> element establishes a parameter by name and, optionally, a default value for that parameter.
...And 3 more matches
Modules - Archive of obsolete content
a file, and has a well defined interface.
..."]; var loader = instance.getservice(ci.mozijssubscriptloader); function loadscript(url) { loader.loadsubscript(url); } when a script is loaded, it is evaluated in the scope of the global object of the script that loaded it.
...bal); return global; } if present, the loadsubscript function evaluates the script to be loaded in the scope of the second argument.
...And 2 more matches
Module structure of the SDK - Archive of obsolete content
pt files under your add-on's "lib" directory.
...e panel and page-mod provide relatively simple, stable apis for the most common add-on development tasks.
...most common add-on development tasks.
...And 2 more matches
widget - Archive of obsolete content
' alert("got message: " + message);' + '});' + 'self.postmessage("ready");', onmessage: function(message) { if (message == "ready") widget.postmessage("me too"); } }); globals constructors widget(options) creates a new widget.
... name type label string a string description of the widget used for accessibility, title bars, and error reporting.
...isten to the widget's mouseout event.
...And 2 more matches
io/byte-streams - Archive of obsolete content
experimental provides streams for reading and writing bytes.
... experimental provides streams for reading and writing bytes.
... experimental provides streams for reading and writing bytes.
...And 2 more matches
ui/toolbar - Archive of obsolete content
me } = require("sdk/ui/frame"); var frame = new frame({ url: "./frame.html" }); var toolbar = toolbar({ title: "my toolbar", items: [frame], hidden: true, onshow: showing, onhide: hiding }); function showing(e) { console.log("showing"); console.log(e); } function hiding(e) { console.log("hiding"); console.log(e); } parameters options : object required options: name type title string the toolbar's title.
...= toolbar({ title: "my toolbar", items: [frame], hidden: true, onshow: showing, onhide: hiding }); function showing(e) { console.log("showing"); console.log(e); } function hiding(e) { console.log("hiding"); console.log(e); } parameters options : object required options: name type title string the toolbar's title.
...function showing(e) { console.log("showing"); console.log(e); } function hiding(e) { console.log("hiding"); console.log(e); } parameters options : object required options: name type title string the toolbar's title.
...And 2 more matches
Forms related code snippets - Archive of obsolete content
), odecryear = document.createelement("span"), oincryear = document.createelement("span"), odecrmonth = document.createelement("span"), oincrmonth = document.createelement("span"); var nid = ainstances.length, oth; this.target = otarget; this.display = document.createelement("span"); this.current = new date(); this.container = otable; this.display.classname = sprefs + "-current-month"; this.id = nid; otable.classname = sprefs + "-calendar"; otable.id = sprefs + "-cal-" + nid; odecryear.classname = sprefs + "-decrease-year"; odecrmonth.classname = sprefs + "-decrease-month"; oincrmonth.classname = sprefs + "-increase-month"; oincryear.classname = sprefs + "-increase-year"; odecryear.innerhtml = "\u00ab"; /* &laquo; */ ...
...(this.otbody); } this.otbody = document.createelement("tbody"); for (var nday, oday, niter = 0; niter < ntotal; niter++) { if (niter % 7 === 0) { otr = document.createelement("tr"); this.otbody.appendchild(otr); } nday = niter - nendblanks + 1; otd = document.createelement("td"); if (niter + 1 > nendblanks && niter < nend) { otd.classname = sprefs + "-active-cell"; otd.id = sprefs + "-day-" + this.id + "-" + nday; otd.onclick = ondayclick; otd.appendchild(document.createtextnode(nday)); } else { otd.classname = sprefs + "-empty-cell"; } otr.appendchild(otd); } this.display.innerhtml = smonthsnames[this.current.getmonth()] + " " + this.current.getfullyear(); this.contai...
...ild(otd); } this.display.innerhtml = smonthsnames[this.current.getmonth()] + " " + this.current.getfullyear(); this.container.appendchild(this.otbody); }; function ondocclick (opssevt) { const oevt = opssevt || /* ie */ window.event; var boutside = true; for (var onode = oevt.target || /* ie */ oevt.srcelement; onode; onode = onode.parentnode) { if (onode.classname === sprefs + "-calendar" || onode.classname === sdpclass) { boutside = false; break; } } if (boutside) { return; } ainstances[onode.id.replace(rbgnnan, "")].container.style.zindex = nzindex++; } function onheadclick () { const bismonth = rmonth.test(this.id), ndelta = rdecrease.test(this.id) ?
...And 2 more matches
JavaScript Debugger Service - Archive of obsolete content
the service till firefox 3.6, for 4.x use asyncon if (jsd.ison) jsd.off(); // disables the service hooks jsd operates using the events hook mechanism.
...ction here } }; jsd.enumeratescripts({ // the enumeratescript method will be called once for every script jsd knows about enumeratescript: function(script) { // your function here } }); a simple stack trace here, we will show how to implement a simple javascript stack trace using the jsd.
...d will be called once for every script jsd knows about enumeratescript: function(script) { // your function here } }); a simple stack trace here, we will show how to implement a simple javascript stack trace using the jsd.
...And 2 more matches
Signing an extension - Archive of obsolete content
he steps below.
... nss-certutil -m -n "verisign class 3 public primary certification authority - g5 - verisign, inc." -t "c,c,c" -d .
...tion authority - g5 - verisign, inc." -t "c,c,c" -d .
...And 2 more matches
CSS3 - Archive of obsolete content
and the hsl(), hsla(), rgba() and rgb() functions to create <color> values.
...or keyword as a valid color.
...olor is now a real color (thanks to the support for the alpha channel) and is a now an alias for rgba(0,0,0,0.0).
...And 2 more matches
List of Mozilla-Based Applications - Archive of obsolete content
list of all known active applications that are built using mozilla technologies.
... lx-office accounting tool looks like it makes at least some use of xul maavis simple ui & communications for accessibility framework designed for elderly people with dementia but other applications mac os x operating system makes use of some mpl files such as libsecurity_asn1 maemo browser browser for maemo internet tablet development name is microb magooclient business process management tool uses mozilla rhino mantra security tool mccoy secure update tool for add-ons xulrunner application mediacoder media converter transcoder for video, audio, and even devices such as zen, zune, pocketpcs, ipods, and psps mekhala browser part of the khmeros linux distro ...
...le to create your own python web browser with hulahop, and much much more besides.
...And 2 more matches
Drag and Drop JavaScript Wrapper - Archive of obsolete content
can have objects dropped on them, you should define ondragover, ondrop and getsupportedflavours (and, if desired, ondragexit).
...g dragged is stored as a set of flavors.
...ll be available in a number of flavors.
...And 2 more matches
Hidden prefs - Archive of obsolete content
rd preview pane.
...news.js) is: pref("mail.addr_book.mapit_url.format", "http://www.mapquest.com/maps/map.adp...st&zipcode=@zi"); addressbook quick search query pref ("mail.addr_book.quicksearchquery.format" ) the format for this pref is: @v == the escaped value typed in the quick search bar in the addressbook every occurance of @v will be replaced.
...bar in the addressbook every occurance of @v will be replaced.
...And 2 more matches
Twitter - Archive of obsolete content
- in fact the object is passed as-is (almost) to it.
...s passed as-is (almost) to it.
...arameters of the twitter method.
...And 2 more matches
macAlias - Archive of obsolete content
method of file object syntax int macalias( filespecobject destdir, string filename, filespecobject aliasdir, string aliasname ); parameters the macalias method has the following parameters: destdir a filespecobject that represents the directory into which the program file will be installed.
... method of file object syntax int macalias( filespecobject destdir, string filename, filespecobject aliasdir, string aliasname ); parameters the macalias method has the following parameters: destdir a filespecobject that represents the directory into which the program file will be installed.
... method of file object syntax int macalias( filespecobject destdir, string filename, filespecobject aliasdir, string aliasname ); parameters the macalias method has the following parameters: destdir a filespecobject that represents the directory into which the program file will be installed.
...And 2 more matches
deleteRegisteredFile - Archive of obsolete content
deleteregisteredfile (netscape 6 and mozilla do not currently support this method.) deletes the specified file and removes its entry from the client version registry.
... deleteregisteredfile (netscape 6 and mozilla do not currently support this method.) deletes the specified file and removes its entry from the client version registry.
... deleteregisteredfile (netscape 6 and mozilla do not currently support this method.) deletes the specified file and removes its entry from the client version registry.
...And 2 more matches
getComponentFolder - Archive of obsolete content
getcomponentfolder returns an object representing the directory in which a component is installed.
... getcomponentfolder returns an object representing the directory in which a component is installed.
... getcomponentfolder returns an object representing the directory in which a component is installed.
...And 2 more matches
accesskey - Archive of obsolete content
will be appended to the label with parentheses.
...an accesskey of an 'open' label is 'a', the generated label will be 'open (a)'.
...ys be appended as described above.
...And 2 more matches
IO - Archive of obsolete content
Archive › Mozilla › XUL › FileGuide › IO
escribes how to access and get information about files, read from files and create and write files.
...from files.
... the user to allow them to select a file to open or enter a filename for saving.
...And 2 more matches
Property - Archive of obsolete content
« xul reference accessible accessibletype accesskey align allnotifications allowevents alwaysopenpopup amindicator applocale autocheck autofill autofillaftermatch boxobject browsers builder builderview buttons canadvance cangoback cangoforward canrewind checked checkstate child children classname clickselectsall clientheight clientwidth collapsed color columns command commandmanager completedefaultindex container contentdocument contentprincipal contenttitle contentview contentvieweredit contentviewerfile contentwindow contextmenu control controller controllers crop current currentindex currentitem currentnotification currentpage currentpane currentset currenturi custom...
... inverted is24hourclock ispm issearching iswaiting itemcount label labelelement lastpermanentchild lastselected left linkedpanel listboxobject locked markupdocumentviewer max maxheight maxlength maxrows maxwidth menu menuboxobject menupopup min minheight minresultsforpopup minwidth minute minuteleadingzero mode month monthleadingzero name next nomatch notificationshidden object observes onfirstpage onlastpage open ordinal orient pack pagecount pageid pageincrement pageindex pagestep parentcontainer palette persist persistence placeholder pmindicator popup popupboxobject popupopen position predicate preferenceelements preferencepanes preferences priority radiogroup ...
...selectedpanel selectedtab selectionend selectionstart selstyle seltype sessioncount sessionhistory showcommentcolumn showpopup size smoothscroll spinbuttons src state statusbar statustext stringbundle strings style subject suppressonselect tabcontainer tabindex tabs tabscrolling tabpanels tag textlength textvalue timeout title toolbarname toolbarset tooltip tooltiptext top treeboxobject type uri useraction value valuenumber view webbrowserefind webnavigation webprogress width wizardpages wraparound year yearleadingzero related dom element properties dom:element.attributes dom:element.baseuri dom:element.childelementcount dom:element.childnodes dom:element.children dom:element.cli...
...And 2 more matches
RDF Modifications - Archive of obsolete content
ined.
...the query produced a new result, removed one, or the content was not affected, since a binding could have affected any existing results.
...cted by a single triple being added to the datasource.
...And 2 more matches
Features of a Window - Archive of obsolete content
indows.
... look at some more in this section.
...xist, then a new window is opened and the specified resource is loaded into its browsing context.">window.open() function to open the second window.
...And 2 more matches
Focus and Selection - Archive of obsolete content
ple 3 : source view <window id="focus-example" title="focus example" onload="init();" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script> function init(){ addeventlistener("focus",setfocusedelement,true); } function setfocusedelement(){ var focused = document.commanddispatcher.focusedelement; document.getelementbyid("focused").value = focused.tagname; } </script> <hbox> <label control="username" value="user name:"/> <textbox id="username"/> </hbox> <button label="hello"/> <checkbox label="remember this decision"/> <label id="focused" value="-no focus-"/> </window> in this example, a focus event handler is attached the window.
...label id="focused" value="-no focus-"/> </window> in this example, a focus event handler is attached the window.
... a focus event handler is attached the window.
...And 2 more matches
Trees - Archive of obsolete content
Archive › Mozilla › XUL › Tutorial › Trees
as mozilla uses the ids to identify the columns when rearranging and hiding them.
...e ids to identify the columns when rearranging and hiding them.
...ce a seltype attribute on the tree, set to the value single.
...And 2 more matches
Writing Skinnable XUL and CSS - Archive of obsolete content
ake the ui as a whole easier to skin.
...sier to skin.
...olors, fonts, or borders.
...And 2 more matches
XUL Parser in Python/source - Archive of obsolete content
source code for the xul parser in python.
..., glob, xmllib import os, re el_list = {} w = open('res.html', 'w') # unfortunately, i had to put this hack in here to suppress the printing out of the resolved namespace: # "xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul window", etc.
... os, re el_list = {} w = open('res.html', 'w') # unfortunately, i had to put this hack in here to suppress the printing out of the resolved namespace: # "xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul window", etc.
...And 2 more matches
arrowscrollbox - Archive of obsolete content
se disables it.
...any pixels, or a negative value to scroll backward that many pixels.
...e value to scroll backward that many pixels.
...And 2 more matches
description - Archive of obsolete content
you can access it with a script for your own use.
...d set using the textbox.value and menulist.value syntax.
...value and menulist.value syntax.
...And 2 more matches
iframe - Archive of obsolete content
rability, for example if you use src="http://...".
...ad constants used by reloadwithflags and loaduriwithflags.
...oadwithflags and loaduriwithflags.
...And 2 more matches
listbox - Archive of obsolete content
you can access it with a script for your own use.
...d set using the textbox.value and menulist.value syntax.
...value and menulist.value syntax.
...And 2 more matches
listitem - Archive of obsolete content
you can access it with a script for your own use.
...d set using the textbox.value and menulist.value syntax.
...value and menulist.value syntax.
...And 2 more matches
menu - Archive of obsolete content
Archive › Mozilla › XUL › menu
you can access it with a script for your own use.
...d set using the textbox.value and menulist.value syntax.
...value and menulist.value syntax.
...And 2 more matches
menulist - Archive of obsolete content
you can access it with a script for your own use.
...d set using the textbox.value and menulist.value syntax.
...value and menulist.value syntax.
...And 2 more matches
menuseparator - Archive of obsolete content
you can access it with a script for your own use.
...d set using the textbox.value and menulist.value syntax.
...value and menulist.value syntax.
...And 2 more matches
notification - Archive of obsolete content
you can access it with a script for your own use.
...d set using the textbox.value and menulist.value syntax.
...value and menulist.value syntax.
...And 2 more matches
notificationbox - Archive of obsolete content
g the global function getnotificationbox(): notifybox = chromewin.getnotificationbox(notifywindow) notifybox = getnotificationbox(notifywindow) // applies to current context's window object here, chromewin is the xul window (usually just window), and notifywindow is the web content window for the tab you want to find the notification box for.
... type: event fired when a notification element is closed.
... a notification element is closed.
...And 2 more matches
prefpane - Archive of obsolete content
i, image, label, onpaneload, selected, src properties image, label, preferenceelements, preferences, selected, src examples methods preferenceforelement <prefpane id="panegeneral" label="general" src="chrome://path/to/paneoverlay.xul"/> or <prefpane id="panegeneral" label="general" onpaneload="ongeneralpaneload(event);"> <preferences> <preference id="pref_one" name="extensions.myextension.one" type="bool"/> ...
... changes in this pane to preferences, optionally flushes to disk.
... preferences, optionally flushes to disk.
...And 2 more matches
radiogroup - Archive of obsolete content
you can access it with a script for your own use.
...d set using the textbox.value and menulist.value syntax.
...value and menulist.value syntax.
...And 2 more matches
richlistbox - Archive of obsolete content
you can access it with a script for your own use.
...d set using the textbox.value and menulist.value syntax.
...value and menulist.value syntax.
...And 2 more matches
richlistitem - Archive of obsolete content
you can access it with a script for your own use.
...d set using the textbox.value and menulist.value syntax.
...value and menulist.value syntax.
...And 2 more matches
scale - Archive of obsolete content
Archive › Mozilla › XUL › scale
you can access it with a script for your own use.
...d set using the textbox.value and menulist.value syntax.
...value and menulist.value syntax.
...And 2 more matches
toolbox - Archive of obsolete content
ox only type: element the toolbarset within the toolbox.
...the toolbarset within the toolbox.
...e toolbox.
...And 2 more matches
window - Archive of obsolete content
ow id="rootwnd" title="register online!" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <vbox> <hbox> <image src="application_form.png"/> <description>register online!</description> </hbox> <groupbox align="start"> <caption label="your information"/> <radiogroup> <vbox> <hbox> <label control="your-fname" value="enter first name:"/> <textbox id="your-fname" value="johan"/> </hbox> <hbox> <label control="your-lname" value="enter last name:"/> <textbox id="your-lname" value="hernandez"/> </hbox> <hbox> <button oncommand="alert('save!')"> <description>save</description> </button> ...
... the same type together.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
...And 2 more matches
XUL Application Packaging - Archive of obsolete content
located at the root of the extension and provides metadata that allows xulrunner to launch the application properly.
...on and provides metadata that allows xulrunner to launch the application properly.
...adata that allows xulrunner to launch the application properly.
...And 2 more matches
application/http-index-format specification - Archive of obsolete content
data if there is one.
...man readable information line in html format.
...e but may not contain carrage returns or new lines.
...And 2 more matches
NPN_GetAuthenticationInfo - Archive of obsolete content
rom the browser.
...st char *scheme, const char *realm, char **username, uint32_t *ulen, char **password, uint32_t *plen); parameters this function has the following parameters: instance pointer to the current plug-in instance protocol protocol name (uri scheme) host host name port port number scheme http authentication scheme name realm http authentication realm username out parameter.
... char **password, uint32_t *plen); parameters this function has the following parameters: instance pointer to the current plug-in instance protocol protocol name (uri scheme) host host name port port number scheme http authentication scheme name realm http authentication realm username out parameter.
...And 2 more matches
NPN NewStream - Archive of obsolete content
a stream produced by the plug-in and consumed by the browser.
... #include <npapi.h> nperror npn_newstream(npp instance, npmimetype type, const char* target, npstream** stream); parameters the function has the following parameters: instance pointer to current plug-in instance.
...no_error.
...And 2 more matches
Shipping a plugin as a Toolkit bundle - Archive of obsolete content
y.
...gins/ libplugin.so libplugin.dylib install manifest the install manifest describes the plugin to the user.
...9e97384}</em:id> <em:minversion>1.5</em:minversion> <em:maxversion>4.0.*</em:maxversion> </description> </em:targetapplication> <em:unpack>true</em:unpack> </description> </rdf> this contains 5 required pieces of information.
...And 2 more matches
Expression closures - Archive of obsolete content
non-standard.
... non-standard.
... non-standard.
...And 2 more matches
Legacy generator function expression - Archive of obsolete content
the legacy generator function expression was a spidermonkey-specific feature, which is removed in firefox 58+.
...ature, which is removed in firefox 58+.
...oved in firefox 58+.
...And 2 more matches
Packages - Archive of obsolete content
va.*, netscape.*, and sun.* respectively.
...cess a constructor of the frame class as follows: var theframe = new packages.java.awt.frame(); for convenience, javascript provides the top-level netscape, sun, and java objects that are synonyms for the packages properties with the same names.
... var theframe = new packages.java.awt.frame(); for convenience, javascript provides the top-level netscape, sun, and java objects that are synonyms for the packages properties with the same names.
...And 2 more matches
Styling the Amazing Netscape Fish Cam Page - Archive of obsolete content
ained bit of markup for each fish, and then get down to styling.
... trigger</h3> <p> our clown trigger is a bold little fish, though for a few weeks he slept a lot and didn't look well in general.
...o place the images appropriately.
...And 2 more matches
XForms Repeat Element - Archive of obsolete content
ual to the index of the control set that the focused control belongs to.
...ctions you can use xforms action module elements to modify the nodeset that the repeat element is bound to.
...ndex (see the spec) elements.
...And 2 more matches
Accessibility tree (AOM) - MDN Web Docs Glossary: Definitions of Web-related terms
browsers convert markup into an internal representation called the dom tree.
...rkup’s elements, attributes, and text nodes.
... attributes, and text nodes.
...And 2 more matches
Callback function - MDN Web Docs Glossary: Definitions of Web-related terms
a callback function is a function passed into another function as an argument, which is then invoked inside the outer function to complete some kind of routine or action.
... a callback function is a function passed into another function as an argument, which is then invoked inside the outer function to complete some kind of routine or action.
... a callback function is a function passed into another function as an argument, which is then invoked inside the outer function to complete some kind of routine or action.
...And 2 more matches
Domain - MDN Web Docs Glossary: Definitions of Web-related terms
a domain is an authority within the internet that controls its own resources.
... a domain is an authority within the internet that controls its own resources.
... a domain is an authority within the internet that controls its own resources.
...And 2 more matches
What is CSS? - Learn web development
es, whereas others you will need to look up.
... full support 1.0system-uichrome full support 56edge full support 79firefox no support no no support no full support 43notes alternate name notes supported on macos only.alternate name uses the non-standard name: -apple-systemie no support noopera full support 43safari full support 9notes alternate name full support 9notes alternate name notes supported si...
...only.alternate name uses the non-standard name: -apple-systemie no support noopera full support 43safari full support 9notes alternate name full support 9notes alternate name notes supported since macos 10.11.alternate name uses the non-standard name: -apple-systemwebview android full support 56chrome android full support 56firefox android no support noopera android full support 43safari ios full support ...
...And 2 more matches
Web fonts - Learn web development
asics (study introduction to css), css text and font fundamentals.
...s accessed, meaning that any browser that supports web fonts can have exactly the fonts you specify available to it.
...le fonts are needed for cross browser support — this is fontsquirrel's way of making sure you've got everything you need.
...And 2 more matches
What is a URL? - Learn web development
l is a set method for exchanging or transferring data around a computer network.
...er sent to the server with the request.
... by the current document.
...And 2 more matches
Example - Learn web development
the article how to structure an html form.
...><abbr title="required">*</abbr></strong>.</p> <section> <h2>contact information</h2> <fieldset> <legend>title</legend> <ul> <li> <label for="title_1"> <input type="radio" id="title_1" name="title" value="a"> ace </label> </li> <li> <label for="title_2"> <input type="radio" id="title_2" name="title" value="k" > king </label> </li> <li> <label for="title_3"> <input type="radio" id="title_3" name="title" value="q"> queen </label> </li> </ul> </fieldset> <p> <label for="name"> <span>name: </span> <strong><abbr title="required">*</abbr></strong> </label> ...
... king </label> </li> <li> <label for="title_3"> <input type="radio" id="title_3" name="title" value="q"> queen </label> </li> </ul> </fieldset> <p> <label for="name"> <span>name: </span> <strong><abbr title="required">*</abbr></strong> </label> <input type="text" id="name" name="username"> </p> <p> <label for="mail"> <span>e-mail: </span> <strong><abbr title="required">*</abbr></strong> </label> <input type="email" id="mail" name="usermail"> </p> <p> <label for="pwd"> <span>password: </span> <strong><abbr title="required">*</abbr></strong> </label> <input type="password" id="pwd" n...
...And 2 more matches
Add a hitmap on top of an image - Learn web development
problem perfectly.
...rica than albania or estonia.
... on.
...And 2 more matches
HTML text fundamentals - Learn web development
u get stuck, press the show solution button to see the answer.
...olution.value = 'show solution'; updatecode(); }); solution.addeventlistener('click', function() { if(solution.value === 'show solution') { textarea.value = solutionentry; solution.value = 'hide solution'; } else { textarea.value = userentry; solution.value = 'show solution'; } updatecode(); }); var htmlsolution = '<h1>my short story</h1>\n<p>i am a statistician and my name is trish.</p>\n<p>my legs are made of cardboard and i am married to a fish.</p>'; var solutionentry = htmlsolution; textarea.addeventlistener('input', updatecode); window.addeventlistener('load', updatecode); // stop tab key tabbing out of textarea and // make it write a tab at the caret position instead textarea.onkeydown = function(e){ if (e.keycode === 9) { e.preventdefault(); ins...
...cal to keep an accessibility mindset.
...And 2 more matches
Images in HTML - Learn web development
d dinosaur.jpg, and it sits in the same directory as your html page, you could embed the image like so: <img src="dinosaur.jpg"> if the image was in an images subdirectory, which was inside the same directory as the html page (which google recommends for seo/indexing purposes), then you'd embed it like this: <img src="images/dinosaur.jpg"> and so on.
...mage like so: <img src="dinosaur.jpg"> if the image was in an images subdirectory, which was inside the same directory as the html page (which google recommends for seo/indexing purposes), then you'd embed it like this: <img src="images/dinosaur.jpg"> and so on.
...for use in situations where the image cannot be seen/displayed or takes a long time to render because of a slow internet connection.
...And 2 more matches
HTML table basics - Learn web development
Learn › HTML › Tables › Basics
ble is that it is rigid.
...the next article), they allow you to make tables more accessible by associating each header with all the data in the same row or column.
...ible by associating each header with all the data in the same row or column.
...And 2 more matches
Introducing asynchronous JavaScript - Learn web development
dy.appendchild(pelem); }); the first parameter is the type of event to be listened for, and the second parameter is a callback function that is invoked when the event is fired.
...on circumstance.
...tions to run on the response downloaded, such as processjson(), displaytext(), etc.
...And 2 more matches
Deployment and next steps - Learn web development
rollup to watch files and rebuild on changes.
...to enter your email address, and follow the steps in the email sent to that address, for security purposes.
...ically deploy your site whenever you push changes to a git repository.
...And 2 more matches
Creating our first Vue component - Learn web development
h node + npm installed.
...again.
...this: import todoitem from './components/todoitem.vue'; export default { name: 'app', components: { todoitem } }; this is the same way that the helloworld component was registered by the vue cli earlier.
...And 2 more matches
Chrome Worker Modules
le // (here, we import the core of os.file) let core = require("resource://gre/modules/osfile/osfile_shared_allthreads.jsm"); // we may now use module core.
...r “.js” or “.jsm”, and designed to be opened through require().
...stallation of resources, please see the documentation on moz.build (if your code is part of the platform) or on chrome manifests (if your code is part of an add-on).
...And 2 more matches
Mozilla’s UAAG evaluation report
nscripts available.
...spect synchronization cues.
...n active accessibility support for other kinds of content 6.4 programmatic operation.
...And 2 more matches
Browser chrome tests
d by the test harness when the test is run.
...uld attempt to reduce the side effects of the testing code and "clean up" after yourself, to avoid influencing other tests.
...rted by mochitests, see how the comparison functions work in the mochitest documentation for more details.
...And 2 more matches
Eclipse CDT Manual Setup
ting other file types in eclipse.) select "c/c++ > editor" and set "workspace default" to "doxygen".
...it console output".
...or the source tree and those directories are inside the source tree (or if you might have such object directories in future), then add an "exclude all", regular expression filter for folders with a project relative path matching "obj(?!-debug(?:$|/)).+".
...And 2 more matches
Gecko Logging
de.
...ad-safe manner and is the preferred method to declare a log module.
...prefs.
...And 2 more matches
Storage access policy: Block cookies from trackers
entity list", which prevents domains from being classified as trackers when they are loaded on a top-level site owned by the same organization.
...rs when they are loaded on a top-level site owned by the same organization.
... which resources match the tracking protection list.
...And 2 more matches
HTMLIFrameElement.download()
frameelement.download(url, options); returns a domrequest for handling the download request.
...ownload(url, options); returns a domrequest for handling the download request.
... request.
...And 2 more matches
Creating a New Protocol
this is a quick-start on details of how to add a new ipdl protocol to the build.
... this is a quick-start on details of how to add a new ipdl protocol to the build.
... this is a quick-start on details of how to add a new ipdl protocol to the build.
...And 2 more matches
AsyncShutdown.jsm
produced, with information on all the shutdown blockers that have not been resolved, and all the additional debug information returned by calls to info().
... yourself.
...asyncshutdown, please file a bug.
...And 2 more matches
PromiseWorker.jsm
er.jsm', {}); let myworker = new basepromiseworker('path_to_worker_file.js'); you're now ready to start using promiseworker.
...r_file.js'); you're now ready to start using promiseworker.
...); you're now ready to start using promiseworker.
...And 2 more matches
Using JavaScript code modules
y some javascript code located in a registered location.
...["import"]().
...dule a very simple javascript module looks like this: var exported_symbols = ["foo", "bar"]; function foo() { return "foo"; } var bar = { name : "bar", size : 3 }; var dummy = "dummy"; notice that the module uses normal javascript to create functions, objects, constants, and any other javascript type.
...And 2 more matches
Using the viewport meta tag to control layout on mobile browsers
plement it in fennec.
...ood explanation for web developers.) for pages that set an initial or maximum scale, this means the width property actually translates into a minimum viewport width.
...n just zooms the page when changing from portrait to landscape, instead of laying out the page as it would if originally loaded in landscape.
...And 2 more matches
Memory reporting
g::sizeofexcludingthis(mozilla::mallocsizeof amallocsizeof) const { return amallocsizeof(mbuffer); } size_t mystring::sizeofincludingthis(mozilla::mallocsizeof amallocsizeof) const { return amallocsizeof(this) + sizeofexcludingthis(amallocsizeof); } (note that sizeofexcludingthis and sizeofincludingthis aren't overrides of methods on a global base class that is common to all reporters.
...ature measure the size of p by asking the heap allocator how big it is (via moz_malloc_usable_size).
...d.
...And 2 more matches
powermetrics
show-process-gpu tells it to show per-process gpu measurements.
...ile the following programs were running: firefox beta (single process, invoked from the mac os dock, shown in the org.mozilla.firefox coalition.) firefox nightly (multi-process, invoked from the command line, shown in the com.apple.terminal coalition.) google chrome.
...ms were running: firefox beta (single process, invoked from the mac os dock, shown in the org.mozilla.firefox coalition.) firefox nightly (multi-process, invoked from the command line, shown in the com.apple.terminal coalition.) google chrome.
...And 2 more matches
Phishing: a short definition
in 2014, the msci estimated an annual global impact of phishing, and various forms of identity theft, to be as high as $5 billion usd.
...browser plays an essential role in the scheme: a fake website is loaded in a browser and here is the maker’s last chance to preventing fraud.
...above anti-phishing measures address the basic problem: username/password combinations are often enough to impersonate users.
...And 2 more matches
javascript.options.strict
javascript warnings are generated when code is executed that doesn't cause a run-time error, but is non-standard, poorly written, or prone to cause logic errors.
... javascript warnings are generated when code is executed that doesn't cause a run-time error, but is non-standard, poorly written, or prone to cause logic errors.
...nings are generated when code is executed that doesn't cause a run-time error, but is non-standard, poorly written, or prone to cause logic errors.
...And 2 more matches
Midas
introduction midas is the code name for gecko's built-in rich text editor.
...) with or without the signed js or any code on the page to handle it.
...ut the signed js or any code on the page to handle it.
...And 2 more matches
Network Addresses
ctions, clients can support either version 4 or version 6 of the internet protocol transparently.
...version 4 or version 6 of the internet protocol transparently.
....
...And 2 more matches
PRHostEnt
a structure that defines a list of network addresses.
... a structure that defines a list of network addresses.
...sed to pr_enumeratehostent.
...And 2 more matches
PR_NewLogModule
creates a new log module.
... creates a new log module.
... creates a new log module.
...And 2 more matches
PR_ReadDir
ny files.
...h the "hidden" attribute set.
...n with a period (".").
...And 2 more matches
PR_SetLogFile
sets the name of the log file.
... sets the name of the log file.
... sets the name of the log file.
...And 2 more matches
NSS 3.16.2 release notes
sl error code that means the server supports no protocols that the client advertises in the alpn extension.
...upports no protocols that the client advertises in the alpn extension.
...protocols that the client advertises in the alpn extension.
...And 2 more matches
NSS tools : cmsutil
name cmsutil — performs basic cryptograpic operations, such as encryption and decryption, on cryptographic message syntax (cms) messages.
...you would like to send an encrypted message.
... send an encrypted message.
...And 2 more matches
ssltyp.html
uctures managing secitem memory types and structures these types and structures are described here: certcertdbhandle certcertificate pk11slotinfo secitem seckeyprivatekey secstatus additional types used by a single function only are described with the function's entry in each chapter.
...akes a copy of a particular certificate structure that already exists in memory, ssl makes a shallow copy--that is, it increments the reference count for that object rather than making a whole new copy.
...tructure representing a physical or logical pkcs #11 slot.
...And 2 more matches
NSS tools : cmsutil
Mozilla › Projects › NSS › tools › cmsutil
name cmsutil — performs basic cryptograpic operations, such as encryption and decryption, on cryptographic message syntax (cms) messages.
...d message for that set of recipients, a new enveloped message will be created that you can then use for future messages (encrypt only).
...ipients, a new enveloped message will be created that you can then use for future messages (encrypt only).
...And 2 more matches
SpiderMonkey Build Documentation
eed nspr.
...otes under command line tools -> new features the release notes also states that this compatibility package will no longer be provided in the near future, so the build system on macos will have to be adapted to look for headers in the sdk until then, the following should help, open /library/developer/commandlinetools/packages/macos_sdk_headers_for_macos_10.14.pk this builds an executable named js in the directory build-release/dist/bin.
...r/local/include, and the js executable to/usr/local/bin.
...And 2 more matches
JS::GetSelfHostedFunction
this article covers features introduced in spidermonkey 31 create a new javascript function that is implemented in self-hosted javascript.
... this article covers features introduced in spidermonkey 31 create a new javascript function that is implemented in self-hosted javascript.
...hosted javascript.
...And 2 more matches
JS::NewFunctionFromSpec
create a new function based on the given jsfunctionspec.
...t jsfunctionspec* fs, handleid id); name type description cx jscontext * the context in which to define functions.
...leid id); name type description cx jscontext * the context in which to define functions.
...And 2 more matches
JSClass
a jsclass describes a class of javascript objects.
... call; jshasinstanceop hasinstance; jsnative construct; jsxdrobjectop xdrobject; /* obsolete since spidermonkey 13 */ jstraceop trace; /* added in spidermonkey 17 */ jsclassinternal reserved1; /* obsolete since spidermonkey 13 */ void *reserved[n]; /* sizeof 'reserved' depends on version */ }; name type description name const char * class name flags uint32_t class flags.
... be callable this way, use null.
...And 2 more matches
JSErrorReport
describes the format of a js error that is used either by the internal error reporting mechanism or by a user-defined error-reporting mechanism.
... describes the format of a js error that is used either by the internal error reporting mechanism or by a user-defined error-reporting mechanism.
... errornumber unsigned the error number.
...And 2 more matches
JSNewResolveOp
may still work in some browsers, its use is discouraged since it could be removed at any time.
...pedef bool (* jsnewresolveop)(jscontext *cx, js::handleobject obj, js::handleid id, js::mutablehandleobject objp); name type description cx jscontext * pointer to the js context in which the property access is taking place.
...sapi 20 the property is being used in code like "if (o.p)...", or a similar idiom where the apparent purpose of the property access is to detect whether the property exists.
...And 2 more matches
JSObjectOps.getProperty
-level jsclass hooks; calling getters or setters; and actually getting, setting, or deleting the property once it is found.
...hooks called during property accesses and don't have to implement any of that.
...he name or index of the property to access.
...And 2 more matches
JS_DefineProperties
define multiple properties for a single object.
...jspropertyspec *ps); name type description cx jscontext * the context in which to define the properties.
... properties to create.
...And 2 more matches
JS_GetPropertyDefault
lete since jsapi 26this feature is obsolete.
...idermonkey 1.8.5 finds a specified property and retrieves its value or provided default value.
... bool js_getpropertybyiddefault(jscontext *cx, jsobject *obj, jsid id, jsval def, js::mutablehandle<js::value> vp); name type description cx jscontext * a context.
...And 2 more matches
JS_InitClass
code by creating its prototype, constructor, properties, and functions.
...t be in a request on this jscontext.
... implemented in native c/c++.
...And 2 more matches
JS_Remove*Root
to a gc thing so that it is no longer a member of the garbage collector's root set.
... *cx, jsobject **opp); jsbool js_removegcthingroot(jscontext *cx, void **rp); name type description cx jscontext * a context.
....
...And 2 more matches
SpiderMonkey 45
ing platforms the jit is disabled; javascript code runs in an interpreter, as it has in previous versions.
...d updating the code a relatively straightforward job.
...here is a list of the most significant changes: js::nullptr is obsolete.
...And 2 more matches
TPS Formdata Lists
a formdata asset list is an array of objects, each with the following properties: fieldname: required.
... a formdata asset list is an array of objects, each with the following properties: fieldname: required.
... a formdata asset list is an array of objects, each with the following properties: fieldname: required.
...And 2 more matches
XUL Accessibility
introduction this article shows how xul control elements are mapped to accessibility api.
...ing 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 instead of id attribute accessible properties this section describes common rules how accessibility properties are formed for xul elements.
... 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 instead of id attribute accessible properties this section describes common rules how accessibility properties are formed for xul elements.
...And 2 more matches
The Places database
arks, folders and separators are descendants of the bookmarks root, while tags and tagged uris are descendants of the tag root.
...he bookmarks root, while tags and tagged uris are descendants of the tag root.
...re descendants of the tag root.
...And 2 more matches
Generating GUIDs
guids are used in mozilla programming for identifying several types of entities, including xpcom interfaces (this type of guids is callled iid), components (cid), and legacy add-ons—like extensions and themes—that were created prior to firefox 1.5.
...rfaces (this type of guids is callled iid), components (cid), and legacy add-ons—like extensions and themes—that were created prior to firefox 1.5.
...hat were created prior to firefox 1.5.
...And 2 more matches
Finishing the Component
are only minor changes to interfaces marked with such a tag.
...hen, using the same steps you used to create the weblock.h, create a header from this idl file using the xpidl compiler.
...clude nsicontentpolicy so that other parts of gecko will know weblock supports the nsicontentpolicy interface without modifying this macro.
...And 2 more matches
Components.utils.createObjectIn
ozilla.org/addons/2014/04/10/changes-to-unsafewindow-for-the-add-on-sdk/.
...mines the name of the object in the target compartment.
...he object in the target compartment.
...And 2 more matches
Components.utils.exportFunction
parameters func : function the function to export.
...e function are not cloned.
...loned.
...And 2 more matches
XPCShell Reference
he jsversion enumerated type.
...e should produce the following output: $ xpcshell test.js this is a test 0=this 1=is 2=a 3=test xpcshell extensions once you execute xpcshell without a script you'll be at the js> command line.
...ll extensions once you execute xpcshell without a script you'll be at the js> command line.
...And 2 more matches
nsIAuthInformation
netwerk/base/public/nsiauthinformation.idlscriptable a object that holds authentication information.
...alog or be shown in some other way to the user.
...user.
...And 2 more matches
nsICookieManager
ist.
...al aoriginattributes); void removeall(); attributes attribute type description enumerator nsisimpleenumerator called to enumerate through each cookie in the cookie list.
...ects enumerated over are of type nsicookie.
...And 2 more matches
nsIEditorSpellCheck
ble dictionaries, the return value is false.
...s not compute any suggestions.
...checkcurrentword(), so there may be suggestions, but they will be invalid.
...And 2 more matches
nsIException
his article.
...om: nsisupports last changed in gecko 1.7 method overview string tostring(); attributes attribute type description columnnumber pruint32 valid column numbers begin at 0.
...rsing.
...And 2 more matches
nsIFeedResult
toolkit/components/feeds/nsifeedresult.idlscriptable this interface provides access to http and parsing metadata for a feed or entry.
... clients designed to work with specific feeds.
...e feed; null if a non-feed is processed.
...And 2 more matches
nsIMIMEInputStream
ation of the content-length header.
...rue a "content-length" header is automatically added to the stream.
...tomatically calculated using the available() method on the data stream.
...And 2 more matches
nsIMsgDatabase
the nsimsgdatabase interface is an abstract interface used to access the mail database backend.
...fakeofflinemsgkey nsmsgkey readonly: for saving "fake" offline msg hdrs.
...viewflagstypevalue readonly: defaultsorttype nsmsgviewsorttypevalue readonly: defaultsortorder nsmsgviewsortordervalue readonly: msghdrcachesize unsigned long folderstream nsioutputstream summaryvalid boolean methods open() opens a database folder.
...And 2 more matches
nsINavHistoryResultViewer
gecko 2.0 inherits from: nsisupports last changed in gecko 1.9.2 (firefox 3.6 / thunderbird 3.1 / fennec 1.0) obsolete since gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1)this feature is obsolete.
...e slightly different parameter lists.
...r be rebuilt.
...And 2 more matches
nsISessionStore
dwindowcount(); astring getclosedwindowdata(); astring gettabstate(in nsidomnode atab); astring gettabvalue(in nsidomnode atab, in astring akey); astring getwindowstate(in nsidomwindow awindow); astring getwindowvalue(in nsidomwindow awindow, in astring akey); void init(in nsidomwindow awindow); void persisttabattribute(in astring aname); void restorelastsession(); void setbrowserstate(in astring astate); void settabstate(in nsidomnode atab, in astring astate); void settabvalue(in nsidomnode atab, in astring akey, in astring astringvalue); void setwindowstate(in nsidomwindow awindow, in astring astate, in boolean aoverwrite); void setwindowvalue(in nsidomwindow awindow, in ...
...ata (ie a javascript object) it can then be deserialized using json.parse cf.
... it.
...And 2 more matches
nsIXULAppInfo
xpcom/system/nsixulappinfo.idlscriptable this interface provides information about the host application.
... careful about which one you want.
...an be an empty string, if id is not set.
...And 2 more matches
nsIXULTemplateResult
type astring the type of the object.
...c purposes.
... methods getbindingfor() get the string representation of the value of a variable for this result.
...And 2 more matches
XPIDL Syntax
Mozilla › Tech › XPIDL › Syntax
c preprocessor, when a file is included multiple times, it acts as if the subsequent includes did not happen; this prevents the need for include guards.
...when a file is included multiple times, it acts as if the subsequent includes did not happen; this prevents the need for include guards.
...decl] ")" param_decl = [prop_list] ("in" / "out" / "inout") type_spec ident attr_decl = [prop_list] ["readonly"] "attribute" type_spec *(ident ",") ident ; descending order of precedence expr /= expr ("|" / "^" / "&") expr ; unequal precedence "|" is lowest expr /= expr ("<<" / ">>") expr expr /= expr ("+" / "-") expr expr /= expr ("*" / "/" / "%") expr expr /= ["-" / "+" / "~"] (scoped_name / literal / "(" expr ")" ) ; numeric literals: quite frankly, i'm sure you know how these kinds of ; literals work, and these are annoying to specify in abnf.
...And 2 more matches
pyxpidl
of two utilities: header.py, which generates c++ headers from idl, and typelib.py, which generates xpt files.
...ies: header.py, which generates c++ headers from idl, and typelib.py, which generates xpt files.
... in.
...And 2 more matches
Activity Manager examples
components.interfaces.nsiactivitymanager; let gactivitymanager = components.classes["@mozilla.org/activity-manager;1"].getservice(nsiam); let process = components.classes["@mozilla.org/activity-process;1"].createinstance(nsiap); // assuming folder is an instance of nsimsgfolder interface // localization is omitted, initiator is not provided process.init("processing folder: " + folder.prettiestname, null); // note that we don't define a custom icon, default process icon // will be used process.contexttype = "account"; // group this activity by account process.contextobj = folder.server; // account in question gactivitymanager.addactivity(process); // step 2: showing some progress let percent = 50; process.setprogress(percent, "junk processing 25 of 50 messages", 25, 50)...
...cessing 25 of 50 messages", 25, 50); // step 3: removing the process and adding an event using process' attributes process.state = components.interfaces.nsiactivityprocess.state_completed; gactivitymanager.removeactivity(process.id); let event = components.classes["@mozilla.org/activity-event;1"].createinstance(nsiae); // localization is omitted, initiator is omitted event.init(folder.prettiestname + " is processed", null, "no junk found", process.starttime, // start time date.now()); // completion time event.contexttype = process.contexttype; // optional event.contextobj = process.contextobj; // optional gactivitymanager.addactivity(event); showing a user-defined activity with cancel capability (javascript) this sample improves the...
...eturn cr.ns_success; } } return cr.ns_failure; } } // step 2: modify the previous sample to add initiator, subject // and associate a nsiactivitycancelhandler component ...
...And 2 more matches
Theme Packaging
/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <description about="urn:mozilla:install-manifest"> <em:type>4</em:type> more properties </description> </rdf> required install.rdf properties your install.rdf file must have the following properties.
...-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <description about="urn:mozilla:install-manifest"> <em:type>4</em:type> more properties </description> </rdf> required install.rdf properties your install.rdf file must have the following properties.
...<!-- target application this extension can install into, with minimum and maximum supported versions.
...And 2 more matches
Using the Mozilla symbol server
, you can try: nosharedlibrary sharedlibrary lib on older gdb and mac os x there is a python script to download symbols from the mozilla symbol server for gdb, shark and other software that uses symbols.
...ib on older gdb and mac os x there is a python script to download symbols from the mozilla symbol server for gdb, shark and other software that uses symbols.
...nd mac os x there is a python script to download symbols from the mozilla symbol server for gdb, shark and other software that uses symbols.
...And 2 more matches
ctypes.open
e must be created.
...ozilla.org/chrome/chrome-registry;1'].getservice(components.interfaces.nsichromeregistry); var chromeuri_mylib = services.io.newuri('chrome://youraddon/content/mysubfolder/mycfunctionsforunix.so', 'utf-8', null); var localfile_mylib = cr.convertchromeurl(chromeuri_mylib); var jarpath_mylib = localfile_mylib.spec; // "jar:file:///c:/users/vayeate/appdata/roaming/mozilla/firefox/profiles/aecgxse.unnamed%20profile%201/extensions/youraddon@jetpack.xpi!/mysubfolder/mycfunctionsforunix.so" var filepath_mylib = localfilemylib.path; // "file:///c:/users/vayeate/appdata/roaming/mozilla/firefox/profiles/aecgxse.unnamed%20profile%201/extensions/youraddon@jetpack.xpi!/mysubfolder/mycfunctionsforunix.so" if your add-on is a bootstrap add-on, then you don't need to use this method to convert a chrome:// ...
...d to use this method to convert a chrome:// path; instead, on startup procedure of the bootstrap add-on obtain the file and/or jar path from installpath from the adata parameter.
...And 2 more matches
Streams - Plugins
only mode rather than the older np_asfile; this mode is less efficient because it uses successive calls to npp_write.
...heck that the file exists in the directory at the start of this method.
...r writing to the file, the browser passes null for the filename.
...And 2 more matches
UI Tour - Firefox Developer Tools
ne the source list pane lists all the javascript source files loaded into the page, and enables you to select one to debug.
...con next to it in place of its regular icon.
... save the file locally.
...And 2 more matches
Debugger.Source - Firefox Developer Tools
n s-expression based syntax.
...l be returned in this case.
...was introduced into the system; the entire string is not a valid url.
...And 2 more matches
Work with animations - Firefox Developer Tools
displays animations created using css transitions, css @keyframes rules, or the web animations api.
...itor thread (see more about the cost of animating different css properties).
... the animation.
...And 2 more matches
CSSStyleDeclaration - Web APIs
es cssstyledeclaration.csstext textual representation of the declaration block.
...aining cssrule.
...sfloat special alias for the float css property.
...And 2 more matches
Using the CSS Typed Object Model - Web APIs
om the paragraph's styles, listing it as font-weight: 700.
...his is a paragraph with some content.
...pen up this example in codepen or jsfiddle, and change some features.
...And 2 more matches
CacheStorage.delete() - Web APIs
the delete() method of the cachestorage interface finds the cache object matching the cachename, and if found, deletes the cache object and returns a promise that resolves to true.
... the delete() method of the cachestorage interface finds the cache object matching the cachename, and if found, deletes the cache object and returns a promise that resolves to true.
... method of the cachestorage interface finds the cache object matching the cachename, and if found, deletes the cache object and returns a promise that resolves to true.
...And 2 more matches
CacheStorage.open() - Web APIs
Web › API › CacheStorage › open
the open() method of the cachestorage interface returns a promise that resolves to the cache object matching the cachename.
... the open() method of the cachestorage interface returns a promise that resolves to the cache object matching the cachename.
... the open() method of the cachestorage interface returns a promise that resolves to the cache object matching the cachename.
...And 2 more matches
CustomElementRegistry.get() - Web APIs
the get() method of the customelementregistry interface returns the constructor for a previously-defined custom element.
... the get() method of the customelementregistry interface returns the constructor for a previously-defined custom element.
... the get() method of the customelementregistry interface returns the constructor for a previously-defined custom element.
...And 2 more matches
Document.registerElement() - Web APIs
gisterelement() is deprecated in favor of customelements.define().
...vor of customelements.define().
...tomelements.define().
...And 2 more matches
EXT_disjoint_timer_query.getQueryEXT() - Web APIs
the ext_disjoint_timer_query.getqueryext() method of the webgl api returns information about a query target.
... the ext_disjoint_timer_query.getqueryext() method of the webgl api returns information about a query target.
...ery.getqueryext() method of the webgl api returns information about a query target.
...And 2 more matches
EXT_disjoint_timer_query.getQueryObjectEXT() - Web APIs
the ext_disjoint_timer_query.getqueryobjectext() method of the webgl api returns the state of a query object.
... the ext_disjoint_timer_query.getqueryobjectext() method of the webgl api returns the state of a query object.
... the ext_disjoint_timer_query.getqueryobjectext() method of the webgl api returns the state of a query object.
...And 2 more matches
Event.preventDefault() - Web APIs
type="checkbox" id="id-checkbox"/> </form> <div id="output-box"></div> result stopping keystrokes from reaching an edit field the following example demonstrates how invalid text input can be stopped from reaching the input field with preventdefault().
...x we'll draw when the user presses an invalid key: .warning { border: 2px solid #f39389; border-radius: 2px; padding: 10px; position: absolute; background-color: #fbd8d4; color: #3b3c40; } javascript and here's the javascript code that does the job.
...r presses an invalid key: .warning { border: 2px solid #f39389; border-radius: 2px; padding: 10px; position: absolute; background-color: #fbd8d4; color: #3b3c40; } javascript and here's the javascript code that does the job.
...And 2 more matches
Fetch basic concepts - Web APIs
h mode of no-cors request-no-cors response response() response error() or redirect() methods immutable a header's guard affects the set(), delete(), and append() methods which change the header's contents.
...o-cors response response() response error() or redirect() methods immutable a header's guard affects the set(), delete(), and append() methods which change the header's contents.
...se error() or redirect() methods immutable a header's guard affects the set(), delete(), and append() methods which change the header's contents.
...And 2 more matches
Using Fetch - Web APIs
ipt, add credentials: 'same-origin'.
...ringify(data), }) .then(response => response.json()) .then(data => { console.log('success:', data); }) .catch((error) => { console.error('error:', error); }); uploading a file files can be uploaded using an html <input type="file" /> input element, formdata() and fetch().
...ethod that creates a copy.
...And 2 more matches
File.type - Web APIs
Web › API › File › type
returns the media type (mime) of the file represented by a file object.
...s the media type (mime) of the file represented by a file object.
... (mime) of the file represented by a file object.
...And 2 more matches
FileHandle API - Web APIs
ndle instance requires an indexeddb database.
....txt", "plain/text"); buildhandle.onsuccess = function(){ var myfilehandle = this.result; console.log('handle', myfilehandle); }; }; mozcreatefilehandle() takes two arguments: a name and an optional type.
...nction(){ var myfilehandle = this.result; console.log('handle', myfilehandle); }; }; mozcreatefilehandle() takes two arguments: a name and an optional type.
...And 2 more matches
FormData() - Web APIs
Web › API › FormData › FormData
the formdata() constructor creates a new formdata object.
...ata object will be populated with the form's current keys/values using the name property of each element for the keys and their submitted value for the values.
...ncode file input content.
...And 2 more matches
Using the Gamepad API - Web APIs
.", gp.index, gp.id, gp.buttons.length, gp.axes.length); }); the gamepad object's properties are as follows: id: a string containing some information about the controller.
...tion connecthandler(e) { addgamepad(e.gamepad); } function addgamepad(gamepad) { controllers[gamepad.index] = gamepad; var d = document.createelement("div"); d.setattribute("id", "controller" + gamepad.index); var t = document.createelement("h1"); t.appendchild(document.createtextnode("gamepad: " + gamepad.id)); d.appendchild(t); var b = document.createelement("div"); b.classname = "buttons"; for (var i = 0; i < gamepad.buttons.length; i++) { var e = document.createelement("span"); e.classname = "button"; //e.id = "b" + i; e.innerhtml = i; b.appendchild(e); } d.appendchild(b); var a = document.createelement("div"); a.classname = "axes"; for (var i = 0; i < gamepad.axes.length; i++) { var p = document.createelement("progress"); p.
...uttons"; for (var i = 0; i < gamepad.buttons.length; i++) { var e = document.createelement("span"); e.classname = "button"; //e.id = "b" + i; e.innerhtml = i; b.appendchild(e); } d.appendchild(b); var a = document.createelement("div"); a.classname = "axes"; for (var i = 0; i < gamepad.axes.length; i++) { var p = document.createelement("progress"); p.classname = "axis"; //p.id = "a" + i; p.setattribute("max", "2"); p.setattribute("value", "1"); p.innerhtml = i; a.appendchild(p); } d.appendchild(a); // see https://github.com/luser/gamepadtest/blob/master/index.html var start = document.getelementbyid("start"); if (start) { start.style.display = "none"; } document.body.appendchild(d); requestanimationframe(updat...
...And 2 more matches
HTMLFormControlsCollection - Web APIs
olas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlformcontrolscollection</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface inherits the properties of its parent, htmlcollection.
...nt-baseline="middle">htmlformcontrolscollection</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface inherits the properties of its parent, htmlcollection.
...rolscollection</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface inherits the properties of its parent, htmlcollection.
...And 2 more matches
HTMLMetaElement - Web APIs
="150" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlmetaelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlmetaelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...lmetaelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...And 2 more matches
File drag and drop - Web APIs
re not fired when dragging a file into the browser from the os.
...m being opened) ev.preventdefault(); if (ev.datatransfer.items) { // use datatransferitemlist interface to access the file(s) for (var i = 0; i < ev.datatransfer.items.length; i++) { // if dropped items aren't files, reject them if (ev.datatransfer.items[i].kind === 'file') { var file = ev.datatransfer.items[i].getasfile(); console.log('...
... ev.preventdefault(); if (ev.datatransfer.items) { // use datatransferitemlist interface to access the file(s) for (var i = 0; i < ev.datatransfer.items.length; i++) { // if dropped items aren't files, reject them if (ev.datatransfer.items[i].kind === 'file') { var file = ev.datatransfer.items[i].getasfile(); console.log('...
...And 2 more matches
Headers.append() - Web APIs
Web › API › Headers › append
does not already exist.
...nce between set() and append() is that if the specified header already exists and accepts multiple values, set() will overwrite the existing value with the new one, whereas append() will append the new value onto the end of the set of values.
... that if the specified header already exists and accepts multiple values, set() will overwrite the existing value with the new one, whereas append() will append the new value onto the end of the set of values.
...And 2 more matches
IDBFactory.open() - Web APIs
Web › API › IDBFactory › open
esult attribute set to the new idbdatabase object for the connection.
...ject for the connection.
... error occurs while the database connection is being opened, then an error event is fired on the request object returned from this method.
...And 2 more matches
IDBIndex.get() - Web APIs
Web › API › IDBIndex › get
the following types: exception description transactioninactiveerror this idbindex's transaction is inactive.
...d an object store, then get the index lname from a simple contacts database.
... finally, we iterate through each record, and insert the data into an html table.
...And 2 more matches
IDBIndex.getKey() - Web APIs
Web › API › IDBIndex › getKey
the following types: exception description transactioninactiveerror this idbindex's transaction is inactive.
...n get the index lname from a simple contacts database.
... finally, we iterate through each record, and insert the data into an html table.
...And 2 more matches
IDBIndex.keyPath - Web APIs
Web › API › IDBIndex › keyPath
the keypath property of the idbindex interface returns the key path of the current index.
...then get the index lname from a simple contacts database.
... finally, we iterate through each record, and insert the data into an html table.
...And 2 more matches
IDBIndex.openKeyCursor() - Web APIs
actioninactiveerror this idbindex's transaction is inactive.
... object store, then get the index lname from a simple contacts database.
...e primary key.
...And 2 more matches
IDBTransaction.objectStore() - Web APIs
the objectstore() method of the idbtransaction interface returns an object store that has already been added to the scope of this transaction.
...eturns an object store that has already been added to the scope of this transaction.
... that has already been added to the scope of this transaction.
...And 2 more matches
IDBTransaction - Web APIs
at occured when there is an unsuccessful transaction.
...ion.
...hat this doesn't normally have to be called — a transaction will automatically commit when all outstanding requests have been satisfied and no new requests have been made.
...And 2 more matches
Basic concepts - Web APIs
they're running in, unless they are cancelled.
... that produces a cursor, which you use to iterate across the result set.
... (e.g.
...And 2 more matches
MediaRecorder.onerror - Web APIs
escribes the error that occurred.
...ecorder with the remaining received data, and finally a stop event is sent.
...ple creates a new mediarecorder instance and starts recording using the user agent's default media format.
...And 2 more matches
Using the MediaStream Recording API - Web APIs
or the user stopped sharing their microphone).
...ring their microphone).
...ompt('enter a name for your sound clip'); const clipcontainer = document.createelement('article'); const cliplabel = document.createelement('p'); const audio = document.createelement('audio'); const deletebutton = document.createelement('button'); clipcontainer.classlist.add('clip'); audio.setattribute('controls', ''); deletebutton.innerhtml = "delete"; cliplabel.innerhtml = clipname; clipcontainer.appendchild(audio); clipcontainer.appendchild(cliplabel); clipcontainer.appendchild(deletebutton); soundclips.appendchild(clipcontainer); const blob = new blob(chunks, { 'type' : 'audio/ogg; codecs=opus' }); chunks = []; const audiourl = window.url.createobjecturl(blob); audio.src = audiourl; deletebutton.onclick = function(e) { let evttgt = e.target; e...
...And 2 more matches
msSaveBlob - Web APIs
the navigator.mssaveblob() method saves the file or blob to disk.
... the navigator.mssaveblob() method saves the file or blob to disk.
... the navigator.mssaveblob() method saves the file or blob to disk.
...And 2 more matches
msSaveOrOpenBlob - Web APIs
the navigator.mssaveoropenblob() method saves the file or blob to disk.
... the navigator.mssaveoropenblob() method saves the file or blob to disk.
... the navigator.mssaveoropenblob() method saves the file or blob to disk.
...And 2 more matches
Navigator - Web APIs
Web › API › Navigator
ry on some activities.
... be retrieved using the read-only window.navigator property.
...s, but implements those defined in navigatorid, navigatorlanguage, navigatoronline, navigatorcontentutils, navigatorstorage, navigatorstorageutils, navigatorconcurrenthardware, navigatorplugins, and navigatorusermedia.
...And 2 more matches
PaintWorklet.registerPaint - Web APIs
the paintworklet.registerpaint() method of the paintworklet interface registers a class programmatically generate an image where a css property expects a file.
... the paintworklet.registerpaint() method of the paintworklet interface registers a class programmatically generate an image where a css property expects a file.
... the paintworklet.registerpaint() method of the paintworklet interface registers a class programmatically generate an image where a css property expects a file.
...And 2 more matches
PaymentAddress - Web APIs
versal postal union web site's addressing s42 standard materials, which provide information about international standards for postal addresses.
...try values: "us", "gb", "cn", or "jp".
...y, or institution at the payment address.
...And 2 more matches
PaymentResponse - Web APIs
rns a json-serializable object that provides a payment method specific message used by the merchant to process the transaction and determine successful fund transfer.
...ext returns the payment method identifier for the payment method that the user selected, for example, visa, mastercard, paypal, etc..
...or the payment method that the user selected, for example, visa, mastercard, paypal, etc..
...And 2 more matches
Performance Timeline - Web APIs
nce pages and using performance timeline.
...ine api extends the performance interface with three methods that provide different mechanisms to get a set of performance records (metrics), depending on the specified filter criteria.
...e different mechanisms to get a set of performance records (metrics), depending on the specified filter criteria.
...And 2 more matches
Plugin - Web APIs
Web › API › Plugin
the plugin interface provides information about a browser plugin.
... the plugin interface provides information about a browser plugin.
... the plugin interface provides information about a browser plugin.
...And 2 more matches
PublicKeyCredentialCreationOptions.rp - Web APIs
tialcreationoptions.rp properties icon optional an url as a usvstring value which points to an image resource which can be the logo/icon of the relying party.
... optional an url as a usvstring value which points to an image resource which can be the logo/icon of the relying party.
...ng party.
...And 2 more matches
RTCIceServers.urls - Web APIs
Web › API › RTCIceServer › urls
the rtciceserver dictionary's urls property specifies the url or urls of the servers to be used for ice negotiations.
... urls: "stun:stunserver.example.org" } ] }); notice that only the urls property is provided; the stun server doesn't require authentication, so this is all that's needed.
...ded.
...And 2 more matches
SharedWorker() - Web APIs
ject that executes the script at the specified url.
... the same origin or not.
... 10.0 / thunderbird 10.0 / seamonkey 2.7) and later accept data uris, that's not the case in all other browsers.
...And 2 more matches
SubtleCrypto.deriveBits() - Web APIs
ey() documentation.
... examples note: you can try the working examples on github.
... () => { sharedsecretvalue.classlist.remove("fade-in"); }); sharedsecretvalue.textcontent = `${buffer}...[${sharedsecret.bytelength} bytes total]`; } // generate 2 ecdh key pairs: one for alice and one for bob // in more normal usage, they would generate their key pairs // separately and exchange public keys securely const generatealiceskeypair = window.crypto.subtle.generatekey( { name: "ecdh", namedcurve: "p-384" }, false, ["derivebits"] ); const generatebobskeypair = window.crypto.subtle.generatekey( { name: "ecdh", namedcurve: "p-384" }, false, ["derivebits"] ); promise.all([generatealiceskeypair, generatebobskeypair]).then(values => { const aliceskeypair = values[0]; const bobskeypair = values[1]; const derivebitsbutton = document.querysel...
...And 2 more matches
SubtleCrypto.encrypt() - Web APIs
tion, and encrypts it with using rsa-oaep.
...oding() { const messagebox = document.queryselector(".aes-ctr #message"); let message = messagebox.value; let enc = new textencoder(); return enc.encode(message); } function encryptmessage(key) { let encoded = getmessageencoding(); // counter will be needed for decryption counter = window.crypto.getrandomvalues(new uint8array(16)); return window.crypto.subtle.encrypt( { name: "aes-ctr", counter, length: 64 }, key, encoded ); } let iv = new uint8array(16); let key = new uint8array(16); let data = new uint8array(12345); //crypto functions are wrapped in promises so we have to use await and make sure the function that //contains this code is an async function //encrypt function wants a cryptokey object const key_encoded = await crypto.subtle.
...int8array(12345); //crypto functions are wrapped in promises so we have to use await and make sure the function that //contains this code is an async function //encrypt function wants a cryptokey object const key_encoded = await crypto.subtle.importkey( "raw", key.buffer, 'aes-ctr' , false, ["encrypt", "decrypt"]); const encrypted_content = await window.crypto.subtle.encrypt( { name: "aes-ctr", counter: iv, length: 128 }, key_encoded, data ); //uint8array console.log(encrypted_content); aes-cbc this code fetches the contents of a text box, encodes it for encryption, and encrypts it using aes in cbc mode.
...And 2 more matches
SubtleCrypto.exportKey() - Web APIs
t exported = await window.crypto.subtle.exportkey( "raw", key ); const exportedkeybuffer = new uint8array(exported); const exportkeyoutput = document.queryselector(".exported-key"); exportkeyoutput.textcontent = `[${exportedkeybuffer}]`; } /* generate an encrypt/decrypt secret key, then set up an event listener on the "export" button.
...portedasbase64 = window.btoa(exportedasstring); const pemexported = `-----begin private key-----\n${exportedasbase64}\n-----end private key-----`; const exportkeyoutput = document.queryselector(".exported-key"); exportkeyoutput.textcontent = pemexported; } /* generate a sign/verify key pair, then set up an event listener on the "export" button.
...tedasbase64 = window.btoa(exportedasstring); const pemexported = `-----begin public key-----\n${exportedasbase64}\n-----end public key-----`; const exportkeyoutput = document.queryselector(".exported-key"); exportkeyoutput.textcontent = pemexported; } /* generate an encrypt/decrypt key pair, then set up an event listener on the "export" button.
...And 2 more matches
SubtleCrypto.sign() - Web APIs
Web › API › SubtleCrypto › sign
l be fulfilled with the signature.
... parameters algorithm is a string or object that specifies the signature algorithm to use and its parameters: to use rsassa-pkcs1-v1_5, pass the string "rsassa-pkcs1-v1_5" or an object of the form { "name": "rsassa-pkcs1-v1_5" }.
... /* fetch the contents of the "message" textbox, and encode it in a form we can use for the sign operation.
...And 2 more matches
SubtleCrypto.verify() - Web APIs
result = crypto.subtle.verify(algorithm, key, signature, data); parameters algorithm is a domstring or object defining the algorithm to use, and for some algorithm choices, some extra parameters.
...arameters.
...t the stored signature.
...And 2 more matches
TypeInfo - Web APIs
Web › API › TypeInfo
the obsolete typeinfo interface was intended to be used to describe a dom data type by keying its name to a namespace within the document's schema.
... the obsolete typeinfo interface was intended to be used to describe a dom data type by keying its name to a namespace within the document's schema.
... the obsolete typeinfo interface was intended to be used to describe a dom data type by keying its name to a namespace within the document's schema.
...And 2 more matches
URLSearchParams.has() - Web APIs
the has() method of the urlsearchparams interface returns a boolean that indicates whether a parameter with the specified name exists.
... the has() method of the urlsearchparams interface returns a boolean that indicates whether a parameter with the specified name exists.
... the has() method of the urlsearchparams interface returns a boolean that indicates whether a parameter with the specified name exists.
...And 2 more matches
URLUtilsReadOnly - Web APIs
ed are now directly part of the affected interfaces.
...ties this interface doesn't inherit any properties.
...ontaining the host, that is the hostname, a ':', and the port of the url.
...And 2 more matches
WebGLRenderingContext.pixelStorei() - Web APIs
the webglrenderingcontext.pixelstorei() method of the webgl api specifies the pixel storage modes.
... the webglrenderingcontext.pixelstorei() method of the webgl api specifies the pixel storage modes.
... the webglrenderingcontext.pixelstorei() method of the webgl api specifies the pixel storage modes.
...And 2 more matches
WebGLRenderingContext.texParameter[fi]() - Web APIs
the webglrenderingcontext.texparameter[fi]() methods of the webgl api set texture parameters.
... the webglrenderingcontext.texparameter[fi]() methods of the webgl api set texture parameters.
...t param); parameters target a glenum specifying the binding point (target).
...And 2 more matches
Writing a WebSocket server in C# - Web APIs
e in c#.
...age, but to keep things simple and more understandable, i chose microsoft's language.
...tandable, i chose microsoft's language.
...And 2 more matches
Web Video Text Tracks Format (WebVTT) - Web APIs
an optional cue identifier followed by a newline.
...l be displayed over the video.
...n.
...And 2 more matches
Window.openDialog() - Web APIs
Web › API › Window › openDialog
window.opendialog() is an extension to window.open().
... these parameters may be used, then, to pass arguments to and from the dialog window.
...mediately.
...And 2 more matches
window.postMessage() - Web APIs
message.
...tured clone algorithm.
...essage", receivemessage, false); function receivemessage(event) { if (event.origin !== "http://example.org:8080") return; // ...
...And 2 more matches
XMLHttpRequest.getResponseHeader() - Web APIs
the xmlhttprequest method getresponseheader() returns the string containing the text of a particular header's value.
...responseheader() returns the string containing the text of a particular header's value.
...eparated from the previous one by a pair of comma and space.
...And 2 more matches
XPathEvaluator.createExpression() - Web APIs
this method compiles an xpathexpression which can then be used for (repeated) evaluations of the xpath expression.
...sion which can then be used for (repeated) evaluations of the xpath expression.
... permits translation of all prefixes, including the xml namespace prefix, within the xpath expression into appropriate namespace uris.
...And 2 more matches
XPathEvaluator.createNSResolver() - Web APIs
this method adapts any dom node to resolve namespaces so that an xpath expression can be easily evaluated relative to the context of the node where it appeared within the document.
... this method adapts any dom node to resolve namespaces so that an xpath expression can be easily evaluated relative to the context of the node where it appeared within the document.
... this method adapts any dom node to resolve namespaces so that an xpath expression can be easily evaluated relative to the context of the node where it appeared within the document.
...And 2 more matches
XPathEvaluator.evaluate() - Web APIs
ode or document and returns an xpathresult.
...t xpathevaluator.evaluate(expression, contextnode, resolver, type, result); parameters expression a domstring representing the xpath expression to be parsed and evaluated.
...e returned.
...And 2 more matches
XPathResult.iterateNext() - Web APIs
e_err in case xpathresult.resulttype is not unordered_node_iterator_type or ordered_node_iterator_type, an xpathexception of type type_err is thrown.
...ted since the result was returned, an xpathexception of type invalid_state_err is thrown.
...f type invalid_state_err is thrown.
...And 2 more matches
XPathResult.snapshotItem() - Web APIs
node = result.snapshotitem(i); return value the node at the given index within the node set of the xpathresult.
...ered_node_snapshot_type, an xpathexception of type type_err is thrown.
...shows the use of the snapshotitem() method.
...And 2 more matches
msWriteProfilerMark - Web APIs
uction sites facing the web: it will not work for every user.
... the web: it will not work for every user.
...ch can be useful for more accurately debugging real users perf issues.
...And 2 more matches
Using the aria-labelledby attribute - Accessibility
ity with user agents that do not support aria, you can use aria-labelledby with the <label> element (using the for attribute).
...user agents compute the accessible name property of elements that have both an aria-labelledby attribute and an aria-label attribute, the user agents give precedence to aria-labelledby.
...nts compute the accessible name property of elements that have both an aria-labelledby attribute and an aria-label attribute, the user agents give precedence to aria-labelledby.
...And 2 more matches
ARIA: dialog role - Accessibility
effects on user agents and assistive technology when the dialog role is used, the user agent should do the following: expose the element as a dialog in the operating system's accessibility api.
...ive technolgy used.
...y used.
...And 2 more matches
Basic form hints - Accessibility
is required to complete the form.
... are set to true (in addition to the asterisks next to the labels), indicating that the name and email fields are required.
... to true (in addition to the asterisks next to the labels), indicating that the name and email fields are required.
...And 2 more matches
-webkit-text-security - CSS: Cascading Style Sheets
ord.
...syntax -webkit-text-security: circle; -webkit-text-security: disc; -webkit-text-security: square; -webkit-text-security: none; formal definition value not found in db!
...rcle; -webkit-text-security: disc; -webkit-text-security: square; -webkit-text-security: none; formal definition value not found in db!
...And 2 more matches
:host() - CSS: Cascading Style Sheets
Web › CSS › :host()
the :host() css pseudo-class function selects the shadow host of the shadow dom containing the css it is used inside (so you can select a custom element from inside its shadow dom) — but only if the selector given as the function's parameter matches the shadow host.
...ow dom.
...[ <type-selector>?
...And 2 more matches
:valid - CSS: Cascading Style Sheets
Web › CSS › :valid
lects any valid <input> */ input:valid { background-color: powderblue; } this pseudo-class is useful for highlighting correct fields for the user.
...lid <input> */ input:valid { background-color: powderblue; } this pseudo-class is useful for highlighting correct fields for the user.
...background-color: powderblue; } this pseudo-class is useful for highlighting correct fields for the user.
...And 2 more matches
system - CSS: Cascading Style Sheets
system: cyclic; system: numeric; system: alphabetic; system: symbolic; system: additive; system: fixed; /* combined values */ system: fixed 3; system: extends decimal; this may take one of three forms: one of the keyword values cyclic, numeric, alphabetic, symbolic, additive, or fixed.
...eight.
...ding order of their weights or the system is invalid.
...And 2 more matches
font-family - CSS: Cascading Style Sheets
the font-family css descriptor allows authors to specify the font family for the font specified in an @font-face rule.
... the font-family css descriptor allows authors to specify the font family for the font specified in an @font-face rule.
...he font family for the font specified in an @font-face rule.
...And 2 more matches
At-rules - CSS: Cascading Style Sheets
Web › CSS › At-rule
), or the next css block, whichever comes first.
...* example: tells browser to use utf-8 character set */ @charset "utf-8"; there are several at-rules, designated by their identifiers, each with a different syntax: @charset — defines the character set used by the style sheet.
...ntermediate steps in a css animation sequence.
...And 2 more matches
grid-template-areas - CSS: Cascading Style Sheets
the grid-template-areas css property specifies named grid areas, establishing the cells in the grid and assigning them names.
...mn-end, and their shorthands grid-row, grid-column, and grid-area.
...*/ grid-template-areas: "a b"; grid-template-areas: "a b b" "a c d"; /* global values */ grid-template-areas: inherit; grid-template-areas: initial; grid-template-areas: unset; values none the grid container doesn’t define any named grid areas.
...And 2 more matches
var() - CSS: Cascading Style Sheets
Web › CSS › var
insert the value of a custom property (sometimes called a "css variable") instead of any part of a value of another property.
... contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
... so usually produces invalid syntax, or else a value whose meaning has no connection to the variable.) syntax the first argument to the function is the name of the custom property to be substituted.
...And 2 more matches
disabled - HTML: Hypertext Markup Language
on, <option> and <optgroup>, as well as some form controls that are disabled via the disabled attribute set on the ancestor <fieldset> element.
... attribute set on the ancestor <fieldset> element.
...dding the attribute to that element rather than it's descendants.
...And 2 more matches
<dl>: The Description List element - HTML: Hypertext Markup Language
Web › HTML › Element › dl
re to implement a glossary or to display metadata (a list of key-value pairs).
... mostly herbivorous mammal, slightly larger than a domestic cat (60 cm long).
..., by combining the examples above.
...And 2 more matches
<fieldset>: The Field Set element - HTML: Hypertext Markup Language
Web › HTML › Element › fieldset
't be submitted along with the <form>.
...itted along with the <form>.
...et</legend> <input type="radio" id="radio"> <label for="radio">spirit of radio</label> </fieldset> </form> disabled fieldset this example shows a disabled <fieldset> with two controls inside it.
...And 2 more matches
<iframe>: The Inline Frame element - HTML: Hypertext Markup Language
Web › HTML › Element › iframe
es.
...ource should be downloaded after other higher-priority page resources.
... outside the visible viewport (this is the default value).
...And 2 more matches
itemref - HTML: Hypertext Markup Language
e microdata data model.
....
...ollow a convenient tree structure.
...And 2 more matches
Global attributes - HTML: Hypertext Markup Language
fault to lowercase words, the first letter of each word defaults to a capital letter; all other letters default to lowercase characters, all letters should default to uppercase class a space-separated list of the classes of the element.
...hat a standard html element should behave like a registered custom built-in element (see using custom elements for more details).
...ng helps define the language of an element: the language that non-editable elements are in, or the language that editable elements should be written in by the user.
...And 2 more matches
Choosing between www and non-www URLs - HTTP
a recurring question among website owners is whether to choose non-www or www urls.
... a recurring question among website owners is whether to choose non-www or www urls.
... a recurring question among website owners is whether to choose non-www or www urls.
...And 2 more matches
Identifying resources on the Web - HTTP
tps://developer.mozilla.org/search?q=url any of those urls can be typed into your browser's address bar to tell it to load the associated page (resource).
...hose urls can be typed into your browser's address bar to tell it to load the associated page (resource).
...d into your browser's address bar to tell it to load the associated page (resource).
...And 2 more matches
Using HTTP cookies - HTTP
Web › HTTP › Cookies
kie is no longer sent.
...sub-domain can set a cookie with the domain attribute, which gives access to that cookie on all other subdomains.
...xes to assert specific facts about the cookie.
...And 2 more matches
Index - HTTP
Web › HTTP › Headers › Index
found 122 pages: # page tags and summary 1 http headers http, http header, networking, overview, reference http headers allow the client and the server to pass additional information with the request or the response.
...curity, cross-origin issue, header, origin the access-control-allow-origin response header indicates whether the response can be shared with requesting code from the given origin.
...nformation from the client-facing side of proxy servers that is altered or lost when a proxy is involved in the path of the request.
...And 2 more matches
Origin - HTTP
Web › HTTP › Headers › Origin
the origin request header indicates where a fetch originates from.
...t only the server name.
...th post requests.
...And 2 more matches
Referrer-Policy - HTTP
the referrer-policy http header controls how much referrer information (sent via the referer header) should be included with requests.
... the referrer-policy http header controls how much referrer information (sent via the referer header) should be included with requests.
...lt) this is the default behavior if no policy is specified, or if the provided value is invalid.
...And 2 more matches
Vary - HTTP
Web › HTTP › Headers › Vary
rather than requesting a fresh one from the origin server.
...gin server.
...is used by the server to indicate which headers it used when selecting a representation of a resource in a content negotiation algorithm.
...And 2 more matches
HTTP headers - HTTP
Web › HTTP › Headers
http headers let the client and the server pass additional information with an http request or response.
...ls flag is true.
...s) that a client used to connect to your proxy or load balancer.
...And 2 more matches
Redirections in HTTP - HTTP
nge the html redirects, the redirects will no longer be identical, which could cause an infinite loop or other nightmares.
...e are reasons for alternative names for a resource: expanding the reach of your site a common case is when a site resides at www.example.com, but accessing it from example.com should also work.
...ur site a common case is when a site resides at www.example.com, but accessing it from example.com should also work.
...And 2 more matches
Introduction - JavaScript
custom requests from code written in the browser.
...he bottom of the console is an input line that you can use to enter javascript, and the output appears in the panel above: the console works the exact same way as eval: the last expression entered is returned.
...input line that you can use to enter javascript, and the output appears in the panel above: the console works the exact same way as eval: the last expression entered is returned.
...And 2 more matches
Numbers and dates - JavaScript
dles dates similarly to java.
...ave many of the same date methods, and both languages store dates as the number of milliseconds since january 1, 1970, 00:00:00, with a unix timestamp being the number of seconds since january 1, 1970, 00:00:00.
...the same date methods, and both languages store dates as the number of milliseconds since january 1, 1970, 00:00:00, with a unix timestamp being the number of seconds since january 1, 1970, 00:00:00.
...And 2 more matches
Public class fields - JavaScript
ld = 'base field' } class subclasswithstaticfield extends classwithstaticfield { static substaticfield = 'sub class field' } console.log(subclasswithstaticfield.substaticfield) // expected output: "sub class field" console.log(subclasswithstaticfield.basestaticfield) // expected output: "base field" when initializing fields, this refers to the class constructor.
...sswithinstancefield() console.log(instance.instancefield) // expected output: "instance field" fields without initializers are initialized to undefined.
... "instance field" fields without initializers are initialized to undefined.
...And 2 more matches
static - JavaScript
instances of the class.
...m another static method'; } } staticmethodcall.staticmethod(); // 'static method has been called' staticmethodcall.anotherstaticmethod(); // 'static method has been called from another static method' calling static methods from a class constructor and other methods static methods are not directly accessible using the this keyword from non-static methods.
...tatic method'; } } staticmethodcall.staticmethod(); // 'static method has been called' staticmethodcall.anotherstaticmethod(); // 'static method has been called from another static method' calling static methods from a class constructor and other methods static methods are not directly accessible using the this keyword from non-static methods.
...And 2 more matches
TypeError: invalid assignment to const "x" - JavaScript
signment to const (edge) typeerror: redeclaration of const 'x' (ie) error type typeerror what went wrong?
...t, constants are declared using the const keyword.
... invalid redeclaration assigning a value to the same constant name in the same block-scope will throw.
...And 2 more matches
setter - JavaScript
erty to a function to be called when there is an attempt to set that property.
...tps://github.com/mdn/interactive-examples and send us a pull request.
...bject literal with another set or with a data entry for the same property.
...And 2 more matches
EvalError() constructor - JavaScript
the evalerror constructor creates a new error regarding the global eval() function.
... the evalerror constructor creates a new error regarding the global eval() function.
... the evalerror constructor creates a new error regarding the global eval() function.
...And 2 more matches
EvalError - JavaScript
n.
...ption is not thrown by javascript anymore, however the evalerror object remains for compatibility.
...e evalerror object remains for compatibility.
...And 2 more matches
FinalizationRegistry.prototype.unregister() - JavaScript
release() { this.#registry.unregister(this); // ^^^^−−−−− unregister token } } this example shows registering a target object using a different object as its unregister token: { // ^^^^−−−−− held value console.error( `the \`release\` method was never called for the \`thingy\` for the file "${file.name}"` ); }; #registry = new finalizationregistry(this.#cleanup); /** * constructs a `thingy` instance for the given file.
...ken: { // ^^^^−−−−− held value console.error( `the \`release\` method was never called for the \`thingy\` for the file "${file.name}"` ); }; #registry = new finalizationregistry(this.#cleanup); /** * constructs a `thingy` instance for the given file.
... // ^^^^−−−−− held value console.error( `the \`release\` method was never called for the \`thingy\` for the file "${file.name}"` ); }; #registry = new finalizationregistry(this.#cleanup); /** * constructs a `thingy` instance for the given file.
...And 2 more matches
Intl.Locale.prototype.minimize() - JavaScript
thod attempts to remove information about the locale that would be added by calling locale.maximize().
...).
...ve-examples and send us a pull request.
...And 2 more matches
Object.defineProperty() - JavaScript
perty on an object, and returns the object.
... // with defineproperty with a data property descriptor object.defineproperty(o, 'a', { value: 37, writable: true, enumerable: true, configurable: true }); // 'a' property exists in the o object and its value is 37 // example of an object property added // with defineproperty with an accessor property descriptor var bvalue = 38; object.defineproperty(o, 'b', { // using shorthand method names (es2015 feature).
...e = function() { return archive; }; } var arc = new archiver(); arc.temperature; // 'get!' arc.temperature = 11; arc.temperature = 13; arc.getarchive(); // [{ val: 11 }, { val: 13 }] in this example, a getter always returns the same value.
...And 2 more matches
handler.ownKeys() - JavaScript
ownkeys: function(target) { } }); parameters the following parameter is passed to the ownkeys() method.
... the result of ownkeys() must be an array.
...pe of each array element is either a string or a symbol.
...And 2 more matches
Reflect - JavaScript
s those of proxy handlers.
...reflect.set(target, propertykey, value[, receiver]) a function that assigns values to properties.
...perties.
...And 2 more matches
SyntaxError() constructor - JavaScript
the syntaxerror constructor creates a new error object that represents an error when trying to interpret syntactically invalid code.
... the syntaxerror constructor creates a new error object that represents an error when trying to interpret syntactically invalid code.
... the syntaxerror constructor creates a new error object that represents an error when trying to interpret syntactically invalid code.
...And 2 more matches
TypedArray - JavaScript
a typedarray object describes an array-like view of an underlying binary data buffer.
...hat views the specified arraybuffer.
...t and length parameters specify the memory range that will be exposed by the typed array view.
...And 2 more matches
WebAssembly.CompileError() constructor - JavaScript
the webassembly.compileerror() constructor creates a new webassembly compileerror object, which indicates an error during webassembly decoding or validation.
... the webassembly.compileerror() constructor creates a new webassembly compileerror object, which indicates an error during webassembly decoding or validation.
... the webassembly.compileerror() constructor creates a new webassembly compileerror object, which indicates an error during webassembly decoding or validation.
...And 2 more matches
WebAssembly.CompileError - JavaScript
an error during webassembly decoding or validation.
...ing webassembly decoding or validation.
...compileerror() creates a new webassembly.compileerror object.
...And 2 more matches
WebAssembly.LinkError() constructor - JavaScript
the webassembly.linkerror() constructor creates a new webassembly linkerror object, which indicates an error during module instantiation (besides traps from the start function).
... the webassembly.linkerror() constructor creates a new webassembly linkerror object, which indicates an error during module instantiation (besides traps from the start function).
... the webassembly.linkerror() constructor creates a new webassembly linkerror object, which indicates an error during module instantiation (besides traps from the start function).
...And 2 more matches
WebAssembly.LinkError - JavaScript
g module instantiation (besides traps from the start function).
...tantiation (besides traps from the start function).
... webassembly.linkerror() creates a new webassembly.linkerror object.
...And 2 more matches
WebAssembly.RuntimeError() constructor - JavaScript
the webassembly.runtimeerror() constructor creates a new webassembly runtimeerror object — the type that is thrown whenever webassembly specifies a trap.
... the webassembly.runtimeerror() constructor creates a new webassembly runtimeerror object — the type that is thrown whenever webassembly specifies a trap.
... the webassembly.runtimeerror() constructor creates a new webassembly runtimeerror object — the type that is thrown whenever webassembly specifies a trap.
...And 2 more matches
WebAssembly.RuntimeError - JavaScript
at is thrown whenever webassembly specifies a trap.
... whenever webassembly specifies a trap.
...runtimeerror() creates a new webassembly.runtimeerror object.
...And 2 more matches
for...in - JavaScript
eyed by strings (ignoring ones keyed by symbols), including inherited enumerable properties.
...ther an added property will be visited, whether a modified property (other than the current one) will be visited before or after it is modified, or whether a deleted property will be visited before it is deleted.
...for...in should not be used to iterate over an array where the index order is important.
...And 2 more matches
Template literals (Template strings) - JavaScript
e template literals with a function.
...lt.push(value, strings[i + 1]); }); return result.join(''); }); } let t1closure = template`${0}${1}${0}!`; //let t1closure = template(["","","","!"],0,1,0); t1closure('y', 'a'); // "yay!" let t2closure = template`${0} ${'foo'}!`; //let t2closure = template([""," ","!"],0,"foo"); t2closure('hello', {foo: 'world'}); // "hello world!" let t3closure = template`i'm ${'name'}.
...{0}!`; //let t1closure = template(["","","","!"],0,1,0); t1closure('y', 'a'); // "yay!" let t2closure = template`${0} ${'foo'}!`; //let t2closure = template([""," ","!"],0,"foo"); t2closure('hello', {foo: 'world'}); // "hello world!" let t3closure = template`i'm ${'name'}.
...And 2 more matches
<mi> - MathML
Web › MathML › Element › mi
the mathml <mi> element indicates that the content should be rendered as an identifier such as function names, variables or symbolic constants.
...nction names, variables or symbolic constants.
...ext in it to mark up terms.
...And 2 more matches
Codecs used by WebRTC - Web media technologies
upported video codecs webrtc establishes a baseline set of codecs which all compliant browsers are required to support.
... android 68 and later do not support avc (h.264) anymore.
...or web browsers and other fully-webrtc compliant products.
...And 2 more matches
color-profile - SVG: Scalable Vector Graphics
the color-profile attribute is used to define which color profile a raster image included through the <image> element should use.
...are presumed to be defined in the srgb color space unless a more precise embedded profile is specified within content data.
...med to be defined in the srgb color space unless a more precise embedded profile is specified within content data.
...And 2 more matches
<a> - SVG: Scalable Vector Graphics
Web › SVG › Element › a
the <a> svg element creates a hyperlink to other web pages, files, locations in the same page, email addresses, or any other url.
..."> <!-- a link around a shape --> <a href="/docs/web/svg/element/circle"> <circle cx="50" cy="40" r="35"/> </a> <!-- a link around a text --> <a href="/docs/web/svg/element/text"> <text x="50" y="90" text-anchor="middle"> &lt;circle&gt; </text> </a> </svg> /* as svg does not provide a default visual style for links, it's considered best practice to add some */ @namespace svg url(http://www.w3.org/2000/svg); /* necessary to select only svg <a> elements, and not also html’s.
...ace svg url(http://www.w3.org/2000/svg); /* necessary to select only svg <a> elements, and not also html’s.
...And 2 more matches
SVG 2 support in Mozilla - SVG: Scalable Vector Graphics
ng <style> implementation status unknown requiredfeatures attribute removed implementation status unknown svgsvgelement.currentview and svgsvgelement.usecurrentview removed svgsvgelement.currentview was never implemented, svgsvgelement.usecurrentview not removed yet (bug 1174097) svgunknownelement not implemented (bug 1239218) lang attribute without namespace implemented (bug 721920) svgsvgelement.viewport removed never implemented xml:base attribute removed implementation status unknown reorder descendent elements of <switch> having systemlanguage attribute according to allowreorder smil attribute implementation status unknown made <tspan> and <textpath> graphics elements implementation status u...
...wn use of white-space instead of deprecated xml:space attribute in ua style sheet implementation status unknown @font-face, ::first-letter and ::first-line on <text> implementation status unknown svg and html style sheets in html document with inline svg applying to whole document content implementation status unknown presentation attributes on any svg namespaced element implementation status unknown display behavior of <style> defined via ua style sheet implementation status unknown !important user agent style rules controlling never-rendered elements implementation status unknown :focus and ::selection styles implementation status unknown geometry change notes x and y attribut...
...mentation status unknown markers on all shapes implementation status unknown <marker> element display defined in ua style sheet implementation status unknown only single paints for fills and strokes implementation status unknown color change notes color managed images implementation status unknown rgba, hsl, lab, icc named colors and device colors implementation status unknown color-profile removed implementation status unknown <color-profile> removed implementation status unknown paint servers change notes <solidcolor> (renamed solidcolor) not implemented (bug 1177032) fr attribute for <radialgradient> not implemented (bug 1240275) ...
...And 2 more matches
How to turn off form autocompletion - Web security
tocompletion to disable autocompletion in forms, you can set the autocomplete attribute to "off": autocomplete="off" you can do this either for an entire form, or for specific input elements in a form: <form method="post" action="/form" autocomplete="off"> […] </form> <form method="post" action="/form"> […] <div> <label for="cc">credit card:</label> <input type="text" id="cc" name="cc" autocomplete="off"> </div> </form> setting autocomplete="off" on fields has two effects: it tells the browser not to save data inputted by the user for later autocompletion on similar forms, though heuristics for complying vary by browser.
...by browser.
...hown in the case where the user has submitted the form and clicked the back button to go back to the original form page.
...And 2 more matches
Axes - XPath
Web › XPath › Axes
utes.
...children, any other use will select nothing.
...ttribute nodes are not the children of their parents.
...And 2 more matches
not - XPath
Web › XPath › Functions › not
is evaluated exactly as if it were passed as an argument to the boolean() function.
...ted exactly as if it were passed as an argument to the boolean() function.
... as if it were passed as an argument to the boolean() function.
...And 2 more matches
Common XSLT Errors - XSLT: Extensible Stylesheet Language Transformations
mime types your server needs to send both the source and the stylesheet with a xml mime type, text/xml or application/xml.
... mime types your server needs to send both the source and the stylesheet with a xml mime type, text/xml or application/xml.
... with a xml mime type, text/xml or application/xml.
...And 2 more matches
<xsl:call-template> - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:call-template> element invokes a named template.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:call-template> element invokes a named template.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:call-template> element invokes a named template.
...And 2 more matches
Setting Parameters - XSLT: Extensible Stylesheet Language Transformations
then display it.
...descending sorting.
...t, which is a child of the xsl:stylesheet element.
...And 2 more matches
indexed-db - Archive of obsolete content
nd get all items in the database.
...tion(e) { var db = e.target.result; e.target.transaction.onerror = database.onerror; if(db.objectstorenames.contains("items")) { db.deleteobjectstore("items"); } var store = db.createobjectstore("items", {keypath: "time"}); }; request.onsuccess = function(e) { database.db = e.target.result; }; request.onerror = database.onerror; }; function additem(name) { var db = database.db; var trans = db.transaction(["items"], "readwrite"); var store = trans.objectstore("items"); var time = new date().gettime(); var request = store.put({ "name": name, "time": time }); request.onerror = database.onerror; }; function getitems(callback) { var cb = callback; var db = database.db; var trans = db.transaction(["items"], "readwrite"); ...
...ransaction(["items"], "readwrite"); var store = trans.objectstore("items"); var items = new array(); trans.oncomplete = function() { cb(items); } var keyrange = idbkeyrange.lowerbound(0); var cursorrequest = store.opencursor(keyrange); cursorrequest.onsuccess = function(e) { var result = e.target.result; if(!!result == false) return; items.push(result.value.name); result.continue(); }; cursorrequest.onerror = database.onerror; }; function listitems(itemlist) { console.log(itemlist); } open("1"); var add = require("sdk/ui/button/action").actionbutton({ id: "add", label: "add", icon: "./add.png", onclick: function() { additem(require("sdk/tabs").activetab.title); } }); var list = require("sdk/ui/button/action").actionbutton({ ...
..."sdk/ui/button/action").actionbutton({ id: "add", label: "add", icon: "./add.png", onclick: function() { additem(require("sdk/tabs").activetab.title); } }); var list = require("sdk/ui/button/action").actionbutton({ id: "list", label: "list", icon: "./list.png", onclick: function() { getitems(listitems); } }); note that to run this add-on you'll need to provide icons named "add.png" and "list.png" in the add-on's "data" directory.
tabs - Archive of obsolete content
a new tab on active window in the background.
...hing once it's open.
...dy event, this becomes tab-centric: if the user navigates to a new page in the same tab, then the content scripts will be reattached to the new page.
...ipt string,array a string or an array of strings of code to be evaluated in the context.
console/traceback - Archive of obsolete content
experimental functionality similar to python's traceback module.
... experimental functionality similar to python's traceback module.
...n's traceback module.
...k module.
system/events - Archive of obsolete content
service parameters type : string the event type.
...event.
...the event subject object data: the event data string strong : boolean default is false, a weak reference, which means it can be garbage collected at any time if there are no other references to it.
...tch.
test/utils - Archive of obsolete content
ou need to guarantee a particular state before running a test, and to clean up after your test.
...m asynchronous, pass a third argument done, which is a function to call when you have finished: let { before, after } = require('sdk/test/utils'); let { search } = require('sdk/places/bookmarks'); exports.testcountbookmarks = function (assert, done) { search().on('end', function (results) { assert.equal(results, 0, 'should be no bookmarks'); done(); }); }; before(exports, function (name, assert, done) { removeallbookmarksasync(function () { done(); }); }); require('sdk/test').run(exports); globals functions before(exports, beforefn) runs beforefn before each test in the file.
...un(exports); globals functions before(exports, beforefn) runs beforefn before each test in the file.
... must be invoked before the test runs.
util/object - Archive of obsolete content
functions for working with objects.
... functions for working with objects.
...ned) in case of objects are skipped.
... 10 } var b = merge(a, { foo: 5, bar: 6 }, { foo: 50, location: "sf" }); b === a // true b.jetpacks // "are yes" b.foo // 50 b.bar // 6 b.location // "sf" // merge also translates property descriptors var c = { "type": "addon" }; var d = {}; object.defineproperty(d, "name", { value: "jetpacks", configurable: false }); merge(c, d); var props = object.getownpropertydescriptor(c, "name"); console.log(props.configurable); // true parameters source : object the object that other properties are merged into.
Chrome Authority - Archive of obsolete content
ments, with a single static string, one per line of code.
...to see a require entry, the manifest will not include that entry, and (once the implementation is complete) the runtime code will get an exception.
...ll not include that entry, and (once the implementation is complete) the runtime code will get an exception.
...ed modules: // all of these will fail!
Unit Testing - Archive of obsolete content
"index.js" file as follows: var base64 = require("./base64"); var button = require("sdk/ui/button/action").actionbutton({ id: "base64", label: "base64", icon: "./icon-16.png", onclick: function() { encoded = base64.btoa("hello"); console.log(encoded); decoded = base64.atob(encoded); console.log(decoded); } }); to run this example you'll also have to have an icon file named "icon-16.png" saved in your add-ons "data" directory.
...: atob works console.info: jpm-utest: executing './test/test-base64.test btoa' console.info: jpm-utest: pass: btoa works console.info: jpm-utest: executing './test/test-base64.test empty string' console.info: jpm-utest: pass: empty string check works 3 of 3 tests passed.
...a' console.info: jpm-utest: pass: btoa works console.info: jpm-utest: executing './test/test-base64.test empty string' console.info: jpm-utest: pass: empty string check works 3 of 3 tests passed.
... works 3 of 3 tests passed.
Bookmarks - Archive of obsolete content
firefox 2 and earlier creating a new bookmark var win = mybrowser.contentwindow; // get the bookmarks service const bmsvc = components.classes["@mozilla.org/browser/bookmarks-service;1"] .getservice(components.interfaces.nsibookmarksservice); // create the bookmark bmsvc.createbookmarkincontainer(win.document.title, // bookmark name win.location.href.tostring(), // uri of the bookmark null, // shortcut win.document.title, // description win.document.characterset, // charset null, // postdata bookmarksservice.getbookmarkstoolbarfolder(), // bookmark folder ...
...ice;1"] .getservice(components.interfaces.nsinavbookmarksservice); creating a bookmark folder creating a new bookmark folder is done using the nsinavbookmarksservice.createfolder() method.
...k folder creating a new bookmark folder is done using the nsinavbookmarksservice.createfolder() method.
...ting a new bookmark folder is done using the nsinavbookmarksservice.createfolder() method.
Downloading Files - Archive of obsolete content
the following methods of downloading files may not work as expected after firefox 26, and should no longer be used.
...t.saveuri(obj_uri, null, null, null, "", targetfile, privacy); downloading files that require credentials before calling nsiwebbrowserpersist.saveuri(), you need to set the progresslistener property of the nsiwebbrowserpersist instance to an object that implements nsiauthprompt.
...sist;1", "nsiwebbrowserpersist"); var persist = webbrowserpersist(); // obtain the privacy context of the browser window that the url // we are downloading comes from.
...ner = { queryinterface: xpcomutils.generateqi(["nsiauthprompt"]), // implements nsiauthprompt prompt: function(dialogtitle, text, passwordrealm, savepassword, defaulttext, result) { result.value = hardcodedpassword; return true; }, promptpassword: function(dialogtitle, text, passwordrealm, savepassword, pwd) { pwd.value = hardcodedpassword; return true; }, promptusernameandpassword: function(dialogtitle, text, passwordrealm, savepassword, user, pwd) { user.value = hardcodedusername; pwd.value = hardcodedpassword; return true; } }; persist.saveuri(urltosave, null, null, null, "", nsfileinstance, privacy); the above is going to give you errors about missing nsidownloadprogresslistener methods, so you should implement that as well.
Post data to window - Archive of obsolete content
prequest for post requests.
... post requests.
...uriwithflags() methods expects the post data in the form of an nsiinputstream (because they eventually call nsiwebnavigation.loaduri()) while post data can be created using nsimimeinputstream.
...() methods expects the post data in the form of an nsiinputstream (because they eventually call nsiwebnavigation.loaduri()) while post data can be created using nsimimeinputstream.
QuerySelector - Archive of obsolete content
along the lines of other frameworks such as jquery or prototype, shortening the "queryselector" name can be convenient: function $ (selector, el) { if (!el) {el = document;} return el.queryselector(selector); } function $$ (selector, el) { if (!el) {el = document;} return el.queryselectorall(selector); // note: the returned object is a nodelist.
...ect xulelement] ]]></script> document.prototype.$ = function (selector) { // only for plain xml return this.queryselector(selector); }; var foo = document.implementation.createdocument('somens', 'foo', null); // create an xml document <foo xmlns="somens"/> var bar = foo.createelementns('somens', 'bar'); // add <bar xmlns="somens"/> foo.documentelement.appendchild(bar); alert(foo.$('bar').nodename); // gives 'bar' element.prototype.$ = function (selector) { // works for html, xul, and plain xml return this.queryselector(selector); }; html example: <h1><a>test!<a/></h1> <script> element.prototype.$ = function (selector) { return this.queryselector(selector); }; alert(document.getelementsbytagname('h1')[0].$('a').nodename); // 'a' xul example: <hbox><vbox/></hbox> <script type="te...
... (selector) { return this.queryselector(selector); }; alert(document.getelementsbytagname('h1')[0].$('a').nodename); // 'a' xul example: <hbox><vbox/></hbox> <script type="text/javascript"><![cdata[ element.prototype.$ = function (selector) { return this.queryselector(selector); }; var xulns = 'http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul'; alert(document.getelementsbytagnamens(xulns, 'hbox')[0].$('vbox').nodename); // vbox ]]></script> xml example: <foo xmlns="somens"><bar/></foo> in document earlier var foo = document.getelementsbytagnamens('somens', 'foo')[0]; alert(foo.$('bar')); note that for plain xml, the # 'id' selector will not work with an 'id' attribute (since a such-named attribute need not necessarily be of type id in xml, though it is in html and xul)...
...t for plain xml, the # 'id' selector will not work with an 'id' attribute (since a such-named attribute need not necessarily be of type id in xml, though it is in html and xul), nor will it work with xml:id.
SVG General - Archive of obsolete content
requires you to use setattributens to add attributes to a newly created svg dom element.
...y when you're mixing svg with html or xul.
... "svghref": "href" } var ns_map = { "svghref": xlinkns }; function makesvg(tag, attributes) { var elem = document.createelementns(svgns, tag); for (var attribute in attributes) { var name = (attribute in attr_map ?
...nkns }; function makesvg(tag, attributes) { var elem = document.createelementns(svgns, tag); for (var attribute in attributes) { var name = (attribute in attr_map ?
Deploying a Plugin as an Extension - Archive of obsolete content
.dll the important file here is the install.rdf file.
... the install.rdf file.
...em:maxversion> </description> </em:targetapplication> </description> </rdf> you can get more detailed information about this file at install.rdf.
... </description> </em:targetapplication> </description> </rdf> you can get more detailed information about this file at install.rdf.
Inline options - Archive of obsolete content
ring color colorpicker string (in the #123456 format) file browse button and label string directory browse button and label string menulist menulist dependent on the menu item values radio radio buttons dependent on the radio values control button no pref stored the pref attribute should have the full name of the preference to be stored.
...te: starting in gecko 13.0, you can also listen for the addon-options-hidden notification, which has the same subject and data as above, to find out when the ui is about to be removed.
....rdf).
...the xul file used for displaying the options.
Adding menus and submenus - Archive of obsolete content
et to "checkbox".
... the view > status bar item in the main firefox menu.
...nly one of them has to be checked at any given moment, you should set the type to "radio".
...used to identify the items that belong to the radio group.
Tabbed browser - Archive of obsolete content
( url, where, allowthirdpartyfixup, postdata, referrerurl ) where: "current" current tab (if there aren't any browser windows, then in a new window instead) "tab" new tab (if there aren't any browser windows, then in a new window instead) "tabshifted" same as "tab" but in background if default is to select new tabs, and vice versa "window" new window "save" save to disk (with no filename hint!) openuilink( url, e, ignorebutton, ignorealt, allowkeywordfixup, postdata, referrerurl ) the following code will open a url in a new tab, an existing tab, or an existing window based on which mouse button was pressed and which hotkeys (ex: ctrl) are being held.
...te to it when we first open it.
...terfaces.nsiwindowmediator); for (var found = false, index = 0, tabbrowser = wm.getenumerator('navigator:browser').getnext().gbrowser; index < tabbrowser.tabcontainer.childnodes.length && !found; index++) { // get the next tab var currenttab = tabbrowser.tabcontainer.childnodes[index]; // does this tab contain our custom attribute?
...indow in case another one is currently focused tabbrowser.ownerdocument.defaultview.focus(); found = true; } } if (!found) { // our tab isn't open.
Updating addons broken by private browsing changes - Archive of obsolete content
iconforpage/setandloadfaviconforpage now take a required privacy status argument, either nsifaviconservice.favicon_load_private or nsifaviconservice.favicon_load_non_private.
...orpage now take a required privacy status argument, either nsifaviconservice.favicon_load_private or nsifaviconservice.favicon_load_non_private.
...(win) to obtain it from the relevant window.
...ds nsisocketprovider.no_permanent_storage or nothing.
Index of archived content - Archive of obsolete content
windows low-level apis /loader chrome console/plain-text console/traceback content/content content/loader content/mod content/symbiont content/worker core/heritage core/namespace core/promise dev/panel event/core event/target frame/hidden-frame frame/utils fs/path io/byte-streams io/file io/text-streams lang/functional lang/type loader/cuddlefish loader/sandbox ...
...ing the download progress bar delayed execution dialogs and prompts downloading files drag & drop embedding svg examples and demos from articles file i/o finding window handles forms related code snippets html in xul for rich tooltips html to dom isdefaultnamespace js xpcom javascript debugger service javascript timers javascript daemons management label and description lookupnamespaceuri lookupprefix miscellaneous modules on page load page loading post d...
...ection and cross browser support browser feature detection displaying notifications (deprecated) e4x e4x for templating processing xml with e4x e4x tutorial accessing xml children descendants and filters introduction namespaces the global xml object iterator liveconnect liveconnect overview liveconnect reference jsexception jsobject msx emulator (jsmsx) old proxy api parallelarra...
... xforms api reference xforms config variables xforms custom controls xforms custom controls examples xforms styling background-size foreach beginner tutorials creating reusable content with css and xbl underscores in class and id names xml data xul user interfaces case sensitivity in class and id names creating a dynamic status bar extension creating a status bar extension element title gecko compatibility handbook getting the page url in npapi plugin index index of archived co...
Localizing an extension - Archive of obsolete content
ion download the sample you can download this article's sample code so you can look at it side-by-side with the article, or to use it as a basis for your own extension.
... window system "chrome://stockwatcher2/locale/options.dtd"> we add a similar line to the stockwatcher.xul file: <!doctype overlay system "chrome://stockwatcher2/locale/stockwatcher2.dtd"> in larger applications you might need to use entities from several locale files in a single xul file.
...g-bundle" src="chrome://stockwatcher2/locale/stockwatcher2.properties"/> </stringbundleset> this establishes a new string bundle, referenced by the id "string-bundle", whose keys and values are to be loaded from the stockwatcher2.properties file we've already created.
... src="chrome://stockwatcher2/locale/stockwatcher2.properties"/> </stringbundleset> this establishes a new string bundle, referenced by the id "string-bundle", whose keys and values are to be loaded from the stockwatcher2.properties file we've already created.
MMgc - Archive of obsolete content
time using the delete operator.
...ay to think about it: unmanaged memory is c++ operators new and delete managed memory is c++ operator new, with optional delete mmgc contains a page allocator called gcheap, which allocates large blocks (megabytes) of memory from the system and doles out 4kb pages to the unmanaged memory allocator (fixedmalloc) and the managed memory allocator (gc).
...locator called gcheap, which allocates large blocks (megabytes) of memory from the system and doles out 4kb pages to the unmanaged memory allocator (fixedmalloc) and the managed memory allocator (gc).
... and doles out 4kb pages to the unmanaged memory allocator (fixedmalloc) and the managed memory allocator (gc).
Source Navigator - Archive of obsolete content
system to automatically generate a makefile.
...et/ why worth a try?
...gator.
...faster speed.
How Thunderbird and Firefox find their configuration files - Archive of obsolete content
how thunderbird and firefox find their configuration files thunderbird looks into the binary %appdata%\thunderbird\profiles.ini file for its "registry", which contains, amongst other information, a pointer to the directory where the profile is stored (usually located in %appdata%\thunderbird\profiles\profilename).
... located in %appdata%\thunderbird\profiles\profilename).
...stored in the specified directory, in a file named prefs.js.
...th=profiles/default.uda if you want to point this to a location of your choice (for example h:\thunderbird), you need to perform to changes: set isrelative to be 0 update the path to point to the desired place.
Using Dehydra - Archive of obsolete content
in the user analysis script with information about the code being compiled.
...s class should not be subclassed!
... helper function: returns true if a class is marked with the "final" attribute.
...s marked with the "final" attribute.
Document Loading - From Load Start to Finding a Handler - Archive of obsolete content
, we may find the html parser as the stream listener to give the data to).
... the stream listener to give the data to).
...most often, the one we find is nsdsuricontentlistener, which corresponds to a docshell and handles most of the data types that mozilla handles internally.
...ese registered listeners are used later during content dispatch.
Java in Firefox Extensions - Archive of obsolete content
missions doesn't add to the policy itself, and // (2) addurl alone does not set the grant codebase function policyadd (loader, urls) { try { //if have trouble with the policy try changing it to //edu.mit.simile.javafirefoxextensionutils.urlsetpolicy var str = 'edu.mit.simile.javafirefoxextensionutils.urlsetpolicy'; var policyclass = java.lang.class.forname( str, true, loader ); var policy = policyclass.newinstance(); policy.setouterpolicy(java.security.policy.getpolicy()); java.security.policy.setpolicy(policy); policy.addpermission(new java.security.allpermission()); for (var j=0; j < urls.length; j++) { policy.addurl(urls[j]); } }c...
... will auto-convert to a java array) urlarray[0] = new java.net.url(myjarpath); urlarray[1] = new java.net.url(classloaderjarpath); var cl = java.net.urlclassloader.newinstance(urlarray); //set security policies using the above policyadd() function policyadd(cl, urlarray); now you can begin using liveconnect, including referencing the classes in your jars.
... urlarray[1] = new java.net.url(classloaderjarpath); var cl = java.net.urlclassloader.newinstance(urlarray); //set security policies using the above policyadd() function policyadd(cl, urlarray); now you can begin using liveconnect, including referencing the classes in your jars.
...; var cl = java.net.urlclassloader.newinstance(urlarray); //set security policies using the above policyadd() function policyadd(cl, urlarray); now you can begin using liveconnect, including referencing the classes in your jars.
Porting NSPR to Unix Platforms - Archive of obsolete content
r.
...rce code in the thread management, thread synchronization, and i/o area.
...files are in <tt>mozilla/nsprpub/pr/src/pthreads</tt>.
...tells you which array element is the stack pointer.
Proxy UI - Archive of obsolete content
.proxy.type".
...he radio buttons do not map to the proxy type in order (due the evolution of the ui): proxy mode "network.proxy.type" no proxy (direct) network.proxy.type=0 auto-detect proxy settings...
...dio buttons do not map to the proxy type in order (due the evolution of the ui): proxy mode "network.proxy.type" no proxy (direct) network.proxy.type=0 auto-detect proxy settings...
... commas when you save changes (ff, tb, sm).
Frequently Asked Questions - Archive of obsolete content
code/gibberish instead of svg?
...ith the text "this xml file does not appear to have any style information associated with it" then the problem is with the svg file.
...arsing error" message instead of svg?
...a will show this message when there's an xml well formedness error in the file it tried to load.
The Download Manager schema - Archive of obsolete content
the download manager uses an sqlite table to keep track of downloads in progress as well as queued and past downloads.
...wnloads.
...rsion is 8.
...ilable using nsidownloadmanager methods to retrieve nsidownload objects for each download entry; however, if you feel like poking directly into the table, you can do so using the storage api.
DOM Interfaces - Archive of obsolete content
the nsidomdocumentxbl interface the nsidomdocumentxbl interface contains methods for manipulating xbl bindings.
..." on mozilla.dev.platform for some discussion about this.
...form for some discussion about this.
...) anonid attribute to retrieve a specific anonymous child in an xbl binding.
Mac stub installer - Archive of obsolete content
odewarrior project.
...o do this, in addition to the above steps to set up the mac installer to debug you will need to do the following: create a file named xpcom.xpi with the shared libraries in the structure described under the [xpcom] section in: <http://lxr.mozilla.org/seamonkey/sou...ackages-mac#33> note that if you are using the debug target of the installer binary all shared libraries are expected to have the name format <libname>debug.shlb now set a break point at xpi_init() in the mac installer code and step into xpistub and eventually the xpinstall engine will load including symbols so you can set a break point in the xpinstall engine itself.
... shared libraries are expected to have the name format <libname>debug.shlb now set a break point at xpi_init() in the mac installer code and step into xpistub and eventually the xpinstall engine will load including symbols so you can set a break point in the xpinstall engine itself.
....jst to the: <http://lxr.mozilla.org/seamonkey/sou.../packager/mac/> directory.
Windows stub installer - Archive of obsolete content
the path to mozilla/dist/win32_d.obj/install/setup.exe set "working directory" to be the path to mozilla/dist/wind32_d.obj/install press f10 to step into the code how we get setup to debug the xpinstall engine from the windows stub installer?
...of the packages-win file for it's simple syntax and semantics.
...on.
...listed in makejs.pl can be found by searching for "version", which is one of the macro strings, until you find the line $line =~ s/\$version\$/$inversion/i; other macro strings are grouped in this section.
windowsShortcut - Archive of obsolete content
the installed software.
...ption, folderobject aworkingpath, string aparams, folderobject aicon, number aiconid); parameters the windowsshortcut method has the following parameters: atarget a filespecobject representing the absolute path (including filename) to file that the shortcut will be created for.
...has the following parameters: atarget a filespecobject representing the absolute path (including filename) to file that the shortcut will be created for.
...ing description for the shortcut to be used as the shortcut name with a .lnk extension (do not include .lnk in the string).
deleteValue - Archive of obsolete content
deletevalue removes the value of an arbitrary key.
... deletevalue removes the value of an arbitrary key.
... deletevalue removes the value of an arbitrary key.
... deletevalue removes the value of an arbitrary key.
getValueNumber - Archive of obsolete content
getvaluenumber gets the value of a key when that value is a number.
... getvaluenumber gets the value of a key when that value is a number.
... getvaluenumber gets the value of a key when that value is a number.
... getvaluenumber gets the value of a key when that value is a number.
setValue - Archive of obsolete content
setvalue netscape 6 and mozilla do not currently support this method.
...etscape 6 and mozilla do not currently support this method.
...zilla do not currently support this method.
...ntly support this method.
setValueNumber - Archive of obsolete content
summary sets the value of a key, when that value is a number.
... summary sets the value of a key, when that value is a number.
... summary sets the value of a key, when that value is a number.
... summary sets the value of a key, when that value is a number.
setValueString - Archive of obsolete content
setvaluestring sets the value of a key, when that value is a string.
... setvaluestring sets the value of a key, when that value is a string.
... setvaluestring sets the value of a key, when that value is a string.
... setvaluestring sets the value of a key, when that value is a string.
autocompletesearch - Archive of obsolete content
« xul reference home autocompletesearch new in thunderbird 2requires seamonkey 1.1 type: space-separated list of values a space-separated list of search component names, each of which implements the nsiautocompletesearch interface.
... « xul reference home autocompletesearch new in thunderbird 2requires seamonkey 1.1 type: space-separated list of values a space-separated list of search component names, each of which implements the nsiautocompletesearch interface.
... « xul reference home autocompletesearch new in thunderbird 2requires seamonkey 1.1 type: space-separated list of values a space-separated list of search component names, each of which implements the nsiautocompletesearch interface.
... « xul reference home autocompletesearch new in thunderbird 2requires seamonkey 1.1 type: space-separated list of values a space-separated list of search component names, each of which implements the nsiautocompletesearch interface.
ContextMenus - Archive of obsolete content
en a context menu, the context is the element that was clicked.
...ontext is the element that was clicked.
...event will fire before an attempt to open the context menu.
...ent.
Panels - Archive of obsolete content
a panel is a popup which can support any type of content.
...or example, the following panel displays a textbox for entering a name.
...he following panel displays a textbox for entering a name.
...s a textbox for entering a name.
Special Condition Tests - Archive of obsolete content
etimes you want to simply generate one block of content at the top level and different content at the recurisive level.
...he one with the datasources attribute on it.
...from the previous iteration.
...rces="people.xml" ref="*" querytype="xml"> <template> <query expr="*"/> <rule parent="vbox"> <action> <groupbox uri="?"> <caption label="?name"/> </groupbox> </action> </rule> <rule> <action> <label uri="?" value="?name"/> </action> </rule> </template> </vbox> previously, an assign element was used to assign the tagname of the result to a variable, which was then compared in a rule condition.
Using Multiple Queries to Generate More Results - Archive of obsolete content
el uri="?item" value="?title"/> </action> </rule> </queryset> </template> you can view the example.
...ryset> </template> you can view the example.
... you can also use more than query when using an xml source.
...is an example which generates two sets of results and shows them together.
Accesskey display rules - Archive of obsolete content
e the character, xul elements append the accesskey character with parentheses.
...y character with parentheses.
...d provide a way for specifying accesskeys which are independent from their labels.
...ng accesskeys which are independent from their labels.
Creating a Window - Archive of obsolete content
« previousnext » we're going to be creating a simple find files utility throughout this tutorial.
...r interface window is described instead of a document.
...he window.
... javascript.
Cross Package Overlays - Archive of obsolete content
way.
...ve a few elements for entering a filename and directory to search.
... a filename and directory to search.
...l the file foverlay.xul and add it to the findfile directory along with findfile.xul.
More Tree Features - Archive of obsolete content
a small triangle or plus sign to appear before the cells in that column to indicate the cells that can be expanded.
... plus sign to appear before the cells in that column to indicate the cells that can be expanded.
...indicate the cells that can be expanded.
... that can be expanded.
XBL Example - Archive of obsolete content
page will be added.
...the onget script to get the value, increment or decrement the value by one, and then call the onset handler to set the value.
...alue, increment or decrement the value by one, and then call the onset handler to set the value.
...ts="label=nexttext" oncommand="parentnode.parentnode.parentnode.page++;"/> </xul:hbox> </xul:vbox> </content> <implementation> <constructor> var totalpages=this.childnodes.length; document.getanonymousnodes(this)[0].childnodes[1].childnodes[1] .setattribute("value",(this.page+1)+" of "+totalpages); </constructor> <property name="page" onget="return parseint(document.getanonymousnodes(this)[0].childnodes[0].getattribute('selectedindex'));" onset="return this.setpage(val);"/> <method name="setpage"> <parameter name="newidx"/> <body> <![cdata[ var thedeck=document.getanonymousnodes(this)[0].childnodes[0]; var totalpages=this.childnodes.length; if (...
XUL Questions and Answers - Archive of obsolete content
ng, and run xslt transormations.
...e best you can do is a cascading menu along the lines of the move/copy menus, but then of course you lose the ability to easily select from the list.
...up"> <menupopup id="abpopup-menupopup" ref="moz-abdirectory://" datasources="rdf:addressdirectory" sortactive="true" sortdirection="ascending" sortresource="http://home.netscape.com/nc-rdf#dirtreenamesort"> <template> <rule nc:iswriteable="false"/> <rule nc:ismaillist="false"> <menuitem uri="..." label="rdf:http://home.netscape.com/nc-rdf#dirname" value="rdf:http://home.netscape.com/nc-rdf#diruri"/> </rule> <rule nc:ismaillist="true"> <menuitem uri="..." label="rdf:http://home.netscape.com/nc-rdf#dirname" value="rdf:http://home.netscape.com/nc-rdf#diruri"/> </rule> </template> </menupopup> </menulist> it should be written as follows: <menulist id="abpopup22"> <menupopup id=...
... value="rdf:http://home.netscape.com/nc-rdf#diruri"/> </rule> </template> </menupopup> </menulist> it should be written as follows: <menulist id="abpopup22"> <menupopup id="abpopup-menupopup" ref="moz-abmdbdirectory://abook.mab" datasources="rdf:addressdirectory" sortactive="true" sortdirection="ascending" sortresource="http://home.netscape.com/nc-rdf#dirtreenamesort"> <template> <rule nc:iswriteable="false"/> <rule nc:ismaillist="true"> <menuitem uri="..." label="rdf:http://home.netscape.com/nc-rdf#dirname" value="rdf:http://home.netscape.com/nc-rdf#diruri"/> </rule> </template> </menupopup> </menulist> drawwindow with transparent background possible?
XUL element attributes - Archive of obsolete content
arated list of rdf properties or resources.
...ixel position of the left edge of the element relative to the left edge of the stack.
... bottom side.
...r.
XUL accessibility guidelines - Archive of obsolete content
he control attribute to bind a text label (from a label element) to a form element.
...ute to bind a text label (from a label element) to a form element.
... label element) to a form element.
...tom widgets provide accessible functionality.
assign - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] for xml templates, specifies an additional variable to assign a value to.
...ents attributes expr, var examples (example needed) attributes expr type: string for xml queries, an xpath expression which returns results.
...ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
binding - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] should be contained within a bindings element.
... « xul reference home [ examples | attributes | properties | methods | related ] should be contained within a bindings element.
...g the object of the element.
... , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
caption - Archive of obsolete content
er gets and sets the value of the tabindex attribute.
...the value of the tabindex attribute.
...x attribute.
..., dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements groupbox, checkbox ...
checkbox - Archive of obsolete content
gets and sets the value of the tabindex attribute.
...e value of the tabindex attribute.
...attribute.
..., dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related interfaces nsiaccessibleprovider, nsidomxulch...
datepicker - Archive of obsolete content
ld be displayed before the year when it is less than 1000.
...he year when it is less than 1000.
...than 1000.
..., dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related interfaces nsidomxulcontrolelement ...
dialog - Archive of obsolete content
.mozilla.org/keymaster/gatekeeper/there.is.only.xul" buttons="accept,cancel" buttonlabelcancel="cancel" buttonlabelaccept="save"> <dialogheader title="options" description="my preferences"/> <groupbox> <caption label="colour"/> <radiogroup> <radio label="red"/> <radio label="green" selected="true"/> <radio label="blue"/> </radiogroup> <label value="nickname"/> <textbox/> </groupbox> </dialog> attributes activetitlebarcolor type: color string specify background color of the window's titlebar when it is active (foreground).
...es as those for the buttons attribute.
...ons attribute.
...ods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode()...
editor - Archive of obsolete content
nables editing for an editor.
...itor.
...ml as the editortype.
..., dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related interfaces nsiaccessibleprovider ...
label - Archive of obsolete content
Archive › Mozilla › XUL › label
d set using the textbox.value and menulist.value syntax.
...value and menulist.value syntax.
... syntax.
..., dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata style classes the following classes may be used to style t...
menupopup - Archive of obsolete content
g of the popup.
...e is null if the popup isn't open.
...sn't open.
...mentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata hidepopup() return type: no return value ...
panel - Archive of obsolete content
Archive › Mozilla › XUL › panel
his state will occur during the popuphiding event.
...ing the popuphiding event.
...t.
...mentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata hidepopup() return type: no return value ...
splitter - Archive of obsolete content
determines which direction the splitter is actually collapsed in.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
... of the element directly since they will fit more naturally with the user's selected theme.
...nt directly since they will fit more naturally with the user's selected theme.
tab - Archive of obsolete content
Archive › Mozilla › XUL › tab
d set using the textbox.value and menulist.value syntax.
...value and menulist.value syntax.
... syntax.
..., dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata notes note: prior to gecko 1.9, disabling tabs fails; e...
tabbox - Archive of obsolete content
lement the tabpanels element contained within the tabbox.
...ement contained within the tabbox.
...he tabbox.
..., dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements tabs, tab, tabpanels, tabpanel.
tabpanels - Archive of obsolete content
ect event will be sent when the selected panel is changed.
...hen the selected panel is changed.
...s changed.
..., dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements tabbox, tabs, tab, tabpanel.
tabs - Archive of obsolete content
Archive › Mozilla › XUL › tabs
d set using the textbox.value and menulist.value syntax.
...value and menulist.value syntax.
... syntax.
...mentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata advanceselectedtab( dir, wrap ) return type: no return...
timepicker - Archive of obsolete content
f the form hh:mm:ss.
... this property to change the time.
... the time.
..., dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related interfaces nsidomxulcontrolelement ...
tooltip - Archive of obsolete content
this state will occur during the popuphiding event.
...uring the popuphiding event.
...ent.
...mentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata hidepopup() return type: no return value ...
treecell - Archive of obsolete content
e values below for columns that are progress meters, this determines the type of progress meter to use.
...you can access it with a script for your own use.
... clean, but not easily serializable).
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
Getting started with XULRunner - Archive of obsolete content
version 11.10 (oneiric ocelot), xulrunner is not longer maintained and doesn't exist in ubuntu repository.
...level manifest that includes the /chrome/chrome.manifest, which is what this tutorial will do.
...app] vendor=xultest name=myapp version=1.0 buildid=20100901 id=xulapp@xultest.org [gecko] minversion=1.8 maxversion=200.* note: the minversion and maxversion fields indicate the range of gecko versions your application is compatible with; make sure that you set them so that the version of xulrunner you're using is in that range, or your application won't work.
...nifest: content myapp content/ as mentioned in step 3, the default location of the chrome.manifest has changed in xulrunner 2.0, so we also need a simple chrome.manifest in the application root which will include the the manifest in our chrome root.
NPClass - Archive of obsolete content
alled by npn_construct.
...np_class_struct_version_ctor (3) or greater.
...s, uint32_t argcount, npvariant *result); typedef bool (*npinvokedefaultfunctionptr)(npobject *npobj, const npvariant *args, uint32_t argcount, npvariant *result); typedef bool (*nphaspropertyfunctionptr)(npobject *npobj, npidentifier name); typedef bool (*npgetpropertyfunctionptr)(npobject *npobj, npidentifier name, npvariant *result); typedef bool (*npsetpropertyfunctionptr)(npobject *npobj, npidentifier name, const npvariant *value); typedef bool (*npremovepropertyfunctionptr)(npobject *npobj, npidentifie...
... typedef bool (*npgetpropertyfunctionptr)(npobject *npobj, npidentifier name, npvariant *result); typedef bool (*npsetpropertyfunctionptr)(npobject *npobj, npidentifier name, const npvariant *value); typedef bool (*npremovepropertyfunctionptr)(npobject *npobj, npidentifier name); typedef bool (*npenumerationfunctionptr)(npobject *npobj, npidentifier **value, uint32_t *count); typedef bool (*npconstructfunctionptr)(npobject *npobj, const npvariant *args, uint32_t argcount, npvariant *result); see also npobject ...
NPN_Invoke - Archive of obsolete content
« gecko plugin api reference « scripting plugins summary invokes a method on the given npobject.
...invokes a method on the given npobject.
...syntax #include <npruntime.h> bool npn_invoke(npp npp, npobject *npobj, npidentifier methodname, const npvariant *args, uint32_t argcount, npvariant *result); parameters the function has the following parameters: npp the npp indicating which plugin wants to call the method on the object.
... to release it.
Create Your Own Firefox Background Theme - Archive of obsolete content
the image if the find bar is open or if an extension adds more height to the bottom of the window.
... or if an extension adds more height to the bottom of the window.
...eight to the bottom of the window.
...have the most important information—as a user increases the width of the browser window, the browser reveals more of the right-hand side of the image.
::-ms-fill - Archive of obsolete content
the ::-ms-fill css pseudo-element is a microsoft extension that represents a progress bar displayed by <progress>.
... the ::-ms-fill css pseudo-element is a microsoft extension that represents a progress bar displayed by <progress>.
...e apply to a determinate progress bar.
... value description none turns off the animation so that no dots are displayed.
Legacy generator function - Archive of obsolete content
dermonkey-specific feature, which is removed in firefox 58+.
...for future-facing usages, consider using function*.
...sages, consider using function*.
... function*.
New in JavaScript 1.8.5 - Archive of obsolete content
d in firefox 4.
... description object.create() creates a new object with the specified prototype object and properties.
...40 object.defineproperty() adds the named property described by a given descriptor to an object.
... properties described by the given descriptors to an object.
Implementation Status - Archive of obsolete content
ers and the current status of the mozilla support.
...forms:card-number unsupported supported types: string, normalized string, token, language, boolean, gday, gmonth, gyear, gyearmonth, gmonthday, date, time, datetime, duration, integer, nonpositiveinteger, negativeinteger, positiveinteger, long, int, short, unsignedlong, unsignedint, unsignedshort, byte, unsignedbyte, float, decimal, anyuri, base64binary, hexbinary, qname 6.
...resize issues, select/deselect/valuechange firing in wrong order.
... 11.4 xforms-submit-done supported 11.5 xforms-submit-error supported 11.6.1 resource supported 11.7.1 method unsupported 11.8 header unsupported 11.8.1 name unsupported 11.8.2 value unsupported 11.9 submission options supported 11.9.1 the get submission method supported 11.9.2 the post, multipart-post, form-data-post, and urlencoded-post submission methods supported ...
Using the DOM File API in chrome code - Extensions
b content free access to the contents of their disks.
...vileged code (such as web content), an exception will be thrown.
...tory service to obtain and build the path to a file to access.
...s["@mozilla.org/file/directory_service;1"] .getservice(components.interfaces.nsiproperties) .get("profd", components.interfaces.nsifile); dsfile.append("myfilename.txt"); var file = file.createfromnsifile(dsfile); this uses the directory service to locate the profile directory (with the location key "profd", see below for more details), then appends the name of the file we want to work with by calling nsifile.append().
Load the assets and print them on screen - Game development
printing them on our canvas is a lot easier using phaser than using pure javascript.
...pt.
... function preload() { // ...
... show it on the screen we will use another phaser method called add.sprite(); add the following new code line inside the create() function as shown: function create() { ball = game.add.sprite(50, 50, 'ball'); } this will add the ball to the game and render it on the screen.
Character sets supported by Gecko - Gecko Redirect 1
gecko supports the character encodings defined in the encoding standard.
... gecko supports the character encodings defined in the encoding standard.
... gecko supports the character encodings defined in the encoding standard.
... gecko supports the character encodings defined in the encoding standard.
First-class Function - MDN Web Docs Glossary: Definitions of Web-related terms
ns, can be returned by another function and can be assigned as a value to a variable.
...unction and can be assigned as a value to a variable.
...iable, then we used that variable to invoke the function by adding parentheses () at the end.
...voke the function by adding parentheses () at the end.
XInclude - MDN Web Docs Glossary: Definitions of Web-related terms
ely.) note also that if you wish to allow xml:base, you will need the xml:base function, and the line beginning var href = ...
...ncoding = xinclude.getattribute('encoding'); // e.g., utf-8 // "text/xml or application/xml or matches text/*+xml or application/*+xml" before encoding (then utf-8) var accept = xinclude.getattribute('accept'); // header "accept: "+x var acceptlanguage = xinclude.getattribute('accept-language'); // "accept-language: "+x var xifallback = xinclude.getelementsbytagnamens('http://www.w3.org/2001/xinclude', 'fallback')[0]; // only one such child is allowed if (href === '' || href === null) { // points to same document if empty (null is equivalent to empty string) href = null; // set for uniformity in testing below if (parse === 'xml' && xpointer === null) { alert('there must be an xpointer attribute ...
... var patternxml = /\.(svg|xml|xul|rdf|xhtml)$/; if ((contenttype && contenttype.match(/[text|application]\/(.*)\+?xml/)) || (href.indexof('file://') === 0 && href.match(patternxml))) { /* grab the response as text (see below for that routine) and then find encoding within*/ var encname = '([a-za-z][a-za-z0-9._-]*)'; var pattern = new regexp('^<\\?xml\\s+.*encoding\\s*=\\s*([\'"])'+encname+'\\1.*\\?>'); // check document if not?
...e xinclude for (j=0; j < responsenodes.length ; j++) { xincludeparent.insertbefore(responsenodes[j], xinclude); } xincludeparent.removechild(xinclude); } else if (responsetype === 'responsetext') { if (encname) { var encodingtype = response.match(pattern); if (encodingtype) { encodingtype = encodingtype[2]; } else { encodingtype = 'utf-8'; } ...
MDN Web Docs Glossary: Definitions of Web-related terms
decryption delta denial of service descriptor (css) deserialization developer tools dhtml digest digital certificate distributed denial of service dmz dns doctype document directive document environment dom (document object model) domain domain name domain sharding dominator dos attack dtls (datagram transport layer security) dtmf (dual-tone multi-frequency signaling) dynamic programming language dynamic typing e ecma ecmascript effective connection type element empty element encapsulation encryption ...
...icon fetch directive fetch metadata request header firefox os firewall first contentful paint first cpu idle first input delay first interactive first meaningful paint first paint first-class function flex flex container flex item flexbox forbidden header name forbidden response header name fork fragmentainer frame rate (fps) ftp ftu function fuzz testing g gaia garbage collection gecko general header gif gij git global object global scope global variable glyph ...
...l presentation) media (css) metadata method microsoft edge microsoft internet explorer middleware mime mime type minification mitm mixin mobile first modem modern web apps modularity mozilla firefox mutable mvc n namespace nan nat native navigation directive netscape navigator network throttling nntp node node (dom) node (networking) node.js non-normative normative null nullish value number o object object reference oop ...
... opera browser operand operator origin ota owasp p p2p pac packet page load time page prediction parameter parent object parse parser pdf perceived performance percent-encoding php pixel placeholder names plaintext png polyfill polymorphism pop3 port prefetch preflight request prerender presto primitive privileged privileged code progressive enhancement progressive web apps promise property property (css) property (javascript) ...
How do you upload your files to a web server? - Learn web development
this article shows you how to publish your site online using file transfer tools.
...ovider.net.
...e: note: depending on your hosting provider, most of the time you'll see a page saying something like “this website is hosted by [hosting service].” when you first go to your web address.
... web address.
CSS basics - Learn web development
?
...es/style.css" rel="stylesheet"> save index.html and load it in your browser.
...r browser.
...ly a single ruleset to all of them.
Build your own function - Learn web development
s fine, but the styling might look a bit funny in slightly older browsers.
...py.
...efinition: const btn = document.queryselector('button'); finally, add the following line below the previous one: btn.onclick = displaymessage; in a similar way to our closebtn.onclick...
...the function, here we are calling some code in response to a button being clicked.
Image gallery - Learn web development
ide a loop that loops through all 5 images — you just need to loop through five numbers, one representing each image.
...e displayed-img <img> to the src value passed in as a parameter.
...e event listener to the thumb bar.
...ce to the <button> in a constant called btn.
Test your skills: Functions - Learn web development
ements on the page — all via javascript.
...avascript.
...tly taught this yet in the course, but you'll have seen some examples that make use of it, and we'd like you to do some research into what dom apis you need to successfully answer the questions.
... or in an online editor.
Basic math in JavaScript — numbers and operators - Learn web development
e purposes of this course, we'll just worry about number values.
...o your console: let mynumber = '74'; mynumber + 3; you end up with the result 743, not 77, because mynumber is actually defined as a string.
...e, =, loads of times — it simply assigns the variable on the left the value stated on the right: let x = 3; // x contains the value 3 let y = 4; // y contains the value 4 x = y; // x now contains the same value y contains, 4 but there are some more complex types, which provide useful shortcuts to keep your code neater and more efficient.
...ode up.
Focus management with Vue refs - Learn web development
for convenience, create a new method which takes no arguments called focusoneditbutton().
... takes no arguments called focusoneditbutton().
....
... const labelinputref = this.$refs.labelinput; labelinputref.focus(); } now when you activate the "edit" button with your keyboard, focus should immediately be moved to the edit <input>.
Accessible Toolkit Checklist
cused or have any other event associated with it.
...ny other event associated with it.
...mple, a unique child id would be required for each tree item supporting the most important basic iaccessible events get_accparent: get the parent of an iaccessible.
...nd readonly for read-only fields checkboxes space bar to toggle msaa support, including checkbox state and statechange event sliders keyboard support for moving slider: arrow keys, home, end, pgup, pgdn msaa support including role_slider, accessible value, value change events progress bars msaa support including accessible name, value, name and value change events grouped navigation widgets menus arrow keys, enter, escape alt alone enters main menu after leaving menus, focus is restored to where it was modified and unmodified mnemonics msaa support (including focus events, menu start and end events, radio and checkbox menu items) static text and group boxes ...
Lightweight themes
e the left of the image fades to a solid color.
... solid color.
...itor resources pixlr — pixlr offers professional and easy-to-use tools for creating and editing images within a browser.
... for creating and editing images within a browser.
Theme concepts
the theme api.
...dynamic themes.
...refox static themes and chrome themes, providing the ability to port a single header image theme from firefox to chrome.
...and chrome themes, providing the ability to port a single header image theme from firefox to chrome.
Adding phishing protection data providers
it's necessary to set a series of preferences to provide details about the provider.
...es to provide details about the provider.
...to find an id number to use, you can build a loop that requests the value of browser.safebrowsing.provider.0.name, then browser.safebrowsing.provider.1.name, and so forth until no value is returned.
... use, you can build a loop that requests the value of browser.safebrowsing.provider.0.name, then browser.safebrowsing.provider.1.name, and so forth until no value is returned.
Old Thunderbird build
nections, "hg clone" might fail because it gets interrupted.
...mozilla" subdirectory of your comm-central repo after unbundling comm-central.
...e mach command above (you can do the addition before running mach for the first time).
...running to run your build, you can use ./mozilla/mach run there are various command line parameters you can add, e.g.
Simple Thunderbird build
loser to the root of your machine and re-building.
... inside the mozilla source code, in a directory named comm/ (this is inverse from thunderbird 59 and earlier): hg clone https://hg.mozilla.org/mozilla-central source/ cd source/ hg clone https://hg.mozilla.org/comm-central comm/ the source code requires 3.6gb of free space or more and additionally 5gb or more for default build.
... for making builds faster.
...below.
Runtime Directories
default application installation and user profile directories firefox os application directory user profile directory temporary directory windows vista/7 c:\program files\mozilla firefox\ c:\users\<username>\appdata\roaming\mozilla\firefox\ (or %appdata%\mozilla\firefox\) c:\users\<username>\appdata\local\mozilla\firefox\ (or %localappdata%\mozilla\firefox) and c:\users\<username>\appdata\local\virtualstore\program files\mozilla firefox\ windows 2000/xp c:\program files\mozilla firefox\ c:\documents and settings\<username>\application data\mozilla\firefox\ (or %appdata%\mozilla\firefox\) c:\documents and settings\<username>\local settings\application data\mozilla\firefox\ os x /applications/firefox.app ...
...cations/firefox.app ~/library/application support/firefox/profiles/xxxxxxxx.default/ ~/library/caches/firefox/profiles/xxxxxxxx.default/ linux ????
...lt/ ~/library/caches/firefox/profiles/xxxxxxxx.default/ linux ????
...lla/firefox/xxxxxxxx.default/ n/d thunderbird os application directory user profile directory temporary directory windows vista/7 c:\program files\mozilla thunderbird\ c:\users\<username>\appdata\roaming\thunderbird\ (or %appdata%\thunderbird\) c:\users\<username>\appdata\local\thunderbird\ (or %localappdata%\thunderbird\) and c:\users\<username>\appdata\local\virtualstore\program files\mozilla thunderbird\ windows 2000/xp c:\program files\mozilla thunderbird\ c:\documents and settings\<username>\application data\thunderbird\ (or %appdata%\thunderbird\) c:\documents and settings\<username>\local settings\application data\thunderbird\ os x /applications/thunderbird.app ~/library/thunderbird/profiles/xx...
mozbrowseropenwindow
ean whether the event normally bubbles or not.
...ubbles or not.
... details read only object a custom object.
...stener("mozbrowseropenwindow", function( event ) { console.log("a new window has opened containing the content at " + event.details.url + "."); }); related events mozbrowserasyncscroll mozbrowserclose mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserloadend mozbrowserloadstart mozbrowserlocationchange mozbrowsersecuritychange mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
Embedding Tips
mbedding client.
...ymanager_contractid); if (!catman) return ns_error_failure; nsxpidlcstring previous; catman->addcategoryentry(javascript_global_property_category, "my_prop_name", "my_prop_contract_id", pr_true, pr_true, getter_copies(previous)); this will cause a component with the contract id my_prop_contract_id to be lazily created when the my_prop_name is resolved in any javascript window scope.
...this will cause a component with the contract id my_prop_contract_id to be lazily created when the my_prop_name is resolved in any javascript window scope.
...you want to create your component multiple times within the browser window, you can use a javascript constructor instead of a javascript property: catman->addcategoryentry("javascript global constructor", "my_prop_name", "my_prop_contract_id", pr_true, pr_true, getter_copies(previous)); that way you will be able to do: var my_comp = new my_prop_name(); this was taken from weirdal's excellent "burning chrome" article.
HTML parser threading
gets deleted.
...lic identifiers and system identifiers are deleted by the tree op or by the portable parser core if they don't make it as far a tree op.
...stem identifiers are deleted by the tree op or by the portable parser core if they don't make it as far a tree op.
... core if they don't make it as far a tree op.
IPDL Type Serialization
all types used in ipdl must be serializable.
...pecializes ipc::paramtraits as follows: namespace ipc { template <> struct paramtraits<mytype> { typedef mytype paramtype; static void write(message* amsg, const paramtype& aparam) { // implement serialization here } static bool read(const message* amsg, void** aiter, paramtype* aresult) { // implement deserialization here.
...if deserialization failed } }; } // namespace ipc the standard ipdl types (integers, floats, and xpcom strings) already have serializers.
...int i = 0; i < 4; ++i) writeparam(amsg, aparam.k[i]); } static bool read(const message* amsg, void** aiter, paramtype* aresult) { if (!readparam(amsg, aiter, &(aresult->i)) || !readparam(amsg, aiter, &(aresult->j))) return false; for (int i = 0; i < 4; ++i) if (!readparam(amsg, aiter, &(aresult->k[i]))) return false; return true; } }; } // namespace ipc once you have a serializer for a type, you can serialize a collection of it (ex: an nstarray<examplestruct>) by simply declaring "using nstarray<examplestruct>;' in your ipdl file, then using it in a ipc method.
AddonInstall
have an instance the install() method is used to start automatic download and installation.
...install() method is used to start automatic download and installation.
...ing from the internet and has yet to be downloaded.
...he progress of any necessary downloads.
CustomizableUI.jsm
ar(atoolbarid); methods addlistener() add a listener object that will get fired for various events regarding customization.
...ll stay.
...furthermore, by default the placements of the area will be kept in the saved state (!) and restored if you re-register the area at a later point.
...endcustomizing() notify listeners that a window is exiting customize mode.
JavaScript OS.Constants
or use in the main thread, add the following snippet to your code: components.classes["@mozilla.org/net/osfileconstantsservice;1"].
...e main thread, add the following snippet to your code: components.classes["@mozilla.org/net/osfileconstantsservice;1"].
... ebadf bad file descriptor eexist file exists efault bad address efbig file too large einval invalid argument eio input/output error eisdir is a directory eloop (not always available under windows) too many levels of symbolic links.
... bad file descriptor eexist file exists efault bad address efbig file too large einval invalid argument eio input/output error eisdir is a directory eloop (not always available under windows) too many levels of symbolic links.
Log.jsm
this module is still under development.
... module (formerly named log4moz.js) provides a log4j style api for logging log messages to various endpoints, such as the browser console or a file on disk.
...matter(); length: 0 keys of prototype: format(); logmessage(); length: 4 keys of prototype: leveldesc logger(); length: 2 keys of prototype: addappender(); level logstructured(); name parent removeappender(); updateappenders(); and the methods mentioned below: logger methods loggerrepository(); length: 0 keys of prototype: getlogger(); rootlogger storagestreamappender(); length: 1 keys of protot...
... structuredformatter(); length: 0 keys of prototype: format(); method overview enumerateinterfaces(); length: 0 enumerateproperties(); length: 2 member fields variable type description level object contains the following fields: field name value all 0 config 30 debug 20 desc { 0: "all", 10: "trace", 20: "debug", 30: "config", 40: "info", 50: "warn", 60: "error", 70: "fatal" } error 30 fatal 70 info 40 numbers ...
Localizing extension descriptions
trates this (most normal manifest properties have been removed for brevity): <?xml version="1.0"?> <rdf xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <description about="urn:mozilla:install-manifest"> <em:id>tabsidebar@blueprintit.co.uk</em:id> <em:localized> <description> <em:locale>de-de</em:locale> <em:name>tab sidebar</em:name> <em:description>zeigt in einer sidebar vorschaubilder der inhalte aller offenen tabs an.</em:description> </description> </em:localized> <em:localized> <description> <em:locale>es-es</em:locale> <em:name>tab sidebar</em:name> <em:description>muestra una vista previa de sus pestañas en su panel lateral.</em:description> ...
...scription> </description> </em:localized> <em:localized> <description> <em:locale>es-es</em:locale> <em:name>tab sidebar</em:name> <em:description>muestra una vista previa de sus pestañas en su panel lateral.</em:description> </description> </em:localized> <em:localized> <description> <em:locale>nl-nl</em:locale> <em:name>tab sidebar</em:name> <em:description>laat voorbeeldweergaven van uw tabbladen in de zijbalk zien.</em:description> </description> </em:localized> <em:name>tab sidebar</em:name> <em:description>displays previews of your tabs in your sidebar.</em:description> </description> </rdf> all of the metadata mentioned below can be localized in this way.
... create a default preferences file.
...e is the chrome path to the localization file you added to earlier): pref("extensions.extension_id.description", "path_to_localization_file"); localizable strings the following add-on metadata can be localized using this process: name description creator homepageurl localizable lists in cases where multiple values can exist, a numeric index is appended to the end of the preference name: extensions.extension_id.contributor.1=first_localized_contributor_name extensions.extension_id.contributor.2=second_localized_contributor_name extensions.extension_id.contributor.3=thrid_localized_contributor_name pref("extensions.extension_id.contributor.1", "path_to_localization_file"); pref("extensions.extension_id.contributor.2", "path_to_localization_file"); pref("extensions.extension_id.
Writing localizable code
ho rarely deal with them: localizers like tools, and they don't like editors, localization tools are often based on key-value pairs, at least some localizers have their talents focused on language skills and are not savvy in programming, or even building applications.
...al with them: localizers like tools, and they don't like editors, localization tools are often based on key-value pairs, at least some localizers have their talents focused on language skills and are not savvy in programming, or even building applications.
...me localizers have their talents focused on language skills and are not savvy in programming, or even building applications.
... applications.
about:memory
.
...he memory usage.
... and "top(chrome://browser/content/browser.xul, id=3)" represents the main browser ui window.
...496800)/compartment([system principal], file:///users/njn/library/application%20support/firefox/profiles/puna0zr8.new/extensions/%7b59c81df5-4b7a-477b-912d-4e0fdf64e5f2%7d/components/chatzilla-service.js) │ └───1,872,144 b (00.19%) ++ treestyletab@piro.sakura.ne.jp/js-non-window/zones/zone(0x100496800) more things worth pointing out are as follows.
A brief guide to Mozilla preferences
fic to the specific kind of firefox being installed (nightly, aurora, beta, release) browser/defaults/preferences/firefox-l10n.js - defaults specific to the installed language of firefox.
...s overrides conflicting preferences from the previous application session.
...references editor, by typing about:config in the location bar.
...mended for most users.
L20n
hands.
...er levels of free linguistic expression by sharpening the divide between localization and application logic.
...n localization and application logic.
... what l20n looks like here is a simple, straightforward example showing an english string being provided: <brandname "firefox"> <about "about {{ brandname }}"> here is the same string being provided in slovenian: <brandname { nominative: "firefox", genitive: "firefoxa", dative: "firefoxu", accusative: "firefox", locative: "firefoxu", instrumental: "firefoxom" }> <about "o {{ brandname.locative }}"> for developers documentation for developers wanting to implement localization functionality on their web apps using l20n.
PRIOMethods
fn fsync; prseekfn seek; prseek64fn seek64; prfileinfofn fileinfo; prfileinfo64fn fileinfo64; prwritevfn writev; prconnectfn connect; pracceptfn accept; prbindfn bind; prlistenfn listen; prshutdownfn shutdown; prrecvfn recv; prsendfn send; prrecvfromfn recvfrom; prsendtofn sendto; prpollfn poll; pracceptreadfn acceptread; prtransmitfilefn transmitfile; prgetsocknamefn getsockname; prgetpeernamefn getpeername; prgetsockoptfn getsockopt; prsetsockoptfn setsockopt; }; typedef struct priomethods priomethods; parameters file_type type of file represented (tos).
...the specified number of bytes.
...recvfrom receive up to the specified number of bytes and report network source.
...rite function.
PRProtoEnt
protocol entry returned by pr_getprotobyname and pr_getprotobynumber.
... protocol entry returned by pr_getprotobyname and pr_getprotobynumber.
... protocol entry returned by pr_getprotobyname and pr_getprotobynumber.
... protocol entry returned by pr_getprotobyname and pr_getprotobynumber.
PR_DeleteSemaphore
removes a semaphore specified by name from the system.
... removes a semaphore specified by name from the system.
... removes a semaphore specified by name from the system.
... removes a semaphore specified by name from the system.
PR_LoadLibrary
loads a referenced library.
... loads a referenced library.
... loads a referenced library.
... loads a referenced library.
PR_OpenSharedMemory
opens an existing shared memory segment or, if one with the specified name doesn't exist, creates a new one.
... opens an existing shared memory segment or, if one with the specified name doesn't exist, creates a new one.
...api( prsharedmemory * ) pr_opensharedmemory( const char *name, prsize size, printn flags, printn mode ); /* define values for pr_opensharememory(...,create) */ #define pr_shm_create 0x1 /* create if not exist */ #define pr_shm_excl 0x2 /* fail if already exists */ parameters the function has the following parameters: name the name of the shared memory segment.
...d memory segment.
PR_ProcessAttrSetInheritableFileMap
prepare filemap for export to my children processes via pr_createprocess.
...r_createprocess.
...tax #include <prshma.h> nspr_api(prstatus) pr_processattrsetinheritablefilemap( prprocessattr *attr, prfilemap *fm, const char *shmname ); parameters the function has the following parameters: attr pointer to a prprocessattr structure used to pass data to pr_createprocess.
...); parameters the function has the following parameters: attr pointer to a prprocessattr structure used to pass data to pr_createprocess.
PR_SetLibraryPath
registers a default library pathname with a runtime.
... registers a default library pathname with a runtime.
... registers a default library pathname with a runtime.
... a default.
NSPR API Reference
s boolean types status type for return values threads threading types and constants threading functions creating, joining, and identifying threads controlling thread priorities controlling per-thread private data interrupting and yielding setting global thread concurrency getting a thread's scope process initialization identity and versioning name and version constants initialization and cleanup module initialization locks lock type lock functions condition variables condition variable type condition variable functions monitors monitor type monitor functions cached monitors cached monitor functions i/o types directory type file descriptor types file info types network address types types used with soc...
...ion variable type condition variable functions monitors monitor type monitor functions cached monitors cached monitor functions i/o types directory type file descriptor types file info types network address types types used with socket options functions type used with memory-mapped i/o offset interpretation for seek functions i/o functions functions that operate on pathnames functions that act on file descriptors directory i/o functions socket manipulation functions converting between host and network addresses memory-mapped i/o functions anonymous pipe function polling functions pollable events manipulating layers network addresses network address types and constants network address functions atomic operations pr_atomicincrement pr_atomicdecrem...
...nked list macros pr_init_clist pr_init_static_clist pr_append_link pr_insert_link pr_next_link pr_prev_link pr_remove_link pr_remove_and_init_link pr_insert_before pr_insert_after dynamic library linking library linking types prlibrary prstaticlinktable library linking functions pr_setlibrarypath pr_getlibrarypath pr_getlibraryname pr_freelibraryname pr_loadlibrary pr_unloadlibrary pr_findsymbol pr_findsymbolandlibrary finding symbols defined in the main executable program platform notes dynamic library search path exporting symbols from the main executable program process management and interprocess communication process management types and constants prprocess prproces...
...bles logging conditional compilation and execution log types and variables prlogmoduleinfo prlogmodulelevel nspr_log_modules nspr_log_file logging functions and macros pr_newlogmodule pr_setlogfile pr_setlogbuffering pr_logprint pr_logflush pr_log_test pr_log pr_assert pr_assert pr_not_reached use example instrumentation counters named shared memory shared memory protocol named shared memory functions anonymous shared memory anonymous memory protocol anonymous shared memory functions ipc semaphores ipc semaphore functions thread pools thread pool types thread pool functions random number generator random number generator function hash tables hash tables and type constants hash table functions ...
NSS 3.15.1 release notes
or_unsupported_hash_algorithm, ssl_error_digest_failure, ssl_error_incorrect_signature_algorithm - new error codes for tls 1.2.
...ssl_error_digest_failure, ssl_error_incorrect_signature_algorithm - new error codes for tls 1.2.
..._incorrect_signature_algorithm - new error codes for tls 1.2.
... ssl_hmac_sha256 - a new value in the sslmacalgorithm enum type.
NSS 3.31 release notes
e the uri of the given module.
...n based on the given slot information.
... failure if the requested version range wasn't fully allowed by the systemwide crypto policy.
...ide policy.
NSS 3.33 release notes
text "database needs user init" will be included in the listing.
...using certutil to set an inacceptable password in fips mode, a correct explanation of acceptable passwords will be printed.
...ble passwords will be printed.
...byissuerandsncx - a variation of existing function cert_findcertbyissuerandsn that accepts an additional password context parameter.
NSS Developer Tutorial
ion(); } or: if (condition) action(); although the use of curly braces is more common.
... of curly braces is more common.
...should be formatted as follows: /* * line1 * line2 */ or /* ** line 1 ** line 2 */ the following styles are also common, because they conserve vertical space: /* line1 * line2 */ or /* line1 ** line2 */ or /* line1 * line2 */ naming public functions are named foo_dooneaction.
... features from c99 are equally available.
nss tech note2
using the pkcs #11 module logger nss technical note: 2 modes of operation extracting output from log files the logger displays all activity between nss and a specified pkcs #11 module.
...tween nss and a specified pkcs #11 module.
...set of entry points between nss and the module.
...0x0 4.
NSS_Initialize
name nss_initialize - initialize nss.
... name nss_initialize - initialize nss.
... pruint32 flags); parameters nss_initialize has five parameters: configdir [in] the directory where the certificate, key, and module databases live.
...nt32 flags); parameters nss_initialize has five parameters: configdir [in] the directory where the certificate, key, and module databases live.
NSS tools : ssltab
name ssltap — tap into ssl connections and display the data going by synopsis libssltap [-vhfsxl] [-p port] [hostname:port] description the ssl debugging tool ssltap is an ssl-aware command-line proxy.
...nes.
...vous port (1924) to another port.
...additional records in same formats> server socket closed.
NSS tools : ssltap
name ssltap — tap into ssl connections and display the data going by synopsis libssltap [-vhfsxl] [-p port] [hostname:port] description the ssl debugging tool ssltap is an ssl-aware command-line proxy.
...nes.
...vous port (1924) to another port.
...additional records in same formats> server socket closed.
TLS Cipher Suite Discovery
the size in bytes of that block of memory.
... ssl_getciphersuiteinfo fills that caller-supplied memory with information from the sslciphersuiteinfo structure for that cipher suite.
... sslciphersuiteinfo structure for that cipher suite.
...d in "sslt.h": typedef struct sslciphersuiteinfostr { pruint16 length; pruint16 ciphersuite; /* cipher suite name */ const char * ciphersuitename; /* server authentication info */ const char * authalgorithmname; sslauthtype authalgorithm; /* key exchange algorithm info */ const char * keatypename; sslkeatype keatype; /* symmetric encryption info */ const char * symciphername; sslcipheralgorithm symcipher; pruint16 symkeybits; pruint16 symkeyspace; pruint16 effectivekeybits; /* mac info */ const char * macalgorithmname; sslmacalgorithm macalgorithm; pruint16 ...
NSS Tools cmsutil
d like to send an encrypted message.
... encrypted message.
...ey database password.
... [-p password] -r "recipient1,recipient2, .
NSS tools : ssltap
Mozilla › Projects › NSS › tools › ssltap
name ssltap — tap into ssl connections and display the data going by synopsis libssltap [-vhfsxl] [-p port] [hostname:port] description the ssl debugging tool ssltap is an ssl-aware command-line proxy.
... turn on ssl parsing and decoding.
... * https 443 * smtp 25 * ftp 21 * imap 143 * imaps 993 (imap over ssl) * nntp 119 * nntps 563 (nntp over ssl) usage and examples you can use the ssl debugging tool to intercept any connection information.
...in same formats> server socket closed.
Rebranding SpiderMonkey (1.8.5)
after installing the build pre-requisites and downloading the spidermonkey source tarball issue the following commands at the terminal: cd js/src autoconf-2.13 for the remainder of this document wherever you see the text $brand you will substitute that text with the name of your brand.
...mmand.
...s from the beginning.
...ll re-issue the recursive find and replace text in files command with some modifications.
Statistics API
overview each time a garbage collection occurs, spidermonkey keeps track of how long each phase of the collection took, along with some related data.
... overview each time a garbage collection occurs, spidermonkey keeps track of how long each phase of the collection took, along with some related data.
...onincremental_reason: string - a string representing the reason that an incremental gc was aborted or forced to finish in a single slice.
... started, relative to the first slice's start time.
JIT Optimization Strategies
tions for how to re-enable them.
...hem.
...tained the same uniquely-typed object, then the engine can use the unique type to map back to a specific object, and eliminate the property access, replacing it with a constant reference to the object.
...shape == shape2 then obj.slots[5] elif obj.shape == shape3 then obj.slots[2] ...
JS::CreateError
this article covers features introduced in spidermonkey 38 create an error object.
...ded in spidermonkey 45 bool js::createerror(jscontext *cx, jsexntype type, handleobject stack, handlestring filename, uint32_t linenumber, uint32_t columnnumber, jserrorreport *report, handlestring message, mutablehandlevalue rval); // obsolete since jsapi 39 bool js::createerror(jscontext *cx, jsexntype type, handlestring stack, handlestring filename, uint32_t linenumber, uint32_t columnnumber, jserrorreport *report, handlestring message, mutablehandlevalue rval); name type description cx jscontext * pointer to a js context from which to derive runtime information.
...lue rval); name type description cx jscontext * pointer to a js context from which to derive runtime information.
... jscontext * pointer to a js context from which to derive runtime information.
JSPropertyOp
rty callbacks, which are called during object property accesses.
... cx jscontext * the context in which the property access is taking place.
...lback must return true, and the property operation proceeds.
...for example, using js_defineproperty or js_defineproperties) it can specify getter and setter callbacks for the new property.
JS_DecompileFunctionBody
generate the source code representing the body of a function, minus the function keyword, name, parameters, and braces.
... generate the source code representing the body of a function, minus the function keyword, name, parameters, and braces.
...readsafe build, the caller must be in a request on this jscontext.
... recompilation without providing the function's declaration.
JS_DefineFunctions
add native methods to an object.
...ons are to be defined.
...scription js_definefunctions creates zero or more functions and makes them properties (methods) of a specified object, obj, as if by calling js_definefunction repeatedly.
...ero element in the array.
JS_MapGCRoots
in a jsruntime's gc root set.
..., void *data); callback syntax #define js_map_gcroot_next 0 /* continue mapping entries */ #define js_map_gcroot_stop 1 /* stop mapping entries */ #define js_map_gcroot_remove 2 /* remove and free the current entry */ typedef int (*jsgcrootmapfun)(void *rp, const char *name, void *data); description call js_mapgcroots to map the gc's roots table using map(rp, name, data).
... 0 /* continue mapping entries */ #define js_map_gcroot_stop 1 /* stop mapping entries */ #define js_map_gcroot_remove 2 /* remove and free the current entry */ typedef int (*jsgcrootmapfun)(void *rp, const char *name, void *data); description call js_mapgcroots to map the gc's roots table using map(rp, name, data).
... /* continue mapping entries */ #define js_map_gcroot_stop 1 /* stop mapping entries */ #define js_map_gcroot_remove 2 /* remove and free the current entry */ typedef int (*jsgcrootmapfun)(void *rp, const char *name, void *data); description call js_mapgcroots to map the gc's roots table using map(rp, name, data).
JS_ResolveStandardClass
resolve a standard class in an object.
... name type description cx jscontext * pointer to the executable script context for which to initialize js function and object classes.
...ject to resolve id to a standard class.
... either a string or an int.
SpiderMonkey 24
s recommended that you embed a separate xml parser, or include an xml parsing implementation written in javascript, as an alternative.
... more information on the fixed-size integer types changes, see this blog post.
... integer types changes, see this blog post.
...(and the js:: namespace for internal use).
TPS Pref Lists
a prefs asset list is an array of objects with name and value keys, representing browser preferences.
... a prefs asset list is an array of objects with name and value keys, representing browser preferences.
... a prefs asset list is an array of objects with name and value keys, representing browser preferences.
... a prefs asset list is an array of objects with name and value keys, representing browser preferences.
Thread Sanitizer
u start the build process using the regular make -f client.mk command.
...rom the objdir as usual.
...javascript shell instead of doing a full firefox build, the build script below will probably help you to do so.
...ld script below will probably help you to do so.
Gecko object attributes
ect attributes are relevant for the entire subtree of the object they are on, unless they are overridden by a descendent with the same object attribute.
...re overridden by a descendent with the same object attribute.
...formation.
...tor of the current object.
Mork
Mozilla › Tech › Mork
he information on this page was constructed by reading the source code of the mork database in mozilla and attempting to codify what it parses as faithfully as possible.
...nary = '<' ( metadictionary | alias )* '>' table = '{' '-'?
... '-' | rowreference)* '}' row = '[' '-'?
... mid ( cell | metarow | '-' )* ']' group = '@$${' hex '{@' (dictionary|table|row)* ('@$$}' hex '}@' | '@$$}~~}@') metadictionary = '<' cell* '>' metatable = '{' ( cell | row | rowreference )* '}' metarow = '[' cell* ']' rowreference = hex ( '!' hex )?
Using the Places history service
ter) quit-application has been notified, since the database connection will be closed to allow the last sync, and changes will most likely be lost.
...globalhistory service stored one entry for each page in history.
... creating the history service the places history service's contract id is "@mozilla.org/browser/nav-history-service;1": var historyservice = components.classes["@mozilla.org/browser/nav-history-service;1"] .getservice(components.interfaces.nsinavhistoryservice); it also responds to the old contract id for url bar autocomplete "@mozilla.org/autocomplete/search;1?name=history" and the contract id for the old history system (since it is backwards-compatible) "@mozilla.org/browser/global-history;2".
...mine if there are any pages in history.
Preface
.
...nts are provided in the appendix to this book, setting up the gecko sdk.
...tions the formatting conventions listed below are used to designate specific types of information in the book and make things easier to scan.
... goal is to use as few formats as possible, but to distinguish the various different types of information clearly.
Using XPCOM Components
nt in javascript var cmgr = components.classes["@mozilla.org/cookiemanager;1"] .getservice(); cmgr = cmgr.queryinterface(components.interfaces.nsicookiemanager); // called as part of a largerdeleteallcookies() function function finalizecookiedeletions() { for (var c=0; c<deletedcookies.length; c++) { cmgr.remove(deletedcookies[c].host, deletedcookies[c].name, deletedcookies[c].path); } deletedcookies.length = 0; } connecting to components from the interface the mozilla user interface uses javascript that has been given access to xpcom components in the application core with a technology called xpconnect.
...servman->getservicebycontractid("@mozilla.org/cookiemanager", ns_get_iid(nsicookiemanager), getter_addrefs(cookiemanager)); if (ns_failed(rv)) return -1; pruint32 len; deletedcookies->getlength(&len); for (int c=0; c<len; c++) cookiemanager->remove(deletedcookies[c].host, deletedcookies[c].name, deletedcookies[c].path, pr_false); xxx: in the original document, there were only the first three parameters to the |remove| call.
...gr.enumerator; var count = 0; var showpolicyfield = false; while (enumerator.hasmoreelements()) { var nextcookie = enumerator.getnext(); nextcookie = nextcookie.queryinterface(components.interfaces.nsicookie); /* ....
... singleton design pattern that is used to create services is described in xpcom services.
Components.utils.Sandbox
e samezoneas instead.
...ifies the sandbox in about:memory (and possibly other places in the future).
...ssibly other places in the future).
...available or not in the sandbox.
amIWebInstaller
oduced gecko 2.0 inherits from: nsisupports last changed in gecko 8.0 (firefox 8.0 / thunderbird 8.0 / seamonkey 2.5) method overview boolean installaddonsfromwebpage(in astring amimetype, in nsidomwindow awindow, in nsiuri areferer, [array, size_is(ainstallcount)] in wstring auris, [array, size_is(ainstallcount)] in wstring ahashes, [array, size_is(ainstallcount)] in wstring anames, [array, size_is(ainstallcount)] in wstring aicons, [optional] in amiinstallcallback acallback, [optional] in pruint32 ainstallcount); boolean isinstallenabled(in astring amimetype, in nsiuri areferer); note: prior to gecko 8.0, all references to nsidomwindow used in this interface were nsidomwindow.
...ndow used in this interface were nsidomwindow.
...)] in wstring aicons, in amiinstallcallback acallback, optional in pruint32 ainstallcount optional ); parameters amimetype the mimetype for the add-ons.
...aicons, in amiinstallcallback acallback, optional in pruint32 ainstallcount optional ); parameters amimetype the mimetype for the add-ons.
mozISpellCheckingEngine
ectory(in nsifile dir); void suggest(in wstring word,[array, size_is(count)] out wstring suggestions, out pruint32 count); attributes attribute type description copyright wstring a string indicating the copyright of the engine.
...dictionary" (that is, by specifying an empty string), the observer may select another dictionary before returning.
...ifying an empty string), the observer may select another dictionary before returning.
...tly according to the dictionary attribute, and returns false if word is misspelled.
nsIConsoleService
(msg); } alternative logging methods include components.utils.reporterror and dump().
... acolumnnumber, aflags, acategory) { var consoleservice = components.classes["@mozilla.org/consoleservice;1"] .getservice(components.interfaces.nsiconsoleservice); var scripterror = components.classes["@mozilla.org/scripterror;1"] .createinstance(components.interfaces.nsiscripterror); scripterror.init(amessage, asourcename, asourceline, alinenumber, acolumnnumber, aflags, acategory); consoleservice.logmessage(scripterror); } amessage — the string to be logged.
...vice); var scripterror = components.classes["@mozilla.org/scripterror;1"] .createinstance(components.interfaces.nsiscripterror); scripterror.init(amessage, asourcename, asourceline, alinenumber, acolumnnumber, aflags, acategory); consoleservice.logmessage(scripterror); } amessage — the string to be logged.
...ber, acolumnnumber, aflags, acategory); consoleservice.logmessage(scripterror); } amessage — the string to be logged.
nsIDOMEvent
specify the time (in milliseconds relative to the epoch) at which the event was created.
...e to the epoch) at which the event was created.
...hich the event was created.
... event interface only the values specified in the initevent method are modified, all other attributes are left unchanged.
nsIDOMNode
boolean hasattributes(); boolean haschildnodes(); nsidomnode insertbefore(in nsidomnode newchild, in nsidomnode refchild) boolean issupported(in domstring feature, in domstring version); void normalize(); nsidomnode removechild(in nsidomnode oldchild) nsidomnode replacechild(in nsidomnode newchild, in nsidomnode oldchild) attributes attribute type description attributes nsidomnamednodemap read only.
...supported(in domstring feature, in domstring version); void normalize(); nsidomnode removechild(in nsidomnode oldchild) nsidomnode replacechild(in nsidomnode newchild, in nsidomnode oldchild) attributes attribute type description attributes nsidomnamednodemap read only.
...re, in domstring version); void normalize(); nsidomnode removechild(in nsidomnode oldchild) nsidomnode replacechild(in nsidomnode newchild, in nsidomnode oldchild) attributes attribute type description attributes nsidomnamednodemap read only.
...sidomnode oldchild) nsidomnode replacechild(in nsidomnode newchild, in nsidomnode oldchild) attributes attribute type description attributes nsidomnamednodemap read only.
nsIDOMStorageList
dom/interfaces/storage/nsidomstoragelist.idlscriptable this interface is used to access the contextual storage areas used by globalstorage by domain.
... dom/interfaces/storage/nsidomstoragelist.idlscriptable this interface is used to access the contextual storage areas used by globalstorage by domain.
...nterface is used to access the contextual storage areas used by globalstorage by domain.
... by globalstorage by domain.
nsIEditor
content.
... method overview [noscript] void init(in nsidomdocument doc, in nsicontent aroot, in nsiselectioncontroller aselcon, in unsigned long aflags); void setattributeorequivalent(in nsidomelement element, in astring sourceattrname, in astring sourceattrvalue, in boolean asuppresstransaction); void removeattributeorequivalent(in nsidomelement element, in domstring sourceattrname, in boolean asuppresstransaction); void postcreate(); void predestroy(in boolean adestroyingframes); selected content removal void deleteselection(in short action, in short stripwrappers); document info and file methods void resetmodificationcount(); long getmodificationcount(); void incrementmodificationcount(in long amodco...
...saction txn); void enableundo(in boolean enable); void undo(in unsigned long count); void canundo(out boolean isenabled, out boolean canundo); void redo(in unsigned long count); void canredo(out boolean isenabled, out boolean canredo); void begintransaction(); void endtransaction(); void beginplaceholdertransaction(in nsiatom name); void endplaceholdertransaction(); boolean shouldtxnsetselection(); void setshouldtxnsetselection(in boolean should); inline spellchecking methods nsiinlinespellchecker getinlinespellchecker(in boolean autocreate); void syncrealtimespell(); void setspellcheckuseroverride(in boolean enable); clipboard methods void cu...
... outputnoscriptcontent = 2048, // outputnoframescontent = 4096, outputnoformattinginpre = 8192, // outputencodebasicentities=16384, outputencodelatin1entities=32768, // outputencodehtmlentities=65536, outputpersistnbsp=131072 editorapi.outputtostring('text/html', 2); editorapi.outputtostring('text/plain', 4); // output the body tag, body children and the html end tag (</html>).
nsIINIParser
numerator getkeys(in autf8string asection); nsiutf8stringenumerator getsections(); autf8string getstring(in autf8string asection, in autf8string akey); methods getkeys() returns an nsiutf8stringenumerator providing the keys available within the specified section of the ini file.
... for which the value should be returned.
...e value for a given property in an ini file * @param {nsifile} inifile * the ini file to get the value from * @param {string} section * the name of the section in the ini file.
...ll the sections in the ini file.
nsIINIParserWriter
er xpcom/ds/nsiiniparser.idlscriptable allows writing to an ini-format configuration file.
...guration file.
...he nsis installer code sometimes expect ini files to be in utf-16 encoding.
... encoding.
nsIMsgFilterCustomAction
defined in comm-central/ mailnews/ base/ search/ public/ nsimsgfiltercustomaction.idl interface nsimsgfiltercustomaction : nsisupports { /* globally unique string to identify this filter action.
... defined in comm-central/ mailnews/ base/ search/ public/ nsimsgfiltercustomaction.idl interface nsimsgfiltercustomaction : nsisupports { /* globally unique string to identify this filter action.
... defined in comm-central/ mailnews/ base/ search/ public/ nsimsgfiltercustomaction.idl interface nsimsgfiltercustomaction : nsisupports { /* globally unique string to identify this filter action.
...efined in comm-central/ mailnews/ base/ search/ public/ nsimsgfiltercustomaction.idl interface nsimsgfiltercustomaction : nsisupports { /* globally unique string to identify this filter action.
nsIMsgMessageService
, in nsistreamlistener acopylistener, in boolean amovemessage, in nsiurllistener aurllistener, in nsimsgwindow amsgwindow, out nsiuri aurl); void displaymessage(in string amessageuri, in nsisupports adisplayconsumer, in nsimsgwindow amsgwindow, in nsiurllistener aurllistener, in string acharsetoverride, out nsiuri aurl); void openattachment(in string acontenttype, in string afilename, in string aurl, in string amessageuri, in nsisupports adisplayconsumer, in nsimsgwindow amsgwindow, in nsiurllistener aurllistener); void savemessagetodisk(in string amessageuri, in nsifilespec afile, in boolean ageneratedummyenvelope, in nsiurllistener aurllistener, out nsiuri aurl, in boolean canonicallineending, in nsimsgwindow amsgwindow); void geturlforuri(in string amessa...
...ich the message is loaded into.
...t.
...openattachment(in string acontenttype, in string afilename, in string aurl, in string amessageuri, in nsisupports adisplayconsumer, in nsimsgwindow amsgwindow, in nsiurllistener aurllistener); parameters acontenttype the content type of the attachment afilename the name of the attachment.
nsINavHistoryResultObserver
avhistorycontainerresultnode acontainernode); deprecated since gecko 2.0 obsolete since gecko 11.0 void containerstatechanged(in nsinavhistorycontainerresultnode acontainernode, in unsigned long aoldstate, in unsigned long anewstate); void invalidatecontainer(in nsinavhistorycontainerresultnode acontainernode); void nodeannotationchanged(in nsinavhistoryresultnode anode, in autf8string aannoname); void nodedateaddedchanged(in nsinavhistoryresultnode anode, in prtime anewvalue); void nodehistorydetailschanged(in nsinavhistoryresultnode anode, in prtime anewvisitdate, in unsigned long anewaccesscount); void nodeiconchanged(in nsinavhistoryresultnode anode); void nodeinserted(in nsinavhistorycontainerresultnode aparent, in nsinavhistoryresultnode anode, in unsigned long anewindex); ...
...container be rebuilt.
...containerresultnode acontainernode ); parameters acontainernode the container that should be rebuilt.
...resultnode acontainernode ); parameters acontainernode the container that should be rebuilt.
nsISound
event.
...rs aeventid an event id which is defined in the constants.
...is defined in the constants.
....
nsITreeColumns
xul/base/src/tree/public/nsitreecolumns.idlscriptable please add a summary to this article.
...reecolumn for this element.
...umn() get the first column.
...umn.
nsIUserCertPicker
security/manager/ssl/public/nsiusercertpicker.idlscriptable please add a summary to this article.
... security/manager/ssl/public/nsiusercertpicker.idlscriptable please add a summary to this article.
...dd a summary to this article.
... method overview nsix509cert pickbyusage(in nsiinterfacerequestor ctx, in wstring selectednickname, in long certusage, in boolean allowinvalid, in boolean allowduplicatenicknames, out boolean canceled); methods pickbyusage() nsix509cert pickbyusage( in nsiinterfacerequestor ctx, in wstring selectednickname, in long certusage, in boolean allowinvalid, in boolean allowduplicatenicknames, out boolean canceled ); parameters ctx selectednickname certusage allowinvalid allowduplicatenicknames canceled return value ...
nsMsgSearchAttrib
result elems */ const nsmsgsearchattribvalue ageindays = 12; const nsmsgsearchattribvalue folderinfo = 13; /* for "view thread context" from result */ const nsmsgsearchattribvalue size = 14; const nsmsgsearchattribvalue anytext = 15; const nsmsgsearchattribvalue keywords = 16; // keywords are the internal representation of tags.
...geindays = 12; const nsmsgsearchattribvalue folderinfo = 13; /* for "view thread context" from result */ const nsmsgsearchattribvalue size = 14; const nsmsgsearchattribvalue anytext = 15; const nsmsgsearchattribvalue keywords = 16; // keywords are the internal representation of tags.
...folderinfo = 13; /* for "view thread context" from result */ const nsmsgsearchattribvalue size = 14; const nsmsgsearchattribvalue anytext = 15; const nsmsgsearchattribvalue keywords = 16; // keywords are the internal representation of tags.
..." from result */ const nsmsgsearchattribvalue size = 14; const nsmsgsearchattribvalue anytext = 15; const nsmsgsearchattribvalue keywords = 16; // keywords are the internal representation of tags.
Styling the Folder Pane
content covers features introduced in thunderbird 3 the folder pane in thunderbird is predominantly controlled by code in folderpane.js.
...n thunderbird is predominantly controlled by code in folderpane.js.
...ad(false) > 0 indicates that the folder (but not subfolders) has unread messages.
...er.server.type returns the type of the server.
Using C struct and pointers
id_t) }, { "str": ctypes.pointertype(ctypes.char) }, { "buff_size": ctypes.size_t }, { "i": ctypes.int }, { "f": ctypes.float }, { "c": ctypes.char } ]); here we are using the structtype() factory method of the ctypes object to create a ctype object that represents the c struct named st_t.
...rtype(ctypes.char) }, { "buff_size": ctypes.size_t }, { "i": ctypes.int }, { "f": ctypes.float }, { "c": ctypes.char } ]); here we are using the structtype() factory method of the ctypes object to create a ctype object that represents the c struct named st_t.
... { "buff_size": ctypes.size_t }, { "i": ctypes.int }, { "f": ctypes.float }, { "c": ctypes.char } ]); here we are using the structtype() factory method of the ctypes object to create a ctype object that represents the c struct named st_t.
...pes.float }, { "c": ctypes.char } ]); here we are using the structtype() factory method of the ctypes object to create a ctype object that represents the c struct named st_t.
CType
t callable c functions.
...e these represent c structures.
... c arrays.
...rns a javascript expression that evaluates to a ctype describing the same c type as this object.
Responsive Design Mode - Firefox Developer Tools
h responsive design mode enabled, the content area for web pages is set to the screen size for a mobile device.
...em automatic.
...check the devices you want to see in the drop-down.
...hub.com/mozilla/simulated-devices.
Cookies - Firefox Developer Tools
when you select an origin inside the cookies storage type from the storage tree, all the cookies present for that origin will be listed in a table.
... when you select an origin inside the cookies storage type from the storage tree, all the cookies present for that origin will be listed in a table.
...in will be listed in a table.
...ing context menu to show/hide the columns.
IndexedDB - Firefox Developer Tools
when you select an origin inside the indexed db storage type in the storage tree of the storage inspector, a table lists the details of all the databases present for that origin.
... when you select an origin inside the indexed db storage type in the storage tree of the storage inspector, a table lists the details of all the databases present for that origin.
...me of the database.
...abase.
Storage Inspector - Firefox Developer Tools
ace the storage inspector ui is split into three main components: storage tree table widget sidebar storage tree the storage tree lists all the storage types that the storage inspector can inspect: under each type, objects are organized by origin.
...each type, objects are organized by origin.
...ferentiate the origin.
...indexed db or local storage an origin is a combination of protocol + hostname.
AbsoluteOrientationSensor - Web APIs
ionsensor.quaternion to rotate a visual model of a phone.
...ror.name == 'notreadableerror') { console.log("sensor is not available."); } }); sensor.start(); permissions example using orientation sensors requires requesting permissions for multiple device sensors.
...lable."); } }); sensor.start(); permissions example using orientation sensors requires requesting permissions for multiple device sensors.
...ation sensors requires requesting permissions for multiple device sensors.
BasicCardResponse - Web APIs
nary (related to the payment request api, although defined in the basic card payment spec) defines an object structure for payment response details such as the number/expiry date of the card used to make the payment, and the billing address.
... basic card payment spec) defines an object structure for payment response details such as the number/expiry date of the card used to make the payment, and the billing address.
...entrequest.show() and the promise resolves successfully, the paymentresponse object available inside the fulfilled promise (instrumentresponse above) will have a paymentresponse.details property that will contain response details.
... nightly builds.disabled from version 56: this feature is behind the dom.payments.request.enabled preference (needs to be set to true).
BlobBuilder - Web APIs
ata you sent into the blob builder.
...e type of the data to be returned in the blob.
... value of the blob object's type property.
...lob object's type property.
BroadcastChannel - Web APIs
the broadcastchannel interface represents a named channel that any browsing context of a given origin can subscribe to.
...dth="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="231" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">broadcastchannel</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor broadcastchannel() creates an object linking to the named channel.
...family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">broadcastchannel</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor broadcastchannel() creates an object linking to the named channel.
...ace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">broadcastchannel</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor broadcastchannel() creates an object linking to the named channel.
CSSStyleDeclaration.setProperty() - Web APIs
the cssstyledeclaration.setproperty() method interface sets a new value for a property on a css style declaration object.
... the cssstyledeclaration.setproperty() method interface sets a new value for a property on a css style declaration object.
... the cssstyledeclaration.setproperty() method interface sets a new value for a property on a css style declaration object.
...he following values are accepted: string value "important" keyword undefined string empty value "" return value undefined exceptions domexception (nomodificationallowederror): if the property or declaration block is read only.
CSSVariableReferenceValue - Web APIs
the cssvariablereferencevalue interface of the css typed object model api allows you to create a custom name for a built-in css value.
... the cssvariablereferencevalue interface of the css typed object model api allows you to create a custom name for a built-in css value.
...u to create a custom name for a built-in css value.
...the same purpose as the var() function.
CacheStorage.has() - Web APIs
Web › API › CacheStorage › has
the has() method of the cachestorage interface returns a promise that resolves to true if a cache object matches the cachename.
... the has() method of the cachestorage interface returns a promise that resolves to true if a cache object matches the cachename.
... the has() method of the cachestorage interface returns a promise that resolves to true if a cache object matches the cachename.
... the has() method of the cachestorage interface returns a promise that resolves to true if a cache object matches the cachename.
Console.profile() - Web APIs
Web › API › Console › profile
starts recording a performance profile (for example, the firefox performance tool).
...mance profile (for example, the firefox performance tool).
...e firefox performance tool).
...performance tool).
Console.time() - Web APIs
Web › API › Console › time
starts a timer you can use to track how long an operation takes.
... starts a timer you can use to track how long an operation takes.
...ch timer a unique name, and may have up to 10,000 timers running on a given page.
...iven page.
Console.timeLog() - Web APIs
Web › API › Console › timeLog
logs the current value of a timer that was previously started by calling console.time() to the console.
...nt value of a timer that was previously started by calling console.time() to the console.
....timelog(label); parameters label the name of the timer to log to the console.
...mer name” doesn’t exist.
DirectoryReaderSync - Web APIs
resolvelocalfilesystemurl = window.resolvelocalfilesystemurl || window.webkitresolvelocalfilesystemurl; // create web workers var worker = new worker('worker.js'); worker.onmessage = function(e) { var urls = e.data.entries; urls.foreach(function(url, i) { window.resolvelocalfilesystemurl(url, function(fileentry) { // print out file's name.
...esolvelocalfilesystemurl || window.webkitresolvelocalfilesystemurl; // create web workers var worker = new worker('worker.js'); worker.onmessage = function(e) { var urls = e.data.entries; urls.foreach(function(url, i) { window.resolvelocalfilesystemurl(url, function(fileentry) { // print out file's name.
... full support 1.0prefixed prefixed implemented with the vendor prefix: webkitlegend full support full support no support no supportnon-standard.
...refixed prefixed implemented with the vendor prefix: webkitlegend full support full support no support no supportnon-standard.
Document.createExpression() - Web APIs
this method compiles an xpathexpression which can then be used for (repeated) evaluations.
... this method compiles an xpathexpression which can then be used for (repeated) evaluations.
... this method compiles an xpathexpression which can then be used for (repeated) evaluations.
... this method compiles an xpathexpression which can then be used for (repeated) evaluations.
Document.createProcessingInstruction() - Web APIs
sing instruction (i.e., <?target … ?>) data is a string containing any information the processing instruction should carry, after the target.
...' in that specification.
... living standard no change dom4the definition of 'createprocessinginstruction()' in that specification.
...ication.
Document.implementation - Web APIs
the document.implementation property returns a domimplementation object associated with the current document.
... the document.implementation property returns a domimplementation object associated with the current document.
... the document.implementation property returns a domimplementation object associated with the current document.
...bject associated with the current document.
Document.querySelector() - Web APIs
ryselector('#foo\\:bar'); // match the second div </script> examples finding the first element matching a class in this example, the first element in the document with the class "myclass" is returned: var el = document.queryselector(".myclass"); a more complex selector selectors can also be really powerful, as demonstrated in the following example.
...r'); // match the second div </script> examples finding the first element matching a class in this example, the first element in the document with the class "myclass" is returned: var el = document.queryselector(".myclass"); a more complex selector selectors can also be really powerful, as demonstrated in the following example.
... document.queryselector(".myclass"); a more complex selector selectors can also be really powerful, as demonstrated in the following example.
...ut> element with the name "login" (<input name="login"/>) located inside a <div> whose class is "user-panel main" (<div class="user-panel main">) in the document is returned: var el = document.queryselector("div.user-panel.main input[name='login']"); negation as all css selector strings are valid, you can also negate selectors: var el = document.queryselector("div.user-panel:not(.main) input[name='login']"); this will select an input with a parent div with the user-panel class but not the main class.
Document Object Model (DOM) - Web APIs
hat the dom is and how it represents documents, see our article introduction to the dom.
...certain whether some may be reintroduced in the future or not, but for the time being they should be considered obsolete and should be avoided: documenttouch domconfiguration domerrorhandler domimplementationlist domimplementationregistry domimplementationsource domlocator domobject domsettabletokenlist domuserdata elementtraversal entity entityreference namelist notation typeinfo userdatahandler html dom a document containing html is described using the document interface, which is extended by the html specification to include various html-specific features.
...efuncrelement svgfegaussianblurelement svgfeimageelement svgfemergeelement svgfemergenodeelement svgfemorphologyelement svgfeoffsetelement svgfepointlightelement svgfespecularlightingelement svgfespotlightelement svgfetileelement svgfeturbulenceelement svgfilterelement svgfilterprimitivestandardattributes svgfontelement svgfontfaceelement svgfontfaceformatelement svgfontfacenameelement svgfontfacesrcelement svgfontfaceurielement svgforeignobjectelement svggelement svggeometryelement svgglyphelement svgglyphrefelement svggradientelement svggraphicselement svghatchelement svghatchpathelement svghkernelement svgimageelement svglineargradientelement svglineelement svgmarkerelement svgmaskelement svgmeshelement svgmeshgradientelement ...
...oningelement svgtitleelement svgtrefelement svgtspanelement svguseelement svgunknownelement svgviewelement svgvkernelement svg data type interfaces here are the dom apis for data types used in the definitions of svg properties and attributes.
EcKeyGenParams - Web APIs
the eckeygenparams dictionary of the web crypto api represents the object that should be passed as the algorithm parameter into subtlecrypto.generatekey(), when generating any elliptic-curve-based key pair: that is, when the algorithm is identified as either of ecdsa or ecdh.
... the eckeygenparams dictionary of the web crypto api represents the object that should be passed as the algorithm parameter into subtlecrypto.generatekey(), when generating any elliptic-curve-based key pair: that is, when the algorithm is identified as either of ecdsa or ecdh.
... web crypto api represents the object that should be passed as the algorithm parameter into subtlecrypto.generatekey(), when generating any elliptic-curve-based key pair: that is, when the algorithm is identified as either of ecdsa or ecdh.
...lgorithm parameter into subtlecrypto.generatekey(), when generating any elliptic-curve-based key pair: that is, when the algorithm is identified as either of ecdsa or ecdh.
EcKeyImportParams - Web APIs
the eckeyimportparams dictionary of the web crypto api represents the object that should be passed as the algorithm parameter into subtlecrypto.importkey() or subtlecrypto.unwrapkey(), when generating any elliptic-curve-based key pair: that is, when the algorithm is identified as either of ecdsa or ecdh.
...dictionary of the web crypto api represents the object that should be passed as the algorithm parameter into subtlecrypto.importkey() or subtlecrypto.unwrapkey(), when generating any elliptic-curve-based key pair: that is, when the algorithm is identified as either of ecdsa or ecdh.
... the object that should be passed as the algorithm parameter into subtlecrypto.importkey() or subtlecrypto.unwrapkey(), when generating any elliptic-curve-based key pair: that is, when the algorithm is identified as either of ecdsa or ecdh.
...btlecrypto.importkey() or subtlecrypto.unwrapkey(), when generating any elliptic-curve-based key pair: that is, when the algorithm is identified as either of ecdsa or ecdh.
Element.getAttribute() - Web APIs
the getattribute() method of the element interface returns the value of a specified attribute on the element.
... the getattribute() method of the element interface returns the value of a specified attribute on the element.
... the getattribute() method of the element interface returns the value of a specified attribute on the element.
...ibute() method of the element interface returns the value of a specified attribute on the element.
Element.outerHTML - Web APIs
Web › API › Element › outerHTML
ole.log(d.outerhtml); // the string '<div id="d"><p>content</p><p>further elaborated</p></div>' // is written to the console window replacing a node by setting the outerhtml property: html <div id="container"> <div id="d">this is a div.</div> </div> javascript var container = document.getelementbyid("container"); var d = document.getelementbyid("d"); console.log(container.firstchild.nodename); // logs "div" d.outerhtml = "<p>this paragraph replaced the original div.</p>"; console.log(container.firstchild.nodename); // logs "p" // the #d div is no longer part of the document tree, // the new paragraph replaced it.
...ants.
...row an exception.
...ss=\"test\">test</div>"; console.log(div.outerhtml); // output: "<div></div>" also, while the element will be replaced in the document, the variable whose outerhtml property was set will still hold a reference to the original element: var p = document.getelementsbytagname("p")[0]; console.log(p.nodename); // shows: "p" p.outerhtml = "<div>this div replaced a paragraph.</div>"; console.log(p.nodename); // still "p"; the returned value will contain html escaped attributes: var anc = document.createelement("a"); anc.href = "https://developer.mozilla.org?a=b&c=d"; console.log(anc.outerhtml); // output: "<a href='https://developer.mozilla.org?a=b&amp;c=d'></a>" specification specification status comment dom parsing and serializationthe definition of 'element.oute...
Element.setAttributeNode() - Web APIs
example this example copies the align attribute from one element to another.
...'); d2.setattributenode(a.clonenode(true)); // returns: 'left' alert(d2.attributes[1].value); notes if the attribute named already exists on the element, that attribute is replaced with the new one and the replaced one is returned.
... // returns: 'left' alert(d2.attributes[1].value); notes if the attribute named already exists on the element, that attribute is replaced with the new one and the replaced one is returned.
...tribute is replaced with the new one and the replaced one is returned.
Element.setAttributeNodeNS() - Web APIs
setattributenodens adds a new namespaced attribute node to an element.
... already exists on the element, then that attribute is replaced with the new one and the replaced one is returned.
...tribute is replaced with the new one and the replaced one is returned.
...de, mozilla gives an ns_error_dom_inuse_attribute_err "attribute already in use" error, as the dom requires cloning for attr to be reused (unlike other nodes which can be moved).
FileException - Web APIs
true, exclusive:true}0; } catch (e) { onerrror(e); } the sample code was borrowed from html5rocks attribute attribute type description code unsigned short the most appropriate error code for the condition.
...e the constant names instead.
... no support 1.0 — 3.0prefixed prefixed implemented with the vendor prefix: webkitlegend no support no supportnon-standard.
...ixed prefixed implemented with the vendor prefix: webkitlegend no support no supportnon-standard.
FileReader - Web APIs
ead.
...list object returned as a result of a user selecting files using the <input> element, from a drag and drop operation's datatransfer object, or from the mozgetasfile() api on an htmlcanvaselement.
...the raw binary data from the file as a string.
...ce finished, the result attribute contains a data: url representing the file's data.
FileSystemEntry.copyTo() - Web APIs
the filesystementry interface's method copyto() copies the file specified by the entry to a new location on the file system.
...() copies the file specified by the entry to a new location on the file system.
...to itself.
...ng a directory, the copy is always recursive; you can't leave out subfolders.
FormData.delete() - Web APIs
Web › API › FormData › delete
the delete() method of the formdata interface deletes a key and its value(s) from a formdata object.
... the delete() method of the formdata interface deletes a key and its value(s) from a formdata object.
... the delete() method of the formdata interface deletes a key and its value(s) from a formdata object.
...a object.
Using the Frame Timing API - Web APIs
tion syntax.
...observe({entrytypes: ['frame']}); } function init () { create_frame_observer(); var obs = new performanceobserver(frame_observer_2); obs.observe({entrytypes: ['frame']}); } function frame_observer_2(list) { // log the frame entries var perfentries = list.getentriesbytype("frame"); for (var i=0; i < perfentries.length; i++) { console.log("obs #2: [" + i + "] = " + perfentries[i].name); } } <body onload="init(event)"> when the browser adds a new "frame" entry to the performance timeline, both of the observer callbacks will be invoked.
...three methods to retrieve frame data: performanceobserverentrylist.getentries() returns a list of explicitly observed performanceentry objects based on the list of entry types given to performanceobserver.observe().
...s a list of explicitly observed performanceentry objects based on the list of entry types given to performanceobserver.observe().
HTMLButtonElement - Web APIs
form.
...orm.
...rides the target attribute of the <form> element that owns this element.
...f the control is not a candidate for constraint validation (willvalidate is false), or it satisfies its constraints.
HTMLFieldSetElement - Web APIs
ec that is implemented by the browser.
...wser.
...only an htmlformcontrolscollection or htmlcollection referencing the containing form element, if this element is in a form.
... status comment html living standardthe definition of 'htmlfieldsetelement' in that specification.
HTMLImageElement.useMap - Web APIs
the usemap property on the htmlimageelement interface reflects the value of the html usemap attribute, which is a string providing the name of the client-side image map to apply to the image.
...hat is, a url that begins with the hash or pound symbol, "#") of the <map> element which defines the image map to apply to the image.
... map to apply to the image.
... other words, this string should be the value of the appropriate <map>'s name attribute with a pound or hash symbol prepended to it.
HTMLImageElement - Web APIs
e image's css layout box relative to the origin of the <html> element's containing block.
...y be found.
...image into a hyperlink automatically.
...d y properties.
HTMLKeygenElement - Web APIs
ith the submitted key.
... is a htmlformelement that indicates the control's form owner, reflecting the form html attribute if it is defined.
...s the control's form owner, reflecting the form html attribute if it is defined.
...satisfy (if any).
HTMLObjectElement - Web APIs
le values are "left", "right", "justify", and "center".
...ectelement.form read only retuns a htmlformelement representing the object element's form owner, or null if there isn't one.
...melement representing the object element's form owner, or null if there isn't one.
...ment's form owner, or null if there isn't one.
HTMLSlotElement - Web APIs
the htmlslotelement interface of the shadow dom api enables access to the name and assigned nodes of an html <slot> element.
... the htmlslotelement interface of the shadow dom api enables access to the name and assigned nodes of an html <slot> element.
... the htmlslotelement interface of the shadow dom api enables access to the name and assigned nodes of an html <slot> element.
... slotchange fired on an htmlslotelement instance (<slot> element) when the node(s) contained in that slot change.
databases - Web APIs
the databases method of the idbfactory interface returns a list represening all the available databases, including their names and versions.
...cluding their names and versions.
... and versions.
... this feature is available in web workers.
IDBIndex.count() - Web APIs
Web › API › IDBIndex › count
the following types: exception description transactioninactiveerror this idbindex's transaction is inactive.
... finally, we iterate through each record, and insert the data into an html table.
...'); var countrequest = myindex.count(); countrequest.onsuccess = function() { console.log(countrequest.result); } myindex.opencursor().onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var tablerow = document.createelement('tr'); tablerow.innerhtml = '<td>' + cursor.value.id + '</td>' + '<td>' + cursor.value.lname + '</td>' + '<td>' + cursor.value.fname + '</td>' + '<td>' + cursor.value.jtitle + '</td>' + '<td>' + cursor.value.company + '</td>' + '<td>' + cursor.value.email + '</td>' + '<td>' + cursor.value.phone + '</td>' + '<td>' + cursor.value.
... 14safari ios full support 8samsung internet android full support 1.5legend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBIndex.multiEntry - Web APIs
note: this feature is available in web workers.
... finally, we iterate through each record, and insert the data into an html table.
... = transaction.objectstore('contactslist'); var myindex = objectstore.index('lname'); console.log(myindex.multientry); myindex.opencursor().onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var tablerow = document.createelement('tr'); tablerow.innerhtml = '<td>' + cursor.value.id + '</td>' + '<td>' + cursor.value.lname + '</td>' + '<td>' + cursor.value.fname + '</td>' + '<td>' + cursor.value.jtitle + '</td>' + '<td>' + cursor.value.company + '</td>' + '<td>' + cursor.value.email + '</td>' + '<td>' + cursor.value.phone + '</td>' + '<td>' + cursor.value.
... 14safari ios full support 8samsung internet android full support 1.5legend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBIndex.openCursor() - Web APIs
nsactioninactiveerror this idbindex's transaction is inactive.
... finally, we iterate through each record, and insert the data into an html table.
...t'], 'readonly'); var objectstore = transaction.objectstore('contactslist'); var myindex = objectstore.index('lname'); myindex.opencursor().onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var tablerow = document.createelement('tr'); tablerow.innerhtml = '<td>' + cursor.value.id + '</td>' + '<td>' + cursor.value.lname + '</td>' + '<td>' + cursor.value.fname + '</td>' + '<td>' + cursor.value.jtitle + '</td>' + '<td>' + cursor.value.company + '</td>' + '<td>' + cursor.value.email + '</td>' + '<td>' + cursor.value.phone + '</td>' + '<td>' + cursor.value.
... 14safari ios full support 8samsung internet android full support 1.5legend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBIndex.unique - Web APIs
Web › API › IDBIndex › unique
te entries.
... finally, we iterate through each record, and insert the data into an html table.
...tore = transaction.objectstore('contactslist'); var myindex = objectstore.index('lname'); console.log(myindex.unique); myindex.opencursor().onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var tablerow = document.createelement('tr'); tablerow.innerhtml = '<td>' + cursor.value.id + '</td>' + '<td>' + cursor.value.lname + '</td>' + '<td>' + cursor.value.fname + '</td>' + '<td>' + cursor.value.jtitle + '</td>' + '<td>' + cursor.value.company + '</td>' + '<td>' + cursor.value.email + '</td>' + '<td>' + cursor.value.phone + '</td>' + '<td>' + cursor.value.
... 14safari ios full support 8samsung internet android full support 1.5legend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBTransactionSync - Web APIs
sync interface of the indexeddb api provides a synchronous transaction on a database.
...eption with the following codes: non_transient_err if this transaction has already been committed or aborted.
... if this transaction has already been committed or aborted.
...ransaction has already been committed or aborted.
installChrome - Web APIs
installchrome installs new skin or locale packages in netscape 6 and mozilla.
... installchrome installs new skin or locale packages in netscape 6 and mozilla.
... installchrome installs new skin or locale packages in netscape 6 and mozilla.
...trigger object syntax int installchrome( type, url, name ) parameters the installchrome method has the following parameters: type type can be installtrigger.skin or installtrigger.locale.
LockManager.query() - Web APIs
Web › API › LockManager › query
promise<lockmanagersnapshot> = lockmanager.query() parameters none.
...managersnapshot> = lockmanager.query() parameters none.
...h a lockmanagersnapshot containing the following properties.
...snapshot containing the following properties.
Capabilities, constraints, and settings - Web APIs
like this: let supported = navigator.mediadevices.getsupportedconstraints(); document.getelementbyid("framerateslider").disabled = !supported["framerate"]; in this example, the supported constraints are fetched, and a control that lets the user configure the frame rate is disabled if the framerate constraint isn't supported.
...constraints are fetched, and a control that lets the user configure the frame rate is disabled if the framerate constraint isn't supported.
...eosettingstext = document.getelementbyid("videosettingstext"); let audiosettingstext = document.getelementbyid("audiosettingstext"); these elements are: videoelement the <video> element that will show the stream.
...>"; supportedconstraintlist.appendchild(elem); } } error handling we also have some simple error handling code; handleerror() is called to handle promises which fail, and the log() function appends the error message to a special logging <div> box under the video.
MutationRecord - Web APIs
added.
...ednodes nodelist return the nodes removed.
...t if no nodes were removed.
... mutationrecord.previoussibling node return the previous sibling of the added or removed nodes, or null.
NDEFRecord.recordType - Web APIs
pe value a usvstring which can be one of the following: "empty" represents a empty ndef record.
...an be one of the following: "empty" represents a empty ndef record.
...a text ndef record.
... an uri ndef record.
OrientationSensor - Web APIs
ionsensor.quaternion to rotate a visual model of a phone.
...rror.name == 'notreadableerror') { console.log("sensor is not available."); } }); sensor.start(); permissions example using orientation sensors requires requsting permissions for multiple device sensors.
...ilable."); } }); sensor.start(); permissions example using orientation sensors requires requsting permissions for multiple device sensors.
...tation sensors requires requsting permissions for multiple device sensors.
PayerErrors.phone - Web APIs
Web › API › PayerErrors › phone
the phone property is found in a payererrors object if the payername returned in the response couldn't be validated as a valid phone number.
...ser interface as appropriate.
...propriate.
... is omitted from the payererrors object.
PayerErrors - Web APIs
the payererrors dictionary is used by the payment request api to indicate the presence of—and to explain how to correct—validation errors in the payer details.
...ring explaining the error.
..., and email address.
...from which the payer's email address—as given by paymentresponse.payeremail—currently suffers.
PaymentAddress.recipient - Web APIs
the read-only recipient property of the paymentaddress interface returns a string containing the name of the recipient, purchaser, or contact person at the payment address.
... the read-only recipient property of the paymentaddress interface returns a string containing the name of the recipient, purchaser, or contact person at the payment address.
... the read-only recipient property of the paymentaddress interface returns a string containing the name of the recipient, purchaser, or contact person at the payment address.
... the read-only recipient property of the paymentaddress interface returns a string containing the name of the recipient, purchaser, or contact person at the payment address.
PaymentMethodChangeEvent - Web APIs
the paymentmethodchangeevent() constructor creates a new paymentmethodchangeevent object providing details about a paymentmethodchange event.
...nt.
...mpty string by default.
...escribing the changes made to the payment, or null if there is no additional information available or required.
Using the Payment Request API - Web APIs
e user's browser supports paymentrequest, i.e.
...ndle cancelled or failed payment.
...s to add payment credentials first, the title of the checkout button changes between "fast checkout with w3c" and "setup w3c checkout".
...l prices are known if the checkout flow needs to know whether paymentrequest.canmakepayment() will return true even before all line items and their prices are known, you can instantiate paymentrequest with dummy data and pre-query .canmakepayment().
performance.clearMarks() - Web APIs
the clearmarks() method removes the named mark from the browser's performance entry buffer.
... the clearmarks() method removes the named mark from the browser's performance entry buffer.
... the clearmarks() method removes the named mark from the browser's performance entry buffer.
...ks() method removes the named mark from the browser's performance entry buffer.
performance.clearMeasures() - Web APIs
the clearmeasures() method removes the named measure from the browser's performance entry buffer.
... the clearmeasures() method removes the named measure from the browser's performance entry buffer.
... the clearmeasures() method removes the named measure from the browser's performance entry buffer.
...removes the named measure from the browser's performance entry buffer.
Performance API - Web APIs
ations) and benchmarking (such as the time to load a resource).
...ovides methods and properties the encapsulate a single performance metric that is part of the performance timeline.
... an abstract interface for performance entries with an entry type of "mark".
...t adds the performancenavigationtiming interface.
Permissions.revoke() - Web APIs
ace reverts a currently set permission back to its default state, which is usually prompt.
...s default state, which is usually prompt.
...state, which is usually prompt.
...ng the result of the request.
Using Pointer Events - Web APIs
artup()">initialize</button> <br> log: <pre id="log" style="border: 1px solid #ccc;"></pre> setting up the event handlers when the page loads, the startup() function shown below should be called by our <body> element's onload attribute (but in the example we use a button to trigger it, due to limitations of the mdn live example system).
...or our <canvas> element so we can handle the touch events as they occur.
...l show up neatly.
...n the ongoingtouches array.
RTCIceServer - Web APIs
tialtype optional if the rtciceserver represents a turn server, this attribute specifies what kind of credential is to be used when connecting.
...ibute specifies what kind of credential is to be used when connecting.
...his obsolete property is a string specifies a single ice server's url.
...es.
RTCIdentityErrorEvent.idp - Web APIs
the read-only property rtcidentityerrorevent.idp returns the domstring describing the domain name of the identity provider (idp) generating the error response event.
... the read-only property rtcidentityerrorevent.idp returns the domstring describing the domain name of the identity provider (idp) generating the error response event.
... the read-only property rtcidentityerrorevent.idp returns the domstring describing the domain name of the identity provider (idp) generating the error response event.
...s the interface of this property under the following name: rtcpeerconnectionidentityerrorevent.
RTCIdentityErrorEvent - Web APIs
the rtcidentityerrorevent interface represents an error associated with the identity provider (idp).
... the rtcidentityerrorevent interface represents an error associated with the identity provider (idp).
...nts this interface under the following name: rtcpeerconnectionidentityerrorevent.
...t can be null and is provided by the identity provider (idp).
RTCRtpParameters - Web APIs
extensions, each identifying an extension supported by the sender or receiver.
...ions, each identifying an extension supported by the sender or receiver.
...xtensions are described in rfc 3550: 5.3.1.
... set.
RTCRtpReceiveParameters - Web APIs
he rtcrtpparameters dictionary, is returned by the the rtcrtpreceiver method getparameters().
...tpparameters dictionary, is returned by the the rtcrtpreceiver method getparameters().
...od getparameters().
...on to the remote peer.
RTCRtpReceiver.getParameters() - Web APIs
preceiver interface returns an rtcrtpreceiveparameters object describing the current configuration for the encoding and transmission of media on the receiver's track.
...er interface returns an rtcrtpreceiveparameters object describing the current configuration for the encoding and transmission of media on the receiver's track.
...he current configuration for the encoding and transmission of media on the receiver's track.
...ck.
SharedWorkerGlobalScope - Web APIs
the sharedworkerglobalscope object (the sharedworker global scope) is accessible through the self keyword.
...cally associated with the worker global scope, but available on it, are listed in the javascript reference.
... the worker global scope, but available on it, are listed in the javascript reference.
...ion set using windowtimers.setinterval().
SpeechSynthesisEvent - Web APIs
interface, event.
...nthesisevent.charindex read only returns the index position of the character in the speechsynthesisutterance.text that was being spoken when the event was triggered.
...ext that was being spoken when the event was triggered.
...hods the speechsynthesisevent interface also inherits methods from its parent interface, event.
SpeechSynthesisUtterance.onmark - Web APIs
the onmark property of the speechsynthesisutterance interface represents an event handler that will run when the spoken utterance reaches a named ssml mark tag (when the mark event fires.) syntax speechsynthesisutteranceinstance.onmark = function() { ...
...hesis; var inputform = document.queryselector('form'); var inputtxt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...txt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...default(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selectedoptions[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); utterthis.onmark = function(event) { console.log('a mark was reached: ' + event.name); } inputtxt.blur(); } specifications specification status comment web speech apithe definition of 'onmark' in that specification.
Storage.getItem() - Web APIs
Web › API › Storage › getItem
the getitem() method of the storage interface, when passed a key name, will return that key's value, or null if the key does not exist, in the given storage object.
... the getitem() method of the storage interface, when passed a key name, will return that key's value, or null if the key does not exist, in the given storage object.
... the getitem() method of the storage interface, when passed a key name, will return that key's value, or null if the key does not exist, in the given storage object.
... the getitem() method of the storage interface, when passed a key name, will return that key's value, or null if the key does not exist, in the given storage object.
Storage.key() - Web APIs
Web › API › Storage › key
the key() method of the storage interface, when passed a number n, returns the name of the nth key in a given storage object.
... the key() method of the storage interface, when passed a number n, returns the name of the nth key in a given storage object.
... the key() method of the storage interface, when passed a number n, returns the name of the nth key in a given storage object.
... method of the storage interface, when passed a number n, returns the name of the nth key in a given storage object.
Storage.removeItem() - Web APIs
the removeitem() method of the storage interface, when passed a key name, will remove that key from the given storage object if it exists.
... the removeitem() method of the storage interface, when passed a key name, will remove that key from the given storage object if it exists.
... the removeitem() method of the storage interface, when passed a key name, will remove that key from the given storage object if it exists.
...od of the storage interface, when passed a key name, will remove that key from the given storage object if it exists.
Storage.setItem() - Web APIs
Web › API › Storage › setItem
the setitem() method of the storage interface, when passed a key name and value, will add that key to the given storage object, or update that key's value if it already exists.
... the setitem() method of the storage interface, when passed a key name and value, will add that key to the given storage object, or update that key's value if it already exists.
... the setitem() method of the storage interface, when passed a key name and value, will add that key to the given storage object, or update that key's value if it already exists.
... the setitem() method of the storage interface, when passed a key name and value, will add that key to the given storage object, or update that key's value if it already exists.
Storage - Web APIs
Web › API › Storage
stored data items.
...main, a call to window.sessionstorage is made; whereas for local storage the call is made to window.localstorage.
...he call is made to window.localstorage.
...tored in the storage object.
SubtleCrypto.decrypt() - Web APIs
here was an error decrypting the ciphertext).
...(privatekey, ciphertext) { return window.crypto.subtle.decrypt( { name: "rsa-oaep" }, privatekey, ciphertext ); } aes-ctr this code decrypts ciphertext using aes in ctr mode.
...ext) { return window.crypto.subtle.decrypt( { name: "aes-ctr", counter, length: 64 }, key, ciphertext ); } aes-cbc this code decrypts ciphertext using aes in cbc mode.
...essage(key, ciphertext) { return window.crypto.subtle.decrypt( { name: "aes-cbc", iv: iv }, key, ciphertext ); } aes-gcm this code decrypts ciphertext using aes in gcm mode.
SubtleCrypto.deriveKey() - Web APIs
in this example alice and bob each generate an ecdh key pair, then exchange public keys.
...ge public keys.
...rivatekey, { name: "aes-gcm", length: 256 }, false, ["encrypt", "decrypt"] ); } async function agreesharedsecretkey() { // generate 2 ecdh key pairs: one for alice and one for bob // in more normal usage, they would generate their key pairs // separately and exchange public keys securely let aliceskeypair = await window.crypto.subtle.generatekey( { name: "ecdh", namedcurve: "p-384" }, false, ["derivekey"] ); let bobskeypair = await window.crypto.subtle.generatekey( { name: "ecdh", namedcurve: "p-384" }, false, ["derivekey"] ); // alice then generates a secret key using her private key and bob's public key.
...etkeymaterial() { let password = window.prompt("enter your password"); let enc = new textencoder(); return window.crypto.subtle.importkey( "raw", enc.encode(password), "pbkdf2", false, ["derivebits", "derivekey"] ); } async function encrypt(plaintext, salt, iv) { let keymaterial = await getkeymaterial(); let key = await window.crypto.subtle.derivekey( { "name": "pbkdf2", salt: salt, "iterations": 100000, "hash": "sha-256" }, keymaterial, { "name": "aes-gcm", "length": 256}, true, [ "encrypt", "decrypt" ] ); return window.crypto.subtle.encrypt( { name: "aes-gcm", iv: iv }, key, plaintext ); } specifications specification status comment web cryptography a...
URL.searchParams - Web APIs
Web › API › URL › searchParams
the searchparams readonly property of the url interface returns a urlsearchparams object allowing access to the get decoded query arguments contained in the url.
...rchparams readonly property of the url interface returns a urlsearchparams object allowing access to the get decoded query arguments contained in the url.
...ccess to the get decoded query arguments contained in the url.
...coded query arguments contained in the url.
WebGL2RenderingContext.getInternalformatParameter() - Web APIs
the webgl2renderingcontext.getinternalformatparameter() method of the webgl 2 api returns information about implementation-dependent support for internal formats.
...rameter(target, internalformat, pname); parameters target a glenum specifying the target renderbuffer object.
...he internal format about which to retrieve information (must be a color-renderable, depth-renderable or stencil-renderable format).
...to retrieve information (must be a color-renderable, depth-renderable or stencil-renderable format).
WebGL2RenderingContext.samplerParameter[if]() - Web APIs
the webgl2renderingcontext.samplerparameter[if]() methods of the webgl 2 api set webglsampler parameters.
... the webgl2renderingcontext.samplerparameter[if]() methods of the webgl 2 api set webglsampler parameters.
... the webgl2renderingcontext.samplerparameter[if]() methods of the webgl 2 api set webglsampler parameters.
... gl.texture_wrap_r: a glenum specifying the texture wrapping function for the texture coordinate r.
WebGLRenderingContext.bindAttribLocation() - Web APIs
the webglrenderingcontext.bindattriblocation() method of the webgl api binds a generic vertex index to an attribute variable.
... the webglrenderingcontext.bindattriblocation() method of the webgl api binds a generic vertex index to an attribute variable.
... the webglrenderingcontext.bindattriblocation() method of the webgl api binds a generic vertex index to an attribute variable.
...glrenderingcontext.bindattriblocation() method of the webgl api binds a generic vertex index to an attribute variable.
WebGLRenderingContext.getAttribLocation() - Web APIs
the webglrenderingcontext.getattriblocation() method of the webgl api returns the location of an attribute variable in a given webglprogram.
... the webglrenderingcontext.getattriblocation() method of the webgl api returns the location of an attribute variable in a given webglprogram.
... the webglrenderingcontext.getattriblocation() method of the webgl api returns the location of an attribute variable in a given webglprogram.
...etattriblocation() method of the webgl api returns the location of an attribute variable in a given webglprogram.
WebGLRenderingContext.getExtension() - Web APIs
the webglrenderingcontext.getextension() method enables a webgl extension.
... the webglrenderingcontext.getextension() method enables a webgl extension.
... the webglrenderingcontext.getextension() method enables a webgl extension.
... the webglrenderingcontext.getextension() method enables a webgl extension.
WebGLRenderingContext.getProgramParameter() - Web APIs
the webglrenderingcontext.getprogramparameter() method of the webgl api returns information about the given program.
... the webglrenderingcontext.getprogramparameter() method of the webgl api returns information about the given program.
... active.
...ecification status comment webgl 1.0the definition of 'getprogramparameter' in that specification.
WebGLRenderingContext.getRenderbufferParameter() - Web APIs
the webglrenderingcontext.getrenderbufferparameter() method of the webgl api returns information about the renderbuffer.
... the webglrenderingcontext.getrenderbufferparameter() method of the webgl api returns information about the renderbuffer.
...derbuffer_stencil_size: returns a glint that is the resolution size (in bits) for the stencil component.
...arameteriv' in that specification.
WebGLRenderingContext.getTexParameter() - Web APIs
the webglrenderingcontext.gettexparameter() method of the webgl api returns information about the given texture.
...arget, pname); parameters target a glenum specifying the binding point (target).
...t).
...um level-of-detail value any float values.
Using WebGL extensions - Web APIs
webgl, like its sister apis (opengl and opengl es), supports extensions.
...orts extensions.
...draft stage).
...e can be prefixed by the vendor prefix (moz_, webkit_, etc.) or the extension is only available once a browser preference has been toggled.
A simple RTCDataChannel sample - Web APIs
the mechanics of accomplishing the connection and transmitting and receiving data, but we will save the bits about locating and linking to a remote computer for another example.
...ill save the bits about locating and linking to a remote computer for another example.
...> <button id="disconnectbutton" name="disconnectbutton" class="buttonright" disabled> disconnect </button> then there's a box which contains the text input box into which the user can type a message to transmit, with a button to send the entered text.
...ox into which the user can type a message to transmit, with a button to send the entered text.
Window: popstate event - Web APIs
have "persisted user state." this information the browser might add to the history session entry may include, for instance, the document's scroll position, the values of form inputs, and other such data.
...formation the browser might add to the history session entry may include, for instance, the document's scroll position, the values of form inputs, and other such data.
... inputs, and other such data.
...browsing context is updated so that its document property refers to the document referred to by new-entry, and the context's name is updated to match the context name of the now-current document.
Window - Web APIs
Web › API › Window
the window interface represents a window containing a dom document; the document property points to the dom document loaded in that window.
...s.
...lspercsspixel in nsidomwindowutils for a conversion factor to adapt to screen pixels if needed.
...on storage or local storage.
XMLHttpRequest.getAllResponseHeaders() - Web APIs
l if no response has been received.
... content-type: text/html; charset=utf-8\r\n connection: keep-alive\r\n strict-transport-security: max-age=63072000\r\n vary: cookie, accept-encoding\r\n content-length: 6502\r\n x-xss-protection: 1; mode=block\r\n each line is terminated by both carriage return and line feed characters (\r\n).
... modern browsers, the header names are returned in all lower case, as per the latest spec.
...ttprequest(); request.open("get", "foo.txt", true); request.send(); request.onreadystatechange = function() { if(this.readystate == this.headers_received) { // get the raw header string var headers = request.getallresponseheaders(); // convert the header string into an array // of individual headers var arr = headers.trim().split(/[\r\n]+/); // create a map of header names to values var headermap = {}; arr.foreach(function (line) { var parts = line.split(': '); var header = parts.shift(); var value = parts.join(': '); headermap[header] = value; }); } } once this is done, you can, for example: var contenttype = headermap["content-type"]; this obtains the value of the content-type header into the variable contenttype.
XPathNSResolver - Web APIs
the xpathnsresolver interface permits prefix strings in an xpath expression to be properly bound to namespace uri strings.
... the xpathnsresolver interface permits prefix strings in an xpath expression to be properly bound to namespace uri strings.
... the xpathnsresolver interface permits prefix strings in an xpath expression to be properly bound to namespace uri strings.
... the xpathnsresolver interface permits prefix strings in an xpath expression to be properly bound to namespace uri strings.
XRPermissionDescriptor - Web APIs
user permissions in the webxr device api are managed using the permissions api.
...ly handle the request as applying to webxr.
..., immersive-vr, or immersive-ar) for which the permissions are requested.
...mise is rejected, the error is handled (currently by just dumping it to the console using domxref("console.log()")}}).
XSL Transformations in Mozilla FAQ - Web APIs
why isn't my stylesheet applied?
... why isn't my stylesheet applied?
...d, or if the specified media include screen.
... css stylesheets loaded from the generated dom, those honor media just like in pages without xslt.
msRegionOverflow - Web APIs
cific to internet explorer.
...ontent.
...ment's content fits into the region's content box.
...thout overflowing.
ARIA: timer role - Accessibility
live region containing a timer listing the time remaining or elapsed time.
...countingdownto.com/).
...mple clock, showing hours and minutes.
...tart</button> /* basic javascript to update a timer */ function starttimer(timername) { // get the number of seconds let timer = document.getelementbyid(timername), seconds = parseint(timer.innertext); // remove a second // updated the content of timer timer.innertext = --seconds // if timer != 0, settimeout if (seconds) { settimeout( function() { starttimer(timername); }, 1000); } } the first time the function executes, the entirety of the string that is added will be announced.
Understandable - Accessibility
the content of a page includes words or phrases that are in a different language to the primary language, use the lang attribute on an element wrapped around the term in question (e.g.
...so it can't be relied on alone.
...ombination or <label>s and <fieldset>s/<legend>s for multiple inputs that go together (like the elements of a date of birth or postal address).
...planatory paragraphs too, or maybe you need to try to make your forms more intuitive.
:checked - CSS: Cascading Style Sheets
Web › CSS › :checked
border: 1px solid blue; } the user can engage this state by checking/selecting an element, or disengage it by unchecking/deselecting the element.
...ng an element, or disengage it by unchecking/deselecting the element.
...s often treat <option>s as replaced elements, the extent to which they can be styled with the :checked pseudo-class varies from browser to browser.
...h the :checked pseudo-class varies from browser to browser.
:default - CSS: Cascading Style Sheets
Web › CSS › :default
<input type="checkbox"> and <input type="radio"> match if they have the checked attribute.
...bute.
...dom order that belongs to the form.
...t forms, like image or submit.
:empty - CSS: Cascading Style Sheets
Web › CSS › :empty
whitespace and elements around this comment.
...ox { background: pink; height: 80px; width: 80px; } .box:empty { background: lime; } result accessibility concerns assistive technology such as screen readers cannot parse interactive content that is empty.
... content that is empty.
... accessibility tree, an api that communicates information useful for assistive technologies.
:has() - CSS: Cascading Style Sheets
Web › CSS › :has
-list> )where <relative-selector-list> = <relative-selector>#where <relative-selector> = <combinator>?
...[ <type-selector>?
... <id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector><pseudo-element-selector> = ':' <pseudo-class-selector><pseudo-class-selector> = ':' <ident-token> | ':' <function-token> <any-value> ')'where <wq-name> = <ns-prefix>?
...ass-selector> | <attribute-selector> | <pseudo-class-selector><pseudo-element-selector> = ':' <pseudo-class-selector><pseudo-class-selector> = ':' <ident-token> | ':' <function-token> <any-value> ')'where <wq-name> = <ns-prefix>?
:host-context() - CSS: Cascading Style Sheets
hite when a .dark-theme class is applied to the document body */ p { color: #000; } :host-context(body.dark-theme) p { color: #fff; } syntax :host-context( <compound-selector-list> )where <compound-selector-list> = <compound-selector>#where <compound-selector> = [ <type-selector>?
...[ <type-selector>?
... <id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector><pseudo-element-selector> = ':' <pseudo-class-selector><pseudo-class-selector> = ':' <ident-token> | ':' <function-token> <any-value> ')'where <wq-name> = <ns-prefix>?
...ass-selector> | <attribute-selector> | <pseudo-class-selector><pseudo-element-selector> = ':' <pseudo-class-selector><pseudo-class-selector> = ':' <ident-token> | ':' <function-token> <any-value> ')'where <wq-name> = <ns-prefix>?
:not() - CSS: Cascading Style Sheets
Web › CSS › :not
mental and not yet widely supported.
...[ <pseudo-element-selector> <pseudo-class-selector>* ]* ]!<combinator> = '>' | '+' | '~' | [ '|' ]where <type-selector> = <wq-name> | <ns-prefix>?
... <id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector><pseudo-element-selector> = ':' <pseudo-class-selector><pseudo-class-selector> = ':' <ident-token> | ':' <function-token> <any-value> ')'where <wq-name> = <ns-prefix>?
...ass-selector> | <attribute-selector> | <pseudo-class-selector><pseudo-element-selector> = ':' <pseudo-class-selector><pseudo-class-selector> = ':' <ident-token> | ':' <function-token> <any-value> ')'where <wq-name> = <ns-prefix>?
:nth-child() - CSS: Cascading Style Sheets
nth> [ of <complex-selector-list> ]?
...[ <pseudo-element-selector> <pseudo-class-selector>* ]* ]!<combinator> = '>' | '+' | '~' | [ '|' ]where <type-selector> = <wq-name> | <ns-prefix>?
... <id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector><pseudo-element-selector> = ':' <pseudo-class-selector><pseudo-class-selector> = ':' <ident-token> | ':' <function-token> <any-value> ')'where <wq-name> = <ns-prefix>?
...ass-selector> | <attribute-selector> | <pseudo-class-selector><pseudo-element-selector> = ':' <pseudo-class-selector><pseudo-class-selector> = ':' <ident-token> | ':' <function-token> <any-value> ')'where <wq-name> = <ns-prefix>?
:nth-last-child() - CSS: Cascading Style Sheets
nth> [ of <complex-selector-list> ]?
...[ <pseudo-element-selector> <pseudo-class-selector>* ]* ]!<combinator> = '>' | '+' | '~' | [ '|' ]where <type-selector> = <wq-name> | <ns-prefix>?
... <id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector><pseudo-element-selector> = ':' <pseudo-class-selector><pseudo-class-selector> = ':' <ident-token> | ':' <function-token> <any-value> ')'where <wq-name> = <ns-prefix>?
...ass-selector> | <attribute-selector> | <pseudo-class-selector><pseudo-element-selector> = ':' <pseudo-class-selector><pseudo-class-selector> = ':' <ident-token> | ':' <function-token> <any-value> ')'where <wq-name> = <ns-prefix>?
:where() - CSS: Cascading Style Sheets
Web › CSS › :where
on github; see is-where.
...[ <pseudo-element-selector> <pseudo-class-selector>* ]* ]!<combinator> = '>' | '+' | '~' | [ '|' ]where <type-selector> = <wq-name> | <ns-prefix>?
... <id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector><pseudo-element-selector> = ':' <pseudo-class-selector><pseudo-class-selector> = ':' <ident-token> | ':' <function-token> <any-value> ')'where <wq-name> = <ns-prefix>?
...ass-selector> | <attribute-selector> | <pseudo-class-selector><pseudo-element-selector> = ':' <pseudo-class-selector><pseudo-class-selector> = ':' <ident-token> | ':' <function-token> <any-value> ')'where <wq-name> = <ns-prefix>?
@counter-style - CSS: Cascading Style Sheets
styles were added to this set of predefined styles over the years, this system proved too restrictive to fulfill the needs of worldwide typography.
... tuples must be specified in the descending order of their weights.
...on the value of this descriptor.
....
Using feature queries - CSS: Cascading Style Sheets
ns the media query @media rule; when you use feature queries, you will find they behave in a similar way to media queries.
... behave in a similar way to media queries.
...erence is that with a media query you are testing something about the environment in which the web page is running, whereas with feature queries you are testing browser support for css features.
...1 doesn't support feature queries or css grid — it would get the floated version anyway, which is then overwritten by browsers that do support grid.
OpenType font features guide - CSS: Cascading Style Sheets
values supplied.the example below is showing several different aspects of working with alternate characters.
...king with alternate characters.
...ting a value of normal resets all properties to their initial value.
...re code or supply a 1 following the code (for enabling that feature) or a 0 (zero) to disable it.
Universal selectors - CSS: Cascading Style Sheets
the css universal selector (*) matches elements of any type.
... the css universal selector (*) matches elements of any type.
... the css universal selector (*) matches elements of any type.
... <span class="warning">a red span</span> in a green paragraph.
Using CSS custom properties (variables) - CSS: Cascading Style Sheets
ed in one place, then referenced in multiple other places.
...uleset defines the scope that the custom property can be used in.
...html document: :root { --main-bg-color: brown; } however, this doesn't always have to be the case: you maybe have a good reason for limiting the scope of your custom properties.
... working with custom elements and shadow dom.
Value definition syntax - CSS: Cascading Style Sheets
a common syntax.
... are used throughout css, and are defined once for all values in the specification.
...n-terminal data types less common data types, called non-terminal data types, are also surrounded by '<' and '>'.
...o be omitted, at least one component value must not be omitted.
animation-timing-function - CSS: Cascading Style Sheets
the keyframe on which it is specified until the next keyframe specifying that property, or until the end of the animation if there is no subsequent keyframe specifying that property.
...includes pauses at both the 0% and 100% marks, effectively adding a step during the animation iteration.
...> = jump-start | jump-end | jump-none | jump-both | start | end examples cubic-bezier examples <div class="parent"> <div class="ease">ease</div> <div class="easein">ease-in</div> <div class="easeout">ease-out</div> <div class="easeinout">ease-in-out</div> <div class="linear">linear</div> <div class="cb">cubic-bezier(0.2,-2,0.8,2)</div> </div> .parent > div[class] { animation-name: changeme; animation-duration: 10s; animation-iteration-count: infinite; margin-bottom: 4px; } @keyframes changeme { 0% { min-width: 12em; width: 12em; background-color: black; border: 1px solid red; color: white; } 100% { width: 90vw; min-width: 24em; background-color: magenta; color: yellow; border: 1px solid orang...
...); } step examples <div class="parent"> <div class="jump-start">jump-start</div> <div class="jump-end">jump-end</div> <div class="jump-both">jump-both</div> <div class="jump-none">jump-none</div> <div class="start">start</div> <div class="end">end</div> <div class="step-start">step-start</div> <div class="step-end">step-end</div> </div> .parent > div[class] { animation-name: changeme; animation-duration: 10s; animation-iteration-count: infinite; margin-bottom: 4px; } @keyframes changeme { 0% { min-width: 12em; width: 12em; background-color: black; border: 1px solid red; color: white; } 100% { width: 90vw; min-width: 24em; background-color: magenta; color: yellow; border: 1px solid orang...
counter-increment - CSS: Cascading Style Sheets
ything: used to override less specific rules */ counter-increment: none; /* global values */ counter-increment: inherit; counter-increment: initial; counter-increment: unset; the counter-increment property is specified as either one of the following: a <custom-ident> naming the counter, followed optionally by an <integer>.
...used to override less specific rules */ counter-increment: none; /* global values */ counter-increment: inherit; counter-increment: initial; counter-increment: unset; the counter-increment property is specified as either one of the following: a <custom-ident> naming the counter, followed optionally by an <integer>.
...crement: inherit; counter-increment: initial; counter-increment: unset; the counter-increment property is specified as either one of the following: a <custom-ident> naming the counter, followed optionally by an <integer>.
... <integer> the value to add to the counter.
counter-reset - CSS: Cascading Style Sheets
/* cancel any reset that could have been set in less specific rules */ counter-reset: none; /* global values */ counter-reset: inherit; counter-reset: initial; counter-reset: unset; the counter-reset property is specified as either one of the following: a <custom-ident> naming the counter, followed optionally by an <integer>.
...el any reset that could have been set in less specific rules */ counter-reset: none; /* global values */ counter-reset: inherit; counter-reset: initial; counter-reset: unset; the counter-reset property is specified as either one of the following: a <custom-ident> naming the counter, followed optionally by an <integer>.
...values */ counter-reset: inherit; counter-reset: initial; counter-reset: unset; the counter-reset property is specified as either one of the following: a <custom-ident> naming the counter, followed optionally by an <integer>.
...t the counter to on each occurrence of the element.
float - CSS: Cascading Style Sheets
Web › CSS › float
block inline-flex flex inline-grid grid other unchanged note: if you're referring to this property from javascript as a member of the htmlelement.style object, modern browsers support float, but in older browsers you have to spell it as cssfloat, with internet explorer versions 8 and older using stylefloat.
... inline-grid grid other unchanged note: if you're referring to this property from javascript as a member of the htmlelement.style object, modern browsers support float, but in older browsers you have to spell it as cssfloat, with internet explorer versions 8 and older using stylefloat.
... other unchanged note: if you're referring to this property from javascript as a member of the htmlelement.style object, modern browsers support float, but in older browsers you have to spell it as cssfloat, with internet explorer versions 8 and older using stylefloat.
...ment.style object, modern browsers support float, but in older browsers you have to spell it as cssfloat, with internet explorer versions 8 and older using stylefloat.
transition-delay - CSS: Cascading Style Sheets
-webkit-transition-duration:2s; -webkit-transition-delay:0.5s; -webkit-transition-timing-function: linear; transition-property: width height background-color font-size left top color; transition-duration:2s; transition-delay:0.5s; transition-timing-function: linear; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var intervalid = window.setinterval(updatetransition, 7000); transition-delay: 1s <div class="parent"> <div class="box">lorem</div> </div> .parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20px; ...
...or; -webkit-transition-duration:2s; -webkit-transition-delay:1s; -webkit-transition-timing-function: linear; transition-property: width height background-color font-size left top color; transition-duration:2s; transition-delay:1s; transition-timing-function: linear; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var intervalid = window.setinterval(updatetransition, 7000); transition-delay: 2s <div class="parent"> <div class="box">lorem</div> </div> .parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20px; ...
...or; -webkit-transition-duration:2s; -webkit-transition-delay:2s; -webkit-transition-timing-function: linear; transition-property: width height background-color font-size left top color; transition-duration:2s; transition-delay:2s; transition-timing-function: linear; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var intervalid = window.setinterval(updatetransition, 7000); transition-delay: 4s <div class="parent"> <div class="box">lorem</div> </div> .parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20px; ...
...ebkit-transition-duration:2s; -webkit-transition-delay:4s; -webkit-transition-timing-function: ease-in-out; transition-property: width height background-color font-size left top color; transition-duration:2s; transition-delay:4s; transition-timing-function: ease-in-out; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var intervalid = window.setinterval(updatetransition, 7000); specifications specification status comment css transitionsthe definition of 'transition-delay' in that specification.
transition-duration - CSS: Cascading Style Sheets
t-transform color; -webkit-transition-duration:0.5s; -webkit-transition-timing-function: ease-in-out; transition-property: width height background-color font-size left top transform -webkit-transformv color; transition-duration:0.5s; transition-timing-function: ease-in-out; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var intervalid = window.setinterval(updatetransition, 7000); transition-duration: 1s <div class="parent"> <div class="box">lorem</div> </div> .parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20p...
...nsform transform color; -webkit-transition-duration:1s; -webkit-transition-timing-function: ease-in-out; transition-property: width height background-color font-size left top transform -webkit-transform color; transition-duration:1s; transition-timing-function: ease-in-out; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var intervalid = window.setinterval(updatetransition, 7000); transition-duration: 2s <div class="parent"> <div class="box">lorem</div> </div> .parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20p...
...webkit-transform color; -webkit-transition-duration:2s; -webkit-transition-timing-function: ease-in-out; transition-property: width height background-color font-size left top transform -webkit-transform color; transition-duration:2s; transition-timing-function: ease-in-out; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var intervalid = window.setinterval(updatetransition, 7000); transition-duration: 4s <div class="parent"> <div class="box">lorem</div> </div> .parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20p...
...webkit-transform color; -webkit-transition-duration:4s; -webkit-transition-timing-function: ease-in-out; transition-property: width height background-color font-size left top transform -webkit-transform color; transition-duration:4s; transition-timing-function: ease-in-out; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var intervalid = window.setinterval(updatetransition, 7000); specifications specification status comment css transitionsthe definition of 'transition-duration' in that specification.
transition - CSS: Cascading Style Sheets
u to define the transition between two states of an element.
...different states may be defined using pseudo-classes like :hover or :active or dynamically set using javascript.
...ive or dynamically set using javascript.
...and for the following css properties: transition-delay transition-duration transition-property transition-timing-function syntax /* apply to 1 property */ /* property name | duration */ transition: margin-right 4s; /* property name | duration | delay */ transition: margin-right 4s 1s; /* property name | duration | timing function */ transition: margin-right 4s ease-in-out; /* property name | duration | timing function | delay */ transition: margin-right 4s ease-in-out 1s; /* apply to 2 properties */ transition: margin-right 4s, color 1s; /* apply to all changed properties */ transition: all 0.5s ease-out; /* global values */ transition: inherit; transition: initial; transition: unset; the transition property is specified as one or more single-property transitions, separated by...
Audio and Video Delivery - Developer guides
hensive fallback using flash.
... is one way.
...t to your audio or video source*.
...dio or video source*.
DOM onevent handlers - Developer guides
how the latter work.
...so forth) or non-interactive (such as the base <body> element).
...pagation() on the event object itself.
...attribute("onclick", 'anchoronclick(event)'); log(`changed the property to: <code> ${el.onclick.tostring()} </code>`); log(`now even the html attribute has changed: <code> ${el.getattribute("onclick")} </code><br>`); result for historical reasons, some attributes/properties on the <body> and <frameset> elements instead set event handlers on their parent window object.
Making content editable - Developer guides
date it to use the new behavior.
...e="text/css"> .intlink { cursor: pointer; } img.intlink { border: 0; } #toolbar1 select { font-size:10px; } #textbox { width: 540px; height: 200px; border: 1px #000000 solid; padding: 12px; overflow: scroll; } #textbox #sourcetext { padding: 0; margin: 0; min-width: 498px; min-height: 200px; } #editmode label { cursor: pointer; } </style> </head> <body onload="initdoc();"> <form name="compform" method="post" action="sample.php" onsubmit="if(validatemode()){this.mydoc.value=odoc.innerhtml;return true;}return false;"> <input type="hidden" name="mydoc"> <div id="toolbar1"> <select onchange="formatdoc('formatblock',this[this.selectedindex].value);this.selectedindex=0;"> <option selected>- formatting -</option> <option value="h1">title 1 &lt;h1&gt;</option> <option value="h2">titl...
...&lt;h1&gt;</option> <option value="h2">title 2 &lt;h2&gt;</option> <option value="h3">title 3 &lt;h3&gt;</option> <option value="h4">title 4 &lt;h4&gt;</option> <option value="h5">title 5 &lt;h5&gt;</option> <option value="h6">subtitle &lt;h6&gt;</option> <option value="p">paragraph &lt;p&gt;</option> <option value="pre">preformatted &lt;pre&gt;</option> </select> <select onchange="formatdoc('fontname',this[this.selectedindex].value);this.selectedindex=0;"> <option class="heading" selected>- font -</option> <option>arial</option> <option>arial black</option> <option>courier new</option> <option>times new roman</option> </select> <select onchange="formatdoc('fontsize',this[this.selectedindex].value);this.selectedindex=0;"> <option class="heading" selected>- size -</option> <option value="1">ver...
...hvbups+/fvrvv8/f///////////////////////////////////////////////yh5baeaab8alaaaaaawabyaaawn4ceozgmeakqubgsuspvbsyfjjvds6njlb0khr4akbcmfscgbqaocwjf5gwquvyksfbwze+awibv0ghfog2ewidchjwriqo9e2fx4xd5r+b0ddaenbxbhbhn2dgwdaqfjjyvhcqyrfgoidgiqjawtcqmriwwmfgicnvcaaamoak+blaortluyt7i5uiuhads=" /> </div> <div id="textbox" contenteditable="true"><p>lorem ipsum</p></div> <p id="editmode"><input type="checkbox" name="switchmode" id="switchbox" onchange="setdocmode(this.checked);" /> <label for="switchbox">show html</label></p> <p><input type="submit" value="send" /></p> </form> </body> </html> note: if you want to see how to standardize the creation and the insertion of your editor in your page, please see our more complete rich-text editor example.
Parsing and serializing XML - Developer guides
g an xml document using one of the following approaches to create an xml document (which is an instance of document.
...ent (which is an instance of document.
...his example converts an xml fragment in a string into a dom tree using a domparser: var smystring = '<a id="a"><b id="b">hey!</b></a>'; var oparser = new domparser(); var odom = oparser.parsefromstring(smystring, "application/xml"); // print the name of the root element or error message console.log(odom.documentelement.nodename == "parsererror" ?
...nt or error message console.log(odom.documentelement.nodename == "parsererror" ?
<em>: The Emphasis element - HTML: Hypertext Markup Language
Web › HTML › Element › em
e sentence itself.
...lt, the visual result is the same.
...for <em> could be: "just do it already!", or: "we had to do something about it".
...t do it already!", or: "we had to do something about it".
<table>: The Table element - HTML: Hypertext Markup Language
Web › HTML › Element › table
xt that summarizes the content of the table.
...content of the table.
...ows and columns the scope attribute on header elements is redundant in simple contexts, because scope is inferred.
... in simple contexts, because scope is inferred.
<tbody>: The Table Body element - HTML: Hypertext Markup Language
Web › HTML › Element › tbody
basic example in this relatively simple example, we create a table listing information about a group of students with a <thead> and a <tbody>, with a number of rows in the body.
... let's take the previous example, add some more students to the list, and update the table so that instead of listing each student's major on every row, the students are grouped by major, with heading rows for each major.
...trophysics</th> </tr> <tr> <td>4100332</td> <td>petrov, alexandra</td> </tr> <tr> <td>8892377</td> <td>toyota, hiroko</td> </tr> </tbody> </table> notice that each major is placed in a separate <tbody> block, the first row of which contains a single <th> element with a colspan attribute that spans the entire width of the table.
.../tbody> </table> notice that each major is placed in a separate <tbody> block, the first row of which contains a single <th> element with a colspan attribute that spans the entire width of the table.
<var>: The Variable element - HTML: Hypertext Markup Language
Web › HTML › Element › var
the html variable element (<var>) represents the name of a variable in a mathematical expression or a programming context.
...s, you should either use a <span> with appropriate css or, an appropriate semantic element among the following: <em> <i> <q> default style most browsers apply font-style to "italic" when rendering <var>.
...css, like this: var { font: bold 15px "courier", "courier new", monospace; } examples basic example here's a simple example, using <var> to denote variable names in a mathematical equation.
...ample, variable names are rendered using bold courier if it's available, otherwise it falls back to the default monospace font.
class - HTML: Hypertext Markup Language
the class global attribute is a space-separated list of the case-sensitive classes of the element.
...ccess specific elements via the class selectors or functions like the dom method document.getelementsbyclassname.
...ctions like the dom method document.getelementsbyclassname.
...active-examples and send us a pull request.
Access-Control-Request-Headers - HTTP
the access-control-request-headers request header is used by browsers when issuing a preflight request, to let the server know which http headers the client might send when the actual request is made.
... the access-control-request-headers request header is used by browsers when issuing a preflight request, to let the server know which http headers the client might send when the actual request is made.
... the access-control-request-headers request header is used by browsers when issuing a preflight request, to let the server know which http headers the client might send when the actual request is made.
... the access-control-request-headers request header is used by browsers when issuing a preflight request, to let the server know which http headers the client might send when the actual request is made.
Content-Type - HTTP
ntent type of the returned content actually is.
...message.
...ashes and the final boundary has two dashes appended at the end.
... <input type="file" name="myfile"> <button type="submit">submit</button> </form> the request looks something like this (less interesting headers are omitted here): post /foo http/1.1 content-length: 68137 content-type: multipart/form-data; boundary=---------------------------974767299852498929531610575 -----------------------------974767299852498929531610575 content-disposition: form-data; name="description" some text -----------------------------974767299852498929531610575 content-disposition: form-data; name="myfile"; filename="foo.txt" content-type: text/plain (content of the uploaded file foo.txt) -----------------------------974767299852498929531610575-- specifications specification title rfc 7233, section 4.1: content-type in multipart hypertext tr...
Date - HTTP
Web › HTTP › Headers › Date
the date general http header contains the date and time at which the message was originated.
... the date general http header contains the date and time at which the message was originated.
...p header contains the date and time at which the message was originated.
...e that date is listed in the forbidden header names in the fetch spec - so this code will not send date header: fetch('https://httpbin.org/get', { 'headers': { 'date': (new date()).toutcstring() } }) header type general header forbidden header name yes syntax date: <day-name>, <day> <month> <year> <hour>:<minute>:<second> gmt directives <day-name> one of "mon", "tue", "wed", "thu", "fri", "sat", or "sun" (case-sensitive).
TE - HTTP
Web › HTTP › Headers › TE
he transfer-encoding response header for more details on transfer encodings.
...n a chunked transfer coding using the "trailers" value.
...ype request header forbidden header name yes syntax te: compress te: deflate te: gzip te: trailers // multiple directives, weighted with the quality value syntax: te: trailers, deflate;q=0.5 directives compress a format using the lempel-ziv-welch (lzw) algorithm is accepted as a transfer coding name.
...te: trailers // multiple directives, weighted with the quality value syntax: te: trailers, deflate;q=0.5 directives compress a format using the lempel-ziv-welch (lzw) algorithm is accepted as a transfer coding name.
Upgrade - HTTP
Web › HTTP › Headers › Upgrade
lient/server connection to a different protocol (over the same transport protocol).
...erver may also send the header as part of a 426 upgrade required response, to indicate that the server won't perform the request using the current protocol, but might do so if the protocol is changed.
... protocol_name[/protocol_version] notes: the connection header with type upgrade must always be sent with the upgrade header (as shown above).
... with type upgrade must always be sent with the upgrade header (as shown above).
Protocol upgrade mechanism - HTTP
websocket extensions to ask the server to use.
... one that is supported by the server will be selected and returned by the server in a sec-websocket-protocol header included in the response.
...ocol header included in the response.
...nse.
Inheritance and the prototype chain - JavaScript
the prototype chain inheriting properties javascript objects are dynamic "bags" of properties (referred to as own properties).
...creates a property 'a' on p console.log(p.m()); // 5 // when p.m is called, 'this' refers to p.
...osomeinstancing.foo: bar dosomething.prop: undefined dosomething.foo: undefined dosomething.prototype.prop: undefined dosomething.prototype.foo: bar different ways to create objects and the resulting prototype chain objects created with syntax constructs var o = {a: 1}; // the newly created object o has object.prototype as its [[prototype]] // o has no own property named 'hasownproperty' // hasownproperty is an own property of object.prototype.
... extending a built-in prototype is to backport the features of newer javascript engines, like array.foreach.
SyntaxError: identifier starts immediately after numeric literal - JavaScript
immediately after numeric literal" occurs when an identifier started with a digit.
... numeric literal (firefox) syntaxerror: unexpected number (chrome) error type syntaxerror what went wrong?
...ted number (chrome) error type syntaxerror what went wrong?
...ariable names starting with numeric literals variable names can't start with numbers in javascript.
SyntaxError: JSON.parse: bad parsing - JavaScript
digits after exponent indicator syntaxerror: json.parse: missing digits after exponent sign syntaxerror: json.parse: exponent part is missing a number syntaxerror: json.parse: unexpected end of data syntaxerror: json.parse: unexpected keyword syntaxerror: json.parse: unexpected character syntaxerror: json.parse: end of data while reading object contents syntaxerror: json.parse: expected property name or '}' syntaxerror: json.parse: end of data when ',' or ']' was expected syntaxerror: json.parse: expected ',' or ']' after array element syntaxerror: json.parse: end of data when property name was expected syntaxerror: json.parse: expected double-quoted property name syntaxerror: json.parse: end of data after property name when ':' was expected syntaxerror: json.parse: expected ':' after propert...
...r '}' syntaxerror: json.parse: end of data when ',' or ']' was expected syntaxerror: json.parse: expected ',' or ']' after array element syntaxerror: json.parse: end of data when property name was expected syntaxerror: json.parse: expected double-quoted property name syntaxerror: json.parse: end of data after property name when ':' was expected syntaxerror: json.parse: expected ':' after property name in object syntaxerror: json.parse: end of data after property value in object syntaxerror: json.parse: expected ',' or '}' after property value in object syntaxerror: json.parse: expected ',' or '}' after property-value pair in object literal syntaxerror: json.parse: property names must be double-quoted strings syntaxerror: json.parse: expected property name or '}' syntaxerror: json.parse: unexpe...
...ror if incorrect syntax was encountered.
...arse('{"foo": 1,}'); // syntaxerror json.parse: unexpected character // at line 1 column 14 of the json data omit the trailing commas to parse the json correctly: json.parse('[1, 2, 3, 4]'); json.parse('{"foo": 1}'); property names must be double-quoted strings you cannot use single-quotes around properties, like 'foo'.
TypeError: "x" is read-only - JavaScript
r object property that was assigned to is a read-only property.
...ript.
...athematical constant.
...l constant.
TypeError: variable "x" redeclares argument - JavaScript
the javascript strict mode-only exception "variable redeclares argument" occurs when the same variable name occurs as a function parameter and is then redeclared using a var assignment in a function body again.
... the javascript strict mode-only exception "variable redeclares argument" occurs when the same variable name occurs as a function parameter and is then redeclared using a var assignment in a function body again.
... this error occurs as a warning in strict mode code only.
...e only.
Arrow function expressions - JavaScript
gh without its own bindings to the this, arguments, super, or new.target keywords.
...tatement in an arrow function is `return`, we can remove `return` and remove // the surrounding curly brackets elements.map(element => element.length); // [8, 6, 7, 9] // in this case, because we only need the length property, we can use destructuring parameter: // notice that the `length` corresponds to the property we want to get whereas the // obviously non-special `lengthfoobarx` is just the name of a variable which can be changed // to any valid variable name you want elements.map(({ length: lengthfoobarx }) => lengthfoobarx); // [8, 6, 7, 9] // this destructuring parameter assignment can also be written as seen below.
...ously non-special `lengthfoobarx` is just the name of a variable which can be changed // to any valid variable name you want elements.map(({ length: lengthfoobarx }) => lengthfoobarx); // [8, 6, 7, 9] // this destructuring parameter assignment can also be written as seen below.
..." var func = (x, y) => { return x + y; }; // with block body, explicit "return" needed returning object literals keep in mind that returning object literals using the concise body syntax params => {object:literal} will not work as expected.
Default parameters - JavaScript
default function parameters allow named parameters to be initialized with default values if no value or undefined is passed.
... default function parameters allow named parameters to be initialized with default values if no value or undefined is passed.
...s and variables: function callsomething(thing = something()) { return thing } let numberoftimescalled = 0 function something() { numberoftimescalled += 1 return numberoftimescalled } callsomething() // 1 callsomething() // 2 earlier parameters are available to later default parameters parameters defined earlier (to the left) are available to later default parameters: function greet(name, greeting, message = greeting + ' ' + name) { return [name, greeting, message] } greet('david', 'hi') // ["david", "hi", "hi david"] greet('david', 'hi', 'happy birthday!') // ["david", "hi", "happy birthday!"] this functionality can be approximated like this, which demonstrates how many edge cases are handled: function go() { return ':p' } function withdefaults(a, b...
...ntifiers within the parameter list.
AggregateError - JavaScript
sents an error when several errors need to be wrapped in a single error.
...or when several errors need to be wrapped in a single error.
...perties aggregateerror.prototype.message error message, defaults to "".
...ises rejected" console.log(e.name); // "aggregateerror" console.log(e.errors); // [ error: "some error" ] }); creating an aggregateerror try { throw new aggregateerror([ new error("some error"), ], 'hello'); } catch (e) { console.log(e instanceof aggregateerror); // true console.log(e.message); // "hello" console.log(e.name); // "aggregateerror" console.log(e.errors); // [ error: "some error" ] } specifications specification promise.anythe definition of 'aggregateerror' in that specification.
Array - JavaScript
ust use integers.
... the first element' console.log(arr[1]) // logs 'this is the second element' console.log(arr[arr.length - 1]) // logs 'this is the last element' array elements are object properties in the same way that tostring is a property (to be specific, however, tostring() is a method).
... element of an array as follows throws a syntax error because the property name is not valid: console.log(arr.0) // a syntax error there is nothing special about javascript arrays and the properties that cause this.
...rom an array-like or iterable object.
Error() constructor - JavaScript
the error constructor creates an error object.
... the error constructor creates an error object.
... the error constructor creates an error object.
... the error constructor creates an error object.
Function() constructor - JavaScript
constructor creates functions which execute in the global scope only.
...lobal scope only.
...ents comprising the function definition.
...arguments with the function constructor the following code creates a function object that takes two arguments.
Function.prototype.bind() - JavaScript
(proper bound functions have none.) the partial implementation creates bound functions whose length property does not agree with that mandated by ecma-262: it creates functions with length of 0.
...entation creates bound functions whose length property does not agree with that mandated by ecma-262: it creates functions with length of 0.
...ons whose length property does not agree with that mandated by ecma-262: it creates functions with length of 0.
...ed by ecma-262: it creates functions with length of 0.
Function - JavaScript
e properties function.arguments an array corresponding to the arguments passed to a function.
...nction.arguments an array corresponding to the arguments passed to a function.
...rty of function.
...ction.
Intl.Locale.prototype.maximize() - JavaScript
ts the most likely values for the language, script, and region of the locale based on existing values.
...lues.
...dentifier: language, script, and region subtags.
...locale("fr", {hourcycle: "h24", calendar: "gregory"}); console.log(mylocale.basename); // prints "fr" console.log(mylocale.tostring()); // prints "fr-u-ca-gregory-hc-h24" let mylocmaximized = mylocale.maximize(); // prints "fr-latn-fr".
Intl - JavaScript
the intl object is the namespace for the ecmascript internationalization api, which provides language sensitive string comparison, number formatting, and date and time formatting.
...ccess to several constructors as well as functionality common to the internationalization constructors and other language sensitive functions.
...r language sensitive functions.
...l.numberformat() constructor for objects that enable language-sensitive number formatting.
Reflect.construct() - JavaScript
er of arguments.
...using the spread syntax combined with the new operator.) let obj = new foo(...args) let obj = reflect.construct(foo, args) reflect.construct() vs object.create() prior to the introduction of reflect, objects could be constructed using an arbitrary combination of constructor and prototype by using object.create().
... constructed using an arbitrary combination of constructor and prototype by using object.create().
...ombination of constructor and prototype by using object.create().
RegExp - JavaScript
a new regexp from the arguments is created instead.
...p from the arguments is created instead.
...en string with new substring.
...x.exec(text) console.log(match[0]) // logs 'Образец' console.log(regex.lastindex) // logs '7' let match2 = regex.exec(text) console.log(match2[0]) // logs 'на' [did not log 'text'] console.log(regex.lastindex) // logs '15' // and so on the unicode property escapes feature introduces a solution, by allowing for a statement as simple as \p{scx=cyrl}.
Conditional (ternary) operator - JavaScript
y string (""), and undefined.
...fined.
...e result of the conditional expression will be the result of executing the expression expriffalse.
...ession will be the result of executing the expression expriffalse.
super - JavaScript
alone and must be used before the this keyword is used.
...lso be used to call functions on a parent object.
...ect.
...s rectangle { constructor(length) { this.height; // referenceerror, super needs to be called first!
async function - JavaScript
d behavior to be written in a cleaner style, avoiding the need to explicitly configure promise chains.
...licitly configure promise chains.
...se chains.
...functions may also be defined as expressions.
function* - JavaScript
n, which returns a generator object.
...s interactive example is stored in a github repository.
...le is stored in a github repository.
...pository.
MathML attribute reference - MathML
es: the mathml <mstyle> and <math> elements accept all attributes of all mathml presentation elements.
... <mlongdiv> controls the style of the long division layout.
...ded> the amount of space before the operator (see length for values and units).
...t <mpadded> sets the vertical position of the child content.
<mn> - MathML
Web › MathML › Element › mn
s also allowed to have arbitrary text in it which is actually a numeric quantity, for example "eleven".
...tity, for example "eleven".
...r.
... deprecated values are: small, normal and big.
<mo> - MathML
Web › MathML › Element › mo
erlink to a specified uri.
...e drawn larger than normal when displaystyle="true" is set.
... you can use #rgb, #rrggbb and html color names.
...deprecated values are: small, normal and big.
<ms> - MathML
Web › MathML › Element › ms
ibutes class, id, style provided for use with stylesheets.
...t direction.
...u can use #rgb, #rrggbb and html color names.
...recated values are: small, normal and big.
<mtext> - MathML
Web › MathML › Element › mtext
, such as comments or annotations.
... use <mi> and <mo> instead.
...u can use #rgb, #rrggbb and html color names.
...recated values are: small, normal and big.
Media container formats (file types) - Web media technologies
ime type and the .mp3 extension, even though their containers are just mpeg.
...sion, even though their containers are just mpeg.
... yes vp9 yes audio codecs supported by ogg codec browser support chrome edge firefox safari flac yes opus yes vorbis yes quicktime the quicktime file format (qtff, qt, or mov) was created by apple for use by its media framework of the same name.
... aac no alaw 2:1 no apple lossless (alac) no he-aac no mpeg-1 audio layer iii (mp3) no microsoft adpcm no µ-law 2:1 (u-law) no wave (wav) the waveform audio file format (wave), usually referred to simply as wav due to its filename extension being .wav, is a format developed by microsoft and ibm to store audio bitstream data.
end - SVG: Scalable Vector Graphics
Web › SVG › Attribute › end
syntax defined in iso 8601.
...wbox="0 0 120 120" xmlns="http://www.w3.org/2000/svg" version="1.1"> <!-- animated rectangles --> <rect x="10" y="35" height="15" width="0"> <animate attributetype="xml" attributename="width" to="100" begin="0s" end="8s" fill="freeze" /> </rect> <rect x="10" y="60" height="15" width="0"> <animate attributetype="xml" attributename="width" to="75" begin="0s" end="6s" fill="freeze" /> </rect> <rect x="10" y="85" height="15" width="0"> <animate attributetype="xml" attributename="width" to="50" begin="0s" end="4s" fill="freeze" /> </rect> <!-- grid --> <text x="10" y="20" text-anchor="middle">0s</text> <line x1="10" y1="25" x2...
...dth=".5" /> <line x1="10" y1="105" x2="110" y2="105" stroke="grey" stroke-width=".5" /> </svg> event example <svg width="120" height="120" viewbox="0 0 120 120" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- animated rectangle --> <rect x="10" y="35" height="15" width="0"> <animate attributetype="xml" attributename="width" from="0" to="100" begin="0s" end="endbutton.click" dur="8s" repeatcount="indefinite" fill="freeze" /> </rect> <!-- trigger --> <rect id="endbutton" style="cursor:pointer;" x="19.5" y="62.5" rx="5" height="25" width="80" fill="#efefef" stroke="black" stroke-width="1" /> <text x="60" y="80" text-anchor="middle" ...
...=".5" /> <line x1="10" y1="55" x2="110" y2="55" stroke="grey" stroke-width=".5" /> </svg> accesskey example <svg width="120" height="120" viewbox="0 0 120 120" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- animated rectangles --> <rect x="10" y="35" height="15" width="0"> <animate attributetype="xml" attributename="width" from="0" to="100" begin="0s" end="accesskey(e)" dur="8s" repeatcount="indefinite" fill="freeze" /> </rect> <!-- trigger --> <text x="60" y="80" text-anchor="middle" style="pointer-events:none;">hit the "s" key</text> <!-- grid --> <text x="10" y="20" text-anchor="middle">0s</text> <line x1="10" y1="25" x2="10" y2="55" s...
SVG Attribute reference - SVG: Scalable Vector Graphics
Web › SVG › Attribute
t specify details about exactly how the element should be handled or rendered.
...useconstant direction display divisor dominant-baseline dur dx dy e edgemode elevation enable-background end exponent externalresourcesrequired f fill fill-opacity fill-rule filter filterres filterunits flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight format from fr fx fy g g1 g2 glyph-name glyph-orientation-horizontal glyph-orientation-vertical glyphref gradienttransform gradientunits h hanging height href hreflang horiz-adv-x horiz-origin-x i id ideographic image-rendering in in2 intercept k k k1 k2 k3 k4 kernelmatrix kernelunitlength kerning keypoints keysplines keytimes l lang lengthadjust letter-spacing lighting-color limitingcon...
...ographic image-rendering in in2 intercept k k k1 k2 k3 k4 kernelmatrix kernelunitlength kerning keypoints keysplines keytimes l lang lengthadjust letter-spacing lighting-color limitingconeangle local m marker-end marker-mid marker-start markerheight markerunits markerwidth mask maskcontentunits maskunits mathematical max media method min mode n name numoctaves o offset opacity operator order orient orientation origin overflow overline-position overline-thickness p panose-1 paint-order path pathlength patterncontentunits patterntransform patternunits ping pointer-events points pointsatx pointsaty pointsatz preservealpha preserveaspectratio primitiveunits r r radius referrerpolicy refx refy rel ren...
...t-anchor, text-decoration, text-rendering, transform, transform-origin, unicode-bidi, vector-effect, visibility, word-spacing, writing-mode filters attributes filter primitive attributes height, result, width, x, y transfer function attributes type, tablevalues, slope, intercept, amplitude, exponent, offset animation attributes animation attribute target attributes attributetype, attributename animation timing attributes begin, dur, end, min, max, restart, repeatcount, repeatdur, fill animation value attributes calcmode, values, keytimes, keysplines, from, to, by, autoreverse, accelerate, decelerate animation addition attributes additive, accumulate event attributes animation event attributes onbegin, onend, onrepeat document event attributes onabort, onerror, onresize, onsc...
SVG animation with SMIL - SVG: Scalable Vector Graphics
mate color attributes follow a motion path this is done adding an svg element like <animate> inside the svg element to animate.
... attributes follow a motion path this is done adding an svg element like <animate> inside the svg element to animate.
...xample, write '5s' for 5 seconds).
... and x and y are absolute positions.
Scripting - SVG: Scalable Vector Graphics
Web › SVG › Scripting
break; } } } inter-document scripting: referencing embedded svg when using svg within html, adobe's svg viewer 3.0 automatically includes a window property called svgdocument that points to the svg document.
...ment is presented in an <object> element), like this: var svgdoc = document.getelementbyid("iframe_element").contentdocument; in addition, the <iframe>, <embed>, and <object> elements offer a method, getsvgdocument(), which returns the xmldocument representing the element's embedded svg or null if the element doesn't represent an svg document.
...referring to an svgdocument interface.
...interface.
Getting started - SVG: Scalable Vector Graphics
a doctype declaration as known from (x)html should be left off because dtd based svg validation leads to more problems than it solves before svg 2, to identify the version of the svg for other types of validation the version and baseprofile attributes should always be used instead.
... left off because dtd based svg validation leads to more problems than it solves before svg 2, to identify the version of the svg for other types of validation the version and baseprofile attributes should always be used instead.
...ed into the html dom.
....
SVG fonts - SVG: Scalable Vector Graphics
w an example declaration (the one from the specification), and explain the details.
...example declaration (the one from the specification), and explain the details.
... the same purpose as the equivalent descriptors in css.
...uctions for the font layout engine, for example, how much of the glyphs' overall heights are ascenders.
Insecure passwords - Web security
t is trivial to steal user information (such as their login credentials).
...ay save which news articles a user wants to go back to and read, but not save any other data about a user.
... the news site may be less motivated to secure their site and their user credentials.
...ly, password reuse is a big problem.
Subresource Integrity - Web security
speaking, a cryptographic digest formed by applying a particular hash function to some input (for example, a script or stylesheet file).
...ut it’s common to use the shorthand "hash" to mean cryptographic digest, so that's what's used in this article.
...n such as this: cat filename.js | openssl dgst -sha384 -binary | openssl base64 -a or with shasum using a command invocation such as this: shasum -b -a 384 filename.js | awk '{ print $1 }' | xxd -r -p | base64 notes: the pipe-through-xxd step takes the hexadecimal output from shasum and converts it to binary.
...se64 -a or with shasum using a command invocation such as this: shasum -b -a 384 filename.js | awk '{ print $1 }' | xxd -r -p | base64 notes: the pipe-through-xxd step takes the hexadecimal output from shasum and converts it to binary.
unparsed-entity-url - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the unparsed-entity-url() function returns the uri of the unparsed entity with the given name.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the unparsed-entity-url() function returns the uri of the unparsed entity with the given name.
...ts, exslt functions, xpath functions, xpath axes the unparsed-entity-url() function returns the uri of the unparsed entity with the given name.
...path functions, xpath axes the unparsed-entity-url() function returns the uri of the unparsed entity with the given name.
<xsl:decimal-format> - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:decimal-format> element defines the characters and symbols that are to be used in converting numbers into strings using theformat-number( ) function.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:decimal-format> element defines the characters and symbols that are to be used in converting numbers into strings using theformat-number( ) function.
...t are to be used in converting numbers into strings using theformat-number( ) function.
...n converting numbers into strings using theformat-number( ) function.
<xsl:processing-instruction> - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:processing-instruction> element writes a processing instruction to the output document.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:processing-instruction> element writes a processing instruction to the output document.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:processing-instruction> element writes a processing instruction to the output document.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:processing-instruction> element writes a processing instruction to the output document.
<xsl:variable> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › variable
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:variable> element declares a global or local variable in a stylesheet and gives it a value.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:variable> element declares a global or local variable in a stylesheet and gives it a value.
...exslt functions, xpath functions, xpath axes the <xsl:variable> element declares a global or local variable in a stylesheet and gives it a value.
...tions, xpath axes the <xsl:variable> element declares a global or local variable in a stylesheet and gives it a value.
<xsl:with-param> - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:with-param> element sets the value of a parameter to be passed into a template.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:with-param> element sets the value of a parameter to be passed into a template.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:with-param> element sets the value of a parameter to be passed into a template.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:with-param> element sets the value of a parameter to be passed into a template.
XSLT elements reference - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element
lso include what is known as an attribute value template.
...result in the following: <img src="/images/mygraphic.jpg"/> the element annotations that follow include a description, a syntax listing, a list of required and optional attributes, a description of type and position, its source in the w3c recommendation and an explanation of the degree of present gecko support.
...ack>, <xsl:import>, <xsl:namespace-alias>, <xsl:number>, <xsl:output>, <xsl:stylesheet>, <xsl:text> and <xsl:value-of> is fully migrated.
...ransform><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:element> <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-pa...
Transforming XML with XSLT - XSLT: Extensible Stylesheet Language Transformations
rol of appearance — fonts, colors, position, and so forth — gecko uses css.
...) xsl:attribute-set (supported) xsl:call-template (supported) xsl:choose (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 (parti...
...: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-param (supported) axes ancestor ancestor-or-self attribute child descendant descendant-or-self following following-sibling namespace (not supported) parent preceding preceding-sibling self functions boolean() (supported) ceiling() (supported) concat() (supported) contains() (supported) count() (supported) current() (supported) document() (supported) element-available() (supported) false() (supported) floor() (supported) format-number() (supported) function-available() (supported) generate-id() (suppor...
...ed) ceiling() (supported) concat() (supported) contains() (supported) count() (supported) current() (supported) document() (supported) element-available() (supported) false() (supported) floor() (supported) format-number() (supported) function-available() (supported) generate-id() (supported) id() (partially supported) key() (supported) lang() (supported) last() (supported) local-name() (supported) name() (supported) namespace-uri() (supported) normalize-space() (supported) not() (supported) number() (supported) position() (supported) round() (supported) starts-with() (supported) string() (supported) string-length() (supported) substring() (supported) substring-after() (supported) substring-before() (supported) sum() (supported) system-property() (supported) tr...
Using the Mozilla JavaScript interface to XSL Transformations - XSLT: Extensible Stylesheet Language Transformations
ll not produce an html dom objects if only the toplevel element of the result is <html> as xsltprocessor.transformtofragment() is rarely used to create this element.
...html> as xsltprocessor.transformtofragment() is rarely used to create this element.
...mespace, however this is not very well tested so it might not work in all situations.
...ot very well tested so it might not work in all situations.
Compiling a New C/C++ Module to WebAssembly - WebAssembly
hello.c file, and run the following command: emcc hello.c -s wasm=1 -o hello.html the options we’ve passed in with the command are as follows: -s wasm=1 — specifies that we want wasm output.
... argc, char ** argv) { printf("hello world\n"); } #ifdef __cplusplus extern "c" { #endif void emscripten_keepalive myfunction(int argc, char ** argv) { printf("myfunction called\n"); } #ifdef __cplusplus } #endif by default, emscripten-generated code always just calls the main() function, and other functions are eliminated as dead code.
...ode always just calls the main() function, and other functions are eliminated as dead code.
...on> element as shown below, just above the first opening <script type='text/javascript'> tag.
Content Processes - Archive of obsolete content
content scripts differ from scripts that are loaded by the page itself in that they are provided with a messaging api that can be used to send messages back to the add-on script.
...istener for an event.
...nction and the corresponding listener is referred to as a pipe.
Working with Events - Archive of obsolete content
ready", function () { console.log("tab loaded"); }); it is not possible to enumerate the set of listeners for a given event.
...ion handleclick(state) { panel.show({ position: button }); } this wildcard feature does not yet work for the tabs or windows modules.
...k(state) { panel.show({ position: button }); } this wildcard feature does not yet work for the tabs or windows modules.
page-worker - Archive of obsolete content
is: pageworker = require("sdk/page-worker").page({ contentscript: "console.log(document.body.innerhtml);", contenturl: "./myfile.html" }); you can load a new page by setting the page worker's contenturl property.
...load the script.
...t.emit function receive events from the content script using the port.on function see the guide to communicating using port for details.
/loader - Archive of obsolete content
e load() function takes loader and loads the given module into it: let loader = loader(options); let module = module('foo/bar', 'resource:///modules/foo/bar.js'); load(loader, module); sandbox() the sandbox() function is a utility function for creating js sandboxes.
...:memory.
...mapping); // => resource://my-addon/main.js resolveuri('devtools/gcli', mapping); // => resource:///modules/devtools/gcli.js resolveuri('sdk/core/promise', mapping); // => resource://gre/modules/commonjs/sdk/core/promise.js override() this function is used to create a fresh object that contains own properties of two arguments it takes.
core/promise - Archive of obsolete content
hed(); }); var finished = 0; function somethingfinished() { if (++finished === 3) ui.show(tweets, answers, checkins); } this also makes error handling quite an adventure.
...there may be cases where you will want to provide more than just then method on your promises.
...hen method on your promises.
platform/xpcom - Archive of obsolete content
get direct access to the components object, and access xpcom objects from there.
...ng unregister() function to unregister them, whether or not you have disabled automatic unregistration: xpcom.unregister(factory); you can find out whether a factory or service has been registered by using the isregistered() function: if (xpcom.isregistered(factory)) xpcom.unregister(factory); globals constructors factory(options) parameters options : object required options: name type component constructor constructor for the component this factory creates.
...r(factory); globals constructors factory(options) parameters options : object required options: name type component constructor constructor for the component this factory creates.
system/unload - Archive of obsolete content
experimental register callbacks that are called when a module is unloaded.
... with ensure(), you can call its destructor method yourself, you can let it happen for you, or you can do both.
...call its destructor method yourself, you can let it happen for you, or you can do both.
test/assert - Archive of obsolete content
ct", equivalence is determined by ==.
...pe, pass a constructor function: the exception thrown must be an instance of the object returned by that function.
..., pass a regular expression here: the message property of the exception thrown must match the regular expression for example, suppose we define two different custom exceptions: function myerror(message) { this.name = "myerror"; this.message = message || "default message"; } myerror.prototype = new error(); myerror.prototype.constructor = myerror; function anothererror(message) { this.name = "anothererror"; this.message = message || "default message"; console.log(this.message); } anothererror.prototype = new error(); anothererror.prototype.constructor = anothererror; we can check the type of exception by passing a function as the error argument: exports["test exception type 1 expected to pass"] = function(assert) { assert.throws(function() { throw new myerror("custom...
ui/button/toggle - Archive of obsolete content
ab'); this.state('tab', {checked: !checked}); } }); destroying buttons when you've finished with a button, destroy it by calling its destroy() method.
...ions.
...on calls the button's click() method.
util/collection - Archive of obsolete content
ke a set.
...he collection will have access to it.
...have access to it.
cfx to jpm - Archive of obsolete content
if you never did anything with ids when using cfx, then the value in your add-on's package.json will be something like "jid1-f3boogbjqje67a", and the corresponding id in the install.rdf will be "jid1-f3boogbjqje67a@jetpack".
...the add-on's entry point is the file that's executed when the add-on needs to initialize itself: for example, when firefox starts, or when the add-on's installed, enabled, or upgraded.
... instead of --profiledir and --overload-modules, use --profile and --overload.
Bootstrapped extensions - Archive of obsolete content
ing property files to localize your .js and .jsm files you have to use property files.
...ything.properties in the locale folder you must have folders for each of the languages you want to provide; each folder must be named a valid locale (ex: en-us).
...l tag for example: <html xmlns="http://www.w3.org/1999/xhtml"> if you have multiple dtd files read on here: using multiple dtds the bare minimum needed is: file: install.rdf file: chrome.manifest file: bootstrap.js folder: locale folder: valid_locale_here file: anything.dtd the chrome.manifest file must include a definition for content for example: content name_of_your_addon ./ the chrome.manifest file must also include a line pointing to the locale, just like in the above property section, if you had a folder named en-us in locale, the chrome.manifest file should contain: locale name_of_your_addon en-us locale/ here is an example add-on that opens an html page and a xul page on install: github :: l10n-xhtml-xul.
Embedding SVG - Archive of obsolete content
svg is an xml based makeup language and can be embedded into other markup languages, like xhtml and xul.
... svg is an xml based makeup language and can be embedded into other markup languages, like xhtml and xul.
..."http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <body> <p>hello</p> <svg:svg version="1.1" baseprofile="full" width="150" height="150"> <svg:rect x="10" y="10" width="100" height="100" fill="red"/> <svg:circle cx="50" cy="50" r="30" fill="blue"/> </svg:svg> <p>world</p> </body> </html> embedding into xul make sure you use the right namespace when embedding <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- xul and svg go here --> </window> example: <?xml version="1.0"?> <?xml-stylesheet href="chrome://global...
Adding sidebars - Archive of obsolete content
ld nodes at a time, depending on its selectedindex value.
...l page.
.../treeitem> </treechildren> </tree> the text in the rows of the tree is hardcoded because we wouldn't generally use text from locale files.
Adding windows and dialogs - Archive of obsolete content
rscreen", somevalue, returnvalue); // you can send as many extra parameters as you need.
...nfirm title", "would you like to continue?")) { // do something.
...he user closes and then reopens your window, all the controls are reset to their defaults, which may not be what you want.
Appendix F: Monitoring DOM changes - Archive of obsolete content
creation of <a> elements and adding event listeners to them as they are created, an event listener can be added to the root <html> element, and when the event fires, the event.target and its parents can be searched for a matching element.
... doc || document; let style = doc.createelementns(xhtml, 'style'); style.setattribute('type', 'text/css'); let preamble = ' @-moz-keyframes ' + event + ' { \n\ from { clip: rect(1px, auto, auto, auto); } to { clip: rect(0px, auto, auto, auto); } \n\ }\n'; let properties = [ 'animation-duration: 0.0001s;', 'animation-name: ' + event + ' !important;' ]; properties = properties.map(function (prop) ' ' + watchnodes.namespace + prop) .join('\n'); doc.addeventlistener('animationstart', listener, false); function listener(event) { if (event.animationname == event) callback.call(this, event); } style.textc...
... content code // should make do without weak references.
cert_override.txt - Archive of obsolete content
f:ee:dd:cc:bb:aa:99:88:77:66:55:44:33:22:11:00 u aaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaa== fields fields are separated by a tab character.
...by a tab character.
...2 sha-512: oid.2.16.840.1.101.3.4.2.3 certificate fingerprint using previous hash algorithm one or more characters for override type: m : allow mismatches in the hostname u : allow untrusted certs (whether it's self signed cert or a missing or invalid issuer cert) t : allow errors in the validity time, for example, for expired or not yet valid certs certificate's serial number and the issuer name as a base64 encoded string ...
How Mozilla finds its configuration files - Archive of obsolete content
how mozilla finds its configuration files mozilla looks into the binary %userprofile%\application data\mozilla\registry.dat file for its "registry", which contains, amongst other information, a pointer to the directory where the profile is stored (located at common/profiles/profilename/directory.
..., which contains, amongst other information, a pointer to the directory where the profile is stored (located at common/profiles/profilename/directory.
...istry.xml file pointing to h:\mozilla an example of a prefs.js file (to put into the user's h:\mozilla directory).
Creating a hybrid CD - Archive of obsolete content
warning: the content of this article may be out of date.
...warning: the content of this article may be out of date.
... to be able to mount an image file to test it.
Downloading Nightly or Trunk Builds - Archive of obsolete content
ing 'platform' called 'gecko' or 'mozilla' that firefox uses).
...t there is a platform number for every firefox number, but they are not the same number.
...aunch it, and then go to the "about:buildconfig" page, by typing this into the location bar.
Style System Overview - Archive of obsolete content
istyleruleprocessor and nsistylesheet describe in c++ what a css stylesheet can do nsistylerule describes in c++ what a css style rule can do main implementations are for css, but we have other implementations in c++ that: do what css can't do do things faster than css would css style sheets at basic level, sheet is collection of rules other special things: @import, @media, @namespace, etc.
...atching is a structure of enumeration data that implementations use to determine more quickly which rules match.
...k dependent bits on the path up to that rule node.
popChallengeResponse - Archive of obsolete content
-- subsequent challenge in popodeckeychallcontent (if omitted, -- then the owf used in the immediately preceding challenge is -- to be used).
...llenge in popodeckeychallcontent (if omitted, -- then the owf used in the immediately preceding challenge is -- to be used).
...tring -- the encryption (under the public key for which the cert.
Basics - Archive of obsolete content
note: this page documents the jetpack prototype, which is no longer under active development.
...rites a notification message to the console.
...tring bodythe messagestringfalse iconthe url of an .ico file.string jetpack.notifications.show("hello world");var mybody = " my first message body on jetpack";var myicon = "http://www.mozilla.com/favicon.ico";jetpack.notifications.show({title: "my first message on jetpack", body: mybody, icon: myicon}); class tabs in this class you can find information about the tabs in your firefox window.
Nanojit - Archive of obsolete content
o-invalid-offsetof -fno-rtti -include js-confdefs.h -i dist/include/ -i..
...et up the basic nanojit objects.
...objects.
Styling - Archive of obsolete content
prism allows for some client-side web application styling.
...e and it will be injected into the web application, regardless of the platform or os.
... possible to create platform-specific styles.
Merging TraceMonkey Repo - Archive of obsolete content
ee a number of conflicts.
...solutions you've already performed.
...<<.
Running Tamarin acceptance tests - Archive of obsolete content
the tamarin acceptance tests can be used to verify your installation and or local changes that you have made to the source.
...ify your installation and or local changes that you have made to the source.
...b shell "ls /" is a good test to see if connected.
Tamarin Releases - Archive of obsolete content
this page tracks tamarin source code releases, past, present and future.
... this page tracks tamarin source code releases, past, present and future.
... this page tracks tamarin source code releases, past, present and future.
Venkman - Archive of obsolete content
venkman is the code name for mozilla's javascript debugger.
... venkman is the code name for mozilla's javascript debugger.
...orm front end, eventually producing netscape javascript debugger 1.0 and 1.1.
execute - Archive of obsolete content
summary launches a file inside the install archive.
...oolean value that specifies whether the installation should wait for the execution of the file to finish before it resumes.
...ion should wait for the execution of the file to finish before it resumes.
XTech 2005 Presentations - Archive of obsolete content
web 1.6: a rope of sand - opening keynote, mike shaver mozilla e4x - brendan eich "ecmascript for xml" (ecma-357), a new standard for writing and processing xml directly in javascript (ecma-262, iso-16262).
... web 1.6: a rope of sand - opening keynote, mike shaver mozilla e4x - brendan eich "ecmascript for xml" (ecma-357), a new standard for writing and processing xml directly in javascript (ecma-262, iso-16262).
...tml element.
droppedLinkHandler - Archive of obsolete content
« xul reference home droppedlinkhandler type: function this function is called when links are dropped to the browser element, with the following arguments.
... « xul reference home droppedlinkhandler type: function this function is called when links are dropped to the browser element, with the following arguments.
... « xul reference home droppedlinkhandler type: function this function is called when links are dropped to the browser element, with the following arguments.
XUL Events - Archive of obsolete content
the event handler that are valid for most xul elements.
...that are valid for most xul elements.
...: onunload mutation dom events event description domattrmodified this event is sent to an element when one of its attributes is modified.
getElementsByAttributeNS - Archive of obsolete content
« xul reference home getelementsbyattributens(ns, attrib, value ) return type: dom nodelist returns an array of all the child elements of the element that have the attribute namespace given by the first argument, the attribute name given by the second argument, and the value given by the third argument.
... « xul reference home getelementsbyattributens(ns, attrib, value ) return type: dom nodelist returns an array of all the child elements of the element that have the attribute namespace given by the first argument, the attribute name given by the second argument, and the value given by the third argument.
... « xul reference home getelementsbyattributens(ns, attrib, value ) return type: dom nodelist returns an array of all the child elements of the element that have the attribute namespace given by the first argument, the attribute name given by the second argument, and the value given by the third argument.
Floating Panels - Archive of obsolete content
ng panels a floating panel is used for secondary popups such as tool palettes and property inspector panels.
...loating panel is used for secondary popups such as tool palettes and property inspector panels.
...r secondary popups such as tool palettes and property inspector panels.
MenuButtons - Archive of obsolete content
e following example, pressing the 'view' button will open a menu which allows the user to select from a set of radio menuitems.
...pen a menu which allows the user to select from a set of radio menuitems.
...radio menuitems.
Special per-platform menu considerations - Archive of obsolete content
llowed by redo, cut, copy, paste, and so forth.
...y, paste, and so forth.
... menu_filequitseparator the separator just before the quit/exit item.
Building Hierarchical Trees - Archive of obsolete content
ntainer is a node in the xml document that has children.
... document that has children.
...uilder recurses.
Tree Widget Changes - Archive of obsolete content
just adjusting the treecol attributes directly.
...instead, they use nsitreecolumns.
...t the tree selection object from the view, not the box object, meaning use tree.view.selection instead of tree.treeboxobject.selection.
Adding HTML Elements - Archive of obsolete content
file, meaning that java applets and tables can be placed in a window.
... xul files if you can.
...bal/skin/" type="text/css"?> <window id="findfile-window" title="find files" orient="horizontal" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> then, you can use html tags as you would normally, keeping in mind the following: you must add a html: prefix to the beginning of each tag, assuming you declared the html namespace as above.
Box Objects - Archive of obsolete content
to get and modify information pertaining to the content or structure of the document.
...ructed but it is quite useful to at least have at least the knowledge of what is described above of xul layout for more advanced xul development.
...in the source.
Creating a Wizard - Archive of obsolete content
e page that the user is leaving.
... pageadvanced wizardpage called on the page the user is leaving.
... wizardnext wizard called on the wizard.
Grids - Archive of obsolete content
Archive › Mozilla › XUL › Tutorial › Grids
maxwidth and related attributes to further define the size.
... size.
...lace the elements inside the column elements instead of the rows.
Property Files - Archive of obsolete content
not get parsed for entities.
...ndles you could write the code to read properties yourself, however xul provides the stringbundle element which does this for you.
...ilesfound); this example first gets a reference to the bundle using its id then, it looks up the string 'notfoundalert' in the property file.
Styling a Tree - Archive of obsolete content
only to the header.
...instead, you must use the properties attribute on the rows or cells to set one or more named properties.
... is a properties list which the view is expected to fill with a list of properties.
Accessibility/XUL Accessibility Reference - Archive of obsolete content
ey are using the window class to determine that it is content rather than dialog, but does not support content mode for xul.
... see keyboard shortcut tutorial listbox <label control='listid'><!--label text--></label> <listbox id="listid"> <listitem value="val" label="<!--item text-->"/> </listbox> <label control='listid2' value='<!--list label-->' /> <listbox rows="5" id='listid2'> <listcols> <listcol/> <listcol/> <listcol/> </listcols> <listhead> <listheader label="name" /> <listheader label="sex" /> <listheader label="color" /> </listhead> <listitem> <label value="<!--pearl-->" /> <label value="<!--female-->" /> <label value="<!--gray-->" /> </listitem> </listbox> i don't seem to be able to find a straightforward way to read the header labels in jaws.
... tabbrowser jaws 7.10 issues testing with jaws 7.10, use of a tabbrowser element causes many, unpredictable issues with xul inside of the iframe.
action - Archive of obsolete content
ties | methods | related ] used to specify the content that should be generated for each matching result from a query.
...eft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(...
..., statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
colorpicker - Archive of obsolete content
example <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <window id="findfile-window" title="find files" orient="horizontal" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script type="text/javascript"> function myfunction(e){ /* do something cool here or just say the below */ alert(e.target.nodename); } </script> <textbox id="find-text" onchange="return myfunction(event);"/> </window> preference type: id connects the element to a corresponding preference.
...ex attribute.
...perty gets and sets color attribute methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild()...
commandset - Archive of obsolete content
oolean if true, the commandset is used for updating commands.
...ma-separated list of element ids a comma-separated list of element ids that the command updater will update upon.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
conditions - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] this element should appear directly inside a rule element and is used to define conditions for the rule.
...ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
grid - Archive of obsolete content
Archive › Mozilla › XUL › grid
top; commonly the columns element appears in the grid first.
...ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
listheader - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a header for a single column in a listbox.
..., preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessibletype type: integer a value indicating the type of accessibility object for the element.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
observes - Archive of obsolete content
e observes element should be placed inside the element that wants to observe the broadcaster.
...ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
query - Archive of obsolete content
Archive › Mozilla › XUL › query
contain one content element as well as member and/or triple elements.
...ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
rule - Archive of obsolete content
Archive › Mozilla › XUL › rule
atch nodes that are not marked as containers.
...type: element tag name if set, the rule will only match the corresponding tag.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
textnode - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] normally when substituting rdf resources in template rules, you place the rdf property name inside an attribute value preceded with rdf:.
...ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
treecol - Archive of obsolete content
fixed, hidden, hideheader, ignoreincolumnpicker, label, primary, sort, sortactive, sortdirection, src, type, width properties accessibletype style classes treecol-image examples this example shows a checkbox in the first column, requires the style below.
...ot include a unit as all values are in pixels.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
treeitem - Archive of obsolete content
nside a treechildren element and should contain treerow elements.
...ere content generation should begin.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
treerow - Archive of obsolete content
gle row in a tree.
...ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
treeseparator - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] used to place a separator row in a tree.
...ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
triple - Archive of obsolete content
an assertion exists, the rule may match, assuming that all the conditions match.
...ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
wizard - Archive of obsolete content
of wizardpage elements in the wizard.
...in the wizard.
...ods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode()...
XULRunner 1.8.0.1 Release Notes - Archive of obsolete content
m the mozilla developer center.
...veloper center.
....0.1\xulrunner\xulrunner.exe" --install-app "c:\documents and settings\user\desktop\myapplication.xpi" the application will be installed to c:\program files\vendorname\applicationname mac os x run the following command in a command prompt: /library/frameworks/xul.framework/xulrunner-bin --install-app ~/desktop/myapplication.xpi the application will be installed to /applications/vendor/appicationname linux run the following command in a command prompt: /opt/xulrunner/1.8.0.1/xulrunner/xulrunner --install-app ~/desktop/myapplication.xpi the application will be installed to /usr/lib/vendor/applicationname known issues firewall software may identify all xul applications as the same application.
XULRunner 1.8.0.4 Release Notes - Archive of obsolete content
e mozilla developer center.
...per center.
...ulrunner\xulrunner.exe" --install-app "c:\documents and settings\user\desktop\myapplication.xpi" the application will be installed to c:\program files\vendorname\applicationname mac os x run the following command in a command prompt: /library/frameworks/xul.framework/xulrunner-bin --install-app ~/desktop/myapplication.xpi the application will be installed to /applications/vendor/applicationname linux run the following command in a command prompt: /opt/xulrunner/1.8.0.4/xulrunner/xulrunner --install-app ~/desktop/myapplication.xpi the application will be installed to /usr/lib/vendor/applicationname known issues firewall software may identify all xul applications as the same application.
XULRunner 1.9.1 Release Notes - Archive of obsolete content
rom the mozilla developer center.
...developer center.
...9.1\xulrunner\xulrunner.exe" --install-app "c:\documents and settings\user\desktop\myapplication.xpi" the application will be installed to c:\program files\vendorname\applicationname mac os x run the following command in a command prompt: /library/frameworks/xul.framework/xulrunner-bin --install-app ~/desktop/myapplication.xpi the application will be installed to /applications/vendor/applicationname linux run the following command in a command prompt: /opt/xulrunner/1.9.1/xulrunner/xulrunner --install-app ~/desktop/myapplication.xpi the application will be installed to /usr/lib/vendor/applicationname known issues firewall software may identify all xul applications as the same application.
XULRunner 1.9.2 Release Notes - Archive of obsolete content
from the mozilla developer center.
...a developer center.
...9.2\xulrunner\xulrunner.exe" --install-app "c:\documents and settings\user\desktop\myapplication.xpi" the application will be installed to c:\program files\vendorname\applicationname mac os x run the following command in a command prompt: /library/frameworks/xul.framework/xulrunner-bin --install-app ~/desktop/myapplication.xpi the application will be installed to /applications/vendor/applicationname linux run the following command in a command prompt: /opt/xulrunner/1.9.2/xulrunner/xulrunner --install-app ~/desktop/myapplication.xpi the application will be installed to /usr/lib/vendor/applicationname known issues firewall software may identify all xul applications as the same application.
XULRunner 1.9 Release Notes - Archive of obsolete content
m the mozilla developer center.
...veloper center.
...ulrunner\xulrunner.exe" --install-app "c:\documents and settings\user\desktop\myapplication.xpi" the application will be installed to c:\program files\vendorname\applicationname mac os x run the following command in a command prompt: /library/frameworks/xul.framework/xulrunner-bin --install-app ~/desktop/myapplication.xpi the application will be installed to /applications/vendor/applicationname linux run the following command in a command prompt: /opt/xulrunner/1.9/xulrunner/xulrunner --install-app ~/desktop/myapplication.xpi the application will be installed to /usr/lib/vendor/applicationname known issues firewall software may identify all xul applications as the same application.
XULRunner 2.0 Release Notes - Archive of obsolete content
le from the mozilla developer center.
...lla developer center.
...2.0\xulrunner\xulrunner.exe" --install-app "c:\documents and settings\user\desktop\myapplication.xpi" the application will be installed to c:\program files\vendorname\applicationname mac os x run the following command in a command prompt: /library/frameworks/xul.framework/xulrunner-bin --install-app ~/desktop/myapplication.xpi the application will be installed to /applications/vendor/applicationname linux run the following command in a command prompt: /opt/xulrunner/2.0/xulrunner/xulrunner --install-app ~/desktop/myapplication.xpi the application will be installed to /usr/lib/vendor/applicationname known issues firewall software may identify all xul applications as the same application.
Using LDAP XPCOM with XULRunner - Archive of obsolete content
so as all the needed libraries are loaded.
...x; nsresult nsgetmodule(nsicomponentmanager* acompmgr, nsifile* alocation, nsimodule* *aresult) { nsresult rv; nscomptr<nsifile> libraries; rv = alocation->getparent(getter_addrefs(libraries)); if (ns_failed(rv)) return rv; nscomptr<nsilocalfile> library(do_queryinterface(libraries)); if (!library) return ns_error_unexpected; library->setnativeleafname(ns_literal_cstring("libraries")); library->appendnative(ns_literal_cstring("dummy")); // loop through and load dependent libraries for (char const *const *dependent = kdependentlibraries; *dependent; ++dependent) { library->setnativeleafname(nsdependentcstring(*dependent)); prlibrary *lib; library->load(&lib); // 1) we don't care if this failed!
.../ loop through and load dependent libraries for (char const *const *dependent = kdependentlibraries; *dependent; ++dependent) { library->setnativeleafname(nsdependentcstring(*dependent)); prlibrary *lib; library->load(&lib); // 1) we don't care if this failed!
ant script to assemble an extension - Archive of obsolete content
this ant script helps to package an extension <?xml version="1.0"?> this build file was written by régis décamps <decamps@users.sf.net> <project name="blogmark" default="createxpi"> <property name="version" value="1.3-rc1"/> <property name="description" value="new context-menu item to add the current page in your blogmarks"/> xpi file is created after "chrome/blogmark.jar" is created, which is then stuffed into "blogmark.xpi" <target name="createxpi" depends="createjar" description="assemble the final build blogmark.xpi"> <zip destfile="blogmark-${version}.xpi"> <zipfileset dir="." includes="chrome/blogmark.jar" /> <zipfi...
... description="assemble the final build blogmark.xpi"> <zip destfile="blogmark-${version}.xpi"> <zipfileset dir="." includes="chrome/blogmark.jar" /> <zipfileset dir="." includes="install.rdf" /> </zip> </target> everything inside the chrome directory is zipped into chrome/blogmark.jar <target name="createjar" depends="templates" description="assemble the jar"> <jar destfile="chrome/blogmark.jar"> <fileset dir="chrome/"> <include name="**/*"/> <exclude name="**/*~"/> <exclude name="**/*.tpl.*"/> <exclude name="blogmark.jar"/> ...
...estfile="chrome/blogmark.jar"> <fileset dir="chrome/"> <include name="**/*"/> <exclude name="**/*~"/> <exclude name="**/*.tpl.*"/> <exclude name="blogmark.jar"/> </fileset> </jar> </target> <target name="templates" description="generate files from templates."> <copy file="chrome/content/blogmark/contents.rdf.tpl.xml" tofile="chrome/content/blogmark/contents.rdf" overwrite="true"> <filterchain> <replacetokens> <token key="version" value="${version}"...
NPN_Enumerate - Archive of obsolete content
« gecko plugin api reference « scripting plugins summary gets the names of the properties and methods of the specified npobject.
...pp, npobject *npobj, npidentifier **identifiers, uint32_t *identifiercount); parameters the function has the following parameters: npp the npp indicating which plugin instance is making the request.
...s: npp the npp indicating which plugin instance is making the request.
NPN_GetProperty - Archive of obsolete content
« gecko plugin api reference « scripting plugins summary gets the value of a property on the specified npobject.
...of a property on the specified npobject.
...tax #include <npruntime.h> bool npn_getproperty(npp npp, npobject *npobj, npidentifier propertyname, npvariant *result); parameters the function has the following parameters: <tt>npp</tt> the npp indicating which plugin instance's is making the request.
NPN_GetURL - Archive of obsolete content
tream for the specified url.
...pp instance, const char* url, const char* target); parameters the function has the following parameters: instance pointer to the current plug-in instance.
...const char* target); parameters the function has the following parameters: instance pointer to the current plug-in instance.
NPN_HasMethod - Archive of obsolete content
« gecko plugin api reference « scripting plugins summary determines whether or not the specified npobject has a particular method.
... api reference « scripting plugins summary determines whether or not the specified npobject has a particular method.
...mary determines whether or not the specified npobject has a particular method.
NPN_HasProperty - Archive of obsolete content
« gecko plugin api reference « scripting plugins summary determines whether or not the specified npobject has a particular property.
... summary determines whether or not the specified npobject has a particular property.
...ified npobject has a particular property.
NPN_RemoveProperty - Archive of obsolete content
« gecko plugin api reference « scripting plugins summary removes a property from the specified npobject.
...reference « scripting plugins summary removes a property from the specified npobject.
...removes a property from the specified npobject.
NPN_SetProperty - Archive of obsolete content
« gecko plugin api reference « scripting plugins summary sets the value of a property on the specified npobject.
...ue of a property on the specified npobject.
...syntax #include <npruntime.h> bool npn_setproperty(npp npp, npobject *npobj, npidentifier propertyname, const npvariant *value); parameters the function has the following parameters: <tt>npp</tt> the npp indicating which plugin instance's is making the request.
NP_GetValue - Archive of obsolete content
nformation.
...#include <npapi.h> nperror np_getvalue(void *instance, nppvariable variable, void *value); parameters the function has the following parameters: instance pointer to the current plug-in instance.
... void *value); parameters the function has the following parameters: instance pointer to the current plug-in instance.
install.rdf - Archive of obsolete content
to, with minimum and maximum supported versions.
...minimum and maximum supported versions.
... <description> <!-- firefox's uuid --> <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <em:minversion>min_ff_version</em:minversion> <em:maxversion>max_ff_version</em:maxversion> </description> </em:targetapplication> <!-- front end metadata --> <!-- my_theme --> <em:name>my_theme</em:name> <em:description>my_theme</em:description> <em:creator>your_name</em:creator> <em:contributor>contributors_names</em:contributor> <em:homepageurl>themes_homepage</em:homepageurl> <em:updateurl> url_of_update_location </em:updateurl> <em:abouturl> url_of_about_page </em:abouturl> <!-- front end integration hooks (used by theme manager)--> <em:internalname>my_theme</em:internalname> </description> </rdf> ...
Browser Detection and Cross Browser Support - Archive of obsolete content
and rfc 2068 - hypertext transfer protocol 1.1).
...ued to use the vendor/version approach to distinguishing web browsers in their client side scripts.
...ards and not particular browsers while the period from 1994-2000 was dominated by incompatible non-standard browsers from netscape and microsoft, today the dominating factor in web development are the standards proposed by the world wide web consortium (w3c).
-ms-accelerator - Archive of obsolete content
n the option to "hide keyboard navigation indicators until i use the alt key" is enabled in the user's display properties, the "n" is not underlined until the user presses the alt key.
...properties, the "n" is not underlined until the user presses the alt key.
... the alt key.
Array.observe() - Archive of obsolete content
however, this api has been deprecated and removed from browsers.
...his api has been deprecated and removed from browsers.
....
VBArray - Archive of obsolete content
non-standard.
... non-standard.
... non-standard.
@set - Archive of obsolete content
warning: conditional compilation is not supported in internet explorer 11 standards mode and windows 8.x store apps.
... warning: conditional compilation is not supported in internet explorer 11 standards mode and windows 8.x store apps.
... warning: conditional compilation is not supported in internet explorer 11 standards mode and windows 8.x store apps.
Object.unobserve() - Archive of obsolete content
not an anonymous function, because this reference will be used to unset the previous observer.
...it will not remove any observer.
...on(changes) { console.log(changes); } object.observe(obj, observer); ​ obj.newproperty = 2; // [{name: 'newproperty', object: <obj>, type: 'add'}] object.unobserve(obj, observer); obj.foo = 1; // the callback wasn't called using an anonymous function var person = { name: 'ahmed', age: 25 }; object.observe(person, function(changes) { console.log(changes); }); person.age = 40; // [{name: 'age', object: <obj>, oldvalue: 25, type: 'update'}] object.unobserve(person, function(changes) { console.log(changes); }); person.age = 63; // [{name: 'age', object: <obj>, oldvalue: 40, type: 'update'}] // the callback will always be called specifications not part of any standard.
JavaArray - Archive of obsolete content
escription the javaarray object is an instance of a java array that is created in or passed to javascript.
...script 1.4 and later, the methods of java.lang.object are inherited by javaarray.
...ray = javastring.getbytes(); example: instantiating a javaarray in javascript with the newinstance method in javascript 1.4, you can use a javaclass object as the argument for the newinstance method which creates the array, as shown in the following code: var dogs = java.lang.reflect.array.newinstance(java.lang.string, 5); in javascript 1.1, use a class object returned by java.lang.class.forname as the argument for the newinstance method, as shown in the following code: var datatype = java.lang.class.forname("java.lang.string"); var dogs = java.lang.reflect.array.newinstance(datatype, 5); ...
Examples - Archive of obsolete content
this page contains the source code of the examples related to the "properly using css and javascript in xhtml documents" article.
... the article to learn more about these examples.
... <p> <a href="http://validator.w3.org/check/referer"><img src="https://udn.realityripple.com/samples/8a/9e64asf935.png" alt="valid xhtml 1.0!" height="31" width="88" /></a> </p> </body> </html> before testing this example by yourself, please read this.
Reference - Archive of obsolete content
's been 9 months since the last comment on this, i think i'll go ahead and change all of the examples.
... information detailing past behavior.
... as "for each...in" this page doesn't mention core_javascript_1.5_reference:statements:for_each...in.
Mozilla XForms Specials - Archive of obsolete content
html.
...ction.
...unctionality to our user interface, which allows the form authors to create custom controls.
XForms Input Element - Archive of obsolete content
ayed before or after the checkbox by using the labelposition attribute.
...dget in the mozilla xforms processor if the control meets the following criteria (xhtml/xul).
...ssor if the control meets the following criteria (xhtml/xul).
XForms Switch Module - Archive of obsolete content
oggle can be designated as an event handler using xml events or may also be contained in an action element.
...ler using xml events or may also be contained in an action element.
... case - the idref of a case element to select representations the case element doesn't have a visual representation.
Anatomy of a video game - Game development
s one was not empty or terminated.
...uestanimationframe() with an if-statement, rather than calling cancelanimationframe().
...revious line.
Game distribution - Game development
rols for your games even if you're mostly targeting mobile.
...s when it comes to publishing a game: self-hosting publishers stores remember that the name of your game should be unique enough to be quickly promoted later on, but also catchy enough, so people don't forget it.
...if you're working on a side project just for fun, then leaving the source open will benefit those who would like to learn from what you've created.
Visual-js game engine - Game development
full name : visual-js gui for windows multiplatform 2d game engine creator : nikola lukic 2017 2018 open source visual-js project parts : -2d part : this is javascript game engine (server part node.js / client part js) js framework with windows gui editor and game instance creator.
...male body v3.blend this file has been released by andrescuccaro under the following license: creative commons attribution 3.0 about gui for windows (canvas2d part only) : windows gui application version 1.0 (using visual-js 0.9 lib) important : you will need net 4.5.2 minimum also redistribution pack for c++ how to start project ?
...gui application version 1.0 (using visual-js 0.9 lib) important : you will need net 4.5.2 minimum also redistribution pack for c++ how to start project ?
Gecko FAQ - Gecko Redirect 1
what is gecko?
... what is gecko?
...te text of area elements, longdesc various metadata attributes: cite, datetime, lang, hreflang bidirectional text layout, which is only used in hebrew and arabic (ibm has begun work to add bidi support in a future release) style sheets css 1 - full support, except for: the application of styles to html column elements the ability to turn off author styles the names of certain mozilla extension pseudo-classes lack the moz- prefix css 2 - partial support is expected and has already been built into gecko, including support for css2 positioning, but no commitment has been made to achieve a specific level of support dom level 0 level 1 core: full support making entityreferences available through dom1; per a provision of the ...
Grid Lines - MDN Web Docs Glossary: Definitions of Web-related terms
background-color: #ffd8a8; padding: 1em; color: #d9480f; } <div class="wrapper"> <div class="item">item</div> </div> .wrapper { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 100px 100px; } .item { grid-column-start: 1; grid-column-end: 3; grid-row-start: 1; grid-row-end: 3; } naming lines the lines created in the explicit grid can be named, by adding the name in square brackets before or after the track sizing information.
...apper { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 100px 100px; } .item { grid-column-start: 1; grid-column-end: 3; grid-row-start: 1; grid-row-end: 3; } naming lines the lines created in the explicit grid can be named, by adding the name in square brackets before or after the track sizing information.
...; grid-row-start: row1-start; grid-row-end: rows-end; } learn more property reference grid-template-columns grid-template-rows grid-column-start grid-column-end grid-column grid-row-start grid-row-end grid-row further reading css grid layout guide: basic concepts of grid layout css grid layout guide: line-based placement with css grid css grid layout guide: layout using named grid lines css grid layout guide: css grids, logical values and writing modes definition of grid lines in the css grid layout specification ...
Signature (functions) - MDN Web Docs Glossary: Definitions of Web-related terms
ahead of time.
...ly typed and will check any parameters at compilation time if they are correct.
...atic void main(string[] args) the public keyword is an access modifier and indicates that this method can be called by any object.
Tag - MDN Web Docs Glossary: Definitions of Web-related terms
in html, a tag is used for creating an element.
... in html, a tag is used for creating an element.
... in html, a tag is used for creating an element.
CSS values and units - Learn web development
uently is <length>, for example 10px (pixels) or 30em.
...th percentages is that they are always set relative to some other value.
...thods of specifying color that have good browser support; there are others but they don't have as good support and are less common.
How do I use GitHub Pages? - Learn web development
in their workflow.
... scary at first, but don't worry — you'll soon get the hang of the basics.
...ut don't worry — you'll soon get the hang of the basics.
What is a web server? - Learn web development
and supports physical data interchange with other devices connected to the web.
...no active learning available yet.
...ebsite.
How the Web works - Learn web development
ally like the street between your house and the shop.
...to each other.
...e goods arrive at your door — new shiny stuff, awesome!).
Using data attributes - Learn web development
with extensibility in mind for data that should be associated with a particular element but need not have any defined meaning.
...n article and you want to store some extra information that doesn’t have any visual representation.
... data-parent="cars"> ...
From object to iframe — other embedding technologies - Learn web development
o be careful.
... if you find yourself needing to embed plugin content, this is the kind of information you'll need, at a minimum: <embed> <object> url of the embedded content src data accurate media type of the embedded content type type height and width (in css pixels) of the box controlled by the plugin height width height width names and values, to feed the plugin as parameters ad hoc attributes with those names and values single-tag <param> elements, contained within <object> independent html content as fallback for an unavailable resource not supported (<noembed> is obsolete) contained within <object>, after <param> elements note: <object> requires a data attribute, a type attribute, or both.
...ore confer significant security benefits when you're embedding content from a different origin (it can keep attackers from running arbitrary scripts through the plugin).
Making asynchronous programming easier with async and await - Learn web development
sync/await class methods as a final note before we move on, you can even add async in front of class/object methods to make them return promises, and await promises inside them.
... the es class code we saw in our object-oriented javascript article, and then look at our modified version with an async method: class person { constructor(first, last, age, gender, interests) { this.name = { first, last }; this.age = age; this.gender = gender; this.interests = interests; } async greeting() { return await promise.resolve(`hi!
...article, and then look at our modified version with an async method: class person { constructor(first, last, age, gender, interests) { this.name = { first, last }; this.age = age; this.gender = gender; this.interests = interests; } async greeting() { return await promise.resolve(`hi!
Manipulating documents - Learn web development
ores references to them in an array-like object called a nodelist.
...="myid">my paragraph</p>.
...side your html <head>: <style> .highlight { color: white; background-color: black; padding: 10px; width: 250px; text-align: center; } </style> now we'll turn to a very useful method for general html manipulation — element.setattribute() — this takes two arguments, the attribute you want to set on the element, and the value you want to set it to.
Video and Audio APIs - Learn web development
</div> the whole player is wrapped in a <div> element, so it can all be styled as one unit if needed.
...terval() creates an active interval, meaning that it runs the function given as the first parameter every x milliseconds, where x is the value of the 2nd parameter.
...tion given as the first parameter every x milliseconds, where x is the value of the 2nd parameter.
What went wrong? Troubleshooting JavaScript - Learn web development
(the screenshot above is from firefox, but other browsers provide similar information).
...sage says "guesssubmit.addeventlistener is not a function", which means that the function we're calling is not recognized by the javascript interpreter.
... something wrong.
Test your skills: JSON - Learn web development
ge.
...s, and how many are male and female, in the kitteninfo variable.
...he displaycatinfo() function.
Test your skills: Object-oriented JavaScript - Learn web development
or into the browser's javascript console, in the case of the downloadable version).
...ulates its perimeter (the length of the shape's outer edge) and logs the result to the console.
...ow to recreate the finished example: download the starting point for this task to work in your own editor or in an online editor.
Framework main features - Learn web development
<button>clicked 0 times</button> the usestate() call keeps track of the count value in a robust way across the app, without you needing to write code to do that yourself.
... passing data through many layers of components is called prop drilling, and it’s not ideal for large applications.
...cy injection; vue has provide() and inject() component methods; react has a context api; ember shares state through services.
Vue conditional rendering: editing existing todos - Learn web development
previous overview: client-side javascript frameworks next now it is time to add one of the major parts of functionality that we're still missing — the ability to edit existing todo items.
...learn how to do conditional rendering in vue.
...: row; flex-wrap: wrap; } form > * { flex: 0 0 100%; } </style> note: walk through the above code then read the below description to make sure you understand everything the component is doing before moving on.
Getting started with Vue - Learn web development
you don't have the above installed, find out more about installing npm and node.js here.
...ponent.
...ay, you're registering it locally.
Client-side tooling overview - Learn web development
them.
...vide that first step that is hard to find otherwise.
... more about package managers in general in chapter 3 of this module.
Accessibility API cross-reference
s it specifies have already informed the 'semantic elements' of html5 (such as main and footer), but there is not a one-to-one mapping between the aria roles and the semantics of html5.
...hen separated from the main content.
...n push_button push_button button <button> only one radio button in a group is selectable.
Adding a new CSS property
parser would be assumed to be reusing the longhand parser once per item, not for a whole list, as for properties like background-image or transform-timing-function.) if the property takes a list of keywords other than inherit/initial/etc., auto, none, or normal (which can be expressed using the variant_* flags), you should use variant_keyword and add a keyword table to the nscssprops class.
...if needed) in that table rather than combining variant_keyword with variant_auto, variant_normal, or variant_none.
...tylestruct.cpp) to describe how dynamic changes of your new css property need to be handled.
Creating a Login Manager storage module
rvice : null, get _logservice() { if (!this.__logservice) this.__logservice = cc["@mozilla.org/consoleservice;1"].
...his.__logservice; }, log: function (message) { dump("sampleloginmanager: " + message + "\n"); this._logservice.logstringmessage("sampleloginmanager: " + message); }, // logs function name and arguments for debugging stub: function(arguments) { var args = []; for (let i = 0; i < arguments.length; i++) args.push(arguments[i]) this.log("called " + arguments.callee.name + "(" + args.join(",") + ")"); }, init: function slms_init() { this.stub(arguments); }, initwithfile: function slms_initwithfile(ainputfile, aoutputfile) { this.stub(arguments); }, addlogin: function slms_addlogin(login) { this.stub(arguments); }, removelogin: function slms_removelogin(login) { this.stub(arguments); }, modifylogin: function slms_modifylogin(ol...
... slms_modifylogin(oldlogin, newlogin) { this.stub(arguments); }, getalllogins: function slms_getalllogins(count) { this.stub(arguments); }, removealllogins: function slms_removealllogins() { this.stub(arguments); }, getalldisabledhosts: function slms_getalldisabledhosts(count) { this.stub(arguments); }, getloginsavingenabled: function slms_getloginsavingenabled(hostname) { this.stub(arguments); }, setloginsavingenabled: function slms_setloginsavingenabled(hostname, enabled) { this.stub(arguments); }, findlogins: function slms_findlogins(count, hostname, formsubmiturl, httprealm) { this.stub(arguments); }, countlogins: function slms_countlogins(ahostname, aformsubmiturl, ahttprealm) { this.stub(arguments); } }; function nsgetmodule(...
Debugging Frame Reflow
ow debugging the previously described technique dumps the data for every frame.
... data for every frame.
...the log is clearer if only the main frames are shown.
Debugging on Windows
.0: to change or set the command line options, go to project > settings..., debug tab and select general from the drop down list.
...nces of mozilla simultaneously you can run two instances of mozilla (e.g.
...ls in this directory".
The Firefox codebase: CSS Guidelines
thods.
...t, they don't necessarily work for all font-size configurations.
...an also hide some unwanted default values.
mozbrowsercontextmenu
the text of the link clicked on, in the case of a link context menu.
... the case of a link context menu.
...tlistener("mozbrowsercontextmenu", function(event) { console.log("asking for menu:" + json.stringify(event.details)); }); related events mozbrowserasyncscroll mozbrowserclose mozbrowsererror mozbrowsericonchange mozbrowserloadend mozbrowserloadstart mozbrowserlocationchange mozbrowseropenwindow mozbrowsersecuritychange mozbrowsershowmodalprompt mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
Addon
d properties; for others it will only change after an application restart.
...only change after an application restart.
...ined if an add-on has the permission perm_can_uninstall.
Encodings for localization files
ller/windows/charset.mk ascii the win_installer_charset variable must be set to an encoding which matches toolkit/installer/windows/install.it charset= parameter.
...ose appropriate fonts that are shipped with windows.
...1252 0 baltic_charset cp1257 186 chinesebig5_charset cp950 136 easteurope_charset cp1250 238 gb2312_charset cp936 134 greek_charset cp1253 161 hangul_charset cp949 129 russian_charset cp1251 204 shiftjis_charset cp932 128 turkish_charset cp1254 162 vietnamese_charset cp1258 163 middle east language editions of windows: arabic_charset cp1256 178 hebrew_charset cp1255 177 thai language editions of windows: thai_charset cp874 222 ...
Localizing with Mercurial
onfiguring mercurial once you've installed mercurial, you'll need to configure it before you can use it successfully.
...ial once you've installed mercurial, you'll need to configure it before you can use it successfully.
...patch with hg and the mq extension: enable mq by adding hg.ext = to your mercurial config file (~/.hgrc on unix-like systems or mercurial.ini on windows) under the [extensions] section.
Localizing without a specialized tool
/hg.mozilla.org/releases/mozilla-1.9.2 this will pull the mozilla 1.9.2 sources from the remote repository and create a mercurial clone in mozilla-1.9.2 inside your working directory.
...: unchanged: 2 changed: 3 missinginfiles: 6117 missing: 13 0% of entries changed the beauty of the compare-locales output is that it tells you all the missing files and which files you need to add and localize.
...h.properties" contains the string "add %s".
QA phase
koala when you were setting up a new localization project.
...ing the hg outgoing command compares the two repositories and lists all changesets that are present locally, but not in the remote repository.
...for changes changeset: 0:7c543e8f3a6a tag: tip user: your name <email@example.com> date: mon nov 23 18:08:25 2009 +0100 summary: added search bar strings let's now push this changeset.
Localization technical reviews
revision attachment contains only relevant files we run into exports that contain .xpi langpacks and other random files.
...oesn't contain garbage.
...the work by listing the name just after the moz_langpack_creator.
Mozilla Framework Based on Templates (MFBT)
it should be included using paths like "mozilla/standardinteger.h".
...hiness.
...its of useful functionality.
Extras
height="30px"> <defs> <radialgradient id="radgrad1" cx="50%" cy="50%" r="50%" fx="50%" fy="50%"> <stop offset="0%" style="stop-color:rgb(255,255,255); stop-opacity:1;"/> <stop offset="100%" style="stop-color:rgb(255,0,0); stop-opacity:.8;"/> </radialgradient> </defs> <g transform="translate(15,15)"> <g> <animatetransform attributename="transform" attributetype="xml" type="rotate" from="360" to="0" dur="15s" repeatcount="indefinite"/> <g transform="translate(-15, -15)"> <path fill="url(#radgrad1)" d="m 15 0 l 20 10 l 30 15 l 20 20 l 15 30 l 10 20 l 0 15 l 10 10"/> </g> </g> </g> </svg> <...
...);stop-opacity:1"/> </lineargradient> <radialgradient id="grad3" cx="50%" cy="50%" r="50%" fx="50%" fy="50%"> <stop offset="0%" style="stop-color:rgb(0,255,255);stop-opacity:1"/> <stop offset="100%" style="stop-color:rgb(255,255,255);stop-opacity:.8"/> </radialgradient> </defs> <rect width="300" height="250" fill="url(#grad1)"/> <g transform="translate(150,125)"> <g> <animatetransform attributename="transform" attributetype="xml" type="rotate" from="0" to="360" dur="6s" repeatcount="indefinite"/> <g transform="translate(-50,-35)"> <rect width="100" height="70" fill="url(#grad2)"/> <switch> <foreignobject width="100" height="70" requiredextensions="http://www.w3.org/1998/math/mathml"> <math display="block"> <mrow...
...d><mi>sin</mi><mi>θ</mi></mtd> <mtd><mi>cos</mi><mi>θ</mi></mtd> </mtr> </mtable> <mo>)</mo> </mrow> </math> </foreignobject> <text>rotation matrix</text> </switch> </g></g></g> <g> <animatemotion path="m 32,69 c 64,121 100,27 152,42 203,56 239,257 275,161 295,109 144,221 88,214 -2,202 11,35 32,69 z" begin="0s" dur="20s" repeatcount="indefinite"/> <animatetransform attributename="transform" attributetype="xml" type="scale" values="1;2;.5;1" keytimes="0;.25;.75;1" dur="20s" repeatcount="indefinite"/> <circle fill="url(#grad3)" r="30"/> <g transform="translate(-30,-30)"> <switch> <foreignobject width="60" height="60" requiredextensions="http://www.w3.org/1998/math/mathml"> <math display="block"> <mrow> <munderover> <mo>∑</m...
Mozilla Quirks Mode Behavior
tead of margin (bug 5119).
...give floated img a 3px margin (bug 58899).
...ollwidth, and scrollheight properties are relative to body in quirks mode (instead of html) (bug 211030).
Investigating leaks using DMD heap scan mode
efox.
... looks through all of the windows in all of the cc logs (which may leaked, this late in shutdown), and then filters out windows where the url contains example.com.
...nd then filters out windows where the url contains example.com.
Leak-hunting strategies and tips
until the corresponding javascript object is garbage-collected.
...leaks that involve js objects closely, you can get detailed printouts of the paths js uses to mark objects when it is determining the set of live objects by using the functions added in bug 378261 and bug 378255.
...ould be useful.
Leak And Bloat Tests
rently get set.
...id1.fullname", "tinderbox"); user_pref("mail.identity.id1.smtpserver", "smtp1"); user_pref("mail.identity.id1.useremail", "tinderbox@invalid.com"); user_pref("mail.identity.id1.valid", true); user_pref("mail.root.none-rel", "[profd]mail"); user_pref("mail.root.pop3-rel", "[profd]mail"); user_pref("mail.server.server1.directory-rel", "[profd]mail/local folders"); user_pref("mail.server.server1.hostname", "local folders"); user_pref("mail.server.server1.name", "local folders"); user_pref("mail.server.server1.type", "none"); user_pref("mail.server.server1.username", "nobody"); user_pref("mail.server.server2.check_new_mail", false); user_pref("mail.server.server2.directory-rel", "[profd]mail/tinderbox"); user_pref("mail.server.server2.download_on_biff", true); user_pref("mail.server.server2.hostna...
...type", "none"); user_pref("mail.server.server1.username", "nobody"); user_pref("mail.server.server2.check_new_mail", false); user_pref("mail.server.server2.directory-rel", "[profd]mail/tinderbox"); user_pref("mail.server.server2.download_on_biff", true); user_pref("mail.server.server2.hostname", "tinderbox"); user_pref("mail.server.server2.login_at_startup", false); user_pref("mail.server.server2.name", "tinderbox@invalid.com"); user_pref("mail.server.server2.type", "pop3"); user_pref("mail.server.server2.username", "tinderbox"); user_pref("mail.smtp.defaultserver", "smtp1"); user_pref("mail.smtpserver.smtp1.hostname", "tinderbox"); user_pref("mail.smtpserver.smtp1.username", "tinderbox"); user_pref("mail.smtpservers", "smtp1"); user_pref("mail.startup.enabledmailcheckonce", true); user_pref("...
About NSPR
ion of network addresses.
... to whether the addressing technology is ipv4 or ipv6.
...heduling.
Dynamic Library Linking
libraries.
...rovides a method by which to condition symbols of statically linked code so that to other clients it appears as though they are dynamically loaded.
...findsymbol pr_findsymbolandlibrary finding symbols defined in the main executable program pr_loadlibrary cannot open a handle that references the main executable program.
NSPR LOG FILE
this environment variable specifies the file to which log messages are directed.
...this environment variable specifies the file to which log messages are directed.
...tax filespec filespec is a filename.
PRAddrInfo
a structure containing an array of prnetaddr structures.
... a structure containing an array of prnetaddr structures.
... a structure containing an array of prnetaddr structures.
PR_Access
determines the accessibility of a file.
... determines the accessibility of a file.
... determines the accessibility of a file.
PR_Bind
enting the address to which the socket will be bound.
... name) to the socket.
... do not care about the exact ip address assigned to the socket, set the inet.ip field of prnetaddr to pr_htonl(pr_inaddr_any).
PR_Delete
syntax #include <prio.h> prstatus pr_delete(const char *name); parameters the function has the following parameter: name the pathname of the file to be deleted.
... syntax #include <prio.h> prstatus pr_delete(const char *name); parameters the function has the following parameter: name the pathname of the file to be deleted.
... syntax #include <prio.h> prstatus pr_delete(const char *name); parameters the function has the following parameter: name the pathname of the file to be deleted.
PR_GetFileInfo
gets information about a file with a specified pathname.
... gets information about a file with a specified pathname.
... file information object (see prfileinfo).
PR_GetFileInfo64
gets information about a file with a specified pathname.
... gets information about a file with a specified pathname.
...information object (see prfileinfo64).
PR_GetInheritedFileMap
imports a prfilemap previously exported by my parent process via pr_createprocess.
... imports a prfilemap previously exported by my parent process via pr_createprocess.
... imports a prfilemap previously exported by my parent process via pr_createprocess.
PR_GetLibraryPath
retrieves the current default library path.
... retrieves the current default library path.
...pathname string.
CERT_FindCertByIssuerAndSN
atabase with the given issuer and serial number.
...ey to find the matching certificate in the database.
...the database.
Build instructions for JSS 4.3.x
build instructions for jss 4.3.x newsgroup: mozilla.dev.tech.crypto before building jss, you need to set up your system as follows: build nspr/nss by following the nspr/nss build instructions, to check that nss built correctly, run all.sh (in mozilla/security/nss/tests) and examine the results (in mozilla/test_results/security/computername.#/results.html.
...a_home windows build configurations winnt vs win95 as of nss 3.15.4, nspr/nss/jss build generates a "win95" configuration by default on windows.
...ions winnt vs win95 as of nss 3.15.4, nspr/nss/jss build generates a "win95" configuration by default on windows.
JSS Provider Notes
this page has been moved to http://www.dogtagpki.org/wiki/jss_provider.
...ken.
...initialized to the default, the internal key storage token.
Mozilla-JSS JCA Provider notes
the mozilla-jss jca provider newsgroup: mozilla.dev.tech.crypto overview this document describes the jca provider shipped with jss.
...default token.
...ken is initialized to the default, the internal key storage token.
Using JSS
Mozilla › Projects › NSS › JSS › Using JSS
jss in your application gather components you need the jss classes and the nspr, nss, and jss shared libraries.
...d crypto.
...ey also require the nss shared libraries.
NSS 3.15 release notes
client applications may enable this via a call to ssl_optionsetdefault(ssl_enable_ocsp_stapling, pr_true); added function secitem_reallocitemv2.
...turn when clients send the status_request extension.
... in ocsp.h cert_postocsprequest - primarily intended for testing, permits the sending and receiving of raw ocsp request/responses.
NSS 3.19 release notes
tp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_19_rtm/src/ security fixes in nss 3.19 bug 1086145 / cve-2015-2721 - fixed a bug related to the ordering of tls handshake messages.
...releases/nss_3_19_rtm/src/ security fixes in nss 3.19 bug 1086145 / cve-2015-2721 - fixed a bug related to the ordering of tls handshake messages.
...root ca certificates that don't embed any constraints, nss might impose additional constraints such as name constraints.
NSS 3.27.2 Release Notes
ps download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_27_2_rtm/src/ new in nss 3.27.2 new functionality no new functionality is introduced in this release.
...ew functionality no new functionality is introduced in this release.
....
NSS 3.27 release notes
3.27, which is a minor release.
... the hg tag is nss_3_27_rtm.
...butions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_27_rtm/src/ new in nss 3.27 new functionality allow custom named group priorities for tls key exchange handshake (ssl_namedgroupconfig).
NSS 3.52 release notes
bug 1561637 - tls 1.3 does not work in fips mode.
...de.
... when evicting a cached sessionid or using external cache.
NSS Tools sslstrength
sslstrength summary a simple command-line client which connects to an ssl-server, and reports back the encryption cipher and strength used.
... reports back the encryption cipher and strength used.
...tion cipher and strength used.
PKCS11 FAQ
Mozilla › Projects › NSS › PKCS11 › FAQ
n.
...sociated with that card is still valid, or by waiting on the c_waitforslotevent call.
...ing on the c_waitforslotevent call.
NSS Tools certutil-tasks
nss security tools: certutil tasks newsgroup: mozilla.dev.tech.crypto task list better error reporting.
...s security tools: certutil tasks newsgroup: mozilla.dev.tech.crypto task list better error reporting.
...ev.tech.crypto task list better error reporting.
NSS Tools sslstrength
sslstrength summary a simple command-line client which connects to an ssl-server, and reports back the encryption cipher and strength used.
...nd reports back the encryption cipher and strength used.
...yption cipher and strength used.
Multithreading in Necko
s.
...owever, the details of the implementation are heavily platform dependent.
... are heavily platform dependent.
Rhino scopes and contexts
dobjects to create all the standard objects: scriptableobject scope = cx.initstandardobjects(); the easiest way to embed rhino is just to create a new scope this way whenever you need one.
...criptableobject scope = cx.initstandardobjects(); the easiest way to embed rhino is just to create a new scope this way whenever you need one.
...g scopes javascript is a language that uses delegation rather than traditional class-based inheritance.
GC Rooting Guide
his is normally done by storing them in slots, which are automatically traced by the gc.
...ove) that casts the private pointer to your structure and invokes trace() on it: class myobject : public jsobject { { ...
...e(trc, "myclass private field"); } } class myclass { heap<jsstring*> str; public: void trace(jstracer* trc, const char* name) { js::traceedge(trc, &str, "my string"); } } if a pointer to your structure is stored in some other structure, then its trace() method should invoke yours: struct myowningstruct { myclass* mything; void trace(jstracer* trc, const char* name) { if (mything) mything->trace(trc, "my thing"); } } if the toplevel structure is not stored in a jsobject, then how it gets traced depends on why it should be alive.
Getting SpiderMonkey source code
gression tests, add this command: cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co mozilla/js/tests getting older branch versions of spidermonkey if you want to experiment with a specific branch's version of spidermonkey, you need to check out js/src from branch but check out editline and config from trunk: cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -l -r branch_name mozilla/js/src mozilla/js/src/fdlibm cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -l mozilla/js/src/config mozilla/js/src/editline change branch_name to the name of the branch you want to check out.
...k out js/src from branch but check out editline and config from trunk: cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -l -r branch_name mozilla/js/src mozilla/js/src/fdlibm cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -l mozilla/js/src/config mozilla/js/src/editline change branch_name to the name of the branch you want to check out.
...config from trunk: cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -l -r branch_name mozilla/js/src mozilla/js/src/fdlibm cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -l mozilla/js/src/config mozilla/js/src/editline change branch_name to the name of the branch you want to check out.
JS::Construct
this article covers features introduced in spidermonkey 38 call a specified js constructor.
...sapi-compiled function..
... rval js::mutablehandlevalue out parameter.
JSDeletePropertyOp
this article covers features introduced in spidermonkey 24 the type of the jsclass.delproperty.
...n cx jscontext * the context in which the property access is taking place.
...g property operation by optionally reporting an error or raising an exception and then returning false.
JSFastNative
icle covers features introduced in spidermonkey 1.8 jsfastnative is the type of fast native functions in the jsapi.
....
...opposed to, say, the number of arguments the function is specified to take in its jsfunctionspec).
JSObjectOps.defineProperty
hould be considered spidermonkey internals documentation, not api documentation.
...y.
...d jsid the name or index of the property to define.
JSObjectOps.lookupProperty
ion, not api documentation.
...t does not call lookupproperty).
...out parameter.
JSPropertySpec
defines a single property for an object.
... defines a single property for an object.
... flags; union { jsnativewrapper native; selfhostedwrapper selfhosted; } getter; union { jsnativewrapper native; selfhostedwrapper selfhosted; } setter; /* obsolete since jsapi 29 */ /* added in jsapi 28 */ const char *selfhostedgetter; const char *selfhostedsetter; }; name type description name const char * name to assign the property.
JSResolveOp
jsresolveop is the type of the jsclass.resolve.
...6 typedef bool (* jsresolveop)(jscontext *cx, js::handleobject obj, js::handleid id); // obsolete since jsapi 36 name type description cx jscontext * pointer to the js context in which the property access is taking place.
... obj js::handleobject pointer to the object whose properties are being accessed.
JS_AddFinalizeCallback
ey 17 add/remove callback function for finalization.
...inter to the new callback function to use.
...to an instance of jsfreeop.
JS_CompileFileHandleForPrincipals
this article covers features introduced in spidermonkey 1.8.5 please provide a description of this function.
... this article covers features introduced in spidermonkey 1.8.5 please provide a description of this function.
...e a description of this function.
JS_CompileFileHandleForPrincipalsVersion
this article covers features introduced in spidermonkey 1.8.5 please provide a description for this function.
... this article covers features introduced in spidermonkey 1.8.5 please provide a description for this function.
...on.
JS_DecompileScriptObject
this article covers features introduced in spidermonkey 1.8.5 fixme: please provide a description for this function.
... this article covers features introduced in spidermonkey 1.8.5 fixme: please provide a description for this function.
... fixme: please provide a description for this function.
JS_DefaultValue
obsolete since jsapi 44this feature is obsolete.
...to avoid using it.
...e, to determine the primitive result of conversion.
JS_GetInstancePrivate
with an object, if that object is an instance of a specified class.
...t there is no private data currently associated with the object, or the object cannot have private data, js_getinstanceprivate also returns null.
... object cannot have private data, js_getinstanceprivate also returns null.
JS_GetOwnPropertyDescriptor
get a detailed description of that property.
...escriptor(jscontext *cx, js::handleobject obj, const char *name, js::mutablehandle<jspropertydescriptor> desc); bool js_getownpropertydescriptorbyid(jscontext *cx, js::handleobject obj, js::handleid id, js::mutablehandle<jspropertydescriptor> desc); bool js_getownucpropertydescriptor(jscontext *cx, js::handleobject obj, const char16_t *name, js::mutablehandle desc); // added in spidermonkey 45 name type description cx jscontext * a context.
... js::mutablehandle desc); // added in spidermonkey 45 name type description cx jscontext * a context.
JS_GetPropertyDescriptor
finds a specified property of an object and gets a detailed description of that property.
...d description of that property.
... obj, js::handleid id, js::mutablehandle<jspropertydescriptor> desc); name type description cx jscontext * a context.
JS_LookupElement
obsolete since jsapi 37this feature is obsolete.
...ook up.
....
JS_NewObject
::handle<jsobject*> proto); // obsolete since spidermonkey 38 jsobject * js_newobject(jscontext *cx, const jsclass *clasp, js::handle<jsobject*> proto, js::handle<jsobject*> parent); jsobject * js_newobjectwithgivenproto(jscontext *cx, const jsclass *clasp, js::handle<jsobject*> proto, js::handle<jsobject*> parent); // added in spidermonkey 1.8 name type description cx jscontext * the context in which to create the new object.
... global object at the end of the scope chain in which the context is currently executing.
...ct at the end of the scope chain in which the context is currently executing.
JS_NextProperty
obsolete since jsapi 36this feature is obsolete.
...type description cx jscontext * the js context in which to enumerate properties.
...jscontext * the js context in which to enumerate properties.
JS_SetErrorReporter
obsolete since jsapi 52this feature is obsolete.
... er); name type description cx jsruntime * pointer to a js runtime whose errors should be reported via your function.
... jserrorreport* report) { auto rt = js_getruntime(ctx); auto rt_userdata = js_getruntimeprivate(rt); if (rt_userdata) { auto req = static_cast<myrequest*>(rt_userdata); req->onerror(message); } } }; see also mxr id search for js_geterrorreporter mxr id search for js_seterrorreporter bug 1277278 - js_seterrorreporter is renamed to js::setwarningreporter ...
JS_SetOperationCallback
obsolete since jsapi 30this feature is obsolete.
...dically while javascript code runs.
...operationcallback(jscontext *cx); void js_triggeroperationcallback(jsruntime *rt); name type description cx jscontext * a context.
SpiderMonkey 1.8.8
x86_64, and arm architectures.
... of spidermonkey have been dropped.
...ridge to always using the standard header.
SpiderMonkey 17
86, x86_64, and arm architectures.
...ons of spidermonkey have been dropped.
...ridge to always using the standard header.
SpiderMonkey 31
ocumented, because of the breadth of the changes involved.
... js_definepropertywithtinyid and js_defineucpropertywithtinyid as well as the jspropertydescriptor structure and the matching jsprop_shortid flag.
..._defineucpropertywithtinyid as well as the jspropertydescriptor structure and the matching jsprop_shortid flag.
Mozilla Projects
s.
... check all non-race-free memory access at runtime.
...accurate results with no real false positives.
Signing Mozilla apps for Mac OS X
ol apple provides a tool called codesign; this command-line application is used to add a signature to an application bundle.
...fy the signing certificate you want to sign the application with your-signing-identity is the name of your certificate.
...ant to sign the application with your-signing-identity is the name of your certificate.
Manipulating bookmarks using Places
ice;1"] .getservice(components.interfaces.nsinavbookmarksservice); creating a bookmark folder creating a new bookmark folder is done using the nsinavbookmarksservice.createfolder() method.
...k folder creating a new bookmark folder is done using the nsinavbookmarksservice.createfolder() method.
...ting a new bookmark folder is done using the nsinavbookmarksservice.createfolder() method.
Using the Places livemark service
ing the livemark service, you need to obtain an instance: var livemarkservice = components.classes["@mozilla.org/browser/livemark-service;2"] .getservice(components.interfaces.nsilivemarkservice); creating a new livemark the nsilivemarkservice.createlivemark() method creates a new livemark.
...wlvmkid = livemarkservice.createlivemark(parentfolderid, "livemark name", uri("http://example.com/"), uri("http://example.com/rss.xml"), -1); the first parameter is the id of the folder in which to create the livemark.
... creates the encapsulating livemark without actually fetching the rss feed's contents.
Component Internals
n below shows the basic relationship between the shared library containing the component implementation code you write and the xpcom framework itself.
...tem.
... mapping contract id to class id mapping the component manifest maps component files to unique identifiers for the specific implementations (class ids), which in turn are mapped to more general component identifiers (contract ids).
Introduction to XPCOM for the DOM
an object) can be allocated dynamically (on the heap, or free store), using the syntax nsfoo *fooptr = new nsfoo; that object can then be manipulated only through fooptr.
...dd a new interface for several reasons, like the addition of a new dom object, or to respect an eventual "interface freeze".
... #define ns_decl_nsidomfabian #define ns_forward_nsidomfabian(_to) #define ns_forward_safe_nsidomfabian(_to) as we can see, the auto-generated header file contains the iid of our interface, and a "pure abstract class" is correctly defined.
Components.utils.evalInWindow
node), then the function relies on xraywrappers to wrap the returned content, otherwise the result is structured-cloned.
...s can't be structured-cloned.
....log(window.somelocalvariable.newprop); // 42 but note that the add-on script must trust that the page script has not redefined the setter on somelocalvariable: unlike xraywrappers, evalinwindow() does not provide x-ray vision.
mozIStorageStatementParams
this interface has no defined properties, but has properties based on the named parameters found in the sql from the statement it was accessed off of.
... this interface has no defined properties, but has properties based on the named parameters found in the sql from the statement it was accessed off of.
... this interface has no defined properties, but has properties based on the named parameters found in the sql from the statement it was accessed off of.
nsIAccessibleRelation
ffected by a target object.
...ct.
...object.
nsIAccessibleRole
those internal frames.
...obox.
...role_option 117 an option in a listbox.
nsIAutoCompleteInput
showimagecolumn boolean if true, a column is added to the popup, showing an additional image for each autocomplete result.
...ue of the text in the autocomplete text field.
...eld.
nsIContentFrameMessageManager
ocess: for details on these messaging apis see the documentation for the nsicontentframemessagemanager's parent classes nsisyncmessagesender and nsimessagesender.
...der.
...tput.
nsICookiePromptService
the nsicookiepromptservice interface is to open a dialog to ask to permission to accept the cookie.
... constant value description deny_cookie 0 holds the value for a denying the cookie.
...kie.
nsICycleCollectorListener
ons will be called.
...ed ); parameters aaddress amarked describerefcountedobject() void describerefcountedobject( in unsigned long long aaddress, in unsigned long aknownedges, in unsigned long atotaledges ); parameters aaddress aknownedges atotaledges end() void end(); parameters none.
...untedobject() void describerefcountedobject( in unsigned long long aaddress, in unsigned long aknownedges, in unsigned long atotaledges ); parameters aaddress aknownedges atotaledges end() void end(); parameters none.
nsIDOMWindowInternal
n long xpos, in long ypos) void moveby(in long xdif, in long ydif) void resizeto(in long width, in long height) void resizeby(in long widthdif, in long heightdif) void scroll(in long xscroll, in long yscroll) nsidomwindow window interface's open() method loads the specified resource into the browsing context (window, <iframe> or tab) with the specified name.
...in long ypos) void moveby(in long xdif, in long ydif) void resizeto(in long width, in long height) void resizeby(in long widthdif, in long heightdif) void scroll(in long xscroll, in long yscroll) nsidomwindow window interface's open() method loads the specified resource into the browsing context (window, <iframe> or tab) with the specified name.
...idthdif, in long heightdif) void scroll(in long xscroll, in long yscroll) nsidomwindow window interface's open() method loads the specified resource into the browsing context (window, <iframe> or tab) with the specified name.
getFiles
« xpcom api reference summary this method is called by the directory service to query an enumeration of file or directory locations.
... « xpcom api reference summary this method is called by the directory service to query an enumeration of file or directory locations.
... « xpcom api reference summary this method is called by the directory service to query an enumeration of file or directory locations.
nsIDownloadManager
5 / thunderbird 3.0 / seamonkey 2.0) implemented by: @mozilla.org/download-manager;1.
....saveuri() method.
...in nsilocalfile atempfile, in nsicancelable acancelable, in boolean aisprivate ); parameters adownloadtype the download type for the transfer.
nsIDroppedLinkHandler
se/nsidroppedlinkhandler.idlscriptable please add a summary to this article.
...e source is not checked.
...xceptions thrown missing exception missing description droplink() given a drop event, determines the link being dragged.
nsIEventListenerService
array an array of nsieventlistenerinfo objects describing the listeners.
... action of the event.
...ture phase, otherwise, false.
nsIFrameMessageManager
gelistener alistener); void sendasyncmessage(in astring amessage, in astring json); methods addmessagelistener() adds a message listener to the local frame.
...s in the main process.
...n astring amessage, in nsiframemessagelistener alistener ); parameters amessage the name of the message for which to remove a listener.
nsIHTTPHeaderListener
.9 (firefox 3) note: the plugin author must provide an instance to {geturl,posturl}() that implements both nsipluginstreamlistener and nsihttpheaderlistener.
...arameter.
...o see if it implements nsihttpheaderlistener.
nsIHttpChannelInternal
, as it will change in unpredictable ways.
...1 is processed.
...ailable() provide to the new protocol the low level transport streams that are no longer used by http.
nsIJumpListBuilder
ers have removed, applications are encouraged to track removed items internally.
...sks, links, and separators.
...stbuild() aborts and clears the current jump list build.
nsIMimeHeaders
d in gecko 1.7 implemented by: ?????????????????????????????????????.
...overview string extractheader([const] in string headername, in boolean getallofthem); void initialize([const] in string allheaders, in long allheaderssize); attributes attribute type description allheaders string read only.
...g headername, in boolean getallofthem); void initialize([const] in string allheaders, in long allheaderssize); attributes attribute type description allheaders string read only.
nsIMsgDBView
x is defined as a unsigned long in mailnewstypes2.idl.
...umnhandler(in astring acolumn, in nsimsgcustomcolumnhandler ahandler); parameters acolumn the name of the column to add the handler for.
...emoves a nsimsgcustomcolumnhandler leaving the column to be handled by the system void removecolumnhandler(in astring acolumn); parameters acolumn the name of the column to remove the handler from.
nsIMsgFilterList
g nsimsgfilterlist::filtercount loggingenabled attribute boolean nsimsgfilterlist::loggingenabled defaultfile attribute nsilocalfile nsimsgfilterlist::defaultfile logstream attribute nsioutputstream nsimsgfilterlist::logstream logurl readonly attribute acstring nsimsgfilterlist::logurl methods getfilterat() nsimsgfilter nsimsgfilterlist::getfilterat (in unsigned long filterindex ) getfilternamed() nsimsgfilter nsimsgfilterlist::getfilternamed (in astring filtername) setfilterat() nsimsgfilter nsimsgfilterlist::setfilterat ( in unsigned long filterindex, in nsimsgfilter filter ) removefilter() void nsimsgfilterlist::removefilter (in nsimsgfilter filter) removefilterat() void nsimsgfilterlist::removefilterat (in unsigned long filterindex) movefilterat...
... filterindex, in nsmsgfiltermotionvalue motion ) insertfilterat() void nsimsgfilterlist::insertfilterat ( in unsigned long filterindex, in nsimsgfilter filter ) movefilter() void nsimsgfilterlist::movefilter ( in nsimsgfilter filter, in nsmsgfiltermotionvalue motion ) createfilter() nsimsgfilter nsimsgfilterlist::createfilter ( in astring name ) savetofile() void nsimsgfilterlist::savetofile ( in nsioutputstream stream ) parsecondition() void nsimsgfilterlist::parsecondition ( in nsimsgfilter afilter, in string condition ) savetodefaultfile() void nsimsgfilterlist::savetodefaultfile ( ) applyfilterstohdr() void nsimsgfilterlist::applyfilterstohdr ( in nsmsgfiltertypetype filtertype, in nsimsgdbhdr ...
...urelogfile() void nsimsgfilterlist::ensurelogfile () flushlogifnecessary () void nsimsgfilterlist::flushlogifnecessary () const const nsmsgfilterfileattribvalue nsimsgfilterlist::attribnone = 0 const nsmsgfilterfileattribvalue nsimsgfilterlist::attribversion = 1 const nsmsgfilterfileattribvalue nsimsgfilterlist::attriblogging = 2 const nsmsgfilterfileattribvalue nsimsgfilterlist::attribname = 3 const nsmsgfilterfileattribvalue nsimsgfilterlist::attribenabled = 4 const nsmsgfilterfileattribvalue nsimsgfilterlist::attribdescription = 5 const nsmsgfilterfileattribvalue nsimsgfilterlist::attribtype = 6 const nsmsgfilterfileattribvalue nsimsgfilterlist::attribscriptfile = 7 const nsmsgfilterfileattribvalue nsimsgfilterlist::attribaction = 8 const nsmsgfilterfileattribvalue ns...
nsIMsgProtocolInfo
t type can perform biff during startup.
... boolean true if the biff should be enabled by default for the account type.
...fault for the account type.
nsIProxyInfo
proxy will not be used again for this many seconds.
...ko 1.8 type was available by the type method.
... constants the following "proxy flags" may be bit-wise combined to construct the flags attribute defined on this interface.
nsIScriptError2
ow with which the error is associated.
...indow id with which the error is associated.
...specific zero time to the time the message was created.
nsIStringBundleOverride
.getservice(components.interfaces.nsistringbundleoverride); note: you should never need to use this service directly.
... all override keys for a given string bundle.
...ng url ); parameters url the url of the original string bundle whose keys are to be overridden.
nsIStringBundleService
undle() nsistringbundle createbundle( in string aurlspec ); parameters aurlspec the url of the properties file to load.
...createbundle( in string aurlspec ); parameters aurlspec the url of the properties file to load.
...cale/global.properties return value a string bundle corresponding to the properties file.
nsITaggingService
atags); nsivariant geturisfortag(in astring atag); nsivariant gettagsforuri(in nsiuri auri, [optional] out unsigned long length, [retval, array, size_is(length)] out wstring atags); attributes attribute type description alltags nsivariant retrieves all tags used to tag uris in the data-base (sorted by name).
...r the given uri are ignored.
..., [retval, array, size_is(length)] out wstring atags ); parameters auri the uri for which to return the tags.
nsIUpdate
e update is a security update.
...urity update.
...ate, a more seriously-worded user interface message is used to present the update to the user.
nsIWebProgressListener
terwindowid; // browser is now the <xul:browser> that saw the web progress activity // occur.
... "nsisupportsweakreference"]), onstatechange: function(awebprogress, arequest, aflag, astatus) { let win = awebprogress.domwindow; let outerwindowid = win.queryinterface(ci.nsiinterfacerequestor) .getinterface(ci.nsidomwindowutils) .outerwindowid; sendasyncmessage("myaddonmessage", { name: "onstatechange", flag: aflag, status: astatus, }); }, onlocationchange: function(aprogress, arequest, auri, aflag) { let win = awebprogress.domwindow; let outerwindowid = win.queryinterface(ci.nsiinterfacerequestor) .getinterface(ci.nsidomwindowutils) .outerwindowid; se...
... status: astatus, }); }, onlocationchange: function(aprogress, arequest, auri, aflag) { let win = awebprogress.domwindow; let outerwindowid = win.queryinterface(ci.nsiinterfacerequestor) .getinterface(ci.nsidomwindowutils) .outerwindowid; sendasyncmessage("myaddonmessage", { name: "onlocationchange", outerwindowid: outerwindowid, uri: auri.spec, charset: auri.charset, flag: aflag, }); }, // for definitions of the remaining functions see related documentation onprogresschange: function(awebprogress, arequest, curself, maxself, curtot, maxtot) {}, onstatuschange: function(awebprogress, arequest, astatu...
nsIXPCException
js/src/xpconnect/idl/xpcexception.idlscriptable these exception objects are the preferred types of exceptions when implementing xpcom interfaces in javascript.
...1.0) method overview void initialize(in string amessage, in nsresult aresult, in string aname, in nsistackframe alocation, in nsisupports adata, in nsiexception ainner); xpcexjsval stealjsval(); native code only!
...tion, in nsisupports adata, in nsiexception ainner); xpcexjsval stealjsval(); native code only!
nsMsgFolderFlagType
defined in comm-central/ mailnews/ base/ public/ nsmsgfolderflags.idl typedef unsigned long nsmsgfolderflagtype; /// flags about a folder or a newsgroup.
....) */ const nsmsgfolderflagtype directory = 0x00000008; /** whether the children of this folder are currently hidden in the listing.
...oup bit set, and do * not have the nsmsgfolderflags::directory or * nsmsgfolderflags::elided bits set.
nsStaticModuleInfo
summary this data structure is used by ns_initxpcom3 to specify static xpcom modules.
... summary this data structure is used by ns_initxpcom3 to specify static xpcom modules.
... summary this data structure is used by ns_initxpcom3 to specify static xpcom modules.
XPCOM Thread Synchronization
ompare with approved code.
...k, "foo condvar") { } nsresult init() { // ...
...tounlock au(mlock); } am.wait(); pr_notifycondvar(mcvar); } new usage using namespace mozilla; concurrentmethod() { mutexautolock al(mlock); monitorautoenter am(mmonitor); if (needexpensivecomputation()) { mutexautounlock au(mlock); } am.wait(); mcvar->notify(); } mozilla synchronization api reference the mozilla:: namespace exports the following synchronization primitives.
Troubleshooting XPCOM components registration
ail: a component that is a binary (shared library) fails to load a javascript component has parsing errors the shared library loaded correctly, but registration was not successful did registration succeed?
...mozilla.org, use the gecko sdk (and not your own compile of trunk firefox, etc.).
... you can provide command line parameters and click ok to start the application.
Creating a gloda message query
this content covers features introduced in thunderbird 3 this page describes how to programmatically create a message query using gloda, thunderbird's global database.
...e2, ...): constrain to messages with attachments among the given mime types.
...ments among the given mime types.
Mail and RDF
and last updated in 1999.
... rdf documentation for now.) from an rdf resource, it is possible to queryinterface() to the appropriate mail/news object, and then access information from there.
...o queryinterface() to the appropriate mail/news object, and then access information from there.
The libmime module
the definition of mime_superclass is just to move most of the knowlege of the exact class hierarchy up to the file's header, instead of it being scattered through the various methods; see below.
...nobody outside of this file needs to reference them by name; all references to these routines should be through the class object.
...perclass's object.
Use SQLite
if you'd like to use an sqlite database in your extension you'll need to look over the storage docs for an api reference, however this code should get you started.
...'ve inserted you can query the tbird.sqlite file using regular sqlite programs.
... dbconnection = this._dbcreate(dbservice, dbfile); else { dbconnection = dbservice.opendatabase(dbfile); } this.dbconnection = dbconnection; }, _dbcreate: function(adbservice, adbfile) { var dbconnection = adbservice.opendatabase(adbfile); this._dbcreatetables(dbconnection); return dbconnection; }, _dbcreatetables: function(adbconnection) { for(var name in this.dbschema.tables) adbconnection.createtable(name, this.dbschema.tables[name]); }, }; window.addeventlistener("load", function(e) { tbirdsqlite.onload(e); }, false); this is another practical sample on how to handle opendatabase and sql queries on the client side, using in-memory (blob) storage of 2mb: var db = opendatabase('mydb', '1.0', 'test db', 2 * 1024 * 1024); var msg; db.t...
Working with ArrayBuffers
wing example does not cast the pixelbuffer.
...0'); break; case 'android': case 'sunos': case 'netbsd': case 'dragonfly': lib = ctypes.open('libc.so'); break; case 'linux': lib = ctypes.open('libc.so.6'); break; case 'gnu/kfreebsd': lib = ctypes.open('libc.so.0.1'); break; default: //assume unix try { lib = ctypes.open(ctypes.libraryname('c')); } catch (ex) { throw new error('i dont know where to memcpy is defined on your operating system, "' + os.constants.sys.name + '"'); lib.close(); } } try { var memcpy = lib.declare('memcpy', os.constants.sys.name.tolowercase().indexof('win') == 0 ?
... var memcpy = lib.declare('memcpy', os.constants.sys.name.tolowercase().indexof('win') == 0 ?
Using js-ctypes
lo world", "title", mb_ok); lib.close(); in line 3, the user32.dll system library is loaded.
..., see below for core foundation for 64bit os x /* build a str255 ("pascal style") string from the passed-in string */ function makestr(str) { return string.fromcharcode(str.length) + str; } components.utils.import("resource://gre/modules/ctypes.jsm"); var carbon = ctypes.open("/system/library/frameworks/carbon.framework/carbon"); stdalert = carbon.declare("standardalert", /* function name */ ctypes.default_abi, /* abi type */ ctypes.int16_t, /* return type */ ctypes.int16_t, /* alert type */ ctypes.char.ptr, /* primary text */ ctypes.char.ptr, /* secondary text */ ctypes.uint32_t, /* alert par...
...pes to call a libc function on linux.
ArrayType
type description elementtype ctype the data type of the elements in an array type.
...menttype ctype the data type of the elements in an array type.
...ay type.
FunctionType
ype description abi one of the abi constants the abi of the function.
... one of the abi constants the abi of the function.
...nly.
PointerType
ating a type "pointer to 32-bit integer" looks like this: var intptrtype = new ctypes.pointertype(ctypes.int32_t); properties property type description targettype ctype the type of object the pointer points to.
...teger" looks like this: var intptrtype = new ctypes.pointertype(ctypes.int32_t); properties property type description targettype ctype the type of object the pointer points to.
...type(ctypes.int32_t); properties property type description targettype ctype the type of object the pointer points to.
Flash Activation: Browser Comparison - Plugins
cision to enable flash is made by users on a per-site basis.
...ng var plugin = document.getelementbyid('myplugin'); plugin.height = 0; plugin.width = 0; plugin.callpluginmethod(); } the html, by default, specifies the flash object to be a size that makes it visible, like this: <!-- give the plugin an initial size so it is visible --> <object type="application/x-shockwave-flash" data="myapp.swf" id="myplugin" width="300" height="300"> <param name="callback" value="plugincreated()"> </object> the callback parameter defined in the html can be called in flash using its flash.external.externalinterface api.
...y upon creation.
Initialization and Destruction - Plugins
np_full means that the instance was created by a separate file and is the primary content in the window.
...d by a separate file and is the primary content in the window.
...rameters from the embed element that called the plug-in.
Debug eval sources - Firefox Developer Tools
to eval() or as a string passed to the function constructor.
... console.log('called foo'); } //# sourceurl=my-foo.js`; eval(script); var button = document.getelementbyid("foo"); button.addeventlistener("click", foo, false); the evaluated string is given the name "my-foo.js" using the //# sourceurl directive.
...byid("foo"); button.addeventlistener("click", foo, false); the evaluated string is given the name "my-foo.js" using the //# sourceurl directive.
Debugger - Firefox Developer Tools
asuffusionofyellow) this method is never called.
...he array.
...of debuggee globals.
Waterfall - Firefox Developer Tools
rizontal bars, laid out in a waterfall to reflect the serial nature of the browser's execution.
...cts.
...arbage collection for more details.
AnimationEvent.initAnimationEvent() - Web APIs
rusted.
... animationstart the animation has started.
... animationend the animation completed.
AnimationEvent - Web APIs
x" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">animationevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor animationevent() creates an animationevent event with the given parameters.
...text-anchor="middle" alignment-baseline="middle">animationevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor animationevent() creates an animationevent event with the given parameters.
...unt of time the animation has been running, in seconds, when this event fired, excluding any time the animation was paused.
AudioTrackList.getTrackById() - Web APIs
he music, sound effects, and so forth.
...llows the game to disable a specific character's audio in order to adjust the movie's performance based on occurrences within the game; if the character's dialog isn't relevant, it gets left out.
...ly that would require some clever graphic design to make work, but...
AuthenticatorAttestationResponse.attestationObject - Web APIs
other specifications and registered in an iana registry.
...ked" "tpm" "android-key" "android-safetynet" "fido-u2f" "none" attstmt a an attestation statement that is of the format defined by "fmt".
...id-safetynet" "fido-u2f" "none" attstmt a an attestation statement that is of the format defined by "fmt".
AuthenticatorAttestationResponse.getTransports() - Web APIs
ues may be : "usb": the authenticator can be contacted via a removable usb link "nfc": the authenticator may be used over nfc (near field communication) "ble": the authenticator may be used over ble (bluetooth low energy) "internal": the authenticator is specifically bound to the client device (cannot be removed).
...enticator may be used over nfc (near field communication) "ble": the authenticator may be used over ble (bluetooth low energy) "internal": the authenticator is specifically bound to the client device (cannot be removed).
...field communication) "ble": the authenticator may be used over ble (bluetooth low energy) "internal": the authenticator is specifically bound to the client device (cannot be removed).
AuthenticatorAttestationResponse - Web APIs
attestation statement for a newly-created key pair.
...gettransports()secure context returns an array of strings describing which transport methods (e.g.
...s an array of strings describing which transport methods (e.g.
BluetoothDevice - Web APIs
stroke="#d4dde4" stroke-width="2px" /><text x="226" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">bluetoothdevice</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} interface interface bluetoothdevice { readonly attribute domstring id; readonly attribute domstring?
...void unwatchadvertisements(); readonly attribute boolean watchingadvertisements; }; bluetoothdevice implements eventtarget; bluetoothdevice implements bluetoothdeviceeventhandlers; bluetoothdevice implements characteristiceventhandlers; bluetoothdevice implements serviceeventhandlers; properties bluetoothdevice.id read only a domstring that uniquely identifies a device.
...tchingadvertisements; }; bluetoothdevice implements eventtarget; bluetoothdevice implements bluetoothdeviceeventhandlers; bluetoothdevice implements characteristiceventhandlers; bluetoothdevice implements serviceeventhandlers; properties bluetoothdevice.id read only a domstring that uniquely identifies a device.
Broadcast Channel API - Web APIs
tabs, frames, or iframes) and workers on the same origin.
...es or workers you wish to communicate with: they can “subscribe” to a particular channel by constructing their own broadcastchannel with the same name, and have bi-directional communication between all of them.
...ticular channel by constructing their own broadcastchannel with the same name, and have bi-directional communication between all of them.
CSS.supports() - Web APIs
Web › API › CSS › supports
the css.supports() method returns a boolean value indicating if the browser supports a given css feature, or not.
... the css.supports() method returns a boolean value indicating if the browser supports a given css feature, or not.
... the css.supports() method returns a boolean value indicating if the browser supports a given css feature, or not.
CSSKeyframesRule - Web APIs
the csskeyframesrule interface describes an object representing a complete set of keyframes for a css animation.
...interface describes an object representing a complete set of keyframes for a css animation.
...complete set of keyframes for a css animation.
CacheStorage.keys() - Web APIs
Web › API › CacheStorage › keys
the keys() method of the cachestorage interface returns a promise that will resolve with an array containing strings corresponding to all of the named cache objects tracked by the cachestorage object in the order they were created.
...to all of the named cache objects tracked by the cachestorage object in the order they were created.
...(function(keylist) { //do something with your keylist }); parameters none.
Basic animations - Web APIs
amount to move x += dx; } below is the <canvas> in which the image is scrolled.
... z-index: -1; } body { margin: 0; padding: 0; background-color: rgba(0,0,0,0.05); } </style> </head> <body> <canvas id="cw"></canvas> </body> </html> output snake game <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>nokia 1100:snake..member berries</title> </head> <body> <div class="keypress hide"> <div class="up" onclick="emit(38)">&#8593;</div> <div class="right" onclick="emit(39)">&#8594;</div> <div class="left" onclick="emit(37)">&#8592;</div> ...
... anima() { c.fillstyle = "rgba(0,0,0,0.11)", c.fillrect(0, 0, cc.width, cc.height), fa.foreach(t => t.put()), s.draw(), document.getelementbyid("time").innertext = tmz(), settimeout(() => { requestanimationframe(anima) }, fw) } function emit(t) { key.keydown(t) } function touch(t) { t.classlist.toggle("off"), document.getelementsbyclassname("keypress")[0].classlist.toggle("hide") } var t = new date + "", d = void 0, cc = document.getelementsbytagname("canvas")[0], c = cc.getcontext("2d"); key = {}, key.keydown = function (t) { var e = document.createevent("keyboardevent"); object.defineproperty(e, "keycode", { get: function () { return this.keycodeval ...
DOMConfiguration - Web APIs
note: this interface has never been supported in gecko, and has been removed from the dom specification.
... note: this interface has never been supported in gecko, and has been removed from the dom specification.
... parameters: "canonical-form", "cdata-sections", "check-character-normalization", "comments", "datatype-normalization", "element-content-whitespace", "entities", "error-handler", "infoset", "namespaces", "namespace-declarations", "normalize-characters","schema-location", "schema-type", "split-cdata-sections", "validate", "validate-if-schema", "well-formed" properties domconfiguration.parameternames read only is a domstringlist methods domconfiguration.cansetparameter() returns a boolean domconfiguration.getparameter() returns a domuserdata domconfiguration.setparameter() sets a parameter specification http://www.w3.org/tr/dom-level-3-cor...mconfiguration ...
DOMException() - Web APIs
the domexception() constructor returns a domexception object with a specified message and name.
... the domexception() constructor returns a domexception object with a specified message and name.
... the domexception() constructor returns a domexception object with a specified message and name.
DOMImplementation.createDocumentType() - Web APIs
the domimplementation.createdocumenttype() method returns a documenttype object which can either be used with domimplementation.createdocument upon document creation or can be put into the document via methods like node.insertbefore() or node.replacechild().
... the domimplementation.createdocumenttype() method returns a documenttype object which can either be used with domimplementation.createdocument upon document creation or can be put into the document via methods like node.insertbefore() or node.replacechild().
...ype() method returns a documenttype object which can either be used with domimplementation.createdocument upon document creation or can be put into the document via methods like node.insertbefore() or node.replacechild().
DataTransferItem.webkitGetAsEntry() - Web APIs
if the item described by the datatransferitem is a file, webkitgetasentry() returns a filesystemfileentry or filesystemdirectoryentry representing it.
...all files in a directory, readentries needs to be called repeatedly until it returns an empty array.
...der = item.createreader(); let directorycontainer = document.createelement("ul"); container.appendchild(directorycontainer); directoryreader.readentries(function(entries) { entries.foreach(function(entry) { scanfiles(entry, directorycontainer); }); }); } } scanfiles() begins by creating a new <li> element to represent the item being scanned, inserts the name of the item into it as its text content, and then appends it to the container.
DedicatedWorkerGlobalScope - Web APIs
the dedicatedworkerglobalscope object (the worker global scope) is accessible through the self keyword.
...rs, not typically associated with the worker global scope, but available on it, are listed in the javascript reference.
...ociated with the worker global scope, but available on it, are listed in the javascript reference.
Document.createAttribute() - Web APIs
the document.createattribute() method creates a new attribute node, and returns it.
... the document.createattribute() method creates a new attribute node, and returns it.
...ocument.createattribute() method creates a new attribute node, and returns it.
DocumentType - Web APIs
th="2px" /><text x="326" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">documenttype</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, node, and implements the childnode interface.
...ts: all;} properties inherits properties from its parent, node, and implements the childnode interface.
...nterface.
Examples of web and XML development using the DOM - Web APIs
example 2: image attributes <!doctype html> <html lang="en"> <head> <title>modifying an image border</title> <script> function setborderwidth(width) { document.getelementbyid("img1").style.borderwidth = width + "px"; } </script> </head> <body> <p> <img id="img1" src="image1.gif" style="border: 5px solid green;" width="100" height="100" alt="border test"> </p> <form name="formname"> <input type="button" value="make border 20px-wide" onclick="setborderwidth(20);" /> <input type="button" value="make border 5px-wide" onclick="setborderwidth(5);" /> </form> </body> </html> example 3: manipulating styles in this simple example, some basic style properties of an html paragraph element are accessed using the style object on the element and that object's css sty...
...ue of using a for..in loop to iterate over the properties of an object to get their values.
... var table = document.createelement('table'); var thead = table.createthead(); var row = thead.insertrow(-1); var lablelist = ['#', 'property', 'value']; var len = lablelist.length; for (var i=0; i<len; i++) { addcell(row, lablelist[i]); } var tbody = document.createelement('tbody'); table.appendchild(tbody); for (var p in e) { row = tbody.insertrow(-1); row.classname = (row.rowindex % 2)?
Using the W3C DOM Level 1 Core - Web APIs
3c's dom level 1 spec.
... one.
... change() { // document.getelementsbytagname("h2") returns a nodelist of the <h2> // elements in the document, and the first is number 0: var header = document.getelementsbytagname("h2").item(0); // the firstchild of the header is a text node: header.firstchild.data = "a dynamic document"; // now the header is "a dynamic document".
Element.attributes - Web APIs
the element.attributes property returns a live collection of all attribute nodes registered to the specified node.
...cified node.
...ipt"> function listattributes() { var paragraph = document.getelementbyid("paragraph"); var result = document.getelementbyid("result"); // first, let's verify that the paragraph has some attributes if (paragraph.hasattributes()) { var attrs = paragraph.attributes; var output = ""; for(var i = attrs.length - 1; i >= 0; i--) { output += attrs[i].name + "->" + attrs[i].value; } result.value = output; } else { result.value = "no attributes to show"; } } </script> </head> <body> <p id="paragraph" style="color: green;">sample paragraph</p> <form action=""> <p> <input type="button" value="show first attribute name and value" onclick="listattributes();"> <input id="result" type="text" value=""...
Element.slot - Web APIs
Web › API › Element › slot
the slot property of the element interface returns the name of the shadow dom slot the element is inserted in.
...ers can fill with their own markup (see using templates and slots for more information).
...d my-text.
EventSource - Web APIs
nts error fired when a connection to an event source failed to open.
...ent source failed to open.
...= "message: " + e.data; eventlist.appendchild(newelement); } each received event causes our eventsource object's onmessage event handler to be run.
FeaturePolicy.allowsFeature() - Web APIs
enables introspection of individual directives of the feature policy it is run on.
... individual directives of the feature policy it is run on.
...ature policy it is run on.
FeaturePolicy.features() - Web APIs
the features() method of the featurepolicy interface returns a list of names of all features supported by the user agent.
... the features() method of the featurepolicy interface returns a list of names of all features supported by the user agent.
...e featurepolicy interface returns a list of names of all features supported by the user agent.
FeaturePolicy.getAllowlistForFeature() - Web APIs
the getallowlistforfeature() method of the featurepolicy allows query of the allow list for a specific feature for the current feature policy.
... the getallowlistforfeature() method of the featurepolicy allows query of the allow list for a specific feature for the current feature policy.
...method of the featurepolicy allows query of the allow list for a specific feature for the current feature policy.
FeaturePolicy - Web APIs
the featurepolicy interface of the feature policy api represents the set of policies applied to the current execution context.
... the featurepolicy interface of the feature policy api represents the set of policies applied to the current execution context.
...cates whether or not a particular feature is enabled in the specified context.
File.File() - Web APIs
Web › API › File › File
the file() constructor creates a new file object instance.
... the file() constructor creates a new file object instance.
... the file() constructor creates a new file object instance.
GlobalEventHandlers.onanimationcancel - Web APIs
the onanimationcancel property of the globaleventhandlers mixin is the eventhandler for processing animationcancel events.
... taking place an infinite number of times, alternating direction each time, the box will glide back and forth between the two corners until stopped or the page is closed.
...ormation to a box on the user's screen.
GlobalEventHandlers.onanimationend - Web APIs
oxwidth)) } } since the css describes the animation but doesn't connect it to the box, we'll need some javascript code to do that.
...ormation to a box on the user's screen.
...s: let box = document.getelementbyid("box"); box.onanimationstart = function(event) { log("animation started", event); } box.onanimationend = function(event) { log("animation stopped", event); }; finally, we set up a handler for a click on the button that runs the animation: document.getelementbyid("play").addeventlistener("click", function(event) { document.getelementbyid("box").classname = "slideanimation"; event.target.style.display = "none"; }, false); this sets the class of the box we want to animate to the class that contains the animation description, then hides the play button because this example will only run the animation once.
GlobalEventHandlers.onanimationstart - Web APIs
oxwidth)) } } since the css describes the animation but doesn't connect it to the box, we'll need some javascript code to do that.
...ormation to a box on the user's screen.
...s: let box = document.getelementbyid("box"); box.onanimationstart = function(event) { log("animation started", event); } box.onanimationend = function(event) { log("animation stopped", event); }; finally, we set up a handler for a click on the button that runs the animation: document.getelementbyid("play").addeventlistener("click", function(event) { document.getelementbyid("box").classname = "slideanimation"; event.target.style.display = "none"; }, false); this sets the class of the box we want to animate to the class that contains the animation description, then hides the play button because this example will only run the animation once.
HTMLAnchorElement.download - Web APIs
the htmlanchorelement.download property is a domstring indicating that the linked resource is intended to be downloaded rather than displayed in the browser.
... the htmlanchorelement.download property is a domstring indicating that the linked resource is intended to be downloaded rather than displayed in the browser.
... the htmlanchorelement.download property is a domstring indicating that the linked resource is intended to be downloaded rather than displayed in the browser.
HTMLCanvasElement.mozGetAsFile() - Web APIs
the non-standard, firefox-specific the htmlcanvaselement method mozgetasfile() returns a memory-based file object representing the image contained in the canvas.
... the non-standard, firefox-specific the htmlcanvaselement method mozgetasfile() returns a memory-based file object representing the image contained in the canvas.
... the non-standard, firefox-specific the htmlcanvaselement method mozgetasfile() returns a memory-based file object representing the image contained in the canvas.
HTMLElement: change event - Web APIs
by selecting a file in the file picker for <input type="file">, etc.); when the element loses focus after its value was changed, but not commited (e.g., after editing the value of <textarea> or <input type="text">).
...{ const result = document.queryselector('.result'); result.textcontent = `you like ${event.target.value}`; }); result text input element for some elements, including <input type="text">, the change event doesn't fire until the control loses focus.
...nst result = document.queryselector('.result'); result.textcontent = `you like ${event.target.value}`; }); result text input element for some elements, including <input type="text">, the change event doesn't fire until the control loses focus.
HTMLEmbedElement - Web APIs
arent, htmlelement.
...align is a domstring representing an enumerated property indicating alignment of the element's contents with respect to the surrounding context.
...edelement.width is a domstring that reflects the width html attribute, containing the displayed width of the resource.
HTMLFontElement.color - Web APIs
the obsolete htmlfontelement.color property is a domstring that reflects the color html attribute, containing either a named color or a color specified in the hexadecimal #rrggbb format.
... the obsolete htmlfontelement.color property is a domstring that reflects the color html attribute, containing either a named color or a color specified in the hexadecimal #rrggbb format.
... the obsolete htmlfontelement.color property is a domstring that reflects the color html attribute, containing either a named color or a color specified in the hexadecimal #rrggbb format.
HTMLFontElement.face - Web APIs
the obsolete htmlfontelement.face property is a domstring that reflects the face html attribute, containing a comma-separated list of one or more font names.
...ault style, is rendered as the first font face that the client's browser supports.
...as the first font face that the client's browser supports.
HTMLHyperlinkElementUtils.password - Web APIs
the htmlhyperlinkelementutils.password property is a usvstring containing the password specified before the domain name.
... the htmlhyperlinkelementutils.password property is a usvstring containing the password specified before the domain name.
... the htmlhyperlinkelementutils.password property is a usvstring containing the password specified before the domain name.
HTMLIFrameElement - Web APIs
nt.height is a domstring that reflects the height html attribute, indicating the height of the frame.
... the height html attribute, indicating the height of the frame.
...ting the height of the frame.
HTMLOutputElement - Web APIs
th the control, reflecting the form html attribute if it is defined.
...rm html attribute if it is defined.
... 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.
HTMLParamElement - Web APIs
ht="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlparamelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
..." stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlparamelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlparamelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLTableElement - Web APIs
nt</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...iven, it is inserted in the tree as the first child of this element and the first <caption> that is a child of this element is removed from the tree, if any.
..., nor a <colgroup>, or as the last child if there is no such element, and the first <thead> that is a child of this element is removed from the tree, if any.
IDBCursor.source - Web APIs
Web › API › IDBCursor › source
that the cursor is iterating over.
...in this simple fragment we create a transaction, retrieve an object store, then use a cursor to iterate through all the records in the object store.
... 14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBDatabaseException - Web APIs
database operations.
... full support full support no support no supportnon-standard.
... full support no support no supportnon-standard.
IDBFactory - Web APIs
ble in web workers.
... no support no support compatibility unknown compatibility unknownexperimental.
... no support compatibility unknown compatibility unknownexperimental.
IDBIndex.isAutoLocale - Web APIs
olocale read-only property of the idbindex interface returns a boolean indicating whether the index had a locale value of auto specified upon its creation (see createindex()'s optionalparameters.) syntax var myindex = objectstore.index('index'); console.log(myindex.isautolocale); value a boolean.
...tstore using idbobjectstore.opencursor except that the returned records are sorted based on the index, not the primary key.
... transaction.objectstore('contactslist'); var myindex = objectstore.index('lname'); console.log(myindex.isautolocale); myindex.opencursor().onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var tablerow = document.createelement('tr'); tablerow.innerhtml = '<td>' + cursor.value.id + '</td>' + '<td>' + cursor.value.lname + '</td>' + '<td>' + cursor.value.fname + '</td>' + '<td>' + cursor.value.jtitle + '</td>' + '<td>' + cursor.value.company + '</td>' + '<td>' + cursor.value.email + '</td>' + '<td>' + cursor.value.phone + '</td>' + '<td>' + cursor.value.
IDBIndex.locale - Web APIs
Web › API › IDBIndex › locale
value specified upon its creation (see createindex()'s optionalparameters.) note that this property always returns the current locale being used in this index, in other words, it never returns "auto".
... objectstore using idbobjectstore.opencursor except that the returned records are sorted based on the index, not the primary key.
...tore = transaction.objectstore('contactslist'); var myindex = objectstore.index('lname'); console.log(myindex.locale); myindex.opencursor().onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var tablerow = document.createelement('tr'); tablerow.innerhtml = '<td>' + cursor.value.id + '</td>' + '<td>' + cursor.value.lname + '</td>' + '<td>' + cursor.value.fname + '</td>' + '<td>' + cursor.value.jtitle + '</td>' + '<td>' + cursor.value.company + '</td>' + '<td>' + cursor.value.email + '</td>' + '<td>' + cursor.value.phone + '</td>' + '<td>' + cursor.value.
IDBIndexSync - Web APIs
ort direction) raises (idbdatabaseexception); any put (in any value, in optional any key) raises (idbdatabaseexception); void remove (in any key) raises (idbdatabaseexception); attributes attribute type description keypath readonly domstring the key path of this index.
...exception); any put (in any value, in optional any key) raises (idbdatabaseexception); void remove (in any key) raises (idbdatabaseexception); attributes attribute type description keypath readonly domstring the key path of this index.
...ny value, in optional any key) raises (idbdatabaseexception); void remove (in any key) raises (idbdatabaseexception); attributes attribute type description keypath readonly domstring the key path of this index.
IDBObjectStore.openCursor() - Web APIs
idbobjectstore or idbindex has been deleted.
...oninactiveerror this idbobjectstore's transaction is inactive.
... full support 1.5 no support 1.5 — 7.0prefixed prefixed implemented with the vendor prefix: webkitlegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBVersionChangeEvent.oldVersion - Web APIs
the oldversion read-only property of the idbversionchangeevent interface returns the old version number of the database.
...ad-only property of the idbversionchangeevent interface returns the old version number of the database.
... full support 1.5 no support 1.5 — 7.0prefixed prefixed implemented with the vendor prefix: webkitlegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
ImageBitmapRenderingContext.transferFromImageBitmap() - Web APIs
the imagebitmaprenderingcontext.transferfromimagebitmap() method displays the given imagebitmap in the canvas associated with this rendering context.
... the imagebitmaprenderingcontext.transferfromimagebitmap() method displays the given imagebitmap in the canvas associated with this rendering context.
... the imagebitmaprenderingcontext.transferfromimagebitmap() method displays the given imagebitmap in the canvas associated with this rendering context.
ImageBitmapRenderingContext - Web APIs
gument to htmlcanvaselement.getcontext() or offscreencanvas.getcontext()) is "bitmaprenderer".
...) or offscreencanvas.getcontext()) is "bitmaprenderer".
...)) is "bitmaprenderer".
LocalFileSystem - Web APIs
he file system api gives you access to a sandboxed file system.
...systemcallback successcallback, in errorcallback errorcallback ); parameters type the storage type of the file system.
...cesscallback, in errorcallback errorcallback ); parameters type the storage type of the file system.
Location: password - Web APIs
Web › API › Location › password
the password property of the location interface is a usvstring containing the password specified before the domain name.
... the password property of the location interface is a usvstring containing the password specified before the domain name.
... the password property of the location interface is a usvstring containing the password specified before the domain name.
MediaDevices.getUserMedia() - Web APIs
h the user granted permission to use the matching devices, a hardware error occurred at the operating system, browser, or web page level which prevented access to the device.
...eo element.
...on(stream) { var video = document.queryselector('video'); // older browsers may not have srcobject if ("srcobject" in video) { video.srcobject = stream; } else { // avoid using this in new browsers, as it is going away.
MediaDevices.ondevicechange - Web APIs
updated list of devices, you'll have to use enumeratedevices().
...document.getelementbyid("startbutton").addeventlistener("click", function() { navigator.mediadevices.getusermedia({ video: { width: 160, height: 120, framerate: 30 }, audio: { samplerate: 44100, samplesize: 16, volume: 0.25 } }).then(stream => { videoelement.srcobject = stream; updatedevicelist(); }) .catch(err => log(err.name + ": " + err.message)); }, false); we set up global variables that contain references to the <ul> elements that are used to list the audio and video devices: let audiolist = document.getelementbyid("audiolist"); let videolist = document.getelementbyid("videolist"); getting and drawing the device list now let's take a look at updatedevicelist() itself.
...ion.
MediaMetadata.MediaMetadata() - Web APIs
the mediametadata() constructor creates a new mediametadata object.
... the mediametadata() constructor creates a new mediametadata object.
...he album, or collection, containing the media to be played.
MediaRecorder - Web APIs
an eventhandler called to handle the start event, which occurs when media recording starts.
...ground = "red"; record.style.color = "black"; } stop.onclick = function() { mediarecorder.stop(); console.log(mediarecorder.state); console.log("recorder stopped"); record.style.background = ""; record.style.color = ""; } mediarecorder.onstop = function(e) { console.log("data available after mediarecorder.stop() called."); var clipname = prompt('enter a name for your sound clip'); var clipcontainer = document.createelement('article'); var cliplabel = document.createelement('p'); var audio = document.createelement('audio'); var deletebutton = document.createelement('button'); clipcontainer.classlist.add('clip'); audio.setattribute('controls', ''); deletebutton.innerhtml = "delete"; ...
...our sound clip'); var clipcontainer = document.createelement('article'); var cliplabel = document.createelement('p'); var audio = document.createelement('audio'); var deletebutton = document.createelement('button'); clipcontainer.classlist.add('clip'); audio.setattribute('controls', ''); deletebutton.innerhtml = "delete"; cliplabel.innerhtml = clipname; clipcontainer.appendchild(audio); clipcontainer.appendchild(cliplabel); clipcontainer.appendchild(deletebutton); soundclips.appendchild(clipcontainer); audio.controls = true; var blob = new blob(chunks, { 'type' : 'audio/ogg; codecs=opus' }); chunks = []; var audiourl = url.createobjecturl(blob); audio.src = audiourl; console.log("rec...
MediaRecorderErrorEvent() - Web APIs
these yourself; they are delivered to your implementation of mediarecorder.onerror when errors occur while recording media.
...d to your implementation of mediarecorder.onerror when errors occur while recording media.
... describing the error object to be created.
Navigator.registerProtocolHandler() - Web APIs
ling this api.
...his function is called from a secure context.
...taxerror the %s placeholder is missing from the handler url.
NavigatorID.userAgent - Web APIs
ovides both in http headers and in response to this and other related methods on the navigator object.
...built on a formal structure which can be decomposed into several pieces of info.
... structure which can be decomposed into several pieces of info.
NavigatorID - Web APIs
the navigatorid interface contains methods and properties related to the identity of the browser.
...s methods and properties related to the identity of the browser.
... methods.
NavigatorPlugins.mimeTypes - Web APIs
returns a mimetypearray object, which contains a list of mimetype objects representing the mime types recognized by the browser.
... returns a mimetypearray object, which contains a list of mimetype objects representing the mime types recognized by the browser.
... returns a mimetypearray object, which contains a list of mimetype objects representing the mime types recognized by the browser.
Node.setUserData() - Web APIs
Web › API › Node › setUserData
the node.setuserdata() method allows a user to attach (or remove) data to an element, without needing to modify the dom.
...and equality tests in node.isequalnode() do not consider user data in making the assessment.
...longer available from web content.
PayerErrors.email - Web APIs
Web › API › PayerErrors › email
and how to correct it.
...it.
... be omitted from the payererrors object.
PaymentAddress.organization - Web APIs
the organization read-only property of the paymentaddress interface returns a string containing the name of the organization, firm, company, or institution at the address.
... the organization read-only property of the paymentaddress interface returns a string containing the name of the organization, firm, company, or institution at the address.
... the organization read-only property of the paymentaddress interface returns a string containing the name of the organization, firm, company, or institution at the address.
PaymentMethodChangeEvent.methodDetails - Web APIs
the read-only methoddetails property of the paymentmethodchangeevent interface is an object containing any data the payment handler may provide to describe the change the user has made to their payment method.
... payment handler may provide to describe the change the user has made to their payment method.
...ting that no additional details are available.
performance.getEntries() - Web APIs
the getentries() method returns a list of all performanceentry objects for the page.
... the getentries() method returns a list of all performanceentry objects for the page.
...mark("end"); // use getentries() to iterate through the each entry let p = performance.getentries(); for (var i=0; i < p.length; i++) { console.log("entry[" + i + "]"); check_performanceentry(p[i]); } // use getentriesbytype() to get all "mark" entries p = performance.getentriesbytype("mark"); for (let i=0; i < p.length; i++) { console.log ("mark only entry[" + i + "]: name = " + p[i].name + "; starttime = " + p[i].starttime + "; duration = " + p[i].duration); } // use getentriesbyname() to get all "mark" entries named "begin" p = performance.getentriesbyname("begin", "mark"); for (let i=0; i < p.length; i++) { console.log ("mark and begin entry[" + i + "]: name = " + p[i].name + "; starttime = " + p[i].starttime + "...
PerformanceMark - Web APIs
performancemark is an abstract interface for performanceentry objects with an entrytype of "mark".
...no,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">performancemark</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but it extends the following performanceentry properties by qualifying/constraining the properties as follows: performanceentry.entrytype returns "mark".
...="#4d4e53" text-anchor="middle" alignment-baseline="middle">performancemark</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but it extends the following performanceentry properties by qualifying/constraining the properties as follows: performanceentry.entrytype returns "mark".
PerformanceMeasure - Web APIs
performancemeasure is an abstract interface for performanceentry objects with an entrytype of "measure".
...space" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">performancemeasure</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but it extends the following performanceentry properties by qualifying/constrainting the properties as follows: performanceentry.entrytype returns "measure".
...53" text-anchor="middle" alignment-baseline="middle">performancemeasure</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but it extends the following performanceentry properties by qualifying/constrainting the properties as follows: performanceentry.entrytype returns "measure".
PerformanceObserver.observe() - Web APIs
the observe() method of the performanceobserver interface is used to specify the set of performance entry types to observe.
... the observe() method of the performanceobserver interface is used to specify the set of performance entry types to observe.
... "type" or "buffered" options.
PerformanceObserverEntryList.getEntriesByType() - Web APIs
"frame".
...entry types are listed in performanceentry.entrytype.
...+ "; starttime: " + pe.starttime + "; duration: " + pe.duration); } // create observer for all performance event types var observe_all = new performanceobserver(function(list, obs) { var perfentries; // print all entries perfentries = list.getentries(); for (var i=0; i < perfentries.length; i++) { print_perf_entry(perfentries[i]); } // print entries named "begin" with type "mark" perfentries = list.getentriesbyname("begin", "mark"); for (var i=0; i < perfentries.length; i++) { print_perf_entry(perfentries[i]); } // print entries with type "mark" perfentries = list.getentriesbytype("mark"); for (var i=0; i < perfentries.length; i++) { print_perf_entry(perfentries[i]); } }); // subscribe to all performance event types observe...
PerformanceResourceTiming - Web APIs
rformanceresourcetiming</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} note: this feature is available in web workers.
...eresourcetiming.redirectendread only a domhighrestimestamp immediately after receiving the last byte of the response of the last redirect.
...read only a domhighrestimestamp immediately before the browser starts to fetch the resource.
PerformanceServerTiming - Web APIs
ss the server metrics.
... in secure contexts (https) in some browsers.
...rite(''); return settimeout(_ => { response.end(); }, 1000) }; http.createserver(requesthandler).listen(3000).on('error', console.error); the performanceservertiming entries are now observable from javascript via the performanceresourcetiming.servertiming property: let entries = performance.getentriesbytype('resource'); console.log(entries[0].servertiming); // 0: performanceservertiming {name: "cache", duration: 23.2, description: "cache read"} // 1: performanceservertiming {name: "db", duration: 53, description: ""} // 2: performanceservertiming {name: "app", duration: 47.2, description: ""} specifications specification status comment server timingthe definition of 'performanceservertiming' in that specification.
Using the Permissions API - Web APIs
n is granted (which shows the map), or the positiondenied() function if permission is denied (which makes the "enable geolocation" button appear).
... (result.state == 'denied') { report(result.state); geobtn.style.display = 'inline'; } result.onchange = function() { report(result.state); } }); } function report(state) { console.log('permission ' + state); } handlepermission(); permission descriptors the permissions.query() method takes a permissiondescriptor dictionary as a parameter — this contains the name of the api you are interested in.
...missions.query() method, except that it causes an existing permission to be reverted back to its default state when the promise successfully resolves (which is usually prompt).
PublicKeyCredential.id - Web APIs
ded version of publickeycredential.rawid.
...n <iframe> for example.
...= publickeycredential.id value a domstring being the base64url encoded version of publickeycredential.rawid.
PublicKeyCredential.rawId - Web APIs
e available in an <iframe> for example.
...f the credentials.
... expected to be globally unique and is appointed for the current publickeycredential and its associated authenticatorassertionresponse.
PublicKeyCredential.response - Web APIs
henticatorresponse object containing the data a relying party's script will receive and which should be sent to the relying party's server in order to validate the demand for creation or fetching.
...ng party's server in order to validate the demand for creation or fetching.
...e the demand for creation or fetching.
PublicKeyCredential - Web APIs
if an authenticator bound to the platform is capable of verifying the user.
...of implementation, this method only resolves to true when windows hello is available on the system.
...esolves to true when windows hello is available on the system.
PublicKeyCredentialCreationOptions.attestation - Web APIs
icator (for instance, using an anonymization ca).
...t": the relying party wants to receive the attestation as generated by the authenticator.
...e the attestation as generated by the authenticator.
PublicKeyCredentialCreationOptions.authenticatorSelection - Web APIs
ential.isuserverifyingplatformauthenticatoravailable() which resolves to true when a user-verifiying platform authenticator is available.
...ble.
...authenticatorselection:{ authenticatorattachment: "cross-platform", requireresidentkey: true, userverification: "required" }, challenge: new uint8array(26) /* this actually is given from the server */, rp: { name: "example corp", id : "login.example.com" }, user: { id: new uint8array(26), /* to be changed for each user */ name: "jdoe@example.com", displayname: "john doe", }, pubkeycredparams: [ { type: "public-key", alg: -7 } ] }; navigator.credentials.create({ publickey }) .then(function (newcredentialinfo) { // send attestation response and client extensions // to the server to proceed with the registration // of the credential }).catch(function (err) { console.error(err); }); specifications specificati...
PublicKeyCredentialCreationOptions.challenge - Web APIs
challenge value a buffersource which is at least 16 bytes long.
... server which must be signed by the authenticator's private key and sent back (within the response) to the relying party's server for verification.
...uthenticator's private key and sent back (within the response) to the relying party's server for verification.
PublicKeyCredentialCreationOptions.extensions - Web APIs
nt extensions.
...t cause any failure, the extension simply will not be processed.
...mply will not be processed.
PublicKeyCredentialCreationOptions.timeout - Web APIs
edentialrequestoptions.timeout.
... milliseconds, giving the time to wait for the creation operation to complete.
...t for the creation operation to complete.
RTCConfiguration - Web APIs
candidates to be considered.
...roviding your own is identity key continuity—if you use the same certificate for subsequent calls, the remote peer can tell you're the same caller.
...->>> example the configuration below establishes two ice servers.
RTCDataChannel: error event - Web APIs
", err.sctpcausecode); } else { console.error(" unknown sctp error"); } break; case "dtls-failure": if (err.receivedalert) { console.error(" received dlts failure alert: ", err.receivedalert); } if (err.sentalert) { console.error(" sent dlts failure alert: ", err.receivedalert); } break; } // add source file name and line information console.error(" error in file ", err.filename, " at line ", err.linenumber, ", column ", err.columnnumber); }, false); the received event provides details in an rtcerror object called error; rtcerror is an extension of the domexception interface.
... dlts failure alert: ", err.receivedalert); } break; } // add source file name and line information console.error(" error in file ", err.filename, " at line ", err.linenumber, ", column ", err.columnnumber); }, false); the received event provides details in an rtcerror object called error; rtcerror is an extension of the domexception interface.
...rr.columnnumber); }, false); the received event provides details in an rtcerror object called error; rtcerror is an extension of the domexception interface.
RTCIceCandidate - Web APIs
neindex indicates the zero-based index number of the media description (as defined in rfc 4566) in the sdp with which the candidate is associated.
...s defined in rfc 4566) in the sdp with which the candidate is associated.
...ndidate as one of the strings from the rtcicecandidatetype enumerated type.
RTCIceServer.credentialType - Web APIs
ceserver.credentialtype; iceserver.credentialtype = newcredentialtype; value the permitted values are found in the rtcicecredentialtype enumerated string type: oauth the rtciceserver requires the use of oauth 2.0 to authenticate in order to use the ice server described.
...e server described.
...e described ice server.
RTCPeerConnection.createOffer() - Web APIs
e with a type field with the value "video-offer" to the other peer.
...e field with the value "video-offer" to the other peer.
...offer" to the other peer.
RTCPeerConnection: iceconnectionstatechange event - Web APIs
rty cantrickleicecandidates to false.
...ectionstatechange is set up to update a call state indicator by using the value of iceconnectionstate to create a string which corresponds to the name of a css class that we can assign to the status indicator to cause it to reflect the current state of the connection.
... indicator to cause it to reflect the current state of the connection.
RTCPeerConnection - Web APIs
tion.setconfiguration() method sets the current configuration of the rtcpeerconnection based on the values included in the specified rtcconfiguration object.
...nnection based on the values included in the specified rtcconfiguration object.
... obsolete method the following method was obsoleted long ago and was never implemented in all major browsers.
RTCStatsReport - Web APIs
the rtcstatsreport interface provides a statistics report obtained by calling one of the rtcpeerconnection.getstats(), rtcrtpreceiver.getstats(), and rtcrtpsender.getstats() methods.
...a: id a domstring which uniquely identifies the object which was inspected to produce this object based on rtcstats.
...ighrestimestamp object indicating the time at which the sample was taken for this statistics object.
RelativeOrientationSensor - Web APIs
onsensor.quaternion to rotate a visual model of a phone.
...rror.name == 'notreadableerror') { console.log("sensor is not available."); } }); sensor.start(); permissions example using orientation sensors requires requsting permissions for multiple device sensors.
...ilable."); } }); sensor.start(); permissions example using orientation sensors requires requsting permissions for multiple device sensors.
Using the Resource Timing API - Web APIs
es, see each interface's reference page and the references in the see also section.
... "resource" performance entries var resources = performance.getentriesbytype("resource"); if (resources === undefined || resources.length <= 0) { console.log("= calculate load times: there are no `resource` performance records"); return; } console.log("= calculate load times"); for (var i=0; i < resources.length; i++) { console.log("== resource[" + i + "] - " + resources[i].name); // redirect time var t = resources[i].redirectend - resources[i].redirectstart; console.log("...
... return; } var list = performance.getentriesbytype("resource"); if (list === undefined) { console.log("= display size data: performance.getentriesbytype() is not supported"); return; } // for each "resource", display its *size property values console.log("= display size data"); for (var i=0; i < list.length; i++) { console.log("== resource[" + i + "] - " + list[i].name); if ("decodedbodysize" in list[i]) console.log("...
SVGElement - Web APIs
iddle" alignment-baseline="middle">svgelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties also inherits properties from: documentandelementeventhandlers, element, elementcssinlinestyle, globaleventhandlers, htmlorforeignelement, svgelementinstance svgelement.datasetread only a domstringmap object which provides a list of key/value pairs of named data attributes which correspond to custom data attributes attached to the element.
...entandelementeventhandlers, element, elementcssinlinestyle, globaleventhandlers, htmlorforeignelement, svgelementinstance svgelement.datasetread only a domstringmap object which provides a list of key/value pairs of named data attributes which correspond to custom data attributes attached to the element.
...lement.datasetread only a domstringmap object which provides a list of key/value pairs of named data attributes which correspond to custom data attributes attached to the element.
SVGLength - Web APIs
Web › API › SVGLength
k" stroke-width="1" width="1cm" height="1cm" /> </svg> results on a desktop monitor (pixel units will be dpi-dependent): value: 37.7952766418457, valueinspecifiedunits: 6: 1, valueasstring: 1cm value: 26.66666603088379, valueinspecifiedunits 9: 20, valueasstring: 20pt value: 26.66666603088379, valueinspecifiedunits 8: 0.277777761220932, valueasstring: 0.277778in constants name value description svg_lengthtype_unknown 0 the unit type is not one of predefined unit types.
... svg_lengthtype_mm 7 a value was specified using the mm units defined in css2.
...ttype to be updated automatically to reflect this setting.
SVGMarkerElement - Web APIs
svg_marker_orient_angle = 2 svg_markerunits_unknown = 0 svg_markerunits_userspaceonuse = 1 svg_markerunits_strokewidth = 2 normative document svg 1.1 (2nd edition) constants orientation name value description svg_marker_orient_unknown 0 the marker orientation is not one of predefined types.
...attempt to define a new value of this type or to attempt to switch an existing value to this type.
... svg_markerunits_strokewidth 2 attribute markerunits is 'strokewidth'.
SVGPathSeg - Web APIs
= 15 pathseg_curveto_cubic_smooth_abs = 16 pathseg_curveto_cubic_smooth_rel = 17 pathseg_curveto_quadratic_smooth_abs = 18 pathseg_curveto_quadratic_smooth_rel = 19 normative document svg 1.1 (2nd edition) constants name value description pathseg_unknown 0 the unit type is not one of predefined types.
... pathseg_curveto_quadratic_smooth_abs 18 corresponds to an "absolute smooth quadratic curveto" (t) path data command.
... name type description pathsegtype unsigned short the type of the path segment as specified by one of the constants defined on this interface.
SVGTransform - Web APIs
type readonly float angle readonly svgmatrix matrix constants svg_transform_unknown = 0 svg_transform_matrix = 1 svg_transform_translate = 2 svg_transform_scale = 3 svg_transform_rotate = 4 svg_transform_skewx = 5 svg_transform_skewy = 6 normative document svg 1.1 (2nd edition) constants name value description svg_transform_unknown 0 the unit type is not one of predefined unit types.
... 1 a matrix(…) transformation svg_transform_translate 2 a translate(…) transformation svg_transform_scale 3 a scale(…) transformation svg_transform_rotate 4 a rotate(…) transformation svg_transform_skewx 5 a skewx(…) transformation svg_transform_skewy 6 a skewy(…) transformation properties name type description type unsigned short the type of the value as specified by one of the svg_transform_* constants defined on this interface.
...nts (b=0, c=0, e=0 and f=0).
ServiceWorkerGlobalScope: activate event - Web APIs
no cancelable no interface extendableevent event handler property serviceworkerglobalscope.onactivate examples the following snippet shows how you could use an activate event handler to upgrade a cache.
...ace extendableevent event handler property serviceworkerglobalscope.onactivate examples the following snippet shows how you could use an activate event handler to upgrade a cache.
...perty serviceworkerglobalscope.onactivate examples the following snippet shows how you could use an activate event handler to upgrade a cache.
ServiceWorkerGlobalScope.onactivate - Web APIs
r installation, when the page to be controlled by the service worker refreshes.
... by the service worker refreshes.
...eworkerglobalscope.onactivate = function(event) { ...
SpeechSynthesis: voiceschanged event - Web APIs
epopulate a list of voices that the user can choose between when the event fires.
... an addeventlistener method: var synth = window.speechsynthesis; synth.addeventlistener('voiceschanged', function() { var voices = synth.getvoices(); for(i = 0; i < voices.length ; i++) { var option = document.createelement('option'); option.textcontent = voices[i].name + ' (' + voices[i].lang + ')'; option.setattribute('data-lang', voices[i].lang); option.setattribute('data-name', voices[i].name); voiceselect.appendchild(option); } }); or use the onvoiceschanged event handler property: synth.onvoiceschanged = function() { var voices = synth.getvoices(); for(i = 0; i < voices.length ; i++) { var option = document.createelement('option'); option.textcontent = voices[i].name + ' (' + voices[i].lang + ')'; option.setattribute('data-lang', voices[i].la...
....appendchild(option); } }); or use the onvoiceschanged event handler property: synth.onvoiceschanged = function() { var voices = synth.getvoices(); for(i = 0; i < voices.length ; i++) { var option = document.createelement('option'); option.textcontent = voices[i].name + ' (' + voices[i].lang + ')'; option.setattribute('data-lang', voices[i].lang); option.setattribute('data-name', voices[i].name); voiceselect.appendchild(option); } } specifications specification status comment web speech apithe definition of 'speech synthesis events' in that specification.
SpeechSynthesis - Web APIs
object into a paused state.
... = document.queryselector('#pitch'); var pitchvalue = document.queryselector('.pitch-value'); var rate = document.queryselector('#rate'); var ratevalue = document.queryselector('.rate-value'); var voices = []; function populatevoicelist() { voices = synth.getvoices(); for(i = 0; i < voices.length ; i++) { var option = document.createelement('option'); option.textcontent = voices[i].name + ' (' + voices[i].lang + ')'; if(voices[i].default) { option.textcontent += ' -- default'; } option.setattribute('data-lang', voices[i].lang); option.setattribute('data-name', voices[i].name); voiceselect.appendchild(option); } } populatevoicelist(); if (speechsynthesis.onvoiceschanged !== undefined) { speechsynthesis.onvoiceschanged = populatevoicelist; } input...
...e', voices[i].name); voiceselect.appendchild(option); } } populatevoicelist(); if (speechsynthesis.onvoiceschanged !== undefined) { speechsynthesis.onvoiceschanged = populatevoicelist; } inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selectedoptions[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } utterthis.pitch = pitch.value; utterthis.rate = rate.value; synth.speak(utterthis); inputtxt.blur(); } specifications specification status comment web speech apithe definition of 'speechsynthesis' in that specification.
SpeechSynthesisUtterance: mark event - Web APIs
the mark event of the web speech api speechsynthesisutterance object is fired when the spoken utterance reaches a named ssml "mark" tag.
...hesisutterance object is fired when the spoken utterance reaches a named ssml "mark" tag.
... no interface speechsynthesisevent event handler property onmark examples you can use the mark event in an addeventlistener method: utterthis.addeventlistener('mark', function(event) { console.log('a mark was reached: ' + event.name); }); or use the onmark event handler property: utterthis.onmark = function(event) { console.log('a mark was reached: ' + event.name); } specifications specification status comment web speech apithe definition of 'speech synthesis utterance events' in that specification.
SpeechSynthesisUtterance.onboundary - Web APIs
hesis; var inputform = document.queryselector('form'); var inputtxt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...txt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...nt) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selectedoptions[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); utterthis.onboundary = function(event) { console.log(event.name + ' boundary reached after ' + event.elapsedtime + ' milliseconds.'); } inputtxt.blur(); } specifications specification status comment web speech apithe definition of 'onboundary' in that specification.
SpeechSynthesisUtterance - Web APIs
esisutterance.text gets and sets the text that will be synthesised when the utterance is spoken.
...ry fired when the spoken utterance reaches a word or sentence boundary.
...tterance speaking via the speechsynthesis.speak() method.
SpeechSynthesisVoice.default - Web APIs
or not (false.) note: for some devices, it might be the default voice for the voice's language.
...tax var amidefault = speechsynthesisvoiceinstance.default; value a boolean.
...lt = speechsynthesisvoiceinstance.default; value a boolean.
SpeechSynthesisVoice.lang - Web APIs
the lang read-only property of the speechsynthesisvoice interface returns a bcp 47 language tag indicating the language of the voice.
...iceinstance.lang; value a domstring representing the language of the device.
... value a domstring representing the language of the device.
SpeechSynthesisVoice.localService - Web APIs
oice options are provided by a remote service; it is possible that remote voices might have extra latency, bandwidth or cost associated with them, so such distinction may be useful.
...tance.localservice; value a boolean.
...e; value a boolean.
TransitionEvent.initTransitionEvent() - Web APIs
tionevent created that way are untrusted.
...pecific type of transition event that occurred.
...ccurred.
TransitionEvent - Web APIs
the transitionevent interface represents events providing information related to transitions.
... the transitionevent interface represents events providing information related to transitions.
...ertyname read only is a domstring containing the name css property associated with the transition.
URLSearchParams.append() - Web APIs
the append() method of the urlsearchparams interface appends a specified key/value pair as a new search parameter.
... the append() method of the urlsearchparams interface appends a specified key/value pair as a new search parameter.
... the append() method of the urlsearchparams interface appends a specified key/value pair as a new search parameter.
URLSearchParams.delete() - Web APIs
the delete() method of the urlsearchparams interface deletes the given search parameter and all its associated values, from the list of all search parameters.
... the delete() method of the urlsearchparams interface deletes the given search parameter and all its associated values, from the list of all search parameters.
... the delete() method of the urlsearchparams interface deletes the given search parameter and all its associated values, from the list of all search parameters.
URLSearchParams.getAll() - Web APIs
the getall() method of the urlsearchparams interface returns all the values associated with a given search parameter as an array.
... the getall() method of the urlsearchparams interface returns all the values associated with a given search parameter as an array.
... the getall() method of the urlsearchparams interface returns all the values associated with a given search parameter as an array.
URLSearchParams.set() - Web APIs
the set() method of the urlsearchparams interface sets the value associated with a given search parameter to the given value.
... the set() method of the urlsearchparams interface sets the value associated with a given search parameter to the given value.
... the set() method of the urlsearchparams interface sets the value associated with a given search parameter to the given value.
USB.getDevices() - Web APIs
Web › API › USB › getDevices
the getdevices method of the usb interface returns a promise that resolves with an array of usbdevice objects for paired attached devices.
...one.
...omise that resolves with an array of usbdevice objects.
USBDevice - Web APIs
Web › API › USBDevice
s and usbdevice.deviceprotocol.
...minor read only the patch version number of the device in a semantic versioning scheme.
... of the device in a semantic versioning scheme.
ValidityState.patternMismatch - Web APIs
ts the pattern attribute -- which means the <input> is of type text, tel, email, url, password, or search -- and the pattern value is set to a valid regular expression, if the value don't doesn't conform to the constraints set by the pattern value, the patternmismatch property will be true.
...the pattern value is set to a valid regular expression, if the value don't doesn't conform to the constraints set by the pattern value, the patternmismatch property will be true.
...et by the pattern value, the patternmismatch property will be true.
WebGL2RenderingContext.getActiveUniformBlockParameter() - Web APIs
the webgl2renderingcontext.getactiveuniformblockparameter() method of the webgl 2 api retrieves information about an active uniform block within a webglprogram.
...ontext.getactiveuniformblockparameter() method of the webgl 2 api retrieves information about an active uniform block within a webglprogram.
...of active uniforms in the uniform block.
WebGL2RenderingContext.getActiveUniforms() - Web APIs
the webgl2renderingcontext.getactiveuniforms() method of the webgl 2 api retrieves information about active uniforms within a webglprogram.
... the webgl2renderingcontext.getactiveuniforms() method of the webgl 2 api retrieves information about active uniforms within a webglprogram.
...rray of glint indicating the strides between the elements.
WebGL2RenderingContext.getFragDataLocation() - Web APIs
the webgl2renderingcontext.getfragdatalocation() method of the webgl 2 api returns the binding of color numbers to user-defined varying out variables.
... the webgl2renderingcontext.getfragdatalocation() method of the webgl 2 api returns the binding of color numbers to user-defined varying out variables.
... the webgl2renderingcontext.getfragdatalocation() method of the webgl 2 api returns the binding of color numbers to user-defined varying out variables.
WebGL2RenderingContext.getQueryParameter() - Web APIs
the webgl2renderingcontext.getqueryparameter() method of the webgl 2 api returns parameter information of a webglquery object.
... the webgl2renderingcontext.getqueryparameter() method of the webgl 2 api returns parameter information of a webglquery object.
...n of a webglquery object.
WebGL2RenderingContext.getSamplerParameter() - Web APIs
the webgl2renderingcontext.getsamplerparameter() method of the webgl 2 api returns parameter information of a webglsampler object.
... the webgl2renderingcontext.getsamplerparameter() method of the webgl 2 api returns parameter information of a webglsampler object.
...g the minimum level-of-detail value.
WebGL2RenderingContext.getSyncParameter() - Web APIs
the webgl2renderingcontext.getsyncparameter() method of the webgl 2 api returns parameter information of a webglsync object.
... the webgl2renderingcontext.getsyncparameter() method of the webgl 2 api returns parameter information of a webglsync object.
...ence).
WebGL2RenderingContext.getUniformIndices() - Web APIs
the webgl2renderingcontext.getuniformindices() method of the webgl 2 api retrieves the indices of a number of uniforms within a webglprogram.
... the webgl2renderingcontext.getuniformindices() method of the webgl 2 api retrieves the indices of a number of uniforms within a webglprogram.
... the webgl2renderingcontext.getuniformindices() method of the webgl 2 api retrieves the indices of a number of uniforms within a webglprogram.
WebGLRenderingContext.getActiveAttrib() - Web APIs
the webglrenderingcontext.getactiveattrib() method of the webgl api returns a webglactiveinfo object containing size, type, and name of a vertex attribute.
...ndex a gluint specifying the index of the vertex attribute to get.
...t specifying the index of the vertex attribute to get.
WebGLRenderingContext.getBufferParameter() - Web APIs
the webglrenderingcontext.getbufferparameter() method of the webgl api returns information about the buffer.
...e buffer object to another.
... this is either: gl.static_draw, gl.dynamic_draw, gl.stream_draw.
WebGLRenderingContext.getShaderParameter() - Web APIs
the webglrenderingcontext.getshaderparameter() method of the webgl api returns information about the given shader.
... the webglrenderingcontext.getshaderparameter() method of the webgl api returns information about the given shader.
...ating whether or not the shader is flagged for deletion.
WebGLRenderingContext.getVertexAttrib() - Web APIs
the webglrenderingcontext.getvertexattrib() method of the webgl api returns information about a vertex attribute at a given position.
... the webglrenderingcontext.getvertexattrib() method of the webgl api returns information about a vertex attribute at a given position.
...x.
WebGLRenderingContext - Web APIs
iewport coordinates.
...nderingcontext.texsubimage2d() updates a sub-rectangle of the current webgltexture.
...to support html5 canvas.</canvas> <canvas>your browser does not seem to support html5 canvas.</canvas> body { text-align : center; } canvas { display : inline-block; width : 120px; height : 80px; margin : auto; padding : 0; border : none; background-color : black; } window.addeventlistener("load", function() { "use strict" var firstcanvas = document.getelementsbytagname("canvas")[0], secondcanvas = document.getelementsbytagname("canvas")[1]; firstcanvas.width = firstcanvas.clientwidth; firstcanvas.height = firstcanvas.clientheight; [firstcanvas, secondcanvas].foreach(function(canvas) { var gl = canvas.getcontext("webgl") || canvas.getcontext("experimental-webgl"); if (!gl) { document.queryselector("p").innerhtml = "failed to...
Matrix math for the web - Web APIs
ces and how to use them with css transforms and the matrix3d transform type.
...nt has some additional uses that are out of scope for this article.
...h part of the matrix, a column and row number let c0r0 = matrix[ 0], c1r0 = matrix[ 1], c2r0 = matrix[ 2], c3r0 = matrix[ 3]; let c0r1 = matrix[ 4], c1r1 = matrix[ 5], c2r1 = matrix[ 6], c3r1 = matrix[ 7]; let c0r2 = matrix[ 8], c1r2 = matrix[ 9], c2r2 = matrix[10], c3r2 = matrix[11]; let c0r3 = matrix[12], c1r3 = matrix[13], c2r3 = matrix[14], c3r3 = matrix[15]; // now set some simple names for the point let x = point[0]; let y = point[1]; let z = point[2]; let w = point[3]; // multiply the point against each part of the 1st column, then add together let resultx = (x * c0r0) + (y * c0r1) + (z * c0r2) + (w * c0r3); // multiply the point against each part of the 2nd column, then add together let resulty = (x * c1r0) + (y * c1r1) + (z * c1r2) + (w * c1r3); // mult...
Writing WebSocket client applications - Web APIs
is assumed.
...king its onclose handler) to indicate the reason for the connection's closing.
...er list updates the code that interprets these incoming messages might look like this: examplesocket.onmessage = function(event) { var f = document.getelementbyid("chatbox").contentdocument; var text = ""; var msg = json.parse(event.data); var time = new date(msg.date); var timestr = time.tolocaletimestring(); switch(msg.type) { case "id": clientid = msg.id; setusername(); break; case "username": text = "<b>user <em>" + msg.name + "</em> signed in at " + timestr + "</b><br>"; break; case "message": text = "(" + timestr + ") <b>" + msg.name + "</b>: " + msg.text + "<br>"; break; case "rejectusername": text = "<b>your username has been set to <em>" + msg.name + "</em> because the name you chose is in use.</b><br>" ...
Writing WebSocket servers - Web APIs
it's worth mentioning here: your server must keep track of clients' sockets so you don't keep handshaking again with clients who have already completed the handshake.
...obey certain subprotocols, then naturally you'll need extra code on the server.
...ra code on the server.
Rendering and the WebXR frame animation callback - Web APIs
rm representing that position and orientation, then calling the xrreferencespace method getoffsetreferencespace().
...kbuffer to the display or xr device, along with anything else that's changed since the last time the screen was refreshed.
...izing by rendering in object-first order for an alternative approach that renders each object twice back-to-back, once for each eye, before moving on to the next object that makes up the scene for that frame; that is, rendering in object-first order.
Starting up and shutting down a WebXR session - Web APIs
sn't the place for a full article about the extension, there are some specific things worth mentioning.
...erencespace = await worlddata.session.requestreferencespace("unbounded"); worlddata.referencespace = referencespace.getoffsetreferencespace( new xrrigidtransform(worlddata.playerspawnposition, worlddata.playerspawnorientation)); worlddata.animationframerequestid = worlddata.session.requestanimationframe(ondrawframe); return worlddata; } for the purposes of this example, an object named worlddata gets created to encapsulate data about the world and rendering environment.
...ting the webgl context.
Attestation and Assertion - Web APIs
there are two different types of certificates used in webauthn for registration and authentication.
...r that contains a json representation of what the browser saw when being asked to authenticate.
...presentation of what the browser saw when being asked to authenticate.
Web Authentication API - Web APIs
ckeycredentialrequestoptions the options passed to credentialscontainer.get().
... reasons, web authentication calls (create() and get()) are cancelled if the browser window loses focus while the call is pending.
...)) are cancelled if the browser window loses focus while the call is pending.
Web Locks API - Web APIs
ker to asynchronously acquire a lock, hold it while work is performed, then release it.
...itional acquisition diagnostics to query the state of locks in an origin an escape hatch to protect against deadlocks locks are scoped to origins; the locks acquired by a tab from https://example.com have no effect on the locks acquired by a tab from https://example.org:8080 as they are separate origins.
...to also acquire lock a, neither request can be granted.
Window.speechSynthesis - Web APIs
nthesis.speak() method.
...'select'); function populatevoicelist() { voices = synth.getvoices(); for(i = 0; i < voices.length ; i++) { var option = document.createelement('option'); option.textcontent = voices[i].name + ' (' + voices[i].lang + ')'; if(voices[i].default) { option.textcontent += ' -- default'; } option.setattribute('data-lang', voices[i].lang); option.setattribute('data-name', voices[i].name); voiceselect.appendchild(option); } } populatevoicelist(); if (speechsynthesis.onvoiceschanged !== undefined) { speechsynthesis.onvoiceschanged = populatevoicelist; } inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selectedoptions[0].getattribute('data-n...
...populatevoicelist(); if (speechsynthesis.onvoiceschanged !== undefined) { speechsynthesis.onvoiceschanged = populatevoicelist; } inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(inputtxt.value); var selectedoption = voiceselect.selectedoptions[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); inputtxt.blur(); } specifications specification status comment web speech apithe definition of 'speechsynthesis' in that specification.
WorkerLocation - Web APIs
interface.
...ning the whole url of the script executed in the worker.
... urlutilsreadonly.hostname read only is a domstring containing the domain of the url of the script executed in the worker.
WorkerNavigator - Web APIs
k object and querying for an existing lock object.
...be used to query and update permission status of apis covered by the permissions api.
...status of apis covered by the permissions api.
XMLHttpRequest: abort event - Web APIs
the abort event is fired when a request has been aborted, for example because the program called xmlhttprequest.abort().
...aborted, for example because the program called xmlhttprequest.abort().
... no cancelable no interface progressevent event handler property onabort examples live example html <div class="controls"> <input class="xhr success" type="button" name="xhr" value="click to start xhr (success)" /> <input class="xhr error" type="button" name="xhr" value="click to start xhr (error)" /> <input class="xhr abort" type="button" name="xhr" value="click to start xhr (abort)" /> </div> <textarea readonly class="event-log"></textarea> css .event-log { width: 25rem; height: 4rem; border: 1px solid black; margin: .5rem; padding: .2rem; } input { width: 11rem; margin: .5rem; } js const xhrbuttonsuccess = document.queryselector('.xhr.success'); const xhrbuttonerror = document.queryselector('.xhr.
XMLHttpRequest: error event - Web APIs
the error event is fired when the request encountered an error.
... the error event is fired when the request encountered an error.
... no cancelable no interface progressevent event handler property onerror examples live example html <div class="controls"> <input class="xhr success" type="button" name="xhr" value="click to start xhr (success)" /> <input class="xhr error" type="button" name="xhr" value="click to start xhr (error)" /> <input class="xhr abort" type="button" name="xhr" value="click to start xhr (abort)" /> </div> <textarea readonly class="event-log"></textarea> css .event-log { width: 25rem; height: 4rem; border: 1px solid black; margin: .5rem; padding: .2rem; } input { width: 11rem; margin: .5rem; } js const xhrbuttonsuccess = document.queryselector('.xhr.success'); const xhrbuttonerror = document.queryselector('.xhr.
XMLHttpRequest: load event - Web APIs
the load event is fired when an xmlhttprequest transaction completes successfully.
...vent is fired when an xmlhttprequest transaction completes successfully.
... no cancelable no interface progressevent event handler property onload examples live example html <div class="controls"> <input class="xhr success" type="button" name="xhr" value="click to start xhr (success)" /> <input class="xhr error" type="button" name="xhr" value="click to start xhr (error)" /> <input class="xhr abort" type="button" name="xhr" value="click to start xhr (abort)" /> </div> <textarea readonly class="event-log"></textarea> css .event-log { width: 25rem; height: 4rem; border: 1px solid black; margin: .5rem; padding: .2rem; } input { width: 11rem; margin: .5rem; } js const xhrbuttonsuccess = document.queryselector('.xhr.success'); const xhrbuttonerror = document.queryselector('.xhr.
XMLHttpRequest: loadend event - Web APIs
the loadend event is fired when a request has completed, whether successfully (after load) or unsuccessfully (after abort or error).
...r successfully (after load) or unsuccessfully (after abort or error).
...o cancelable no interface progressevent event handler property onloadend examples live example html <div class="controls"> <input class="xhr success" type="button" name="xhr" value="click to start xhr (success)" /> <input class="xhr error" type="button" name="xhr" value="click to start xhr (error)" /> <input class="xhr abort" type="button" name="xhr" value="click to start xhr (abort)" /> </div> <textarea readonly class="event-log"></textarea> css .event-log { width: 25rem; height: 4rem; border: 1px solid black; margin: .5rem; padding: .2rem; } input { width: 11rem; margin: .5rem; } js const xhrbuttonsuccess = document.queryselector('.xhr.success'); const xhrbuttonerror = document.queryselector('.xhr.
XMLHttpRequest: loadstart event - Web APIs
the loadstart event is fired when a request has started to load data.
...e loadstart event is fired when a request has started to load data.
... cancelable no interface progressevent event handler property onloadstart examples live example html <div class="controls"> <input class="xhr success" type="button" name="xhr" value="click to start xhr (success)" /> <input class="xhr error" type="button" name="xhr" value="click to start xhr (error)" /> <input class="xhr abort" type="button" name="xhr" value="click to start xhr (abort)" /> </div> <textarea readonly class="event-log"></textarea> css .event-log { width: 25rem; height: 4rem; border: 1px solid black; margin: .5rem; padding: .2rem; } input { width: 11rem; margin: .5rem; } js const xhrbuttonsuccess = document.queryselector('.xhr.success'); const xhrbuttonerror = document.queryselector('.xhr.
XMLHttpRequest: progress event - Web APIs
the progress event is fired periodically when a request receives more data.
...gress event is fired periodically when a request receives more data.
... cancelable no interface progressevent event handler property onprogress examples live example html <div class="controls"> <input class="xhr success" type="button" name="xhr" value="click to start xhr (success)" /> <input class="xhr error" type="button" name="xhr" value="click to start xhr (error)" /> <input class="xhr abort" type="button" name="xhr" value="click to start xhr (abort)" /> </div> <textarea readonly class="event-log"></textarea> css .event-log { width: 25rem; height: 4rem; border: 1px solid black; margin: .5rem; padding: .2rem; } input { width: 11rem; margin: .5rem; } js const xhrbuttonsuccess = document.queryselector('.xhr.success'); const xhrbuttonerror = document.queryselector('.xhr.
XMLHttpRequest.setRequestHeader() - Web APIs
each time you call setrequestheader() after the first time you call it, the specified text is appended to the end of the existing header's content.
... after the first time you call it, the specified text is appended to the end of the existing header's content.
...d forbidden response header names.
XMLSerializer.serializeToString() - Web APIs
root node, in addition to node and attr: documenttype document documentfragment element comment text processinginstruction attr if any other type is encountered, a typeerror exception is thrown.
...ment element comment text processinginstruction attr if any other type is encountered, a typeerror exception is thrown.
...n is thrown.
XPathExpression.evaluate() - Web APIs
e returned.
... object representing the result of evaluating the xpath expression.
...rr if the expression is not legal according to the rules of the xpathevaluator, an xpathexception of type invalid_expression_err is raised.
msGetPropertyEnabled - Web APIs
use it on production sites facing the web: it will not work for every user.
...ites facing the web: it will not work for every user.
...not work for every user.
msPutPropertyEnabled - Web APIs
e web: it will not work for every user.
... every user.
...r.
Web APIs
Web › API
bluetoothremotegattdescriptor bluetoothremotegattserver bluetoothremotegattservice body broadcastchannel budgetservice budgetstate buffersource bytelengthqueuingstrategy bytestring c cdatasection css cssconditionrule csscounterstylerule cssgroupingrule cssimagevalue csskeyframerule csskeyframesrule csskeywordvalue cssmathproduct cssmathsum cssmathvalue cssmediarule cssnamespacerule cssnumericvalue cssomstring csspagerule csspositionvalue cssprimitivevalue csspseudoelement cssrule cssrulelist cssstyledeclaration cssstylerule cssstylesheet cssstylevalue csssupportsrule cssunitvalue cssunparsedvalue cssvalue cssvaluelist cssvariablereferencevalue cache cachestorage canvascapturemediastreamtrack canvasgradient canvasimagesource canvaspattern c...
...trackaudiosourceoptions mediastreamtrackevent mediatrackconstraints mediatracksettings mediatracksupportedconstraints merchantvalidationevent messagechannel messageevent messageport metadata mimetype mimetypearray mouseevent mousescrollevent mousewheelevent mutationevent mutationobserver mutationobserverinit mutationrecord n ndefmessage ndefreader ndefreadingevent ndefrecord ndefwriter namelist namednodemap navigationpreloadmanager navigator navigatorconcurrenthardware navigatorid navigatorlanguage navigatoronline navigatorplugins navigatorstorage networkinformation node nodefilter nodeiterator nodelist nondocumenttypechildnode notation notification notificationaction notificationevent notifyaudioavailableevent o oes_element_index_uint oes_fbo_render_mipmap oes_standa...
...funcgelement svgfefuncrelement svgfegaussianblurelement svgfeimageelement svgfemergeelement svgfemergenodeelement svgfemorphologyelement svgfeoffsetelement svgfepointlightelement svgfespecularlightingelement svgfespotlightelement svgfetileelement svgfeturbulenceelement svgfilterelement svgfilterprimitivestandardattributes svgfontelement svgfontfaceelement svgfontfaceformatelement svgfontfacenameelement svgfontfacesrcelement svgfontfaceurielement svgforeignobjectelement svggelement svggeometryelement svgglyphelement svgglyphrefelement svggradientelement svggraphicselement svghkernelement svgimageelement svglength svglengthlist svglineelement svglineargradientelement svgmpathelement svgmaskelement svgmatrix svgmeshelement svgmetadataelement svgmissingglyphelement svgnumbe...
ARIA live regions - Accessibility
tle">no planet selected</h2> <p id="planetdescription">select a planet to view its description</p> </div> <p><small>information courtesy <a href="https://en.wikipedia.org/wiki/solar_system#inner_solar_system">wikipedia</a></small></p> javascript const planets_info = { mercury: { title: 'mercury', description: 'mercury is the smallest and innermost planet in the solar system.
...ia.org/wiki/solar_system#inner_solar_system">wikipedia</a></small></p> javascript const planets_info = { mercury: { title: 'mercury', description: 'mercury is the smallest and innermost planet in the solar system.
...sun.
Using the alertdialog role - Accessibility
description this technique demonstrates how to use the alertdialog role.
... how to use the alertdialog role.
...e the element as a dialog in the operating system's accessibility api.
ARIA: gridcell role - Accessibility
code demonstrates a table-style grouping of information where the third and fourth columns have been removed.
...e third and fourth columns have been removed.
... header.
ARIA: Region role - Accessibility
he purpose of the content in the region, preferably with an aria-labelledby referencing a visible header.
...aria-labelledby use this attribute to label the region.
... to understand the overall layout of the page.
WAI-ARIA Roles - Accessibility
ates a section of a page that could easily stand on its own on a page, in a document, or on a website.
... rolethe aria tabpanel role indicatesaria: textbox rolethe textbox role is used to identify an element that allows the input of free-form text.
... role indicatesaria: textbox rolethe textbox role is used to identify an element that allows the input of free-form text.
Operable - Accessibility
ased or multi-point gestures are not required to operate any functionality.
...estures 2.5.2 pointer cancellation (a) added in 2.1 for functionality that can be operated using a single-pointer at least one of the following is true: no down-event, abort/undo, up reversal or essential.
...at can be operated using a single-pointer at least one of the following is true: no down-event, abort/undo, up reversal or essential.
Coordinate systems - CSS: Cascading Style Sheets
nction setcoords(e, type) { let idx = type + "x"; let idy = type + "y"; document.getelementbyid(idx).innertext = e[idx]; document.getelementbyid(idy).innertext = e[idy]; } a reference to the <div> inside the inner box which contains the paragraphs that will show the coordinate information is fetched into log.
...(idy).innertext = e[idy]; } a reference to the <div> inside the inner box which contains the paragraphs that will show the coordinate information is fetched into log.
...en obtaining the coordinates.
animation-fill-mode - CSS: Cascading Style Sheets
normal or alternate 0% or from reverse or alternate-reverse 100% or to both the animation will follow the rules for both forwards and backwards, thus extending the animation properties in both directions.
...ing to the original state (which is the default).
...he gray box!</p> <div class="demo"> <div class="growsandstays">this grows and stays big.</div> <div class="grows">this just grows.</div> </div> css .demo { border-top: 100px solid #ccc; height: 300px; } @keyframes grow { 0% { font-size: 0; } 100% { font-size: 40px; } } .demo:hover .grows { animation-name: grow; animation-duration: 3s; } .demo:hover .growsandstays { animation-name: grow; animation-duration: 3s; animation-fill-mode: forwards; } see css animations for more examples.
attr() - CSS: Cascading Style Sheets
Web › CSS › attr
o-elements, in which case the value of the attribute on the pseudo-element's originating element is returned.
...n which case the value of the attribute on the pseudo-element's originating element is returned.
...h, attr() computes it to an absolute length.
env() - CSS: Cascading Style Sheets
Web › CSS › env
erties.
...ut risking it being cut off by the shape of a non‑rectangular display.
...case the environment variable is not available.
font-variation-settings - CSS: Cascading Style Sheets
the font-variation-settings css property provides low-level control over variable font characteristics, by specifying the four letter axis names of the characteristics you want to vary, along with their values.
...he characteristics you want to vary, along with their values.
...gs: normal; /* set values for variable font axis names */ font-variation-settings: "xhgt" 0.7; /* global values */ font-variation-settings: inherit; font-variation-settings: initial; font-variation-settings: unset; values this property's value can take one of two forms: normal text is laid out using default settings.
paint() - CSS: Cascading Style Sheets
Web › CSS › paint
the paint() css function defines an <image> value generated with a paintworklet.
... the paint() css function defines an <image> value generated with a paintworklet.
... the paint() css function defines an <image> value generated with a paintworklet.
rotate - CSS: Cascading Style Sheets
Web › CSS › rotate
s property allows you to specify rotation transforms individually and independently of the transform property.
...e; /* angle value */ rotate: 90deg; rotate: 0.25turn; rotate: 1.57rad; /* x, y, or z axis name plus angle */ rotate: x 90deg; rotate: y 0.25turn; rotate: z 1.57rad; /* vector plus angle value */ rotate: 1 1 1 90deg; values angle value an <angle> specifying the angle to rotate the affected element through, around the z axis.
...e: 90deg; rotate: 0.25turn; rotate: 1.57rad; /* x, y, or z axis name plus angle */ rotate: x 90deg; rotate: y 0.25turn; rotate: z 1.57rad; /* vector plus angle value */ rotate: 1 1 1 90deg; values angle value an <angle> specifying the angle to rotate the affected element through, around the z axis.
Using HTML sections and outlines - Developer guides
elements used in sectioning html body element (<body>) defines all the content of a document.
...ent.
...ot necessarily positioned at the beginning of a page or section.
HTML attribute: accept - HTML: Hypertext Markup Language
multiple> </p> note the last example allows you to select multiple iamges.
..., separated by commas.
...mera when this is used.) accept=".doc,.docx,.xml,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document" — accept anything that smells like an ms word document.
HTML attribute: required - HTML: Hypertext Markup Language
nge defaults to the midpoint between min and max -- with min and max defaulting to 0 and 100 respectively in most browsers if not declared -- so always has a value.
...he attribute set match the :optional pseudo-class.
...of a same named group of radio buttons, if a single radio button in the group has the required attribute, a radio button in that group must be check, though it doesn't have to be the one with the attribute is applied.
<input type="color"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › color
<input> elements of type color provide a user interface element that lets a user specify a color, either by using a visual color picker interface or by entering the color into a text field in #rrggbb hexadecimal format.
...n rgb color in hexadecimal format.
...olor picker (if any) will also default to that color: <input type="color" value="#ff0000"> if you don't specify a value, the default is #000000, which is black.
<link>: The External Resource Link element - HTML: Hypertext Markup Language
Web › HTML › Element › link
referrer will be the origin of the page, which is roughly the scheme, the host, and the port.
...ing to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer's path.
...rent site.
<u>: The Unarticulated Annotation (Underline) element - HTML: Hypertext Markup Language
Web › HTML › Element › u
s restored in html 5 with a new, semantic, meaning: to mark text as having some form of non-textual annotation applied.
... new, semantic, meaning: to mark text as having some form of non-textual annotation applied.
...note titles of books.
HTML elements reference - HTML: Hypertext Markup Language
Web › HTML › Element
for its nearest sectioning content or sectioning root element.
...be displayed as superscript for solely typographical reasons.
...gh a popup menu.
Link types - HTML: Hypertext Markup Language
ener property on the opened window (it returns null).
...ded dns-prefetch, preconnect, and prerender values.
...ification.
Data URLs - HTTP
data urls, urls prefixed with the data: scheme, allow content creators to embed small files inline in documents.
...stem) if wsl is activated.
...ole: agvsbg8= bash -c "echo -n hello`|base64" # outputs to console: agvsbg8= # the backtick (`) is used to escape the piping (|) character here common problems this section describes problems that commonly occur when creating and using data urls.
Reason: invalid token ‘xyz’ in CORS header ‘Access-Control-Allow-Headers’ - HTTP
reason reason: invalid token ‘xyz’ in cors header ‘access-control-allow-headers’ what went wrong?
...t that was sent by the server includes an access-control-allow-headers header which includes at least one invalid header name.
...eflight request; it lets the client know which http headers are permitted in cors requests.
Reason: invalid token ‘xyz’ in CORS header ‘Access-Control-Allow-Methods’ - HTTP
reason reason: invalid token ‘xyz’ in cors header ‘access-control-allow-methods’ what went wrong?
...allow-methods’ what went wrong?
...quest methods it supports for cors requests.
Content-Location - HTTP
cation indicates the url of a redirect, while content-location indicates the direct url to use to access the resource, without further content negotiation in the future.
... where the new post is with content-location: http/1.1 201 created content-type: text/plain; charset=utf-8 content-location: /my-first-blog-post ✅ success!
... charset=utf-8 content-location: /my-first-blog-post ✅ success!
CSP: form-action - HTTP
csp version 2 directive type navigation directive default-src fallback no.
...ecurity-policy "form-action 'none'; </ifmodule> nginx configuration add_header content-security-policy "form-action 'none';" violation case using a <form> element with an action set to inline javascript will result in a csp violation.
...icy "form-action 'none'; </ifmodule> nginx configuration add_header content-security-policy "form-action 'none';" violation case using a <form> element with an action set to inline javascript will result in a csp violation.
CSP: navigate-to - HTTP
csp version 3 directive type navigation directive default-src fallback no.
...olation report.
...ort.
CSP: report-uri - HTTP
ified uri.
...ly for more information and examples.
... to the log file, sends an email to an administrator: <?php // start configure $log_file = dirname(__file__) .
Feature-Policy - HTTP
the http feature-policy header provides a mechanism to allow and deny the use of browser features in its own frame, and in content within any <iframe> elements in the document.
...is header is still in an experimental state, and is subject to change at any time.
...spec, and this article will eventually be updated to reflect that change.
If-Modified-Since - HTTP
ious request will contain the date of last modification.
...ation.
...et or head.
If-Range - HTTP
Web › HTTP › Headers › If-Range
ndition is not fulfilled, the full resource is sent back, with a 200 ok status.
...ce is sent back, with a 200 ok status.
...idden header name no syntax if-range: <day-name>, <day> <month> <year> <hour>:<minute>:<second> gmt if-range: <etag> directives <etag> an entity tag uniquely representing the requested resource.
If-Unmodified-Since - HTTP
used to implement an optimistic concurrency control, like done by some wikis: editions are rejected if the stored document has been modified since the original has been retrieved.
... like done by some wikis: editions are rejected if the stored document has been modified since the original has been retrieved.
...n modified since the original has been retrieved.
Last-Modified - HTTP
te and time at which the origin server believes the resource was last modified.
...a validator to determine if a resource received or stored is the same.
...curate than an etag header, it is a fallback mechanism.
Referer - HTTP
Web › HTTP › Headers › Referer
tions.
...ed http request is used and the referring page was received with a secure protocol (https).
... referring page was received with a secure protocol (https).
Server-Timing - HTTP
the server-timing header communicates one or more metrics and descriptions for a given request-response cycle.
...ed to surface any backend server timing metrics (e.g.
...r tools in the user's browser or in the performanceservertiming interface.
Trailer - HTTP
Web › HTTP › Headers › Trailer
lows the sender to include additional fields at the end of chunked messages in order to supply metadata that might be dynamically generated while the message body is sent, such as a message integrity check, digital signature, or post-processing status.
...s at the end of chunked messages in order to supply metadata that might be dynamically generated while the message body is sent, such as a message integrity check, digital signature, or post-processing status.
...ages in order to supply metadata that might be dynamically generated while the message body is sent, such as a message integrity check, digital signature, or post-processing status.
User-Agent - HTTP
user-agent request header is a characteristic string that lets servers and network peers identify the application, operating system, vendor, and/or version of the requesting user agent.
...ferent web pages or services to different browsers is usually a bad idea.
...ices to different browsers is usually a bad idea.
WWW-Authenticate - HTTP
the http www-authenticate response header defines the authentication method that should be used to gain access to a resource.
...d response.
...thenticate: <type> realm=<realm>[, charset="utf-8"] directives <type> authentication type.
Warning - HTTP
Web › HTTP › Headers › Warning
details.
...equired to be deleted from a stored response after validation.
...ss a full response is sent.
X-Forwarded-Host - HTTP
the x-forwarded-host (xfh) header is a de-facto standard header for identifying the original host requested by the client in the host http request header.
...d.
...ontent and by design it exposes privacy sensitive information, such as the ip address of the client.
Network Error Logging - HTTP
"network-error", "url": "https://example.com/previous-page", "body": { "elapsed_time": 338, "method": "post", "phase": "application", "protocol": "http/1.1", "referrer": "https://example.com/previous-page", "sampling_fraction": 1, "server_ip": "137.205.28.66", "status_code": 400, "type": "http.error", "url": "https://example.com/bad-request" } } dns name not resolved note that the phase is set to dns in this report and no server_ip is available to include.
...to dns in this report and no server_ip is available to include.
.../example.com/previous-page", "sampling_fraction": 1, "server_ip": "", "status_code": 0, "type": "dns.name_not_resolved", "url": "https://example-host.com/" } } the type of the network error may be one of the following pre-defined values from the specification, but browsers can add and send their own error types: dns.unreachable the user's dns server is unreachable dns.name_not_resolved the user's dns server responded but was unable to resolve an ip address for the requested uri.
Proxy servers and tunneling - HTTP
on the internet.
...tunnel article on wikipedia.
...ript function contained in the pac file defines the function: the auto-config file should be saved to a file with a .pac filename extension: proxy.pac and the mime type set to: application/x-ns-proxy-autoconfig the file consists of a function called findproxyforurl.
HTTP Public Key Pinning (HPKP) - HTTP
mitm attacks with forged certificates.
...c -base64 openssl req -in my-signing-request.csr -pubkey -noout | openssl pkey -pubin -outform der | openssl dgst -sha256 -binary | openssl enc -base64 openssl x509 -in my-certificate.crt -pubkey -noout | openssl pkey -pubin -outform der | openssl dgst -sha256 -binary | openssl enc -base64 the following command will extract the base64 encoded information for a website.
...primary==\"; pin-sha256=\"base64+backup==\"; max-age=5184000; includesubdomains") note: this requires the mod_setenv server.module loaded which can be included by the following if not already loaded.
A typical HTTP session - HTTP
Web › HTTP › Session
s.
... send the request (a user-agent is typically a web browser, but can be anything else, a crawler, for example).
...the header block.
JavaScript language resources - JavaScript
ecmascript is the scripting language that forms the basis of javascript.
... html june 2016 ecmascript 2016 language specification ecma-402 3rd edition html june 2016 ecmascript 2016 internationalization api specification ecma-262 8th edition html june 2017 ecmascript 2017 language specification ecma-402 4th edition html june 2017 ecmascript 2017 internationalization api specification es.next is a dynamic name that refers to whatever the next version is at the time of‍ writing.
...dynamic name that refers to whatever the next version is at the time of‍ writing.
Private class fields - JavaScript
#private_static_field static basepublicstaticmethod() { this.#private_static_field = 42 return this.#private_static_field } } class subclass extends baseclasswithprivatestaticfield { } let error = null try { subclass.basepublicstaticmethod() } catch(e) { error = e} console.assert(error instanceof typeerror) private instance fields private instance fields are declared with # names (pronounced "hash names"), which are identifiers prefixed with #.
... return this.#private_static_field } } class subclass extends baseclasswithprivatestaticfield { } let error = null try { subclass.basepublicstaticmethod() } catch(e) { error = e} console.assert(error instanceof typeerror) private instance fields private instance fields are declared with # names (pronounced "hash names"), which are identifiers prefixed with #.
...ublicstaticmethod() } catch(e) { error = e} console.assert(error instanceof typeerror) private instance fields private instance fields are declared with # names (pronounced "hash names"), which are identifiers prefixed with #.
SyntaxError: redeclaration of formal parameter "x" - JavaScript
the javascript exception "redeclaration of formal parameter" occurs when the same variable name occurs as a function parameter and is then redeclared using a let assignment in a function body again.
...of formal parameter" occurs when the same variable name occurs as a function parameter and is then redeclared using a let assignment in a function body again.
... argument in this case, the variable "arg" redeclares the argument.
getter - JavaScript
an object property to a function that will be called when that property is looked up.
...ub repository.
... the getter, you can just delete it: delete obj.latest; defining a getter on existing objects using defineproperty to append a getter to an existing object later at any time, use object.defineproperty().
Array.prototype.reduce() - JavaScript
flattened = [[0, 1], [2, 3], [4, 5]].reduce( function(accumulator, currentvalue) { return accumulator.concat(currentvalue) }, [] ) // flattened is [0, 1, 2, 3, 4, 5] alternatively written with an arrow function: let flattened = [[0, 1], [2, 3], [4, 5]].reduce( ( accumulator, currentvalue ) => accumulator.concat(currentvalue), [] ) counting instances of values in an object let names = ['alice', 'bob', 'tiff', 'bruce', 'alice'] let countednames = names.reduce(function (allnames, name) { if (name in allnames) { allnames[name]++ } else { allnames[name] = 1 } return allnames }, {}) // countednames is: // { 'alice': 2, 'bob': 1, 'tiff': 1, 'bruce': 1 } grouping objects by a property let people = [ { name: 'alice', age: 21 }, { name: 'max', age: 20 }, ...
...= ['alice', 'bob', 'tiff', 'bruce', 'alice'] let countednames = names.reduce(function (allnames, name) { if (name in allnames) { allnames[name]++ } else { allnames[name] = 1 } return allnames }, {}) // countednames is: // { 'alice': 2, 'bob': 1, 'tiff': 1, 'bruce': 1 } grouping objects by a property let people = [ { name: 'alice', age: 21 }, { name: 'max', age: 20 }, { name: 'jane', age: 20 } ]; function groupby(objectarray, property) { return objectarray.reduce(function (acc, obj) { let key = obj[property] if (!acc[key]) { acc[key] = [] } acc[key].push(obj) return acc }, {}) } let groupedpeople = groupby(people, 'age') // groupedpeople is: // { // 20: [ // { name: 'max', age: 20 }, // { name: 'jane', age: 20 } // ], // ...
...', age: 20 } ]; function groupby(objectarray, property) { return objectarray.reduce(function (acc, obj) { let key = obj[property] if (!acc[key]) { acc[key] = [] } acc[key].push(obj) return acc }, {}) } let groupedpeople = groupby(people, 'age') // groupedpeople is: // { // 20: [ // { name: 'max', age: 20 }, // { name: 'jane', age: 20 } // ], // 21: [{ name: 'alice', age: 21 }] // } bonding arrays contained in an array of objects using the spread operator and initialvalue // friends - an array of objects // where object field "books" is a list of favorite books let friends = [{ name: 'anna', books: ['bible', 'harry potter'], age: 21 }, { name: 'bob', books: ['war and peace', 'romeo and juliet'], age: 26 }, { name: 'alice', books: ...
AsyncFunction - JavaScript
he asyncfunction constructor creates a new async function object.
...ction object.
... comprising the function definition.
Error.prototype.toSource() - JavaScript
lue a string containing the source code of the error.
...aining the source code of the error.
...ng the source follows the structure of the error constructor.
GeneratorFunction - JavaScript
nstructor creates a new generator function object.
...n javascript, every generator function is actually a generatorfunction object.
...rising the function definition.
InternalError() constructor - JavaScript
the internalerror() constructor creates an error that indicates an error that occurred internally in the javascript engine.
... the internalerror() constructor creates an error that indicates an error that occurred internally in the javascript engine.
... the internalerror() constructor creates an error that indicates an error that occurred internally in the javascript engine.
InternalError - JavaScript
javascript engine.
...ngine.
...rge, e.g.: "too many switch cases", "too many parentheses in regular expression", "array initializer too large", "too much recursion".
Intl.DateTimeFormat() constructor - JavaScript
ec", " telu", "thai", "tibt".
...s also m).
... of the day.
Intl.NumberFormat() constructor - JavaScript
here is no default value; if the style is "currency", the currency property must be provided.
...tyle is "currency", the currency property must be provided.
... → '3,500 liters' currency formatting if the style is 'currency', a currency property must be provided.
Intl.getCanonicalLocales() - JavaScript
the intl.getcanonicallocales() method returns an array containing the canonical locale names.
...idated as structurally valid language tags.
...is interactive example is stored in a github repository.
JSON.parse() - JavaScript
text into a // javascript structure.
...r parameter if a reviver is specified, the value computed by parsing is transformed before being returned.
...untransformed values as-is, otherwise, they will be deleted from the resulting object.
handler.set() - JavaScript
ry.
...und to the handler.
...e name or symbol of the property to set.
RangeError() constructor - JavaScript
the rangeerror() constructor creates an error when a value is not in the set or range of allowed values.
... the rangeerror() constructor creates an error when a value is not in the set or range of allowed values.
... the rangeerror() constructor creates an error when a value is not in the set or range of allowed values.
RangeError - JavaScript
methods number.prototype.toexponential(), number.prototype.tofixed() or number.prototype.toprecision().
...ber.prototype.toexponential(), number.prototype.tofixed() or number.prototype.toprecision().
...d() or number.prototype.toprecision().
Symbol - JavaScript
regular expression.
...mbol' symbol type conversions some things to note when working with type conversion of symbols.
...typeerror (can't convert symbol to string).
WebAssembly - JavaScript
the webassembly javascript object acts as the namespace for all webassembly-related functionality.
... the webassembly javascript object acts as the namespace for all webassembly-related functionality.
... the webassembly javascript object acts as the namespace for all webassembly-related functionality.
throw - JavaScript
asi) as no line terminator between the throw keyword and the expression is allowed.
...w keyword and the expression is allowed.
...djust month number for array index (1 = jan, 12 = dec) var months = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']; if (months[mo] !== undefined) { return months[mo]; } else { throw new userexception('invalidmonthno'); } } try { // statements to try var mymonth = 15; // 15 is out of bound to raise the exception var monthname = getmonthname(mymonth); } catch (e) { monthname = 'unknown'; console.error(e.message, e.name); // pass exception object to err handler } another example of throwing an object the following example tests an input string for a u.s.
JavaScript typed arrays - JavaScript
arraybuffer the arraybuffer is a data type that is used to represent a generic, fixed-length binary data buffer.
...ning a single buffer with multiple views of different types, starting at different offsets into the buffer, you can interact with data objects containing multiple data types.
... structures from webgl, data files, or c structures you need to use while using js-ctypes.
dir - Web app manifests
Web › Manifest › dir
mandatory no the base direction in which to display direction-capable members of the manifest.
... no the base direction in which to display direction-capable members of the manifest.
... following values: auto — text direction is determined by the user agent ltr — left to right rtl — right to left the directionality-capable members are: name short_name description note: if the value is omitted or set to auto, the browser will use the unicode bidirectional algorithm to make a best guess about the text's direction.
shortcuts - Web app manifests
links to key tasks or pages within a web app.
...displayed by the operating system when a user engages with the web app's icon.
...e web app's icon.
Authoring MathML - MathML
/ thunderbird 31.0 / seamonkey 2.28), it was a bit tedious to setup math fonts, see the font instructions for mozilla 2.0.
...it tedious to setup math fonts, see the font instructions for mozilla 2.0.
...e as usual to provide woff fallback for latin modern and latin modern math.
<mpadded> - MathML
sets or increments the height.
...decrement (a length prefixed with "+" or "-") .
...ength or an increment/decrement (a length prefixed with "+" or "-") .
The "codecs" parameter in common media types - Web media technologies
ime types is vague.
...video (rfc 4393: mime type registrations for 3gpp2 multimedia files) audio/mp4 mp4 audio (rfc 4337: mime type registration for mpeg-4) video/mp4 mp4 audio (rfc 4337: mime type registration for mpeg-4) application/mp4 non-audiovisual media encapsulated in mpeg-4 each codec described by the codecs parameter can be specified either as simply the container's name (3gp, mp4, quicktime, etc.) or as the container name plus additional parameters to specify the codec and its configuration.
...sentation main) 42 reserved 43 saoc (spatial audio object coding)[1] 44 ld mpeg surround (low delay mpeg surround)[1] 45 and up reserved [1] saoc and ld mpeg surround are defined in iso/iec 14496-3:2009/amd.2:2010(e).
Privacy, permissions, and information security
e various security and privacy features available to users on the web, let's define some important terms.
..., in whole or in part, to track down and/or identify a specific person.
...r in part, to track down and/or identify a specific person.
Introduction to progressive web apps - Progressive web apps (PWAs)
overview: progressive web apps next this article provides an introduction to progressive web apps (pwas), discussing what they are and the advantages they offer over regular web apps.
..., and have metadata usable by browsers to give them special capabilities.
...ery mechanism that prevents snooping while simultaneously ensuring that content hasn’t been tampered with, as long as you take advantage of https and develop your apps with security in mind.
lang - SVG: Scalable Vector Graphics
Web › SVG › Attribute › lang
the lang attribute specifies the primary language used in contents and attributes containing text content of particular elements.
... the lang attribute specifies the primary language used in contents and attributes containing text content of particular elements.
...-character part for the language and an uppercase two-character part for the region or country, separated by a minus sign, e.g.
requiredFeatures - SVG: Scalable Vector Graphics
the requiredfeatures attribute takes a list of feature strings, with the individual strings separated by white space.
... y="10" height="25" width="230" /> <text x="20" y="27">requiredfeatures not supported</text> </g> </svg> usage notes value <list-of-features> default value true if not defined, false if null or empty string as value animatable no <list-of-features> this is a list of feature strings, separated using white space.
...upports the <script> element http://www.w3.org/tr/svg11/feature#animation the browser supports the <animate>, <set>, <animatemotion>, <animatetransform>, <animatecolor> and <mpath> elements http://www.w3.org/tr/svg11/feature#font the browser supports the <font>, <font-face>, <glyph>, <missing-glyph>, <hkern>, <vkern>, <font-face-src>, <font-face-uri>, <font-face-format> and <font-face-name> elements http://www.w3.org/tr/svg11/feature#basicfont the browser supports the <font>, <font-face>, <glyph>, <missing-glyph>, <hkern>, <font-face-src> and <font-face-name> elements http://www.w3.org/tr/svg11/feature#extensibility the browser supports the <foreignobject> element example svg <svg width="450" height="1170" xmlns="http://www.w3.org/2000/svg"> <!-- testing : http:...
viewTarget - SVG: Scalable Vector Graphics
the viewtarget attribute indicates the target object associated with the view.
... the viewtarget attribute indicates the target object associated with the view.
... the viewtarget attribute indicates the target object associated with the view.
xml:lang - SVG: Scalable Vector Graphics
the xml:lang attribute specifies the primary language used in contents and attributes containing text content of particular elements.
... the xml:lang attribute specifies the primary language used in contents and attributes containing text content of particular elements.
...racter part for the language and an uppercase two-character part for the region or country, separated by a minus sign, e.g.
Types of attacks - Web security
nt and your cookies are still valid (and there is no other validation), you will transfer money as soon as you load the html that contains this image.
...o other validation), you will transfer money as soon as you load the html that contains this image.
...s you load the html that contains this image.
function-available - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the function-available function determines if a given function is available and returns boolean true or false.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the function-available function determines if a given function is available and returns boolean true or false.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the function-available function determines if a given function is available and returns boolean true or false.
key - XPath
Web › XPath › Functions › key
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the key function returns a node-set of nodes that have the given value for the given key.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the key function returns a node-set of nodes that have the given value for the given key.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the key function returns a node-set of nodes that have the given value for the given key.
Functions - XPath
urther information on using xpath/xslt functions, please see the for further reading page.
...nformation on using xpath/xslt functions, please see the for further reading page.
...on on using xpath/xslt functions, please see the for further reading page.
<xsl:copy> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › copy
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:copy> element transfers a shallow copy (the node and any associated namespace node) of the current node to the output document.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:copy> element transfers a shallow copy (the node and any associated namespace node) of the current node to the output document.
... shallow copy (the node and any associated namespace node) of the current node to the output document.
The Netscape XSLT/XPath Reference - XSLT: Extensible Stylesheet Language Transformations
e-set (supported) xsl:call-template (supported) xsl:choose (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:val...
...(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-param (supported) axes ancestor ancestor-or-self attribute child descendant descendant-or-self following following-sibling namespace (not supported) parent preceding preceding-sibling self functions boolean() (supported) ceiling() (supported) concat() (supported) contains() (supported) count() (supported) current() (supported) document() (supported) element-available() (supported) false() (supported) floor() (supported) format-number() (supported) function-available() (supported) generate...
...(supported) concat() (supported) contains() (supported) count() (supported) current() (supported) document() (supported) element-available() (supported) false() (supported) floor() (supported) format-number() (supported) function-available() (supported) generate-id() (supported) id() (partially supported) key() (supported) lang() (supported) last() (supported) local-name() (supported) name() (supported) namespace-uri() (supported) normalize-space() (supported) not() (supported) number() (supported) position() (supported) round() (supported) starts-with() (supported) string() (supported) string-length() (supported) substring() (supported) substring-after() (supported) substring-before() (supported) sum() (supported) system-property() ...
Reddit Example - Archive of obsolete content
tion: the jquery library and the script that intercepts link clicks.
...prev').length) return; // intercept the click, passing it to the addon, which will load it in a tab.
self - Archive of obsolete content
ge.
...sages from the main add-on code: self.on("message", function(addonmessage) { // handle the message }); this takes two parameters: the name of the event, and the handler function.
l10n - Archive of obsolete content
o a json serializable object.
..., because any changes to the identifier values break all your .properties files.
simple-storage - Archive of obsolete content
storage and "jpm run" the simple storage module stores its data in your profile.
... } }); require("sdk/ui/button/action").actionbutton({ id: "delete", label: "delete", icon: "./delete.png", onclick: function() { delete ss.storage.value; console.log("deleting value"); } }); if you run it, you'll see that after clicking "read" after clicking "delete" gives you the expected output: info: undefined note that to run this add-on you'll have to save icon files named "write.png", "read.png", and "delete.png" to the add-on's "data" directory.
windows - Archive of obsolete content
require("sdk/windows").browserwindows; var example = windows.open("http://www.example.com"); require("sdk/ui/button/action").actionbutton({ id: "read", label: "read", icon: "./read.png", onclick: function() { example.close(); } }); this example uses the action button api, which is only available from firefox 29 onwards.
... url string string url to be opened in the new window.
content/worker - Archive of obsolete content
code to exchange messages using the port or postmessage apis.
...orkers run in the same process as web content and browser chrome, so code within workers can block the ui.
dev/panel - Archive of obsolete content
i can send messages to // the panel document here } }); alternatively, you can use the extend function: const { extend } = require("sdk/core/heritage"); function mypanel() {}; mypanel.prototype = extend(panel.prototype, { label: "my panel", tooltip: "...", ....
... a messageport connected to the debugger server, and returns a promise which is fulfilled with an object representing the root actor: volcan.connect(debuggee).then(gotroot); function gotroot(root) { // can use root actor here } actors actors in the remote debugging protocol are volcan.js objects.
lang/type - Archive of obsolete content
{} parameters value : object the variable to check.
...perties contained within the object.
stylesheet/style - Archive of obsolete content
t represents style modifications via stylesheet file(s) or/and css rules.
...uired options: name type uri string,array a string, or an array of strings, that represents local uri to stylesheet.
system/environment - Archive of obsolete content
access, set and clear environment variables.
... access, set and clear environment variables.
ui/button/action - Archive of obsolete content
more about this, see the api documentation for state().
...ions.
ui/sidebar - Archive of obsolete content
id: 'my-sidebar', title: 'my sidebar', url: require("sdk/self").data.url("sidebar.html"), onattach: function (worker) { console.log("attaching"); }, onshow: function () { console.log("showing"); }, onhide: function () { console.log("hiding"); }, ondetach: function () { console.log("detaching"); } }); parameters options : object required options: name type title string a title for the sidebar.
...submenu in firefox, and will be shown at the top of your sidebar when it is open.
Low-Level APIs - Archive of obsolete content
pts to interact with web content, such as panel and page-mod.
...s panel and page-mod.
Creating annotations - Archive of obsolete content
} } self.on('message', function onmessage(activation) { active = activation; if (!active) { resetmatchedelement(); } }); this selector listens for occurrences of the jquery mouseenter event.
...twhen: 'ready', contentscriptfile: [data.url('jquery-1.4.2.min.js'), data.url('selector.js')], onattach: function(worker) { worker.postmessage(annotatorison); selectors.push(worker); worker.port.on('show', function(data) { console.log(data); }); worker.on('detach', function () { detachworker(this, selectors); }); } }); make sure the name you use to load jquery matches the name of the jquery version you downloaded.
Developing for Firefox Mobile - Archive of obsolete content
unning add-ons on android you can develop your add-on as normal, as long as you restrict yourself to the supported modules.
... supported windows supported low-level apis /loader supported chrome supported console/plain-text supported console/traceback supported content/content supported content/loader supported content/mod supported content/worker supported core/heritage supported core/namespace supported core/promise supported event/core supported event/target supported frame/hidden-frame supported frame/utils supported io/byte-streams supported io/file supported io/text-streams supported lang/functional supported lang/type supported loader/cuddlefish ...
Cookies - Archive of obsolete content
reading existing cookies cookies for a given host, represented as nsicookie2 objects, can be enumerated as such: let enum = services.cookies.getcookiesfromhost("example.com"); while (enum.hasmoreelements()) { var cookie = enum.getnext().queryinterface(ci.nsicookie2); dump(cookie.host + ";" + cookie.name + "=" + cookie.value + "\n"); } all cookies, regardless of host, can be enumerated using services.cookies.enumerator rather than getcookiesfromhost().
...ar cookie = enum.getnext().queryinterface(ci.nsicookie2); dump(cookie.host + ";" + cookie.name + "=" + cookie.value + "\n"); } all cookies, regardless of host, can be enumerated using services.cookies.enumerator rather than getcookiesfromhost().
Finding window handles - Archive of obsolete content
tion) .queryinterface(ci.nsidocshelltreeitem) .treeowner .queryinterface(ci.nsiinterfacerequestor) .getinterface(ci.nsibasewindow); var nswindowstring = basewindow.nativehandle; components.utils.import('resource://gre/modules/ctypes.jsm'); var objc = ctypes.open(ctypes.libraryname('objc')); // types let id = ctypes.voidptr_t; let sel = ctypes.voidptr_t; // constants let nil = ctypes.voidptr_t(0); //common functions let sel_registername = objc.declare('sel_registername', ctypes.default_abi, sel, ctypes.char.ptr); let objc_msgsend = objc.declare('objc_msgsend', ctypes.default_abi, id, id, sel, '...'); /* https://developer.apple.com/library/mac/documentation/cocoa/referen...
...lare('sel_registername', ctypes.default_abi, sel, ctypes.char.ptr); let objc_msgsend = objc.declare('objc_msgsend', ctypes.default_abi, id, id, sel, '...'); /* https://developer.apple.com/library/mac/documentation/cocoa/reference/applicationkit/classes/nsapplication_class/index.html#//apple_ref/occ/instp/nsapplication/orderfront: * [nswindowptr orderfront:nil] */ var orderfront = sel_registername('orderfront:'); var nswindowptr = ctypes.voidptr_t(ctypes.uint64(nswindowstring)); var rez_orderfront = objc_msgsend(nswindowptr, orderfront, nil); console.log('rez_orderfront:', rez_orderfront, rez_orderfront.tostring()); objc.close(); unix under unix systems, the nativehandle holds a string address to a gdkwindow* (the asterik/star means pointer).
Examples and demos from articles - Archive of obsolete content
iate through the cleartimeout() function.
....
On page load - Archive of obsolete content
ad aevent.originaltarget.defaultview.addeventlistener("unload", function(event){ myextension.onpageunload(event); }, true); }, onpageunload: function(aevent) { // do something } }; current firefox trunk nightlies will fire the onpageload function for not only documents, but xul:images (favicons in tabbrowser).
..., pageshow, pagehide, load or unload.
Rosetta - Archive of obsolete content
("rosetta.translatescript() \u2013 unknown mime-type \"" + smimetype + "\": script ignored."); return; } var ocompiled = document.createelement("script"); oscript.parentnode.insertbefore(obaton, oscript); oscript.parentnode.removechild(oscript); for (var aattrs = oscript.attributes, nattr = 0; nattr < aattrs.length; nattr++) { ocompiled.setattribute(aattrs[nattr].name, aattrs[nattr].value); } ocompiled.type = "text\/ecmascript"; if (oxhr200) { ocompiled.src = "data:text\/javascript," + encodeuricomponent(odicts[smimetype](oxhr200.responsetext)); } ocompiled.text = oxhr200 ?
...cript; oreq.open("get", oscript.src, true); oreq.send(null); } function parsescript (oscript) { if (oscript.hasattribute("type") && !rignoremimes.test(oscript.getattribute("type").tolowercase())) { oscript.hasattribute("src") ?
Default Preferences - Archive of obsolete content
t preferences are held in two separate trees.
... variables inside of it, nor may do any kind of program flow control (ifs, loops etc.) nor even calculated values (i.e.
Displaying web content in an extension without security issues - Archive of obsolete content
might have this code: <style type="text/css"> #entrytemplate { display: none; } </style> <div id="entrytemplate"> <div class="title"></div> <div class="description"></div> </div> now to insert a new entry in the document you would do the following: var template = doc.getelementbyid("entrytemplate"); var entry = template.clonenode(true); entry.removeattribute("id"); entry.getelementsbyclassname("title")[0].textcontent = title; entry.getelementsbyclassname("description")[0].textcontent = description; template.parentnode.appendchild(entry); the important difference here is that the result will always have the same structure as the template tag.
...pulates text.
The Box Model - Archive of obsolete content
ns.
...expressions and generate 3 different labels, one with the text-link class.
Security best practices in extensions - Archive of obsolete content
ng of that site by the user in the main firefox browser is not affected.
...nheard of in add-ons as well, and can provide a useful way to avoid code duplication and accelerate development.
Using the Stylesheet Service - Archive of obsolete content
.getservice(components.interfaces.nsiioservice); var u = ios.newuri("chrome://myext/content/myext.css", null, null); if(sss.sheetregistered(u, sss.user_sheet)) sss.unregistersheet(u, sss.user_sheet); registering stylesheets on startup via the category manager stylesheets may also be registered on startup via the agent-style-sheets and user-style-sheets categories.
... manager stylesheets may also be registered on startup via the agent-style-sheets and user-style-sheets categories.
Creating reusable content with CSS and XBL - Archive of obsolete content
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml"> <binding id="square"> <resources> <stylesheet src="bind6.css"/> </resources> <content> <html:div anonid="square"/> <xul:button anonid="button" type="button"> <children/> </xul:button> </content> <implementation> <field name="square"><![cdata[ document.getanonymouselementbyattribute(this, "anonid", "square") ]]></field> <field name="button"><![cdata[ document.getanonymouselementbyattribute(this, "anonid", "button") ]]></field> <method name="dodemo"> <body><![cdata[ this.square.style.backgroundcolor = "#cf4" this.square.style.marginleft = "20em" this.butt...
...ton"><![cdata[ document.getanonymouselementbyattribute(this, "anonid", "button") ]]></field> <method name="dodemo"> <body><![cdata[ this.square.style.backgroundcolor = "#cf4" this.square.style.marginleft = "20em" this.button.setattribute("disabled", "true") settimeout(this.cleardemo, 2000, this) ]]></body> </method> <method name="cleardemo"> <parameter name="me"/> <body><![cdata[ me.square.style.backgroundcolor = "transparent" me.square.style.marginleft = "0" me.button.removeattribute("disabled") ]]></body> </method> </implementation> <handlers> <handler event="click" button="0"><![cdata[ if (event.originaltarget == this.button) this.dodemo() ]]></ha...
List of Former Mozilla-Based Applications - Archive of obsolete content
the following is a list of all known applications that at one point used mozilla technologies or that are no longer being actively maintained.
... was a xulrunner app initially but now uses adobe air rift technologies software installation over internet no longer using mozilla technology -- need confirmation and details second life virtual world desktop client switched from embedded mozilla browser to a plugin architecture with a qtwebkit plugin applications that are no longer being developed name description additional information aphrodite browser inactive aol client for mac internet software no longer available beonex communicator internet software last news item on site from 2004 chameleon theme builder inactive civil netizen p2p file delivery (email attachment replacement) site not updated since 2006 ...
Installing plugins to Gecko embedding browsers on Windows - Archive of obsolete content
and other browsers by aol (based on mozilla) which are only in beta currently.
...nly in beta currently.
Using content preferences - Archive of obsolete content
te to save a preference for var uri = iosvc.newuri("http://developer.mozilla.org/", null, null); // set the value of the "devmo.somesetting" preference to "foo".
...ng"); built-in site-specific preferences preference name menu equivalent values notes browser.content.full-zoom view / zoom example: "1.10000002384186" (rounding variant of "1.1") related about:config preferences: browser.zoom.full boolean, set by the menu item view / zoom / zoom text only.
Kill the XUL.mfl file for good - Archive of obsolete content
avoiding the creation of the xul.mfl file mozilla creates in its profile directory a file named xul.mfl, which contains pre-compiled ui elements.
... needing a manual intervention to wipe it out, before mozilla again works correctly.
Locked config settings - Archive of obsolete content
gram files\mozilla.org\mozilla directory.
...here all.js resides.
Bookmark Keywords - Archive of obsolete content
bookmark of the current page to the list of bookmarks.
..." you can create a folder with another name, or not put your keymarks into a folder at all.
Making it into a dynamic overlay and packaging it up for distribution - Archive of obsolete content
omponent.
... <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:chrome="http://www.mozilla.org/rdf/chrome#"> <rdf:seq about="urn:mozilla:package:root"> <rdf:li resource="urn:mozilla:package:tinderstatus"/> </rdf:seq> <rdf:description about="urn:mozilla:package:tinderstatus" chrome:displayname="mozilla tinderstatus extension" chrome:author="myk melez" chrome:name="tinderstatus" chrome:extension="true" chrome:description="displays tinderbox status for the mozilla codebase."> </rdf:description> <rdf:seq about="urn:mozilla:overlays"> <rdf:li resource="chrome://navigator/content/navigator.xul"/> </rdf:seq> <rdf:seq about="chrome://navigator/content/navigator.xul"> <rdf:li>chrome://tinderstatus/content/tinderstatusoverlay.xul</rdf:li> </rdf:s...
install.rdf - Archive of obsolete content
ifest"> <em:id>author@oftheme.com</em:id> <em:version>2.0b1</em:version> <!-- seamonkey --> <em:targetapplication> <description> <em:id>{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}</em:id> <em:minversion>2.0b1pre</em:minversion> <em:maxversion>2.0b2pre</em:maxversion> </description> </em:targetapplication> <!-- front end metadata --> <em:name>my_theme</em:name> <em:description>my first theme</em:description> <!-- front end integration hooks (used by theme manager)--> <em:creator>john johnson</em:creator> <em:contributor>john johnson</em:contributor> <em:homepageurl>https://mycoolskin.com/</em:homepageurl> <em:updateurl>https://mycoolskin.com/</em:updateurl> <em:abouturl>https://mycoolskin.com/</em:aboutur...
... <em:description>my first theme</em:description> <!-- front end integration hooks (used by theme manager)--> <em:creator>john johnson</em:creator> <em:contributor>john johnson</em:contributor> <em:homepageurl>https://mycoolskin.com/</em:homepageurl> <em:updateurl>https://mycoolskin.com/</em:updateurl> <em:abouturl>https://mycoolskin.com/</em:abouturl> <em:internalname>my_theme</em:internalname> </description> </rdf> ...
Drag and Drop - Archive of obsolete content
re you need to do something when the event occurs.
...or can handle it some way, such as pasting the dragged object into itself.
Block and Line Layout Cheat Sheet - Archive of obsolete content
e applied to the child, these values are the resolved values for the child frame's box.
...tmode ll_lineendsinbr perframedata (why isn't this just stored in the frame?) mflags pfd_relativepos pfd_istextframe pfd_isnonemptytextframe pfd_isnonwhitespacetextframe pfd_isletterframe pfd_issticky pfd_isbullet perspandata in nslinelayout, a "span" is a container inline frame, and a "frame" is one of its children.
Layout System Overview - Archive of obsolete content
ecessary.
...eing created (and lots of other state-stuff too - need to describe more fully).
Helper Apps (and a bit of Save As) - Archive of obsolete content
up temporary file and instantiate the nsihelperapplauncherdialog in onstartrequest.
...auncherdialog in onstartrequest.
Libraries - Archive of obsolete content
note: this page documents the jetpack prototype, which is no longer under active development.
... note: this page documents the jetpack prototype, which is no longer under active development.
First run - Archive of obsolete content
e the jetpack and how to uninstall it.
...h a page tailored to your jetpack.
Me - Archive of obsolete content
Archive › Mozilla › Jetpack › Meta › Me
note: this page documents the jetpack prototype, which is no longer under active development.
... note: this page documents the jetpack prototype, which is no longer under active development.
First Run - Archive of obsolete content
w use the jetpack and how to uninstall it.
... with a page tailored to your jetpack.
Simple Storage - Archive of obsolete content
note: this page documents the jetpack prototype, which is no longer under active development.
...ad its data from disk by calling jetpack.storage.simple.open(), although the data comes loaded automatically.
Clipboard Test - Archive of obsolete content
<style></style> <style>.description{ display: block; font-size: 13pt; color: #444; font-style: italic; margin-bottom: 7px; } .method>.returns{display: none;} .method>.name>.param:not(:last-child):after{content: ","; padding-right: .5em; } .method>.name>.param:not(:last-child):after{content: ","; padding-right: .5em; } .method>.name>.param>.name:after{content: " as "; font-weight: normal; } .method>.params{display: block; color:#555;} .method>.params>.param{display: block; margin-bottom:5px;} .method>.params>.param>.name{font-weight:bold; margin-right:.5em; min-width:80px; display:inline-block;} .method>.params>.param>.description{display:inline-block; width:300px; vertical-align:top;margin-right:30px} .method>.params>.param>.type{display:inline-block; width:100px; vertical-align:top;font-weigh...
...mal;} .method>.params>.param>.default{display:inline-block; width:100px; vertical-align:top;font-weight:bold;} .method>.params>.param>.default:before{content: "default "; color: #888;font-weight:normal;} ]]></style> clipboard jetpack's clipboard support api provides a standardized way for features to access the clipboard.
Menu - Archive of obsolete content
Archive › Mozilla › Jetpack › UI › Menu
page documents the jetpack prototype, which has since been replaced by the add-on sdk.
...foo") does not add "foo" to the tab strip's and location bar's context menus, but it does on the bookmark toolbar's context menu.
Simple Storage - Archive of obsolete content
the jetpack.storage.simple namespace provides an easy way to persist data across browser restarts.
...ad its data from disk by calling jetpack.storage.simple.open(), although the data comes loaded automatically.
Makefile.mozextension.2 - Archive of obsolete content
ne.org/makefile_for_packaging_an_extension ## "this makefile.mozextention is for the test extension" ## the original makefile.mozextention reconstructs http://kb.mozillazine.org/getting_started_with_extension_development # call with: # make -f makefile.mozextension2 make_structure ## (without args for 'all') # note: @echo silent; without @ the command is written in stdout project=test project_name=testworld #~ project_id={xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} project_id=test@testworld.ext project_version=1.0 project_desc="a $(project_name) project with advanced features" project_author=author name # mkdir=$(shell which mkdir) mkdir=/bin/mkdir zipprog=/usr/bin/zip shell = /bin/sh noop = $(shell) -c true noecho = @ rm_rf=rm -f cp=/bin/cp -i .phony: all all :: make_structure make_fil...
...8b42-e466-45a9-ae7a-9b95ba6f5640} #seamonkey {92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a} #sunbird {718e30fb-e89b-41dd-9da7-e25a45638b28} #netscape browser {3db10fab-e461-4c80-8b97-957ad5f8ea47} ###### define install_rdf <rdf xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <description about="urn:mozilla:install-manifest"> <id>$(project_id)</id> <name>$(project_name)</name> <version>$(project_version)</version> <description>$(project_desc)</description> <creator>$(project_author)</creator> <contributor>here is a place for you who helped me</contributor> <homepageurl>http://$(project).mozdev.org/</homepageurl> <optionsurl>chrome://$(project)/content/settings.xul</optionsurl> <abouturl>chrome://$(project)/content/about.xul</abouturl> <iconurl>...
Metro browser chrome tests - Archive of obsolete content
uilt-in framework test checks will run after the completion of each individual test insuring tests clean up properly.
...ctuon loop in head.js.
LIR - Archive of obsolete content
in nanojit, lir is the source language for compilation to machine code.
... pointer allocate stack space (result is an address) 6 reti void return an int 7 retq void 64 bit return a quad 8 retd void return a double 9 livei void extend live range of an int 10 liveq void 64 bit extend live range of a quad 11 lived void extend live range of a double 12 file void source filename for debug symbols 13 line void source line number for debug symbols 14 comment void a comment shown, on its own line, in lir dumps 15 not in use load 16 not in use 17 ldc2i integer load char and sign-extend to an int 18 lds2i integer load short and sign-extend to an int 19 lduc2ui integer l...
New Security Model for Web Services - Archive of obsolete content
g sent to non-soap addresses, which is a big enough problem that the verification cannot stand alone to guarantee that untrusted service requests are always properly rejected by services that should be firewall-protected.
...one can also use wild charater(s) in "from" value.
Bundles - Archive of obsolete content
that point to a webapp bundle: <link rel="webapp" href="prismdemo.webapp" title="prism demo"> when the extension finds such a <link> tag, it will notify the user.
...to a webapp bundle: <link rel="webapp" href="prismdemo.webapp" title="prism demo"> when the extension finds such a <link> tag, it will notify the user.
FAQ - Archive of obsolete content
Archive › Mozilla › Prism › FAQ
d dock, and it opens those applications in their own window separate from a web browser and without the browser interface (back and forward buttons, location bar, etc.).
...t?
Prism - Archive of obsolete content
de script (similar to greasemonkey).
...sion directly in their web app.
Priority Content - Archive of obsolete content
update: i've removed documents from this list that have been migrated into the wiki.
...grators: mathieu deaudelin there are inline examples on this page that cannot be migrated.
PyDOM - Archive of obsolete content
introduction this is the documentation for the binding of python and the mozilla dom.
...oo += 1; print 'foo is now', event.target.foo"/> note that (a) we have stuck an arbitrary attribute on a dom element and (b) in all cases (e.g., event handler and top-level script), the dom node needs to be explicitly specified - the globals are the window itself.
RDF Datasource How-To - Archive of obsolete content
mp/foo is contained within /tmp".
...w xmlns:html="http://www.w3.org/1999/xhtml" xmlns:rdf="http://www.w3.org/tr/wd-rdf-syntax#" xmlns="http://www.mozilla.org/keymaster/gat...re.is.only.xul"> <tree datasources="rdf:my-datasource" ref="http://foo.bar.com/"> <template> <treechildren> <treeitem uri="..."> <treerow> <treecell> <text value="rdf:http://home.netscape.com/nc-rdf#name" /> </treecell> <treecell> <text value="rdf:http://home.netscape.com/nc-rdf#url" /> </treecell> </treerow> </treeitem> </treechildren> </template> <treehead> <treeitem> <treecell>name</treecell> <treecell>url</treecell> </treeitem> </treehead> <!-- treechildren built _here_ --> ...
Remotely debugging Firefox for Metro - Archive of obsolete content
ofile on the same computer.
...ktop on the desktop, open the web developer menu and select "connect...".
Treehydra Manual - Archive of obsolete content
gimple asts will not be available, as gcc does not save earlier intermediate representations--they are modified in place.
...presents a set of concrete states.
Using cross commit - Archive of obsolete content
anches to commit on, cross-commit will commit to the trunk and the mozilla_1_8_branch by default.
...ead in addition to any other branches specified.
Unix stub installer - Archive of obsolete content
.pl".
....jst to the: <http://lxr.mozilla.org/seamonkey/sou.../packager/unix> directory.
writeString - Archive of obsolete content
heduled, otherwise, false.
... unlike the writeprivateprofilestring function, this method does not support using a null key to delete an entire section.
createKey - Archive of obsolete content
createkey adds a key to the registry.
... createkey adds a key to the registry.
XPInstall API reference - Archive of obsolete content
o properties methods compareversion enabled getversion install installchrome startsoftwareupdate installversion properties methods compareto init tostring file no properties methods copy dircreate dirgetparent dirremove dirrename diskspaceavailable execute exists isdirectory isfile macalias moddate moddatechanged move remove rename size windowsgetshortname windowsregisterserver windowsshortcut winprofile no properties methods getstring writestring winreg ...
... moddatechanged move remove rename size windowsgetshortname windowsregisterserver windowsshortcut winprofile no properties methods getstring writestring winreg no properties methods createkey deletekey deletevalue enumkeys enumvaluenames getvalue getvaluenumber getvaluestring iskeywritable keyexists setrootkey setvalue setvaluenumber setvaluestring valueexists winregvalue constructor other information return codes see complete list examples trigger scripts and install scripts code samples file.macalias file.windowsshortcut ...
Mozilla E4X - Archive of obsolete content
presentation view online download summary "ecmascript for xml" (ecma-357), a new standard for writing and processing xml directly in javascript (ecma-262, iso-16262).
... presentation view online download summary "ecmascript for xml" (ecma-357), a new standard for writing and processing xml directly in javascript (ecma-262, iso-16262).
searchSessions - Archive of obsolete content
« xul reference home searchsessions obsolete since gecko 26 type: space-separated list of session names set to a keyword indicating what type of data to look up for autocomplete.
... « xul reference home searchsessions obsolete since gecko 26 type: space-separated list of session names set to a keyword indicating what type of data to look up for autocomplete.
Attribute (XUL) - Archive of obsolete content
etitlebarcolor increment index inputtooltiptext insertafter insertbefore instantapply inverted iscontainer isempty key keycode keytext label lastpage lastselected last-tab left linkedpanel max maxheight maxlength maxpos maxrows maxwidth member menu menuactive min minheight minresultsforpopup minwidth mode modifiers mousethrough movetoclick multiline multiple name negate newlines next noautofocus noautohide noinitialfocus nomatch norestorefocus object observes onbeforeaccept onbookmarkgroup onchange onclick onclosetab oncommand oncommandupdate ondialogaccept ondialogcancel ondialogclosure ondialogextra1 ondialogextra2 ondialoghelp onerror onerrorcommand onextra1 onextra2 oninput onload onnewtab onpageadvanced onpagehide on...
...utton searchsessions searchlabel selected selectedindex seltype setfocus showcaret showcommentcolumn showpopup size sizemode sizetopopup smoothscroll sort sortactive sortdirection sortresource sortresource2 spellcheck src state statedatasource statusbar statustext style subject substate suppressonselect tabindex tabscrolling targets template timeout title toolbarname tooltip tooltiptext tooltiptextnew top type uri useraction validate value var visuallyselected wait-cursor width windowtype wrap wraparound ...
Deprecated and defunct markup - Archive of obsolete content
to support left/top styles, but <stack> can now do as well) <gripper> (inside of <scrollbar><thumb>; not to be used by itself) <listboxbody> (internal use only; part of xbl for <listbox>) <menubutton> (experiment in combining buttons and menus; use <button type> instead) <nativescrollbar> (displayed a native scrollbar; had been for mac only with native themes on) <outliner> (former name for <tree>; <listbox> had been "<tree>") <popup> (use menupopup) <package> (no longer present but in older documentation) <scrollbarbutton> (button at end of scrollbar; had been only within larger <scrollbar>) so, not deprecated, but internal use only?
...precated <gripper>; implements sliding box in center of scrolbar) <title> (to add a caption on a <titledbox> <titledbox> (box with a frame) <titledbutton> (attempt to combine text and images before <button>) <toolbarpaletteitem> required to embed non-buttons in customisable toolbars --neil 03 march 2011 <treebody> (old/experimental and unsupported xul tags) lives on as the internal name for the ancestor <treechildren> element --neil 03 march 2011 <treecaption> (old/experimental and unsupported xul tags) <treecolgroup> (former name for <treecols> <treecolpicker> (internal use only; part of xbl for <tree>) <treefoot> (old/experimental and unsupported xul tags) <treeindentation> (old/experimental and unsupported xul tags) was a part of the old <tree> that predated <o...
Accessing Files - Archive of obsolete content
reference may be created relative to this.
...ample above the word 'profile' is used, which means start from within the user's profile directory.
Uploading and Downloading Files - Archive of obsolete content
existing servers and formdata interface makes that task fairly simple.
... formdata object will automatically generate request data with mime type multipart/form-data that existing servers can process.
findbar - Archive of obsolete content
dpreviousaccesskey type: string the access key for the "find previous" toolbar button in the findbar.
...find_typeahead (1): typeahead find find_links (2): link find methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
onFindAgainCommand - Archive of obsolete content
e onfindagaincommand( findprevious ) return type: no return value call this method to handle your application's "find next" and "find previous" commands.
... to handle your application's "find next" and "find previous" commands.
Methods - Archive of obsolete content
editor getelementsbyattribute getelementsbyattributens getformattedstring gethtmleditor getindexoffirstvisiblerow getindexofitem getitematindex getnextitem getnotificationbox getnotificationwithvalue getnumberofvisiblerows getpagebyid getpreviousitem getresultat getresultcount getresultvalueat getrowcount getsearchat getselecteditem getsession getsessionbyname getsessionresultat getsessionstatusat getsessionvalueat getstring goback gobackgroup godown goforward goforwardgroup gohome goto gotoindex goup hidepopup increase increasepage insertitem insertitemat invertselection loadgroup loadonetab loadtabs loaduri loaduriwithflags makeeditable movebyoffset moveto movetoalertposition onsearchcomplete ...
...tediting stop stopediting swapdocshells syncsessions timedselect toggleitemselection related dom element methods dom:element.addeventlistener dom:element.appendchild dom:element.comparedocumentposition dom:element.dispatchevent dom:element.getattribute dom:element.getattributenode dom:element.getattributenodens dom:element.getattributens dom:element.getelementsbytagname dom:element.getelementsbytagnamens dom:element.getfeature fixme: brokenlink dom:element.getuserdata dom:element.hasattribute dom:element.hasattributens dom:element.hasattributes dom:element.haschildnodes dom:element.insertbefore dom:element.isequalnode dom:element.issamenode dom:element.issupported dom:element.lookupnamespaceuri dom:element.lookupprefix dom:element.nor...
Building Trees - Archive of obsolete content
er are identical.
...cal.
Filtering - Archive of obsolete content
already seen examples of generating results from a container.
...ype.
Introduction - Archive of obsolete content
l file, which can be either the location of a web site or a file on the local file system, using its file or chrome url.
...ntent.
Adding Labels and Images - Archive of obsolete content
both the label element and the description elements are the same.
...description elements are the same.
Adding more elements - Archive of obsolete content
« previousnext » we will conclude the discussion of boxes by adding some boxes to the find files dialog.
...resize the window vertically, the elements do not change size.
Adding Style Sheets - Archive of obsolete content
that its style comes from a separate style file.
...pplied.
Commands - Archive of obsolete content
voke.
...vt){ } }; list.controllers.appendcontroller(listcontroller); } </script> <listbox id="thelist"> <listitem label="ocean"/> <listitem label="desert"/> <listitem label="jungle"/> <listitem label="swamp"/> </listbox> </window> the controller (listcontroller) implements the four methods described above.
List Controls - Archive of obsolete content
is used for regular rows.
... drop-down lists drop-down lists can be created in html using the select element.
More Event Handlers - Archive of obsolete content
« previousnext » in this section, the event object is examined and additional events are described.
... section.
Open and Save Dialogs - Archive of obsolete content
use it any place in which the user needs to select a file.
... selected a file.
Skinning XUL Files by Hand - Archive of obsolete content
s article can help you get started understanding skins and creating skins for xul.
...necessary.
Tabboxes - Archive of obsolete content
/> </tabs> <tabpanels> <tabpanel id="searchpanel" orient="vertical"> <description> enter your search criteria below and select the find button to begin the search.
...menuitem label="is"/> <menuitem label="is not"/> </menupopup> </menulist> <spacer style="height: 10px"/> <textbox id="find-text" flex="1" style="min-width: 15em;"/> </groupbox> </tabpanel> <tabpanel id="optionspanel" orient="vertical"> <checkbox id="casecheck" label="case sensitive search"/> <checkbox id="wordscheck" label="match entire filename"/> </tabpanel> </tabpanels> </tabbox> the tab elements have been placed around the main content of the window.
Using Visual Studio as your XUL IDE - Archive of obsolete content
l schema.
...ling the schema, but there is an easier way.
Using multiple DTDs - Archive of obsolete content
re situations where you want to use multiple dtds, for example to localize common widgets used in all your xul files, additionally to the ones specific to the file.
.../myextension/locale/mainwindow.dtd"> %mainwindowdtd; ]> you can now access the entities declared in the dtds as shown above.
Using nsIXULAppInfo - Archive of obsolete content
get a component implementing nsixulappinfo use this code: var appinfo = components.classes["@mozilla.org/xre/app-info;1"] .getservice(components.interfaces.nsixulappinfo); (for explanation see this creating xpcom article.) getting application information after you obtained the app info component, you can read its properties to get the application's id, human-readable name, version, platform version, etc.
...info = components.classes["@mozilla.org/xre/app-info;1"] .getservice(components.interfaces.nsixulappinfo); if(appinfo.id == firefox_id) { // running under firefox } else if(appinfo.id == thunderbird_id) { // running under thunderbird } else if(appinfo.id == seamonkey_id) { // running under seamonkey } else { // another app } note: you could also use nsixulappinfo.name, which is a human-readable name for the application, such as "firefox", "thunderbird" or "seamonkey", but who knows, maybe they'll rename it again!
Using the standard theme - Archive of obsolete content
ying different custom style sheets depending on the selected theme mozilla is able to automatically pick your custom style sheet depending on the theme currently chosen by the user.
... sheets depending on the selected theme mozilla is able to automatically pick your custom style sheet depending on the theme currently chosen by the user.
bbox - Archive of obsolete content
Archive › Mozilla › XUL › bbox
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
bindings - Archive of obsolete content
the element.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
box - Archive of obsolete content
Archive › Mozilla › XUL › box
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
broadcaster - Archive of obsolete content
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
broadcasterset - Archive of obsolete content
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
column - Archive of obsolete content
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
columns - Archive of obsolete content
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
command - Archive of obsolete content
cute these commands, key events won't be passed to content, and event listeners registered for them in content will not be executed.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
deck - Archive of obsolete content
Archive › Mozilla › XUL › deck
l be deselected.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
dialogheader - Archive of obsolete content
d the following css rule when you want to use the value none: menupopup > menuitem, menupopup > menu { max-width: none; } description type: string descriptive text to appear in addition to the dialog title.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
dropmarker - Archive of obsolete content
, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessibletype type: integer a value indicating the type of accessibility object for the element.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
grippy - Archive of obsolete content
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
groupbox - Archive of obsolete content
, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessibletype type: integer a value indicating the type of accessibility object for the element.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
hbox - Archive of obsolete content
Archive › Mozilla › XUL › hbox
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
image - Archive of obsolete content
Archive › Mozilla › XUL › image
checked to see whether it should be reloaded.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
key - Archive of obsolete content
Archive › Mozilla › XUL › key
resses a keyboard shortcut attached to the command.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
keyset - Archive of obsolete content
effect.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
listcell - Archive of obsolete content
this attribute is copied to the menulist.value property upon user selection of the menuitem.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
listcol - Archive of obsolete content
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
listcols - Archive of obsolete content
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
listhead - Archive of obsolete content
tatustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessibletype type: integer a value indicating the type of accessibility object for the element.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
member - Archive of obsolete content
that is expected to be a child of the element that is referred to by the container element.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
menubar - Archive of obsolete content
e to the statustext of the items on the menu as the user moves the mouse over them.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
page - Archive of obsolete content
Archive › Mozilla › XUL › page
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
popupset - Archive of obsolete content
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
progressmeter - Archive of obsolete content
ribute.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
queryset - Archive of obsolete content
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
resizer - Archive of obsolete content
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
row - Archive of obsolete content
Archive › Mozilla › XUL › row
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
rows - Archive of obsolete content
Archive › Mozilla › XUL › rows
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
script - Archive of obsolete content
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
scrollbar - Archive of obsolete content
r.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
scrollbox - Archive of obsolete content
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
scrollcorner - Archive of obsolete content
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
separator - Archive of obsolete content
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
spacer - Archive of obsolete content
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
spinbuttons - Archive of obsolete content
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
stack - Archive of obsolete content
Archive › Mozilla › XUL › stack
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
statusbar - Archive of obsolete content
on, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessibletype type: integer a value indicating the type of accessibility object for the element.
... , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
<statusbarpanel> - Archive of obsolete content
tem element the value of this attribute is copied to the menulist.value property upon user selection of the menuitem.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
stringbundleset - Archive of obsolete content
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
tabpanel - Archive of obsolete content
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
template - Archive of obsolete content
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
titlebar - Archive of obsolete content
al, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width note: the allowevents attribute did not work for title bars prior to firefox 3.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
toolbargrippy - Archive of obsolete content
t, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessible type: nsiaccessible returns the accessibility object for the element.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
toolbaritem - Archive of obsolete content
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
toolbarpalette - Archive of obsolete content
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
toolbarseparator - Archive of obsolete content
ion, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessibletype type: integer a value indicating the type of accessibility object for the element.
... , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
toolbarset - Archive of obsolete content
left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode()...
... , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
toolbarspacer - Archive of obsolete content
, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessibletype type: integer a value indicating the type of accessibility object for the element.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
toolbarspring - Archive of obsolete content
on, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessibletype type: integer a value indicating the type of accessibility object for the element.
... , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
treechildren - Archive of obsolete content
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
treecols - Archive of obsolete content
, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessibletype type: integer a value indicating the type of accessibility object for the element.
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
vbox - Archive of obsolete content
Archive › Mozilla › XUL › vbox
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
where - Archive of obsolete content
Archive › Mozilla › XUL › where
ft, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, minheight, minwidth, , , , , , , observes, ordinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode...
... statustext, style, ,, tooltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
wizardpage - Archive of obsolete content
hould have one, except that last page.
...oltip, tooltiptext, top, width methods inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(), insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventli...
CommandLine - Archive of obsolete content
nterfaces.nsicomponentregistrar; const nsicommandline = components.interfaces.nsicommandline; const nsicommandlinehandler = components.interfaces.nsicommandlinehandler; const nsifactory = components.interfaces.nsifactory; const nsimodule = components.interfaces.nsimodule; const class_id = components.id("178cfbb6-503c-11dc-8314-0800200c9a66"); const class_name = "applicationnameclh"; const contract_id = "@example.com/applicationname/clh;1"; const cld_category = "m-applicationname"; var apphandler = { /* nsisupports */ queryinterface : function clh_qi(aiid) { if (aiid.equals(nsicommandlinehandler) || aiid.equals(nsifactory) || aiid.equals(nsisupports)) return this; throw components.results.ns_error_no_interface; }...
...ule */ getclassobject : function mod_gch(acompmgr, acid, aiid) { if (acid.equals(class_id)) return apphandler.queryinterface(aiid); throw components.results.ns_error_failure; }, registerself : function mod_regself(acompmgr, afilespec, alocation, atype) { var compreg = acompmgr.queryinterface(nsicomponentregistrar); compreg.registerfactorylocation(class_id, class_name, contract_id, afilespec, alocation, atype); var catman = components.classes["@mozilla.org/categorymanager;1"] .getservice(nsicategorymanager); catman.addcategoryentry("command-line-handler", cld_category, contract_id, true, true); }, unregisterself : function mod_unreg(acompmgr, alocation, aty...
Components - Archive of obsolete content
istration most initial problems with components are due to registration.
... with components are due to registration.
Debugging a XULRunner Application - Archive of obsolete content
t way to debug a xulrunner application is to get the system to tell you what's wrong!
... the application, the -jsconsole argument is after the application.ini argument: e.g.
Specifying Startup Chrome Window - Archive of obsolete content
main chrome window in order to specify the main chrome window of your xulrunner application, you'll need to add a preferences file to your application directory structure and add a preference named toolkit.defaultchromeuri to that file.
...xulrunner application, you'll need to add a preferences file to your application directory structure and add a preference named toolkit.defaultchromeuri to that file.
xbDesignMode.js - Archive of obsolete content
rosenberg <doron@netscape.com> (original author) * * * * ***** end license block ***** */ /* xbdesignmode a javascript wrapper for browsers that support designmode */ function xbdesignmode(aiframe){ this.meditordocument = null; this.miframeelement = null; // argument is a string, therefore an id if ( (typeof(aiframe) == "string") && (document.getelementbyid(aiframe).tagname.tolowercase()=="iframe") ){ this.miframeelement = document.getelementbyid(aiframe); } else if( (typeof(aiframe)=="object") && (aiframe.tagname.tolowercase() == "iframe") ){ this.miframeelement = aiframe; } else { throw "argument isn't an id of an iframe or an iframe reference"; } if (this.miframeelement.contentdocument){ // gecko this.meditordocument = this.miframeele...
...ntentdocument; this.meditordocument.designmode = "on"; } else { // ie this.meditordocument = this.miframeelement.contentwindow.document; this.meditordocument.designmode = "on"; // ie needs to reget the document element after designmode was set this.meditordocument = this.miframeelement.contentwindow.document; } } xbdesignmode.prototype.execcommand = function (acommandname, aparam){ if (this.meditordocument) this.meditordocument.execcommand(acommandname, false, aparam); else throw "no meditordocument found"; } xbdesignmode.prototype.setcsscreation = function (ausecss){ if (this.meditordocument) this.meditordocument.execcommand("usecss", false, ausecss); else throw "no meditordocument found"; } ...
Archived Mozilla and build documentation - Archive of obsolete content
hes, you can get by using cvs diff, and just editing the output to remove other patches before submitting.
...approach quickly becomes unscalable, especially when you have different fixes in the same tree.
Mozilla release FAQ - Archive of obsolete content
take this into consideration when posting things) ftp see the mozilla ftp mirror section for ftp sites under which license terms was mozilla released?
...ls.
2006-10-20 - Archive of obsolete content
2006 to october 20, 2006 return to mozilla-dev-security announcements none during this week.
... that mp3 files are no longer allowed to be opened directly from email attachments in trunk builds of thunderbird and seamonkey.
2006-11-17 - Archive of obsolete content
announcements relicensing rhino to mpl rhino has been released under mpl/gpl license which makes it possible to distribute third party software with apache.
... announcements relicensing rhino to mpl rhino has been released under mpl/gpl license which makes it possible to distribute third party software with apache.
Logging Multi-Process Plugins - Archive of obsolete content
when multi-process plugins are enabled, firefox has the ability to dump additional information about interactions between the browser and a plugin.
...ox has the ability to dump additional information about interactions between the browser and a plugin.
NPN_GetStringIdentifier - Archive of obsolete content
« gecko plugin api reference « scripting plugins summary returns an opaque identifier for the string that is passed in.
... « gecko plugin api reference « scripting plugins summary returns an opaque identifier for the string that is passed in.
NPN_GetURLNotify - Archive of obsolete content
pi.h> nperror npn_geturlnotify(npp instance, const char* url, const char* target, void* notifydata); parameters the function has the following parameters: instance pointer to the current plug-in instance.
... const char* url, const char* target, void* notifydata); parameters the function has the following parameters: instance pointer to the current plug-in instance.
NPN_GetValue - Archive of obsolete content
dow: ms windows and unix/x11 only: ms windows: gets the native window on which plug-in drawing occurs; returns hwnd unix/x11: gets the browser toplevel window in which the plug-in is displayed; returns window npnvjavascriptenabledbool: tells whether javascript is enabled; true=javascript enabled, false=not enabled npnvasdenabledbool: tells whether smartupdate (former name: asd) is enabled; true=smartupdate enabled, false=not enabled npnvisofflinebool: tells whether offline mode is enabled; true=offline mode enabled, false=not enabled npnvtoolkit: npnvsupportsxembedbool: npnvwindownpobject: returns the npobject * pointer for the dom window object; see getting the page url in npapi plugin for a rough example npnvpluginelementnpobject: npnvsupports...
...s variable is the unicode serialization of the origin converted to nfkc-encoded (normalized) utf-8.
NPN_PostURL - Archive of obsolete content
server response is sent back to the plug-in.
...ou can also write the response data to a frame by specifying the frame name as the target parameter.
Element - Archive of obsolete content
Archive › RSS › Module › Slash › Element
rss slash module elements note: in the list of elements below the slash xml namespace prefix is used (since it is a popular choice).
... rss slash module elements note: in the list of elements below the slash xml namespace prefix is used (since it is a popular choice).
Element - Archive of obsolete content
rss well-formed web module elements note: in the list of elements below the wfw xml namespace prefix is used (since it is a popular choice).
... rss well-formed web module elements note: in the list of elements below the wfw xml namespace prefix is used (since it is a popular choice).
Module - Archive of obsolete content
rss module list rss modules are microformats injected into an rss document through the use of xml namespaces.
... rss module list rss modules are microformats injected into an rss document through the use of xml namespaces.
NSPR Release Engineering Guide - Archive of obsolete content
ew tree using tag (including fixes) tag the treey with nsprpub_release_x_y_z build all targets, debug and optimized on all platforms using the command: gmake release mdist=<dir>/mdist build_number=vx.y.z [build_opt=1 | use_debug_rtl=1] copy the bits from mdist to /share/builds/components/nspr20/.vx.y.z in /share/builds/components/nspr20/ run the following scripts: explode.pl rename.sh symlink.sh rtm bits rename the .vx.y.z directory to vx.y.z (remove the hidden directory 'dot').
...ename.sh symlink.sh rtm bits rename the .vx.y.z directory to vx.y.z (remove the hidden directory 'dot').
Using SSH to connect to CVS - Archive of obsolete content
system's environment, make sure thatcvs_rsh is set to whatever your ssh binary is called; a full path is not necessary if ssh is already in your path.
...ew source distribution.
E4X for templating - Archive of obsolete content
localizing strings of a properties file: // localization function $s(msg, args){ //get localized message var strs = cc['@mozilla.org/intl/stringbundle;1'].getservice(ci.nsistringbundleservice).
...ion $s(msg, args){ //get localized message var strs = cc['@mozilla.org/intl/stringbundle;1'].getservice(ci.nsistringbundleservice).
The global XML object - Archive of obsolete content
member the settings of the xml object from the time of their creation.
...rom the time of their creation.
ECMAScript 2015 support in Mozilla - Archive of obsolete content
ecmascript 2015 is the sixth edition of the ecmascript language specification standard.
...er default parameters (firefox 26) destructured parameters with default value assignment (firefox 41) arrow functions (firefox 22) generator function (firefox 26) yield (firefox 26) yield* (firefox 27) arguments[@@iterator] (firefox 46) other features binary and octal numeric literals (firefox 25) template strings (firefox 34) object initializer: shorthand property names (firefox 33) object initializer: computed property names (firefox 34) object initializer: shorthand method names (firefox 34) ...
Object.prototype.unwatch() - Archive of obsolete content
prior to version 58, they're deprecated and removed in firefox 58+.
... prop the name of a property of the object to stop watching.
Reflect.enumerate() - Archive of obsolete content
t object on which to get the property.
...value an iterator with the enumerable own and inherited properties of the target object.
JSException - Archive of obsolete content
hich optionally took a string argument, specifying the detail message or other information for the exception.
...ion.
LiveConnect - Archive of obsolete content
decline of the original liveconnect (e.g., java.lang.string and arrays not working properly).
... the original liveconnect (e.g., java.lang.string and arrays not working properly).
JavaClass - Archive of obsolete content
summary core object a javascript reference to a java class.
... summary core object a javascript reference to a java class.
JavaPackage - Archive of obsolete content
summary core object a javascript reference to a java package.
... summary core object a javascript reference to a java package.
XForms Custom Controls Examples - Archive of obsolete content
ples.
...); return true; </body> </method> </implementation> </binding> output showing xhtml <binding id="output-xhtml" extends="chrome://xforms/content/xforms-xhtml.xml#xformswidget-output"> <content> <children includes="label"/> <xhtml:div class="xf-value" anonid="content"></xhtml:div> <children/> </content> <implementation implements="nsixformsuiwidget"> <field name="_domparser">null</field> <property name="domparser" readonly="true"> <getter> if (!this._domparser) this._domparser = new domparser(); return this._domparser; </getter> </property> <method name="refresh"> <body> // get new value, parse, and import it.
Archive of obsolete content
articles are archived, obsolete documents about mozilla, gecko, and the process of building mozilla projects.
...of archived content inner-browsing extending the browser navigation paradigm this article is the version from 2003 with slight modifications (no images and no links to samples).
Audio for Web games - Game development
pt to play three pieces of audio at the same time using the standard audio api.
...a-start="0" data-stop="1">9</button> now we have buttons with start and stop times in seconds.
Initialize the framework - Game development
.
...er decide which one to use.
2D maze game with device orientation - Game development
d up a lot of things like image manipulation or assets management, which would be a lot harder to do manually.
...is.startgame, this, 2, 0, 1); this.startbutton.anchor.set(0.5,0); this.startbutton.input.usehandcursor = true; }, startgame: function() { this.game.state.start('howto'); } }; to create a new button there's add.button method with the following list of optional arguments: top absolute position on canvas in pixels.
Attribute - MDN Web Docs Glossary: Definitions of Web-related terms
an attribute extends an element, changing its behavior or providing metadata.
... an attribute extends an element, changing its behavior or providing metadata.
Boot2Gecko - MDN Web Docs Glossary: Definitions of Web-related terms
boot2gecko (b2g) is the engineering codename for firefox os and refers to builds that haven't yet received official firefox os branding.
... boot2gecko (b2g) is the engineering codename for firefox os and refers to builds that haven't yet received official firefox os branding.
Fetch metadata request header - MDN Web Docs Glossary: Definitions of Web-related terms
a fetch metadata request header is a http request header that provides additional information about the context the request originated from.
... a fetch metadata request header is a http request header that provides additional information about the context the request originated from.
Global object - MDN Web Docs Glossary: Definitions of Web-related terms
as their global object.
....
Grid Areas - MDN Web Docs Glossary: Definitions of Web-related terms
a grid area is one or more grid cells that make up a rectangular area on the grid.
... a grid area is one or more grid cells that make up a rectangular area on the grid.
MIME type - MDN Web Docs Glossary: Definitions of Web-related terms
a mime type (now properly called "media type", but also sometimes "content type") is a string sent along with a file indicating the type of the file (describing the content format, for example, a sound file might be labeled audio/ogg, or an image file image/png).
... a mime type (now properly called "media type", but also sometimes "content type") is a string sent along with a file indicating the type of the file (describing the content format, for example, a sound file might be labeled audio/ogg, or an image file image/png).
Parameter - MDN Web Docs Glossary: Definitions of Web-related terms
a parameter is a named variable passed into a function.
... a parameter is a named variable passed into a function.
SLD - MDN Web Docs Glossary: Definitions of Web-related terms
an sld (second level domain) is the domain name that is located right before a tld.
... an sld (second level domain) is the domain name that is located right before a tld.
Screen reader - MDN Web Docs Glossary: Definitions of Web-related terms
ark grey box.
...s with a keyboard or other non-pointing device.
Second-level Domain - MDN Web Docs Glossary: Definitions of Web-related terms
an sld (second level domain) is the domain name that is located right before a tld.
... an sld (second level domain) is the domain name that is located right before a tld.
URI - MDN Web Docs Glossary: Definitions of Web-related terms
a uri (uniform resource identifier) is a string that refers to a resource.
... a uri (uniform resource identifier) is a string that refers to a resource.
URN - MDN Web Docs Glossary: Definitions of Web-related terms
urn (uniform resource name) is a uri in a standard format, referring to a resource without specifying its location or whether it exists.
... urn (uniform resource name) is a uri in a standard format, referring to a resource without specifying its location or whether it exists.
Variable - MDN Web Docs Glossary: Definitions of Web-related terms
a variable is a named reference to a value.
... a variable is a named reference to a value.
Vendor Prefix - MDN Web Docs Glossary: Definitions of Web-related terms
refox) -o- (old pre-webkit versions of opera) -ms- (internet explorer and microsoft edge) sample usage: -webkit-transition: all 4s ease; -moz-transition: all 4s ease; -ms-transition: all 4s ease; -o-transition: all 4s ease; transition: all 4s ease; api prefixes historically, vendors have also used prefixes for experimental apis.
...sition: all 4s ease; api prefixes historically, vendors have also used prefixes for experimental apis.
Whitespace - MDN Web Docs Glossary: Definitions of Web-related terms
nguages.
...standard specifies 5 characters as the ascii whitespace: u+0009 tab, u+000a lf, u+000c ff, u+000d cr, and u+0020 space.
Test your skills: CSS and JavaScript accessibility - Learn web development
now fixed.
...ethods you used to select the new values and test the code.
Test your skills: WAI-ARIA - Learn web development
licitly adding a visible text label to the dom?
...l to the dom?
Handling different text directions - Learn web development
ke it does in the horizontal mode.
...also see that the <h2> has a black border-bottom.
Attribute selectors - Learn web development
rn what attribute selectors are and how to use them.
...e value of your attribute.
Pseudo-classes and pseudo-elements - Learn web development
cts elements that are in a specific state, e.g.
...es their pointer over an element, typically a link.
Grids - Learn web development
use the value -1 to target the end column or row line, and count inwards from the end using negative values.
...hings</h2> <p>nam vulputate diam nec tempor bibendum.
Getting started with CSS - Learn web development
low to continue with this tutorial.
...ill find an interactive example at the top of the page to try some different values in, then all allowable values are detailed further down the page.
Use CSS to solve common problems - Learn web development
Learn › CSS › Howto
the following links provide solutions to common problems you may face when working with css.
... the following links provide solutions to common problems you may face when working with css.
How do you host your website on Google App Engine? - Learn web development
or app, you need to create a new project on google cloud platform.
...gine dashboard on the google cloud platform console and press the create button.
What is the difference between webpage, website, web server, and search engine? - Learn web development
s such as pdf files or images, but the term web page specifically refers to html documents.
...t type its address in your browser address bar: web site a website is a collection of linked web pages (plus their associated resources) that share a unique domain name.
What are browser developer tools? - Learn web development
les applied to the currently selected element: these features are especially handy: the rules applied to the current element are shown in order of most-to-least-specific.
... order of most-to-least-specific.
Common questions - Learn web development
nfusion for newcomers to the web, or are used incorrectly.
...omers to the web, or are used incorrectly.
HTML forms in legacy browsers - Learn web development
ation.
...e needed to be sent, such as when data processing depends on which button a user clicked.
Example 2 - Learn web development
this is the second example that explain how to build custom form widgets.
...verflow-y: auto; overflow-x: hidden; } .select .option { padding: .2em .3em; } .select .highlight { background: #000; color: #ffffff; } javascript content window.addeventlistener("load", function () { var form = document.queryselector('form'); form.classlist.remove("no-widget"); form.classlist.add("widget"); }); result for js no js html content <form class="no-widget"> <select name="myfruit"> <option>cherry</option> <option>lemon</option> <option>banana</option> <option>strawberry</option> <option>apple</option> </select> <div class="select"> <span class="value">cherry</span> <ul class="optlist hidden"> <li class="option">cherry</li> <li class="option">lemon</li> <li class="option">banana</li> <li class="opt...
Test your skills: Form validation - Learn web development
idation 1 in this task, we are providing you with a simple support query form, and we want you to add some validation features to it: make all of the input fields mandatory to complete before the form can be submitted.
...mple css to show when a form field is valid or invalid.
Advanced text formatting - Learn web development
uch with it.
...c pieces of computer code.
Document and website structure - Learn web development
website --> <header> <h1>header</h1> </header> <nav> <ul> <li><a href="#">home</a></li> <li><a href="#">our team</a></li> <li><a href="#">projects</a></li> <li><a href="#">contact</a></li> </ul> <!-- a search form is another commmon non-linear way to navigate through a website.
... time updating and maintaining your documents.
Responsive images - Learn web development
ribute value on each line.
...age loaded on the mobile using the desktop developer tools.
Assessment: Structuring planet data - Learn web development
he row headings into headings semantically.
...ibutes to make the row and column headers unambiguously associated with the rows, columns, or rowgroups that they act as headings for.
Choosing the right approach - Learn web development
full support 14safari ios full support 6.1samsung internet android full support 1.5legend full support full supportsee implementation notes.see implementation notes.requires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
...you can end up with similar troubles to callback hell.
Making decisions in your code — conditionals - Learn web development
iew the material at the previous link if you want to refresh your memories on these.
...if the or statement returns true, the not operator will negate it so that the overall expression returns false.
Fetching data from the server - Learn web development
ucting a relative url pointing to the text file we want to load, as we'll need it later.
... it later.
Test your skills: Arrays - Learn web development
e array in a variable called lastitem.
... example: download the starting point for this task to work in your own editor or in an online editor.
Test your skills: Strings - Learn web development
od that you really don't like.
...ngs 4 in the final string task, we have given you the name of a theorem, two numeric values, and an incomplete string (the bits that need adding are marked with asterisks (*)).
Multimedia: Images - Learn web development
previous overview: performance next media, namely images and video, account for over 70% of the bytes downloaded for the average website.
...e is visual fidelity.
Ember resources and troubleshooting - Learn web development
s & controllers components services promises data (i.e: from a remote api — from ember-data, by default) deprecation information render performance for general javascript debugging, check out our guides on javascript debugging as well as interacting with the browser's other debugging tools.
..., by default) deprecation information render performance for general javascript debugging, check out our guides on javascript debugging as well as interacting with the browser's other debugging tools.
Ember app structure and componentization - Learn web development
default css absolutely positions the checkbox + label with negative top and left values to move it next to the input, rather than it being inside the "main" section.
...te" class="toggle-all" type="checkbox"> <label for="mark-all-complete">mark all as complete</label> <ul class="todo-list"> <todo /> <todo /> </ul> </section> note: the only non-html in this new todo-list.hbs is the <todo /> component invocation.
Styling Vue components with CSS - Learn web development
styles which we can add as well.
...>, add a custom-checkbox class.
Strategies for carrying out testing - Learn web development
s oses, are commercial products that can't be freely distributed.
...g system and version you are installing on it set how much ram should be allocated (we'd recommend something like 2048mb, or 2gb) create a virtual hard disk (choose the default options across the three dialog boxes containing create a virtual hard disk now, vdi (virtual disk image), and dynamically allocated).
Accessibility/LiveRegionDevGuide
d on one of the priority criterion.
...he actual object that change can then be found in the event.any_data field.
Simple Instantbird build
obber (see below), or you can do the addition before running make for the first time).
...running to run your build, you can use ./mozilla/mach run there are various command line parameters you can add, e.g.
Simple SeaMonkey build
rrent nightly releases are actually static builds which require even more memory to link.
... are actually static builds which require even more memory to link.
Contributing to the Mozilla code base
or html/css firefox developers documentation devtools javascript and/or html/css contribute to devtools add-ons javascript and/or html/css contribute to add-ons firefox focus for android java contribute to firefox focus for android firefox for fire tv java contribute to firefox for fire tv firefox preview (mobile browser, codename: "fenix") kotlin contribute to firefox preview firefox for ios swift contribute to firefox for ios firefox focus for ios swift contribute to firefox focus for ios mozilla hubs javascript and/or html/css, vr contribute to mozilla hubs servo rust contribute to servo there are even many ways to contribute to the mozilla mission...
...one reviewer.
Displaying Places information using views
of the view's view, and the nsitreeview interface of the view's view.
...s not recurse into containers.
mozbrowsershowmodalprompt
prompt() methods within the browser <iframe>'s content.
...stener("mozbrowsershowmodalprompt", function( event ) { console.log("asking for prompt:" + json.stringify(event.detail)); }); related events mozbrowserasyncscroll mozbrowserclose mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserloadend mozbrowserloadstart mozbrowserlocationchange mozbrowseropenwindow mozbrowsersecuritychange mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
HTMLIFrameElement.purgeHistory()
story is deleted, or an onerror handler if not.
...r = document.queryselector('iframe'); var request = browser.purgehistory(); request.onsuccess = function() { console.log('history deleted!'); } request.onerror = function() { console.error(this.error.name); } promise: var browser = document.queryselector('iframe'); browser.purgehistory().then(function() { console.log('history deleted!'); }, function(error) { console.error(this.error.name); }); specification not part of any specification.
Browser API
this point).
...lectionstatechanged sent when the text selected inside the browser <iframe> content changes.
Roll your own browser: An embedding how-to
uilding a sdk is the ability to identify and package up required files.
...t.
Gecko
gecko is the name of the layout engine developed by the mozilla project.
... gecko is the name of the layout engine developed by the mozilla project.
Infallible memory allocation
); p = moz_xrealloc(); p = moz_xstrdup(); f = new foo(); farray = new foo[]; n = ::operator new(...); narray = ::operator new[](...); explicitly fallible memory allocators these memory allocators are explicitly fallible, and will remain so.
...::operator new(...); narray = ::operator new[](...); explicitly fallible memory allocators these memory allocators are explicitly fallible, and will remain so.
AddonType
add-on types hold useful information about each type of add-on that may be installed.
... add-on types hold useful information about each type of add-on that may be installed.
FxAccountsProfileClient.jsm
ofileclient chrome code let client = new fxaccountsprofileclient({ serverurl: "https://profile.accounts.firefox.com/v1", token: "fxa_oauth_bearer_token", }); client.fetchprofile().then(profile => console.log(profile)); error handling the fxaccountsprofileclient.jsm normalizes request and client errors into fxaccountsprofileclienterror object.
... code let client = new fxaccountsprofileclient({ serverurl: "https://profile.accounts.firefox.com/v1", token: "fxa_oauth_bearer_token", }); client.fetchprofile().then(profile => console.log(profile)); error handling the fxaccountsprofileclient.jsm normalizes request and client errors into fxaccountsprofileclienterror object.
Interfacing with the Add-on Repository
ves a list of the matching addons, the number of add-ons returned, and the total number of add-ons that matched the query (in case the returned number is smaller than the requested number, for example).
...nction(addons, addoncount, totalresults) { var num = math.floor(math.random() * addoncount); this.shownotification("would you like to try the " + addons[num].name + " addon?", "install", addons[num].install); }, this routine randomly selects one of the returned add-ons, then calls the previously mentioned shownotification() routine, passing in as parameters a prompt including the name of the returned add-on, a label for the button to show in the notification ("install"), and the addoninstall object that can be used with the add-on manager api to install the add-on.
Index
your language localization this section of the style guide is for you to author.
... best practices and guidelines when dealing with ui code with respect to localization.
L10n Checks
zoomreducecmd.commandkey2 +fullzoomresetcmd.commandkey2 +organizebookmarks.label -showallbookmarkscmd2.label migration/migration.dtd -importfromfile.accesskey -importfromfile.label +importfromhtmlfile.accesskey +importfromhtmlfile.label you can assume changed strings when you see entities removed and added with a similar name.
...ommandkey2 +fullzoomresetcmd.commandkey2 +organizebookmarks.label -showallbookmarkscmd2.label migration/migration.dtd -importfromfile.accesskey -importfromfile.label +importfromhtmlfile.accesskey +importfromhtmlfile.label you can assume changed strings when you see entities removed and added with a similar name.
Localization notes
comments to the localizable files themselves, too.
...t to follow the format as closely as possible.
Localizing extension metadata on addons.mozilla.org
amo supports localized metadata for each extension.
...a), german (de), greek (el), basque (eu), spanish (es-es), farsi (fa), finnish (fi), french (fr), gaeilge (ga-ie), hebrew (he), hungarian (hu), indonesian (id), italian (it), japanese (ja), korean (ko), mongolian (mn), dutch (nl), polish (pl), brazilian portuguese (pt-br), european portuguese (pt-pt), romanian (ro), russian (ru), slovakian (sk), albanian (sq), swedish (sv-se), ukrainian (uk), vietnamese (vi), chinese (zh-cn) and taiwanese (zh-tw).
Localizing with Mozilla Translator
mt with the directory layout present in language packs, as you probably would need for a initial localization.
...g.properties |-- cookie | |-- cookieacceptdialog.dtd | `-- cookieacceptdialog.properties |-- global | |-- about.dtd | |-- apppicker.dtd .
Translation phase
ozilla applications, mozilla websites, and add-ons.
...and decide to use an offline tool for localizing mozilla applications, you will need to become familiar with using mercurial (hg).
What every Mozilla translator should know
specific version, a new repository is created under hg.mozilla.org/releases/.
...is one exception to this process.
gettext
warning: this document pertains to the development of mozilla web sites and not to the development of gecko-based extensions or applications.
... # some descriptive title.
Mozilla Web Services Security Model
e decision to http://www.example.com/dir1/dir2/web...pts-access.xml.
...xml syntax, as well as many failures to follow the format, will cause the document to be ignored.
Mozilla Development Strategies
massive, start a branch if you are working on something big, and you want to be able to check in incrementally without getting reviews, create a branch.
...to check in incrementally without getting reviews, create a branch.
mozilla::CondVar
mozilla::condvar is a bare wrapper around prcondvar.
... mozilla::condvar is a bare wrapper around prcondvar.
mozilla::Mutex
mozilla::mutex is a bare wrapper around prlock.
... mozilla::mutex is a bare wrapper around prlock.
GC and CC logs
c++ objects are alive in the heap.
...lector logs and cycle collector logs can be analyzed in various ways.
Gecko Profiler FAQ
the toolbar icon for the extension, expanding the settings section, and enter the secret cheat code “,” in the threads field and click on “apply (restart profiler)”.
...cret cheat code “,” in the threads field and click on “apply (restart profiler)”.
Profiling with the Gecko Profiler and Local Symbols on Windows
our firefox .mozconfig file.
...file.
dtrace
parts of this document easier to understand.
...r to understand.
browser.urlbar.formatting.enabled
the preference browser.urlbar.formatting.enabled controls whether the domain name including the top level domain is highlighted in the address bar by coloring it black and the other parts grey.
...ntrols whether the domain name including the top level domain is highlighted in the address bar by coloring it black and the other parts grey.
browser.urlbar.trimURLs
the preference browser.urlbar.trimurls controls whether the protocol http and the trailing slash behind domain name (if the open page is exactly the domain name) are hidden.
...ols whether the protocol http and the trailing slash behind domain name (if the open page is exactly the domain name) are hidden.
L20n Javascript API
emoveeventlistener(event: string, callback: function) remove an event listener previously registered with addeventlistener.
...t) update the context data which will be available to all entities in the context.
NSPR Contributor Guide
compatibility because many different applications, besides the mozilla client, use the nspr api, the api must remain downward compatible across even major releases.
...hat said: there are some libraries that implement functions intended for use with applications using nspr, such as ...nsprpub/lib/libc/plgetopt.*.
NSPR build instructions
option.
... 64-bit builds on windows, when using the mozillabuild environment.
PRErrorCode
type for error codes that can be retrieved with pr_geterror.
... the service nspr offers in this area is the ability to associate a thread-specific condition with an error number.
PRSocketOptionData
m.
...eive buffer size.
PR_DeleteSharedMemory
deletes a shared memory segment identified by name.
... deletes a shared memory segment identified by name.
PR EnumerateAddrInfo
enumerates each of the possible network addresses of a praddrinfo structure, acquired from pr_getaddrinfobyname.
... enumptr the index pointer of the enumeration.
PR_EnumerateHostEnt
evaluates each of the possible addresses of a prhostent structure, acquired from pr_gethostbyname or pr_gethostbyaddr.
...meters: enumindex the index of the enumeration.
PR_FindSymbol
pr_findsymbol() will return an untyped reference to a symbol in a particular library given the identity of the library and a textual representation of the symbol in question.
...ndsymbol() will return an untyped reference to a symbol in a particular library given the identity of the library and a textual representation of the symbol in question.
PR_FindSymbolAndLibrary
finds a symbol in one of the currently loaded libraries, and returns both the symbol and the library in which it was found.
... finds a symbol in one of the currently loaded libraries, and returns both the symbol and the library in which it was found.
PR FreeAddrInfo
destroys the praddrinfo structure returned by pr_getaddrinfobyname.
... destroys the praddrinfo structure returned by pr_getaddrinfobyname.
Process Initialization
this chapter describes the nspr api for versioning, process initialization, and shutdown of nspr.
... this chapter describes the nspr api for versioning, process initialization, and shutdown of nspr.
Deprecated SSL functions
the following ssl functions have been replaced with newer versions.
... by the new ssl shared libraries.
NSS 3.16.3 release notes
.
... https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_16_3_rtm/src/ new in nss 3.16.3 this release consists primarily of ca certificate changes as listed below, and fixes an issue with a recently added utility function.
NSS 3.23 release notes
ss to the version downgrade protection from tls 1.3.
...6:67 cn = netlock uzleti (class b) tanusitvanykiado sha-256 fingerprint: 39:df:7b:68:2b:7b:93:8f:84:71:54:81:cc:de:8d:60:d8:f2:2e:c5:98:87:7d:0a:aa:c1:2b:59:18:2b:03:12 cn = netlock expressz (class c) tanusitvanykiado sha-256 fingerprint: 0b:5e:ed:4e:84:64:03:cf:55:e0:65:84:84:40:ed:2a:82:75:8b:f5:b9:aa:1f:25:3d:46:13:cf:a0:80:ff:3f friendly name: verisign class 1 public pca – g2 sha-256 fingerprint: 34:1d:e9:8b:13:92:ab:f7:f4:ab:90:a9:60:cf:25:d4:bd:6e:c6:5b:9a:51:ce:6e:d0:67:d0:0e:c7:ce:9b:7f friendly name: verisign class 3 public pca sha-256 fingerprint: a4:b6:b3:99:6f:c2:f3:06:b3:fd:86:81:bd:63:41:3d:8c:50:09:cc:4f:a3:29:c2:cc:f0:e2:fa:1b:14:03:05 friendly name: verisign class 3 public pca...
NSS 3.35 release notes
by default.
...abase files to store certificates, key, trust, and other information.
NSS 3.38 release notes
new functionality added support for the tls record size limit extension.
... record size limit extension notable changes in nss 3.38 fixed cve-2018-0495 in bug 1464971.
NSS Sample Code sample4
nss sample code 4: pki encryption /* example code to illustrate pki crypto ops (encrypt with public key, * decrypt with private key) * * code assumes that you have set up a nss database with a certificate * and a private key.
...; seckeyprivatekey *pvtkey = null; int modulus_len, i, outlen; char *buf1 = null; char *buf2 = null; /* initialize nss */ pk11_setpasswordfunc(passwdcb); rv = nss_init("."); if (rv != secsuccess) { fprintf(stderr, "nss initialization failed (err %d)\n", pr_geterror()); goto cleanup; } cert = pk11_findcertfromnickname("testca", null); if (cert == null) { fprintf(stderr, "couldn't find cert testca in nss db (err %d)\n", pr_geterror()); goto cleanup; } pubkey = cert_extractpublickey(cert); if (pubkey == null) { fprintf(stderr, "couldn't extract public key from cert testca (err %d)\n", pr_geterror()); goto cleanup; } modulus_len = seckey_publickeystrength(...
NSS Sample Code sample5
ypublickey *pubkey = null; certsubjectpublickeyinfo *spki = null; seckeyprivatekey *pvtkey = null; int modulus_len, i, outlen; char *buf1 = null; char *buf2 = null; char *pubkstr = base64_encoded_subjectpublickeyinfo; char *pvtkstr = base64_encoded_privatekeyinfo; secitem der; secitem nickname; pk11slotinfo *slot = null; /* initialize nss * you need to explicitly authenticate to the internal token if you use * nss_init insteadf of nss_nodb_init * invoke this after getting the internal token handle * pk11_authenticate(slot, pr_false, null); */ rv = nss_nodb_init("."); if (rv != secsuccess) { fprintf(stderr, "nss initialization failed (err %d)\n", ...
...us_len;i++) { buf1[i]= (i %26) + 'a'; } buf1[modulus_len-1] = '\0'; fprintf(stderr, "buffer being encrypted = \n%s\n", buf1); /* encrypt buf1, result will be in buf2 */ rv = pk11_pubencryptraw(pubkey, buf2, buf1, modulus_len, null); if (rv != secsuccess) { fprintf(stderr, "encrypt with public key failed (err %d)\n", pr_geterror()); goto cleanup; } nickname.type = sibuffer; nickname.data = "pvtkeynickname"; nickname.len = strlen("pvtkeynickname"); rv = atob_convertasciitoitem(&der, pvtkstr); if (rv!= secsuccess) { fprintf(stderr, "atob_convertasciitoitem failed %d\n", pr_geterror()); goto cleanup; } /* ku_all includes a lot of different key usages, ku_data_encipherment * is enough for just rsa encryption.
PKCS 7 functions
the public functions listed here perform pkcs #7 operations required by mail and news applications and by some of the nss tools.
...ater sec_pkcs7encoderstart mxr 3.2 and later sec_pkcs7encoderupdate mxr 3.2 and later sec_pkcs7getcertificatelist mxr 3.2 and later sec_pkcs7getcontent mxr 3.2 and later sec_pkcs7getencryptionalgorithm mxr 3.2 and later sec_pkcs7getsignercommonname mxr 3.4 and later sec_pkcs7getsigneremailaddress mxr 3.4 and later sec_pkcs7getsigningtime mxr 3.4 and later sec_pkcs7includecertchain mxr 3.2 and later sec_pkcs7iscontentempty mxr 3.2 and later sec_pkcs7setcontent mxr 3.4 and later ...
SSL functions
, applications that support ssl use some of the certificate functions, crypto functions, and utility functions described below on this page.
...documentation is available for a function listed below, the function name is linked to either its mdc wiki page or its entry in the old ssl reference.
S/MIME functions
the public functions listed here perform s/mime operations using the s/mime toolkit.
...fo_addsigningtime mxr 3.2 and later nss_cmssignerinfo_create mxr 3.2 and later nss_cmssignerinfo_createwithsubjkeyid mxr 3.6 and later nss_cmssignerinfo_destroy mxr 3.2 and later nss_cmssignerinfo_getcertlist mxr 3.2 and later nss_cmssignerinfo_getsignercommonname mxr 3.2 and later nss_cmssignerinfo_getsigneremailaddress mxr 3.2 and later nss_cmssignerinfo_getsigningcertificate mxr 3.2 and later nss_cmssignerinfo_getsigningtime mxr 3.2 and later nss_cmssignerinfo_getverificationstatus mxr 3.2 and later nss_cmssignerinf...
Utility functions
the public functions listed here perform initialization tasks and other services.
...umentation is available for a function listed below, the function name is linked to either its mdc wiki page or its entry in the old ssl reference.
Necko walkthrough
annelload nsuriloader::openuri passes an nsistreamlistener pointer, 'loader' to nsuriloader::openchannel - it creates an nsdocumentopeninfo object, which implements nsistreamlistener, i.e.
...o, on the socket thread...
Installing Pork
l way in a special directory.
...on't do this, mcpp will get the wrong set of automatic definitions and you'll end up with an unpleasant hybrid x86-64/i686 build system.
Rhino Debugger
ipts run in the mozilla browser since rhino is not the engine used in such environments.
...n is about to return from a function or script.
Rhino license
are met: * * - redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer.
...s of source code must retain the above copyright * notice, this list of conditions and the following disclaimer.
JIT Optimization Outcomes
tofbounds getelemstringnotcached nonnativereceiver indextype setelemnondensenontanotcached nosimdjitsupport optimization failed because simd jit support was not enabled.
... icsetpropstub_domproxyshadowed icsetpropstub_domproxyunshadowed icsetpropstub_callsetter icsetpropstub_addslot icsetpropstub_setunboxed icgetelemstub_readslot icgetelemstub_callgetter icgetelemstub_readunboxed icgetelemstub_dense icgetelemstub_densehole icgetelemstub_typedarray icgetelemstub_argselement icgetelemstub_argselementstrict icsetelemstub_dense icsetelemstub_typedarray icnamestub_readslot icnamestub_callgetter call inlining outcomes optimization outcomes of attempts to inline function calls.
JS::CallArgs
this article covers features introduced in spidermonkey 17 helper class encapsulating access to the callee, this value, arguments, and argument count for a function call.
...callargs js::callargsfromvp(unsigned argc, js::value *vp); name type description args unsigned number of argument.
JS::PersistentRooted
es introduced in spidermonkey 31 a copyable, assignable global gc root type with arbitrary lifetime, an infallible constructor, and automatic unrooting on destruction.
... when the object itself is marked.
JS::Rooted
this article covers features introduced in spidermonkey 17 local variable of type t whose value is always rooted.
...::rooted<t>(cx, x)).
JS::SetLargeAllocationFailureCallback
this article covers features introduced in spidermonkey 31 specify a new callback function for large memory allocation failure.
... rt jsruntime * the jsruntime for which to set the gc callback.
JS::SetOutOfMemoryCallback
this article covers features introduced in spidermonkey 31 specify a new callback function for out of memory error.
...ype description rt jsruntime * the jsruntime for which to set the gc callback.
JS::ToPrimitive
this article covers features introduced in spidermonkey 45 converts a javascript object to a primitive value, using the semantics of toprimitive.
...ted value.
JSCheckAccessOp
t may still work in some browsers, its use is discouraged since it could be removed at any time.
...objectaccesscallback.) syntax typedef jsbool (* jscheckaccessop)(jscontext *cx, jsobject *obj, jsval id, jsaccessmode mode, jsval *vp); name type description cx jscontext * the js context in which the property access attempt is occurring.
JSExtendedClass.wrappedObject
obsolete since javascript 1.8.5this feature is obsolete.
...at class may be wrappers.
JSObjectOps.getAttributes
release to the next.
...butes of a property.
JSObjectOps.newObjectMap
pidermonkey internals documentation, not api documentation.
...sobjectmap subclasses.
JSPrincipals
define security information for an object or script.
...pi 12 globalprivilegesenabled jsbool (*)(jscontext *, jsprincipals *) flag indicating whether principals are enabled globally.
JSVersion
the values of the jsversion enumerated type stand for particular versions of the javascript run-time.
...sversion enumerated type stand for particular versions of the javascript run-time.
JS_AddArgumentFormatter
since it could be removed at any time.
...ller, which is typically a string constant.
JS_AddExternalStringFinalizer
obsolete since jsapi 13this feature is obsolete.
...gfinalizer(jsstringfinalizeop finalizer); name type description finalizer jsstringfinalizeop pointer to a callback function, described below.
JS_BeginRequest
indicates to the js engine that the calling thread is entering a region of code that may call into the jsapi but does not block.
...uest and js_endrequest to bracket maximal non-blocking hunks of native code that call the jsapi.
JS_CheckAccess
obsolete since jsapi 29this feature is obsolete.
...sobject *obj, jsid id, jsaccessmode mode, jsval *vp, unsigned int *attrsp); name type description cx jscontext * the context in which to perform the access check.
JS_CloneFunctionObject
obsolete since jsapi 36this feature is obsolete.
...nt whenever possible.
JS_ConvertValue
obsolete since jsapi 38this feature is obsolete.
...string works like js::tostring.
JS_DecompileFunction
generates the complete source code of a function declaration from a compiled function.
...le a function that does not make a native c call, then the text created by js_decompilefunction is a complete function declaration suitable for re-parsing.
JS_DeleteElement2
obsolete since jsapi 39this feature is obsolete.
...39this feature is obsolete.
JS_EnumerateDiagnosticMemoryRegions
this article covers features introduced in spidermonkey 17 enumerate memory regions that contain diagnostic information..
...ions that contain diagnostic information..
JS_ForwardGetPropertyTo
find a specified property and retrieve its value.
...j, uint32_t index, js::handleobject onbehalfof, js::mutablehandlevalue vp); name type description cx jscontext * a context.
JS_GetGlobalForScopeChain
obsolete since jsapi 25this feature is obsolete.
...is feature is obsolete.
JS_GetGlobalObject
obsolete since jsapi 24this feature is obsolete.
...e it is automatically protected from garbage collection and the application can easily access it.
JS_GetSecurityCallbacks
ks *callbacks); const jssecuritycallbacks * js_getsecuritycallbacks(jsruntime *rt); /* obsolete since jsapi 13 */ jssecuritycallbacks * js_setcontextsecuritycallbacks(jscontext *cx, jssecuritycallbacks *callbacks); jssecuritycallbacks * js_getruntimesecuritycallbacks(jsruntime *rt); jssecuritycallbacks * js_setruntimesecuritycallbacks(jsruntime *rt, jssecuritycallbacks *callbacks); name type description rt jsruntime * a runtime to get/set the security callbacks.
...cker contentsecuritypolicyallows; // added in spidermonkey 1.8.5 jssubsumesop subsumes; // added in spidermonkey 31 jscheckaccessop checkobjectaccess; // obsolete since jsapi 29 jsprincipalstranscoder principalstranscoder; // obsolete since jsapi 13 jsobjectprincipalsfinder findobjectprincipals; // obsolete since jsapi 13 }; name type description contentsecuritypolicyallows jscspevalchecker a pointer to the function which checks if a csp instance wants to disable eval() and friends.
JS_InitStandardClasses
initializes general js function and object classes, and the built-in object classes used in most scripts.
...uri, decodeuricomponent, encodeuri, encodeuricomponent, error, eval, evalerror, function, infinity, isnan, isfinite, math, nan, number, object, parseint, parsefloat, rangeerror, referenceerror, regexp, string, syntaxerror, typeerror, undefined, and urierror as well as a few spidermonkey-specific globals, depending on compile-time options: escape, unescape, uneval, internalerror, script, xml, namespace, qname, file, generator, iterator, and stopiteration, as of spidermonkey 1.7.
JS_InstanceOf
determine if an object is an instance of a specified jsclass.
...an also be used in native functions to check the class of an argument when a particular class is required.
JS_IterateCompartments
this article covers features introduced in spidermonkey 17 iterate over compartments and call the specified callback function on every compartment.
...untime * the runtime of the compartments to iterate over.
JS_NewRegExpObject
*cx, js::handleobject obj, const char16_t *chars, size_t length, unsigned flags); jsobject * js_newregexpobjectnostatics(jscontext *cx, char *bytes, size_t length, unsigned flags); jsobject * js_newucregexpobjectnostatics(jscontext *cx, char16_t *chars, size_t length, unsigned flags); name type description cx jscontext * the context in which to create the new object.
...er must be in a request on this jscontext.
JS_NewRuntime
initializes the javascript runtime.
...jsapi call in an application, and js_destroyruntime and js_shutdown should be the last ones.
JS_NewScriptObject
sapi 8this feature is obsolete.
...sure that its script object is reachable (perhaps by using js_addroot or js_enterlocalrootscope).
JS_ObjectIsFunction
test whether a given object is a function.
... test whether a given object is a function.
JS_ParseJSON
this article covers features introduced in spidermonkey 1.8.6 parse a string using the json syntax described in ecmascript 5 and return the corresponding value.
....
JS_ReportErrorNumber
unsigned flags, jserrorcallback errorcallback, void *userref, const unsigned errornumber, ...); void js_reporterrornumberucarray(jscontext *cx, jserrorcallback errorcallback, void *userref, const unsigned errornumber, const char16_t **args); // added in spidermonkey 19 name type description cx jscontext * the context in which to report the error.
...pe char * for js_reporterrornumber or js_reporterrorflagsandnumber, or char16_t * for js_reporterrornumberuc or js_reporterrorflagsandnumberuc.
JS_SealObject
obsolete since javascript 1.8.5this feature is obsolete.
... from that of js_sealobject.
JS_SetBranchCallback
me browsers, its use is discouraged since it could be removed at any time.
... end of the script.
JS_SetContextCallback
specifies a callback function that is automatically called whenever a jscontext is created or destroyed.
...e type description rt jsruntime * pointer to a js runtime.
JS_SetDestroyCompartmentCallback
this article covers features introduced in spidermonkey 17 set the callback function for each compartment being destroyed.
...callback callback); name type description cx jsruntime * the runtime to set the callback function.
JS_SetFunctionCallback
racers and profilers since it works across all run modes (interpreter, method jit, trace jit).
...in preference to this function, because it is invoked when the javascript stack is guaranteed to be in a consistent state (and therefore it is valid to inspect and modify local variables, generate stack traces, and set breakpoints.) callback syntax typedef void (* jsfunctioncallback)(const jsfunction *fun,const jsscript *scr, const jscontext *cx, int entering); name type description fun const jsfunction * the javascript function being invoked or exited.
JS_SetGCCallback
specify a new callback function for the garbage collector.
...e jsruntime for which to set the gc callback.
JS_SetInterruptCallback
this article covers features introduced in spidermonkey 31 set a callback function that is automatically called periodically while javascript code runs.
...ck(jsruntime *rt, jsinterruptcallback callback); jsinterruptcallback js_getinterruptcallback(jsruntime *rt); void js_requestinterruptcallback(jsruntime *rt); name type description rt jsruntime * the runtime.
JS_SetOptions
obsolete since jsapi 27this feature is obsolete.
...cript et al promises to execute the compiled script once only, in the same scope object used for compilation.
JS_THREADSAFE
ith calls to js_beginrequest() and js_endrequest().
... words "requires request", like this: name type description cx jscontext * the context to use.
JS_TracerInit
browsers, its use is discouraged since it could be removed at any time.
...n trc jstracer * the tracer to be initialized.
JS_TypeOfValue
determines the js data type of a js value.
...ust be in a request on this jscontext.
JS_ValueToNumber
obsolete since jsapi 24this feature is obsolete.
... if that produces a primitive value, the value is converted to a number as described above and conversion succeeds.
jsid
a jsid is a javascript identifier for a property or method of an object.
... a jsid is a javascript identifier for a property or method of an object.
SavedFrame
.
...nt sees it, waive the xray wrapper with components.utils.waivexrays: const contentviewofstack = components.utils.waivexrays(somestack); accessor properties of the savedframe.prototype object source the source url for this stack frame, as a string.
compare-locales
oomreducecmd.commandkey2 +fullzoomresetcmd.commandkey2 +organizebookmarks.label -showallbookmarkscmd2.label migration/migration.dtd -importfromfile.accesskey -importfromfile.label +importfromhtmlfile.accesskey +importfromhtmlfile.label you can assume changed strings when you see entities removed and added with a similar name.
...mmandkey2 +fullzoomresetcmd.commandkey2 +organizebookmarks.label -showallbookmarkscmd2.label migration/migration.dtd -importfromfile.accesskey -importfromfile.label +importfromhtmlfile.accesskey +importfromhtmlfile.label you can assume changed strings when you see entities removed and added with a similar name.
Gecko events
endant of a component has changed.
... changed.
XForms Accessibility
about navindex in xforms.
...ese elements may be used as child elements to the form controls described above.
Embedded Dialog API
.
...o make our embedding api as consistent as possible, we'd like to impose a few coding conventions on these dialog-posing interfaces.
Places Developer Guide
er are visible in the bookmarks menu.
...kmarks.default_index, "my bookmark"); // add an annotation to the bookmark, that expires only when // the bookmark is deleted annotations.setitemannotation(mybookmark, "myannotation", "notes for this bookmark...", 0, annotations.expire_with_history); note the syntactic difference between the uri and bookmark annotation apis: uri annotation apis use "page" in method names whereas bookmark annotation apis use "item" in method names.
extIApplication
el (firefox), steel (thunderbird) and smile (seamonkey) pages.
...e (seamonkey) pages.
extIExtension
defined in toolkit/components/exthelper/extiapplication.idl.
...lication.idl.
XML Extras
uct.
...ten articles on xml data islands in mozilla: "make xml data islands work in mozilla", "build cross-browser xml paging code" and "implement a flexible shopping cart with xml and asp".
How to build an XPCOM component in JavaScript
the mozilla public # license, v.
...factory: { ...
Creating the Component Code
nd find the symbol nsgetmodule.
...t loaded and called registerself on, passing this value to the registration methods is a shortcut for determining what kind of component is being registered.
Receiving startup notifications
xpcom itself is.
..., pr_true, pr_true, getter_copies(previous)); this causes your component to be instantiated using nsicomponentmanager.createinstance().
XPCOM guide
Mozilla › Tech › XPCOM › Guide
on the main thread.
...r, it may be useful for c++ code in the mozilla platform to run tasks on another thread.mozilla internal string guidemost of the mozilla code uses a c++ class hierarchy to pass string data, rather than using raw pointers.
Components.classes
components.classes is a read-only object whose properties are classes indexed by contractid.
... .getservice(ci.nsiobserverservice); a less known trick, useful when creating multiple instances of the same component, is to use the new operator on the class object: var clazz = components.classes["@mozilla.org/supports-array;1"]; var inst = new clazz(components.interfaces.nsisupportsarray); this implicitly calls the createinstance() method for you.
Components.interfaces
components.interfaces is a read-only object whose properties are interfaces indexed by their names.
...sid.
Components.results
components.results is a read-only object whose properties are the names listed as the first parameters of the macros in js/xpconnect/src/xpc.msg (also at table of errors), with the value of each corresponding to that constant's value.
... components.results is a read-only object whose properties are the names listed as the first parameters of the macros in js/xpconnect/src/xpc.msg (also at table of errors), with the value of each corresponding to that constant's value.
Components.utils.importGlobalProperties
, such as indexeddb and xmlhttprequest, that are available to dom window globals.
...httprequest nsixmlhttprequest obsolete since gecko 60 for string/object in table without a minimum firefox version, it is not exactly known since when it was available, however it is guranteed available from firefox 28 and up.
Components.utils
waivexrays() removes the filtering provided by an xray.
... with evalinsandbox().
Components object
advanced privileges and may not work in web pages.
...xceptions id constructor for xpcom nsids interfaces array of interfaces by interface name interfacesbyid array of interfaces by iid issuccesscode function to determine if a given result code is a success code lastresult result code of most recent xpconnect call manager the global xpcom component manager results array of known result codes by name returncode pending result for current call stack current javascript call stack utils provides access to several useful features utils.atline provides access to the value of the atline property in the javascript environment.
nsIRegistry
ice.
...nts.lastresult == 0 ); } catch(e) {} now, the output is something like: profiles (344) profiles/default (530) profiles/foo (1046) profiles/bar (1518) the number inside the parenthesis is the "key." you can use this key with the rest of the nsiregistry api (see mxr).
Profiling XPCShell
cases, an xpcshell script can help.
... [2,25420] createdatetime() {60-62} 579 {min 0, max 3, avg 0, sum 427, self 427} [2,56810] cp_qi() {860-866} 835 {min 0, max 1, avg 0, sum 950, self 950} the first line tells which file was profiled.
Language bindings
rown when implementing xpcom interfaces in javascript, and they can provide better diagnostics in the error console if not caught than simply throwing an nsresult's value will.components.idcomponents.id is a constructor that creates native objects that conform to the nsijsid interface.components.interfacescomponents.interfaces is a read-only object whose properties are interfaces indexed by their names.components.interfacesbyidcomponents.interfacesbyid is a read-only array of classes indexed by iid.components.issuccesscodedetermines whether a given xpcom return code (that is, an nsresult value) indicates the success or failure of an operation, returning true or false respectively.components.lastresultcomponents.managercomponents.manager is a convenience reflection of the global native componen...
...icates the success or failure of an operation, returning true or false respectively.components.lastresultcomponents.managercomponents.manager is a convenience reflection of the global native component manager service.
nsACString_internal
class declaration nstsubstring is the most abstract class in the string hierarchy.
...tract class in the string hierarchy.
nsAString_internal
class declaration nstsubstring is the most abstract class in the string hierarchy.
...tract class in the string hierarchy.
imgIEncoder
fied by inputformat.
... options are encoder-specific.
GetActionDescription
« nsiaccessible page summary this method retrieves the description (localized name) of the accessible action at the given zero-based index.
...astring getactiondescription( in pruint8 aindex ); parameters aindex[in] the zero-based index.
nsIAccessibleEvent
cendent_changed 0x0007 0x0004 the active descendant of a component has changed.
...scendant of a component has changed.
nsIAccessibleHyperLink
accessible/public/nsiaccessiblehyperlink.idlscriptable a cross-platform interface that supports hyperlink-specific properties and methods.
...d(); obsolete since gecko 1.9 boolean isvalid(); obsolete since gecko 1.9 attributes attribute type description anchorcount long the number of anchors within this hyperlink.
nsIAppStartup
t to take this as a signal to quit the application.
....classes["@mozilla.org/consoleservice;1"] .getservice(components.interfaces.nsiconsoleservice); var startupinfo = components.classes["@mozilla.org/toolkit/app-startup;1"] .getservice(ci.nsiappstartup_mozilla_2_0).getstartupinfo(); var keys = object.keys(startupinfo); keys.sort(function(a, b) { return startupinfo[a] - startupinfo[b]; }); for each (var name in keys) { aconsoleservice.logstringmessage(name + ": " + startupinfo[name]); } to calculate how long startup took, compute the difference between the event's timestamp and the timestamp of the process event.
nsIApplicationCacheService
n acstring group); nsiapplicationcache getapplicationcache(in acstring clientid); void getgroups([optional] out unsigned long count, [array, size_is(count), retval] out string groupids); methods cacheopportunistically() flags the specified key as one that should be cached opportunistically.
...the list of application cache groups.
nsIAutoCompleteItem
xpfe/components/autocomplete/public/nsiautocompleteresults.idlscriptable please add a summary to this article.
... xpfe/components/autocomplete/public/nsiautocompleteresults.idlscriptable please add a summary to this article.
nsIBlocklistPrompt
pruint32 acount); methods prompt() prompt the user about newly blocked addons.
...s prompt() prompt the user about newly blocked addons.
nsIBrowserHistory
is called from the ui when the user deletes a group associated with a host or domain.
...ages from a specific host, or pages from all hosts in a given domain.
nsICookie
nuary 1, 1970 utc.
... expires = 0 represents a session cookie.
nsICookieAcceptDialog
extensions/cookie/nsicookieacceptdialog.idlscriptable this interface holds some constants for the cookie accept dialog.
... extensions/cookie/nsicookieacceptdialog.idlscriptable this interface holds some constants for the cookie accept dialog.
nsIDOMClientRect
t width of the rectangle box (this is identical to right minus left).
... box (this is identical to right minus left).
nsIDOMWindow
ain.
... 8.0 this attribute was part of nsidomstoragewindow.
nsIDialogCreator
embedding/base/nsidialogcreator.idlscriptable please add a summary to this article.
...hunderbird 3.3 / seamonkey 2.1) method overview void opendialog(in unsigned long atype, in acstring aname, in acstring afeatures, in nsidialogparamblock aarguments, [optional] in nsidomelement aframeelement); constants constant value description unknown_dialog 0 generic_dialog 1 select_dialog 2 methods opendialog() void opendialog( in unsigned long atype, in acstring aname, in acstring afeatures, in nsidialogparamblock aarguments, in nsidomelement aframeelement optional ); parameters atype aname afeatures aarguments aframeelement optional ...
nsIDirIndex
ng information about a directory index.
....7 attributes attribute type description contenttype string the content type; may be null if it is unknown.
nsIDroppedLinkItem
dom/base/nsidroppedlinkhandler.idlscriptable please add a summary to this article.
... dom/base/nsidroppedlinkhandler.idlscriptable please add a summary to this article.
nsIExternalHelperAppService
ents.interfaces.nsiexternalhelperappservice); method overview boolean applydecodingforextension(in autf8string aextension, in acstring aencodingtype); nsistreamlistener docontent(in acstring amimecontenttype, in nsirequest arequest, in nsiinterfacerequestor awindowcontext, in boolean aforcesave); methods applydecodingforextension() determines whether or not data whose filename has the specified extension should be decoded from the specified encoding type before being saved or delivered to helper applications.
...r awindowcontext, in boolean aforcesave); methods applydecodingforextension() determines whether or not data whose filename has the specified extension should be decoded from the specified encoding type before being saved or delivered to helper applications.
nsIFeedContainer
entry.
...of nsifeedperson objects describing contributors to the feed or entry.
nsIFeedPerson
eds/public/nsifeedperson.idlscriptable this interface describes an author of or a contributor to an rss or atom feed.
...n.idlscriptable this interface describes an author of or a contributor to an rss or atom feed.
nsIFilePicker
rue, the file is added to the operating system's "recent documents" list (if the operating system has one; nothing happens if there is no such concept on the user's platform).
...no such concept on the user's platform).
nsIFrameMessageListener
plementing out-of-process handling of frames; the process handling a frame should implement this interface in order to receive messages.
...f-process handling of frames; the process handling a frame should implement this interface in order to receive messages.
nsIFrameScriptLoader
d with this window message manager.
...he flag.
nsILocalFile
} native code only!
...lfile fromfile, in acstring relativedesc ); parameters fromfile the file to which the descriptor is relative.
nsIMessageListener
ed message is an object with the following properties: target the target of the message.
...ect with the following properties: target the target of the message.
nsIMicrosummaryGenerator
r aother); astring generatemicrosummary(in nsidomnode apagecontent); attributes attribute type description loaded boolean has the generator itself (which may be a remote resource) been loaded.
...(in nsidomnode apagecontent); attributes attribute type description loaded boolean has the generator itself (which may be a remote resource) been loaded.
nsIMsgCompFields
n astring otherrandomheaders astring no longer exists - see https://groups.google.com/forum/#!topic/mozilla.dev.apps.thunderbird/s4ofmm8_b28 priority char * receiptheadertype print32 references char * replyto astring securityinfo nsisupports subject astring templatename astring temporaryfiles char * obsolete temporaryfiles obsolete, do not use anymore to astring usemultipartalternative prbool uuencodeattachments prbool methods utility methods prbool checkcharsetconversion ( out char * fallbackcharset ); nsimsgrecipientarray splitrecipients ( in prunicha...
... nsimsgrecipientarray splitrecipients ( in prunichar * recipients, in prbool emailaddressonly ); void convertbodytoplaintext ( ); attachment handling methods void addattachment ( in nsimsgattachment attachment ); void removeattachment ( in nsimsgattachment attachment ); void removeattachments ( ); header methods void setheader(char* name, char* value); references this interface is the type of the following properties: nsimsgcompose.compfields, nsimsgcomposeparams.composefields this interface is passed as an argument to the following methods: nsimsgcomposesecure.begincryptoencapsulation, nsimsgcomposesecure.requirescryptoencapsulation, nsimsgsend.createandsendmessage, nsimsgsend.sendmessagefile, nsismimejshelper.getno...
nsIPrefBranch2
n nsiobserver aobserver, in boolean aholdweak); void removeobserver(in string adomain, in nsiobserver aobserver); methods addobserver() add a preference change observer.
...ference.
nsIProcess
the location of the executable file on disk.
...able file on disk.
nsIProcessScriptLoader
s child process aallowdelayedload should always be true.
... removedelayedprocessscript() removes aurl from the list of scripts which support delayed load.
nsIProperty
xpcom/ds/nsiproperty.idlscriptable please add a summary to this article.
... xpcom/ds/nsiproperty.idlscriptable please add a summary to this article.
nsIProtocolProxyService
overtimeout, in nsiproxyinfo afailoverproxy ); parameters atype the proxy type is a string value that identifies the proxy type.
...are: "http" - specifies a http proxy "https" - specifies a https proxy "socks" - specifies a socks version 5 proxy "socks4" - specifies a socks version 4 proxy "direct" - specifies a direct connection (useful for failover) the type name is case-insensitive.
nsIRequest
loadflags nsloadflags the load flags of this request.
... the load flags of this request.
nsIScriptableInputStream
called once, and should always be closed.
...his stream article is here, this is only an excerpt so cannot copy paste this code into scratchpad.
nsISmsService
xt] nsidommozsmsmessage createsmsmessage( in long id, in domstring delivery, in domstring sender, in domstring receiver, in domstring body, in jsval timestamp, in bool read ); parameters id a number representing the id of the message.
...id, in domstring delivery, in domstring sender, in domstring receiver, in domstring body, in jsval timestamp, in bool read ); parameters id a number representing the id of the message.
nsIToolkitProfile
e to create and obtain them.
...overview nsiprofilelock lock(out nsiprofileunlocker aunlocker); void remove(in boolean removefiles); attributes attribute type description localdir nsilocalfile the location of the profile local directory, which may be the same as the root directory.
nsITransferable
html source.
...ements.
nsIURIFixupInfo
preferreduri nsiuri best guess of what uri consumer expects.
...t uri consumer expects.
nsIURLFormatter
toolkit/components/urlformatter/public/nsiurlformatter.idlscriptable this interface exposes methods to substitute variables in url formats.
...ring formaturl( in astring aformat ); parameters aformat unformatted url as a string.
nsIWebBrowserPersist
riginal dom rather than cloning nodes.
...sist_flags_fixup_links_to_destination 256 fix links relative to destination location (not origin) persist_flags_dont_fixup_links 512 do not make any adjustments to links.
nsIWifiAccessPoint
nterface provides information about a single access point.
...e wireless network, as an ascii string.
nsIXULTemplateBuilder
is used for the template.
... is there isn't one.
nsIZipEntry
attributes attribute type description compression unsigned short the type of compression used for the item.
...xample, the entry for the directory foo/ in a zip containing exactly one entry for foo/bar.txt is synthetic.
XPCOM Interface Reference by grouping
using this guide this page lists the current (as of dec.
...ack nsifaviconservice frame nsichromeframemessagemanager nsiframeloader nsiframeloaderowner nsiframemessagelistener nsiframemessagemanager interface nsijsxmlhttprequest jetpack nsijetpack nsijetpackservice offlinestorage nsiapplicationcache nsiapplicationcachechannel nsiapplicationcachecontainer nsiapplicationcachenamespace nsiapplicationcacheservice places nsiannotationobserver rss feed nsifeed nsifeedcontainer nsifeedelementbase nsifeedentry nsifeedgenerator nsifeedperson nsifeedprocessor nsifeedprogresslistener nsifeedresult nsifeedresultlistener nsifeedtextconstruct script mozijssubscriptloader storage mozistoragevac...
Using nsIDirectoryService
section of this site.) adding a location: there are currently two ways to add a file location to the directory service: directly and delayed.
...ou need to include an alias in your application that points to this directory and the resource id of this alias goes into your 'cfrg' resource.
Xptcall Porting Status
makefile.win and mozilla\xpcom\build) are needed because i was unable to figure how to do a "declspecexport" from the assembler asaxp ...
...bc 2.1.1, and egcs 1.1.2.
XTF
Mozilla › Tech › XTF
the extensible tag framework (xtf) allows adding support for new namespaces using xpcom components to mozilla (written in javascript or c++).
... the extensible tag framework (xtf) allows adding support for new namespaces using xpcom components to mozilla (written in javascript or c++).
Mozilla technologies
ription language used to specify xpcom interface classes.xray visiongecko runs javascript from a variety of different sources and at a variety of different privilege levels.xslt 2.0although xslt 2.0 is not natively supported in firefox, it is possible via saxon-b (java) or, more recently, saxon-ce (javascript) to perform xslt 2.0.xtfthe extensible tag framework (xtf) allows adding support for new namespaces using xpcom components to mozilla (written in javascript or c++).
...privilege levels.xslt 2.0although xslt 2.0 is not natively supported in firefox, it is possible via saxon-b (java) or, more recently, saxon-ce (javascript) to perform xslt 2.0.xtfthe extensible tag framework (xtf) allows adding support for new namespaces using xpcom components to mozilla (written in javascript or c++).
Events
there are a lot of events that can be fired in mail code.
...sition event name event type fired when...
Zombie compartments
gets/...utton.html?...) compartment(http://cdn.at.atwola.com/_media/uac/tcode3.html) compartment(https://s-static.ak.fbcdn.net/connec..._proxy.php?...) compartment(http://ads.tw.adsonar.com/adserving/getads.jsp?...) (some of those compartment urls are long and have been truncated.) another thing to beware is each compartment is created for an origin (e.g.
... pay too much attention to it.
Working with data
when type casting.
...ments, you'll need to do it yourself.
ABI
types.default_abi, ctypes.stdcall_abi, and ctypes.winapi_abi.
...s,including those on mac os x and linux.
UInt64
leading minus sign, if the value was negative, followed by one or more lower-case digits in the specified radix.
... c2 &= 0x1fff; c4 += c3 >>> 13; c3 &= 0x1fff; c5 += c4 >>> 13; c4 &= 0x1fff; var ch = ((c5 << 20) | (c4 << 7) | (c3 >>> 6)) >>> 0; var cl = ((c3 << 26) | (c2 << 13) | c1) >>> 0; return uint64.join(ch, cl); } function uint64_or(...uint64) { // bitwise or // if there are logical or and bitwise or, bitwise or may be named `bor` or `bitor`, but i don't think there could be logical or, so i think just `or` is the right name ensureuint64(uint64); var hi = 0; var lo = 0; for (var i=0; i<uint64.length; i++) { hi |= uint64.hi(uint64[i]); lo |= uint64.lo(uint64[i]); } return uint64.join(hi >>> 0, lo >>> 0); } function uint64_and(...uint...
PKCS #11 Netscape Trust Objects - Network Security Services
re specific to a certificate, they do not need to be stored on the same token as the certificate.
...ss cko_netscape_trust and have the following attributes.
Drawing and Event Handling - Plugins
d ms windows the queried information is returned in the variable parameter.
...age making a plug-in opaque making a plug-in transparent creating pop-up menus and dialog boxes event handling for windowless plug-ins specifying that a plug-in is windowless to specify that a plug-in is windowless, use the npn_setvalue method.
Plug-in Side Plug-in API - Plugins
« previousnext » this chapter describes methods in the plug-in api that are available for the plug-in object.
...newstream notifies a plug-in instance of a new data stream.
Gecko Plugin API Reference - Plugins
memory allocating and freeing memory mac os flushing memory (mac os only) version, ui, and status information displaying a status line message getting agent information getting the current version finding out if a feature exists reloading a plug-in plug-in side plug-in api this chapter describes methods in the plug-in api that are available from the plug-in object.
... plug-in structure sections in the introduction.
DOM Inspector FAQ - Firefox Developer Tools
ing the view > show whitespace nodes menu item.
...iteria there.
DOM Inspector internals - Firefox Developer Tools
t panel.
...and viewers/stylerules—are loaded as a result of overlay directives in dom inspector's chrome manifest, rather than being explicitly imported using a xul-overlay processing instruction in the overlaid file.) inspectoroverlay.xul this imports the scripts the top-level inspector needs, including dependencies.
Introduction to DOM Inspector - Firefox Developer Tools
r in the document pane of the dom inspector to find and inspect nodes you are interested in.
... query using the selected search engine.
DOM Property Viewer - Firefox Developer Tools
you display the menu bar or are on macos), or by pressing its ctrl + shift + w keyboard shortcut.
...a "more..." annotation, and will need to click the property to see all elements.
Pretty-print a minified file - Firefox Developer Tools
to prettify a minified file, click the pretty print source icon () at the bottom of the source pane.
... to prettify a minified file, click the pretty print source icon () at the bottom of the source pane.
Search - Firefox Developer Tools
isplay the number of matches in the code and highlight each result: using the outline tab if you are searching for a specific function within the current javascript file, you can use the outline tab in the debugger to find it quickly.
... default sort order is by the order in the file but you can simplify the search by click on "sort by name" at the bottom of the tab.
Debugger-API - Firefox Developer Tools
the debugger interface mozilla’s javascript engine, spidermonkey, provides a debugging interface named debugger which lets javascript code observe and manipulate the execution of other javascript code.
...bytecode offsets (a deviation from the “source level” design principle), and find other static characteristics of the code.
Aggregate view - Firefox Developer Tools
"total bytes" column shows you the number of bytes occupied by objects in each category, and that number as a percentage of the whole heap size for that tab.
...ere we're allocating memory: this is where the "bytes" and "count" columns are useful: they show allocation size and number of allocations at that exact point.
Tree map view - Firefox Developer Tools
location example, which simply runs a script that creates a large number of dom nodes (200 htmldivelement objects and 4000 htmlspanelement objects).
... htmldivelement objects and 4000 htmlspanelement objects).
Edit CSS filters - Firefox Developer Tools
e apparent as soon as youpress enter.
...wser sessions, making it easy to apply the settings in the future.
Edit fonts - Firefox Developer Tools
e element to make the changes instantly visible on the page.
... "slnt" (slant) font-style: oblique + angle "ital" font-style: italic "opsz" font-optical-sizing any axis that is not on the list of registered axes is considered a custom axis.
Examine and edit HTML - Firefox Developer Tools
r markup come from.
... to the element.
UI Tour - Firefox Developer Tools
as what getcomputedstyle would return.): compatibility view starting with firefox developer edition version 77, the compatibility view shows css compability issues, if any, for properties applied to the selected element, and for the current page as a whole.
...and for the current page as a whole.
Settings - Firefox Developer Tools
eck this box to prevent this behavior.
...cache to simulate first-load performance in all tabs that have the toolbox open.
Extension Storage - Firefox Developer Tools
this storage type is only shown when debugging extensions.
... this storage type is only shown when debugging extensions.
about:debugging - Firefox Developer Tools
eat the steps described before.
...r to connect to it — accept this and then click the refresh devices button again.
ANGLE_instanced_arrays - Web APIs
l extensions are available using the webglrenderingcontext.getextension() method.
...ndows when using the angle library.
AddressErrors.organization - Web APIs
nizationerror = addresserrors.organization; value if the value specified in the paymentaddress object's organization property could not be validated, this property contains a domstring offering a human-readable explanation of the validation error and offers suggestions for correcting it.
...value specified in the paymentaddress object's organization property could not be validated, this property contains a domstring offering a human-readable explanation of the validation error and offers suggestions for correcting it.
AddressErrors - Web APIs
the addresserrors dictionary is used by the payment request api to to report validation errors in a physical address (typically a billing address or a shipping address).
...}; } ev.updatewith(updatedetails); } the shippingaddresschange event doesn't receive the paymentrequest object directly, so we fetch it from the target property of the event.
AnimationEvent.pseudoElement - Web APIs
summary the animationevent.pseudoelement read-only property is a domstring, starting with '::', containing the name of the pseudo-element the animation runs on.
... summary the animationevent.pseudoelement read-only property is a domstring, starting with '::', containing the name of the pseudo-element the animation runs on.
Attr.prefix - Web APIs
Web › API › Attr › prefix
the attr.prefix read-only property returns the namespace prefix of the specified attribute, or null if no prefix is specified.
... the attr.prefix read-only property returns the namespace prefix of the specified attribute, or null if no prefix is specified.
AudioWorkletGlobalScope - Web APIs
being processed.
...et only during its instantiation console.log(samplerate) // you can declare any variables and use them in your processors // for example it may be an arraybuffer with a wavetable const usefulvariable = 42 console.log(usefulvariable) registerprocessor('test-processor', testprocessor) next, in our main scripts file we'll load the processor, create an instance of audioworkletnode — passing the name of the processor to it — and connect the node to an audio graph.
AudioWorkletNode.parameters - Web APIs
t.
...s (one value for each of 128 samples), // however it may contain a single value which is to be used for all 128 samples // if no automation is scheduled for the moment.
AudioWorkletProcessor() - Web APIs
ptional an array defining the number of channels for each output.
...ends audioworkletprocessor { constructor (options) { super() console.log(options.numberofinputs) console.log(options.processoroptions.someusefulvariable) } process (inputs, outputs, parameters) { return true } } registerprocessor('test-processor', testprocessor) next, in our main script file we'll load the processor, create an instance of audioworkletnode passing it the name of the processor and options object.
AudioWorkletProcessor.process - Web APIs
in structure.
...'][i] : parameters['customgain'][0]) } }) // as this is a source node which generates its own output, // we return true so it won't accidentally get garbage-collected // if we don't have any references to it in the main thread return true } // define the customgain parameter used in process method static get parameterdescriptors () { return [{ name: 'customgain', defaultvalue: 1, minvalue: 0, maxvalue: 1, automationrate: 'a-rate' }] } } specifications specification status comment web audio apithe definition of 'process()' in that specification.
Background Tasks API - Web APIs
dulestatusrefresh(); } enqueuetask() accepts as input two parameters: taskhandler is a function which will be called to handle the task.
... in the code for updatedisplay(), you can find the code that actually adds the logged text to the log element when the animation frame is being updated.
Blob.size - Web APIs
Web › API › Blob › size
the blob interface's size property returns the size of the blob or file in bytes.
...to ask the user for a group of files, then iterates over those files outputting their names and lengths in bytes.
BroadcastChannel() - Web APIs
the broadcastchannel() constructor creates a new broadcastchannel and connects it to the underlying channel.
... the broadcastchannel() constructor creates a new broadcastchannel and connects it to the underlying channel.
CSSCounterStyleRule - Web APIs
" stroke="#d4dde4" stroke-width="2px" /><text x="211" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">csscounterstylerule</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent cssrule.
...t-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">csscounterstylerule</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent cssrule.
CSSRule - Web APIs
Web › API › CSSRule
cssrule.media_rule 4 cssmediarule cssrule.font_face_rule 5 cssfontfacerule cssrule.page_rule 6 csspagerule cssrule.keyframes_rule 7 csskeyframesrule cssrule.keyframe_rule 8 csskeyframerule reserved for future use 9 should be used to define color profiles in the future cssrule.namespace_rule 10 cssnamespacerule cssrule.counter_style_rule 11 csscounterstylerule cssrule.supports_rule 12 csssupportsrule cssrule.document_rule 13 cssdocumentrule cssrule.font_feature_values_rule 14 cssfontfeaturevaluesrule cssrule.viewport_rule 15 cssviewportrule cssrule.regio...
... cssrule.charset_rule 2 csscharsetrule (removed in most browsers.) an up-to-date informal list of constants can be found on the csswg wiki.
CSSStyleDeclaration.getPropertyCSSValue() - Web APIs
the cssstyledeclaration.getpropertycssvalue() method interface returns a cssvalue containing the css value for a property.
... the cssstyledeclaration.getpropertycssvalue() method interface returns a cssvalue containing the css value for a property.
CSSStyleDeclaration.removeProperty() - Web APIs
the cssstyledeclaration.removeproperty() method interface removes a property from a css style declaration object.
... the cssstyledeclaration.removeproperty() method interface removes a property from a css style declaration object.
CSSStyleSheet.insertRule() - Web APIs
index > cssrulelist.length, the method aborts with an indexsizeerror.
...if rule cannot be inserted at index 0 due to some css constraint, the method aborts with a hierarchyrequesterror.
CSSVariableReferenceValue.variable - Web APIs
the variable property of the cssvariablereferencevalue interface returns the custom property name of the cssvariablereferencevalue.
... the variable property of the cssvariablereferencevalue interface returns the custom property name of the cssvariablereferencevalue.
Using dynamic styling information - Web APIs
ct model (cssom), part of the dom, exposes specific interfaces allowing manipulation of a wide amount of information regarding css.
... css.
Using the CSS properties and values API - Web APIs
of the custom property is.
... .registered:focus { --registered: #b4d455; } .unregistered { --unregistered: #c0ffee; background-image: linear-gradient(to right, #fff, var(--unregistered)); transition: --unregistered 1s ease-in-out; } .unregistered:hover, .unregistered:focus { --unregistered: #b4d455; } button { height: 40vh; display: block; width: 100%; font-size: 3vw; } window.css.registerproperty({ name: '--registered', syntax: '<color>', inherits: false, initialvalue: 'red', }); while not functionally accurate, a good way to think about the difference between the unregistered property in the above example and the registered property is the difference between a <custom-ident> and a number when trying to animate height.
Manipulating video using canvas - Web APIs
take away from this are: this document establishes two canvas elements, with the ids c1 and c2.
... = document.getelementbyid('c2'); this.ctx2 = this.c2.getcontext('2d'); let self = this; this.video.addeventlistener('play', function() { self.width = self.video.videowidth / 2; self.height = self.video.videoheight / 2; self.timercallback(); }, false); }, this code grabs references to the elements in the xhtml document that are of particular interest, namely the video element and the two canvas elements.
Using images - Web APIs
ge.
...can request permission to load an image from another domain for use in your call to drawimage().
ClipboardItem - Web APIs
e responses' blob() method, to create the new clipboarditem.
...and return the corresponding blob object.
Console.timeEnd() - Web APIs
Web › API › Console › timeEnd
stops a timer that was previously started by calling console.time().
...r that the time has ended.
CrashReportBody - Web APIs
lt to retrieve a crash report via a reportingobserver, as by that point the page would have crashed!
...sh", "age": 42, "url": "https://example.com/", "user_agent": "mozilla/5.0 (x11; linux x86_64; rv:60.0) gecko/20100101 firefox/60.0", "body": { "reason": "oom" } } note: crash reports are always delivered to the endpoint group named default; there is currently no way to override this.
Credential Management API - Web APIs
oncepts and usage this api lets websites interact with a user agent’s password system so that websites can deal in a uniform way with site credentials and user agents can provide better assistance with the management of their credentials.
... sign in or sign out.
CredentialsContainer.create() - Web APIs
reate([options]) parameters options an object of type credentialcreationoptions that contains options for the requested new credentials object.
... id: (required) usvstring inherited from credentialdata.
CustomElementRegistry - Web APIs
the customelementregistry interface provides methods for registering custom elements and querying registered elements.
...w custom element.
DataTransfer.setDragImage() - Web APIs
drag data store bitmap to an image generated from the given element (the exact mechanism for doing so is not currently specified).
... the image.
Document.anchors - Web APIs
Web › API › Document › anchors
ntents with every anchor on the page: <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>test</title> <script> function init() { var toc = document.getelementbyid("toc"); var i, li, newanchor; for (i = 0; i < document.anchors.length; i++) { li = document.createelement("li"); newanchor = document.createelement('a'); newanchor.href = "#" + document.anchors[i].name; newanchor.innerhtml = document.anchors[i].text; li.appendchild(newanchor); toc.appendchild(li); } } </script> </head> <body onload="init()"> <h1>title</h1> <h2><a name="contents">contents</a></h2> <ul id="toc"></ul> <h2><a name="plants">plants</a></h2> <ol> <li>apples</li> <li>oranges</li> <li>pears</li> </ol> <h2><a name="veggies">veggies</a></h2> <ol> <li>carrots</li> ...
...ntents</a></h2> <ul id="toc"></ul> <h2><a name="plants">plants</a></h2> <ol> <li>apples</li> <li>oranges</li> <li>pears</li> </ol> <h2><a name="veggies">veggies</a></h2> <ol> <li>carrots</li> <li>celery</li> <li>beats</li> </ol> </body> </html> view on jsfiddle notes for reasons of backwards compatibility, the returned set of anchors only contains those anchors created with the name attribute, not those created with the id attribute.
Document.doctype - Web APIs
Web › API › Document › doctype
returns the document type declaration (dtd) associated with current document.
... returns the document type declaration (dtd) associated with current document.
Document: drag event - Web APIs
{ // reset the transparency event.target.style.opacity = ""; }, false); /* events fired on the drop targets */ document.addeventlistener("dragover", function(event) { // prevent default to allow drop event.preventdefault(); }, false); document.addeventlistener("dragenter", function(event) { // highlight potential drop target when the draggable element enters it if (event.target.classname == "dropzone") { event.target.style.background = "purple"; } }, false); document.addeventlistener("dragleave", function(event) { // reset background of potential drop target when the draggable element leaves it if (event.target.classname == "dropzone") { event.target.style.background = ""; } }, false); document.addeventlistener("drop", function(event) { // prevent default ac...
... // reset background of potential drop target when the draggable element leaves it if (event.target.classname == "dropzone") { event.target.style.background = ""; } }, false); document.addeventlistener("drop", function(event) { // prevent default action (open as link for some elements) event.preventdefault(); // move dragged elem to the selected drop target if (event.target.classname == "dropzone") { event.target.style.background = ""; dragged.parentnode.removechild( dragged ); event.target.appendchild( dragged ); } }, false); specifications specification status comment html living standardthe definition of 'drag event' in that specification.
Document.getElementById() - Web APIs
ad> <title>getelementbyid example</title> </head> <body> <p id="para">some text here</p> <button onclick="changecolor('blue');">blue</button> <button onclick="changecolor('red');">red</button> </body> </html> javascript function changecolor(newcolor) { var elem = document.getelementbyid('para'); elem.style.color = newcolor; } result usage notes the capitalization of "id" in the name of this method must be correct for the code to function; getelementbyid() is not valid and will not work, however natural it may seem.
...o insert the element into the document tree with node.insertbefore() or a similar method before you can access it with getelementbyid(): var element = document.createelement('div'); element.id = 'testqq'; var el = document.getelementbyid('testqq'); // el will be null!
Document.lastModified - Web APIs
ion dates of documents.
...s changed!"); } …the same example, but skipping the first visit: var nlastvisit = parsefloat(document.cookie.replace(/(?:(?:^|.*;)\s*last_modif\s*\=\s*([^;]*).*$)|^.*$/, "$1")), nlastmodif = date.parse(document.lastmodified); if (isnan(nlastvisit) || nlastmodif > nlastvisit) { document.cookie = "last_modif=" + date.now() + "; expires=fri, 31 dec 9999 23:59:59 gmt; path=" + location.pathname; if (isfinite(nlastvisit)) { alert("this page has been changed!"); } } note: webkit returns the time string in utc; gecko and internet explorer return a time in the local timezone.
Document.selectedStyleSheetSet - Web APIs
the selectedstylesheetset property indicates the name of the style sheet set that's currently in use.
... the selectedstylesheetset property indicates the name of the style sheet set that's currently in use.
Document.xmlVersion - Web APIs
declaration (e.g., <?xml version="1.0"?>) or "1.0" if the declaration is absent.
...n dom level 4.
DocumentOrShadowRoot.activeElement - Web APIs
events) is not the same thing as selection (the currently highlighted part of the document).
... or null if there is no focused element.
DocumentOrShadowRoot.fullscreenElement - Web APIs
eenelement; return value the element object that's currently in full-screen mode; if full-screen mode isn't currently in use by the document>, the returned value is null.
...oinfullscreen(), which looks at the value returned by fullscreenelement; if the document is in full-screen mode (fullscreenelement isn't null) and the full-screen element's nodename is video, indicating a <video> element, the function returns true, indicating that the video is in full-screen mode.
Example - Web APIs
<html> <head> <title>my document</title> <script type="text/javascript"> function change() { // document.getelementsbytagname("h1") returns a nodelist of the h1 // elements in the document, and the first is number 0: var header = document.getelementsbytagname("h1").item(0); // the firstchild of the header is a text node: header.firstchild.data = "a dynamic document"; // now the header is "a dynamic document".
...ange() { // document.getelementsbytagname("h1") returns a nodelist of the h1 // elements in the document, and the first is number 0: var header = document.getelementsbytagname("h1").item(0); // the firstchild of the header is a text node: header.firstchild.data = "a dynamic document"; // now the header is "a dynamic document".
EXT_texture_filter_anisotropic - Web APIs
ve at an oblique angle.
...ebglrenderingcontext.getextension() method.
Element.attachShadow() - Web APIs
dom tree to the specified element and returns a reference to its shadowroot.
...ed, the first focusable part is given focus, and the shadow host is given any available :focus styling.
Element: compositionend event - Web APIs
e.
...nst inputelement = document.queryselector('input[type="text"]'); inputelement.addeventlistener('compositionend', (event) => { console.log(`generated characters were: ${event.data}`); }); live example html <div class="control"> <label for="name">on macos, click in the textbox below,<br> then type <kbd>option</kbd> + <kbd>`</kbd>, then <kbd>a</kbd>:</label> <input type="text" id="example" name="example"> </div> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents" rows="8" cols="25"></textarea> <button class="clear-log">clear</button> </div> css body { padding: .2rem; display: grid; grid-template-areas: "control log"; } .control { grid-area: control; } .event-log { grid-area: log; } .event-log-contents { resize: none; ...
Element.prefix - Web APIs
Web › API › Element › prefix
the element.prefix read-only property returns the namespace prefix of the specified element, or null if no prefix is specified.
... the element.prefix read-only property returns the namespace prefix of the specified element, or null if no prefix is specified.
Element.querySelectorAll() - Web APIs
ons syntaxerror the syntax of the specified selectors string is not valid.
... of the document's <p> elements whose immediate parent element is a div with the class "highlighted" and which are located inside a container whose id is "test".
Element.scrollHeight - Web APIs
hese checks determine if the container can scroll: window.getcomputedstyle(element).overflowy === 'visible' window.getcomputedstyle(element).overflowy !== 'hidden' scrollheight demo associated with the onscroll event, this equivalence can be useful to determine whether a user has read a text or not (see also the element.scrolltop and element.clientheight properties).
...sit amet elit interdum quis placerat metus posuere.
Element.shadowRoot - Web APIs
om-square> element's class definition we include some life cycle callbacks that make a call to an external function, updatestyle(), which actually applies the size and color to the element.
...() function itself, we get a reference to the shadow dom using element.shadowroot.
ErrorEvent - Web APIs
t-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">errorevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties also inherits properties from its parent event.
..." fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">errorevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties also inherits properties from its parent event.
Event.explicitOriginalTarget - Web APIs
g 185889), and in that case currenttarget will show the parent and explicitoriginaltarget will show the text node.
...at it will never contain anonymous content.
Event - Web APIs
Web › API › Event
ause "spatially" they overlap so the event technically occurs in both, and the processing order of such events depends on the event bubbling and capture settings of each handler triggered.
...urposes.
EventTarget.dispatchEvent() - Web APIs
ernetdispatcheventchrome full support 4edge full support 12firefox full support 2ie full support 9 full support 9 no support 6 — 11notes alternate name notes older versions of ie supported an equivalent, proprietary eventtarget.fireevent() method.alternate name uses the non-standard name: fireeventopera full support 9safari full support 3.2webview android full support 4chrome android full support ...
...ra android full support 10.1safari ios full support 3samsung internet android full support 1.0legend full support full supportsee implementation notes.see implementation notes.uses a non-standard name.uses a non-standard name.
FeaturePolicy.allowedFeatures() - Web APIs
the allowedfeatures() method of the featurepolicy interface returns a list of directive names of all features allowed by the feature policy.enables introspection of individual directives of the feature policy it is run on.
...s a list of directive names of all features allowed by the feature policy.enables introspection of individual directives of the feature policy it is run on.
FederatedCredential - Web APIs
properties inherits properties from its ancestor, credential.
...rties inherits properties from its ancestor, credential.
File.webkitRelativePath - Web APIs
th value a usvstring containing the path of the file relative to the ancestor directory the user selected.
...ernet android full support 1.0prefixed full support 1.0prefixed prefixed implemented with the vendor prefix: webkitlegend full support full support no support no supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
File - Web APIs
Web › API › File
pointer-events: all;} constructor file() returns a newly constructed file.
...constructor file() returns a newly constructed file.
FileEntrySync - Web APIs
full support 1.0prefixed prefixed implemented with the vendor prefix: webkitlegend full support full support no support no supportnon-standard.
...refixed prefixed implemented with the vendor prefix: webkitlegend full support full support no support no supportnon-standard.
FileError - Web APIs
Web › API › FileError
ccess-from-files flag.
....
FileList - Web APIs
Web › API › FileList
put element: // fileinput is an html input element: <input type="file" id="myfileinput" multiple> var fileinput = document.getelementbyid("myfileinput"); // files is a filelist object (similar to nodelist) var files = fileinput.files; var file; // loop through files for (var i = 0; i < files.length; i++) { // get item file = files.item(i); //or file = files[i]; alert(file.name); } here is a complete example.
...elected--> <input id="myfiles" multiple type="file"> </body> <script> var pullfiles=function(){ // love the query selector var fileinput = document.queryselector("#myfiles"); var files = fileinput.files; // cache files.length var fl = files.length; var i = 0; while ( i < fl) { // localize file var in the loop var file = files[i]; alert(file.name); i++; } } // set the input element onchange to call pullfiles document.queryselector("#myfiles").onchange=pullfiles; //a.t </script> </html> specifications specification status comment file apithe definition of 'filelist' in that specification.
FileSystemDirectoryReader.readEntries() - Web APIs
all files in a directory, readentries needs to be called repeatedly until it returns an empty array.
...der = item.createreader(); let directorycontainer = document.createelement("ul"); container.appendchild(directorycontainer); directoryreader.readentries(function(entries) { entries.foreach(function(entry) { scanfiles(entry, directorycontainer); }); }); } } scanfiles() begins by creating a new <li> element to represent the item being scanned, inserts the name of the item into it as its text content, and then appends it to the container.
FileSystemFlags.create - Web APIs
full support partial support partial support no support no supportexperimental.
...ial support partial support no support no supportexperimental.
FileSystemFlags.exclusive - Web APIs
full support partial support partial support no support no supportexperimental.
...ial support partial support no support no supportexperimental.
FileSystemFlags - Web APIs
full support partial support partial support no support no supportexperimental.
...ial support partial support no support no supportexperimental.
Introduction to the File and Directory Entries API - Web APIs
the element) the file and directory entries api is case sensitive the filesystem api is case-sensitive, and case-preserving.
...rivate data by preventing access and deletion.
FontFace.family - Web APIs
Web › API › FontFace › family
the fontface.family property allows the author to get or set the font family of a fontface object.
... the fontface.family property allows the author to get or set the font family of a fontface object.
GlobalEventHandlers.onkeypress - Web APIs
globaleventhandlers mixin is an eventhandler that processes keypress events.
...script function will do something after the user types the word "exit" in any point of a page.
GlobalEventHandlers.onmousemove - Web APIs
the onmousemove property of the globaleventhandlers mixin is an eventhandler that processes mousemove events.
... html <p><a href="#" data-tooltip="first link">see a tooltip here &hellip;</a></p> <p><a href="#" data-tooltip="second link">&hellip; or here!</a></p> css .tooltip { position: absolute; z-index: 9999; padding: 6px; background: #ffd; border: 1px #886 solid; border-radius: 5px; } javascript const tooltip = new (function() { const node = document.createelement('div'); node.classname = 'tooltip'; node.setattribute('hidden', ''); document.body.appendchild(node); this.follow = function(event) { node.style.left = event.clientx + 20 + 'px'; node.style.top = event.clienty + 10 + 'px'; }; this.show = function(event) { node.textcontent = event.target.dataset.tooltip; node.removeattribute('hidden'); }; this.hide = function() { node.setattribute('h...
HTMLAreaElement.referrerPolicy - Web APIs
syntax refstr = areaelt.referrerpolicy; areaelt.referrerpolicy = refstr; values "no-referrer" meaning that the referer: http header will not be sent.
... the page, that is roughly the scheme, the host and the port.
HTMLBaseFontElement - Web APIs
it by inheritance) for manipulating <basefont> elements.
...fication requires that this element implements htmlunknownelement rather than htmlbasefontelement.
HTMLElement: animationcancel event - Web APIs
the animationcancel event is fired when a css animation unexpectedly aborts.
...p class="animation">you chose a cold night to visit our planet.</p> </div> <button class="activate" type="button">activate animation</button> <div class="event-log"></div> </div> css .container { height: 3rem; } .event-log { width: 25rem; height: 2rem; border: 1px solid black; margin: 0.2rem; padding: 0.2rem; } .animation.active { animation-duration: 2s; animation-name: slidein; animation-iteration-count: 2; } @keyframes slidein { from { transform: translatex(100%) scalex(3); } to { transform: translatex(0) scalex(1); } } js const animation = document.queryselector('p.animation'); const animationeventlog = document.queryselector('.animation-example>.event-log'); const applyanimation = document.queryselector('.animation-example>button.activ...
HTMLElement: beforeinput event - Web APIs
cancelable yes interface inputevent event handler property none sync / async sync composed yes default action update the dom element examples this example logs current value of the element immediately before replacing that value with the new one applied to the <input> element.
... cancelable yes interface inputevent event handler property none sync / async sync composed yes default action update the dom element examples this example logs current value of the element immediately before replacing that value with the new one applied to the <input> element.
HTMLElement: input event - Web APIs
these types.
... types.
HTMLElement - Web APIs
t.blur() removes keyboard focus from the currently focused element.
...html5the definition of 'htmlelement' in that specification.
HTMLFontElement - Web APIs
implements the document object model (dom) representation of the font element.
...t size, font face and color of text.
HTMLIFrameElement.contentWindow - Web APIs
the contentwindow property returns the window object of an htmliframeelement.
...ntentwindow property returns the window object of an htmliframeelement.
HTMLImageElement.alt - Web APIs
p in mind that any text included in diagrams and charts presented in svg format may be read by screen readers.
...his may impact the decisions you make shen writing the alt text for the diagram.
HTMLImageElement.x - Web APIs
other words, either of those are set directly on the <img> or they're inherited from a containing element or by being located within a column described by either <col> or <colgroup>.
...her <col> or <colgroup>.
HTMLImageElement.y - Web APIs
other words, either of those are set directly on the <img> or they're inherited from a containing element or by being located within a column described by either <col> or <colgroup>.
...her <col> or <colgroup>.
HTMLMediaElement.play() - Web APIs
uch as permission issues, result in the promise being rejected.
...list.add("playing"); } catch(err) { playbutton.classlist.remove("playing"); } } function handleplaybutton() { if (videoelem.paused) { playvideo(); } else { videoelem.pause(); playbutton.classlist.remove("playing"); } } in this example, playback of video is toggled off and on by the async playvideo() function.
HTMLMediaElement - Web APIs
ng.
...s optimized so this element gets access to all of the other element's cached and buffered data; in fact, the two elements share downloaded data, so data downloaded by either element is available to both.
HTMLSelectElement.form - Web APIs
the htmlselectelement.form read-only property returns a htmlformelement representing the form that this element is associated with.
... the htmlselectelement.form read-only property returns a htmlformelement representing the form that this element is associated with.
HTMLSelectElement.remove() - Web APIs
rom the options collection for this select element.
... has no effect.
HTMLSelectElement.selectedOptions - Web APIs
are currently selected, the collection is empty and returns a length of 0.
...epresenting each of the food choices looks like this: <label for="foods">what do you want to eat?</label><br> <select id="foods" name="foods" size="7" multiple> <option value="1">burrito</option> <option value="2">cheeseburger</option> <option value="3">double bacon burger supreme</option> <option value="4">pepperoni pizza</option> <option value="5">taco</option> </select> <br> <button name="order" id="order"> order now </button> <p id="output"> </p> the <select> element is set to allow multiple items to be selected, and it is 7 rows tall.
HTMLSlotElement: slotchange event - Web APIs
slotchange event doesn't fire if the children of a slotted node change — only if you change (e.g.
...attribute('slot', slotname); // element.assignedslot = $slot element.removeattribute('slot'); // element.assignedslot = null the following snippet is taken from our slotchange example (see it live also).
HmacImportParams - Web APIs
the hmacimportparams dictionary of the web crypto api represents the object that should be passed as the algorithm parameter into subtlecrypto.importkey() or subtlecrypto.unwrapkey(), when generating a key for the hmac algorithm.
... the hmacimportparams dictionary of the web crypto api represents the object that should be passed as the algorithm parameter into subtlecrypto.importkey() or subtlecrypto.unwrapkey(), when generating a key for the hmac algorithm.
HmacKeyGenParams - Web APIs
the hmackeygenparams dictionary of the web crypto api represents the object that should be passed as the algorithm parameter into subtlecrypto.generatekey(), when generating a key for the hmac algorithm.
... the hmackeygenparams dictionary of the web crypto api represents the object that should be passed as the algorithm parameter into subtlecrypto.generatekey(), when generating a key for the hmac algorithm.
IDBEnvironment - Web APIs
partial support partial support compatibility unknown compatibility unknownnon-standard.
... partial support compatibility unknown compatibility unknownnon-standard.
IDBLocaleAwareKeyRange - Web APIs
hat the latter doesn’t do the aforementioned check.
...bjectstore = transaction.objectstore('fthings'); var myindex = objectstore.index('lname'); myindex.opencursor(keyrangevalue).onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var tablerow = document.createelement('tr'); tablerow.innerhtml = '&lt;td&gt;' + cursor.value.id + '&lt;/td&gt;' + '&lt;td&gt;' + cursor.value.lname + '&lt;/td&gt;' + '&lt;td&gt;' + cursor.value.fname + '&lt;/td&gt;' + '&lt;td&gt;' + cursor.value.jtitle + '&lt;/td&gt;' + '&lt;td&gt;' + cursor.value.company + '&lt;/td&gt;' + '&lt;td&gt;' + cursor.value.email + '&lt;/td&gt;' + '&lt;td&gt;' + cursor.value.phone +...
IDBMutableFile - Web APIs
the idbmutablefile interface provides access in read or write mode to a file, dealing with all the necessary locks.
...terface provides access in read or write mode to a file, dealing with all the necessary locks.
IDBObjectStore.openKeyCursor() - Web APIs
idbobjectstore or idbindex has been deleted.
...oninactiveerror this idbobjectstore's transaction is inactive.
IDBVersionChangeEvent.version - Web APIs
full support full support no support no supportnon-standard.
... full support no support no supportnon-standard.
IDBVersionChangeRequest - Web APIs
no support no support compatibility unknown compatibility unknownnon-standard.
... no support compatibility unknown compatibility unknownnon-standard.
Checking when a deadline is due - Web APIs
lect> elements for inputting the day, month and year of the deadline.
... case "january": var monthnumber = 0; break; case "february": var monthnumber = 1; break; // other lines removed from listing for brevity case "december": var monthnumber = 11; break; default: alert('incorrect month entered in database.'); } the first thing we do is convert the month names we have stored in the database into a month number that javascript will understand.
IntersectionObserver.thresholds - Web APIs
y containing that threshold.
...orted in numerically increasing order.
KeyboardEvent.code - Web APIs
d on their physical positions on the input device rather than the characters associated with those keys; this is especially common when writing code to handle input for games that simulate a gamepad-like environment using keys on the keyboard.
... keycode's name may not match the actual character that's printed on the key or that's generated by the computer when the key is pressed.
Key Values - Web APIs
gdk_key_dead_small_schwa (0xfe8a) ə gdk_key_dead_capital_schwa (0xfe8b) Ə gdk_key_dead_greek (0xfe8c) function keys while various platforms support different numbers of the general-purpose function keys, such as f1–f12 (or f1–f10, or f1–f15, etc.), the first few are specifically defined as follows.
......
KeyboardEvent.key - Web APIs
Web › API › KeyboardEvent › key
t and the 2 key using a u.s keyboard layout as compared to when we do so using a uk keyboard layout.
...sing a uk keyboard layout.
Locks.mode - Web APIs
Web › API › Lock › mode
navigator.locks.
... // should show "exclusive" (the default) navigator.locks.request("my_resource", show_lock_properties); // should show "exclusive" navigator.locks.request("my_resource", {mode: "exclusive"}, show_lock_properties); // should show "shared" navigator.locks.request("my_resource", {mode: "shared"}, show_lock_properties); function show_lock_properties(lock) { console.log(`the lock name is: ${lock.name}`); console.log(`the lock mode is: ${lock.mode}`); } specifications specification status comment web locks apithe definition of 'mode' in that specification.
MediaDevices - Web APIs
nction(stream) { var videotracks = stream.getvideotracks(); console.log('got stream with constraints:', constraints); console.log('using video device: ' + videotracks[0].label); stream.onremovetrack = function() { console.log('stream ended'); }; window.stream = stream; // make variable available to browser console video.srcobject = stream; }) .catch(function(error) { if (error.name === 'constraintnotsatisfiederror') { errormsg('the resolution ' + constraints.video.width.exact + 'x' + constraints.video.height.exact + ' px is not supported by your device.'); } else if (error.name === 'permissiondeniederror') { errormsg('permissions have not been granted to use your camera and ' + 'microphone, you need to allow the page access to your devices in ' + ...
...s.video.width.exact + 'x' + constraints.video.height.exact + ' px is not supported by your device.'); } else if (error.name === 'permissiondeniederror') { errormsg('permissions have not been granted to use your camera and ' + 'microphone, you need to allow the page access to your devices in ' + 'order for the demo to work.'); } errormsg('getusermedia error: ' + error.name, error); }); function errormsg(msg, error) { errorelement.innerhtml += '<p>' + msg + '</p>'; if (typeof error !== 'undefined') { console.error(error); } } specifications specification status comment media capture and streamsthe definition of 'mediadevices' in that specification.
MediaMetadata.album - Web APIs
the album property of the mediametadata interface returns or sets the name of the album or collection containing the media to be played.
... the album property of the mediametadata interface returns or sets the name of the album or collection containing the media to be played.
MediaMetadata.artist - Web APIs
the artist property of the mediametadata interface returns or sets the name of the artist, group, creator, etc., of the media to be played.
... the artist property of the mediametadata interface returns or sets the name of the artist, group, creator, etc., of the media to be played.
MediaMetadata - Web APIs
the mediametadata interface of the the media session api provides allows a web page to provide rich media metadata for display in a platform ui.
...s a web page to provide rich media metadata for display in a platform ui.
MediaRecorder: error event - Web APIs
le errors see the documentation for the event handler property: onerror.
...ror(`error recording stream: ${event.error.name}`) }); recorder.start(); } record(); the same, but using the onerror event handler property: async function record() { const stream = await navigator.mediadevices.getusermedia({audio: true}); const recorder = new mediarecorder(stream); recorder.onerror = (event) => { console.error(`error recording stream: ${event.error.name}`) }; recorder.start(); } record(); specifications specification status mediastream recording working draft ...
MediaStreamConstraints.audio - Web APIs
javascript content let audioelement = document.getelementbyid("audio"); let logelement = document.getelementbyid("log"); function log(msg) { logelement.innerhtml += msg + "<br>"; } document.getelementbyid("startbutton").addeventlistener("click", function() { navigator.mediadevices.getusermedia({ audio: true }).then(stream => audioelement.srcobject = stream) .catch(err => log(err.name + ": " + err.message)); }, false); here we see an event handler for a click event which uses getusermedia() to obtain an audio-only stream with no specific constraints, then attaches the resulting stream to an <audio> element once the stream is returned.
...ementbyid("audio"); let logelement = document.getelementbyid("log"); function log(msg) { logelement.innerhtml += msg + "<br>"; } document.getelementbyid("startbutton").addeventlistener("click", function() { navigator.mediadevices.getusermedia({ audio: { samplesize: 8, echocancellation: true } }).then(stream => audioelement.srcobject = stream) .catch(err => log(err.name + ": " + err.message)); }, false); here we see an event handler for a click event which calls getusermedia(), specifying a set of audio constraints requesting that echo cancellation be enabled and that, if possible, the sample rate be 8 bits per sample instead of the more common 16 bits (possibly as a bandwidth saving measure).
MediaStreamConstraints.video - Web APIs
vascript content let videoelement = document.getelementbyid("video"); let logelement = document.getelementbyid("log"); function log(msg) { logelement.innerhtml += msg + "<br>"; } document.getelementbyid("startbutton").addeventlistener("click", function() { navigator.mediadevices.getusermedia({ video: true }).then(stream => videoelement.srcobject = stream) .catch(err => log(err.name + ": " + err.message)); }, false); here we see an event handler for a click event which uses getusermedia() to obtain a video-only stream with no specific constraints, then attaches the resulting stream to a <video> element once the stream is returned.
...); let logelement = document.getelementbyid("log"); function log(msg) { logelement.innerhtml += msg + "<br>"; } document.getelementbyid("startbutton").addeventlistener("click", function() { navigator.mediadevices.getusermedia({ video: { width: 160, height: 120, framerate: 15 } }).then(stream => videoelement.srcobject = stream) .catch(err => log(err.name + ": " + err.message)); }, false); here we see an event handler for a click event which calls getusermedia(), specifying a set of video constraints that indicate a preference for a video track whose dimensions are as close as possible to 160x120 pixels, and whose frame rate is as close to 15 frames per second as possible.
MerchantValidationEvent() - Web APIs
nts yourself; instead, just handle the merchantvalidation event.
...tion information used to validate the merchant.
Metadata - Web APIs
Web › API › Metadata
eslegend full support full support no support no supportexperimental.
...port full support no support no supportexperimental.
MimeTypeArray - Web APIs
the mimetypearray interface returns an array of mimetype instances, each of which contains information about a supported browser plugins.
...returns an array of mimetype instances, each of which contains information about a supported browser plugins.
MutationObserver.MutationObserver() - Web APIs
mutationlist.foreach( (mutation) => { switch(mutation.type) { case 'childlist': /* one or more children have been added to and/or removed from the tree.
...tion) => { switch(mutation.type) { case 'childlist': /* one or more children have been added to and/or removed from the tree.
Navigator.mediaSession - Web APIs
ndler() to let fhe media controls on a keyboard or elsehwere on the user's device be used to control the app's media playback.
...tist photos, and so forth.
NavigatorID.product - Web APIs
the value of the navigatorid.product property is always "gecko", in any browser.
... the value of the navigatorid.product property is always "gecko", in any browser.
Node.childNodes - Web APIs
Web › API › Node › childNodes
remove all children from a node // this is one way to remove all children from a node // box is an object reference to an element while (box.firstchild) { //the list is live so it will re-index each call box.removechild(box.firstchild); } notes the items in the collection of nodes are objects, not strings.
...children from a node // box is an object reference to an element while (box.firstchild) { //the list is live so it will re-index each call box.removechild(box.firstchild); } notes the items in the collection of nodes are objects, not strings.
Node.cloneNode() - Web APIs
Web › API › Node › cloneNode
s added using addeventlistener() or those assigned to element properties (e.g., node.onclick = somefunction).
...., node.onclick = somefunction).
Node.firstChild - Web APIs
Web › API › Node › firstChild
n.
...pace to multiple spaces, returns, tabs, and so on.
Node.getRootNode() - Web APIs
Web › API › Node › getRootNode
er/dom/node/getrootnode()/demo/getrootnode.html --> <div class="js-parent"> <div class="js-child"></div> </div> <div class="js-shadowhost"></div> <script> // works on chrome 54+,opera 41+ var parent = document.queryselector('.js-parent'), child = document.queryselector('.js-child'), shadowhost = document.queryselector('.js-shadowhost'); console.log(parent.getrootnode().nodename); // #document console.log(child.getrootnode().nodename); // #document // create a shadowroot var shadowroot = shadowhost.attachshadow({mode:'open'}); shadowroot.innerhtml = '<style>div{background:#2bb8aa;}</style>' + '<div class="js-shadowchild">content</div>'; var shadowchild = shadowroot.queryselector('.js-shadowchild'); // the default value of composed is false console.l...
...v{background:#2bb8aa;}</style>' + '<div class="js-shadowchild">content</div>'; var shadowchild = shadowroot.queryselector('.js-shadowchild'); // the default value of composed is false console.log(shadowchild.getrootnode() === shadowroot); // true console.log(shadowchild.getrootnode({composed:false}) === shadowroot); // true console.log(shadowchild.getrootnode({composed:true}).nodename); // #document </script> specifications specification status comment domthe definition of 'getrootnode()' in that specification.
Node.isSupported() - Web APIs
Web › API › Node › isSupported
the node.issupported()returns a boolean flag containing the result of a test whether the dom implementation implements a specific feature and this feature is supported by the specific node.
... the node.issupported()returns a boolean flag containing the result of a test whether the dom implementation implements a specific feature and this feature is supported by the specific node.
Node.lookupPrefix() - Web APIs
Web › API › Node › lookupPrefix
the node.lookupprefix() method returns a domstring containing the prefix for a given namespace uri, if present, and null if not.
... the node.lookupprefix() method returns a domstring containing the prefix for a given namespace uri, if present, and null if not.
Node.prefix - Web APIs
Web › API › Node › prefix
the node.prefix read-only property returns the namespace prefix of the specified node, or null if no prefix is specified.
... the node.prefix read-only property returns the namespace prefix of the specified node, or null if no prefix is specified.
Node.textContent - Web APIs
Web › API › Node › textContent
ntent of every child node, excluding comments and processing instructions.
...e, and thus should be avoided when possible.) unlike textcontent, altering innertext in internet explorer (version 11 and below) removes child nodes from the element and permanently destroys all descendant text nodes.
Notation - Web APIs
Web › API › Notation
represents a dtd notation (read-only).
... represents a dtd notation (read-only).
NotificationAction - Web APIs
present action buttons the user can click to interact with notifications.
...s' appearance and specific functionality vary across platforms but generally they provide a way to asynchronously show actions to the user in a notification.
OES_vertex_array_object - Web APIs
the oes_vertex_array_object extension is part of the webgl api and provides vertex array objects (vaos) which encapsulate vertex array states.
...ontexts.
PaymentAddress.dependentLocality - Web APIs
borough, district, or, in the united kingdom, a dependent locality.
... when a city may include areas that duplicate street names a sublocality is an area within a city, such as a neighborhood, borough, or district.
PaymentRequest.PaymentRequest() - Web APIs
efined in the basiccardrequest dictionary.
...payment request that overrides value in details.total.
performance.getEntriesByType() - Web APIs
ance.mark("begin"); dowork(50000); performance.mark("end"); performance.mark("begin"); dowork(100000); performance.mark("end"); dowork(200000); performance.mark("end"); // use getentries() to iterate through the each entry var p = performance.getentries(); for (var i=0; i < p.length; i++) { log("entry[" + i + "]"); checkperformanceentry(p[i]); } // use getentries(name, entrytype) to get specific entries p = performance.getentries({name : "begin", entrytype: "mark"}); for (var i=0; i < p.length; i++) { log("begin[" + i + "]"); checkperformanceentry(p[i]); } // use getentriesbytype() to get all "mark" entries p = performance.getentriesbytype("mark"); for (var i=0; i < p.length; i++) { log ("mark only entry[" + i + "]: name = " + p[i].nam...
... i < p.length; i++) { log("begin[" + i + "]"); checkperformanceentry(p[i]); } // use getentriesbytype() to get all "mark" entries p = performance.getentriesbytype("mark"); for (var i=0; i < p.length; i++) { log ("mark only entry[" + i + "]: name = " + p[i].name + "; starttime = " + p[i].starttime + "; duration = " + p[i].duration); } // use getentriesbyname() to get all "mark" entries named "begin" p = performance.getentriesbyname("begin", "mark"); for (var i=0; i < p.length; i++) { log ("mark and begin entry[" + i + "]: name = " + p[i].name + "; starttime = " + p[i].starttime + "; duration = " + p[i].duration); } } specifications specification status comment performance timeline level 2the def...
PerformanceEntry - Web APIs
performance entries are also created in indirect ways such as loading a resource (such as an image).
...he browser supports them and if so, write their values to the console.
PerformanceObserverEntryList - Web APIs
e observe() method.
...formanceobserverentrylist.getentries() returns a list of explicitly observed performanceentry objects based on the given filter.
PerformancePaintTiming - Web APIs
alignment-baseline="middle">performancepainttiming</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but it extends the following performanceentry properties (for "paint" performance entry types) by qualifying and constraining the properties as follows: performanceentry.entrytype returns "paint".
...n the paint ocurred.
PerformanceResourceTiming.domainLookupEnd - Web APIs
the domainlookupend read-only property returns the timestamp immediately after the browser finishes the domain name lookup for the resource.
...the resource.
PerformanceResourceTiming.domainLookupStart - Web APIs
the domainlookupstart read-only property returns the timestamp immediately before the browser starts the domain name lookup for the resource.
... the domainlookupstart read-only property returns the timestamp immediately before the browser starts the domain name lookup for the resource.
Pointer Lock API - Web APIs
gagement gesture must be received by the document before requestpointerlock will succeed.
... (from https://w3c.github.io/pointerlock/#extensions-to-the-element-interface) pointerlockelement and exitpointerlock() the pointer lock api also extends the document interface, adding both a new property and a new method.
Pinch zoom gestures - Web APIs
break; } } } event logging these functions are used to send event activity to the application's window (to support debugging and learning about the event flow).
...{ logevents = logevents ?
ProcessingInstruction - Web APIs
instruction interface represents a processing instruction; that is, a node which embeds an instruction targeting a specific application but that can be ignored by any other applications which don't recognize the instruction.
...x="436" y="1" width="210" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="541" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">processinginstruction</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties target (domstring) read only a name identifying the application to which the instruction is targeted, specification specification status comment domthe definition of 'processinginstruction' in that specification.
PromiseRejectionEvent() - Web APIs
by the javascript runtime when a promise is rejected but the rejection goes unhandled.
...e rejection is caught by a rejection handler..
PublicKeyCredential.getClientExtensionResults() - Web APIs
by chrome and edge.
...nsions (as "inputs") extensions: { "loc": true, // this extension has been defined to include location information in attestation "uvi": true // user verification index: how the user was verified }, challenge: new uint8array(16) /* from the server */, rp: { name: "example corp", id : "login.example.com" }, user: { id: new uint8array(16) /* from the server */, name: "jdoe@example.com", displayname: "john doe" }, pubkeycredparams: [ { type: "public-key", alg: -7 } ] }; navigator.credentials.create({ publickey }) .then(function (newcredentialinfo) { var mybuffer = newcredentialinfo.getclientextensionresults(); // mybuffer will contain the result of any of the processing of the "loc" and "uvi" extensions }).catch(func...
PublicKeyCredentialCreationOptions.pubKeyCredParams - Web APIs
for building the credential.
...possible { type: "public-key", alg: -7 }, // if not, then we will fallback on an rsa algorithm { type: "public-key", alg: -37 } ], challenge: new uint8array(26) /* this actually is given from the server */, rp: { name: "example corp", id : "login.example.com" }, user: { id: new uint8array(26), /* to be changed for each user */ name: "jdoe@example.com", displayname: "john doe", } }; navigator.credentials.create({ publickey }) .then(function (newcredentialinfo) { // send attestation response and client extensions // to the server to proceed with the registration // of the credential }).catch(function (err) { console.error(err); }); specifications specification status comment ...
PublicKeyCredentialCreationOptions - Web APIs
processing (e.g.
...mat of new credentials is publickey publickey: { // relying party rp: { name: "example corp", id: "login.example.com", icon: "https://login.example.com/login.ico" }, // cryptographic challenge from the server challenge: new uint8array(26), // user user: { id: new uint8array(16), name: "john.p.smith@example.com", displayname: "john p.
PushSubscription.getKey() - Web APIs
the getkey() method of the pushsubscription interface returns an arraybuffer representing a client public key, which can then be sent to a server and used in encrypting push message data.
... the getkey() method of the pushsubscription interface returns an arraybuffer representing a client public key, which can then be sent to a server and used in encrypting push message data.
RTCConfiguration.iceServers - Web APIs
the rtcpeerconnection method setconfiguration(), no immediate effect occurs.
...n, specifying two servers for the ice agent to use for negotiation.
RTCDataChannel - Web APIs
tachannel property bufferedamountlowthreshold is used to specify the number of bytes of buffered outgoing data that is considered "low." the default value is 0.id read only the read-only rtcdatachannel property id returns an id number (between 0 and 65,534) which uniquely identifies the rtcdatachannel.label read only the read-only rtcdatachannel property label returns a domstring containing a name describing the data channel.
...n was negotiated by the web app (true) or by the webrtc layer (false).ordered read only the read-only rtcdatachannel property ordered indicates whether or not the data channel guarantees in-order delivery of messages; the default is true, which indicates that the data channel is indeed ordered.protocol read only the read-only rtcdatachannel property protocol returns a domstring containing the name of the subprotocol in use.
RTCIceCandidate.RTCIceCandidate() - Web APIs
nitialized configured to represent the described candidate.
... rtcicecandidate object, optionally configured based on the specified object based on the rtcicecandidateinit dictionary.
RTCIceCandidate.address - Web APIs
and security in mind can choose to limit the permitted candidates to relay candidates only.
...ty in mind can choose to limit the permitted candidates to relay candidates only.
RTCIceCandidateStats - Web APIs
the webrtc api's rtcicecandidatestats dictionary provides statistics related to an rtcicecandidate.
...ecandidatestats dictionary provides statistics related to an rtcicecandidate.
RTCIceCredentialType - Web APIs
s rtcicecredentialtype enumerated string type defines the authentication method used to gain access to an ice server identified by an rtciceserver object.
... this property was formerly called token.
RTCIceParameters.password - Web APIs
the rtciceparameters dictionary's password property specifies the ice password that, in tandem with the usernamefragment, uniquely identifies an ice session for its entire duration.
... the rtciceparameters dictionary's password property specifies the ice password that, in tandem with the usernamefragment, uniquely identifies an ice session for its entire duration.
RTCIceServer.credential - Web APIs
turn server.
...rver.credential = newcredential; example this example creates a new rtcpeerconnection which uses a turn server at turnserver.example.org to negotiate connections.
RTCIdentityAssertion - Web APIs
the rtcidentityassertion interface of the the webrtc api represents the identity of the a remote peer of the current connection.
... the rtcidentityassertion interface of the the webrtc api represents the identity of the a remote peer of the current connection.
RTCIdentityErrorEvent.loginUrl - Web APIs
the read-only property rtcidentityerrorevent.loginurl is a domstring giving the url where the user can complete the authentication.
... the read-only property rtcidentityerrorevent.loginurl is a domstring giving the url where the user can complete the authentication.
RTCIdentityErrorEvent.protocol - Web APIs
the read-only property rtcidentityerrorevent.protocol is a domstring describing the idp protocol in use.
... the read-only property rtcidentityerrorevent.protocol is a domstring describing the idp protocol in use.
RTCIdentityEvent.assertion - Web APIs
the read-only property rtcidentityevent.assertion returns the domstring containing a blob being the coded assertion associated with the event.
... the read-only property rtcidentityevent.assertion returns the domstring containing a blob being the coded assertion associated with the event.
RTCIdentityEvent - Web APIs
the rtcidentityevent interface represents an identity assertion generated by an identity provider (idp).
... the rtcidentityevent interface represents an identity assertion generated by an identity provider (idp).
RTCPeerConnection.addIceCandidate() - Web APIs
bject describing why failure occurred.
... const message = json.parse(receivedstring); if (message.ice) { // a typical value of ice here might look something like this: // // {candidate: "candidate:0 1 udp 2122154243 192.168.1.9 53421 typ host", sdpmid: "0", ...} // // pass the whole thing to addicecandidate: pc.addicecandidate(message.ice).catch(e => { console.log("failure during addicecandidate(): " + e.name); }); } else { // handle other things you might be signaling, like sdp } } the last candidate to be signaled this way by the remote peer will be a special candidate denoting end-of-candidates.
RTCPeerConnection.createDataChannel() - Web APIs
of data may be transmitted.
...er, each user agent may clamp it to whatever maximum it deems appropriate.
RTCPeerConnection.setConfiguration() - Web APIs
iguration); parameters configuration an rtcconfiguration object which provides the options to be set.
...nection is closed.
RTCPeerConnection: track event - Web APIs
vent handler property ontrack by the time this event is delivered, the new track has been fully added to the peer connection.
...operty ontrack by the time this event is delivered, the new track has been fully added to the peer connection.
RTCRtpStreamStats - Web APIs
are also additional properties added depending on which interface the method is called on.
...e rfc 3550 specification.
RadioNodeList.value - Web APIs
ection does not contain any radio buttons or none of the radio buttons in the collection is in checked state, the empty string is returned.
...ns in the collection is in checked state, the empty string is returned.
Range.compareBoundaryPoints() - Web APIs
.
...f range.
Range.compareNode() - Web APIs
Web › API › Range › compareNode
end, noderange) == -1; if (nodeisbefore && !nodeisafter) return 0; if (!nodeisbefore && nodeisafter) return 1; if (nodeisbefore && nodeisafter) return 2; return 3; } syntax returnvalue = range.comparenode( referencenode ); parameters referencenode the node to compare with the range.
...(!nodeisbefore && nodeisafter) return 1; if (nodeisbefore && nodeisafter) return 2; return 3; } syntax returnvalue = range.comparenode( referencenode ); parameters referencenode the node to compare with the range.
Range.comparePoint() - Web APIs
ypes, offset is the number of child nodes between the start of the reference node.
...e.
Range.getBoundingClientRect() - Web APIs
ctangle behind the contents of a range.
...rts here</b> and continues on until it <b>ends here</b>.
Range.intersectsNode() - Web APIs
the range.intersectsnode() method returns a boolean indicating whether the given node intersects the range.
... the range.intersectsnode() method returns a boolean indicating whether the given node intersects the range.
Range.isPointInRange() - Web APIs
s in the range.
...thin referencenode is within this range.
Range.toString() - Web APIs
Web › API › Range › toString
lerting the contents of a range makes an implicit tostring() call, so comparing range and text through an alert dialog is ineffective.
... so comparing range and text through an alert dialog is ineffective.
RsaHashedImportParams - Web APIs
the rsahashedimportparams dictionary of the web crypto api represents the object that should be passed as the algorithm parameter into subtlecrypto.importkey() or subtlecrypto.unwrapkey(), when importing any rsa-based key pair: that is, when the algorithm is identified as any of rsassa-pkcs1-v1_5, rsa-pss, or rsa-oaep.
...ed as the algorithm parameter into subtlecrypto.importkey() or subtlecrypto.unwrapkey(), when importing any rsa-based key pair: that is, when the algorithm is identified as any of rsassa-pkcs1-v1_5, rsa-pss, or rsa-oaep.
RsaHashedKeyGenParams - Web APIs
the rsahashedkeygenparams dictionary of the web crypto api represents the object that should be passed as the algorithm parameter into subtlecrypto.generatekey(), when generating any rsa-based key pair: that is, when the algorithm is identified as any of rsassa-pkcs1-v1_5, rsa-pss, or rsa-oaep.
...to use.
SVGColorProfileElement - Web APIs
the svgcolorprofileelement interface corresponds to the <color-profile> element.
... the svgcolorprofileelement interface corresponds to the <color-profile> element.
SVGDocument - Web APIs
svg document interface when an "svg" element is embedded inline as a component of a document from another namespace, such as when an "svg" element is embedded inline within an xhtml document, then an svgdocument object will not exist; instead, the root object in the document object hierarchy will be a document object of a different type, such as an htmldocument object.
... properties domstring domain domstring referrer svgsvgelement rootelement domstring title domstring url normative document svg 1.1 (2nd edition) properties name type description domain domstring the domain name of the server that served the document, or a null string if the server cannot be identified by a domain name.
SVGFETurbulenceElement - Web APIs
><rect x="261" y="65" width="220" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="371" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfeturbulenceelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constants turbulence types name value description svg_turbulence_type_unknown 0 the type is not one of predefined types.
... svg_turbulence_type_unknown 0 the type is not one of predefined types.
SVGLengthList - Web APIs
tem, in unsigned long index) svglength replaceitem(in svglength newitem, in unsigned long index) svglength removeitem(in unsigned long index) svglength appenditem(in svglength newitem) properties readonly unsigned long numberofitems readonly unsigned long length normative document svg 1.1 (2nd edition) properties name type description numberofitems unsigned long the number of items in the list.
... properties readonly unsigned long numberofitems readonly unsigned long length normative document svg 1.1 (2nd edition) properties name type description numberofitems unsigned long the number of items in the list.
SVGNumberList - Web APIs
unsigned long index) svgnumber replaceitem(in svgnumber newitem, in unsigned long index) svgnumber removeitem(in unsigned long index) svgnumber appenditem(in svgnumber newitem) properties readonly unsigned long numberofitems readonly unsigned long length normative document svg 1.1 (2nd edition) properties name type description numberofitems unsigned long the number of items in the list.
... properties readonly unsigned long numberofitems readonly unsigned long length normative document svg 1.1 (2nd edition) properties name type description numberofitems unsigned long the number of items in the list.
SVGPointList - Web APIs
svgpoint removeitem(in unsigned long index) svgpoint appenditem(in svgpoint newitem) properties readonly unsigned long numberofitems normative document svg 1.1 (2nd edition) properties name type description numberofitems unsigned long the number of items in the list.
... normative document svg 1.1 (2nd edition) properties name type description numberofitems unsigned long the number of items in the list.
SVGPreserveAspectRatio - Web APIs
svg_preserveaspectratio_xmidymid = 6 svg_preserveaspectratio_xmaxymid = 7 svg_preserveaspectratio_xminymax = 8 svg_preserveaspectratio_xmidymax = 9 svg_preserveaspectratio_xmaxymax = 10 svg_meetorslice_unknown = 0 svg_meetorslice_meet = 1 svg_meetorslice_slice = 2 normative document svg 1.1 (2nd edition) constants name value description svg_preserveaspectratio_unknown 0 the enumeration was set to a value that is not one of predefined types.
...was set to a value that is not one of predefined types.
SVGStringList - Web APIs
unsigned long index) domstring replaceitem(in domstring newitem, in unsigned long index) domstring removeitem(in unsigned long index) domstring appenditem(in domstring newitem) properties readonly unsigned long numberofitems readonly unsigned long length normative document svg 1.1 (2nd edition) properties name type description numberofitems unsigned long the number of items in the list.
...ned long numberofitems readonly unsigned long length normative document svg 1.1 (2nd edition) properties name type description numberofitems unsigned long the number of items in the list.
SVGTextPathElement - Web APIs
="_top"><rect x="-169" y="65" width="180" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="-79" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgtextpathelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constants method types name value description textpath_methodtype_unknown 0 the type is not one of predefined types.
... description textpath_methodtype_unknown 0 the type is not one of predefined types.
SVGTransformList - Web APIs
transform removeitem(in unsigned long index) svgtransform appenditem(in svgtransform newitem) svgtransform createsvgtransformfrommatrix(in svgmatrix) svgtransform consolidate() properties readonly unsigned long numberofitems readonly unsigned long length normative document svg 1.1 (2nd edition) properties name type description numberofitems unsigned long the number of items in the list.
... properties readonly unsigned long numberofitems readonly unsigned long length normative document svg 1.1 (2nd edition) properties name type description numberofitems unsigned long the number of items in the list.
Selection.setBaseAndExtent() - Web APIs
s the selection into the output paragraph at the very bottom of the html.
...ss="one"><span>fish</span><span>dog</span><span>cat</span><span>bird</span></p> <p>middle</p> <p class="two"><span>car</span><span>bike</span><span>boat</span><span>plane</span></p> </div> <div> <p> <label for="aoffset">anchor offset</label> <input id="aoffset" name="aoffset" type="number" value="0"> </p> <p> <label for="foffset">focus offset</label> <input id="foffset" name="foffset" type="number" value="0"> </p> <p><button>capture selection</button></p> </div> <p><strong>output</strong>: <span class="output"></span></p> the javascript looks like so: var one = document.queryselector('.one'); var two = document.queryselector('.two'); var aoffset = document.getelementbyid('aoffset'); var foffset = document.getelementbyid('foffset'); var button = document.quer...
Service Worker API - Web APIs
sages: start up a service worker to send users a message to tell them new content is available.
...t is available.
ShadowRoot - Web APIs
om-square> element's class definition we include some life cycle callbacks that make a call to an external function, updatestyle(), which actually applies the size and color to the element.
...yle() function itself, we get a reference to the shadow dom using element.shadowroot.
Slottable: assignedSlot - Web APIs
null if the element is not assigned to a slot, or if the associated shadow root was attached with its mode set to closed (see element.attachshadow for further details).
...lue my-text.
SpeechSynthesis.getVoices() - Web APIs
this method as returning as a speechsynthesisvoicelist object, but this was in fact removed from the spec.
...fined') { return; } var voices = speechsynthesis.getvoices(); for(var i = 0; i < voices.length; i++) { var option = document.createelement('option'); option.textcontent = voices[i].name + ' (' + voices[i].lang + ')'; if(voices[i].default) { option.textcontent += ' -- default'; } option.setattribute('data-lang', voices[i].lang); option.setattribute('data-name', voices[i].name); document.getelementbyid("voiceselect").appendchild(option); } } populatevoicelist(); if (typeof speechsynthesis !== 'undefined' && speechsynthesis.onvoiceschanged !== undefined) { speechsynthesis.onvoiceschanged = populatevoicelist; } html <select id="voiceselect"></select> specifications specification status comment web speech apithe def...
SpeechSynthesis.onvoiceschanged - Web APIs
rn a list of voices when speechsynthesis.getvoices() is fired.
...oices = []; function populatevoicelist() { voices = synth.getvoices(); for(i = 0; i < voices.length ; i++) { var option = document.createelement('option'); option.textcontent = voices[i].name + ' (' + voices[i].lang + ')'; if(voices[i].default) { option.textcontent += ' -- default'; } option.setattribute('data-lang', voices[i].lang); option.setattribute('data-name', voices[i].name); voiceselect.appendchild(option); } } populatevoicelist(); if (speechsynthesis.onvoiceschanged !== undefined) { speechsynthesis.onvoiceschanged = populatevoicelist; } specifications specification status comment web speech apithe definition of 'onvoiceschanged' in that specification.
SpeechSynthesis.speak() - Web APIs
to speak is submitted, we (amongst other things) create a new utterance containing this text, then speak it by passing it into speak() as a parameter.
...terance containing this text, then speak it by passing it into speak() as a parameter.
SpeechSynthesisErrorEvent.error - Web APIs
hesis; var inputform = document.queryselector('form'); var inputtxt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...txt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
SpeechSynthesisErrorEvent - Web APIs
hesis; var inputform = document.queryselector('form'); var inputtxt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...txt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
SpeechSynthesisUtterance.SpeechSynthesisUtterance() - Web APIs
hesis; var inputform = document.queryselector('form'); var inputtxt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...txt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
SpeechSynthesisUtterance: boundary event - Web APIs
he boundary event of the web speech api is fired when the spoken utterance reaches a word or sentence boundary.
...echsynthesisevent event handler onboundary examples you can use the boundary event in an addeventlistener method: utterthis.addeventlistener('boundary', function(event) { console.log(event.name + ' boundary reached after ' + event.elapsedtime + ' milliseconds.'); }); or use the onboundary event handler property: utterthis.onboundary = function(event) { console.log(event.name + ' boundary reached after ' + event.elapsedtime + ' milliseconds.'); } specifications specification status comment web speech apithe definition of 'speech synthesis utterance events' in that specification.
SpeechSynthesisUtterance.lang - Web APIs
hesis; var inputform = document.queryselector('form'); var inputtxt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...txt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
SpeechSynthesisUtterance.onend - Web APIs
hesis; var inputform = document.queryselector('form'); var inputtxt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...txt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
SpeechSynthesisUtterance.onerror - Web APIs
hesis; var inputform = document.queryselector('form'); var inputtxt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...txt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
SpeechSynthesisUtterance.onpause - Web APIs
hesis; var inputform = document.queryselector('form'); var inputtxt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...txt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
SpeechSynthesisUtterance.onresume - Web APIs
hesis; var inputform = document.queryselector('form'); var inputtxt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...txt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
SpeechSynthesisUtterance.onstart - Web APIs
hesis; var inputform = document.queryselector('form'); var inputtxt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...txt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
SpeechSynthesisUtterance.pitch - Web APIs
hesis; var inputform = document.queryselector('form'); var inputtxt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...txt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
SpeechSynthesisUtterance.rate - Web APIs
hesis; var inputform = document.queryselector('form'); var inputtxt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...txt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
SpeechSynthesisUtterance.text - Web APIs
hesis; var inputform = document.queryselector('form'); var inputtxt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...txt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
SpeechSynthesisUtterance.voice - Web APIs
hesis; var inputform = document.queryselector('form'); var inputtxt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...txt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
SpeechSynthesisUtterance.volume - Web APIs
hesis; var inputform = document.queryselector('form'); var inputtxt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...txt = document.queryselector('input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
SpeechSynthesisVoice.voiceURI - Web APIs
s voice.
...ion = document.createelement('option'); option.textcontent = voices[i].name + ' (' + voices[i].lang + ')'; if(voices[i].default) { option.textcontent += ' -- default'; } console.log(voices[i].voiceuri); // on mac, this returns urns, for example 'urn:moz-tts:osx:com.apple.speech.synthesis.voice.daniel' option.setattribute('data-lang', voices[i].lang); option.setattribute('data-name', voices[i].name); voiceselect.appendchild(option); } specifications specification status comment web speech apithe definition of 'voiceuri' in that specification.
StorageEvent - Web APIs
of the key.
...ad only.
TaskAttributionTiming - Web APIs
> a:hover text { fill: #0095dd; pointer-events: all;} properties taskattributiontiming.containertype read only returns the type of frame container, one of iframe, embed, or object.
...er-events: all;} properties taskattributiontiming.containertype read only returns the type of frame container, one of iframe, embed, or object.
TransitionEvent.pseudoElement - Web APIs
the transitionevent.pseudoelement read-only property is a domstring, starting with '::', containing the name of the pseudo-element the animation runs on.
... the transitionevent.pseudoelement read-only property is a domstring, starting with '::', containing the name of the pseudo-element the animation runs on.
URL.password - Web APIs
Web › API › URL › password
the password property of the url interface is a usvstring containing the password specified before the domain name.
... the password property of the url interface is a usvstring containing the password specified before the domain name.
USB.requestDevice() - Web APIs
Web › API › USB › requestDevice
n only one device will be listed by the user agent.
...isted by the user agent.
USBAlternateInterface - Web APIs
g this interface.
...g of this value depends on the interfaceclass field.
USBConfiguration - Web APIs
object which contains information about the configuration on the provided usbdevice with the given configuration value.
...ation about the configuration on the provided usbdevice with the given configuration value.
WebGL2RenderingContext.getQuery() - Web APIs
the webgl2renderingcontext.getquery() method of the webgl 2 api returns the currently active webglquery for the target, or null.
...les_passed: specifies an occlusion query: these queries detect whether an object is visible (whether the scoped drawing commands pass the depth test and if so, how many samples pass).
WebGL2RenderingContext - Web APIs
webgl2renderingcontext.getactiveuniforms() retrieves information about active uniforms within a webglprogram.
...t.getactiveuniforms() retrieves information about active uniforms within a webglprogram.
WebGLActiveInfo - Web APIs
the webglactiveinfo interface is part of the webgl api and represents the information returned by calling the webglrenderingcontext.getactiveattrib() and webglrenderingcontext.getactiveuniform() methods.
... the webglactiveinfo interface is part of the webgl api and represents the information returned by calling the webglrenderingcontext.getactiveattrib() and webglrenderingcontext.getactiveuniform() methods.
WebGLRenderingContext.getVertexAttribOffset() - Web APIs
the webglrenderingcontext.getvertexattriboffset() method of the webgl api returns the address of a specified vertex attribute.
... the webglrenderingcontext.getvertexattriboffset() method of the webgl api returns the address of a specified vertex attribute.
Adding 2D content to a WebGL context - Web APIs
ection.
... a new shader is created by calling gl.createshader().
Using DTMF with WebRTC - Web APIs
in order to more fully support audio/video conferencing, webrtc supports sending dtmf to the remote peer on an rtcpeerconnection.
...two rtcpeerconnection objects, then sending the dtmf tones.
Using the Web Storage API - Web APIs
t is supported and available in the current browsing session.
...le(type) { var storage; try { storage = window[type]; var x = '__storage_test__'; storage.setitem(x, x); storage.removeitem(x); return true; } catch(e) { return e instanceof domexception && ( // everything except firefox e.code === 22 || // firefox e.code === 1014 || // test name field too, because code might not be present // everything except firefox e.name === 'quotaexceedederror' || // firefox e.name === 'ns_error_dom_quota_reached') && // acknowledge quotaexceedederror only if there's something already stored (storage && storage.length !== 0); } } and here is how you would use it: if (stora...
Functions and classes available to Web Workers - Web APIs
t workerglobalscope the global scope of workers.
...fic functions.
window.location - Web APIs
Web › API › Window › location
ed url.
....
Window: pageshow event - Web APIs
st events = [ "pagehide", "pageshow", "unload", "load" ]; const eventlogger = event => { switch (event.type) { case "pagehide": case "pageshow": let ispersisted = event.persisted ?
... "unload", "load" ]; const eventlogger = event => { switch (event.type) { case "pagehide": case "pageshow": let ispersisted = event.persisted ?
Window.requestFileSystem() - Web APIs
itlegend full support full support no support no supportexperimental.
...port full support no support no supportexperimental.
Window.updateCommands() - Web APIs
summary updates the state of commands of the current chrome window (ui).
... summary updates the state of commands of the current chrome window (ui).
WindowOrWorkerGlobalScope.setInterval() - Web APIs
nt of time that elapses between calls to the callback may be longer than the given delay; see reasons for delays longer than specified in windoworworkerglobalscope.settimeout() for examples.
...onsive server, and a host of other issues could prevent the request from completing in its allotted time.
Worker() - Web APIs
Web › API › Worker › Worker
roperties are as follows: type: a domstring specifying the type of worker to create.
...ing specifying the type of worker to create.
XMLHttpRequest.readyState - Web APIs
initiate the fetch.
...being received.
XPathEvaluator - Web APIs
the xpathevaluator interface allows to compile and evaluate xpath expressions.
... the xpathevaluator interface allows to compile and evaluate xpath expressions.
XPathResult.singleNodeValue - Web APIs
.singlenodevalue; return value the return value is the node value of the xpathresult returned by document.evaluate().
...ws the use of the singlenodevalue property.
XRInputSource.profiles - Web APIs
: the profiles list is always empty when the webxr session is in inline mode.
...lways empty when the webxr session is in inline mode.
XRPermissionStatus - Web APIs
the xrpermissionstatus interface defines the object returned by calling navigator.permissions.query() for the xr permission name; it indicates whether or not the app or site has permission to use webxr, an may be monitored over time for changes to that permissions tate.
...lling navigator.permissions.query() for the xr permission name; it indicates whether or not the app or site has permission to use webxr, an may be monitored over time for changes to that permissions tate.
Using the slider role - Accessibility
"fader" id="volume">50</output> the following code snippet allows you to return the output as it is updated by user input: function outputupdate(vol) { document.queryselector('#volume').value = vol; } example 2: text values sometimes, a slider is used to choose a value that is not, semantically, a number.
...el id="day-label">days</label> <div class="day-slider"> <div id="day-handle" class="day-slider-handle" role="slider" aria-labelledby="day-label" aria-valuemin="1" aria-valuemax="7" aria-valuenow="2" aria-valuetext="monday"> </div> </div> the code snippet below shows a function that responds to user input and updates the aria-valuenow and aria-valuetext attributes: var daynames = ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"]; var updateslider = function (newvalue) { var handle = document.getelementbyid("day-handle"); handle.setattribute("aria-valuenow", newvalue.tostring()); handle.setattribute("aria-valuetext", daynames[newvalue]); }; working examples: slider example notes aria attributes used aria-valuemin ...
ARIA annotations - Accessibility
widget that shows numbers of votes, but you want to summarize the purpose of the widget in a clear description because the ui does not make it clear: <section aria-description="choose your favourite fruit — the fruit with the highest number of votes will be added to the lunch options next week."> <p>pick your favourite fruit:</p> <form> <ul> <li><label>apple: <input type="radio" name="fruit" value="apple"></label></li> <li><label>orange: <input type="radio" name="fruit" value="orange"></label></li> <li><label>banana: <input type="radio" name="fruit" value="banana"></label></li> </ul> </form> </section> if the descriptive text does appear in the ui, you can link the description to the widget using aria-describedby, like so: <p id="fruit-desc">choose your fa...
... </ul> </form> </section> if the descriptive text does appear in the ui, you can link the description to the widget using aria-describedby, like so: <p id="fruit-desc">choose your favourite fruit — the fruit with the highest number of votes will be added to the lunch options next week.</p> <section aria-describedby="fruit-desc"> <form> <ul> <li><label>apple: <input type="radio" name="fruit" value="apple"></label></li> <li><label>orange: <input type="radio" name="fruit" value="orange"></label></li> <li><label>banana: <input type="radio" name="fruit" value="banana"></label></li> </ul> </form> </section> insertions and deletions a common wish in online document systems like google docs is to be able to track changes, to see what reviewers or editors have sug...
ARIA: banner role - Accessibility
a banner role represents general and informative content frequently placed at the beginning of the page.
... a banner role represents general and informative content frequently placed at the beginning of the page.
ARIA: listbox role - Accessibility
ended for lists with more than five options.
...x, selection may also move with focus.
Multipart labels: Using ARIA for labels with embedded fields inside them - Accessibility
avigate around to find out the unit.
...ut aria-labelledby="labelshutdown shutdowntime shutdownunit" type="checkbox" /> <span id="labelshutdown">shut down computer after</span> <input aria-labelledby="labelshutdown shutdowntime shutdownunit" id="shutdowntime" type="text" value="10" /> <span id="shutdownunit"> minutes</span> a note for jaws 8 users jaws 8.0 has its own logic to find labels, causing it to always override the accessiblename the textbox of an html document gets.
Mobile accessibility checklist - Accessibility
see steve faulkner's post about using the html title attribute for a good guide.) if the above attributes are not applicable, use appropriate aria states and properties such as aria-label, aria-labelledby, or aria-describedby.
...html title attribute for a good guide.) if the above attributes are not applicable, use appropriate aria states and properties such as aria-label, aria-labelledby, or aria-describedby.
Robust - Accessibility
w to conform to the criteria practical resource 4.1.1 parsing (a) content should be well-formed so it can be parsed successfully by browsers and other user agents such as screenreaders.
...actical resource 4.1.1 parsing (a) content should be well-formed so it can be parsed successfully by browsers and other user agents such as screenreaders.
Custom properties (--*): CSS variables - CSS: Cascading Style Sheets
Web › CSS › --*
property names that are prefixed with --, like --example-name, represent custom properties that contain a value that can be used in other declarations using the var() function.
...specified with variables substitutedanimation typediscrete syntax --somekeyword: left; --somecolor: #0000ff; --somecomplexvalue: 3px 6px rgb(20, 32, 54); <declaration-value> this value matches any sequence of one or more tokens, so long as the sequence does not contain an unallowed token.
:disabled - CSS: Cascading Style Sheets
Web › CSS › :disabled
ch it can be activated or accept focus.
.../legend> <input type="text" placeholder="name"> <input type="text" placeholder="address"> <input type="text" placeholder="zip code"> </fieldset> <br> <fieldset id="billing"> <legend>billing address</legend> <label for="billing-checkbox">same as shipping address:</label> <input type="checkbox" id="billing-checkbox" checked> <br> <input type="text" placeholder="name" disabled> <input type="text" placeholder="address" disabled> <input type="text" placeholder="zip code" disabled> </fieldset> </form> css input[type="text"]:disabled { background: #ccc; } javascript // wait for the page to finish loading document.addeventlistener('domcontentloaded', function () { // attach `change` event listener to checkbox document.getelementbyid('billing-...
:indeterminate - CSS: Cascading Style Sheets
ers of a group in which all radio buttons are unchecked, and indeterminate <progress> elements.
...l styles to the labels associated with indeterminate form fields.
@charset - CSS: Cascading Style Sheets
Web › CSS › @charset
d to serve the style sheet.
...d must not be used.
fallback - CSS: Cascading Style Sheets
is specified for a counter style, the fallback style will be used to represent values that fall outside the range.
... style, the fallback style will be used to represent values that fall outside the range.
font-variation-settings - CSS: Cascading Style Sheets
the font-variation-settings css descriptor allows authors to specify low-level opentype or truetype font variations in the @font-face rule.
...ttings css descriptor allows authors to specify low-level opentype or truetype font variations in the @font-face rule.
-moz-device-pixel-ratio - CSS: Cascading Style Sheets
the -moz-device-pixel-ratio gecko-only css media feature can be used to apply styles based on the number of device pixels per css pixel.
...e pixels per css pixel.
Alternative style sheets - CSS: Cascading Style Sheets
attribute for the style element' in that specification.
...ng standard html living standardthe definition of 'meta http-equiv="default-style")' in that specification.
Relationship of flexbox to other layout methods - CSS: Cascading Style Sheets
s here." in a later article in this series — aligning items in a flex container — we will take a thorough look at how the box alignment properties apply to flex items.
...a flex container — we will take a thorough look at how the box alignment properties apply to flex items.
Auto-placement in CSS Grid Layout - CSS: Cascading Style Sheets
0px; margin: 1em; line-height: 1.4; } dt { grid-column: 1; font-weight: bold; } dd { grid-column: 2; } what can’t we do with auto-placement (yet)?
...n: 2; } what can’t we do with auto-placement (yet)?
Basic Concepts of grid layout - CSS: Cascading Style Sheets
es: fixed and flexible track sizes you can create a grid with fixed track sizes – using pixels for example.
...we define the grid tracks, not the lines.
Using the :target pseudo-class in selectors - CSS: Cascading Style Sheets
css to draw attention to the target of a url and improve the user's experience.
...nd improve the user's experience.
Introducing the CSS Cascade - CSS: Cascading Style Sheets
Web › CSS › Cascade
the cascade is an algorithm that defines how to combine property values originating from different sources.
...declarations originate from different origins: the user-agent stylesheets, the author stylesheets, and the user stylesheets.
Class selectors - CSS: Cascading Style Sheets
elements based on the contents of their class attribute.
...s { margin: 2em; } /* all <li> elements with class="spacious" */ li.spacious { margin: 2em; } /* all <li> elements with a class list that includes both "spacious" and "elegant" */ /* for example, class="elegant retro spacious" */ li.spacious.elegant { margin: 2em; } syntax .class_name { style properties } note that this is equivalent to the following attribute selector: [class~=class_name] { style properties } examples css .red { color: #f33; } .yellow-bg { background: #ffa; } .fancy { font-weight: bold; text-shadow: 4px 4px 3px #77f; } html <p class="red">this paragraph has red text.</p> <p class="red yellow-bg">this paragraph has red text and a yellow background.</p> <p class="red fancy">this paragraph has red text and "fancy" styling.</p> <p>this is just a regul...
Type selectors - CSS: Cascading Style Sheets
the css type selector matches elements by node name.
...t.
Viewport concepts - CSS: Cascading Style Sheets
reen has a width of 320px, a website might be rendered with a virtual viewport of 980px, and then it will be shrunk down to fit into the 320px space, which, depending on the design, is illegible for many if not everyone.
...dth, which is the width of the screen in css pixels at a scale of 100%.
WebKit CSS extensions - CSS: Cascading Style Sheets
note: to maximize the compatibility of your css, you should use the unprefixed standard properties instead of the prefixed ones listed below.
... that used -webkit- prefixed properties, edge and firefox redirect many -webkit- prefixed properties to -moz-, -ms-, and unprefixed equivalents.
animation-delay - CSS: Cascading Style Sheets
n immediately but will start 1 second into the animation sequence.
... 4.0 full support 1.0prefixed prefixed implemented with the vendor prefix: -webkit-legend full support full supportsee implementation notes.see implementation notes.user must explicitly enable this feature.user must explicitly enable this feature.requires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
animation-direction - CSS: Cascading Style Sheets
rds.
... 12.1safari ios full support 6samsung internet android full support 1.5legend full support full supportuser must explicitly enable this feature.user must explicitly enable this feature.requires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
box-align - CSS: Cascading Style Sheets
Web › CSS › box-align
th the vendor prefix: -webkit-legend full support full support no support no supportnon-standard.
... full support full support no support no supportnon-standard.
box-direction - CSS: Cascading Style Sheets
t full support no support no supportnon-standard.
... no support no supportnon-standard.
color - CSS: Cascading Style Sheets
Web › CSS › color
rties, such as border-color.
...ies toall elements.
<color> - CSS: Cascading Style Sheets
although <color> values are precisely defined, their actual appearance may vary (sometimes significantly) from device to device.
...ice.
element() - CSS: Cascading Style Sheets
Web › CSS › element
nolegend full support full support no support no supportexperimental.
... full support full support no support no supportexperimental.
grid - CSS: Cascading Style Sheets
Web › CSS › grid
ir initial value, as normal for shorthands.
...ormal for shorthands.
ime-mode - CSS: Cascading Style Sheets
Web › CSS › ime-mode
valueautoapplies totext fieldsinheritednocomputed valueas specifiedanimation typediscrete formal syntax auto | normal | active | inactive | disabled examples disabling input method support this example disables input method support for a form field.
...utoapplies totext fieldsinheritednocomputed valueas specifiedanimation typediscrete formal syntax auto | normal | active | inactive | disabled examples disabling input method support this example disables input method support for a form field.
<length> - CSS: Cascading Style Sheets
Web › CSS › length
olution devices, such as printers.
...; align-items: center; height: 50px; } label { margin: 0 10px 0 20px; } javascript const inputdiv = document.queryselector('.inner'); const inputelem = document.queryselector('input'); const resultsdiv = document.queryselector('.results'); inputelem.addeventlistener('change', () => { inputdiv.style.width = inputelem.value; const result = document.createelement('div'); result.classname = 'result'; result.style.width = inputelem.value; result.innerhtml = `<code>width: ${inputelem.value}</code>`; resultsdiv.appendchild(result); inputelem.value = ''; inputelem.focus(); }) result specifications specification status comment css values and units module level 4the definition of '<length>' in that specification.
outline-color - CSS: Cascading Style Sheets
omputed valuefor the keyword invert, the computed value is invert.
... nosafari ios no support nosamsung internet android no support nolegend full support full support no support no supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
overflow-wrap - CSS: Cascading Style Sheets
ve examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...e clone https://github.com/mdn/interactive-examples and send us a pull request.
text-align - CSS: Cascading Style Sheets
ies the alignment character around which the cell's contents will align.
...values level 1the definition of 'text-align' in that specification.
Adding captions and subtitles to HTML5 video - Developer guides
can be added or removed later by simply editing the <track> elements within the video's markup.
...he language and label from each one.
Media events - Developer guides
various events are sent when handling media that are embedded in html documents using the <audio> and <video> elements; this section lists them and provides some helpful information about using them.
...changed.
Constraint validation - Developer guides
ypes the intrinsic constraints for the type attribute are: input type constraint description associated violation <input type="url"> the value must be an absolute url, as defined in the url living standard.
... intrinsic constraints for the type attribute are: input type constraint description associated violation <input type="url"> the value must be an absolute url, as defined in the url living standard.
HTML attribute: readonly - HTML: Hypertext Markup Language
me value" readonly="readonly"/> <label>email</label> </div> <div class="group"> <input type="password" value="some value" readonly="readonly"/> <label>password</label> </div> <div class="group"> <textarea readonly="readonly">some value</textarea> <label>message</label> </div> result examples <fieldset> <legend>checkboxes buttons</legend> <p><label> <input type="checkbox" name="chbox" value="regular"> regular </label></p> <p><label> <input type="checkbox" name="chbox" value="readonly" readonly> readonly </label></p> <p><label> <input type="checkbox" name="chbox" value="disabled" disabled> disabled </label></p> </fieldset> <fieldset> <legend>radio buttons</legend> <p><label> <input type="radio" name="radio" value="regular"> regular </label></...
...bel></p> <p><label> <input type="checkbox" name="chbox" value="readonly" readonly> readonly </label></p> <p><label> <input type="checkbox" name="chbox" value="disabled" disabled> disabled </label></p> </fieldset> <fieldset> <legend>radio buttons</legend> <p><label> <input type="radio" name="radio" value="regular"> regular </label></p> <p><label> <input type="radio" name="radio" value="readonly" readonly> readonly </label></p> <p><label> <input type="radio" name="radio" value="disabled" disabled> disabled </label></p> </fieldset> specifications specification status comment html living standardthe definition of 'readonly attribute' in that specification.
HTML attribute: size - HTML: Hypertext Markup Language
Web › HTML › Attributes › size
act on constraint validation.
...ny options are visible in the closed state.
Date and time formats used in HTML - HTML: Hypertext Markup Language
adual, naturally occurring slowing of earth's rotation.
... month for the month numbers and their corresponding names (and lengths in days).
<base>: The Document Base URL element - HTML: Hypertext Markup Language
Web › HTML › Element › base
ent attributes this element's attributes include the global attributes.
...ment for relative urls.
<basefont> - HTML: Hypertext Markup Language
Web › HTML › Element › basefont
en be varied relative to the base size using the <font> element.
... properties such as font, font-family, font-size, and color to change the font configuration for an element and its contents.
<cite>: The Citation element - HTML: Hypertext Markup Language
Web › HTML › Element › cite
ing a theatrical production a play an opera a musical an exhibition a legal case report a computer program a web site a web page a blog post or comment a forum post or comment a tweet a facebook post a written or oral statement and so forth.
...am a web site a web page a blog post or comment a forum post or comment a tweet a facebook post a written or oral statement and so forth.
<command>: The HTML Command element - HTML: Hypertext Markup Language
Web › HTML › Element › command
y.
...lcommandelement attributes this element includes the global attributes.
<data> - HTML: Hypertext Markup Language
Web › HTML › Element › data
ny element that accepts phrasing content.
...g content.
<div>: The Content Division element - HTML: Hypertext Markup Language
Web › HTML › Element › div
te; do not use it anymore.
...en no other semantic element (such as <article> or <nav>) is appropriate.
<font> - HTML: Hypertext Markup Language
Web › HTML › Element › font
<style> element or the style attribute of each element).
...havior of the <font> element can be achieved, and even better controlled using the css fonts css properties.
<header> - HTML: Hypertext Markup Language
Web › HTML › Element › header
the html <header> element represents introductory content, typically a group of introductory or navigational aids.
...ent is intended to usually contain the surrounding section's heading (an h1–h6 element), but this is not required.
<i>: The Idiomatic Text element - HTML: Hypertext Markup Language
Web › HTML › Element › i
y or mode of text, such as: alternative voice or mood taxonomic designations (such as the genus and species "homo sapiens") idiomatic terms from another language (such as "et cetera"); these should include the lang attribute to identify the language technical terms transliterations thoughts (such as "she wondered,what is this writer talking about, anyway?") ship or vessel names in western writing systems (such as "they searched the docks for the empress of the galaxy, the ship to which they were assigned.") in earlier versions of the html specification, the <i> element was merely a presentational element used to display text in italics, much like the <b> element was used to display text in bold letters.
...is, by definition, no longer required to do so.
<menuitem> - HTML: Hypertext Markup Language
Web › HTML › Element › menuitem
menu's subject element (such as a button or input).
... the current state.
theme-color - HTML: Hypertext Markup Language
Web › HTML › Element › meta › name › theme-color
the theme-color value for the name attribute of the <meta> element indicates a suggested color that user agents should use to customize the display of the page or of the surrounding user interface.
... the theme-color value for the name attribute of the <meta> element indicates a suggested color that user agents should use to customize the display of the page or of the surrounding user interface.
<param>: The Object Parameter element - HTML: Hypertext Markup Language
Web › HTML › Element › param
.
... tag omission as it is a void element, the start tag must be present and the end tag must not be present.
<script>: The Script element - HTML: Hypertext Markup Language
Web › HTML › Element › script
ss secure destination (e.g.
... for non-supporting browsers.
<sub>: The Subscript element - HTML: Hypertext Markup Language
Web › HTML › Element › sub
a roles any dom interface htmlelement attributes this element only includes the global attributes.
...cript.
lang - HTML: Hypertext Markup Language
s.
...es the region subtag if both are present — ru-cyrl-by is russian, written in the cyrillic alphabet, as spoken in belarus.
part - HTML: Hypertext Markup Language
the part global attribute contains a space-separated list of the part names of the element.
... the part global attribute contains a space-separated list of the part names of the element.
translate - HTML: Hypertext Markup Language
browsers recognize this attribute, it is respected by automatic translation systems such as google translate, and may also be respected by tools used by human translators.
...on systems such as google translate, and may also be respected by tools used by human translators.
HTML: Hypertext Markup Language
Web › HTML
r display in a web browser.
...up includes special "elements" such as <head>, <title>, <body>, <header>, <footer>, <article>, <section>, <p>, <div>, <span>, <img>, <aside>, <audio>, <canvas>, <datalist>, <details>, <embed>, <nav>, <output>, <progress>, <video>, <ul>, <ol>, <li> and many others.
Resource URLs - HTTP
s, a web page could run internal scripts and inspect internal resources of firefox, including the default preferences, which could be a serious security and privacy issue.
...assets.
Reason: missing token ‘xyz’ in CORS header ‘Access-Control-Allow-Headers’ from CORS preflight channel - HTTP
reason reason: missing token ‘xyz’ in cors header ‘access-control-allow-headers’ from cors preflight channel what went wrong?
...z’ in cors header ‘access-control-allow-headers’ from cors preflight channel what went wrong?
HTTP caching - HTTP
Web › HTTP › Caching
sources that would benefit the most from caching resources, yet this makes them very difficult to update.
..., yet this makes them very difficult to update.
Using Feature Policy - HTTP
n a default allowlist will be used.
... the allow attribute only controls features within an iframe.
Feature Policy - HTTP
feature policy allows web developers to selectively enable, disable, and modify the behavior of certain features and apis in the browser.
...icy-controlled feature, the browser maintains a list of origins for which the feature is enabled, known as an allowlist.
Accept-Charset - HTTP
w each content-type may have its own default.
...l browsers omit the accept-charset header: internet explorer 8+, safari 5+, opera 11+, firefox 10+ and chrome 27+ no longer send it.
Access-Control-Allow-Methods - HTTP
the access-control-allow-methods response header specifies the method or methods allowed when accessing the resource in response to a preflight request.
...-control-allow-methods: <method>, <method>, ...
Authorization - HTTP
the http authorization request header contains the credentials to authenticate a user agent with a server, usually, but not necessarily, after the server has responded with a 401 unauthorized status and the www-authenticate header.
...st header forbidden header name no syntax authorization: <type> <credentials> directives <type> authentication type.
Connection - HTTP
, upgrade, proxy-authorization and proxy-authenticate), any hop-by-hop headers used by the message must be listed in the connection header, so that the first proxy knows it has to consume them and not forward them further.
...ve connection: close directives close indicates that either the client or the server would like to close the connection.
Content-Encoding - HTTP
obtain the media-type referenced by the content-type header.
... content-encoding: deflate, gzip directives gzip a format using the lempel-ziv coding (lz77), with a 32-bit crc.
Content-Security-Policy-Report-Only - HTTP
content-security-policy-report-only response header allows web developers to experiment with policies by monitoring (but not enforcing) their effects.
...cy the original policy as specified by the content-security-policy-report-only http header.
Content-Security-Policy - HTTP
te administrators to control resources the user agent is allowed to load for a given page.
....
Host - HTTP
Web › HTTP › Headers › Host
port is included, the default port for the service requested (e.g., 443 for an https url, and 80 for an http url) is implied.
...tps url, and 80 for an http url) is implied.
Large-Allocation - HTTP
these allocations can be quite large, sometimes as large as 1gb.
... feature being set.
NEL - HTTP
Web › HTTP › Headers › NEL
the http nel response header is used to configure network request logging.
... the http nel response header is used to configure network request logging.
Proxy-Authenticate - HTTP
the http proxy-authenticate response header defines the authentication method that should be used to gain access to a resource behind a proxy server.
...cation required.
Proxy-Authorization - HTTP
the http proxy-authorization request header contains the credentials to authenticate a user agent to a proxy server, usually after the server has responded with a 407 proxy authentication required status and the proxy-authenticate header.
...roxy authentication required status and the proxy-authenticate header.
Server - HTTP
Web › HTTP › Headers › Server
the server header describes the software used by the origin server that handled the request — that is, the server that generated the response.
...d by the origin server that handled the request — that is, the server that generated the response.
Transfer-Encoding - HTTP
segment of a multi-node connection can use different transfer-encoding values.
...d to add the length of the current chunk in hexadecimal format, followed by '\r\n' and then the chunk itself, followed by another '\r\n'.
X-Frame-Options - HTTP
ng attacks, by ensuring that their content is not embedded into other sites.
...t x-frame-options "deny" configuring nginx to configure nginx to send the x-frame-options header, add this either to your http, server or location configuration: add_header x-frame-options sameorigin always; configuring iis to configure iis to send the x-frame-options header, add this to your site's web.config file: <system.webserver> ...
JavaScript data types and data structures - JavaScript
ough a number often represents only its value, javascript provides binary (bitwise) operators.
...ean if true, the property will be enumerated in for...in loops.
Concurrency model and the event loop - JavaScript
bar, a first frame is created containing bar's arguments and local variables.
... so, the message is removed from the queue and its corresponding function is called with the message as an input parameter.
JavaScript technologies overview - JavaScript
lications.
...ents in dom events.
Warning: String.x is deprecated; use String.prototype.x instead - JavaScript
x var num = 15; string(num).replace(/5/, '2'); shim the following is a shim to provide support to non-supporting browsers: /*globals define*/ // assumes all supplied string instance methods already present // (one may use shims for these if not available) (function() { 'use strict'; var i, // we could also build the array of methods with the following, but the // getownpropertynames() method is non-shimable: // object.getownpropertynames(string).filter(function(methodname) { // return typeof string[methodname] === 'function'; // }); methods = [ 'contains', 'substring', 'tolowercase', 'touppercase', 'charat', 'charcodeat', 'indexof', 'lastindexof', 'startswith', 'endswith', 'trim', 'trimleft', 'trimright', 'tolocalelowercase', 'normalize',...
...tolowercase', 'touppercase', 'charat', 'charcodeat', 'indexof', 'lastindexof', 'startswith', 'endswith', 'trim', 'trimleft', 'trimright', 'tolocalelowercase', 'normalize', 'tolocaleuppercase', 'localecompare', 'match', 'search', 'slice', 'replace', 'split', 'substr', 'concat', 'localecompare' ], methodcount = methods.length, assignstringgeneric = function(methodname) { var method = string.prototype[methodname]; string[methodname] = function(arg1) { return method.apply(arg1, array.prototype.slice.call(arguments, 1)); }; }; for (i = 0; i < methodcount; i++) { assignstringgeneric(methods[i]); } }()); ...
SyntaxError: Malformed formal parameter - JavaScript
med formal parameter (firefox) error type syntaxerror what went wrong?
...y of saying "function argument".
SyntaxError: Unexpected token - JavaScript
the javascript exceptions "unexpected token" occur when a specific language construct was expected, but something else was provided.
... the javascript exceptions "unexpected token" occur when a specific language construct was expected, but something else was provided.
TypeError: 'x' is not iterable - JavaScript
therefore, you cannot use for…of to iterate over the properties of an object.
... iterate over the property names: for (let country of object.keys(obj)) { var capital = obj[country]; console.log(country, capital); } for (const [country, capital] of object.entries(obj)) console.log(country, capital); another option for this use case might be to use a map: var map = new map; map.set('france', 'paris'); map.set('england', 'london'); // iterate over the property names: for (let country of map.keys()) { let capital = map[country]; console.log(country, capital); } for (let capital of map.values()) console.log(capital); for (const [country, capital] of map.entries()) console.log(country, capital); iterating over a generator generators are functions you call to produce an iterable object.
Rest parameters - JavaScript
console.log("manymoreargs", manymoreargs) } myfun("one", "two", "three", "four", "five", "six") // console output: // a, one // b, two // manymoreargs, [three, four, five, six] difference between rest parameters and the arguments object there are three main differences between rest parameters and the arguments object: rest parameters are only the ones that haven't been given a separate name (i.e.
...t argument let first = arguments.shift() // error (arguments is not a normal array) } // now, you can easily gain access to a normal array using a rest parameter function f(...args) { let normalarray = args let first = normalarray.shift() // ok, gives the first argument } examples using rest parameters in this example, the first argument is mapped to a and the second to b, so these named arguments are used as normal.
Array.prototype.shift() - JavaScript
d = myfish.shift(); console.log('myfish after:', myfish); // myfish after: ['clown', 'mandarin', 'surgeon'] console.log('removed this element:', shifted); // removed this element: angel using shift() method in while loop the shift() method is often used in condition inside while loop.
... after: ['clown', 'mandarin', 'surgeon'] console.log('removed this element:', shifted); // removed this element: angel using shift() method in while loop the shift() method is often used in condition inside while loop.
BigInt64Array - JavaScript
e initialized to 0n.
...erence elements in the array using the object's methods, or by using standard array index syntax (that is, using bracket notation).
BigUint64Array - JavaScript
tialized to 0n.
...e elements in the array using the object's methods, or by using standard array index syntax (that is, using bracket notation).
Date.prototype.toLocaleDateString() - JavaScript
for support for locales and options arguments the locales and options arguments are not supported in all browsers yet.
... options argument: var date = new date(date.utc(2012, 11, 20, 3, 0, 0)); // request a weekday along with a long date var options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }; console.log(date.tolocaledatestring('de-de', options)); // → "donnerstag, 20.
Date.prototype.toLocaleTimeString() - JavaScript
support for locales and options arguments the locales and options arguments are not supported in all browsers yet.
... balinese, include a fallback language, in this case indonesian console.log(date.tolocaletimestring(['ban', 'id'])); // → "11.00.00" using options the results provided by tolocaletimestring() can be customized using the options argument: var date = new date(date.utc(2012, 11, 20, 3, 0, 0)); // an application may want to use utc and make that visible var options = { timezone: 'utc', timezonename: 'short' }; console.log(date.tolocaletimestring('en-us', options)); // → "3:00:00 am gmt" // sometimes even the us needs 24-hour time console.log(date.tolocaletimestring('en-us', { hour12: false })); // → "19:00:00" // show only hours and minutes, use options with the default locale - use an empty array console.log(date.tolocaletimestring([], { hour: '2-digit', minute: '2-digit' })); // →...
Float32Array - JavaScript
tents are initialized to 0.
...can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).
Float64Array - JavaScript
tents are initialized to 0.
...can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).
Int16Array - JavaScript
d.
...shed, you can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).
Int32Array - JavaScript
d.
...shed, you can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).
Int8Array - JavaScript
tegers.
...tablished, you can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).
Intl.DateTimeFormat - JavaScript
var date = new date(date.utc(2012, 11, 20, 3, 0, 0, 200)); // request a weekday along with a long date var options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }; console.log(new intl.datetimeformat('de-de', options).format(date)); // → "donnerstag, 20.
....
JSON - JavaScript
ng values to json.
...turn a json string corresponding to the specified value, optionally including only certain properties or replacing property values in a user-defined manner.
Math.acosh() - JavaScript
the math.acosh() function returns the hyperbolic arc-cosine of a number, that is ∀x≥1,math.acosh(x)=arcosh(x)= the unique y≥0such thatcosh(y)=x\forall x \geq 1, \mathtt{\operatorname{math.acosh}(x)} = \operatorname{arcosh}(x) = \text{ the unique } \; y \geq 0 \; \text{such that} \; \cosh(y) = x the source for this interactive example is stored in a github repository.
...equest.
Math.atanh() - JavaScript
the math.atanh() function returns the hyperbolic arctangent of a number, that is ∀x∊(-1,1),math.atanh(x)=arctanh(x)= the unique ysuch thattanh(y)=x\forall x \in \left( -1, 1 \right), \mathtt{\operatorname{math.atanh}(x)} = \operatorname{arctanh}(x) = \text{ the unique } \; y \; \text{such that} \; \tanh(y) = x the source for this interactive example is stored in a github repository.
...es and send us a pull request.
Object.create() - JavaScript
parameters proto the object which should be the prototype of the newly-created object.
...ion > oco.hasownproperty("p") // shows "true" > ocn.hasownproperty("p") // throws error: ocn.hasownproperty is not a function > oco.constructor // shows "object() { [native code] }" > ocn.constructor // shows "undefined" as said, these differences can make debugging even simple-seeming problems quickly go astray.
Object.defineProperties() - JavaScript
the object.
... argument the new value being assigned to the property.
Object.getOwnPropertyDescriptor() - JavaScript
on the original property's configuration.
...rameters obj the object in which to look for the property.
Object.getOwnPropertySymbols() - JavaScript
you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...les and send us a pull request.
Object.keys() - JavaScript
the object.keys() method returns an array of a given object's own enumerable property names, iterated in the same order that a normal loop would.
... anobj = { 100: 'a', 2: 'b', 7: 'c' }; console.log(object.keys(anobj)); // console: ['2', '7', '100'] // getfoo is a property which isn't enumerable const myobj = object.create({}, { getfoo: { value: function () { return this.foo; } } }); myobj.foo = 1; console.log(object.keys(myobj)); // console: ['foo'] if you want all properties—including non-enumerables—see object.getownpropertynames().
Promise() constructor - JavaScript
usly) invokes any .then() associated with it.
... promiseobj.then() is passed to the invocation of handlefulfilled as an input parameter (see "chained promises" section).
handler.defineProperty() - JavaScript
to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...e descriptor passed to defineproperty() trap has one restriction—only following properties are usable (non-standard properties will be ignored): enumerable configurable writable value get set const p = new proxy({}, { defineproperty(target, prop, descriptor) { console.log(descriptor); return reflect.defineproperty(target, prop, descriptor); } }); object.defineproperty(p, 'name', { value: 'proxy', type: 'custom' }); // { value: 'proxy' } specifications specification ecmascript (ecma-262)the definition of '[[defineownproperty]]' in that specification.
Proxy.revocable() - JavaScript
revoke a function with no argument to invalidate (switch off) the proxy.
... argument to invalidate (switch off) the proxy.
Comparing Reflect and Object methods - JavaScript
ist on reflect also correspond to methods available on object, which predates es2015.
...it has not.
String.prototype.charAt() - JavaScript
the default is 0, so the first character of str is returned.
...0, so the first character of str is returned.
String.prototype.indexOf() - JavaScript
world'.indexof('', 22) // returns 11 in the former instance, js seems to find an empty string just after the specified index value.
...('', 22) // returns 11 in the former instance, js seems to find an empty string just after the specified index value.
String.raw() - JavaScript
5!', the character after 'hi' // is not a newline character, // '\' and 'n' are two characters.
.../ is not a newline character, // '\' and 'n' are two characters.
String.prototype.substring() - JavaScript
to but not including indexend.
...if indexend is omitted, substring() extracts characters to the end of the string.
String.prototype.trimEnd() - JavaScript
d(); str.trimright(); return value a new string representing the calling string stripped of whitespace from its (right) end.
.../ trimright() methods return the string stripped of whitespace from its right end.
String.prototype.trimStart() - JavaScript
imleft(); return value a new string representing the calling string stripped of whitespace from its beginning (left end).
...rimleft() methods return the string stripped of whitespace from its left end.
String - JavaScript
errides the object.prototype.valueof() method.
...s the object.prototype.valueof() method.
Symbol.for() - JavaScript
call, but checks first if a symbol with the given key is already present in the registry.
...ally.
Symbol.unscopables - JavaScript
the symbol.unscopables well-known symbol is used to specify an object value of whose own and inherited property names are excluded from the with environment bindings of the associated object.
...ed from the with environment bindings of the associated object.
Uint16Array - JavaScript
e contents are initialized to 0.
... you can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).
Uint32Array - JavaScript
e contents are initialized to 0.
... you can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).
Uint8Array - JavaScript
s.
...shed, you can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).
Uint8ClampedArray - JavaScript
0.
... the array using the object's methods, or using standard array index syntax (that is, using bracket notation).
globalThis - JavaScript
his property provides a standard way of accessing the global this value (and hence the global object itself) across environments.
...e is globalthis.
Right shift (>>) - JavaScript
the right shift operator (>>) shifts the first operand the specified number of bits to the right.
...ctive-examples and send us a pull request.
in operator - JavaScript
ns true if the specified property is in the specified object or its prototype chain.
...ry.
let - JavaScript
d local variable, optionally initializing it to a value.
..., unlike the var keyword, which defines a variable globally, or locally to an entire function regardless of block scope.
<maction> - MathML
n </maction>.
...d near the expression.
<math> - MathML
Web › MathML › Element › math
ion to the following attributes, the <math> element accepts any attributes of the <mstyle> element.
...f the <mstyle> element.
<menclose> - MathML
the mathml <menclose> element renders its content inside an enclosing notation specified by the notation attribute.
... the mathml <menclose> element renders its content inside an enclosing notation specified by the notation attribute.
<merror> - MathML
Web › MathML › Element › merror
s error is not thrown when your mathml markup is wrong or not well-formed xml.
...ing error (in case of the xhtml notation of mathml), which has nothing to do with <merror>.
<mfenced> - MathML
mathml standard and modern browsers no longer support it.
...es class, id, style provided for use with stylesheets.
<mfrac> - MathML
Web › MathML › Element › mfrac
is deprecated and will be removed in the future.
...o a specified uri.
<mlabeledtr> - MathML
eated identically to children of <mtr> elements.
...tyle provided for use with stylesheets.
<mmultiscripts> - MathML
the error console and "invalid-markup" in your rendering).
...are able to use <none/> as a placeholder for empty scripts (not for the base).
<mover> - MathML
Web › MathML › Element › mover
limit over the base expression.
...possible values are: left, center, and right.
<mroot> - MathML
Web › MathML › Element › mroot
the mathml <mroot> element is used to display roots with an explicit index.
...arguments are accepted, which leads to the syntax: <mroot> base index </mroot>.
<mrow> - MathML
Web › MathML › Element › mrow
expression by automated systems such as computer algebra systems and audio renderers.
...renderers.
<msqrt> - MathML
Web › MathML › Element › msqrt
the mathml <msqrt> element is used to display square roots (no index is displayed).
... only one argument, which leads to the following syntax: <msqrt> base </msqrt>.
<msub> - MathML
Web › MathML › Element › msub
the mathml <msub> element is used to attach a subscript to an expression.
...<msub> element is used to attach a subscript to an expression.
<msubsup> - MathML
the mathml <msubsup> element is used to attach both a subscript and a superscript, together, to an expression.
...d a superscript, together, to an expression.
<msup> - MathML
Web › MathML › Element › msup
the mathml <msup> element is used to attach a superscript to an expression.
...p> element is used to attach a superscript to an expression.
<mtable> - MathML
Web › MathML › Element › mtable
orce all rows to have the same total height.
...fies borders of the entire table.
<mtd> - MathML
Web › MathML › Element › mtd
ifies the horizontal alignment of this cell and overrides values specified by <mtable> or <mtr>.
...y <mtable> or <mtr>.
<mtr> - MathML
Web › MathML › Element › mtr
ilar to the <tr> element of html.
...for use with stylesheets.
<munder> - MathML
Web › MathML › Element › munder
imit under the base expression.
...possible values are: left, center, and right.
<munderover> - MathML
ase expression.
...possible values are: left, center, and right.
<semantics> - MathML
r presentation mathml.
...tion mathml.
Autoplay guide for media and Web Audio APIs - Web media technologies
kely will want to offer a way for the user to manually tell the browser to ask the user to grant permission to play media.
...determine success or failure of the operation was added more recently.
Web audio codec guide - Web media technologies
web and which containers (file types) support them.
...ile types) support them.
Using dns-prefetch - Web Performance
dns-prefetch is an attempt to resolve domain names before resources get requested.
... dns-prefetch is an attempt to resolve domain names before resources get requested.
How to make PWAs re-engageable using Notifications and Push - Progressive web apps (PWAs)
efault option is chosen when the user won't make a choice, and the other two are set when the user clicks yes or no respectively.
...n the example app creates a notification out of the available data — a game is picked at random, and the chosen one feeds the notification with the content: it sets the game's name as the title, mentioning the author in the body, and showing the image as an icon: function randomnotification() { var randomitem = math.floor(math.random()*games.length); var notiftitle = games[randomitem].name; var notifbody = 'created by '+games[randomitem].author+'.'; var notifimg = 'data/img/'+games[randomitem].slug+'.jpg'; var options = { body: notifbody, icon: notifimg } var notif = new notification(notiftitle, options); settimeout(randomnotification, 30000); } a new random notification is created every 30 seconds until it becomes too annoying and is disabl...
Applying SVG effects to HTML content - SVG: Scalable Vector Graphics
ffects.
...xample text</text> </svg> using external references svg used for clipping, masking, and filtering can be loaded from an external source, as long as that source comes from the same origin as the html document to which it's applied.
SVG Styling Attributes - SVG: Scalable Vector Graphics
Web › SVG › Attribute › Styling
the svg styling attributes are all the attributes that can be specified on any svg element to apply css styling effects.
... the svg styling attributes are all the attributes that can be specified on any svg element to apply css styling effects.
by - SVG: Scalable Vector Graphics
Web › SVG › Attribute › by
the by attribute specifies a relative offset value for an attribute that will be modified during an animation.
...ute is either indicated by specifying it as value for the attribute given in the attributename or the from attribute.
dominant-baseline - SVG: Scalable Vector Graphics
aseline-table in the font, and the baseline-table font-size is changed to the value of the font-size attribute on this element.
...phabetic, hanging, mathematical.
dur - SVG: Scalable Vector Graphics
Web › SVG › Attribute › dur
the dur attribute indicates the simple duration of an animation.
...otion>, <animatetransform>, and <set> html, body, svg { height: 100%; } <svg viewbox="0 0 220 150" xmlns="http://www.w3.org/2000/svg"> <rect x="0" y="0" width="100" height="100"> <animate attributetype="xml" attributename="y" from="0" to="50" dur="1s" repeatcount="indefinite"/> </rect> <rect x="120" y="0" width="100" height="100"> <animate attributetype="xml" attributename="y" from="0" to="50" dur="3s" repeatcount="indefinite"/> </rect> </svg> usage notes value <clock-value> | media | indefinite default value indefinite animatable no <clock-value> this value specifies the length of the simple duration.
font-family - SVG: Scalable Vector Graphics
the font-family attribute indicates which font family will be used to render the text, specified as a prioritized list of font family names and/or generic family names.
... it has effect only on the following eight elements: <altglyph>, <text>, <textpath>, <tref>, and <tspan> html, body, svg { height: 100%; } <svg viewbox="0 0 200 30" xmlns="http://www.w3.org/2000/svg"> <text y="20" font-family="arial, helvetica, sans-serif">sans serif</text> <text x="100" y="20" font-family="monospace">monospace</text> </svg> usage notes value [ <family-name> | <generic-family> ]#where <family-name> = <string> | <custom-ident>+<generic-family> = serif | sans-serif | cursive | fantasy | monospace default value depends on user agent animatable yes for a description of the values, please refer to the css font-family property.
keySplines - SVG: Scalable Vector Graphics
if there are any errors in the keysplines specification (bad values, too many or too few values), the animation will not occur.
... html, body, svg { height: 100%; } <svg viewbox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"> <circle cx="60" cy="10" r="10"> <animate attributename="cx" dur="4s" calcmode="spline" repeatcount="indefinite" values="60 ; 110 ; 60 ; 10 ; 60" keytimes="0 ; 0.25 ; 0.5 ; 0.75 ; 1" keysplines="0.5 0 0.5 1 ; 0.5 0 0.5 1 ; 0.5 0 0.5 1 ; 0.5 0 0.5 1"/> <animate attributename="cy" dur="4s" calcmode="spline" repeatcount="indefinite" values="10 ; 60 ; 110 ; 60 ; 10" keytimes="0 ; 0.25 ; 0.5 ; 0.75 ; 1" keysplines="0.5 0 0.5 1 ; 0.5 0 0.5 1 ; 0.5 0 0.5 1 ; 0.5 0 0.5 1"/> </circle> </svg> usage notes value <control-point> [ ; <control-point> ]* ;?
keyTimes - SVG: Scalable Vector Graphics
a floating point value between 0 and 1 (inclusive), representing a proportional offset into the duration of the animation element.
... are using this attribute: <animate>, <animatecolor>, <animatemotion>, and <animatetransform> html, body, svg { height: 100%; } <svg viewbox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"> <circle cx="60" cy="10" r="10"> <animate attributename="cx" dur="4s" repeatcount="indefinite" values="60 ; 110 ; 60 ; 10 ; 60" keytimes="0 ; 0.25 ; 0.5 ; 0.75 ; 1"/> <animate attributename="cy" dur="4s" repeatcount="indefinite" values="10 ; 60 ; 110 ; 60 ; 10" keytimes="0 ; 0.25 ; 0.5 ; 0.75 ; 1"/> </circle> </svg> usage notes value <number> [ ; <number> ]* ;?
max - SVG: Scalable Vector Graphics
Web › SVG › Attribute › max
the max attribute specifies the maximum value of the active animation duration.
...attribute: <animate>, <animatecolor>, <animatemotion>, <animatetransform>, and <set> html, body, svg { height: 100%; } <svg viewbox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"> <circle cx="60" cy="10" r="10"> <animate attributename="cx" dur="4s" max="6s" repeatcount="indefinite" values="60 ; 110 ; 60 ; 10 ; 60" keytimes="0 ; 0.25 ; 0.5 ; 0.75 ; 1"/> <animate attributename="cy" dur="4s" max="6s" repeatcount="indefinite" values="10 ; 60 ; 110 ; 60 ; 10" keytimes="0 ; 0.25 ; 0.5 ; 0.75 ; 1"/> </circle> </svg> usage notes value <clock-value> default value none animatable no <clock-value> specifies the length of the maximum value of the active duration, measured in local time.
min - SVG: Scalable Vector Graphics
Web › SVG › Attribute › min
the min attribute specifies the minimum value of the active animation duration.
...attribute: <animate>, <animatecolor>, <animatemotion>, <animatetransform>, and <set> html, body, svg { height: 100%; } <svg viewbox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"> <circle cx="60" cy="10" r="10"> <animate attributename="cx" dur="4s" min="2s" repeatcount="indefinite" values="60 ; 110 ; 60 ; 10 ; 60" keytimes="0 ; 0.25 ; 0.5 ; 0.75 ; 1"/> <animate attributename="cy" dur="4s" min="2s" repeatcount="indefinite" values="10 ; 60 ; 110 ; 60 ; 10" keytimes="0 ; 0.25 ; 0.5 ; 0.75 ; 1"/> </circle> </svg> usage notes value <clock-value> default value 0 animatable no <clock-value> specifies the length of the minimum value of the active duration, measured in local time.
repeatCount - SVG: Scalable Vector Graphics
the repeatcount attribute indicates the number of times an animation will take place.
...<animatemotion>, <animatetransform>, and <set> html, body, svg { height: 100%; } <svg viewbox="0 0 220 150" xmlns="http://www.w3.org/2000/svg"> <rect x="0" y="0" width="100" height="100"> <animate attributetype="xml" attributename="y" from="0" to="50" dur="1s" repeatcount="5"/> </rect> <rect x="120" y="0" width="100" height="100"> <animate attributetype="xml" attributename="y" from="0" to="50" dur="1s" repeatcount="indefinite"/> </rect> </svg> usage notes value <number> | indefinite default value none animatable no <number> this value specifies the number of iterations.
repeatDur - SVG: Scalable Vector Graphics
the repeatdur attribute specifies the total duration for repeating an animation.
... <animatemotion>, <animatetransform>, and <set> html, body, svg { height: 100%; } <svg viewbox="0 0 220 150" xmlns="http://www.w3.org/2000/svg"> <rect x="0" y="0" width="100" height="100"> <animate attributetype="xml" attributename="y" from="0" to="50" dur="1s" repeatdur="5s"/> </rect> <rect x="120" y="0" width="100" height="100"> <animate attributetype="xml" attributename="y" from="0" to="50" dur="1s" repeatdur="indefinite"/> </rect> </svg> usage notes value <clock-value> | indefinite default values none animatable no <clock-value> this value specifies the duration in presentation time to repeat the animation.
requiredExtensions - SVG: Scalable Vector Graphics
ach extension is identified by an url reference.
... are enclosed in a <switch> and none of them matches, this may lead to situations where no content is displayed.
restart - SVG: Scalable Vector Graphics
Web › SVG › Attribute › restart
t an animation can restart.
... a { fill: blue; text-decoration: underline; cursor: pointer; } <svg viewbox="0 0 220 200" xmlns="http://www.w3.org/2000/svg"> <rect y="30" width="100" height="100"> <animate attributetype="xml" attributename="y" from="30" to="100" dur="5s" repeatcount="1" restart="always" /> </rect> <rect x="120" y="30" width="100" height="100"> <animate attributetype="xml" attributename="y" from="30" to="100" dur="5s" repeatcount="1" restart="whennotactive"/> </rect> <a id="restart"><text y="20">restart animation</text></a> </svg> document.getelementbyid("restart").addeventlistener("click", evt => { document.queryselectorall("animate").foreach(element => { element.beginelement(); }); }); usage notes value always | whennotactive | never ...
result - SVG: Scalable Vector Graphics
Web › SVG › Attribute › result
the result attribute defines the assigned name for this filter primitive.
...nce" in="sourcegraphic" scale="50" xchannelselector="r" ychannelselector="g"/> </filter> <circle cx="100" cy="100" r="100" style="filter: url(#displacementfilter)"/> </svg> usage notes value <filter-primitive-reference> default value none animatable yes <filter-primitive-reference> this value is a <custom-ident> and defines the name for the filter primitive.
u1 - SVG: Scalable Vector Graphics
Web › SVG › Attribute › u1
unicode attribute of the <glyph> element for a description of how to express individual unicode characters) and/or ranges of unicode characters, which identify a set of possible first glyphs in a kerning pair.
... in a kerning pair.
u2 - SVG: Scalable Vector Graphics
Web › SVG › Attribute › u2
nicode attribute of the <glyph> element for a description of how to express individual unicode characters) and/or ranges of unicode characters, which identify a set of possible second glyphs in a kerning pair.
... in a kerning pair.
<animate> - SVG: Scalable Vector Graphics
Web › SVG › Element › animate
the svg <animate> element provides a way to animate an attribute of an element over time.
...<rect width="10" height="10"> <animate attributename="rx" values="0;5;0" dur="10s" repeatcount="indefinite" /> </rect> </svg> attributes animation attributes animation timing attributes begin, dur, end, min, max, restart, repeatcount, repeatdur, fill animation value attributes calcmode, values, keytimes, keysplines, from, to, by other animation attributes most notably: attributename, additive, accumulate animation event attributes most notably: onbegin, onend, onrepeat global attributes core attributes most notably: id styling attributes class, style event attributes global event attributes, document element event attributes usage notes this element implements the svganimateelement interface.
<font-face-src> - SVG: Scalable Vector Graphics
the <font-face-src> svg element corresponds to the src descriptor in css @font-face rules.
... the <font-face-src> svg element corresponds to the src descriptor in css @font-face rules.
<foreignObject> - SVG: Scalable Vector Graphics
the <foreignobject> svg element includes elements from a different xml namespace.
...s="http://www.w3.org/2000/svg"> <style> div { color: white; font: 18px serif; height: 100%; overflow: auto; } </style> <polygon points="5,5 195,10 185,185 10,195" /> <!-- common use case: embed html text into svg --> <foreignobject x="20" y="20" width="160" height="160"> <!-- in the context of svg embedded in an html document, the xhtml namespace could be omitted, but it is mandatory in the context of an svg document --> <div xmlns="http://www.w3.org/1999/xhtml"> lorem ipsum dolor sit amet, consectetur adipiscing elit.
<glyph> - SVG: Scalable Vector Graphics
Web › SVG › Element › glyph
lementsgradient elements<a>, <altglyphdef>, <clippath>, <color-profile>, <cursor>, <filter>, <font>, <font-face>, <foreignobject>, <image>, <marker>, <mask>, <pattern>, <script>, <style>, <switch>, <text>, <view> attributes global attributes core attributes presentation attributes class style specific attributes d horiz-adv-x vert-origin-x vert-origin-y vert-adv-y unicode glyph-name orientation arabic-form lang dom interface this element implements the svgglyphelement interface.
.../www.w3.org/tr/svg/fonts.html#glyphelement --> <defs> <font id="font1" horiz-adv-x="1000"> <font-face font-family="super sans" font-weight="bold" font-style="normal" units-per-em="1000" cap-height="600" x-height="400" ascent="700" descent="300" alphabetic="0" mathematical="350" ideographic="400" hanging="500"> <font-face-src> <font-face-name name="super sans bold"/> </font-face-src> </font-face> <missing-glyph><path d="m0,0h200v200h-200z"/></missing-glyph> <glyph unicode="!" horiz-adv-x="80" d="m0,0h200v200h-200z"></glyph> <glyph unicode="@" d="m0,50l100,300l400,100z"></glyph> </font> </defs> <text x="100" y="100" style="font-family: 'super sans', helvetica, sans-serif; font...
<set> - SVG: Scalable Vector Graphics
Web › SVG › Element › set
ed.
...is attribute defines the value to be applied to the target attribute for the duration of the animation.
SVG element reference - SVG: Scalable Vector Graphics
Web › SVG › Element
nts <feblend>, <fecolormatrix>, <fecomponenttransfer>, <fecomposite>, <feconvolvematrix>, <fediffuselighting>, <fedisplacementmap>, <fedropshadow>, <feflood>,<fefunca>, <fefuncb>, <fefuncg>, <fefuncr>,<fegaussianblur>, <feimage>, <femerge>, <femergenode>, <femorphology>, <feoffset>, <fespecularlighting>, <fetile>, <feturbulence> font elements <font>, <font-face>, <font-face-format>, <font-face-name>, <font-face-src>, <font-face-uri>, <hkern>, <vkern> gradient elements <lineargradient>, <meshgradient>, <radialgradient>, <stop> graphics elements <circle>, <ellipse>, <image>, <line>, <mesh>, <path>, <polygon>, <polyline>, <rect>, <text>, <use> graphics referencing elements <mesh>, <use> light source elements <fedistantlight>, <fepointlight>, <fespotlight> never-rendered elements <cli...
...ete and deprecated elements warning: these are old svg elements which are deprecated and should not be used.
Gradients in SVG - SVG: Scalable Vector Graphics
er.
...idth="100" height="100" fill="url(#gradientreflect)"/> <text x="15" y="30" fill="white" font-family="sans-serif" font-size="12pt">pad</text> <text x="15" y="140" fill="white" font-family="sans-serif" font-size="12pt">repeat</text> <text x="125" y="140" fill="white" font-family="sans-serif" font-size="12pt">reflect</text> </svg> screenshotlive sample both gradients also have an attribute named gradientunits, which describes the unit system you're going to use when you describe the size or orientation of the gradient.
Web Components
e times as the basis of a custom element's structure.
...dom shadow tree to an element.
current - XPath
ression (e.g.
...ons) returns the same node.
<xsl:preserve-space> - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:preserve-space> element defines the elements in the source document for which whitespace should be preserved.
...s, xpath axes the <xsl:preserve-space> element defines the elements in the source document for which whitespace should be preserved.
JavaScript/XSLT Bindings - XSLT: Extensible Stylesheet Language Transformations
// importnode is used to clone the nodes we want to process via xslt - true makes it do a deep clone var mynode = document.getelementbyid("example"); var clonednode = xmlref.importnode(mynode, true); // add the cloned dom into the xml document xmlref.appendchild(clonednode); once the stylesheet has been imported, xsltprocessor has to perform two methods for the actual transformation, namely xsltprocessor.transformtodocument() and xsltprocessor.transformtofragment().
...rocessor.transformtodocument() and xsltprocessor.transformtofragment().
Using the WebAssembly JavaScript API - WebAssembly
ot one easily available).
...ion of our wasm module (which we also meet in converting webassembly format to wasm): (module (func $i (import "imports" "imported_func") (param i32)) (func (export "exported_func") i32.const 42 call $i)) in the second line, you will see that the import has a two-level namespace — the internal function $i is imported from imports.imported_func.
Cross-domain Content Scripts - Archive of obsolete content
in make cross-domain xmlhttprequests however, you can enable these features for specific domains by adding them to your add-on's package.json under the "cross-domain-content" key, which itself lives under the "permissions" key: "permissions": { "cross-domain-content": ["http://example.org/", "http://example.com/"] } the domains listed must include the scheme and fully qualified domain name, and these must exactly match the domains serving the content - so in the example above, the content script will not be allowed to access content served from https://example.com/.
Communicating using "postMessage" - Archive of obsolete content
postmessage function of the global self object: self.postmessage(contentscriptmessage); this takes a single parameter, the message payload, which may be any json-serializable value.
Content Scripts - Archive of obsolete content
k/page-worker").page({ contentscriptfile: self.data.url("content-script.js"), contenturl: "http://en.wikipedia.org/wiki/internet" }); pageworker.port.on("first-para", function(firstpara) { console.log(firstpara); }); pageworker.port.emit("get-first-para"); // content-script.js self.port.on("get-first-para", getfirstpara); function getfirstpara() { var paras = document.getelementsbytagname("p"); if (paras.length > 0) { var firstpara = paras[0].textcontent; self.port.emit("first-para", firstpara); } } from page-mod a single page-mod object might attach its scripts to multiple pages, each with its own context in which the content scripts are executing, so it needs a separate channel (worker) for each page.
Contributor's Guide - Archive of obsolete content
a file, and has a well defined interface.
Program ID - Archive of obsolete content
.
SDK and XUL Comparison - Archive of obsolete content
n add-on development, and tool support which greatly simplifies the process of developing, testing, and packaging an add-on.
Two Types of Scripts - Archive of obsolete content
modules.
Guides - Archive of obsolete content
known as cuddlefish.
hotkeys - Archive of obsolete content
-on, so consider making the combination you choose user-configurable.
notifications - Archive of obsolete content
t desktop notifications or if its notifications service is not running: if firefox was started normally, notifications are logged to firefox's error console if the user launched firefox from the command line, notifications are logged to the terminal.
private-browsing - Archive of obsolete content
to cache some data from private windows while they are open, as long as you don't store it after the private browsing windows have been closed.
console/plain-text - Archive of obsolete content
constructor for a console instance.
content/symbiont - Archive of obsolete content
{ constructor: function thing(options) { // `getmyframe` returns the host application frame in which // the page is loaded.
event/core - Archive of obsolete content
broadcast and subscribe to events.
frame/hidden-frame - Archive of obsolete content
"http://www.mozilla.org/"; let self = this; this.element.addeventlistener("domcontentloaded", function() { console.log(self.element.contentdocument.title); }, true, true); } })); see the panel module for a real-world example of usage of this module.
frame/utils - Archive of obsolete content
e } = require('sdk/frame/utils'); let window = open('data:text/html,top'); let frame = create(window.document, { uri: 'data:text/html,<script>console.log("running");</script>', allowjavascript: true }); } globals functions create(document, options) creates a xul browser element in a privileged document.
net/url - Archive of obsolete content
experimental enables you to read content from a uri.
places/history - Archive of obsolete content
ters queries : object|array an object representing a query, or an array of objects representing queries.
tabs/utils - Archive of obsolete content
b.
util/match-pattern - Archive of obsolete content
emes like file, resource, or data, use a scheme followed by an asterisk, as below.
Storing annotations - Archive of obsolete content
ntentscriptfile: [data.url('jquery-1.4.2.min.js'), data.url('list/annotation-list.js')], contentscriptwhen: 'ready', onshow: function() { this.postmessage(simplestorage.storage.annotations); }, onmessage: function(message) { require('sdk/tabs').open(message); } }); since this panel's content script uses jquery we will pass that in too: again, make sure the name of it matches the version of jquery you downloaded.
Getting started (cfx) - Archive of obsolete content
a setting.
Modifying the Page Hosted by a Tab - Archive of obsolete content
job of these scripts is to interact with web content.
Canvas code snippets - Archive of obsolete content
tion(value) { if (value === undefined) return this.ctx[prop]; this.ctx[prop] = value; return this; }; } }; var canvas = document.getelementbyid('canvas'); // use context to get access to underlying context var ctx = canvas2dcontext(canvas) .strokestyle('rgb(30, 110, 210)') .transform(10, 3, 4, 5, 1, 0) .strokerect(2, 10, 15, 20) .context; // use property name as a function (but without arguments) to get the value var strokestyle = canvas2dcontext(canvas) .strokestyle('rgb(50, 110, 210)') .strokestyle(); code usable only from privileged code these snippets are only useful from privileged code, such as extensions or privileged apps.
Customizing the download progress bar - Archive of obsolete content
this example illustrates how to customize the progress bar displayed for a given download in the downloads window.
JS XPCOM - Archive of obsolete content
here are a few useful snippets of code for dealing with xpcom components in javascript.
Tabbox - Archive of obsolete content
obsolete since gecko 1.9.2 (firefox 3.6 / thunderbird 3.1 / fennec 1.0) this feature is obsolete.
JavaScript Daemons Management - Archive of obsolete content
{ [custom code] }, // required "customproperty": [custom value], "mycustommethod": function () { [custom code] }, "anothercustomproperty": [custom value], "etc.": "etc." }, 200, 30); daemon.incorporate(function) the function.prototype property will replaced with a new daemon() object.
XML-related code snippets - Archive of obsolete content
how to create a dom tree using xmlhttprequest parsing and serializing xml using xpath jxon (lossless javascript xml object notation) xsl transforms xlink xinclude xml:id xml:base support in old browsers xpointer svg namespaces, or why http://www.mozilla.org/keymaster/gat...re.is.only.xul is at the top of every xul document.
XPath - Archive of obsolete content
notes and sample code for xpath and ajax (the following was moved from document.evaluate) obj.evaluate(xpathexpression,contextnode,namespaceresolver,resulttype,result); //obj and contextnode should be the same object, if context is a ajax xml object (example: returnedxml) this should be used as : returnedxml.evaluate(xpathexpression,returnedxml,namespaceresolver,returntype,result); //contextnode should be used in the one in which it was created //add by mooring 2008-11-15 16:00 china var xhr = new ajax('post','demo.xml',parsexml,'xml'); //ajax is a class written by javascript which return responsexml object to parsexml function function parsexml(obj)//obj is the returnxml object now { if(!obj.documentelement) { alert("your browser does't support this script!"); return;...
Extension Packaging - Archive of obsolete content
er may not function properly with the extension, or the extension itself may not work properly.
Installing Extensions and Themes From Web Pages - Archive of obsolete content
..." when the link is clicked it calls the function install passing the event object as the parameter.
Multiple item extension packaging - Archive of obsolete content
e item package does not have the same requirements as an extension for its install.rdf.
Adding Events and Commands - Archive of obsolete content
ach event handlers, just like html, is to place the handler in the xul code: <overlay id="xulschoolhello-browser-overlay" onload="xulschoolchrome.browseroverlay.init();" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> we prefer the first method because it keeps a better separation of content and behavior.
Getting Started with Firefox Extensions - Archive of obsolete content
g different.
Intercepting Page Loads - Archive of obsolete content
ents.interfaces.nsiwebprogresslistener.state_start) && (astateflags & components.interfaces.nsiwebprogresslistener.state_is_document)) note the use of the binary mask & operator.
Local Storage - Archive of obsolete content
are hard to debug.
Supporting search suggestions in search plugins - Archive of obsolete content
a map link instead of just a search result page for a given suggestion, you can return an url to a map in this array.
Beginner tutorials - Archive of obsolete content
this page includes archived beginners tutorials, from various places around mdn.
Creating a dynamic status bar extension - Archive of obsolete content
l manifest replace all occurrences of the first sample's id, "status-bar-sample-1", with the new sample's id, "stockwatcher", and update the front end metadata to describe our new extension.
Environment variables affecting crash reporting - Archive of obsolete content
windows only.) moz_crashreporter_no_delete_dump don't delete the crash report dump file after submitting it to the server.
Chromeless - Archive of obsolete content
s have access to a collection of javascript apis that provide them with deep desktop integration.
Finding the file to modify - Archive of obsolete content
m inspector is a tool bundled with mozilla that allows you to examine the dom of web pages and xul windows.
Creating a Release Tag - Archive of obsolete content
mozilla/client.mk cvs co -r mozilla_0_9_4_1_release_mini_branch mozilla/client.mk in each of the build scripts find the variables defining the branch and change it from the branch you originally pulled from to the new tag you are creating.
contents.rdf - Archive of obsolete content
f": <?xml version="1.0"?> <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:chrome="http://www.mozilla.org/rdf/chrome#"> <!-- list all the skins being supplied by this theme --> <rdf:seq about="urn:mozilla:skin:root"> <rdf:li resource="urn:mozilla:skin:myskin/1.0" /> </rdf:seq> <rdf:description about="urn:mozilla:skin:myskin/1.0" chrome:displayname="my skin" chrome:accesskey="m" chrome:author="me" chrome:description="this is my custom skin for mozilla" chrome:name="myskin/1.0" chrome:image="preview.png"> <chrome:packages> <rdf:seq about="urn:mozilla:skin:myskin/1.0:packages"> <rdf:li resource="urn:mozilla:skin:myskin/1.0:communicator"/> <rdf:li resource="urn:mozilla:skin:mysk...
Dehydra Frequently Asked Questions - Archive of obsolete content
general questions where did the name dehydra come from?
Embedding Mozilla in a Java Application using JavaXPCOM - Archive of obsolete content
proxyobjectmanager_iid); // and use the proxy object manager to create a proxy for the nsiwindowwatcher instance we created above.
Documentation for BiDi Mozilla - Archive of obsolete content
the text mode of form controls may be "logical", "visual" or "like containing document".
Enabling Experimental Jetpack Features - Archive of obsolete content
it and the blog post announcing the first sdk release for what we're up to next!
Enabling - Archive of obsolete content
the proposed method for accessing jetpack features that are still in development and may be added in the future is inspired by python's future module.
Clipboard - Archive of obsolete content
te: this page documents the jetpack prototype, which is no longer under active development.
Clipboard Test - Archive of obsolete content
jetpack's clipboard support api provides a standardized way for features to access the clipboard.
Clipboard - Archive of obsolete content
jetpack's clipboard support api provides a standardized way for features to access the clipboard.
Notifications - Archive of obsolete content
note: this page documents the jetpack prototype, which is no longer under active development.
Selection - Archive of obsolete content
note: this page documents the jetpack prototype, which is no longer under active development.
Selection - Archive of obsolete content
jetpack's selection api provides a method for detecting the selections made by the user.
Tabs - Archive of obsolete content
Archive › Mozilla › Jetpack › UI › Tabs
note: this page documents the jetpack prototype, which is no longer under active development.
Enabling Experimental Jetpack Features - Archive of obsolete content
Archive › Mozilla › Jetpack › docs › Meta › Future
the proposed method for accessing jetpack features that are still in development and may be added in the future is inspired by python's future module.
Clipboard - Archive of obsolete content
jetpack's clipboard support api provides a standardized way for features to access the clipboard.
Selection - Archive of obsolete content
Archive › Mozilla › Jetpack › docs › UI › Selection
jetpack's selection api provides a method for detecting the selections made by the user.
statusBar - Archive of obsolete content
the class statusbar contains functions to add and control the statusbar of the browser.
Microsummary topics - Archive of obsolete content
by the nsimicrosummaryservice component, then call its installgenerator() method, passing it an xml document containing the generator.
Monitoring downloads - Archive of obsolete content
erve downloads.
Mozilla Crypto FAQ - Archive of obsolete content
ibutions of crypto code should also be reviewed and approved by the appropriate mozilla module owners, just as with any other mozilla contributions.
NSC_SetPIN - Archive of obsolete content
name nsc_setpin - modify the user's pin.
Plug-n-Hack Phase1 - Archive of obsolete content
has succeeded.
Scripting - Archive of obsolete content
prism allows for some client-side web application customization.
Reading textual data - Archive of obsolete content
ad string from is: var str = {}; var numchars = is.readstring(4096, str); if (numchars != 0 /* eof */) var read_string = str.value; to read the entire stream and do something with the data: var str = {}; while (is.readstring(4096, str) != 0) { processdata(str.value); } don't forget to close the stream when you're done with it (is.close()).
Remote debugging - Archive of obsolete content
rash is a real bug in firefox.
Running Windows Debug Builds Downloaded From Tinderbox - Archive of obsolete content
ww.dependencywalker.com/.
String Quick Reference - Archive of obsolete content
old way: use nsautostring and assignwithconversion() nsautostring widestring; widestring.assignwithconversion("some string"); callwidefunction(widestring); // use widestring again, but need a const prunichar* callwidewithflatstring(widestring.get()) nsautostring widestring2; widestring2.assignwithconversion("another string"); callwidefunction(widestring2); new way: use ns_literal_string or ns_named_literal_string // pre-declare the variable if you'll use it multiple times ns_named_literal_string(widestring, "some string"); callwidefunction(widestring); // use widestring again, but need a const prunichar* callwidewithflatstring(widestring.get()); // inline the string with ns_literal_string callwidefunction(ns_literal_string("another string")); converting literal strings to string obj...
Table Layout Regression Tests - Archive of obsolete content
s recorded at two different times.
Tamarin Acceptance Test Template - Archive of obsolete content
this is the test template for tamarin acceptance tests (placed in test/acceptance/feature_name): /* -*- mode: js; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4 -*- */ /* vi: set ts=4 sw=4 expandtab: (add to ~/.vimrc: set modeline modelines=5) */ /* ***** begin license block ***** * version: mpl 1.1/gpl 2.0/lgpl 2.1 * * the contents of this file are subject to the mozilla public license version * 1.1 (the "license"); you may not use this file except in compliance with * the license.
Cmdline tests - Archive of obsolete content
, input='break 53\ncontinue\nnext\ninfo locals\nnext\ninfo locals\nquit\n', expectedout=['local1 = undefined','local2 = 10','local2 = 15'] ) use case 2: test -memstats returns memory logs to stdout test contents: start avmshell -memstats test.abc, assert stdout contains 'gross stats', 'sweep m reclaimed n pages.' from cmdutils import * def run(): r=runtestlib() r.run_test(name='memstats', command="%s -memstats testdata/memstats.abc" % r.avm, expectedout=[ 'gross stats', 'managed fragmentation', 'gross stats end', 'sweep\\([0-9]+\\) reclaimed [0-9]+ whole pages' ] ...
The new nsString class implementation (1999) - Archive of obsolete content
on of the string (by default they share a global allocator).
Venkman Internals - Archive of obsolete content
n code, reads venkman.properties from a subdirectory of "locale" and injects variables.
Using Breakpoints in Venkman - Archive of obsolete content
og message.
When To Use ifdefs - Archive of obsolete content
le ifdefs.
Writing textual data - Archive of obsolete content
y represent a subset of the full repertoire.
XBL 1.0 Reference - Archive of obsolete content
mous content that is inserted around the bound element.
XBL - Archive of obsolete content
ied: sxbl and xbl 2.0.
Install Wizards (aka: Stub Installers) - Archive of obsolete content
warning: the content of this article may be out of date.
copy - Archive of obsolete content
nt copy( filespecobject source, filespecobject dest ) parameters the copy method has the following parameters: source a filespecobject object reprsenting the file to be copied.
dirCreate - Archive of obsolete content
dircreate creates a new directory.
dirGetParent - Archive of obsolete content
dirgetparent returns an object representing the parent directory of the current directory or file.
diskSpaceAvailable - Archive of obsolete content
diskspaceavailable returns the amount of disk space available in bytes on the local disk.
execute - Archive of obsolete content
execute queues the executing of a local file.
move - Archive of obsolete content
ove method has the following parameters: source a filespecobject representing the source file.
size - Archive of obsolete content
summary return the size of the given file in bytes.
getWinProfile - Archive of obsolete content
ts an object for working with a windows .ini file.
loadResources - Archive of obsolete content
loadresources loads a properties file.
Install Object - Archive of obsolete content
mplicit--like the window object in regular web page scripts--and needn't be prefixed to the object methods.
getString - Archive of obsolete content
n in the file, such as "boot" or "drivers".
enumKeys - Archive of obsolete content
for the given key.
valueExists - Archive of obsolete content
eters: key a string representing the path to the key.
Methods - Archive of obsolete content
l.js based packages to the new packaging scheme with an install.rdf manifest.
XPJS Components Proposal - Archive of obsolete content
this is a proposal for a system that got implemented, but it may differ from the actual implementation.
Extending Gecko with XBL and XTF - Archive of obsolete content
presentation view online download summary this session explored ways to extend mozilla/firefox to handle new xml tags and namespaces via drop-in extensions to the layout engine.
attribute - Archive of obsolete content
« xul reference home attribute type: attribute name the attribute that the observer is observing.
contextmenu - Archive of obsolete content
« xul reference home contextmenu type: id alternate name for the context attribute, but also has a corresponding script property contextmenu.
emptytext - Archive of obsolete content
« xul reference home emptytext deprecated since gecko 2 type: string a string that appears in the textbox when it has no value.
events - Archive of obsolete content
« xul reference home events type: comma-separated list a comma-separated list of event names that the command updater will update upon.
expr - Archive of obsolete content
Archive › Mozilla › XUL › Attribute › expr
« xul reference home expr type: string for xml queries, an xpath expression which returns results.
group - Archive of obsolete content
« xul reference home group type: string group name buttons with type="radio" and the same value for their group attribute are put into the same group.
id - Archive of obsolete content
Archive › Mozilla › XUL › Attribute › id
xample <button id="foo" label="click me" oncommand="dosomething()"/> <script> function dosomething(){ var mybutton = document.getelementbyid('foo'); mybutton.setattribute('label','the button was pressed'); } </script> a more abstract version of the above would be a <button id="foo" label="click me" oncommand="setwidgetlabel(this, 'i was pressed')"/> <script> function setwidgetlabel(idname, newcaption){ document.getelementbyid( idname.id ).setattribute('label',newcaption) } </script> not specifying the id attribute for a window or a prefwindow fills the console with the following warning message: warning: empty string passed to getelementbyid() see also name ...
menu - Archive of obsolete content
Archive › Mozilla › XUL › Attribute › menu
« xul reference home menu type: id alternate name for the popup attribute, but also has a corresponding script property 'menu'.
menuitem.type - Archive of obsolete content
« xul reference home type type: one of the values below can be used to create checkable menuitems or for radio button menuitems.
onchange - Archive of obsolete content
example <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <window id="findfile-window" title="find files" orient="horizontal" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script type="text/javascript"> function myfunction(e){ /* do something cool here or just say the below */ alert(e.target.nodename); } </script> <textbox id="find-text" onchange="return myfunction(event);"/> </window> ...
parent - Archive of obsolete content
« xul reference home parent type: element tag name if set, the rule will only match the corresponding tag.
persist - Archive of obsolete content
« xul reference home persist type: space-separated list of attribute names a space-separated list of attributes that are maintained when the window is closed.
properties - Archive of obsolete content
« xul reference home properties type: space-separated list of property names sets the properties of the element, which can be used to style the element.
showimagecolumn - Archive of obsolete content
« xul reference home showimagecolumn type: boolean if true, an image column appears in the popup.
sortResource - Archive of obsolete content
« xul reference home sortresource type: uri for template-generated content, this specifies the sort key, if you would like the content to be sorted.
value - Archive of obsolete content
you can access it with a script for your own use.
var - Archive of obsolete content
Archive › Mozilla › XUL › Attribute › var
« 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".
Working With Directories - Archive of obsolete content
pi is very much welcome!
Reading from Files - Archive of obsolete content
ring(20); although this can be a suitable means of reading binary data, usually you will want to retrieve the data with some additional methods that are more useful.
Writing to Files - Archive of obsolete content
o the file using various writing methods.
List of commands - Archive of obsolete content
:printpreview browser:savepage browser:searchinternet browser:sendpage browser:uploadfile cmd_bm_copy cmd_bm_cut cmd_bm_delete cmd_bm_expandfolder cmd_bm_export cmd_bm_find cmd_bm_import cmd_bm_managefolder cmd_bm_movebookmark cmd_bm_newbookmark cmd_bm_newfolder cmd_bm_newseparator cmd_bm_open cmd_bm_openinnewtab cmd_bm_openinnewwindow cmd_bm_paste cmd_bm_properties cmd_bm_rename cmd_bm_selectall cmd_bm_setnewbookmarkfolder cmd_bm_setnewsearchfolder cmd_bm_setpersonaltoolbarfolder cmd_bm_sortfolder cmd_bm_sortfolderbyname cmd_close cmd_closeothertabs cmd_closewindow cmd_copy cmd_copyimage cmd_copylink cmd_cut cmd_delete cmd_editpage cmd_findtypelinks cmd_findtypetext cmd_gotoline cmd_handlebackspace cmd_handleshiftbackspace cmd_minimizewindow cmd_new...
startFind - Archive of obsolete content
this is called for a given findbar, the findbar will flash to draw attention to itself.
addTab - Archive of obsolete content
Archive › Mozilla › XUL › Method › addTab
erreruri: ..., charset: ..., postdata: ..., owner: ..., allowthirdpartyfixup: ..., relatedtocurrent: ...
appendCustomToolbar - Archive of obsolete content
« xul reference home appendcustomtoolbar( name, currentset ) firefox only return type: element adds a custom toolbar to the toolbox with the given name.
getDefaultSession - Archive of obsolete content
« xul reference home getdefaultsession return type: session name returns the name of the first session with available results.
getFormattedString - Archive of obsolete content
« xul reference home getformattedstring( key, strarray ) return type: string looks up the format string for the given key name in the string bundle and returns a formatted copy where each occurrence of %s (uppercase) is replaced by each successive element in the supplied array.
getString - Archive of obsolete content
« xul reference home getstring( key ) return type: string returns the string with the given key name from the string bundle.
loadOneTab - Archive of obsolete content
ers inbackground if true the tab will be loaded in the background, if false the tab will be the newly selected tab.
openSubDialog - Archive of obsolete content
« xul reference home opensubdialog( url, features, params ) return type: window opens a child modal dialog.
Extensions - Archive of obsolete content
have added if the operation it performed wouldn't apply to images.
Menus - Archive of obsolete content
current item to the submenu, that menu's popup appears.
emptyText - Archive of obsolete content
« xul reference emptytext deprecated since gecko 2 type: string gets and sets a string that appears in the textbox when it has no value.
group - Archive of obsolete content
Archive › Mozilla › XUL › Property › group
« xul reference group type: string group name gets and sets the value of the group attribute.
persist - Archive of obsolete content
« xul reference persist type: space-separated list of attribute names gets and sets the value of the persist attribute.
searchSessions - Archive of obsolete content
« xul reference searchsessions obsolete since gecko 26 type: space-separated list of session names gets the value of the searchsessions attribute.
tag - Archive of obsolete content
Archive › Mozilla › XUL › Property › tag
« xul reference tag type: tag name this may be set to a tag name.
uri - Archive of obsolete content
Archive › Mozilla › XUL › Property › uri
« xul reference uri type: ?
Providing Command-Line Options - Archive of obsolete content
= { classdescription: "myapphandler", // changeme: generate a unique id classid: components.id('{2991c315-b871-42cd-b33f-bfee4fcbf682}'), // changeme: change the type in the contractid to be unique to your application contractid: "@mozilla.org/commandlinehandler/general-startup;1?type=myapp", _xpcom_categories: [{ category: "command-line-handler", // changeme: // category names are sorted alphabetically.
Additional Navigation - Archive of obsolete content
ies/iso#it"/> </rdf:description> <rdf:description about="http://www.daml.org/2001/09/countries/iso#it" dc:title="italy"/> <rdf:description about="http://www.daml.org/2001/09/countries/iso#nl" dc:title="netherlands"/> </rdf:rdf> a new country predicate has been added to each photo pointing to another resource.
Building Menus With Templates - Archive of obsolete content
ws for better performance as the entire content of a complex menu does not need to be created until the user needs to use the menu.
Multiple Rule Example - Archive of obsolete content
r the second rule, despite that they both store the value of the title predicate.
Static Content - Archive of obsolete content
es where generated content would be generated to inside to existing menupopup and moves onto the next part of the action, the menuitem.
Template Guide - Archive of obsolete content
building menus with templates special condition tests multiple queries using multiple queries to generate more results building trees with templates building trees building hierarchical trees template modifications template builder interface template and tree listeners rdf modifications additional topics sorting results additional template attributes template logging xml namespaces alternative approaches javascript templates xuljsdatasource: a component for extensions, which bring a "javascript template syntax".
Creating toolbar buttons (Customize Toolbar Window) - Archive of obsolete content
s a great explanation of the techniques we'll use here.
Additional Install Features - Archive of obsolete content
l string which means the root of the filesystem.
Content Panels - Archive of obsolete content
interface.
Creating a Skin - Archive of obsolete content
a custom skin and link to that.
Introduction to XBL - Archive of obsolete content
h binding element declares a single binding.
Keyboard Shortcuts - Archive of obsolete content
ard shortcut for a window.
Modifying the Default Skin - Archive of obsolete content
e sheets and a number of images.
Persistent Data - Archive of obsolete content
to save.
Popup Menus - Archive of obsolete content
it has been created.
Progress Meters - Archive of obsolete content
button" label="find" default="true"/> the value has been set to 50% so that we can see the meter on the window.
Simple Menu Bars - Archive of obsolete content
menu bar can optionally be placed inside a toolbox and the menu would work just like any other toolbar.
Tree Box Objects - Archive of obsolete content
u don't need to calculate the page size manually.
Using the Editor from XUL - Archive of obsolete content
ng for linebreaks, and inserts each text run, followed by a <br> when necessary.
Window icons - Archive of obsolete content
note: this feature was removed at firefox 67.
XUL Changes for Firefox 1.5 - Archive of obsolete content
d to most elements.
XUL controls - Archive of obsolete content
<menuitem label="open changed files"/> <menuitem label="open all"/> </menupopup> </toolbarbutton> more information about this type of menu toolbarbutton element.
XUL Event Propagation - Archive of obsolete content
g (or event bubbling with elements that do not already have event listeners), you must add an event listener to the element that wants to capture events taking place below it.
Application Update - Archive of obsolete content
rver for your xulrunner application to query.
Custom app bundles for Mac OS X - Archive of obsolete content
app-prefs.js (this provides some default values for preferences) application bundle contents in addition to the standard directory hierarchy that's required of all mac os x applications, as shown above in application bundle layout, there are some specific rules for what content goes where: the top-level directory is given a name that ends with .app which designates the whole package as an application bundle.
Dialogs in XULRunner - Archive of obsolete content
alogs */ var nsifilepicker = components.interfaces.nsifilepicker; var fp = components.classes["@mozilla.org/filepicker;1"].createinstance(nsifilepicker); fp.init(window, "open file", nsifilepicker.modeopen); fp.appendfilters(nsifilepicker.filtertext | nsifilepicker.filterall); var res = fp.show(); if (res == nsifilepicker.returnok) { var thefile = fp.file; alert(thefile.leafname); // --- do something with the file here --- } } xul does not currently support any other common dialogs.
XULRunner FAQ - Archive of obsolete content
.
Using SOAP in XULRunner 1.9 - Archive of obsolete content
uthor doesn't know enough about soap to implement a robust client in an afternoon.
XUL Explorer - Archive of obsolete content
to specify the snippet used to load the editor on startup.
Mozrunner - Archive of obsolete content
ile for constructing the profile to be used by the application.
nsIContentPolicy - Archive of obsolete content
orts, nsicontentpolicy, ...) note: before you can recieve notifications, you must register your plugin with nsicategorymanager.
reftest opportunities files - Archive of obsolete content
s/html/bug10324.html parser/htmlparser/tests/html/bug10049.html parser/htmlparser/tests/html/br001.html parser/htmlparser/tests/html/bigtxt.html parser/htmlparser/tests/html/bigscript.html parser/htmlparser/tests/html/bdo001.html parser/htmlparser/tests/html/badscript.html parser/htmlparser/tests/html/attribute_quote_bug1.html parser/htmlparser/tests/html/atoi01.html parser/htmlparser/tests/html/aname01.html parser/htmlparser/tests/html/acronym1.html parser/htmlparser/tests/html/table_illegal_2.html parser/htmlparser/tests/html/table_illegal_1.html parser/htmlparser/tests/html/table06.html parser/htmlparser/tests/html/table05j.html parser/htmlparser/tests/html/table05i.html parser/htmlparser/tests/html/table05h.html parser/htmlparser/tests/html/table05g.html parser/htmlparser/tests/html/table0...
2006-10-06 - Archive of obsolete content
net applications (wai-aria roadmap) roles for accessible rich internet applications (wai-aria roles) states and properties module for accessible rich internet applications (wai-aria states and properties) making ajax work with screen readers meetings accessibility hackfest 2006 - october 10-12 in cambridge, ma (more details) participants include the mozilla foundation, ibm, sun and novell to name a few.
2006-11-10 - Archive of obsolete content
summary: mozilla.dev.apps.thunderbird - november 4-10, 2006 announcements none for this week.
2006-09-29 - Archive of obsolete content
summary: mozilla.dev.builds - september 22nd to 29th 2006 .mar packages peter weilbacher posted a question and asked: how does one go about creating a .mar package that can be used in updating firefox and thunderbird?
2006-11-24 - Archive of obsolete content
cess requirements the translate toolkit mdnto po: its current state and how to use it discussion on clarifications on translate toolkit to avoid confusion.
Browser-side plug-in API - Archive of obsolete content
this chapter describes methods in the plug-in api that are provided by the browser; these allow call back to the browser to request information, tell the browser to repaint part of the window, and so forth.
NPP_New - Archive of obsolete content
of plug-in.
NPP_Write - Archive of obsolete content
« gecko plugin api reference « plug-in side plug-in api summary delivers data to a plug-in instance.
NPAPI plug-in side API - Archive of obsolete content
this chapter describes methods in the plug-in api that are available from the plug-in object; these allow plug-ins to interact with the browser.
Writing a plugin for Mac OS X - Archive of obsolete content
ll the plugin, just copy it into one of these two locations: /library/internet plugins/ ~/library/internet plugins/ from this point, you can simply modify the sample plugin to do whatever you want.
Plugins - Archive of obsolete content
hen trying to determine if a plug-in is consuming too many resources.
Why RSS Slash is Popular - Counting Your Comments - Archive of obsolete content
before the word blog was coined there was slashdot.
Entity list - Archive of obsolete content
this page provides a list of the entities supported by various versions of rss.
What is RSS - Archive of obsolete content
this page explains what rss is.
Proposal - Archive of obsolete content
ards.
0.90 - Archive of obsolete content
Archive › RSS › Version › 0.90
sion of rss released to the public, and was replaced by netscape's rss 0.91 (revision 1).
Version - Archive of obsolete content
ist below, although rss 1.0 seems to be out of place, it is actually in the correct place chronologically.
title - Archive of obsolete content
why can i not get any tang?!</title> <link>http://www.advogato.org/article/10101.html</link> <description>seriously.
Element - Archive of obsolete content
nclosure element) f g <generator> (rss generator element) <guid> (rss guid element) h <height> (rss height element) <hour> (rss hour element) i <image> (rss image element) <item> (rss item element) j k l <language> (rss language element) <lastbuilddate> (rss last build date element) <link> (rss link element) m <managingeditor> (rss managing editor element) n <name> (rss name element) o p <pubdate> (rss published date element) q r <rating> (rss rating element) <rss> (rss's root "rss" element) s <skipdays> (rss skip days element) <skiphours> (rss skip hours element) <source> (rss source element) t <textinput> (rss text input element) <title> (rss title element) <ttl> (rss ttl element) u <url> (rss url element) v w <webma...
TCP/IP Security - Archive of obsolete content
ayer sends the accumulated data through the physical network; the data is then passed up through the layers to its destination.
Threats - Archive of obsolete content
ample, site can be infected with a malware redirect hack in which a legitimate redirects to spam site or a phishing page.
UUID - Archive of obsolete content
uuid: universal unique identifier a uuid can be obtained by visiting http://www.famkruithof.net/uuid/uuidgen or by typing "firebot: uuid?" on irc.mozilla.org in a channel where nickname "firebot" is present.
contents.rdf - Archive of obsolete content
ntents.rdf": <?xml version="1.0"?> <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:chrome="http://www.mozilla.org/rdf/chrome#"> <!-- list all the skins being supplied by this theme --> <rdf:seq about="urn:mozilla:skin:root"> <rdf:li resource="urn:mozilla:skin:my_theme"/> </rdf:seq> <rdf:description about="urn:mozilla:skin:my_theme" chrome:displayname="my theme" chrome:accesskey="n" chrome:author="" chrome:authorurl="" chrome:description="" chrome:name="my_theme" chrome:image="preview.png"> <chrome:packages> <rdf:seq about="urn:mozilla:skin:my_theme:packages"> <rdf:li resource="urn:mozilla:skin:my_theme:browser"/> <rdf:li resource="urn:mozilla:skin:my_theme:communicator"/...
Making sure your theme works with RTL locales - Archive of obsolete content
lbar[iconsize="large"][mode="icons"] #back-button:-moz-locale-dir(rtl) { -moz-image-region: rect(0px 516px 34px 480px); } this specifies the default, left-to-right version of the button, then offers an override if the user's interface is being rendered in right-to-left mode.
Theme changes in Firefox 3.5 - Archive of obsolete content
hat change, transparent windows also have a shadow by default.
Theme changes in Firefox 3 - Archive of obsolete content
serve as a how-to guide for updating themes.
Theme changes in Firefox 4 - Archive of obsolete content
chrome/communicator/* /my_theme/chrome/global/* /my_theme/chrome/mozapps/* /my_theme/chrome.manifest /my_theme/icon.png /my_theme/install.rdf /my_theme/preview.png note: for more information (and how to package into a jar) consult creating a skin for firefox which still mostly applies.
Developing cross-browser and cross-platform pages - Archive of obsolete content
thor then uses different functions (aka code branching) or points the user to different pages (aka site branching) or web content.
Summary of Changes - Archive of obsolete content
01 object non-standard marquee html 4.01 div plus scripting non-standard bgsound html 4.01 object proprietary or deprecated feature w3c feature or recommended replacement ie5+ id_attribute_value document.all.id_attribute_value document.all[id_attribute_value] dom level 2: document.getelementbyid(id_attribute_value) ie5+ formname.inputname.value dom level 1: document.forms["formname"].inputname.value ie5+ inputname.value dom level 1: document.forms["formname"].inputname.value ie5+ formctrlname dom level 1: document.forms["formname"].formctrlname ie5+ document.forms(0) dom level 1: document.forms[0] ie elemref.innertext dom level 1 (core) in...
-moz-border-bottom-colors - Archive of obsolete content
e: collapse.
-moz-border-left-colors - Archive of obsolete content
pse: collapse.
-moz-border-right-colors - Archive of obsolete content
se: collapse.
-moz-border-top-colors - Archive of obsolete content
apse: collapse.
-ms-flow-from - Archive of obsolete content
the -ms-flow-from css property is a microsoft extension that gets or sets a value identifying a region container in the document that accepts the content flow from the data source.
-ms-flow-into - Archive of obsolete content
the -ms-flow-into css property is a microsoft extension that gets or sets a value identifying an iframe container in the document that serves as the region's data source.
-ms-scrollbar-3dlight-color - Archive of obsolete content
ft edges of the scroll box and scroll arrows of a scroll bar.
-ms-scrollbar-arrow-color - Archive of obsolete content
row-color css property is a microsoft extension that specifies the color of the arrow elements of a scroll arrow.
-ms-scrollbar-base-color - Archive of obsolete content
operty is a microsoft extension that specifies the base color of the main elements of a scroll bar.
-ms-scrollbar-darkshadow-color - Archive of obsolete content
-ms-scrollbar-darkshadow-color css property is a microsoft extension that specifies the color of a scroll bar's gutter.
-ms-scrollbar-face-color - Archive of obsolete content
css property is a microsoft extension that specifies the color of the scroll box and scroll arrows of a scroll bar.
-ms-scrollbar-highlight-color - Archive of obsolete content
oll box, and the scroll arrows of a scroll bar.
-ms-scrollbar-shadow-color - Archive of obsolete content
right edges of the scroll box and scroll arrows of a scroll bar.
-ms-scrollbar-track-color - Archive of obsolete content
the -ms-scrollbar-track-color css property is a microsoft extension that specifies the color of the track element of a scrollbar.
::-ms-clear - Archive of obsolete content
izing color cursor display (values block, inline-block, none) @font-face font-size font-style font-weight height margin-bottom margin-left margin-right margin-top opacity outline-color outline-style outline-width padding-bottom padding-left padding-right padding-top transform transform-origin visibility width syntax ::-ms-clear example html <form> <label for="firstname">first name:</label> <input type="text" id="firstname" name="firstname" placeholder="first name"> <br> <label for="lastname">last name:</label> <input type="text" id="lastname" name="lastname" placeholder="second name"> </form> css input, label { display: block; } input[type=text]::-ms-clear { color: red; /* this sets the cross color as red.
Introduction - Archive of obsolete content
nly begins to come to light, however, when the xml document can interact closely with other javascript.
E4X Tutorial - Archive of obsolete content
led by default for chrome in firefox 17, and removed in firefox 18.
Date.prototype.toLocaleFormat() - Archive of obsolete content
information and migration help.
ECMAScript 2016 to ES.Next support in Mozilla - Archive of obsolete content
literals and rest parameters (firefox 55) for await...of (firefox 57) global_objects/sharedarraybuffer (firefox 57, with flags) global_objects/promise/finally (firefox 58) global_objects/regexp/dotall (not yet implemented; in other browsers) regexp lookbehind assertions (not yet implemented; in other browsers) regexp unicode property escapes (not yet implemented; in other browsers) regexp named capture groups (not yet implemented; in other browsers) ecmascript 2019 array.flat() (firefox 62) array.flatmap() (firefox 62) object.fromentries() (firefox 63) string.trimstart() and string.trimend() (firefox 61) optional catch binding (firefox 58) function.tostring() revision (firefox 54) symbol.description (firefox 63) well-formed json.stringify() (firefox 64) ecmascript 2020 t...
Debug.msTraceAsyncCallbackStarting - Archive of obsolete content
asynccallbackstarting(asyncoperationid) parameters asyncoperationid the id associated with the asynchronous operation.
Enumerator - Archive of obsolete content
non-standard.
Error.description - Archive of obsolete content
ments supported in the following document modes: quirks, internet explorer 6 standards, internet explorer 7 standards, internet explorer 8 standards, internet explorer 9 standards, internet explorer 10 standards, internet explorer 11 standards.
Error.number - Archive of obsolete content
supported in the following document modes: quirks, internet explorer 6 standards, internet explorer 7 standards, internet explorer 8 standards, internet explorer 9 standards, internet explorer 10 standards, internet explorer 11 standards.
ScriptEngine() - Archive of obsolete content
the scriptengine function gets the name of the scripting language in use.
New in JavaScript 1.7 - Archive of obsolete content
plication/javascript;version=1.7"></script> when using the javascript shell, you need to set the version you wish to use using the -version 170 switch on the command line or using the version() function: version(170); the features that require the use of the new keywords "yield" and "let" require you to specify version 1.7 because existing code might use those keywords as variable or function names.
New in JavaScript 1.8 - Archive of obsolete content
efine it as "javascript1.8".
handler.enumerate() - Archive of obsolete content
new proxy(target, { enumerate(target) { } }); parameters the following parameter is passed to the enumerate method.
JavaObject - Archive of obsolete content
summary core object the type of a wrapped java object accessed from within javascript code.
Sharp variables in JavaScript - Archive of obsolete content
ign primitives (including strings) to sharp variables.
Developing Mozilla XForms - Archive of obsolete content
debugging always start with a debug build of the xforms and the schema-validation extensions.
XForms Alert Element - Archive of obsolete content
alert element's message can also be displayed immediately after the containing form control element in the xforms document's layout.
XForms - Archive of obsolete content
by the w3c.
Correctly Using Titles With External Stylesheets - Archive of obsolete content
et has been selected or not.
Fixing Incorrectly Sized List Item Markers - Archive of obsolete content
t will prevent the validation of any stylesheet that contains it.
Parsing microformats in JavaScript - Archive of obsolete content
parentnode the property's parent node.
RDF in Fifty Words or Less - Archive of obsolete content
kmarks.
Obsolete: XPCOM-based scripting for NPAPI plugins - Archive of obsolete content
pe"> <script language="javascript"> var embed = document.embeds[0]; embed.nativemethod(); </script> how to build and install having the built mozilla tree is probably not necessary, but building the plugin with a scriptable instance interface will require mozilla headers and the xpcom compatible idl compiler -- xpidl.exe.
Desktop gamepad controls - Game development
yerx, playery); requestanimationframe(draw); } in this case, we are checking the four d-pad buttons (0-3) and the a button (11).
Mobile touch controls - Game development
re javascript.
Implementing controls using the Gamepad API - Game development
() {}, buttonpressed: function() {}, buttons: [], buttonscache: [], buttonsstatus: [], axesstatus: [] }; the buttons array contains the xbox 360 button layout: buttons: [ 'dpad-up','dpad-down','dpad-left','dpad-right', 'start','back','axis-left','axis-right', 'lb','rb','power','a','b','x','y', ], this can be different for other types of gamepads like the ps3 controller (or a no-name, generic one), so you have to be careful and not just assume the button you're expecting will be the same button you'll actually get.
asm.js - Game development
asm.js is a specification defining a subset of javascript that is highly optimizable.
Animations and tweens - Game development
ndividual frames.
Buttons - Game development
ng the button to the game adding the new button to the game is done by using the add.button method.
ARPA - MDN Web Docs Glossary: Definitions of Web-related terms
.arpa (address and routing parameter area) is a top-level domain used for internet infrastructure purposes, especially reverse dns lookup (i.e., find the domain name for a given ip address).
Boolean - MDN Web Docs Glossary: Definitions of Web-related terms
ditional) { console.log("boolean conditional resolved to true"); } else { console.log("boolean conditional resolved to false"); } /* javascript for loop */ for (control variable; boolean conditional; counter) { // code to execute repeatedly if the conditional is true } for (var i=0; i < 4; i++) { console.log("i print only when the boolean conditional is true"); } the boolean value is named after english mathematician george boole, who pioneered the field of mathematical logic.
CORS-safelisted request header - MDN Web Docs Glossary: Definitions of Web-related terms
tain a cors-unsafe request header byte: 0x00-0x1f (except 0x09 (ht)), "():<>?@[\]{}, and 0x7f (del).
CORS - MDN Web Docs Glossary: Definitions of Web-related terms
true.
Card sorting - MDN Web Docs Glossary: Definitions of Web-related terms
card sorting is a simple technique used in information architecture whereby people involved in the design of a website (or other type of product) are invited to write down the content / services / features they feel the product should contain, and then organize those features into categories or groupings.
Certificate authority - MDN Web Docs Glossary: Definitions of Web-related terms
a certificate authority (ca) is an organization that signs digital certificates and their associated public keys.
Constant - MDN Web Docs Glossary: Definitions of Web-related terms
a constant is a value that the programmer cannot change, for example numbers (1, 2, 42).
Delta - MDN Web Docs Glossary: Definitions of Web-related terms
the term delta refers to the difference between two values or states.
Descriptor (CSS) - MDN Web Docs Glossary: Definitions of Web-related terms
a css descriptor defines the characteristics of an at-rule.
Digital certificate - MDN Web Docs Glossary: Definitions of Web-related terms
a digital certificate is a data file that binds a publicly known cryptographic key to an organization.
Distributed Denial of Service - MDN Web Docs Glossary: Definitions of Web-related terms
ack against a specified target.
Expando - MDN Web Docs Glossary: Definitions of Web-related terms
expando properties are properties added to dom nodes with javascript, where those properties are not part of the object's dom specification: window.document.foo = 5; // foo is an expando the term may also be applied to properties added to objects without respecting the object's original intent, such as non-numeric named properties added to an array.
Flexbox - MDN Web Docs Glossary: Definitions of Web-related terms
flexbox is the commonly-used name for the css flexible box layout module, a layout model for displaying items in a single dimension — as a row or as a column.
HMAC - MDN Web Docs Glossary: Definitions of Web-related terms
hmac is a protocol used for cryptographically authenticating messages.
HTTP/3 - MDN Web Docs Glossary: Definitions of Web-related terms
http/3 is the upcoming major revision of the http network protocol, succeeding http/2.
HTTP header - MDN Web Docs Glossary: Definitions of Web-related terms
re part of any specification: general header: headers applying to both requests and responses but with no relation to the data eventually transmitted in the body.
IANA - MDN Web Docs Glossary: Definitions of Web-related terms
iana (internet assigned numbers authority) is a subsidiary of icann charged with recording and/or assigning domain names, ip addresses, and other names and numbers used by internet protocols.
ICANN - MDN Web Docs Glossary: Definitions of Web-related terms
icann (internet corporation for assigned names and numbers) is an international nonprofit that maintains the domain name system and the record of ip addresses.
Internet - MDN Web Docs Glossary: Definitions of Web-related terms
the internet is a worldwide network of networks that uses the internet protocol suite (also named tcp/ip from its two most important protocols).
JavaScript - MDN Web Docs Glossary: Definitions of Web-related terms
commonly-used languages, owing to the recent growth and performance improvement of apis available in browsers.
Local scope - MDN Web Docs Glossary: Definitions of Web-related terms
local scope is a characteristic of variables that makes them local (i.e., the variable name is only bound to its value within a scope which is not the global scope).
Local variable - MDN Web Docs Glossary: Definitions of Web-related terms
a variable whose name is bound to its value only within a local scope.
Localization - MDN Web Docs Glossary: Definitions of Web-related terms
lowercase) adaptation of idioms (e.g., "raining cats and dogs" makes no sense when translated literally) use of register (e.g., in japanese respectful speech differs exceptionally from casual speech) number format (e.g., 10 000,00 in germany vs.
MVC - MDN Web Docs Glossary: Definitions of Web-related terms
m (model-view-viewmodel), mvp (model-view-presenter), and mvw (model-view-whatever).
Media (CSS) - MDN Web Docs Glossary: Definitions of Web-related terms
), the term media refers to the destination to which the document is to be drawn by the rendering engine.
Mutable - MDN Web Docs Glossary: Definitions of Web-related terms
mutable is a type of variable that can be changed.
Parse - MDN Web Docs Glossary: Definitions of Web-related terms
parsing means analyzing and converting a program into an internal format that a runtime environment can actually run, for example the javascript engine inside browsers.
Prefetch - MDN Web Docs Glossary: Definitions of Web-related terms
en the user requests it.
RGB - MDN Web Docs Glossary: Definitions of Web-related terms
red green blue (rgb) is a color model that represents colors as mixtures of three underlying components (or channels), namely, red, green, and blue.
Search engine - MDN Web Docs Glossary: Definitions of Web-related terms
nts it to users who are looking for specific information.
Semantics - MDN Web Docs Glossary: Definitions of Web-related terms
css.
Server - MDN Web Docs Glossary: Definitions of Web-related terms
human clients.
TCP handshake - MDN Web Docs Glossary: Definitions of Web-related terms
tcp (transmission control protocol) is a transport layer host-to-host protocol for connection-oriented communication between two computers on an ip network.
Transmission Control Protocol (TCP) - MDN Web Docs Glossary: Definitions of Web-related terms
l connections between two computers.
URL - MDN Web Docs Glossary: Definitions of Web-related terms
uniform resource locator (url) is a text string that specifies where a resource (such as a web page, image, or video) can be found on the internet.
Web standards - MDN Web Docs Glossary: Definitions of Web-related terms
this non-exhaustive list gives you an idea of which standards websites and network systems must conform to: ietf (internet engineering task force): internet standards (std), which among other things govern set-up and use of uris, http, and mime w3c: specifications for markup language (e.g., html), style definitions (i.e., css), dom, accessibility iana (internet assigned numbers authority): name and number registries ecma intl.: scripting standards, most prominently for javascript iso (international organization for standardization): standards governing a diverse array of aspects, including character encodings, website management, and user-interface design learn more general knowledge web standards on wikipedia ...
Array - MDN Web Docs Glossary: Definitions of Web-related terms
).
minification - MDN Web Docs Glossary: Definitions of Web-related terms
minification is the process of removing unnecessary or redundant data without affecting how a resource is processed by the browser.
Property (JavaScript) - MDN Web Docs Glossary: Definitions of Web-related terms
a javascript property is a characteristic of an object, often describing attributes associated with a data structure.
Mobile accessibility - Learn web development
laces around mdn (see above links).
Fundamental CSS comprehension - Learn web development
orked through all the articles in this module.
Type, class, and ID selectors - Learn web development
r work.
Test Your Skills: Fundamental layout comprehension - Learn web development
section at the bottom of this page.
Beginner's guide to media queries - Learn web development
look at the final example at different widths you can see how the design responds and works as a single column, two columns, or three columns, depending on the available width.
Practical positioning examples - Learn web development
g and closing <script> tags (you'll find these below the html content): var tabs = document.queryselectorall('.info-box li a'); var panels = document.queryselectorall('.info-box article'); for(i = 0; i < tabs.length; i++) { var tab = tabs[i]; settabhandler(tab, i); } function settabhandler(tab, tabpos) { tab.onclick = function() { for(i = 0; i < tabs.length; i++) { tabs[i].classname = ''; } tab.classname = 'active'; for(i = 0; i < panels.length; i++) { panels[i].classname = ''; } panels[tabpos].classname = 'active-panel'; } } this code does the following: first we save a reference to all the tabs and all the panels in two variables called tabs and panels, so we can easily do things to them later on.
Responsive design - Learn web development
font size for the heading once, rather than set it up for mobile and redefine it in the media queries.
How do you make sure your website works properly? - Learn web development
few interesting things: grades go from a to f.
What do common web layouts contain? - Learn web development
have much experience, starting out with a blank page might be a bit scary.
How can we design for all types of users? - Learn web development
isabled images to save bandwidth, especially on mobile devices (see below).
What software do I need to build a website? - Learn web development
n online text editor: uploading files on the web when your website is ready for public viewing, you'll have to upload your webpages to your web server.
How do you set up a local testing server? - Learn web development
allation has finished.
Example 3 - Learn web development
this is the third example that explain how to build custom form widgets.
Example 4 - Learn web development
this is the fourth example that explain how to build custom form widgets.
Example 5 - Learn web development
this is the last example that explain how to build custom form widgets.
Marking up a letter - Learn web development
of headings and paragraphs, with the following exception.
Graceful asynchronous programming with Promises - Learn web development
se chain.
JavaScript building blocks - Learn web development
uts.
Drawing graphics - Learn web development
really want the display to update on each frame to show the updated view, with an ideal refresh rate of 60 frames per second so that movement appears nice and smooth to the human eye.
Introduction to web APIs - Learn web development
ations (see the notifications api) or vibration hardware (see the vibration api).
Third-party APIs - Learn web development
on is at https://developer.nytimes.com/.
JavaScript First Steps - Learn web development
f strings, let's move up a gear and start thinking about what useful operations we can do on strings with built-in methods, such as finding the length of a text string, joining and splitting strings, substituting one character in a string for another, and more.
Object building practice - Learn web development
y varying this number to see the effect it has.
Aprender y obtener ayuda - Learn web development
t is often fairly obvious what to search for.
Multimedia: video - Learn web development
previous overview: performance next as we learned in the previous section, media, namely images and video, account for over 70% of the bytes downloaded for the average website.
Ember interactivity: Events, classes and state - Learn web development
of the current items inside the array (accessed conveniently using spread syntax), plus the new todo.
Understanding client-side JavaScript frameworks - Learn web development
eature of vue called computed properties.
Handling common accessibility problems - Learn web development
ear icon that will appear, then select css > disable all styles.
Handling common JavaScript problems - Learn web development
easiest way to give babel a try is to use the online version, which allows you to enter your source code on the left, and outputs a transpiled version on the right.
Introducing a complete toolchain - Learn web development
on is required for our tools to work properly.
Testopia
ia 2.4 this version supports bugzilla 3.6.
Building SpiderMonkey with UBSan
1.
Debugging JavaScript
er" keyword you can halt venkman or chromebug at a line using the keyword debugger.
HTTP logging
g (we use it in the examples above).
Debugging
assorted tools that will help you debug your code or web site.
Makefile - targets
this article lists possible targets provided by the makefile.
Installing headers using EXPORTS
and idl files are copied during the export phase of the build.
OS TARGET
os_target is typically the output of the 'uname -s' command on the target platform.
Updating NSPR or NSS in mozilla-central
ozilla hg server rejects accidental changes/forking, if the required keywords are missing in the commit comment.) if nspr or nss must be upgraded to a new static tag, follow this procedure: before starting, make sure your local repository is updated to mozilla-central tip and that there are no local changes: $ hg status -mard pull the new sources $ python client.py update_nspr nspr_tag_name or $ python client.py update_nss nss_tag_name if you update a branch older than mozilla 17 (without the change from bug 782784), you must manually add a dummy change (add or remove a blank line) to force a rebuild of nspr: mozilla/nsprpub/config/prdepend.h or nss: mozilla/security/nss/coreconf/coreconf.dep check directory mozilla/nsprpub/patches/ for patches that need to be ap...
Interface Compatibility
taken lightly, however: especially if a change is likely to affect many extensions, the change should try to maintain backwards compatibility by using optional/default parameters or other javascript techniques.
Reviewer Checklist
ure entirely in case bugs are found later in the release cycle.
Frame script environment
sendsyncmessage() send a synchronous message to chrome.
Limitations of frame scripts
to the same file access rules placed on remote content.
Frame script environment
sendsyncmessage() send a synchronous message to chrome.
Limitations of frame scripts
e disk from a frame script, in particular, the profile directory.
Message manager overview
different types of message manager, how to access them, and at a high level, what sorts of things you can use them for.
Message manager overview
processes.
Performance best practices for Firefox front-end engineers
nous reflow.
Firefox UI considerations for web developers
k at how to influence the appearance of your site in firefox user interface elements such as the top sites box.
Using the Browser API
Mozilla › Gecko › Chrome › API › Browser API › Using
t least download the repo and refer to the code as you read the sections below.
HTMLIFrameElement.getStructuredData()
and then loading up a page that contains microdata (such as the website of british alt-country band salter cane) will result in a json object being returned, along the lines of: { "items": [ { "type":["http://microformats.org/profile/hcard"], "properties":{"fn":["chris askew"], "n":[ { "properties": { "given-name":["chris"], "family-name":["askew"], ...
mozbrowseractivitydone
vent.details.success) { console.log('activity completed successfully'); } else { console.log('activity not completed successfully'); } }); related events mozbrowserclose mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserloadend mozbrowserloadstart mozbrowserlocationchange mozbrowseropenwindow mozbrowsersecuritychange mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
mozbrowserasyncscroll
ventlistener("mozbrowserasyncscroll", function( event ) { console.log("the scroll top position of the document is:" + event.details.top + "px"); }); related events mozbrowserclose mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserloadend mozbrowserloadstart mozbrowserlocationchange mozbrowseropenwindow mozbrowsersecuritychange mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
mozbrowseraudioplaybackchange
ser = document.queryselector("iframe"); browser.addeventlistener("mozbrowseraudioplaybackchange", function(event) { console.log(event.details); }); related events mozbrowserclose mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserloadend mozbrowserloadstart mozbrowserlocationchange mozbrowseropenwindow mozbrowsersecuritychange mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
mozbrowsercaretstatechanged
= document.queryselector("iframe"); browser.addeventlistener("mozbrowsercaretstatechanged", function( event ) { // do stuff with event.details }); related events mozbrowserclose mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserloadend mozbrowserloadstart mozbrowserlocationchange mozbrowseropenwindow mozbrowsersecuritychange mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
mozbrowserclose
tener("mozbrowserclose", function() { console.log("browser window has been closed; iframe will be destroyed."); }); related events mozbrowserasyncscroll mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserloadend mozbrowserloadstart mozbrowserlocationchange mozbrowseropenwindow mozbrowsersecuritychange mozbrowsershowmodalprompt mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
mozbrowserdocumentfirstpaint
; browser.addeventlistener("mozbrowserdocumentfirstpaint", function() { console.log("first content painted."); }); related events mozbrowserasyncscroll mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserloadend mozbrowserloadstart mozbrowserlocationchange mozbrowseropenwindow mozbrowsersecuritychange mozbrowsershowmodalprompt mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
mozbrowsererror
owser.addeventlistener("mozbrowsererror", function( event ) { console.log("an error occurred:" + event.detail); }); related events mozbrowserasyncscroll mozbrowserclose mozbrowsercontextmenu mozbrowsericonchange mozbrowserloadend mozbrowserloadstart mozbrowserlocationchange mozbrowseropenwindow mozbrowsersecuritychange mozbrowsershowmodalprompt mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
mozbrowserfindchange
ly highlighted: " + event.details.activematchordinal + " out of " + event.details.numberofmatches); }); related events mozbrowserasyncscroll mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserloadend mozbrowserloadstart mozbrowserlocationchange mozbrowseropenwindow mozbrowsersecuritychange mozbrowsershowmodalprompt mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
mozbrowserfirstpaint
e"); browser.addeventlistener("mozbrowserfirstpaint", function(event) { console.log("first content painted."); }); related events mozbrowserasyncscroll mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserloadend mozbrowserloadstart mozbrowserlocationchange mozbrowseropenwindow mozbrowsersecuritychange mozbrowsershowmodalprompt mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
mozbrowsericonchange
ener("mozbrowsericonchange", function( event ) { console.log("the url of the new favicon is:" + event.details.href); }); related events mozbrowserasyncscroll mozbrowserclose mozbrowsercontextmenu mozbrowsererror mozbrowserloadend mozbrowserloadstart mozbrowserlocationchange mozbrowseropenwindow mozbrowsersecuritychange mozbrowsershowmodalprompt mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
mozbrowserloadend
ail.backgroundcolor; }); browser.addeventlistener('mozbrowserloadend',function() { stopreload.textcontent = 'r'; }); related events mozbrowserasyncscroll mozbrowserclose mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserloadstart mozbrowserlocationchange mozbrowseropenwindow mozbrowsersecuritychange mozbrowsershowmodalprompt mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
mozbrowserloadstart
oad.textcontent = 'x'; }); browser.addeventlistener('mozbrowserloadend',function() { stopreload.textcontent = 'r'; }); related events mozbrowserasyncscroll mozbrowserclose mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserloadend mozbrowserlocationchange mozbrowseropenwindow mozbrowsersecuritychange mozbrowsershowmodalprompt mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
mozbrowserlocationchange
tor("iframe"); browser.addeventlistener('mozbrowserlocationchange', function (event) { urlbar.value = event.detail.url; }); related events mozbrowserasyncscroll mozbrowserclose mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserloadend mozbrowserloadstart mozbrowseropenwindow mozbrowsersecuritychange mozbrowsershowmodalprompt mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
mozbrowsermanifestchange
tlistener("mozbrowsermanifestchange", function(event) { console.log("new manifest url: " + event.details.href); }); related events mozbrowserasyncscroll mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserloadend mozbrowserloadstart mozbrowserlocationchange mozbrowseropenwindow mozbrowsersecuritychange mozbrowsershowmodalprompt mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
mozbrowseropentab
istener("mozbrowseropentab", function( event ) { console.log("a new document has opened containing the content at " + event.details.url + "."); }); related events mozbrowserasyncscroll mozbrowserclose mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserloadend mozbrowserloadstart mozbrowserlocationchange mozbrowsersecuritychange mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
mozbrowserresize
ener("mozbrowserresize", function( event ) { console.log("the new window size is " + event.details.width + " x " + event.details.height + "."); }); related events mozbrowserasyncscroll mozbrowserclose mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserloadend mozbrowserloadstart mozbrowserlocationchange mozbrowsersecuritychange mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
mozbrowserscroll
nction( event ) { console.log("the new scroll position is " + event.details.left + " across and " + event.details.top + "down."); }); related events mozbrowserasyncscroll mozbrowserclose mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserloadend mozbrowserloadstart mozbrowserlocationchange mozbrowsersecuritychange mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
mozbrowserscrollareachanged
achanged", function( event ) { console.log("the new scroll area is " + event.details.width + " x " + event.details.height + "."); }); related events mozbrowserasyncscroll mozbrowserclose mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserloadend mozbrowserloadstart mozbrowserlocationchange mozbrowsersecuritychange mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
mozbrowserscrollviewchange
frame"); browser.addeventlistener("mozbrowserscrollviewchange", function( event ) { console.log("scrolling has " + event.details.state + "."); }); related events mozbrowserasyncscroll mozbrowserclose mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserloadend mozbrowserloadstart mozbrowserlocationchange mozbrowsersecuritychange mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
mozbrowsersecuritychange
lector("iframe"); browser.addeventlistener("mozbrowsersecuritychange", function( event ) { console.log("the ssl state is:" + event.details.state); }); related events mozbrowserasyncscroll mozbrowserclose mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserloadend mozbrowserloadstart mozbrowserlocationchange mozbrowseropenwindow mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
mozbrowserselectionstatechanged
ent.details.visible) { console.log("the current selection is visible."); } else { console.log("the current selection is not visible."); } }); related events mozbrowserasyncscroll mozbrowserclose mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserloadend mozbrowserloadstart mozbrowserlocationchange mozbrowseropenwindow mozbrowsertitlechange mozbrowserusernameandpasswordrequired ...
mozbrowsertitlechange
entlistener("mozbrowsertitlechange", function( event ) { console.log("the title of the document is:" + event.detail); }); related events mozbrowserasyncscroll mozbrowserclose mozbrowsercontextmenu mozbrowsererror mozbrowsericonchange mozbrowserloadend mozbrowserloadstart mozbrowserlocationchange mozbrowseropenwindow mozbrowsersecuritychange mozbrowsershowmodalprompt mozbrowserusernameandpasswordrequired ...
CSS -moz-bool-pref() @supports function
the -moz-bool-pref() @supports condition is available to gecko chrome and ua stylesheets to check if a boolean preference is enabled.
overflow-clip-box-block
iv> </div> css .scroll { overflow: auto; padding: 0 30px; width: 6em; border: 1px solid black; background: lime content-box; } .padding-box { overflow-clip-box-block: padding-box; } javascript function scrollsomeelements() { var elms = document.queryselectorall('.scroll'); for (i=0; i < elms.length; ++i) { elms[i].scrollleft=80; } } var elt = document.queryelementsbytagname('body')[0]; elt.addeventlistener("load", scrollsomeelements, false); result specifications this property has been proposed to the w3c csswg; it is not yet on the standard track but, if accepted, should appear in css overflow module level 3.
overflow-clip-box-inline
v> </div> css .scroll { overflow: auto; padding: 0 30px; width: 6em; border: 1px solid black; background: lime content-box; } .padding-box { overflow-clip-box-inline: padding-box; } javascript function scrollsomeelements() { var elms = document.queryselectorall('.scroll'); for (i=0; i < elms.length; ++i) { elms[i].scrollleft=80; } } var elt = document.queryelementsbytagname('body')[0]; elt.addeventlistener("load", scrollsomeelements, false); result specifications this property has been proposed to the w3c csswg; it is not yet on the standard track but, if accepted, should appear in css overflow module level 3.
overflow-clip-box
ÄÖ</span></div> </div> css .scroll { overflow: auto; padding: 0 30px; width: 6em; border: 1px solid black; background: lime content-box; } .padding-box { overflow-clip-box: padding-box; } js function scrollsomeelements() { var elms = document.queryselectorall('.scroll'); for (i=0; i < elms.length; ++i) { elms[i].scrollleft=80; } } var elt = document.queryelementsbytagname('body')[0]; elt.addeventlistener("load", scrollsomeelements, false); result specifications this property has been proposed to the w3c csswg; it is not yet on the standard track but, if accepted, should appear in css overflow module level 3.
Gecko SDK
gecko versions before 2.0, you should choose the gecko sdk version for the earliest version of mozilla you wish to target.
Geckoview-Junit Tests
e androidtest apk on your device; otherwise, 'mach geckoview-junit' will offer to install it.
How to get a process dump with Windows Task Manager
introduction when tracking down the causes of process hangs, it is often helpful to obtain a process dump while the process is experiencing a hang.
How to get a stacktrace with WinDbg
introduction sometimes you need to get a stacktrace (call stack) for a crash or hang but breakpad fails because it's a special crasher or a hang.
How to Report a Hung Firefox
steps to induce a crash are slightly different on each platform: windows on windows, the stability team has written a utility which will inject a crash into firefox which will trigger the crash reporter: download crashfirefox.exe here (source code).
IME handling guide
ple, if a user types "watasinonamaehanakanodesu", it's converted to hiragana characters, "わたしのなまえはなかのです", automatically (in the following screenshots, the composition string has a wavy underline and the only one clause is called "raw input clause").
AddonAuthor
represents a creator, developer, contributor or translator of an add-on attributes attribute type description name string the name of the person.
AddonListener
don, ) parameters addon the addon that has had a pending operation cancelled onpropertychanged() called when one or more properties of addon has changed.
API-provided widgets
an add-on, you should not set this property, and should instead include the shortcut as part of the tooltiptext you pass in yourself.
Dict.jsm
ty dictionary.
FileUtils.jsm
ds getfile() gets a file at the specified hierarchy under a nsidirectoryservice key.
Http.jsm
http.jsm http.jsm provides httprequest - a wrapper for xmlhttprequest that provides convenient and simplified api for dealing with http requests.
NetUtil.jsm
ount the number of bytes to read from the stream.
OS.File.Error
s.file.error.exists() return an error representing the fact that a file exists.
Deferred
aval); }, function(areason) { console.error('rejected - areason:', areason) } ); //deferred.resolve('aval of resolved'); deferred.reject('reject val'); return promise; } var promise_funcwithdefer = funcwithdefer(); promise_funcwithdefer.then( function(aval) { console.log('fullfilled - promise_funcwithdefer - ', aval); }, function(areason) { var refobj = {name:'promise_funcwithdefer', areason:areason}; console.error('rejected - promise_funcwithdefer - ', refobj); } ).catch( function(acatch) { console.error('caught - promise_funcwithdefer - ', acatch); throw acatch; } ); ...
Promise
fined, logerror); p.catch(logerror); debugging by design, the instant state and value of a promise cannot be inspected synchronously from code, without calling the then() method.
Services.jsm
ript scope: const {services} = chromeutils.import("resource://gre/modules/services.jsm"); then you can obtain references to services by simply accessing them from the services object exported by the code module.
Using workers in JavaScript code modules
ents.classes['@mozilla.org/threads/workerfactory;1'] .createinstance(components.interfaces.nsiworkerfactory); var worker = workerfactory.newchromeworker('script_url.js'); this will create a new chrome worker that will immediately begin to run the script at the specified url (in this case, "script_url.js").
Webapps.jsm
(aappstoregister, arunupdate) _registeractivities: function(amanifest, aapp, arunupdate) _createactivitiestounregister: function(amanifest, aapp, aentrypoint) _unregisteractivitiesforapps: function(aappstounregister) _unregisteractivities: function(amanifest, aapp) _processmanifestforids: function(aids, arunupdate) observe: function(asubject, atopic, adata) addmessagelistener: function(amsgnames, aapp, amm) removemessagelistener: function(amsgnames, amm) formatmessage: function(adata) receivemessage: function(amessage) getappinfo: function getappinfo(aappid) broadcastmessage: function broadcastmessage(amsgname, acontent) registerupdatehandler: function(ahandler) unregisterupdatehandler: function(ahandler) notifyupdatehandlers: function(aapp, amanifest, azippath) _getappdir: fun...
JavaScript code modules
s the browser console or a file on disk.
Bootstrapping a new locale
able-compile-environment" >> .mozconfig echo "ac_add_options --enable-application=browser" >> .mozconfig make -f client.mk configure create a language pack first, we'll create a build directory.
Localization and Plurals
1, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, … plural rule #1 (2 forms) families: germanic (danish, dutch, english, faroese, frisian, german, norwegian, swedish), finno-ugric (estonian, finnish, hungarian), language isolate (basque), latin/greek (greek), semitic (hebrew), romanic (italian, portuguese, spanish, catalan), vietnamese is 1: 1 everything else: 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, … plural rule #2 (2 forms) families: romanic (french, brazilian portuguese), lingala is 0 or 1: 0, 1 everything else: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,...
SVN for Localizers
h every change made to each file.
Setting up the infrastructure
staging server you can also choose to set up a cronjob that will run compile-mo.sh every n minutes.
MathML3Testsuite
mode etc) or for other undefined behaviors (attribute href for example).
MathML Torture Test
mathml torture test html content <p> render mathematics with: <select name="mathfont" id="mathfont"> <option value="default" selected="selected">default fonts</option> <option value="asana">asana</option> <option value="cambria">cambria</option> <option value="dejavu">dejavu</option> <option value="latinmodern">latin modern</option> <option value="libertinus">libertinus</option> <option value="lucidabright">lucida bright</option> <option value="minion">minion</option> <option value="stixtwo">stix two</option> <option value="texgyrebonum">tex gyre bonum</option> <option value="texgyrepagella">tex gyre pagella</option> <option value="texgyreschola">tex gyre schola</option> <option value="texgyretermes">tex gyre termes</option> ...
Mozilla Port Blocking
"); blocked ports ports blocked by default in mozilla: port service 1 tcpmux 7 echo 9 discard 11 systat 13 daytime 15 netstat 17 qotd 19 chargen 20 ftp data 21 ftp control 22 ssh 23 telnet 25 smtp 37 time 42 name 43 nicname 53 domain 77 priv-rjs 79 finger 87 ttylink 95 supdup 101 hostriame 102 iso-tsap 103 gppitnp 104 acr-nema 109 pop2 110 pop3 111 sunrpc 113 auth 115 sftp 117 uucp-path 119 nntp ...
Mozilla Development Tools
vs version control system.
Mozilla projects on GitHub
ositories within the mozilla github organization.
Mozilla Style System
yle set provides the api managing the rule processors and for creating style contexts.
Mozilla Style System Documentation
he following document: <doc> <title>a few quotes</title> <para class="emph">benjamin franklin said that <quote>"a penny saved is a penny earned."</quote></para> <para>franklin d.
Mozilla
stuff about the mozilla namespace.
Activity Monitor, Battery Status Menu and top
e but prominent, and therefore worth understanding — even though it's not much use for profiling applications.
Leak Gauge
volving documents, window objects, and docshells.
Memory Profiler
ct the memoryprofiler tab.
Power profiling overview
instructions are being executed.
Profiling with Instruments
instruments can be used for memory profiling and for statistical profiling.
Profiling with Xperf
ories exist; if they don't, it's a silent error.) quick start all these tools will live, by default, in c:\program files\microsoft windows performance toolkit.
tools/power/rapl
( 0.20 + 0.10 + 1.67) + 3.44 w #08 5.17 w = 1.76 ( 0.07 + 0.08 + 1.60) + 3.41 w #09 5.17 w = 1.76 ( 0.09 + 0.08 + 1.58) + 3.42 w #10 8.13 w = 4.40 ( 1.55 + 0.11 + 2.74) + 3.73 w things to note include the following.
Preference reference
xt.loadinbackgroundbrowser.search.context.loadinbackground controls whether a search from the context menu with "search <search engine> for <selected text>" opening a new tab will give focus to it and load it in the foreground or keep focus on the current tab and open it in the background.browser.urlbar.formatting.enabledthe preference browser.urlbar.formatting.enabled controls whether the domain name including the top level domain is highlighted in the address bar by coloring it black and the other parts grey.browser.urlbar.trimurlsthe preference browser.urlbar.trimurls controls whether the protocol http and the trailing slash behind domain name (if the open page is exactly the domain name) are hidden.dom.event.clipboardevents.enableddom.event.clipboardevents.enabled lets websites get notific...
Preferences system
n: getting started | examples | troubleshooting reference: prefwindow | prefpane | preferences | preference | xul attributes use code for a typical preferences window may look like this: <prefwindow id="apppreferences" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <prefpane id="pane1" label="&pane1.title;"> <preferences> <preference id="pref1" name="pref.name" type="bool"/> </preferences> ..
McCoy
your add-on in order to verify the update manifests applications need to already have information from you for how to verify it.
Midas editor module security preferences
estore the default settings when you're done!
NSPR release procedure
sprpub/pr/include/prinit.h.
NSPR's Position On Abrupt Thread Termination
in the confines of a process (or similar abstractions in other environments).
IPC Semaphores
this chapter describes the nspr api for using interprocess communication semaphores.
Logging
log enable nspr logging for application programs.
PRDescIdentity
ment a desired protocol.
PRIntervalTime
overflow.
PRLogModuleInfo
the prlogmoduleinfo structure controls logging from within your application.
PRSockOption
enumeration type used in the option field of prsocketoptiondata to form the name portion of a name-value pair.
PRStaticLinkTable
other clients can access static or dynamic libraries transparently.
PR_AcceptRead
ed; the read will time out after the timeout interval elapses.
PR_Assert
writes arguments to the log and terminates execution.
PR_CALLBACK
description functions that are implemented in an application (or shared library) that are intended to be called from another shared library (such as nspr) must be declared with the pr_callback attribute.
PR_CloseSharedMemory
closes a shared memory segment identified by name.
PR_DetachSharedMemory
unmaps a shared memory segment identified by name.
PR_GetHostByAddr
s pr_success.
PR_NETDB_BUF_SIZE
recommended size to use when specifying a scratch buffer for pr_gethostbyname, pr_gethostbyaddr, pr_getprotobyname, or pr_getprotobynumber.
PR_NEW
allocates memory of a specified size from the heap.
PR_NEWZAP
allocates and clears memory from the heap for an instance of a given type.
Building NSS
unit testing nss contains extensive unit tests.
HTTP delegation
s might be a full implementation of a http client.
HTTP delegation
s might be a full implementation of a http client.
Introduction to Network Security Services
wo new shared libraries for the platforms hp-ux for parisc cpus and solaris for (ultra)sparc (not x86) cpus.
4.3 Release Notes
pkixverify) pk11token.needslogin method (see needslogin) support hmacsha256, hmacsha384, and hmacsha512 (see hmactest.java) support for all nss 3.12 initialization options (see initializationvalues) new ssl error codes (see http://mxr.mozilla.org/security/sour...util/sslerrs.h) ssl_error_unsupported_extension_alert ssl_error_certificate_unobtainable_alert ssl_error_unrecognized_name_alert ssl_error_bad_cert_status_response_alert ssl_error_bad_cert_hash_value_alert new tls cipher suites (see http://mxr.mozilla.org/security/sour...sslsocket.java): tls_rsa_with_camellia_128_cbc_sha tls_dhe_dss_with_camellia_128_cbc_sha tls_dhe_rsa_with_camellia_128_cbc_sha tls_rsa_with_camellia_256_cbc_sha tls_dhe_dss_with_camellia_256_cbc_sha tls_dhe_rsa...
NSS Key Log Format
key logs can be written by nss so that external programs can decrypt tls connections.
NSS Memory allocation
are no arenas in the free list that are large enough to satisfy the request.
NSS_3.12.2_release_notes.html
449334: pk12util has duplicate options letters bug 449725: signver is still using static libraries.
NSS 3.12.5 release_notes
rametersstr other new functions in secmod.h: secmod_getskipfirstflag secmod_getdefaultmoddbflag in prlink.h nss_securememcmp port_loadlibraryfromorigin modified functions sgn_update (see cryptohi.h) the parameter "input" of this function is changed from unsigned char * to const unsigned char *.
NSS 3.12.9 release notes
expand partial private keys.
NSS 3.14.3 release notes
tographic module ("softoken") version 3.14.3 or later.
NSS 3.14 release notes
sent in the initial clienthello.
NSS 3.15.4 release notes
ented ocsp server functionality for testing purposes (httpserv utility).
NSS 3.16.1 release notes
o the iana-assigned value 21.
NSS 3.18.1 release notes
ng ca certificate was removed after discussion about it in the mozilla.dev.security.policy forum.
NSS 3.24 release notes
reserverwithcertchain deprecate the nss_findcertkeatype function, as it reports a misleading value for certificates that might be used for signing rather than key exchange.
NSS 3.28.3 release notes
l attribute.
NSS 3.28.5 release notes
st flags: websites technically constrained to: gov.tr, k12.tr, pol.tr, mil.tr, tsk.tr, kep.tr, bel.tr, edu.tr, org.tr the version number of the updated root ca list has been set to 2.14.
NSS 3.28 release notes
with support for additional elliptic curves (the nss_ecc_more_than_suite_b option, bug 1253912).
NSS 3.29.1 release notes
l attribute.
NSS 3.30.2 release notes
rust flags: websites technically constrained to: gov.tr, k12.tr, pol.tr, mil.tr, tsk.tr, kep.tr, bel.tr, edu.tr, org.tr the version number of the updated root ca list has been set to 2.14 (the version numbers 2.12 and 2.13 for the root ca list have been skipped.) bugs fixed in nss 3.30.2 bug 1350859 - march 2017 batch of root ca changes bug 1349705 - implemented domain name constraints for ca: tubitak kamu sm ssl kok sertifikasi - surum 1 compatibility nss 3.30.2 shared libraries are backward compatible with all older nss 3.x shared libraries.
NSS 3.32 release notes
ingerprint: 6e:a5:47:41:d0:04:66:7e:ed:1b:48:16:63:4a:a3:a7:9e:6e:4b:96:95:0f:82:79:da:fc:8d:9b:d8:81:21:37 cn = utn-userfirst-object sha-256 fingerprint: 6f:ff:78:e4:00:a7:0c:11:01:1c:d8:59:77:c4:59:fb:5a:f9:6a:3d:f0:54:08:20:d0:f4:b8:60:78:75:e5:8f bugs fixed in nss 3.32 nss versions 3.28.x, 3.29.x.
NSS 3.34 release notes
hasn't yet been initialized with any non-empty or empty password, the text "database needs user init" will be included in the listing.
NSS 3.45 release notes
tions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_45_rtm/src/ other releases are available in nss releases.
NSS 3.47 release notes
debug statement in tls13con.c bug 1579060 - mozilla::pkix tag definitions for issueruniqueid and subjectuniqueid shouldn't have the constructed bit set bug 1583068 - nss 3.47 should pick up fix from bug 1575821 (nspr 4.23) bug 1152625 - support aes hw acceleration on armv8 bug 1549225 - disable dsa signature schemes for tls 1.3 bug 1586947 - pk11_importandreturnprivatekey does not store nickname for ec keys bug 1586456 - unnecessary conditional in pki3hack, pk11load and stanpcertdb bug 1576307 - check mechanism param and param length before casting to mechanism-specific structs bug 1577953 - support longer (up to rfc maximum) hkdf outputs bug 1508776 - remove refcounting from sftk_freesession (cve-2019-11756) bug 1494063 - support tls exporter in tstclnt and selfserv bug 1581024 - ...
nss tech note3
xtension is present and has the value true, then this cert is taken to be a ca cert.
nss tech note5
program illustrating this hmac include headers #include "nss.h" #include "pk11pub.h" make sure nss is initialized.the simplest init function, in case you don't need a nss database is nss_nodb_init(".") choose a hmac mechanism.
nss tech note6
libfreebl_64fpu_3.so, libfreebl_32int_3.sl, libfreebl_32fpu_3.sl; or 2.
Notes on TLS - SSL 3.0 Intolerant Servers
or drops the connection, check to see if the preference option edit | preferences | privacy and security | ssl | enable tls is turned on.
PKCS11 module installation
this article is specific to firefox 3.5 and newer.
PKCS 12 functions
the public functions listed here perform pkcs #12 operations required by some of the nss tools and other applications.
FC_CancelFunction
name fc_cancelfunction - cancel a function running in parallel syntax ck_rv fc_cancelfunction( ck_session_handle hsession ); parameters hsession [in] session handle.
FC_CloseAllSessions
name fc_closeallsessions - close all sessions between an application and a token.
FC_CloseSession
name fc_closesession - close a session opened between an application and a token.
FC_CopyObject
name fc_copyobject - create a copy of an object.
FC_CreateObject
name fc_createobject - create a new object.
FC_Decrypt
name fc_decrypt - decrypt a block of data.
FC_DecryptDigestUpdate
name fc_decryptdigestupdate - continue a multi-part decrypt and digest operation syntax ck_rv fc_decryptdigestupdate( ck_session_handle hsession, ck_byte_ptr pencryptedpart, ck_ulong ulencryptedpartlen, ck_byte_ptr ppart, ck_ulong_ptr pulpartlen ); parameters hsession [in] session handle.
FC_DecryptFinal
name fc_decryptfinal - finish a multi-part decryption operation.
FC_DecryptInit
name fc_decryptinit - initialize a decryption operation.
FC_DecryptUpdate
name fc_decryptupdate - decrypt a block of a multi-part encryption operation.
FC_DecryptVerifyUpdate
name fc_decryptverifyupdate - continue a multi-part decrypt and verify operation syntax ck_rv fc_decryptverifyupdate( ck_session_handle hsession, ck_byte_ptr pencrypteddata, ck_ulong ulencrypteddatalen, ck_byte_ptr pdata, ck_ulong_ptr puldatalen ); parameters hsession [in] session handle.
FC_DeriveKey
name fc_derivekey - derive a key from a base key syntax ck_rv fc_derivekey( ck_session_handle hsession, ck_mechanism_ptr pmechanism, ck_object_handle hbasekey, ck_attribute_ptr ptemplate, ck_ulong usattributecount, ck_object_handle_ptr phkey ); parameters hsession [in] session handle.
FC_DestroyObject
name fc_destroyobject - destroy an object.
FC_Digest
name fc_digest - digest a block of data.
FC_DigestEncryptUpdate
name fc_digestencryptupdate - continue a multi-part digest and encryption operation syntax ck_rv fc_digestencryptupdate( ck_session_handle hsession, ck_byte_ptr ppart, ck_ulong ulpartlen, ck_byte_ptr pencryptedpart, ck_ulong_ptr pulencryptedpartlen ); parameters hsession [in] session handle.
FC_DigestFinal
name fc_digestfinal - finish a multi-part digest operation.
FC_DigestInit
name fc_digestinit - initialize a message-digest operation.
FC_DigestKey
name fc_digestkey - add the digest of a key to a multi-part digest operation.
FC_DigestUpdate
name fc_digestupdate - process the next block of a multi-part digest operation.
FC_Encrypt
name fc_encrypt - encrypt a block of data.
FC_EncryptFinal
name fc_encryptfinal - finish a multi-part encryption operation.
FC_EncryptInit
name fc_encryptinit - initialize an encryption operation.
FC_EncryptUpdate
name fc_encryptupdate - encrypt a block of a multi-part encryption operation.
FC_Finalize
name fc_finalize - indicate that an application is done with the pkcs #11 library.
FC_FindObjects
name fc_findobjects - search for one or more objects syntax ck_rv fc_findobjects( ck_session_handle hsession, ck_object_handle_ptr phobject, ck_ulong usmaxobjectcount, ck_ulong_ptr pusobjectcount ); parameters hsession [in] session handle.
FC_FindObjectsFinal
name fc_findobjectsfinal - terminate an object search.
FC_FindObjectsInit
name fc_findobjectsinit - initialize the parameters for an object search.
FC_GenerateKey
name fc_generatekey - generate a new key syntax ck_rv fc_generatekey( ck_session_handle hsession, ck_mechanism_ptr pmechanism, ck_attribute_ptr ptemplate, ck_ulong ulcount, ck_object_handle_ptr phkey ); parameters hsession [in] session handle.
FC_GenerateKeyPair
name fc_generatekeypair - generate a new public/private key pair syntax ck_rv fc_generatekeypair( ck_session_handle hsession, ck_mechanism_ptr pmechanism, ck_attribute_ptr ppublickeytemplate, ck_ulong uspublickeyattributecount, ck_attribute_ptr pprivatekeytemplate, ck_ulong usprivatekeyattributecount, ck_object_handle_ptr phpublickey, ck_object_handle_ptr phprivatekey ); parameters hsession [in] session handle.
FC_GenerateRandom
name fc_generaterandom - generate a random number.
FC_GetAttributeValue
name fc_getattributevalue - get the value of attributes of an object.
FC_GetFunctionList
name fc_getfunctionlist - get a pointer to the list of function pointers in the fips mode of operation.
FC_GetFunctionStatus
name fc_getfunctionstatus - get the status of a function running in parallel syntax ck_rv fc_getfunctionstatus( ck_session_handle hsession ); parameters hsession [in] session handle.
FC_GetInfo
name fc_getinfo - return general information about the pkcs #11 library.
FC_GetMechanismInfo
name fc_getmechanisminfo - get information on a particular mechanism.
FC_GetMechanismList
name fc_getmechanismlist - get a list of mechanism types supported by a token.
FC_GetObjectSize
name fc_getobjectsize - create a copy of an object.
FC_GetOperationState
name fc_getoperationstate - get the cryptographic operation state of a session.
FC_GetSessionInfo
name fc_getsessioninfo - obtain information about a session.
FC_GetSlotInfo
name fc_getslotinfo - get information about a particular slot in the system.
FC_GetSlotList
name fc_getslotlist - obtain a list of slots in the system.
FC_GetTokenInfo
name fc_gettokeninfo - obtain information about a particular token in the system.
FC_InitPIN
name fc_initpin() - initialize the user's pin.
FC_InitToken
name fc_inittoken() - initialize or re-initialize a token.
FC_Login
name fc_login() - log a user into a token.
FC_Logout
name fc_logout - log a user out from a token.
FC_OpenSession
name fc_opensession - open a session between an application and a token.
FC_SeedRandom
name fc_seedrandom() - mix additional seed material into the random number generator.
FC_SetAttributeValue
name fc_setattributevalue - set the values of attributes of an object.
FC_SetOperationState
name fc_setoperationstate - restore the cryptographic operation state of a session.
FC_SetPIN
name fc_setpin - modify the user's pin.
FC_Sign
name fc_sign - sign a block of data.
FC_SignEncryptUpdate
name fc_signencryptupdate - continue a multi-part signing and encryption operation syntax ck_rv fc_signencryptupdate( ck_session_handle hsession, ck_byte_ptr ppart, ck_ulong ulpartlen, ck_byte_ptr pencryptedpart, ck_ulong_ptr pulencryptedpartlen ); parameters hsession [in] session handle.
FC_SignFinal
name fc_signfinal - finish a multi-part signing operation.
FC_SignInit
name fc_signinit - initialize a signing operation.
FC_SignRecover
name fc_signrecover - sign data in a single recoverable operation.
FC_SignRecoverInit
name fc_signrecoverinit - initialize a sign recover operation.
FC_SignUpdate
name fc_signupdate - process the next block of a multi-part signing operation.
FC_UnwrapKey
name fc_unwrapkey - unwrap a key syntax ck_rv fc_unwrapkey( ck_session_handle hsession, ck_mechanism_ptr pmechanism, ck_object_handle hunwrappingkey, ck_byte_ptr pwrappedkey, ck_ulong uswrappedkeylen, ck_attribute_ptr ptemplate, ck_ulong usattributecount, ck_object_handle_ptr phkey ); parameters hsession [in] session handle.
FC_Verify
name fc_verify - sign a block of data.
FC_VerifyFinal
name fc_verifyfinal - finish a multi-part verify operation.
FC_VerifyInit
name fc_verifyinit - initialize a verification operation.
FC_VerifyRecover
name fc_verifyrecover - verify data in a single recoverable operation.
FC_VerifyRecoverInit
name fc_verifyrecoverinit - initialize a verification operation where data is recoverable.
FC_VerifyUpdate
name fc_verifyupdate - process the next block of a multi-part verify operation.
FC_WaitForSlotEvent
name fc_waitforslotevent - waits for a slot event, such as token insertion or token removal, to occur.
FC_WrapKey
name fc_wrapkey - wrap a key syntax ck_rv fc_wrapkey( ck_session_handle hsession, ck_mechanism_ptr pmechanism, ck_object_handle hwrappingkey, ck_object_handle hkey, ck_byte_ptr pwrappedkey, ck_ulong_ptr puswrappedkeylen ); parameters hsession [in] session handle.
NSC_InitToken
name nsc_inittoken() - initialize or re-initialize a token.
NSC_Login
name nsc_login() - log a user into a token.
NSS Key Functions
exists in memory, ssl makes a shallow copy--that is, it increments the reference count for that object rather than making a whole new copy.
NSS tools : vfychain
name vfychain — vfychain [options] [revocation options] certfile [[options] certfile] ...
NSS tools : vfyserv
name vfyserv — tbd synopsis vfyserv description the vfyserv tool verifies a certificate chain options additional resources for information about nss and other tools related to nss (like jss), check out the nss project wiki at [1]http://www.mozilla.org/projects/security/pki/nss/.
troubleshoot.html
simultaneous sockets supported.
sslkey.html
exists in memory, ssl makes a shallow copy--that is, it increments the reference count for that object rather than making a whole new copy.
NSS Tools dbck-tasks
nss security tools: dbck tasks newsgroup: mozilla.dev.tech.crypto task list in analyze mode, there should be an option to create a file containing a graph of the certificate database without any information about the user's certificates (no common names, email addresses, etc.).
NSS tools : signver
Mozilla › Projects › NSS › tools › signver
name signver — verify a detached pkcs#7 signature for a file.
NSS tools : vfychain
name vfychain — vfychain [options] [revocation options] certfile [[options] certfile] ...
Necko Architecture
responsibility is moving data from one location, to another location.
Proxies in Necko
is then made.
Rhino history
rhino gets its name from the animal on the cover of the o'reilly book about javascript.
Rhino optimization
mine which javascript variables can be allocated to java vm registers, and which variables are used only as numbers.
Rhino requirements and limitations
requirements recent versions of rhino have only been tested with jdk 1.4 and greater.
The JavaScript Runtime
every array access.
Future directions
do not add vendor prefixes.
Exact Stack Rooting
as a private, please file a bug.
Garbage collection
object black first, then no objects can get 'lost'.
Self-hosted builtins in SpiderMonkey
ed the value of receiver.fun, so callcontentfunction(receiver.fun, receiver) has to be used.
BOOLEAN_TO_JSVAL
sapi 42this feature is obsolete.
DOUBLE_TO_JSVAL
obsolete since jsapi 42this feature is obsolete.
INT_FITS_IN_JSVAL
obsolete since javascript 1.8.5this feature is obsolete.
INT_TO_JSVAL
obsolete since jsapi 42this feature is obsolete.
JS::AutoIdArray
this article covers features introduced in spidermonkey 17 take ownership of a jsidarray and free it later.
JS::AutoSaveExceptionState
this article covers features introduced in spidermonkey 31 save and later restore the current exception state of a given jscontext.
JS::AutoValueArray
this article covers features introduced in spidermonkey 31 root an internal fixed-size array of js::values.
JS::BooleanValue
this article covers features introduced in spidermonkey 24 convert a c boolean of type bool to a js::value.
JS::CloneFunctionObject
this article covers features introduced in spidermonkey 38 create a new function object from an existing jsfunction.
JS::CompileOffThread
ol js::compileoffthread(jscontext *cx, const js::readonlycompileoptions &options, const char16_t *chars, size_t length, js::offthreadcompilecallback callback, void *callbackdata); jsscript * js::finishoffthreadscript(jscontext *maybecx, jsruntime *rt, void *token); typedef void (*js::offthreadcompilecallback)(void *token, void *callbackdata); name type description cx / maybe jscontext * pointer to a js context from which to derive runtime information.
JS::CurrentGlobalOrNull
this article covers features introduced in spidermonkey 31 return the global object for the active function on the context.
JS::DeflateStringToUTF8Buffer
troduced in spidermonkey 38 encode the given string as utf8 into given buffer.
JS::DoubleValue
this article covers features introduced in spidermonkey 24 convert a c floating-point number of type double to a js::value.
JS::Float32Value
this article covers features introduced in spidermonkey 24 convert a c floating-point number of type float to a js::value.
JS::GetDeflatedUTF8StringLength
this article covers features introduced in spidermonkey 38 returns the length of the char buffer required to encode given string as utf8.
JS::GetFirstArgumentAsTypeHint
convert first argument of @@toprimitive method to jstype.
JS::Handle
es of the gc thing can be avoided.
JS::HandleValueArray
ay(const js::autovaluevector& values); js::handlevaluearray(const js::autovaluearray<n>& values); js::handlevaluearray(const js::callargs& args); js::handlevaluearray::frommarkedlocation(size_t len, const js::value *elements); js::handlevaluearray::subarray(const js::handlevaluearray& values, size_t startindex, size_t len); js::handlevaluearray::empty(); name type description value js::rootedvalue &amp; an element of newly created 1-length array.
JS::IdentifyStandardInstance
spidermonkey 31 determine if the given object is an instance/prototype/constructor for a standard class.
JS::Int32Value
this article covers features introduced in spidermonkey 24 convert a c signed 32-bit integer of type int32_t to a js::value.
JS::IsCallable
this article covers features introduced in spidermonkey 38 return whether the given function object is callable/a valid constructor.
JS::MutableHandle
(const t &v)| method to allow updating the value of the referenced js::rooted&lt;t&gt;.
JS::NumberValue
dermonkey 24 convert a c integer or floating-point value to a js::value.
JS::ObjectOrNullValue
this article covers features introduced in spidermonkey 24 convert a jsobject or null pointer to a js::value.
JS::ObjectValue
this article covers features introduced in spidermonkey 24 convert a jsobject to a js::value.
JS::OrdinaryToPrimitive
this article covers features introduced in spidermonkey 38 convert an ordinary object to a primitive value.
JS::ProtoKeyToId
this article covers features introduced in spidermonkey 38 convert a jsprotokey to js id.
JS::SourceBufferHolder
this article covers features introduced in spidermonkey 31 container class for passing in script source buffers to the js engine.
JS::StringValue
this article covers features introduced in spidermonkey 24 convert a jsstring to a js::value.
JS::SymbolValue
this article covers features introduced in spidermonkey 38 convert a js::symbol to a js::value.
JS::ToBoolean
this article covers features introduced in spidermonkey 17 convert any javascript value to a boolean.
JS::ToInt32
this article covers features introduced in spidermonkey 17 convert any javascript value to a signed 32bit integer.
JS::ToInt64
this article covers features introduced in spidermonkey 17 convert any javascript value to a signed 64bit integer.
JS::ToNumber
this article covers features introduced in spidermonkey 17 convert any javascript value to a double.
JS::ToString
this article covers features introduced in spidermonkey 31 convert any javascript value to a string.
JS::ToUint16
this article covers features introduced in spidermonkey 17 convert any javascript value to an unsigned 16bit integer.
JS::ToUint32
this article covers features introduced in spidermonkey 17 convert any javascript value to an unsigned 32bit integer.
JS::ToUint64
this article covers features introduced in spidermonkey 17 convert any javascript value to an unsigned 64bit integer.
JSAutoByteString
this article covers features introduced in spidermonkey 17 take ownership of a string and free it later.
JSAutoCompartment
this article covers features introduced in spidermonkey 24 raii helper to enter a different compartment on the given context and automatically leave it once the jsautocompartment instance gets out of scope.
JSConvertOp
jsconvertop is the type of jsclass.convert.
JSEnumerateOp
jsenumerateop is the type of the jsclass.enumerate callback.
JSErrorFormatString
this article covers features introduced in spidermonkey 17 represent error message and type.
JSExtendedClass.outerObject
obsolete since javascript 1.8.5this feature is obsolete.
JSExtendedClass
methods and properties implemented in c/c++.
JSFinalizeOp
jsfinalizeop is the type of jsclass.finalize.
JSFreeOp
this article covers features introduced in spidermonkey 17 structure used during finalization instead of jscontext.
JSGetObjectOps
obsolete since jsapi 17this feature is obsolete.
JSHasInstanceOp
jshasinstanceop is the type of jsclass.hasinstance.
JSID_IS_EMPTY
test whether a js id is jsid_empty.
JSID_IS_GCTHING
testing and conversion functions between a js id and a gc thing.
JSID_IS_INT
testing and conversion functions between a js id and an integer.
JSID_IS_STRING
testing and conversion functions between a js id and a js string.
JSID_IS_SYMBOL
this article covers features introduced in spidermonkey 38 testing and conversion functions between a js id and a js symbol.
JSID_IS_VOID
test whether a js id is jsid_void.
JSID_IS_ZERO
test whether a js id is a zero id.
JSIteratorOp
obsolete since jsapi 26this feature is obsolete.
JSMarkOp
uld be removed at any time.
JSNative
pe of many jsapi callbacks.
JSNewEnumerateOp
ate]] internal method.
JSObject
ctivation record.
JSObjectOps.defaultValue
from one release to the next.
JSObjectOps.destroyObjectMap
ed api.
JSObjectOps.dropProperty
warning!
JSObjectOps.getRequiredSlot
ation, not api documentation.
JSObjectOps.setProto
on should be considered spidermonkey internals documentation, not api documentation.
JSObjectPrincipalsFinder
ts use is discouraged since it could be removed at any time.
JSPRINCIPALS_HOLD
obsolete since jsapi 13this feature is obsolete.
JSPrincipalsTranscoder
jsprincipalstranscoder is the type of a security callback that can be configured using js_setprincipalstranscoderjsapi 1.8 and earlier or js_setruntimesecuritycallbacksadded in spidermonkey 1.8.1.
JSPropertyDescriptor
a descriptor is used to declare whether an attribute can be written to whether it can delete an object that can enumerate and specify content.
JSReserveSlotsOp
obsolete since javascript 1.8.5this feature is obsolete.
JSSecurityCallbacks.contentSecurityPolicyAllows
the jssecuritycallbacks.contentsecuritypolicyallows callback is called when a script attempts to access an object property.
JSStringFinalizer
this article covers features introduced in spidermonkey 17 finalize external strings created by js_newexternalstring.
JSTraceOp
jstraceop is the type of the jsclass.trace.
JSXDRObjectOp
obsolete since jsapi 13this feature is obsolete.
JS_ASSERT_STRING_IS_FLAT
this article covers features introduced in spidermonkey 1.8.5 assert a string is flattened.
JS_BindCallable
this article covers features introduced in spidermonkey 17 bind the given callable to use the given object as this.
JS_BufferIsCompilableUnit
determine whether a buffer is compilable unit.
JS_CheckForInterrupt
this article covers features introduced in spidermonkey 45 check for and handle interrupt.
JS_ClearContextThread
obsolete since jsapi 8this feature is obsolete.
JS_ClearDateCaches
this article covers features introduced in spidermonkey 17 clear the cache of calculated local time from each date object.
JS_ClearNewbornRoots
obsolete since jsapi 5this feature is obsolete.
JS_ClearNonGlobalObject
obsolete since jsapi 34this feature is obsolete.
JS_ClearPendingException
clear the currently pending exception in a context.
JS_ClearRegExpStatics
clear the pending regexp input and flags.
JS_ClearScope
obsolete since jsapi 18this feature is obsolete.
JS_CompareStrings
compare two js strings.
JS_CompileScript
bject obj, const char *ascii, size_t length, const js::compileoptions &options, js::mutablehandlescript script); bool js_compileucscript(jscontext *cx, js::handleobject obj, const char16_t *chars, size_t length, const js::compileoptions &options, js::mutablehandlescript script); name type description cx jscontext * pointer to a js context from which to derive runtime information.
JS_ConcatStrings
concatenate two js strings.
JS_ConstructObject
of the specified class, with the specified prototype and parent, then invokes a constructor function to initialize the new object.
JS_ContextIterator
obsolete since jsapi 52this feature is obsolete.
JS_ConvertArguments
converts a series of js values, passed in an argument array, to their corresponding js types.
JS_ConvertArgumentsVA
ed at any time.
JS_DecompileScript
return the source code of the script or the function.
JS_DeepFreezeObject
this article covers features introduced in spidermonkey 1.8.5 freeze obj, and all objects it refers to, recursively.
JS_DefineElement
ineelement(jscontext *cx, js::handleobject obj, uint32_t index, double value, unsigned attrs, jsnative getter = nullptr, jsnative setter = nullptr); /* obsolete since jsapi 32 */ js_defineelement(jscontext *cx, jsobject *obj, uint32_t index, jsval value, jspropertyop getter, jsstrictpropertyop setter, unsigned attrs); name type description cx jscontext * the context in which to create the new property.
JS_DefineOwnProperty
ugh it may still work in some browsers, its use is discouraged since it could be removed at any time.
JS_DeleteElement
removes a specified element or numeric property from an object.
JS_DestroyContext
destroy a jscontext.
JS_DestroyIdArray
free a jsidarray.
JS_DestroyRuntime
frees a javascript runtime.
JS_DestroyScript
free a compiled script that is no longer needed.
JS_DoubleIsInt32
this article covers features introduced in spidermonkey 17 compare double value and int32_t value.
JS_DoubleToInt32
d since it could be removed at any time.
JS_DropExceptionState
destroys a jsexceptionstate object previously created using js_saveexceptionstate.
JS_DumpHeap
some browsers, its use is discouraged since it could be removed at any time.
JS_EncodeCharacters
obsolete since jsapi 19this feature is obsolete.
JS_EncodeString
this article covers features introduced in spidermonkey 1.8 convert a javascript string to a c string.
JS_EncodeStringToBuffer
this article covers features introduced in spidermonkey 1.8.5 convert a javascript string to a c string.
JS_EnterCompartment
this article covers features introduced in spidermonkey 24 note: the preferred way of changing a context's current compartment is using jsautocompartment.
JS_EnterCrossCompartmentCall
to avoid using it.
JS_EnterLocalRootScope
obsolete since javascript 1.8.5this feature is obsolete.
JS_Enumerate
get an array of the enumerable properties of a given object.
JS_EnumerateResolvedStandardClasses
obsolete since jsapi 24this feature is obsolete.
JS_EnumerateStandardClasses
enumerate standard class in an object.
JS_ErrorFromException
get or create jserrorreport from an exception object.
JS_ExecuteRegExp
obj, js::handleobject reobj, char16_t *chars, size_t length, size_t *indexp, bool test, js::mutablehandlevalue rval); bool js_executeregexpnostatics(jscontext *cx, js::handleobject reobj, char16_t *chars, size_t length, size_t *indexp, bool test, js::mutablehandlevalue rval); name type description cx jscontext * the context.
JS_ExecuteScript
escript(jscontext *cx, js::handleobject obj, js::handlescript script); // obsolete since jsapi 39 bool js::cloneandexecutescript(jscontext *cx, js::handle<jsscript*> script); // added in spidermonkey 45 bool js::cloneandexecutescript(jscontext *cx, js::handle<jsobject*> obj, js::handle<jsscript*> script); // added in spidermonkey 31, obsoleted since jsapi 39 name type description cx jscontext * the context in which to execute the script.
JS_ExecuteScriptPart
scouraged since it could be removed at any time.
JS_ExecuteScriptVersion
olete.
JS_FORGET_STRING_FLATNESS
this article covers features introduced in spidermonkey 1.8.5 convert jsflatstring to jsstring.
JS_FileEscapedString
this article covers features introduced in spidermonkey 1.8.5 write string into file with escaping.
JS_Finish
obsolete since jsapi 19this feature is obsolete.
JS_FlattenString
this article covers features introduced in spidermonkey 1.8.5 flattens a string.
JS_FlushCaches
still work in some browsers, its use is discouraged since it could be removed at any time.
JS_ForgetLocalRoot
obsolete since javascript 1.8.5this feature is obsolete.
JS_FreezeObject
this article covers features introduced in spidermonkey 1.8.5 freeze an object.
JS_GC
performs garbage collection in the js memory pool.
JS_GetArrayLength
retrieve the number of elements in an array object.
JS_GetArrayPrototype
this article covers features introduced in spidermonkey 24 retrieves the original, canonical array.prototype for an object's global object.
JS_GetClass
retrieves the class associated with an object.
JS_GetClassObject
get the builtin class constructor.
JS_GetClassPrototype
get the builtin class prototype object.
JS_GetCompartmentPrivate
this article covers features introduced in spidermonkey 1.8.5 please provide a description for this function.
JS_GetConstructor
retrieves the constructor for an object.
JS_GetContextPrivate
access a jscontext field for application-specific data.
JS_GetContextThread
obsolete since jsapi 8this feature is obsolete.
JS_GetDefaultFreeOp
this article covers features introduced in spidermonkey 17 return default jsfreeop for the runtime.
JS_GetElement
find a specified numeric property of an object and return its current value.
JS_GetEmptyString
this article covers features introduced in spidermonkey 1.8.5 returns the empty string as a jsstring object.
JS_GetEmptyStringValue
get the empty string as a value of type js::value.
JS_GetErrorPrototype
this article covers features introduced in spidermonkey 38 return the original value of error.prototype.
JS_GetExternalStringClosure
feature is obsolete.
JS_GetExternalStringFinalizer
this article covers features introduced in spidermonkey 17 get the string finalizer of an external string.
JS_GetFlatStringChars
bsolete since jsapi 33this feature is obsolete.
JS_GetFunctionArity
get the number of arguments a function expects.
JS_GetFunctionCallback
emoved at any time.
JS_GetFunctionFlags
obsolete since jsapi 19this feature is obsolete.
JS_GetFunctionObject
retrieves the object for a specified function.
JS_GetFunctionPrototype
this article covers features introduced in spidermonkey 17 retrieves the original, canonical function.prototype for an object's global object.
JS_GetFunctionScript
this article covers features introduced in spidermonkey 38 retrieves a jsscript for a specified function.
JS_GetGCParameter
garbage collection.
JS_GetGlobalForCompartmentOrNull
this article covers features introduced in spidermonkey 17 return the global object for the specified compartment.
JS_GetGlobalForObject
returns the global object for the given object.
JS_GetInternedStringChars
ete.
JS_GetLatin1FlatStringChars
this article covers features introduced in spidermonkey 38 get the chars of a flat string.
JS_GetLatin1InternedStringChars
this article covers features introduced in spidermonkey 38 get the chars of an interned string.
JS_GetLatin1StringCharsAndLength
t the chars and the length of a string.
JS_GetLocaleCallbacks
get and set locale specific string conversion and error message callbacks.
JS_GetNaNValue
get the not-a-number (nan) floating-point number as a value of type js::value.
JS_GetObjectPrototype
this article covers features introduced in spidermonkey 17 retrieves the original, canonical object.prototype for an object's global object.
JS_GetObjectRuntime
this article covers features introduced in spidermonkey 17 retrieve a pointer to the jsruntime of a specified object.
JS_GetOptions
obsolete since jsapi 27this feature is obsolete.
JS_GetParent
obsolete since jsapi 39this feature is obsolete.
JS_GetParentRuntime
this article covers features introduced in spidermonkey 31 retrieve a pointer to the parent jsruntime.
JS_GetPendingException
get the current pending exception for a given jscontext.
JS_GetPositiveInfinityValue
retrieve a floating-point infinity as a value of type js::value.
JS_GetPrivate
access the private data field of an object.
JS_GetPrototype
retrieves an object's prototype.
JS_GetRegExpFlags
this article covers features introduced in spidermonkey 17 get the flags of the given regexp object.
JS_GetRegExpSource
this article covers features introduced in spidermonkey 17 get the source string of the given regexp object.
JS_GetReservedSlot
access an object's reserved slots.
JS_GetRuntime
retrieves a pointer to the jsruntime.
JS_GetRuntimePrivate
access a jsruntime field for application-specific data.
JS_GetScopeChain
me.
JS_GetStringBytes
obsolete since jsapi 1.8.5this feature is obsolete.
JS_GetStringCharAt
this article covers features introduced in spidermonkey 38 return a specified character from a string.
JS_GetStringChars
y still work in some browsers, its use is discouraged since it could be removed at any time.
JS_GetStringCharsAndLength
lete since jsapi 33this feature is obsolete.
JS_GetStringEncodingLength
this article covers features introduced in spidermonkey 1.8.5 get the length of a javascript string in bytes.
JS_GetStringLength
return the length, in 16-bit code units, of a javascript string.
JS_GetTwoByteExternalStringChars
this article covers features introduced in spidermonkey 38 get the chars of an external string.
JS_GetVersion
retrieves the javascript version number used within a specified executable script context.
JS_HasArrayLength
obsolete since jsapi 8this feature is obsolete.
JS_HasElement
determine whether a javascript array has an element in the specified index.
JS_HasInstance
jsapi method equivalent to the instanceof operator in javascript.
JS_IdArrayGet
this article covers features introduced in spidermonkey 17 get the item of a jsidarray.
JS_IdArrayLength
this article covers features introduced in spidermonkey 17 get the length of a jsidarray.
JS_IdToProtoKey
this article covers features introduced in spidermonkey 31 convert a js id to a jsprotokey.
JS_IdToValue
convert a js id to a js value.
JS_InitCTypesClass
this article covers features introduced in spidermonkey 1.8.5 initialize the ctypes object on a global object.
JS_InternJSString
this article covers features introduced in spidermonkey 1.8.5 make a string to interned string.
JS_InternString
protected from gc and automatically shared with other code that needs a jsstring with the same value.
JS_IsArrayObject
determine if a specified object is an array.
JS_IsAssigning
obsolete since javascript 1.8.5this feature is obsolete.
JS_IsBuiltinEvalFunction
this article covers features introduced in spidermonkey 17 return whether the given function is the global eval function.
JS_IsBuiltinFunctionConstructor
this article covers features introduced in spidermonkey 17 return whether the given function is the global function constructor.
JS_IsConstructing
h it may still work in some browsers, its use is discouraged since it could be removed at any time.
JS_IsConstructing_PossiblyWithGivenThisObject
is discouraged since it could be removed at any time.
JS_IsConstructor
this article covers features introduced in spidermonkey 24 return whether the given function is a valid constructor.
JS_IsExceptionPending
determine whether an exception is pending in the js engine.
JS_IsExtensible
this article covers features introduced in spidermonkey 1.8.5 query [[extensible]] properly of the given object.
JS_IsExternalString
this article covers features introduced in spidermonkey 17 determines whether or not the specified jsstring is an external string (that is, a string created by calling js_newexternalstring rather than js_newexternalstringwithclosure).
JS_IsGlobalObject
this article covers features introduced in spidermonkey 24 determine if given object is a global object.
JS_IsIdentifier
this article covers features introduced in spidermonkey 17 test whether the given string is a valid ecmascript identifier.
JS_IsNative
this article covers features introduced in spidermonkey 17 determines if given jsobject is a native object.
JS_IsNativeFunction
this article covers features introduced in spidermonkey 17 return whether the given function object equals the specified native function.
JS_IsRunning
indicates whether or not a script or function is currently executing in a given context.
JS_IsStopIteration
this article covers features introduced in spidermonkey 31 determine whether the value is a stopiteration exception or not.
JS_LeaveCompartment
this article covers features introduced in spidermonkey 24 note: the preferred way of changing a context's current compartment is using jsautocompartment.
JS_LeaveCrossCompartmentCall
y time.
JS_LeaveLocalRootScope
obsolete since javascript 1.8.5this feature is obsolete.
JS_LeaveLocalRootScopeWithResult
obsolete since javascript 1.8.5this feature is obsolete.
JS_LinkConstructorAndPrototype
this article covers features introduced in spidermonkey 17 set up ctor.prototype = proto and proto.constructor = ctor with the right property flags.
JS_Lock
obsolete since jsapi 12this feature is obsolete.
JS_LockGCThing
ce it could be removed at any time.
JS_LooselyEqual
this article covers features introduced in spidermonkey 1.8.1 determine whether two javascript values are equal in the sense of the == operator.
JS_MakeStringImmutable
obsolete since javascript 1.8.5this feature is obsolete.
JS_MaybeGC
offer the javascript engine an opportunity to perform garbage collection if needed.
JS_New
this article covers features introduced in spidermonkey 1.8 create an object as though by using the new keyword and a javascript function.
JS_NewArrayObject
create a new array object.
JS_NewCompartmentAndGlobalObject
e.
JS_NewContext
create a new jscontext.
JS_NewDateObject
this article covers features introduced in spidermonkey 1.8.5 creates a new date object instance for the given time and date.
JS_NewDateObjectMsec
this article covers features introduced in spidermonkey 1.8.5 creates a new date object instance, configured to represent the date and time indicated by the specified time in milliseconds since the unix epoch.
JS_NewDependentString
create a new javascript string containing a range of characters from an existing string.
JS_NewDouble
obsolete since jsapi 17this feature is obsolete.
JS_NewDoubleValue
obsolete since jsapi 17this feature is obsolete.
JS_NewExternalString
eate a new jsstring whose characters are stored in external memory.
JS_NewGlobalObject
this article covers features introduced in spidermonkey 17 create a new javascript object for use as a global object.
JS_NewNumberValue
use js_numbervalue instead convert a c floating-point number of type jsdouble to a jsval.
JS_NewObjectForConstructor
nstructor function would.
JS_NewPlainObject
this article covers features introduced in spidermonkey 38 creates a new plain javascript object.
JS_NewPropertyIterator
obsolete since jsapi 36this feature is obsolete.
JS_NewUCString
note: js_newstring() was removed in spidermonkey 1.8.5.
JS_NewStringCopyN
create a new js string.
JS_NewStringCopyZ
create a new javascript string based on a null-terminated c string.
JS_NumberValue
this article covers features introduced in spidermonkey 17 convert a c floating-point number of type double to a js::value.
JS_ObjectIsDate
this article covers features introduced in spidermonkey 1.8.5 determines if a specified object is a date object.
JS_ObjectIsRegExp
this article covers features introduced in spidermonkey 17 determine if a specified object is a regexp.
JS_PopArguments
obsolete since javascript 1.8.5this feature is obsolete.
JS_PreventExtensions
attempts to forbid the addition of any new properties to an object.
JS_PushArguments
ugh it may still work in some browsers, its use is discouraged since it could be removed at any time.
JS_PutEscapedString
this article covers features introduced in spidermonkey 1.8.5 write a string into buffer with escaping.
JS_RemoveExternalStringFinalizer
obsolete since jsapi 13this feature is obsolete.
JS_ReportError
create a formatted error or warning message to pass to a user-defined error reporting function.
JS_ReportOutOfMemory
reports a memory allocation error.
JS_ReportPendingException
forward the current pending exception in a given jscontext to the current jserrorreporter callback.
JS_RestoreExceptionState
restores the exception state from a jsexceptionstate object previously created using js_saveexceptionstate.
JS_SameValue
evalue(v1, v2) { if (v1 === 0 && v2 === 0) return 1 / v1 === 1 / v2; if (v1 !== v1 && v2 !== v2) return true; return v1 === v2; } syntax // added in spidermonkey 45 bool js_samevalue(jscontext *cx, js::handle<js::value> v1, js::handle<js::value> v2, bool *same); // obsolete since jsapi 39 bool js_samevalue(jscontext *cx, jsval v1, jsval v2, bool *same); name type description cx jscontext * pointer to a js context from which to derive runtime information.
JS_SaveExceptionState
saves the exception state from the specified context.
JS_SaveFrameChain
saves and restores frame chains.
JS_ScheduleGC
this article covers features introduced in spidermonkey 17 set nextscheduled parameter of gc.
JS_SetAllNonReservedSlotsToUndefined
this article covers features introduced in spidermonkey 24 assign undefined to all of the object's non-reserved slots.
JS_SetArrayLength
set the length property of an object.
JS_SetCallReturnValue2
1.8.5this feature is obsolete.
JS_SetCheckObjectAccessCallback
set the runtime-wide check-object-access callback.
JS_SetDefaultLocale
this article covers features introduced in spidermonkey 24 set and reset the default locale for the ecmascript internationalization api.
JS_SetElement
bj, uint32_t index, int32_t v); bool js_setelement(jscontext *cx, js::handleobject obj, uint32_t index, uint32_t v); bool js_setelement(jscontext *cx, js::handleobject obj, uint32_t index, double v); /* obsolete since jsapi 29 */ bool js_setelement(jscontext *cx, js::handleobject obj, uint32_t index, js::mutablehandlevalue vp); name type description cx jscontext * the context in which to set the element.
JS_SetGCParametersBasedOnAvailableMemory
this article covers features introduced in spidermonkey 31 adjust performance parameters related to garbage collection based on available memory.
JS_SetGCZeal
this article covers features introduced in spidermonkey 1.8 enable gc zeal, a testing and debugging feature that helps find gc-related bugs in jsapi applications.
JS_SetGlobalObject
obsolete since jsapi 25this feature is obsolete.
JS_SetNativeStackQuota
this article covers features introduced in spidermonkey 17 enable or disable checks to avoid overflowing the c stack.
JS_SetObjectPrincipalsFinder
set the runtime-wide object-principals-finder callback.
JS_SetParent
obsolete since jsapi 39this feature is obsolete.
JS_SetPendingException
sets the current exception being thrown within a context.
JS_SetPrincipalsTranscoder
set the runtime-wide principals transcoder callback.
JS_SetPrivate
sets the private data field of an object.
JS_SetPrototype
set a javascript object's prototype.
JS_SetRegExpInput
set the pending regexp input.
JS_SetScriptStackQuota
set the maximum amount of memory a context will use for certain data structures.
JS_SetThreadStackLimit
obsolete since jsapi 13this feature is obsolete.
JS_SetVersion
obsolete since jsapi 25this feature is obsolete.
JS_SetVersionForCompartment
this article covers features introduced in spidermonkey 31 configure a jscompartment to use a specific version of the javascript language.
JS_StrictlyEqual
features introduced in spidermonkey 1.8.1 determine whether two javascript values are equal in the sense of the === operator.
JS_StringEqualsAscii
this article covers features introduced in spidermonkey 1.8.5 compare flat string and ascii string.
JS_StringHasBeenInterned
this article covers features introduced in spidermonkey 17 determine if string is interned.
JS_StringHasLatin1Chars
this article covers features introduced in spidermonkey 38 determine if a string's characters are stored as latin1.
JS_StringIsFlat
this article covers features introduced in spidermonkey 38 determine if a string is flattened.
JS_StringToVersion
returns a jsversion value representing the version string.
JS_SuspendRequest
spidermonkey at or prior to version 45.
JS_ThrowStopIteration
this article covers features introduced in spidermonkey js1.8 throw a stopiteration exception.
JS_ToggleOptions
obsolete since jsapi 27this feature is obsolete.
JS_Unlock
obsolete since jsapi 12this feature is obsolete.
JS_ValueToBoolean
obsolete since jsapi 28this feature is obsolete.
JS_ValueToECMAInt32
ome browsers, its use is discouraged since it could be removed at any time.
JS_ValueToFunction
convert a js::value to a jsfunction.
JS_ValueToId
estring s, js::mutablehandleid idp); // added in spidermonkey 38 bool js_indextoid(jscontext *cx, uint32_t index, js::mutablehandleid idp); // added in spidermonkey 17 bool js_charstoid(jscontext* cx, js::twobytechars chars, js::mutablehandleid idp); // added in spidermonkey 24 void js::protokeytoid(jscontext *cx, jsprotokey key, js::mutablehandleid idp); // added in spidermonkey 38 name type description cx jscontext * a context.
JS_ValueToInt32
obsolete since jsapi 28this feature is obsolete.
JS_ValueToObject
converts any javascript value to an object.
JS_ValueToSource
convert a js::value to a javascript source.
JS_ValueToString
obsolete since jsapi 28this feature is obsolete.
JS_VersionToString
returns a string representation of a jsversion value.
JS_YieldRequest
obsolete since jsapi 18this feature is obsolete.
JS_freeop
this article covers features introduced in spidermonkey 17 a wrapper for js_free.
JS_malloc
allocate and free memory that is not managed by the garbage collector.
JS_updateMallocCounter
this article covers features introduced in spidermonkey 17 decrement malloc counter.
OBJECT_TO_JSVAL
obsolete since jsapi 42this feature is obsolete.
Property attributes
ty via the prototype chain are affected.
STRING_TO_JSVAL
obsolete since jsapi 42this feature is obsolete.
JSDBGAPI
kframeprincipals js_evalframeprincipals js_getframeannotation js_setframeannotation js_getframeprincipalarray js_isnativeframe js_getframeobject js_getframescopechain js_getframecallobject js_getframethis js_getframefunction js_getframefunctionobject js_isconstructorframe js_isdebuggerframe js_getframereturnvalue js_setframereturnvalue js_getframecalleeobject js_getscriptfilename js_getscriptbaselinenumber js_getscriptlineextent js_getscriptversion js_gettopscriptfilenameflags js_getscriptfilenameflags js_flagscriptfilenameprefix jsfilename_null jsfilename_system jsfilename_protected evaluating debug code js_evaluateinstackframe examining object properties typedef jspropertydesc jspd_enumerate jspd_readonly jspd_permanent jspd_alias jspd_a...
Setting up CDT to work on SpiderMonkey
sion of what is explained in much more detail for the entire mozilla codebase.
Split object
copechain is called on a jscontext in which no code is currently running.
TPS Tab Lists
a tabs asset list is an array of objects with the following keys: uri: the uri of the tab, required.
Using RAII classes in Mozilla
raii classes are useful when two operations (e.g., lock/unlock, addref/release, pushstate/popstate) must be paired.
Exploitable crashes
ashes which are exploitable, and to fix exploitable crashes.
Gecko Roles
s and iconified versions of those internal frames.
Feed content access API
s subclassed by several of the feed-related interfaces.
Querying Places
est to close a container as soon as you are done with it, since it will give better performance.
Bundling multiple binary components
perating system then the stub load the appropriate "real" xpcom component for the current configuration.
Avoiding leaks in JavaScript XPCOM components
t private_data to 5 fns2[0]() + ", " + // increments second private_data to 1 fns1[1]() + "."; // doubles first private_data to 10 } this shows that closures are quite powerful.
Packaging WebLock
iving resources), the installation script for weblock is a simple one (see the weblock installation script).
XPCOM hashtable guide
concrete classes nsrefptrhashkey there are a number of more esoteric hashkey classes in nshashkeys.h, and you can always roll your own if none of these fit your needs (make sure you're not duplicating an existing hashkey class though!) once you've determined what hashtable and hashkey classes you need, you can put it all together.
Components.utils.evalInSandbox
mysandbox); console.log(result); // 17 console.log(mysandbox.x); // 7 operations on objects you insert into this sandbox global scope do not carry privileges into the sandbox: mysandbox.foo = components; // this will give a "permission denied" error components.utils.evalinsandbox("foo.classes", mysandbox); optional arguments you can optionally specify the js version, filename, and line number of the code being evaluated.
NS_NewNativeLocalFile
essful.
NS_OVERRIDE
ed to remove the output parameter: class a { - virtual nsresult getfoo(nsifoo** aresult); + virtual already_addrefed<nsifoo> getfoo(); }; b::getfoo() no longer overrides a::getfoo() as was originally intended.
nsACString (External)
class declaration <map id="classes" name="classes"><area alt="" coords="1005,6,1096,54" href="http://developer.mozilla.org/en/nsacstring_(external)" shape="rect" title="nsacstring_(external)"> <area alt="" coords="980,102,1121,150" href="http://developer.mozilla.org/en/nscstringcontainer_(external)" shape="rect" title="nscstringcontainer_(external)"> <area alt="" coords="571,198,707,246" href="http://developer.mozilla.org/en/nscstring_external" shape="rect" title="nscstring_external"> <area alt="" coords="731,198,955,246" href="http://developer.mozilla.org/en/nsdependentcsubstring_external" shape="rect" title="nsdependentcsubstring_external"> <area alt="" coords="979,198,1123,246" href="http://developer.mozilla.org/en/promiseflatcstring_(external)" shape="rect" title="promiseflatcstrin...
nsAString (External)
class declaration this header provides wrapper classes around the frozen string api which are roughly equivalent to the internal string classes.
nsAutoString
class declaration nstautostring_chart subclass of nststring_chart that adds support for stack-based string allocation.
nsCAutoString
class declaration nstautostring_chart subclass of nststring_chart that adds support for stack-based string allocation.
nsCString
class declaration this is the canonical null-terminated string class.
nsDependentCSubstring
class declaration nstdependentsubstring_chart a string class which wraps an external array of string characters.
nsDependentSubstring
class declaration nstdependentsubstring_chart a string class which wraps an external array of string characters.
nsString
class declaration this is the canonical null-terminated string class.
nsXPIDLCString
class declaration nstxpidlstring extends nststring such that: (1) mdata can be null (2) objects of this type can be automatically cast to |const chart*| (3) getter_copies method is supported to adopt data allocated with ns_alloc, such as "out string" parameters in xpidl.
nsXPIDLString
class declaration nstxpidlstring extends nststring such that: (1) mdata can be null (2) objects of this type can be automatically cast to |const chart*| (3) getter_copies method is supported to adopt data allocated with ns_alloc, such as "out string" parameters in xpidl.
IAccessibleImage
other-licenses/ia2/accessibleimage.idlnot scriptable this interface represents images and icons.
amIInstallTrigger
ent 4 package 7 methods enabled() tests if installation is enabled.
mozIRegistry
given some arbitrary desired properties.
mozIStorageStatementWrapper
estatementwrapper interface is a storage statement wrapper.
nsIAboutModule
netwerk/protocol/about/nsiaboutmodule.idlscriptable this interface is implemented to add an 'about:' page.
DoAction
e action at the given zero-based index.
KeyboardShortcut
« nsiaccessible page summary provides localized string of accesskey name, such as alt+d (alt + d).
NumActions
« nsiaccessible page summary the number of accessible actions associated with this accessible.
nsIAccessibleHyperText
ts last changed in gecko 1.9 (firefox 3) method overview nsiaccessiblehyperlink getlink(in long linkindex); long getlinkindex(in long charindex); long getselectedlinkindex(); obsolete since gecko 1.9 attributes attribute type description linkcount long the number of links contained within this hypertext object.
nsIAccessibleTreeCache
d invalidatecache( in long arow, in long acount ); parameters arow row index the invalidation starts from.
nsIApplicationCacheChannel
methods markofflinecacheentryasforeign() a shortcut method to mark the cache item of this channel as 'foreign'.
nsIApplicationCacheContainer
duced gecko 1.9.1 inherits from: nsisupports last changed in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) attributes attribute type description applicationcache nsiapplicationcache the application cache with which the object is associated.
nsIBadCertListener2
ring targetsite ); parameters socketinfo a network communication context that can be used to obtain more information about the active connection.
nsICRLInfo
ficate authority (ca).
nsICache
the nsicache is a namespace for various cache constants.
nsICacheService
cache.
nsIChromeRegistry
constants constant value description none 0 partial 1 full 2 methods canonify() obsolete since gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) note: this method is obsolete; use convertchromeurl() instead.
nsIConsoleMessage
onsoleservice.
nsIContentPref
nsicontentpref dom/interfaces/base/nsicontentprefservice2.idlscriptable a content preference 1.0 66 introduced gecko 20.0 inherits from: nsisupports last changed in gecko 20.0 (firefox 20.0 / thunderbird 20.0 / seamonkey 2.17) attributes attribute type description domain astring read only.
nsIControllers
troller has since been removed.
nsICookiePermission
tent docshell or its principal's uri cannot be obtained, this method will throw.
nsICrashReporter
e on get if no url is set.
nsIDNSListener
verview void onlookupcomplete(in nsicancelable arequest, in nsidnsrecord arecord, in nsresult astatus); methods onlookupcomplete() called when an asynchronous host lookup completes.
nsIDNSRecord
than one resolved ip address, the record acts like an enumerator, allowing the caller to easily step through the list of ip addresses.
nsIDOMOfflineResourceList
void swapcache(); parameters none.
nsIDOMSerializer
ostream() the subtree rooted by the specified element is serialized to a byte stream using the character set specified.
nsIDOMUserDataHandler
cko 1.5 inherits from: nsisupports last changed in gecko 1.9 (firefox 3) method overview void handle(in unsigned short operation, in domstring key, in nsivariant data, in nsidomnode src, in nsidomnode dst); constants constant value description node_cloned 1 the node was cloned.
nsIDeviceMotion
xpcom/system/nsidevicemotion.idlscriptable this interface is used to implement accelerometer support.
nsIDeviceMotionData
xpcom/system/nsidevicemotion.idlscriptable this interface provides information about device motion.
nsIDirectoryServiceProvider
ts from: nsisupports last changed in gecko 1.7 nsidirectoryserviceprovider.
nsIDirectoryServiceProvider2
e files to be returned for the given key.
nsIDownload
nloadmanager::download_failed, and nsidownloadmanager::download_canceled.
ExtensionManager (Toolkit)
.0, and has been replaced by the new add-on manager.
nsIFeed
ator nsifeedgenerator describes the software that produced a feed.
nsIFeedGenerator
toolkit/components/feeds/public/nsifeedgenerator.idlscriptable this interface describes the software that generated an rss or atom news feed.
nsIHttpServer
an example : https://github.com/laurentj/slimerjs/blob/master/src/modules/webserver.jsm var exported_symbols = ["create"]; components.utils.import("resource://gre/modules/services.jsm"); function create() { var server = components.classes["@mozilla.org/server/jshttp;1"] .createinstance(components.interfaces.nsihttpserver); return { get objectname () { return "webserver"; }, /** * @param integer|string port port or "host:port" * @param object opt optional options.
nsIInstallLocation
ntain items potential dropped-in xpis note: this enumeration resolves text links to the directories they refer to.
nsILocalFileMac
nchwithdoc(in nsilocalfile adoctoload, in boolean alaunchinbackground); void opendocwithapp(in nsilocalfile aapptoopenwith, in boolean alaunchinbackground); void setfiletypeandcreatorfromextension(in string aextension); obsolete since gecko 1.9.2 void setfiletypeandcreatorfrommimetype(in string amimetype); obsolete since gecko 1.9.2 attributes attribute type description bundledisplayname astring returns the display name of the application bundle (usually the human readable name of the application) read only.
nsILocale
intl/locale/idl/nsilocale.idlscriptable represents one locale, which can be used for things like sorting text strings and formatting numbers, dates and times.
nsIMemoryReporter
nd constants below.
nsIMessageWakeupService
gory in "chrome registration").
nsIMsgSearchSession
tion searchterms nsisupportsarray readonly: numsearchterms unsigned long readonly: runningadapter nsimsgsearchadapter readonly: searchparam voidptr not scriptable and readonly: searchtype nsmsgsearchtype readonly: numresults long readonly: window nsimsgwindow constants name value description booleanor 0 booleanand 1 methods addsearchterm() void addsearchterm(in nsmsgsearchattribvalue attrib, in nsmsgsearchopvalue op, in nsimsgsearchvalue value, in boolean booleanand, in string arbitraryheader); parameters attrib attribute for this t...
nsINavBookmarkObserver
item that was changed.
nsINavHistoryQueryOptions
in sort_by_annotation_* sorting modes.
nsIPermissionManager
nformation for a given host string and permission type.
nsIPlacesImportExportService
ce.idlscriptable provides methods for exporting places data.
nsIPrintingPrompt
econtextspec specific to that platform was created.
nsIPrompt
in wstring button2title, in wstring checkmsg, inout boolean checkvalue); boolean prompt(in wstring dialogtitle, in wstring text, inout wstring value, in wstring checkmsg, inout boolean checkvalue); boolean promptpassword(in wstring dialogtitle, in wstring text, inout wstring password, in wstring checkmsg, inout boolean checkvalue); boolean promptusernameandpassword(in wstring dialogtitle, in wstring text, inout wstring username, inout wstring password, in wstring checkmsg, inout boolean checkvalue); boolean select(in wstring dialogtitle, in wstring text, in pruint32 count, [array, size_is(count)] in wstring selectlist, out long outselection); constants the button flags defined in nsiprompt are the same as those defined in...
nsISSLErrorListener
slerror() called in case of an ssl error.
nsIServerSocket
erver socket is bound.
nsIServiceManager
.
nsISocketTransportService
ay<acstring> asockettypes, in autf8string ahost, in long aport, in nsiproxyinfo aproxyinfo ); parameters asockettypes array of socket type strings.
nsITXTToHTMLConv
l.
nsITransport
/nsitransport.idlscriptable this interface provides a common way of accessing i/o streams connected to some resource.
nsITransportSecurityInfo
nsisupports last changed in gecko 1.9 (firefox 3) attributes attribute type description errormessage wstring error message on connection failure.
nsIUTF8ConverterService
iiness' and 'utf8ness' check.
nsIUpdatePatch
ged in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview nsidomelement serialize(in nsidomdocument updates); attributes attribute type description finalurl astring the final url this patch was being downloaded from.
nsIWebSocketChannel
never null.
nsIWebappsSupport
onkey 2.1) method overview void installapplication(in wstring title, in wstring uri, in wstring iconuri, in wstring icondata); boolean isapplicationinstalled(in wstring uri); methods installapplication() this method installs a web application.
nsIWinTaskbar
ters with the system.
nsIXFormsNSModelElement
riptable, uuid(85fd60c7-1db7-40c0-ae8d-f723fdd1eea8)] interface nsixformsnsmodelelement : nsisupports { nsidomnodelist getinstancedocuments(); }; methods getinstancedocuments nsidomnodelist getinstancedocuments(); getinstancedocuments returns a nsidomnodelist containing all the instance documents for the model, making it possible to enumerate over instances in the model without knowing their names.
nsIXULTemplateQueryProcessor
ember variable may be specified in a similar way using the "member" attribute, or it may be specified in the first <action> body in the template as the value of a uri attribute on an element.
nsMsgFilterFileAttribValue
defined in comm-central/ mailnews/ base/ search/ public/ nsimsgfilterlist.idl const nsmsgfilterfileattribvalue attribnone = 0; const nsmsgfilterfileattribvalue attribversion = 1; const nsmsgfilterfileattribvalue attriblogging = 2; const nsmsgfilterfileattribvalue attribname = 3; const nsmsgfilterfileattribvalue attribenabled = 4; const nsmsgfilterfileattribvalue attribdescription = 5; const nsmsgfilterfileattribvalue attribtype = 6; const nsmsgfilterfileattribvalue attribscriptfile = 7; const nsmsgfilterfileattribvalue attribaction = 8; const nsmsgfilterfileattribvalue attribactionvalue = 9; const nsmsgfilterfileattribvalue attribcondition = 10; const nsmsgfilterfileattribvalue attribcustomid = 11; ...
nsMsgSearchOp
8; const nsmsgsearchopvalue beginswith = 9; const nsmsgsearchopvalue endswith = 10; const nsmsgsearchopvalue soundslike = 11; /* for ldap phoenetic matching */ const nsmsgsearchopvalue ldapdwim = 12; /* do what i mean for simple search */ const nsmsgsearchopvalue isgreaterthan = 13; const nsmsgsearchopvalue islessthan = 14; const nsmsgsearchopvalue namecompletion = 15; /* name completion operator...as the name implies =) */ const nsmsgsearchopvalue isinab = 16; const nsmsgsearchopvalue isntinab = 17; const nsmsgsearchopvalue isntempty = 18; /* primarily for tags */ const nsmsgsearchopvalue matches = 19; /* generic term for use by custom terms */ const nsmsgsearchopvalue doesntmatch = 20; /* generic term for use by custom...
nsMsgSearchTypeValue
fined in comm-central/ mailnews/ base/ search/ public/ nsmsgsearchcore.idl used to specify type of search to be performed [scriptable,uuid(964b7f32-304e-11d3-ae13-00a0c900d445)] interface nsmsgsearchtype { const nsmsgsearchtypevalue none = 0; const nsmsgsearchtypevalue rootdse = 1; const nsmsgsearchtypevalue normal = 2; const nsmsgsearchtypevalue ldapvlv = 3; const nsmsgsearchtypevalue namecompletion = 4; }; ...
nsPIPromptService
og.
XPCOM Interface Reference
statesnsiaccessibletablensiaccessibletablecellnsiaccessibletablechangeeventnsiaccessibletextnsiaccessibletextchangeeventnsiaccessibletreecachensiaccessiblevaluensiaccessiblewin32objectnsialertsservicensiannotationobservernsiannotationservicensiappshellnsiappshellservicensiappstartupnsiappstartup_mozilla_2_0nsiapplicationcachensiapplicationcachechannelnsiapplicationcachecontainernsiapplicationcachenamespacensiapplicationcacheservicensiapplicationupdateservicensiarraynsiasyncinputstreamnsiasyncoutputstreamnsiasyncstreamcopiernsiasyncverifyredirectcallbacknsiauthinformationnsiauthmodulensiauthpromptnsiauthprompt2nsiauthpromptadapterfactorynsiauthpromptcallbacknsiauthpromptprovidernsiauthpromptwrappernsiautocompletecontrollernsiautocompleteinputnsiautocompleteitemnsiautocompletelistenernsiautocomp...
nsMsgMessageFlags
the nsmsgmessageflags interface describes possible flags for messages.
nsMsgNavigationType
ts.interfaces.nsmsgnavigationtype.nextmessage, resultid, resultindex, threadindex, true); the nsmsgnavigationtype interface is defined as a global variable in thunderbird: var nsmsgviewcommandtype = components.interfaces.nsmsgviewcommandtype; mailnews/base/public/nsimsgdbview.idlscriptable please add a summary to this article.
nsMsgSearchOpValue
archopvalue beginswith = 9; 163 const nsmsgsearchopvalue endswith = 10; 164 165 const nsmsgsearchopvalue soundslike = 11; /* for ldap phoenetic matching */ 166 const nsmsgsearchopvalue ldapdwim = 12; /* do what i mean for simple search */ 167 168 const nsmsgsearchopvalue isgreaterthan = 13; 169 const nsmsgsearchopvalue islessthan = 14; 170 171 const nsmsgsearchopvalue namecompletion = 15; /* name completion operator...as the name implies =) */ 172 const nsmsgsearchopvalue isinab = 16; 173 const nsmsgsearchopvalue isntinab = 17; 174 const nsmsgsearchopvalue isntempty = 18; /* primarily for tags */ 175 const nsmsgsearchopvalue matches = 19; /* generic term for use by custom terms */ 176 const nsmsgsearchopvalue doesntmatch = 20; /* generic term fo...
nsMsgViewCommandCheckState
the nsmsgviewcommandcheckstate interface contains constants used for command status in thunderbird.
nsMsgViewCommandType
mandtype interface contains constants used for commands in thunderbird.
nsMsgViewFlagsType
the nsmsgviewflagstype interface contains constants used for view flags in thunderbird.
nsMsgViewSortOrder
contains constants used for sort direction in thunderbird.
nsMsgViewSortType
ontains constants used for sorting the thunderbird threadpane.
nsMsgViewType
the nsmsgviewtype interface contains constants used for views in thunderbird.
XPCOM reference
from c++ code.xpcom interface referencethis is a reference to the xpcom interfaces provided by the mozilla platform.xpcom interface reference by groupingthis page lists the current (as of dec.
Frequently Asked Questions
king in the right place.
Reference Manual
oo* foo; getfoo(&foo); getfoo2(foo); getsomething((void**)&foo); // |nscomptr|s...
XPCOM
e component in python using pyxpcom.fun with xbl and xpconnectgenerating guidsguids are used in mozilla programming for identifying several types of entities, including xpcom interfaces (this type of guids is callled iid), components (cid), and legacy add-ons—like extensions and themes—that were created prior to firefox 1.5.
Mail composition back end
ions that can occur in a message send call.
Mail event system
newvalue) { listenerhasfired=true; var propertystring = property.getunicode(); dump("onintpropertychanged has fired with property + " + propertystring + "!\n"); if (propertystring == "totalmessages") { totalmessageslistenerhasfired=true; //now show us visually var folder = item.queryinterface(components.interfaces.nsimsgfolder); dump("the folder " + folder.prettyname + " now has " + newvalue + " messages."); } else if (propertystring == "testproperty") { dump("recieved integer test property fired on folder " + folder.prettyname + " with values " + oldvalue + " and " + newvalue + "\n"); } // set up the folder listener to point to the above function var folderlistener = { onitemadded: function(parent, item, viewstring) {}, onite...
Spam filtering
warning: the content of this article may be out of date.
Building a Thunderbird extension 5: XUL
with the following content: <?xml version="1.0"?> <overlay id="sample" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script type="application/javascript" src="chrome://myfirstext/content/overlay.js"/><!-- a reference to your javascript file --> <statusbar id="status-bar"> <statusbarpanel id="my-panel" label="date"/> </statusbar> </overlay> the <statusbar> widget named status-bar specifies the merge point within the application window that we want to attach to.
Building a Thunderbird extension 6: Adding JavaScript
tep we will create a small piece of javascript code that inserts the current date into our statusbar widget.
Creating a Custom Column
ension developer is to populate the code with your feature.
Access StringBundle from Overlay
ing stringbundleset as such: <stringbundleset id="stringbundleset"> <stringbundle src="chrome://your_extension/locale/overlay.properties" id="your-extension-strings" /> </stringbundleset> now that your stringbundle is attached you can access it from javascript as follows: var str = document.getelementbyid("your-extension-strings"); //get the stringbundle object itself str.getstring("propertyname"); //get a string (and do something with it) alternative way let stringbundleservice = cc["@mozilla.org/intl/stringbundle;1"].getservice(ci.nsistringbundleservice); let bundle = stringbundleservice.createbundle("chrome://your_extension/locale/overlay.properties"); let str = bundle.getstringfromname("propertyname"); see nsistringbundleservice ...
customDBHeaders Preference
:version> <em:type>2</em:type> <!-- 2 is type 'extension' --> <em:targetapplication> <description> <!-- this next line identifies tbird as target --> <em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id> <em:minversion>2*</em:minversion> <em:maxversion>3.0.0.*</em:maxversion> </description> </em:targetapplication> <em:name>superfluous</em:name> <em:description>test superfluous extension</em:description> <em:creator>garrett comeaux</em:creator> </description> </rdf> build process: [gcomeaux@kyle tbird-ext]$ cd superfluous/ [gcomeaux@kyle superfluous]$ make zip superfluous.xpi chrome/ chrome.manifest chrome/content/ chrome/content/superfluous.js chrome/content/superfluous_overlay.xul install.rdf addin...
Toolkit version format
< 1.1aa < 1.1ab < 1.1b < 1.1c < 1.1pre == 1.1pre0 == 1.0+ < 1.1pre1a < 1.1pre1aa < 1.1pre1b < 1.1pre1 < 1.1pre2 < 1.1pre10 < 1.1.-1 < 1.1 == 1.1.0 == 1.1.00 < 1.10 < 1.* < 1.*.1 < 2.0 technical reference for those interested in seeing the implementation of toolkit version comparison, see nsversioncomparator.cpp.
Using COM from js-ctypes
msdn.microsoft.com/en-us/library/windows/desktop/ms686615%28v=vs.85%29.aspx let cocreateinstance = lib.declare('cocreateinstance', winabi, hresult, // return refclsid, // rclsid lpunknown, // punkouter dword, // dwclscontext refiid, // riid lpvoid // *ppv ); // helper functions function checkhresult(hr /*primative hresult*/, funcname /*jsstr*/) { // primative because thats what is returned by declared functions that // return hresult hr = hr.tostring(); // makes it primative if (hr < 0) { console.error('hresult', hr, 'returned from function ', funcname /*, 'getstrofresult:', getstrofresult(hr)*/); throw new error('hresult ' + hr + ' returned from function ' + funcname); ...
CData
arg are implementation-defined javascript expressions intended to represent the type of the cdata object and its value, respectively.
Browser Side Plug-in API - Plugins
« previousnext » this chapter describes methods in the plug-in api that are available from the browser.
Version, UI, and Status Information - Plugins
is always displayed, but you have no control over how long it stays in the status line before another message replaces it.
Preferences System
n: getting started | examples | troubleshooting reference: prefwindow | prefpane | preferences | preference | xul attributes use code for a typical preferences window may look like this: <prefwindow id="apppreferences" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <prefpane id="pane1" label="&pane1.title;"> <preferences> <preference id="pref1" name="pref.name" type="bool"/> </preferences> ..
DOM Inspector - Firefox Developer Tools
the following options: ac_add_options --enable-extensions="default inspector" ac_add_options --enable-inspector-apis mozilla suite and seamonkey select tools > web development > dom inspector.
Debugging service workers - Firefox Developer Tools
want to alter the behavior slightly, you previously had to manually write code to empty the cache, and then fill it again.
Browser Console - Firefox Developer Tools
nclick: logerror }); function logerror() { console.error("something went wrong!"); } if you build this as an xpi file, then open the browser console, then open the xpi file in firefox and install it, you'll see a widget labeled "error!" in the add-on bar: click the icon.
Break on DOM mutation - Firefox Developer Tools
tting element.id.
Examine, modify, and watch variables - Firefox Developer Tools
scope you'll see the built-in arguments and this variables as well as local variables defined by the function like user and greeting.
Ignore a source - Firefox Developer Tools
t the internal implementation of these libraries.
Set a breakpoint - Firefox Developer Tools
) or cmd + shift + b (macos).
Debugger keyboard shortcuts - Firefox Developer Tools
command windows macos linux close current file ctrl + w cmd + w ctrl + w search for a string in the current file ctrl + f cmd + f ctrl + f search for a string in all files ctrl + shift + f cmd + shift + f ctrl + shift + f find next in the current file ctrl + g cmd + g ctrl + g search for scripts by name ctrl + p cmd + p ctrl + p resume execution when at a breakpoint f8 f8 1 f8 step over f10 f10 1 f10 step into f11 f11 1 f11 step out shift + f11 shift + f11 1 shift + f11 toggle breakpoint on the currently selected line ctrl + b cmd + b ctrl + b toggle conditional breakpoint on the currently...
Tutorial: Set a breakpoint - Firefox Developer Tools
bugger.object referring to the window.
All keyboard shortcuts - Firefox Developer Tools
command windows macos linux close current file ctrl + w cmd + w ctrl + w search for a string in the current file ctrl + f cmd + f ctrl + f search for a string in all files ctrl + shift + f cmd + shift + f ctrl + shift + f find next in the current file ctrl + g cmd + g ctrl + g search for scripts by name ctrl + p cmd + p ctrl + p resume execution when at a breakpoint f8 f8 1 f8 step over f10 f10 1 f10 step into f11 f11 1 f11 step out shift + f11 shift + f11 1 shift + f11 toggle breakpoint on the currently selected line ctrl + b cmd + b ctrl + b toggle conditional breakpoint on the currently...
Basic operations - Firefox Developer Tools
he large pane on the right-hand side.
Page inspector 3-pane mode - Firefox Developer Tools
2 in earlier versions of firefox (since firefox 59/60), you can enable 3 pane mode in release/beta by going to about:config and flipping the following prefs to true: devtools.inspector.split-rule-enabled — this switches 3-pane mode on and off.
Examine Event Listeners - Firefox Developer Tools
event" next to elements in the html pane, that have event listeners bound to them: click the icon, then you'll see a popup listing all the event listeners bound to this element: each line contains: a right-pointing arrowhead; click to expand the row and show the listener function source code a curved arrow pointing to a stack; click it to show the code for the handler in the debugger the name of the event for which a handler was attached to this element the name and line number for the listener; you can also click here to expand the row and view the listener function source code a label indicating whether the event bubbles a label indicating the system that defines the event.
Allocations - Firefox Developer Tools
of bytes allocated in the allocation-samples in this function (also shown as a percentage of the total) rows are sorted by the "self bytes" column.
Call Tree - Firefox Developer Tools
time to run, or because they are called very often.
Intensive JavaScript - Firefox Developer Tools
pressed the button, the browser ran a javascript function, or series of functions, that blocked the main thread for 71.73ms, or more than four times our frame budget.
Local Storage / Session Storage - Firefox Developer Tools
when an origin corresponding to local storage or session storage is selected within the storage inspector, the names and values of all the items corresponding to local storage or session storage will be listed in a table.
Style Editor - Firefox Developer Tools
style editor activated: the style editor is divided into three main sections: the style sheet pane on the left the editor on the right the media sidebar.
Web Audio Editor - Firefox Developer Tools
ornode as the source, a gainnode to control the volume, and an gainnode as the destination.
Rich output - Firefox Developer Tools
when the web console prints objects, it includes a richer set of information than just the object's name.
about:debugging (before Firefox 68) - Firefox Developer Tools
ode, watch variables, evaluate code, and so on: registering workers at first, you won't see any workers listed under service workers or shared workers.
AbortController - Web APIs
tlistener('click', fetchvideo); abortbtn.addeventlistener('click', function() { controller.abort(); console.log('download aborted'); }); function fetchvideo() { ...
AbortSignal - Web APIs
quired via an abortcontroller object.
AddressErrors.regionCode - Web APIs
paymentaddress object's regioncode property could not be validated, this property contains a domstring offering a human-readable explanation of the validation error and offers suggestions for correcting it.
AesCbcParams - Web APIs
the aescbcparams dictionary of the web crypto api represents the object that should be passed as the algorithm parameter into subtlecrypto.encrypt(), subtlecrypto.decrypt(), subtlecrypto.wrapkey(), or subtlecrypto.unwrapkey(), when using the aes-cbc algorithm.
AesCtrParams - Web APIs
e reused with the same key.
AesGcmParams - Web APIs
ypto api represents the object that should be passed as the algorithm parameter into subtlecrypto.encrypt(), subtlecrypto.decrypt(), subtlecrypto.wrapkey(), or subtlecrypto.unwrapkey(), when using the aes-gcm algorithm.
AesKeyGenParams - Web APIs
the aeskeygenparams dictionary of the web crypto api represents the object that should be passed as the algorithm parameter into subtlecrypto.generatekey(), when generating an aes key: that is, when the algorithm is identified as any of aes-cbc, aes-ctr, aes-gcm, or aes-kw.
AmbientLightSensor.illuminance - Web APIs
policy for implementation insfructions.
AmbientLightSensor - Web APIs
r object.
Ambient Light Events - Web APIs
.
AnalyserNode.fftSize - Web APIs
dow size of the fft, given in number of samples.
AnalyserNode.getFloatFrequencyData() - Web APIs
style" to a <canvas> element.
Animation.cancel() - Web APIs
Web › API › Animation › cancel
caused by this animation and aborts its playback.
AnimationPlaybackEvent.AnimationPlaybackEvent() - Web APIs
the animationplaybackevent() constructor of the web animations api returns a new animationplaybackevent object instance.
AudioContext.createJavaScriptNode() - Web APIs
the audiocontext.createjavascriptnode() method creates a javascriptnode which is used for directly manipulating audio data with javascript.
AudioContextOptions.latencyHint - Web APIs
the audiocontextoptions dictionary (used when instantiating an audiocontext) may contain a property named latencyhint, which indicates the preferred maximum latency in seconds for the audio context.
AudioContextOptions.sampleRate - Web APIs
the audiocontextoptions dictionary (used when instantiating an audiocontext) may contain a property named samplerate, which indicates the sample rate to use for the new context.
AudioParamMap - Web APIs
the web audio api interface audioparammap represents a set of multiple audio parameters, each described as a mapping of a domstring identifying the parameter to the audioparam object representing its value.
AudioScheduledSourceNode - Web APIs
ollowing methods: start() schedules the node to begin playing the constant sound at the specified time.
AudioWorkletNode.port - Web APIs
letprocessor { constructor (...args) { super(...args) this.port.onmessage = (e) => { console.log(e.data) this.port.postmessage('pong') } } process (inputs, outputs, parameters) { return true } } registerprocessor('ping-pong-processor', pingpongprocessor) now in our main scripts file we'll load the processor, create an instance of audioworkletnode passing the name of the processor, and connect the node to an audio graph.
AudioWorkletNode - Web APIs
(inputs, outputs, parameters) { const output = outputs[0] output.foreach(channel => { for (let i = 0; i < channel.length; i++) { channel[i] = math.random() * 2 - 1 } }) return true } } registerprocessor('white-noise-processor', whitenoiseprocessor) next, in our main script file we'll load the processor, create an instance of audioworkletnode passing it the name of the processor, and connect the node to an audio graph.
AudioWorkletNodeOptions - Web APIs
ptional an array defining the number of channels for each output.
AudioWorkletProcessor.port - Web APIs
letprocessor { constructor (...args) { super(...args) this.port.onmessage = (e) => { console.log(e.data) this.port.postmessage('pong') } } process (inputs, outputs, parameters) { return true } } registerprocessor('ping-pong-processor', pingpongprocessor) now in our main scripts file we'll load the processor, create an instance of audioworkletnode passing the name of the processor, and connect the node to an audio graph.
AudioWorkletProcessor - Web APIs
inputs, outputs, parameters) { const output = outputs[0] output.foreach(channel => { for (let i = 0; i < channel.length; i++) { channel[i] = math.random() * 2 - 1 } }) return true } } registerprocessor('white-noise-processor', whitenoiseprocessor) next, in our main script file we'll load the processor, create an instance of audioworkletnode, passing it the name of the processor, then connect the node to an audio graph.
AuthenticatorAssertionResponse.userHandle - Web APIs
er calling navigator.credentials.get().
AuthenticatorResponse - Web APIs
ickey": options }) .then(function (credentialinfoassertion) { var assertionresponse = credentialinfoassertion.response; // send assertion response back to the server // to proceed with the control of the credential }).catch(function (err) { console.error(err); }); getting an authenticatorattestationresponse var publickey = { challenge: /* from the server */, rp: { name: "example corp", id : "login.example.com" }, user: { id: new uint8array(16), name: "jdoe@example.com", displayname: "john doe" }, pubkeycredparams: [ { type: "public-key", alg: -7 } ] }; navigator.credentials.create({ publickey }) .then(function (newcredentialinfo) { var attestationresponse = newcredentialinfo.response; }).catch(function (er...
BasicCardRequest - Web APIs
entrequest.show() and the promise resolves successfully, the paymentresponse object available inside the fulfilled promise (instrumentresponse above) will have a paymentresponse.details property that will contain response details.
BasicCardResponse.billingAddress - Web APIs
entrequest.show() and the promise resolves successfully, the paymentresponse object available inside the fulfilled promise (instrumentresponse above) will have a paymentresponse.details property that will contain response details.
BasicCardResponse.cardNumber - Web APIs
entrequest.show() and the promise resolves successfully, the paymentresponse object available inside the fulfilled promise (instrumentresponse above) will have a paymentresponse.details property that will contain response details.
BasicCardResponse.cardSecurityCode - Web APIs
entrequest.show() and the promise resolves successfully, the paymentresponse object available inside the fulfilled promise (instrumentresponse above) will have a paymentresponse.details property that will contain response details.
BasicCardResponse.expiryMonth - Web APIs
entrequest.show() and the promise resolves successfully, the paymentresponse object available inside the fulfilled promise (instrumentresponse above) will have a paymentresponse.details property that will contain response details.
BasicCardResponse.expiryYear - Web APIs
entrequest.show() and the promise resolves successfully, the paymentresponse object available inside the fulfilled promise (instrumentresponse above) will have a paymentresponse.details property that will contain response details.
Blob.text() - Web APIs
Web › API › Blob › text
ilereader method readastext() is an older method that performs a similar function.
Body.json() - Web APIs
Web › API › Body › json
list items to display our product data.
BroadcastChannel: message event - Web APIs
r property onmessage examples live example in this example there's a "sender" <iframe> that broadcasts the contents of a <textarea> when the user clicks a button.
BroadcastChannel.onmessage - Web APIs
the broadcastchannel.onmessage event handler is a property that specifies the function to execute when a message event, of type messageevent, is received by this broadcastchannel.
CSS numeric factory functions - Web APIs
the css numeric factory functions, such as css.em() and css.turn() are methods that return cssunitvalues with the value being the numeric argument and the unit being the name of the method used.
CSS - Web APIs
Web › API › CSS
lt values, and properties that do or do not inherit their value.
CSSKeywordValue - Web APIs
the csskeywordvalue interface of the the css typed object model api creates an object to represent css keywords and other identifiers.
CSSStyleDeclaration.getPropertyPriority() - Web APIs
the cssstyledeclaration.getpropertypriority() method interface returns a domstring that provides all explicitly set priorities on the css property.
CSSStyleDeclaration.getPropertyValue() - Web APIs
the cssstyledeclaration.getpropertyvalue() method interface returns a domstring containing the value of a specified css property.
CSSVariableReferenceValue() - Web APIs
creates a new cssvariablereferencevalue.
CSS Object Model (CSSOM) - Web APIs
ript.
CSS Properties and Values API - Web APIs
s interface through css.registerproperty in javascript.
Cache.delete() - Web APIs
Web › API › Cache › delete
rue, prevents matching operations from validating the request http method (normally only get and head are allowed.) it defaults to false.
Cache.keys() - Web APIs
Web › API › Cache › keys
rue, prevents matching operations from validating the request http method (normally only get and head are allowed.) it defaults to false.
CacheStorage.match() - Web APIs
prevents matching operations from validating the request http method (normally only get and head are allowed.) it defaults to false.
CanvasCaptureMediaStreamTrack.canvas - Web APIs
the canvascapturemediastreamtrack canvas read-only property returns the htmlcanvaselement from which frames are being captured.
CanvasCaptureMediaStreamTrack.requestFrame() - Web APIs
g out that at this time, no exceptions are being thrown if the canvas isn't origin-clean.
CanvasRenderingContext2D.arcTo() - Web APIs
nvas> javascript const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); ctx.beginpath(); ctx.moveto(180, 90); ctx.arcto(180,130, 110,130, 130); ctx.lineto(110, 130); ctx.stroke(); result live demo more sophisticated demo of the method.
A basic ray-caster - Web APIs
o the distance to the wall.
Pixel manipulation with canvas - Web APIs
iasing is enabled by default, we might want to disable the smoothing to see clear pixels.
Clients - Web APIs
Web › API › Clients
es a new one when the user clicks a notification.
Clipboard.read() - Web APIs
Web › API › Clipboard › read
allow) "clipboard-read" access, this example fetches the data currently on the clipboard.
ClipboardEvent() - Web APIs
the clipboardevent() constructor returns a newly created clipboardevent, representing an event providing information related to modification of the clipboard, that is cut, copy, and paste events.
ClipboardItem() - Web APIs
note: you can only pass in one clipboard item at a time.
ClipboardItem.getType() - Web APIs
and return the corresponding blob object.
ClipboardItem.types - Web APIs
the specified type, an error is returned.
CloseEvent() - Web APIs
the closeevent() constructor creates a new closeevent.
CloseEvent - Web APIs
the following values are permitted status codes.
CompositionEvent.CompositionEvent() - Web APIs
the compositionevent() constructor creates a new compositionevent object instance.
ConstantSourceNode.offset - Web APIs
the read-only offset property of the constantsourcenode interface returns a audioparam object indicating the numeric a-rate value which is always returned by the source when asked for the next sample.
ConstrainBoolean - Web APIs
value if possible once all efforts have been made to match the exact and ideal values for other properties.
ConstrainDOMString - Web APIs
sted values will be used, but if it's not possible, the user agent will use the closest possible match.
ConstrainDouble - Web APIs
g a value the property would ideally have, but which can be considered optional if necessary to find a match.
ConstrainULong - Web APIs
ing a value the property would ideally have, but which can be considered optional if necessary to find a match.
Credential.id - Web APIs
Web › API › Credential › id
the id property of the credential interface returns a domstring containing the credential's identifier.
Credential.type - Web APIs
Web › API › Credential › type
the type property of the credential interface returns a domstring containing the credential's type.
Credential - Web APIs
the credential interface of the the credential management api provides information about an entity as a prerequisite to a trust decision.
Crypto.getRandomValues() - Web APIs
int16array, a uint16array, an int32array, or a uint32array.
CustomEvent() - Web APIs
the customevent() constructor creates a new customevent.
CustomEvent.initCustomEvent() - Web APIs
doesn't do anything anymore.
CustomEvent - Web APIs
urposes.
DOMException.code - Web APIs
Web › API › DOMException › code
the code read-only property of the domexception interface returns a short that contains one of the error code constants, or 0 if none match.
DOMException.message - Web APIs
the message read-only property of the domexception interface returns a domstring representing a message or description associated with the given error name.
DOMImplementation.hasFeature() - Web APIs
d modern browsers return true in all cases.
DOMPointInit - Web APIs
reen.
DOMTokenList.remove() - Web APIs
<span class="a b c"></span> now the javascript: let span = document.queryselector("span"); let classes = span.classlist; classes.remove("c"); span.textcontent = classes; the output looks like this: to remove multiple classes at once, you can supply multiple tokens.
Detecting device orientation - Web APIs
leorientation); click here to open this example in a new window; because deviceorientation doesn't work in a cross-origin <iframe> in all browsers.
Document.alinkColor - Web APIs
returns or sets the color of an active link in the document body.
Document: animationcancel event - Web APIs
the animationcancel event is fired when a css animation unexpectedly aborts.
Document.caretRangeFromPoint() - Web APIs
ange = document.caretrangefrompoint(e.clientx, e.clienty); textnode = range.startcontainer; offset = range.startoffset; } // only split text_nodes if (textnode && textnode.nodetype == 3) { let replacement = textnode.splittext(offset); let br = document.createelement('br'); textnode.parentnode.insertbefore(br, replacement); } } let paragraphs = document.getelementsbytagname("p"); for (let i = 0; i < paragraphs.length; i++) { paragraphs[i].addeventlistener('click', insertbreakatpoint, false); } result ...
Document.characterSet - Web APIs
the document.characterset read-only property returns the character encoding of the document that it's currently rendered with.
Document.compatMode - Web APIs
quirks mode or standards mode.
Document.createCDATASection() - Web APIs
ata section node, and returns it.
Document.createComment() - Web APIs
createcomment() creates a new comment node, and returns it.
Document.createEvent() - Web APIs
arget.dispatchevent.
Document.createNodeIterator() - Web APIs
4 specification, and has therefore been removed.
Document.forms - Web APIs
Web › API › Document › forms
rm" /> </form> <form id="dave"> <input type="button" onclick="alert(document.forms[1].id);" value="dave's form" /> </form> <form id="paul"> <input type="button" onclick="alert(document.forms[2].id);" value="paul's form" /> </form> </body> </html> getting an element from within a form var selectform = document.forms[index]; var selectformelement = document.forms[index].elements[index]; named form access <!doctype html> <html lang="en"> <head> <title>document.forms example</title> </head> <body> <form name="login"> <input name="email" type="email"> <input name="password" type="password"> <button type="submit">log in</button> </form> <script> var loginform = document.forms.login; // or document.forms['login'] loginform.elements.email.placeholder = 'test@example.com'; ...
Document.images - Web APIs
Web › API › Document › images
the collection is an htmlimageelement representing a single image element.
Document.mozSetImageElement() - Web APIs
the document.mozsetimageelement() method changes the element being used as the css background for a background with a given background element id.
Document.onvisibilitychange - Web APIs
the document.onvisibilitychange property represents the event handler that is called when a visibilitychange event reaches this object.
Document.querySelectorAll() - Web APIs
, we get a list of <p> elements whose immediate parent element is a <div> with the class highlighted and which are located inside a container whose id is test.
Document.styleSheetSets - Web APIs
the stylesheetsets read-only property returns a live list of all of the currently-available style sheet sets.
DocumentOrShadowRoot.caretPositionFromPoint() - Web APIs
trangefrompoint(e.clientx, e.clienty); textnode = range.startcontainer; offset = range.startoffset; } // only split text_nodes if (textnode.nodetype == 3) { var replacement = textnode.splittext(offset); var br = document.createelement('br'); textnode.parentnode.insertbefore(br, replacement); } } window.onload = function (){ var paragraphs = document.getelementsbytagname("p"); for (i=0 ; i < paragraphs.length; i++) { paragraphs[i].addeventlistener("click", insertbreakatpoint, false); } }; specifications specification status comment css object model (cssom) view modulethe definition of 'caretpositionfrompoint()' in that specification.
DocumentOrShadowRoot.elementsFromPoint() - Web APIs
of a point.
DocumentOrShadowRoot.nodeFromPoint() - Web APIs
nate of a point.
DocumentOrShadowRoot.nodesFromPoint() - Web APIs
coordinate of a point.
Events and the DOM - Web APIs
he first argument.
How whitespace is handled by HTML, CSS, and in the DOM - Web APIs
es the use of the functions above.
DragEvent() - Web APIs
ugh this interface has a constructor, it is not possible to create a useful datatransfer object from script, since datatransfer objects have a processing and security model that is coordinated by the browser during drag-and-drops.
EXT_disjoint_timer_query - Web APIs
set of gl commands, without stalling the rendering pipeline.
EcdhKeyDeriveParams - Web APIs
public and a private key to derive a shared secret.
EcdsaParams - Web APIs
the ecdsaparams dictionary of the web crypto api represents the object that should be passed as the algorithm parameter into subtlecrypto.sign() or subtlecrypto.verify() when using the ecdsa algorithm.
EffectTiming.fill - Web APIs
Web › API › EffectTiming › fill
playing, in spite of and during any enddelay, delay and/or pending or finished playstate.
Element: compositionstart event - Web APIs
bubbles yes cancelable yes interface compositionevent event handler property none examples const inputelement = document.queryselector('input[type="text"]'); inputelement.addeventlistener('compositionstart', (event) => { console.log(`generated characters were: ${event.data}`); }); live example html <div class="control"> <label for="name">on macos, click in the textbox below,<br> then type <kbd>option</kbd> + <kbd>`</kbd>, then <kbd>a</kbd>:</label> <input type="text" id="example" name="example"> </div> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents" rows="8" cols="25"></textarea> <button class="clear-log">clear</button> </div> css body { padding: .2rem; display: gri...
Element: compositionupdate event - Web APIs
bubbles yes cancelable yes interface compositionevent event handler property none examples const inputelement = document.queryselector('input[type="text"]'); inputelement.addeventlistener('compositionupdate', (event) => { console.log(`generated characters were: ${event.data}`); }); live example html <div class="control"> <label for="name">on macos, click in the textbox below,<br> then type <kbd>option</kbd> + <kbd>`</kbd>, then <kbd>a</kbd>:</label> <input type="text" id="example" name="example"> </div> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents" rows="8" cols="25"></textarea> <button class="clear-log">clear</button> </div> css body { padding: .2rem; display: gri...
Element.getClientRects() - Web APIs
rect.width to be the border width, so content width is 2px less.
Element.insertAdjacentElement() - Web APIs
nd': after the targetelement itself.
Element.insertAdjacentHTML() - Web APIs
ting the position relative to the element; must be one of the following strings: 'beforebegin': before the element itself.
Element.insertAdjacentText() - Web APIs
de the element, before its first child.
Element: keypress event - Web APIs
yes default action varies: keypress event; launch text composition system; blur and focus events; domactivate event; other event examples addeventlistener keypress example this example logs the keyboardevent.code value whenever you press a key after focussing the <input> element.
Element.matches() - Web APIs
Web › API › Element › matches
g); parameters selectorstring is a string representing the selector to test.
Element.onfullscreenchange - Web APIs
rface to present itself optimally when it's in full-screen mode versus being displayed in a window.
Element.requestFullscreen() - Web APIs
ication to temporarily exit full-screen mode.
ElementCSSInlineStyle.style - Web APIs
by assigning values to the properties of style.
Event() - Web APIs
Web › API › Event › Event
the event() constructor creates a new event.
Event.composed - Web APIs
Web › API › Event › composed
the read-only composed property of the event interface returns a boolean which indicates whether or not the event will propagate across the shadow dom boundary into the standard dom.
Event.currentTarget - Web APIs
syntax var currenteventtarget = event.currenttarget; value eventtarget examples event.currenttarget is interesting to use when attaching the same event handler to several elements.
Event.defaultPrevented - Web APIs
inks from two <a> elements.
Event.eventPhase - Web APIs
Web › API › Event › eventPhase
/div> <div id="divinfo"></div> css div { margin: 20px; padding: 4px; border: thin black solid; } #divinfo { margin: 18px; padding: 8px; background-color:white; font-size:80%; } javascript let clear = false, divinfo = null, divs = null, usecapture = false; window.onload = function () { divinfo = document.getelementbyid('divinfo') divs = document.getelementsbytagname('div') chcapture = document.getelementbyid('chcapture') chcapture.onclick = function () { removelisteners() addlisteners() } clear() addlisteners() } function removelisteners() { for (let i = 0; i < divs.length; i++) { let d = divs[i] if (d.id != "divinfo") { d.removeeventlistener("click", ondivclick, true) d.removeeventlistener("click", ondivclick, false)...
Event.msConvertURL() - Web APIs
st is null."); return; } for (var i = 0; i < filelist.length; i++) { var file = filelist[i]; var url = url.createobjecturl(file); if (evt.converturl) { // use standard if available.
Event.type - Web APIs
Web › API › Event › type
the type read-only property of the event interface returns a string containing the event's type.
EventSource: message event - Web APIs
the message event of the eventsource api is fired when data is received through an event source.
ExtendableEvent - Web APIs
mise resolves successfully.
File.lastModified - Web APIs
Web › API › File › lastModified
s since the unix epoch.
File.lastModifiedDate - Web APIs
ffile.lastmodifieddate value a date object indicating the date and time at which the file was last modified.
File.mozFullPath - Web APIs
Web › API › File › mozFullPath
a privileged exension to the file interface, the mozfullpath property contains the full pathname of the represented file.
FileReader: abort event - Web APIs
stance because the program called filereader.abort().
FileReader: error event - Web APIs
ogressevent event handler property filereader.onerror examples const fileinput = document.queryselector('input[type="file"]'); const reader = new filereader(); function handleselected(e) { const selectedfile = fileinput.files[0]; if (selectedfile) { reader.addeventlistener('error', () => { console.error(`error occurred reading file: ${selectedfile.name}`); }); reader.addeventlistener('load', () => { console.error(`file: ${selectedfile.name} read successfully`); }); reader.readasdataurl(selectedfile); } } fileinput.addeventlistener('change', handleselected); specifications specification status file api working draft ...
FileReader: load event - Web APIs
event is fired when a file has been read successfully.
FileReader: loadend event - Web APIs
hen a file read has completed, successfully or not.
FileReader: loadstart event - Web APIs
nt is fired when a file read operation has begun.
FileReader: progress event - Web APIs
s fired periodically as the filereader reads data.
FileReader.readAsDataURL() - Web APIs
reader.readasdataurl(file); } } live result example reading multiple files html <input id="browse" type="file" onchange="previewfiles()" multiple> <div id="preview"></div> javascript function previewfiles() { var preview = document.queryselector('#preview'); var files = document.queryselector('input[type=file]').files; function readandpreview(file) { // make sure `file.name` matches our extensions criteria if ( /\.(jpe?g|png|gif)$/i.test(file.name) ) { var reader = new filereader(); reader.addeventlistener("load", function () { var image = new image(); image.height = 100; image.title = file.name; image.src = this.result; preview.appendchild( image ); }, false); reader.readasdataurl(file); } ...
FileSystemDirectoryEntry.getDirectory() - Web APIs
entry.file(function(dictfile)) { let reader = new filereader(); reader.addeventlistener("loadend", function() { dictionary = json.parse(reader.result); }); reader.readastext(dictfile); }); }); }); } the loaddictionaryforlanguage() function starts by using getdirectory() to obtain the filesystemdirectoryentry object representing a subfolder named "dictionaries" located inside the specified app data directory.
FileSystemDirectoryEntry.getFile() - Web APIs
entry.file(function(dictfile)) { let reader = new filereader(); reader.addeventlistener("loadend", function() { dictionary = json.parse(reader.result); }); reader.readastext(dictfile); }); }); }); } the loaddictionaryforlanguage() function starts by using getdirectory() to obtain the filesystemdirectoryentry object representing a subfolder named "dictionaries" located inside the specified app data directory.
FileSystemEntry.fullPath - Web APIs
's root to the file represented by the entry.
FileSystemEntry.toURL() - Web APIs
the url can't be generated (such as if the file system implementation doesn't support tourl()).
FocusEvent() - Web APIs
uctor returns a newly created focusevent object with an optional eventtarget.
FocusEvent.relatedTarget - Web APIs
the focusevent.relatedtarget read-only property is the secondary target, depending on the type of event: event name target relatedtarget blur the eventtarget losing focus the eventtarget receiving focus (if any).
FontFace.FontFace() - Web APIs
Web › API › FontFace › FontFace
the fontface() constructor creates a new fontface object.
FormDataEvent() - Web APIs
the formdataevent() constructor creates a new formdataevent object instance.
Frame Timing API - Web APIs
ide a good user experience.
FullscreenOptions.navigationUI - Web APIs
le in this example, the entire document is placed into full-screen mode by calling requestfullscreen() on the document's document.documentelement, which is the document's root <html> element.
Gamepad.id - Web APIs
Web › API › Gamepad › id
the gamepad.id property of the gamepad interface returns a string containing some information about the controller.
GamepadEvent - Web APIs
.3samsung internet android full support yeslegend full support full support no support no supportuser must explicitly enable this feature.user must explicitly enable this feature.requires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
GlobalEventHandlers.onabort - Web APIs
ently fire the abort event on a window that would trigger onabort to be called.
GlobalEventHandlers.onauxclick - Web APIs
rs.
GlobalEventHandlers.onblur - Web APIs
the onblur property of the globaleventhandlers mixin is the eventhandler for processing blur events.
GlobalEventHandlers.oncancel - Web APIs
the oncancel property of the globaleventhandlers mixin is an eventhandler for processing cancel events sent to a <dialog> element.
GlobalEventHandlers.onchange - Web APIs
ge events.
GlobalEventHandlers.onclick - Web APIs
click event is raised when the user clicks on an element.
GlobalEventHandlers.onclose - Web APIs
the onclose property of the globaleventhandlers mixin is an eventhandler for processing close events sent to a <dialog> element.
GlobalEventHandlers.oncontextmenu - Web APIs
the oncontextmenu property of the globaleventhandlers mixin is an eventhandler that processes contextmenu events.
GlobalEventHandlers.ondblclick - Web APIs
the ondblclick property of the globaleventhandlers mixin is an eventhandler that processes dblclick events on the given element.
GlobalEventHandlers.onerror - Web APIs
detail'); } else { var message = [ 'message: ' + msg, 'url: ' + url, 'line: ' + lineno, 'column: ' + columnno, 'error object: ' + json.stringify(error) ].join(' - '); alert(message); } return false; }; when using the inline html markup (<body onerror="alert('an error occurred')">), the html specification requires arguments passed to onerror to be named event, source, lineno, colno, error.
GlobalEventHandlers.onfocus - Web APIs
n eventhandler that processes focus events on the given element.
GlobalEventHandlers.onformdata - Web APIs
roperty of the globaleventhandlers mixin is the eventhandler for processing formdata events, fired after the entry list representing the form's data is constructed.
GlobalEventHandlers.ongotpointercapture - Web APIs
the ongotpointercapture property of the globaleventhandlers mixin is an eventhandler that processes gotpointercapture events.
GlobalEventHandlers.oninput - Web APIs
thandlers mixin is an eventhandler that processes input events on the <input>, <select>, and <textarea> elements.
GlobalEventHandlers.oninvalid - Web APIs
s invalid events.
GlobalEventHandlers.onkeydown - Web APIs
the onkeydown property of the globaleventhandlers mixin is an eventhandler that processes keydown events.
GlobalEventHandlers.onkeyup - Web APIs
the onkeyup property of the globaleventhandlers mixin is an eventhandler that processes keyup events.
GlobalEventHandlers.onlostpointercapture - Web APIs
the onlostpointercapture property of the globaleventhandlers mixin is an eventhandler that processes lostpointercapture events.
GlobalEventHandlers.onmousedown - Web APIs
the onmousedown property of the globaleventhandlers mixin is an eventhandler that processes mousedown events.
GlobalEventHandlers.onmouseup - Web APIs
the onmouseup property of the globaleventhandlers mixin is an eventhandler that processes mouseup events.
GlobalEventHandlers.onreset - Web APIs
the onreset property of the globaleventhandlers mixin is an eventhandler that processes reset events.
GlobalEventHandlers.onresize - Web APIs
the onresize property of the globaleventhandlers interface is an eventhandler that processes resize events.
GlobalEventHandlers.onscroll - Web APIs
n is an eventhandler that processes scroll events.
GlobalEventHandlers.onselect - Web APIs
the onselect property of the globaleventhandlers mixin is an eventhandler that processes select events.
GlobalEventHandlers.onselectionchange - Web APIs
the onselectionchange property of the globaleventhandlers mixin is an eventhandler that processes selectionchange events.
GlobalEventHandlers.onselectstart - Web APIs
the onselectstart property of the globaleventhandlers mixin is an eventhandler that processes selectstart events.
GlobalEventHandlers.onsubmit - Web APIs
the onsubmit property of the globaleventhandlers mixin is an eventhandler that processes submit events.
GlobalEventHandlers.onwheel - Web APIs
eel property of the globaleventhandlers mixin is an eventhandler that processes wheel events.
HTMLAnchorElement.referrerPolicy - Web APIs
ntax refstr = anchorelt.referrerpolicy; anchorelt.referrerpolicy = refstr; values "no-referrer" meaning that the referer: http header will not be sent.
HTMLAnchorElement.rel - Web APIs
the htmlanchorelement.rel property reflects the rel attribute.
HTMLAnchorElement.relList - Web APIs
bute.
HTMLAreaElement.rel - Web APIs
the htmlareaelement.rel property reflects the rel attribute.
HTMLAreaElement.relList - Web APIs
a live domtokenlist containing the set of link types indicating the relationship between the resource represented by the <area> element and the current document.
HTMLAudioElement - Web APIs
ement = new audio('car_horn.wav'); audioelement.addeventlistener('loadeddata', () => { let duration = audioelement.duration; // the duration variable now holds the duration (in seconds) of the audio clip }) events inherits methods from its parent, htmlmediaelement, and from its ancestor htmlelement.
HTMLCanvasElement.mozFetchAsStream() - Web APIs
t('2d'); ctx.beginpath(); ctx.moveto(d / 2, 0); ctx.lineto(d, d); ctx.lineto(0, d); ctx.closepath(); ctx.fillstyle = 'yellow'; ctx.fill(); var netutilcallback = function() { return function(result) { if (!components.issuccesscode(result)) { alert('failed to create icon'); } else { alert('succesfully made'); } }; } var mfascallback = function(iconname) { return function(instream) { var file = fileutils.getfile('desk', [iconname + '.ico']); var outstream = fileutils.openfileoutputstream(file); cu.import('resource://gre/modules/netutil.jsm'); netutil.asynccopy(instream, outstream, netutilcallback()); } } canvas.mozfetchasstream(mfascallback('myicon'), 'image/vnd.microsoft.icon'); specifications not part of...
HTMLCanvasElement.toDataURL() - Web APIs
" src="mypicture.png" alt="description of my picture" /> javascript window.addeventlistener('load', removecolors); function showcolorimg() { this.style.display = 'none'; this.nextsibling.style.display = 'inline'; } function showgrayimg() { this.previoussibling.style.display = 'inline'; this.style.display = 'none'; } function removecolors() { var aimages = document.getelementsbyclassname('grayscale'), nimgslen = aimages.length, ocanvas = document.createelement('canvas'), octx = ocanvas.getcontext('2d'); for (var nwidth, nheight, oimgdata, ograyimg, npixel, apix, npixlen, nimgid = 0; nimgid < nimgslen; nimgid++) { ocolorimg = aimages[nimgid]; nwidth = ocolorimg.offsetwidth; nheight = ocolorimg.offsetheight; ocanvas.width = nwidth; ocanvas.he...
HTMLCanvasElement - Web APIs
cached on the disk or stored in memory at the discretion of the user agent.
HTMLDetailsElement: toggle event - Web APIs
div data-id="ch2" hidden>ii</div> <div data-id="ch3" hidden>iii</div> </aside> <section id="summaries"> <b>chapter summaries:</b> <details id="ch1"> <summary>chapter i</summary> philosophy reproves boethius for the foolishness of his complaints against fortune.
HTMLDetailsElement - Web APIs
ies from its parent, htmlelement.
HTMLDialogElement.close() - Web APIs
a form via the showmodal() method.
HTMLDialogElement.open - Web APIs
a form via the showmodal() method.
HTMLDialogElement.returnValue - Web APIs
.returnvalue; value a domstring representing the returnvalue of the dialog.
HTMLDialogElement.show() - Web APIs
ining a form via the show() method.
HTMLDialogElement.showModal() - Web APIs
a form via the showmodal() method.
HTMLDialogElement - Web APIs
alogelement.showmodal() function.
HTMLElement: animationend event - Web APIs
<p class="animation">you chose a cold night to visit our planet.</p> </div> <button class="activate" type="button">activate animation</button> <div class="event-log"></div> </div> css .container { height: 3rem; } .event-log { width: 25rem; height: 2rem; border: 1px solid black; margin: .2rem; padding: .2rem; } .animation.active { animation-duration: 2s; animation-name: slidein; animation-iteration-count: 2; } @keyframes slidein { from { margin-left: 100%; width: 300%; } to { margin-left: 0%; width: 100%; } } js const animation = document.queryselector('p.animation'); const animationeventlog = document.queryselector('.animation-example>.event-log'); const applyanimation = document.queryselector('.animation-example>button.activate'...
HTMLElement: animationiteration event - Web APIs
p class="animation">you chose a cold night to visit our planet.</p> </div> <button class="activate" type="button">activate animation</button> <div class="event-log"></div> </div> css .container { height: 3rem; } .event-log { width: 25rem; height: 2rem; border: 1px solid black; margin: 0.2rem; padding: 0.2rem; } .animation.active { animation-duration: 2s; animation-name: slidein; animation-iteration-count: 2; } @keyframes slidein { from { transform: translatex(100%) scalex(3); } to { transform: translatex(0) scalex(1); } } js const animation = document.queryselector('p.animation'); const animationeventlog = document.queryselector('.animation-example>.event-log'); const applyanimation = document.queryselector('.animation-example>button.activ...
HTMLElement: animationstart event - Web APIs
p class="animation">you chose a cold night to visit our planet.</p> </div> <button class="activate" type="button">activate animation</button> <div class="event-log"></div> </div> css .container { height: 3rem; } .event-log { width: 25rem; height: 2rem; border: 1px solid black; margin: 0.2rem; padding: 0.2rem; } .animation.active { animation-duration: 2s; animation-name: slidein; animation-iteration-count: 2; } @keyframes slidein { from { transform: translatex(100%) scalex(3); } to { transform: translatex(0) scalex(1); } } js const animation = document.queryselector('p.animation'); const animationeventlog = document.queryselector('.animation-example>.event-log'); const applyanimation = document.queryselector('.animation-example>button.activ...
HTMLElement.hidden - Web APIs
after a user agrees to an unusual request.
HTMLElement.oncopy - Web APIs
the oncopy property of the htmlelement interface is an eventhandler that processes copy events.
HTMLElement.oncut - Web APIs
Web › API › HTMLElement › oncut
the htmlelement.oncut property of the htmlelement interface is an eventhandler that processes cut events.
HTMLElement.onpaste - Web APIs
the htmlelement.onpaste property of the htmlelement interface is an eventhandler that processes paste events.
HTMLFormElement.encoding - Web APIs
the htmlformelement.encoding property is an alternative name for the enctype element on the dom htmlformelement object.
HTMLFormElement.reset() - Web APIs
the htmlformelement.reset() method restores a form element's default values.
HTMLFormElement.submit() - Web APIs
activating a form's submit <button>.
HTMLFormElement.target - Web APIs
the target property of the htmlformelement interface represents the target of the form's action (i.e., the frame in which to render its output).
HTMLHRElement - Web APIs
chor="middle" alignment-baseline="middle">htmlhrelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLHyperlinkElementUtils.host - Web APIs
the htmlhyperlinkelementutils.host property is a usvstring containing the host, that is the hostname, and then, if the port of the url is nonempty, a ':', and the port of the url.
contentDocument - Web APIs
if the iframe and the iframe's parent document are same origin, returns a document (that is, the active document in the inline frame's nested browsing context), else returns null.
HTMLIFrameElement.referrerPolicy - Web APIs
tination (https→http).
HTMLIFrameElement.src - Web APIs
the htmliframeelement.src property reflects the html referrerpolicy attribute of the <iframe> element defining which referrer is sent when fetching the resource.
HTMLImageElement.align - Web APIs
the obsolete align property of the htmlimageelement interface is a string which indicates how to position the image relative to its container.
HTMLImageElement.loading - Web APIs
ending on the exact timing of the deferred loads and reflows.
HTMLImageElement.referrerPolicy - Web APIs
refstr; values a domstring representing the referrer policy.
HTMLInputElement.webkitEntries - Web APIs
s made using drag-and-drop: selecting a file in the dialog will leave the property empty (bug 1326031).
HTMLInputElement.webkitdirectory - Web APIs
note: the behavior of webkitrelativepath is different in chromium < 72.
HTMLLinkElement.referrerPolicy - Web APIs
the htmllinkelement.referrerpolicy property reflect the html referrerpolicy attribute of the <link> element defining which referrer is sent when fetching the resource.
HTMLLinkElement.rel - Web APIs
ip between the resource represented by the <link> element and the current document.
HTMLLinkElement.relList - Web APIs
is a live domtokenlist containing the set of link types indicating the relationship between the resource represented by the <link> element and the current document.
HTMLLinkElement - Web APIs
.rev is a domstring representing the reverse relationship of the linked resource from the resource to the document.
HTMLMapElement - Web APIs
height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="421" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlmapelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLMarqueeElement - Web APIs
ext></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLMediaElement.mediaGroup - Web APIs
the htmlmediaelement.mediagroup property reflects the mediagroup html attribute, which indicates the name of the group of elements it belongs to.
HTMLMediaElement.srcObject - Web APIs
a new mediasource is assigned to a newly-created <video> element, with fallback for older browsers and browsers that don't yet support assignment of mediasource directly.
HTMLOptionsCollection - Web APIs
tion" target="_top"><rect x="181" y="1" width="210" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="286" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmloptionscollection</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties name type description length unsigned long as optionally allowed by the spec, this property isn't read-only.
HTMLProgressElement - Web APIs
" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlprogresselement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLSelectElement.item() - Web APIs
the htmlselectelement.item() method returns the element corresponding to the htmloptionelement whose position in the options list corresponds to the index given in the parameter, or null if there are none.
HTMLSlotElement.assignedNodes() - Web APIs
ny available child <slot> elements (true) or not (false).
HTMLTableCellElement - Web APIs
no longer be used.
HTMLTableElement.deleteTFoot() - Web APIs
the htmltableelement.deletetfoot() method removes the <tfoot> element from a given <table>.
HTMLTableElement.deleteTHead() - Web APIs
the htmltableelement.deletethead() removes the <thead> element from a given <table>.
HTMLVideoElement - Web APIs
) returns a videoplaybackquality object that contains the current playback metrics.
Drag Operations - Web APIs
ction dodrop(event) { const lines = event.datatransfer.getdata("text/uri-list").split("\n"); lines.filter(line => !line.startswith("#")) .foreach(line => { const link = document.createelement("a"); link.href = line; link.textcontent = line; event.target.appendchild(link); }) event.preventdefault(); } this example inserts a link from the dragged data.
History.state - Web APIs
Web › API › History › state
the code below logs the value of history.state before using the pushstate() method to push a value to the history.
Ajax navigation example - Web APIs
oreq.send(); oloadingbox.parentnode || document.body.appendchild(oloadingbox); } function requestpage (surl) { if (history.pushstate) { bupdateurl = true; getpage(surl); } else { /* ajax navigation is not supported */ location.assign(surl); } } function processlink () { if (this.classname === sajaxclass) { requestpage(this.href); return false; } return true; } function init () { opageinfo.title = document.title; history.replacestate(opageinfo, opageinfo.title, opageinfo.url); for (var olink, nidx = 0, nlen = document.links.length; nidx < nlen; document.links[nidx++].onclick = processlink); } const ...
Working with the History API - Web APIs
ncode all of the relevant data into a short string.
HkdfParams - Web APIs
the hkdfparams dictionary of the web crypto api represents the object that should be passed as the algorithm parameter into subtlecrypto.derivekey(), when using the hkdf algorithm.
IDBCursor.advance() - Web APIs
Web › API › IDBCursor › advance
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBCursor.continue() - Web APIs
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBCursor.delete() - Web APIs
Web › API › IDBCursor › delete
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBCursor.direction - Web APIs
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBCursor.key - Web APIs
Web › API › IDBCursor › key
full support 7.0legend full support full support partial support partial support compatibility unknown compatibility unknownrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBCursor.primaryKey - Web APIs
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBCursor.update() - Web APIs
Web › API › IDBCursor › update
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBCursorWithValue.value - Web APIs
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBCursorWithValue - Web APIs
full support yeslegend full support full support partial support partial support compatibility unknown compatibility unknownrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBDatabase.close() - Web APIs
Web › API › IDBDatabase › close
14safari ios full support 8samsung internet android full support 1.5legend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBDatabase.onabort - Web APIs
14safari ios full support 8samsung internet android full support 1.5legend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBDatabase.onclose - Web APIs
tored on is lost while the database is open.
IDBDatabase.onerror - Web APIs
14safari ios full support 8samsung internet android full support 1.5legend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBDatabase.onversionchange - Web APIs
14safari ios full support 8samsung internet android full support 1.5legend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBDatabase.version - Web APIs
14safari ios full support 8samsung internet android full support 1.5legend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBFactory.cmp() - Web APIs
Web › API › IDBFactory › cmp
14safari ios full support 8samsung internet android full support 1.5legend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBKeyRange.bound() - Web APIs
Web › API › IDBKeyRange › bound
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBKeyRange.lower - Web APIs
Web › API › IDBKeyRange › lower
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBKeyRange.lowerBound() - Web APIs
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBKeyRange.lowerOpen - Web APIs
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBKeyRange.only() - Web APIs
Web › API › IDBKeyRange › only
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBKeyRange.upper - Web APIs
Web › API › IDBKeyRange › upper
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBKeyRange.upperBound() - Web APIs
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBKeyRange.upperOpen - Web APIs
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBKeyRange - Web APIs
samsung internet android full support yeslegend full support full support partial support partial support compatibility unknown compatibility unknownrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBObjectStore.add() - Web APIs
full support 1.5 no support 1.5 — 7.0prefixed prefixed implemented with the vendor prefix: webkitlegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBObjectStore.autoIncrement - Web APIs
full support 1.5 no support 1.5 — 7.0prefixed prefixed implemented with the vendor prefix: webkitlegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBObjectStore.clear() - Web APIs
full support 1.5 no support 1.5 — 7.0prefixed prefixed implemented with the vendor prefix: webkitlegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBObjectStore.count() - Web APIs
full support 1.5 no support 1.5 — 7.0prefixed prefixed implemented with the vendor prefix: webkitlegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBObjectStore.delete() - Web APIs
full support 1.5 no support 1.5 — 7.0prefixed prefixed implemented with the vendor prefix: webkitlegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBObjectStore.get() - Web APIs
full support 1.5 no support 1.5 — 7.0prefixed prefixed implemented with the vendor prefix: webkitlegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBObjectStore.keyPath - Web APIs
full support 1.5 no support 1.5 — 7.0prefixed prefixed implemented with the vendor prefix: webkitlegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBObjectStore.put() - Web APIs
full support 1.5 no support 1.5 — 7.0prefixed prefixed implemented with the vendor prefix: webkitlegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBObjectStore.transaction - Web APIs
full support 1.5 no support 1.5 — 7.0prefixed prefixed implemented with the vendor prefix: webkitlegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBOpenDBRequest.onblocked - Web APIs
full support 1.5 no support 1.5 — 7.0prefixed prefixed implemented with the vendor prefix: webkitlegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBOpenDBRequest.onupgradeneeded - Web APIs
full support 1.5 no support 1.5 — 7.0prefixed prefixed implemented with the vendor prefix: webkitlegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBOpenDBRequest - Web APIs
ignment-baseline="middle">idbopendbrequest</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties also inherits methods from its parents idbrequest and eventtarget.
IDBRequest.error - Web APIs
Web › API › IDBRequest › error
android full support 5.0legend full support full support partial support partial support no support no supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBRequest.onerror - Web APIs
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBRequest.onsuccess - Web APIs
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBRequest.readyState - Web APIs
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBRequest.result - Web APIs
Web › API › IDBRequest › result
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBRequest.source - Web APIs
Web › API › IDBRequest › source
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBRequest.transaction - Web APIs
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBRequest - Web APIs
transaction for the request.
IDBTransaction.abort() - Web APIs
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBTransaction.db - Web APIs
Web › API › IDBTransaction › db
full support 1.5 no support 1.5 — 7.0prefixed prefixed implemented with the vendor prefix: webkitlegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBTransaction.error - Web APIs
android full support 5.0legend full support full support partial support partial support no support no supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBTransaction.mode - Web APIs
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBTransaction.onabort - Web APIs
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBTransaction.oncomplete - Web APIs
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBTransaction.onerror - Web APIs
14safari ios full support 8samsung internet android full support yeslegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
IDBVersionChangeEvent.newVersion - Web APIs
full support 1.5 no support 1.5 — 7.0prefixed prefixed implemented with the vendor prefix: webkitlegend full support full support partial support partial supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
ImageCapture.getPhotoCapabilities() - Web APIs
ities(); }) .then(photocapabilities => { const settings = imagecapture.track.getsettings(); input.min = photocapabilities.imagewidth.min; input.max = photocapabilities.imagewidth.max; input.step = photocapabilities.imagewidth.step; return imagecapture.getphotosettings(); }) .then(photosettings => { input.value = photosettings.imagewidth; }) .catch(error => console.log('argh!', error.name || error)); specifications specification status comment mediastream image capturethe definition of 'getphotocapabilities()' in that specification.
ImageCapture.getPhotoSettings() - Web APIs
ities(); }) .then(photocapabilities => { const settings = imagecapture.track.getsettings(); input.min = photocapabilities.imagewidth.min; input.max = photocapabilities.imagewidth.max; input.step = photocapabilities.imagewidth.step; return imagecapture.getphotosettings(); }) .then(photosettings => { input.value = photosettings.imagewidth; }) .catch(error => console.log('argh!', error.name || error)); specifications specification status comment mediastream image capturethe definition of 'getphotosettings()' in that specification.
Browser storage limits and eviction criteria - Web APIs
ta is stored under <profile>/storage/default.
InputEvent() - Web APIs
the inputevent() constructor creates a new inputevent.
InstallEvent - Web APIs
ssed promise resolves successfully.
getVersion - Web APIs
uld see how to package a plugin as an extension.
install - Web APIs
s of the installation, use the optional callback function and its status parameter, as in the example below.
InstallTrigger - Web APIs
rigger methods download the specified xpi file and "trigger" the execution of the install.js script at the top level of that xpi.
KeyboardEvent() - Web APIs
the keyboardevent() constructor creates a new keyboardevent.
KeyboardEvent.getModifierState() - Web APIs
fiers (except "fnlock", "hyper", "super" and "symbol" which are defined after gecko implements this) are always supported for untrusted events on gecko.
KeyframeEffect.setKeyframes() - Web APIs
ll infer the other end of the animation if it is able to.
Location: host - Web APIs
Web › API › Location › host
the host property of the location interface is a usvstring containing the host, that is the hostname, and then, if the port of the url is nonempty, a ':', and the port of the url.
LockManager - Web APIs
the lockmanager interface of the the web locks api provides methods for requesting a new lock object and querying for an existing lock object.
Long Tasks API - Web APIs
es between different turns of the event loop that exceeds 50 ms.
MIDIAccess - Web APIs
idi port is added or an existing port changes state.
MSSiteModeEvent - Web APIs
hat is being evaluated.
MathMLElement - Web APIs
inestyle, globaleventhandlers, htmlorforeignelement methods this interface has no methods, but inherits methods from: documentandelementeventhandlers, element, elementcssinlinestyle, globaleventhandlers, htmlorforeignelement examples mathml <math xmlns="http://www.w3.org/1998/math/mathml"> <msqrt> <mi>x</mi> </msqrt> </math> javascript document.queryselector('msqrt').constructor.name; // mathmlelement specifications specification status comment mathmlelement interface ...
MediaDeviceInfo - Web APIs
s || !navigator.mediadevices.enumeratedevices) { console.log("enumeratedevices() not supported."); return; } // list cameras and microphones.
MediaDevices.enumerateDevices() - Web APIs
s || !navigator.mediadevices.enumeratedevices) { console.log("enumeratedevices() not supported."); return; } // list cameras and microphones.
MediaDevices.getDisplayMedia() - Web APIs
curred, preventing the sharing of the selected source.
MediaError.code - Web APIs
Web › API › MediaError › code
urns a numeric value which represents the kind of error that occurred on a media element.
MediaError - Web APIs
htmlmediaelement, such as <audio> or <video>.
initDataTypes - Web APIs
the mediakeysystemconfiguration.initdatatypes read-only property returns a list of supported initialization data type names.
MediaKeySystemConfiguration - Web APIs
the mediakeysystemconfiguration dictionary holds configuration information about the media key system in use.
MediaRecorderErrorEvent.error - Web APIs
own by a mediarecorder instance.
MediaSession.metadata - Web APIs
ion.metadata = mediametadata; value an instance of mediametadata containing information about the media currently being played.
MediaSession - Web APIs
page for a full list.
MediaSettingsRange - Web APIs
ities(); }) .then(photocapabilities => { const settings = imagecapture.track.getsettings(); input.min = photocapabilities.imagewidth.min; input.max = photocapabilities.imagewidth.max; input.step = photocapabilities.imagewidth.step; return imagecapture.getphotosettings(); }) .then(photosettings => { input.value = photosettings.imagewidth; }) .catch(error => console.log('argh!', error.name || error)); specifications specification status comment mediastream image capturethe definition of 'mediasettingsrange' in that specification.
MediaStreamEvent() - Web APIs
the mediastreamevent() constructor creates a new mediastreamevent.
MediaStreamTrack.applyConstraints() - Web APIs
asic set of constraints that must apply for the promise to resolve.
MediaStreamTrack.onoverconstrained - Web APIs
the mediastreamtrack.onoverconstrained event handler is a property called when the overconstrained event is received.
MediaStreamTrack - Web APIs
ettings() returns a mediatracksettings object containing the current values of each of the mediastreamtrack's constrainable properties.
MediaStreamTrackEvent() - Web APIs
vent() constructor returns a newly created mediastreamtrackevent object, which represents an event announcing that a mediastreamtrack has been added to or removed from a mediastream.
Using the Media Capabilities API - Web APIs
e video.
Media Session API - Web APIs
ndlers, to define your own behaviors for a user-agent playback controls.
Transcoding assets for Media Source Extensions - Web APIs
below we'll cover all of these steps, but first let's look at a toolchain we can use to do this fairly easily.
MerchantValidationEvent - Web APIs
e a particular payment handler.
MouseEvent() - Web APIs
the mouseevent() constructor creates a new mouseevent.
MouseEvent.initMouseEvent() - Web APIs
ton the event's mouse button.
MouseEvent.mozInputSource - Web APIs
g the type of device that generated the event.
MouseEvent.relatedTarget - Web APIs
the mouseevent.relatedtarget read-only property is the secondary target for the mouse event, if there is one.
msSetMediaProtectionManager - Web APIs
incompatibilities between implementations and the behavior may change in the future.
MutationObserver.observe() - Web APIs
nding the dom back to its initial state.
MutationObserver - Web APIs
execute when mutations are observed const callback = function(mutationslist, observer) { // use traditional 'for loops' for ie 11 for(let mutation of mutationslist) { if (mutation.type === 'childlist') { console.log('a child node has been added or removed.'); } else if (mutation.type === 'attributes') { console.log('the ' + mutation.attributename + ' attribute was modified.'); } } }; // create an observer instance linked to the callback function const observer = new mutationobserver(callback); // start observing the target node for configured mutations observer.observe(targetnode, config); // later, you can stop observing observer.disconnect(); specifications specification status comment domthe...
MutationObserverInit - Web APIs
e addition of new child nodes or removal of existing child nodes.
NDEFReader.scan() - Web APIs
Web › API › NDEFReader › scan
- the match pattern for matching each ndefrecord.mediatype.
NDEFRecord.encoding - Web APIs
the encoding property ofthe ndefrecord interface is usvstring containing the name of the encoding used to encode ndef payload if it contains textual data.
NDEFRecord - Web APIs
he ndef record type.
NDEFWriter.write() - Web APIs
Web › API › NDEFWriter › write
ether or not existing record should be overwritten, if such exists.
Navigator.getBattery() - Web APIs
directive battery.
Navigator.getUserMedia() - Web APIs
if (navigator.getusermedia) { navigator.getusermedia({ audio: true, video: { width: 1280, height: 720 } }, function(stream) { var video = document.queryselector('video'); video.srcobject = stream; video.onloadedmetadata = function(e) { video.play(); }; }, function(err) { console.log("the following error occurred: " + err.name); } ); } else { console.log("getusermedia not supported"); } ...
Navigator.oscpu - Web APIs
Web › API › Navigator › oscpu
windows ce windowsce x.y1 windows 64-bit (64-bit build) windows nt x.y; win64; x64 windows 64-bit (32-bit build) windows nt x.y; wow64 windows 32-bit windows nt x.y mac os x (ppc build) powerpc mac os x version x.y mac os x (i386/x64 build) intel mac os x or macos version x.y linux 64-bit (32-bit build) output of uname -s plus "i686 on x86_64" linux output of uname -sm x.y refers to the version of the operating system example function osinfo() { alert(window.navigator.oscpu); } osinfo(); // alerts "windows nt 6.0" for example usage notes unless your code is privileged (chrome or at least has the universalbrowserread privilege), it may get the value of the general.oscpu.override pre...
Navigator.permissions - Web APIs
the navigator.permissions read-only property returns a permissions object that can be used to query and update permission status of apis covered by the permissions api.
Web-based protocol handlers - Web APIs
for a given protocol.
Navigator.requestMediaKeySystemAccess() - Web APIs
en resolved, delivers a mediakeysystemaccess object to your fulfillment handler function.
NavigatorID.appVersion - Web APIs
perty may also contain the version number (for example "mozilla/5.0 (windows; u; win98; en-us; rv:0.9.2) gecko/20010725 netscape 6/6.1"), but you should be aware of how easy it is to change the user agent string and "spoof" other browsers, platforms, or user agents, and also how cavalier the browser vendor themselves are with these properties.
Online and offline events - Web APIs
rify that the events are working (does not work in chrome due to attaching the event listener to document.body).
Node.compareDocumentPosition() - Web APIs
the node.comparedocumentposition() method reports the position of the given node relative to another node in any document — not just the given node’s document.
Node.isEqualNode() - Web APIs
Web › API › Node › isEqualNode
ut the results.
Node.isSameNode() - Web APIs
Web › API › Node › isSameNode
ut the results.
Node.nextSibling - Web APIs
Web › API › Node › nextSibling
r more information.
Node.nodeValue - Web APIs
Web › API › Node › nodeValue
de.
NodeList.item() - Web APIs
Web › API › NodeList › item
m another dom property or method, such as childnodes.
NodeList.length - Web APIs
Web › API › NodeList › length
numitems = nodelist.length numitems is an integer value representing the number of items in a nodelist.
NonDocumentTypeChildNode.nextElementSibling - Web APIs
ldren list, or null if the specified element is the last one in the list.
NonDocumentTypeChildNode.previousElementSibling - Web APIs
erence.previouselementsibling; example <div id="div-01">here is div-01</div> <div id="div-02">here is div-02</div> <li>this is a list item</li> <li>this is another list item</li> <div id="div-03">here is div-03</div> <script> let el = document.getelementbyid('div-03').previouselementsibling; document.write('<p>siblings of div-03</p><ol>'); while (el) { document.write('<li>' + el.nodename + '</li>'); el = el.previouselementsibling; } document.write('</ol>'); </script> this example outputs the following into the page when it loads: siblings of div-03 1.
Notification.Notification() - Web APIs
t a notification should remain active until the user clicks or dismisses it, rather than closing automatically.
Using the Notifications API - Web APIs
tener('load', function () { // at first, let's check if we have permission for notification // if not, let's ask for it if (window.notification && notification.permission !== "granted") { notification.requestpermission(function (status) { if (notification.permission !== status) { notification.permission = status; } }); } var button = document.getelementsbytagname('button')[0]; button.addeventlistener('click', function () { // if the user agreed to get notified // let's try to send ten notifications if (window.notification && notification.permission === "granted") { var i = 0; // using an interval cause some browsers (including firefox) are blocking notifications if there are too much in a certain time.
OES_vertex_array_object.createVertexArrayOES() - Web APIs
the oes_vertex_array_object.createvertexarrayoes() method of the webgl api creates and initializes a webglvertexarrayobject object that represents a vertex array object (vao) pointing to vertex array data and which provides names for different sets of vertex data.
OVR_multiview2.framebufferTextureMultiviewOVR() - Web APIs
framebuffer object attachment.
OfflineAudioContext - Web APIs
ression of time in an audio context that has previously been suspended.
OverconstrainedError - Web APIs
ints are applied.
Page Visibility API - Web APIs
and webrtc) go unthrottled in order to avoid closing these connections timing out and getting unexpectedly closed.
PaintWorklet - Web APIs
const colors = ['red', 'green', 'blue']; const size = 32; for(let y = 0; y < geom.height/size; y++) { for(let x = 0; x < geom.width/size; x++) { const color = colors[(x + y) % colors.length]; ctx.beginpath(); ctx.fillstyle = color; ctx.rect(x * size, y * size, size, size); ctx.fill(); } } } } // register our class under a specific name registerpaint('checkerboard', checkerboardpainter); load a paintworklet the following example demonstrates loading the above worklet from its js file and does so by feature detection.
ParentNode.children - Web APIs
children of node.
ParentNode.querySelectorAll() - Web APIs
, we get a list of <p> elements whose immediate parent element is a <div> with the class highlighted and which are located inside a container whose id is test.
PaymentAddress.addressLine - Web APIs
the addressline read-only property of the paymentaddress interface is an array of domstring objects, each specifying a line of the address that is not covered by one of the other properties of paymentaddress.
PaymentAddress.region - Web APIs
ess interface returns a string containing the top-level administrative subdivision of the country in which the address is located.
PaymentDetailsUpdate.shippingAddressErrors - Web APIs
sserrors object whose contents provide error messages for one or more of the values in the paymentaddress specified as paymentrequest.shippingaddress.
PaymentItem - Web APIs
the paymentitem dictionary is used by the payment request api to describe a single line item on a payment request.
PaymentMethodChangeEvent - Web APIs
values taken from a given paymentmethodchangeeventinit dictionary.
PaymentRequest.onpaymentmethodchange - Web APIs
e event, you should add event listeners to paymentrequest object after instantiation, but before you call show().
PaymentRequest: paymentmethodchange event - Web APIs
nd"), options); paymentrequest.addeventlistener("paymentmethodchange", handlepaymentchange, false); paymentrequest.show() .then(response => response.complete("success")) .catch(err => console.log("error handling payment request: " + err)); the event handler function itself, handlepaymentchange(), looks like this: handlepaymentchange = event => { const detailsupdate = {}; if (event.methodname === "https://apple.com/apple-pay") { const servicefeeinfo = calculateservicefee(event.methoddetails); object.assign(detailsupdate, servicefeeinfo); } event.updatewith(detailsupdate); }, false); this begins by looking at the event's methodname property; if that indicates that the user is trying to use apple pay, we pass the methoddetails into a function called calculateservicefee(),...
PaymentRequest.show() - Web APIs
click = async function handlepurchase() { // initialization of paymentrequest arguments are excerpted for the sake of // brevity.
PaymentResponse.details - Web APIs
syntax var detailsobject = paymentresponse.details; example the following example extracts the details from the paymentresponse object to the promise returned from paymentrequest.show().
Payment Request API - Web APIs
owed to use a particular payment handler (e.g., registered as allowed to use apple pay).
Pbkdf2Params - Web APIs
the pbkdf2params dictionary of the web crypto api represents the object that should be passed as the algorithm parameter into subtlecrypto.derivekey(), when using the pbkdf2 algorithm.
PerformanceEntry.duration - Web APIs
n; } // create some performance entries via the mark() method performance.mark("begin"); do_work(50000); performance.mark("end"); // use getentries() to iterate through the each entry var p = performance.getentries(); for (var i=0; i < p.length; i++) { log("entry[" + i + "]"); check_performanceentry(p[i]); } } function check_performanceentry(obj) { var properties = ["name", "entrytype", "starttime", "duration"]; var methods = ["tojson"]; for (var i=0; i < properties.length; i++) { // check each property var supported = properties[i] in obj; if (supported) log("..." + properties[i] + " = " + obj[properties[i]]); else log("..." + properties[i] + " = not supported"); } for (var i=0; i < methods.length; i++) { // check each met...
PerformanceEntry.startTime - Web APIs
n; } // create some performance entries via the mark() method performance.mark("begin"); do_work(50000); performance.mark("end"); // use getentries() to iterate through the each entry var p = performance.getentries(); for (var i=0; i < p.length; i++) { log("entry[" + i + "]"); check_performanceentry(p[i]); } } function check_performanceentry(obj) { var properties = ["name", "entrytype", "starttime", "duration"]; var methods = ["tojson"]; for (var i=0; i < properties.length; i++) { // check each property var supported = properties[i] in obj; if (supported) log("..." + properties[i] + " = " + obj[properties[i]]); else log("..." + properties[i] + " = not supported"); } for (var i=0; i < methods.length; i++) { // check each met...
PerformanceEntry.toJSON() - Web APIs
n; } // create some performance entries via the mark() method performance.mark("begin"); do_work(50000); performance.mark("end"); // use getentries() to iterate through the each entry var p = performance.getentries(); for (var i=0; i < p.length; i++) { log("entry[" + i + "]"); check_performanceentry(p[i]); } } function check_performanceentry(obj) { var properties = ["name", "entrytype", "starttime", "duration"]; var methods = ["tojson"]; for (var i=0; i < properties.length; i++) { // check each property var supported = properties[i] in obj; if (supported) log("..." + properties[i] + " = " + obj[properties[i]]); else log("..." + properties[i] + " = not supported"); } for (var i=0; i < methods.length; i++) { // check each met...
PerformanceFrameTiming - Web APIs
alignment-baseline="middle">performanceframetiming</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but it extends the following performanceentry properties (for "frame" performance entry types) by qualifying and constraining the properties as follows: performanceentry.entrytype returns "frame".
PerformanceNavigation.type - Web APIs
this interface of this property is deprecated in the navigation timing level 2 specification.
PerformanceNavigationTiming - Web APIs
hor="middle" alignment-baseline="middle">performancenavigationtiming</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface extends the following performanceentry properties for navigation performance entry types by qualifying and constraining them as follows: performanceentry.entrytype read only returns "navigation".
PerformanceObserver.takeRecords() - Web APIs
ver.takerecords(); parameters none.
PerformanceResourceTiming.initiatorType - Web APIs
the initiatortype read-only property is a string that represents the type of resource that initiated the performance event.
Using the Performance API - Web APIs
e = performance.now(); return (endtime - starttime); } serializing the performance object json serialization of the performance object is done via the tojson() method.
PermissionStatus.onchange - Web APIs
the onchange event handler of the permissionstatus interface is called whenever the permissionstatus.state property changes.
PermissionStatus.state - Web APIs
the state read-only property of the permissionstatus interface returns the state of a requested permission.
PermissionStatus - Web APIs
permission; one of 'granted', 'denied', or 'prompt'.
Permissions - Web APIs
urns the user permission status for a given api.
PhotoCapabilities - Web APIs
ities(); }) .then(photocapabilities => { const settings = imagecapture.track.getsettings(); input.min = photocapabilities.imagewidth.min; input.max = photocapabilities.imagewidth.max; input.step = photocapabilities.imagewidth.step; return imagecapture.getphotosettings(); }) .then(photosettings => { input.value = photosettings.imagewidth; }) .catch(error => console.log('argh!', error.name || error)); specifications specification status comment mediastream image capturethe definition of 'photocapabilities' in that specification.
PointerEvent.PointerEvent() - Web APIs
the pointerevent() constructor creates a new synthetic and untrusted pointerevent object instance.
PointerEvent.pointerType - Web APIs
e event was generated by a mouse device.
ProgressEvent() - Web APIs
the progressevent() constructor returns a newly created progressevent, representing the current completion of a long process.
PromiseRejectionEvent.promise - Web APIs
"module not ready", it sets up an idle callback that will retry the task that failed to execute correctly.
Proximity Events - Web APIs
y sensor detects a change between the device and an object, it notifies the browser of that change.
PublicKeyCredentialCreationOptions.excludeCredentials - Web APIs
excludecredentials: [ { type: "public-key", // the id for john.doe@example.com id : new uint8array(26) /* this actually is given by the server */ }, { type: "public-key", // the id for john-doe@example.com id : new uint8array(26) /* another id */ } ], challenge: new uint8array(26) /* this actually is given from the server */, rp: { name: "example corp", id : "login.example.com" }, user: { id: new uint8array(26), /* to be changed for each user */ name: "jdoe@example.com", displayname: "john doe", }, pubkeycredparams: [ { type: "public-key", alg: -7 } ] }; navigator.credentials.create({ publickey }) .then(function (newcredentialinfo) { // send attestation response and client extensions /...
Web Push API Notifications best practices - Web APIs
ly, is this the best use of push notifications?
RTCDTMFSender - Web APIs
d, optionally, the duration of and inter-tone gap between the tones, insertdtmf() starts sending the specified tones.
RTCDTMFToneChangeEvent.RTCDTMFToneChangeEvent() - Web APIs
the rtcdtmftonechangeevent() constructor creates a new rtcdtmftonechangeevent.
RTCDataChannel.close() - Web APIs
ls with any buffered messages; the protocol layer decides whether to send them or discard them.
RTCDataChannel: close event - Web APIs
the data transport being used for the data channel has closed.
RTCDataChannel.id - Web APIs
Web › API › RTCDataChannel › id
id is set at the time the data channel is created, either by the user agent (if rtcdatachannel.negotiated is false) or by the site or app script (if negotiated is true).
RTCDataChannel.onerror - Web APIs
out the error to a ui library's alert box function to present an error message to the user.
RTCDataChannel.protocol - Web APIs
the read-only rtcdatachannel property protocol returns a domstring containing the name of the subprotocol in use.
RTCDataChannelEvent() - Web APIs
the rtcdatachannelevent() constructor creates a new rtcdatachannelevent.
RTCError - Web APIs
Web › API › RTCError
ax-error, this property is a long integer identifying the line number of the sdp on which the syntax error occurred.
RTCErrorEvent.error - Web APIs
ax-error, this property is a long integer identifying the line number of the sdp on which the syntax error occurred.
RTCIceCandidateInit - Web APIs
ault is the empty string.
RTCIceCandidateStats.deleted - Web APIs
ate" || stats.type === "remote.candidate") && !stats.deleted) { statsoutput += `<h2>report: ${report.type}</h3>\n<strong>id:</strong> ${report.id}<br>\n` + `<strong>timestamp:</strong> ${report.timestamp}<br>\n`; // now the statistics for this report; we intentially drop the ones we // sorted to the top above object.keys(report).foreach(statname => { if (statname !== "id" && statname !== "timestamp" && statname !== "type") { statsoutput += `<strong>${statname}:</strong> ${report[statname]}<br>\n`; } }); } }); document.queryselector(".stats-box").innerhtml = statsoutput; }); }, 1000); specifications specification status comment identifiers for webrtc's ...
RTCIceCandidateStats.networkType - Web APIs
=== "remote.candidate") && stats.networktype === "cellular") { statsoutput += `<h2>report: ${report.type}</h3>\n<strong>id:</strong> ${report.id}<br>\n` + `<strong>timestamp:</strong> ${report.timestamp}<br>\n`; // now the statistics for this report; we intentially drop the ones we // sorted to the top above object.keys(report).foreach(statname => { if (statname !== "id" && statname !== "timestamp" && statname !== "type") { statsoutput += `<strong>${statname}:</strong> ${report[statname]}<br>\n`; } }); } }); document.queryselector(".stats-box").innerhtml = statsoutput; }); }, 1000); ...
RTCIceProtocol - Web APIs
the webrtc api's rtciceprotocol enumerated type provides a set of domstring values representing the names of the transport protocols ice candidates can use.
RTCIceServer.url - Web APIs
Web › API › RTCIceServer › url
ontaining the full url of a server to use during ice negotiation.
RTCIceTransport.getLocalParameters() - Web APIs
ct which provides information uniquely identifying the local peer for the duration of the ice session.
RTCIceTransport.getRemoteParameters() - Web APIs
hich provides information uniquely identifying the remote peer for the duration of the ice session.
RTCIceTransport: statechange event - Web APIs
ss of examining, verifying, and selecting a valid candidate pair is prior to successfully connecting the two peers for webrtc communications.
RTCIceTransport - Web APIs
es—one for each end of the connection—that have been selected so far.
RTCInboundRtpStreamStats.averageRtcpInterval - Web APIs
ber of seconds after a stream starts to flow before the first rtcp packet should be sent, the result is that if many users try to start using the service at the same time, the server won't be flooded with rtcp packets coming in all at once.
RTCOfferOptions.iceRestart - Web APIs
ger ice renegotiation on the next message sent to the remote peer.
RTCOutboundRtpStreamStats.averageRtcpInterval - Web APIs
ber of seconds after a stream starts to flow before the first rtcp packet should be sent, the result is that if many users try to start using the service at the same time, the server won't be flooded with rtcp packets coming in all at once.
RTCPeerConnection() - Web APIs
current ice transport policy; this must be one of the values from the rtcicetransportpolicy enum.
RTCPeerConnection.generateCertificate() - Web APIs
generatecertificate(keygenalgorithm) parameters keygenalgorithm a domstring identifying the algorithm to use in creating the key.
RTCPeerConnection.getConfiguration() - Web APIs
n value an rtcconfiguration object describing the rtcpeerconnection's current configuration.
RTCPeerConnection.getStats() - Web APIs
.then(stats => { let statsoutput = ""; stats.foreach(report => { statsoutput += `<h2>report: ${report.type}</h3>\n<strong>id:</strong> ${report.id}<br>\n` + `<strong>timestamp:</strong> ${report.timestamp}<br>\n`; // now the statistics for this report; we intentially drop the ones we // sorted to the top above object.keys(report).foreach(statname => { if (statname !== "id" && statname !== "timestamp" && statname !== "type") { statsoutput += `<strong>${statname}:</strong> ${report[statname]}<br>\n`; } }); }); document.queryselector(".stats-box").innerhtml = statsoutput; }); }, 1000); this works by calling getstats(), then, when the promise is resolved, iterates over the rtcstats objects on the re...
RTCPeerConnection.onidentityresult - Web APIs
nection.onidentityresult event handler is a property containing the code to execute when the identityresult event, of type rtcidentityevent, is received by this rtcpeerconnection.
RTCPeerConnection.onidpassertionerror - Web APIs
by this rtcpeerconnection.
RTCPeerConnection.onidpvalidationerror - Web APIs
s rtcpeerconnection.
RTCPeerConnection.onpeeridentity - Web APIs
s received by this rtcpeerconnection.
RTCPeerConnection.onremovestream - Web APIs
e stream being removed and the old removestream event.
RTCPeerConnectionIceEvent() - Web APIs
the rtcpeerconnectioniceevent() constructor creates a new rtcpeerconnectioniceevent.
RTCRtpStreamStats.kind - Web APIs
the kind property of the rtcrtpstreamstats dictionary is a string indicating whether the described rtp stream contains audio or video media.
Range.cloneContents() - Web APIs
ribute events are duplicated as they are for the dom core clonenode method.
Range.cloneRange() - Web APIs
Web › API › Range › cloneRange
the range.clonerange() method returns a range object with boundary points identical to the cloned range.
Range.collapse() - Web APIs
Web › API › Range › collapse
no content, specifying a single-point in a dom tree.
Range.createContextualFragment() - Web APIs
context instead.
Range.deleteContents() - Web APIs
the range.deletecontents() method removes the contents of the range from the document.
Range.detach() - Web APIs
Web › API › Range › detach
the range.detach() method does nothing.
Range.extractContents() - Web APIs
utes are also cloned, which can lead to an invalid document if a partially-selected node is extracted and appended to the document.
Range.getClientRects() - Web APIs
the range.getclientrects() method returns a list of domrect objects representing the area of the screen occupied by the range.
Range.insertNode() - Web APIs
Web › API › Range › insertNode
the new node is a document fragment, the children of the document fragment are inserted instead.
Range.selectNode() - Web APIs
Web › API › Range › selectNode
the range.selectnode() method sets the range to contain the node and its contents.
Range.selectNodeContents() - Web APIs
rt and end of the range will be the reference node.
Range.setEnd() - Web APIs
Web › API › Range › setEnd
ter than or equal to the length of the node or is less than zero.
Range.setEndAfter() - Web APIs
Web › API › Range › setEndAfter
the range.setendafter() method sets the end position of a range relative to another node.
Range.setEndBefore() - Web APIs
the range.setendbefore() method sets the end position of a range relative to another node.
Range.setStart() - Web APIs
Web › API › Range › setStart
lements.
Range.setStartAfter() - Web APIs
the range.setstartafter() method sets the start position of a range relative to a node.
Range.setStartBefore() - Web APIs
the range.setstartbefore() method sets the start position of a range relative to another node.
Resource Timing API - Web APIs
phical representation of the resource timing processing model see the resource timing phases figure.
RsaOaepParams - Web APIs
the rsaoaepparams dictionary of the web crypto api represents the object that should be passed as the algorithm parameter into subtlecrypto.encrypt(), subtlecrypto.decrypt(), subtlecrypto.wrapkey(), or subtlecrypto.unwrapkey(), when using the rsa_oaep algorithm.
RsaPssParams - Web APIs
the rsapssparams dictionary of the web crypto api represents the object that should be passed as the algorithm parameter into subtlecrypto.sign() or subtlecrypto.verify(), when using the rsa-pss algorithm.
SVGAnimatedAngle - Web APIs
svg animated angle interface the svganimatedangle interface is used for attributes of basic type <angle> which can be animated.
SVGAnimatedBoolean - Web APIs
svg animated boolean interface the svganimatedboolean interface is used for attributes of type boolean which can be animated.
SVGAnimatedEnumeration - Web APIs
matedenumeration interface is used for attributes whose value must be a constant from a particular enumeration and which can be animated.
SVGAnimatedInteger - Web APIs
svg animated integer interface the svganimatedinteger interface is used for attributes of basic type <integer> which can be animated.
SVGAnimatedLength - Web APIs
svg animated length interface the svganimatedlength interface is used for attributes of basic type <length> which can be animated.
SVGAnimatedLengthList - Web APIs
ted length list interface the svganimatedlengthlist interface is used for attributes of type svglengthlist which can be animated.
SVGAnimatedNumber - Web APIs
svg animated number interface the svganimatednumber interface is used for attributes of basic type <number> which can be animated.
SVGAnimatedPathData - Web APIs
svgpathseglist animatedpathseglist svgpathseglist normalizedpathseglist svgpathseglist pathseglist normative document svg 1.1 (2nd edition) properties this interface also inherits properties from its parent, svgpathelement.
SVGAnimatedPoints - Web APIs
e xml dom (e.g., using the getattribute() method call) will reflect any changes made to the svganimatedpoints.points attribut.
SVGAnimatedRect - Web APIs
the svganimatedrect interface is used for attributes of basic svgrect which can be animated.
SVGAnimatedTransformList - Web APIs
rface the svganimatedtransformlist interface is used for attributes which take a list of numbers and which can be animated.
SVGComponentTransferFunctionElement - Web APIs
_top"><rect x="131" y="65" width="350" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="306" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgcomponenttransferfunctionelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constants name value description svg_fecomponenttransfer_type_unknown 0 the type is not one of predefined types.
SVGFEBlendElement - Web APIs
delement" target="_top"><rect x="311" y="65" width="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfeblendelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constants name value description svg_feblend_mode_unknown 0 the type is not one of predefined types.
SVGFEColorMatrixElement - Web APIs
nt" target="_top"><rect x="251" y="65" width="230" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="366" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfecolormatrixelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constants name value description svg_fecolormatrix_type_unknown 0 the type is not one of predefined types.
SVGFECompositeElement - Web APIs
ment" target="_top"><rect x="271" y="65" width="210" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="376" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfecompositeelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constants name value description svg_fecomposite_operator_unknown 0 the type is not one of predefined types.
SVGFEConvolveMatrixElement - Web APIs
target="_top"><rect x="221" y="65" width="260" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="351" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfeconvolvematrixelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constants name value description svg_edgemode_unknown 0 the type is not one of predefined types.
SVGFEDisplacementMapElement - Web APIs
target="_top"><rect x="211" y="65" width="270" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="346" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfedisplacementmapelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constants name value description svg_channel_unknown 0 the type is not one of predefined types.
SVGFEGaussianBlurElement - Web APIs
t" target="_top"><rect x="241" y="65" width="240" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="361" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfegaussianblurelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constants name value description svg_edgemode_unknown 0 the type is not one of predefined types.
SVGFEMorphologyElement - Web APIs
ent" target="_top"><rect x="261" y="65" width="220" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="371" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfemorphologyelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constants name value description svg_morphology_operator_unknown 0 the type is not one of predefined types.
SVGFitToViewBox - Web APIs
methods none properties svganimatedpreserveaspectratio preserveaspectratio svganimatedrect viewbox normative document svg 1.1 (2nd edition) properties name type description preserveaspectratio svganimatedpreserveaspectratio corresponds to attribute preserveaspectratio on the given element.
SVGGradientElement - Web APIs
element" target="_top"><rect x="301" y="65" width="180" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="391" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svggradientelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constants name value description svg_spreadmethod_unknown 0 the type is not one of predefined types.
SVGGraphicsElement: copy event - Web APIs
rg/2000/svg"> <text x="5" y="10" id="text-to-copy">copy this text</text> <foreignobject x="5" y="20" width="90" height="20"> <input xmlns="http://www.w3.org/1999/xhtml" placeholder="paste it here"/> </foreignobject> </svg> css input { font-size: 10px; width: 100%; height: 90%; box-sizing: border-box; border: 1px solid black; } javascript document.getelementsbytagname("text")[0].addeventlistener("copy", evt => { evt.clipboarddata.setdata('text/plain', document.getselection().tostring().touppercase()); evt.preventdefault(); }); result specifications specification status comment scalable vector graphics (svg) 2 candidate recommendation definition that the clipboard events apply to svg elements.
SVGPathSegList - Web APIs
signed long index) svgpathseg appenditem(in svgpathseg newitem) properties readonly unsigned long numberofitems normative document svg 1.1 (2nd edition) properties name type description numberofitemsread only unsigned long the number of items in the list.
The 'X' property - Web APIs
the x property describes the horizontal coordinate of the position of the element.
SVGRenderingIntent - Web APIs
" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="91" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgrenderingintent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} warning: this interface was removed in the svg 2 specification.
SVGTransformable - Web APIs
svg transformable interface interface svgtransformable contains properties and methods that apply to all elements which have attribute transform.
SVGUnitTypes - Web APIs
/api/svgunittypes" target="_top"><rect x="1" y="1" width="120" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="61" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgunittypes</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constants name value description svg_unit_type_unknown 0 the type is not one of predefined types.
SVGViewElement - Web APIs
the svgviewelement interface provides access to the properties of <view> elements, as well as methods to manipulate them.
SVGZoomAndPan - Web APIs
pi/svgzoomandpan" target="_top"><rect x="1" y="1" width="130" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="66" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgzoomandpan</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constants name value description svg_zoomandpan_unknown 0 the type is not one of predefined types.
Screen.onorientationchange - Web APIs
warning: this is a non-standard deprecated feature which was implemented only in firefox under a different name.
Using the Screen Capture API - Web APIs
hod.
Screen Wake Lock API - Web APIs
/ create an async function to request a wake lock const requestwakelock = async () => { try { wakelock = await navigator.wakelock.request('screen'); // change up our interface to reflect wake lock active statuselem.textcontent = 'wake lock is active!'; } catch (err) { // if wake lock request fails - usually system related, such as battery statuselem.textcontent = `${err.name}, ${err.message}`; } } releasing wake lock the following example shows how to release the previously acquired wake lock.
ScriptProcessorNode - Web APIs
properties from its parent, audionode.
Selection.addRange() - Web APIs
new ranges to the selection if it already contains one.
Selection.collapse() - Web APIs
also be set to null — if null is specified, the method will behave like selection.removeallranges(), i.e.
ServiceWorkerGlobalScope: contentdelete event - Web APIs
user agent.
ServiceWorkerGlobalScope.oncontentdelete - Web APIs
face is an event handler fired when an item is removed from the indexed content via the user agent.
Using Service Workers - Web APIs
s the other items in the json separately when the for() loop is being iterated through later on, it wouldn’t work, as the promise wouldn’t resolve at the same time as the iterations are being done (that is a synchronous process.) we actually resolve the promise with an array, as we want to make the loaded image blob available to the resolving function later on in the code, but also the image name, credits and alt text (see app.js lines 31-34).
SharedWorkerGlobalScope.applicationCache - Web APIs
d as of firefox 44, and is no longer available in insecure contexts from firefox 60 onwards (bug 1354175, currently nightly/beta only).
SourceBuffer.changeType() - Web APIs
eued appendbuffer() or remove() is still being processed.
SpeechGrammar.SpeechGrammar() - Web APIs
nk | plum | purple | red | salmon | sienna | silver | snow | tan | teal | thistle | tomato | turquoise | violet | white | yellow ;' var recognition = new speechrecognition(); var speechrecognitionlist = new speechgrammarlist(); speechrecognitionlist.addfromstring(grammar, 1); recognition.grammars = speechrecognitionlist; var newgrammar = new speechgrammar(); newgrammar.src = '#jsgf v1.0; grammar names; public <name> = chris | kirsty | mike;' speechrecognitionlist[1] = newgrammar; // should add the new speechgrammar object to the list specifications specification status comment web speech apithe definition of 'speechgrammar()' in that specification.
SpeechRecognition - Web APIs
vice listening to incoming audio with intent to recognize grammars associated with the current speechrecognition.
SpeechRecognitionError.error - Web APIs
the error read-only property of the speechrecognitionerror interface returns the type of error raised.
SpeechRecognitionError.message - Web APIs
the message read-only property of the speechrecognitionerror interface returns a message describing the error in more detail.
SpeechRecognitionError - Web APIs
the speechrecognitionerror interface of the web speech api represents error messages from the recognition service.
SpeechRecognitionEvent.emma - Web APIs
entation of the result.
SpeechSynthesisEvent.elapsedTime - Web APIs
the elapsedtime read-only property of the speechsynthesisutterance interface returns the elapsed time in seconds after the speechsynthesisutterance.text started being spoken that the event was triggered at.
Using the Storage Access API - Web APIs
promise call.
StylePropertyMapReadOnly.get() - Web APIs
the get() method of the stylepropertymapreadonly interface returns a cssstylevalue object for the first value of the specified property.
StylePropertyMapReadOnly.getAll() - Web APIs
the getall() method of the stylepropertymapreadonly interface returns an array of cssstylevalue objects containing the values for the provided property.
StylePropertyMapReadOnly.has() - Web APIs
the has() method of the stylepropertymapreadonly interface indicates whether the specified property is in the stylepropertymapreadonly object.
TextDecoder.prototype.encoding - Web APIs
the textdecoder.prototype.encoding read-only property returns a domstring containing the name of the decoding algorithm used by the specific decoder.
TextDecoder - Web APIs
2, 236, 232, 240, 33]); console.log(win1251decoder.decode(bytes)); // Привет, мир!
TextEncoder.encoding - Web APIs
the textencoder.encoding read-only property returns a domstring containing the name of the encoding algorithm used by the specific encoder.
TextTrack.mode - Web APIs
Web › API › TextTrack › mode
cks whose kind is "subtitles" or "captions" are rendered with the cues overlaid over the top of the video.
TouchEvent() - Web APIs
the touchevent() constructor creates a new touchevent.
TransitionEvent.elapsedTime - Web APIs
the transitionevent.elapsedtime read-only property is a float giving the amount of time the animation has been running, in seconds, when this event fired.
UIEvent() - Web APIs
Web › API › UIEvent › UIEvent
the uievent() constructor creates a new uievent.
URL.host - Web APIs
Web › API › URL › host
the host property of the url interface is a usvstring containing the host, that is the hostname, and then, if the port of the url is nonempty, a ':', followed by the port of the url.
URLSearchParams() - Web APIs
the urlsearchparams() constructor creates and returns a new urlsearchparams object.
URLUtilsReadOnly.host - Web APIs
the urlutilsreadonly.host read-only property returns a domstring containing the host, that is the hostname, a ':', and the port of the url.
VisualViewport - Web APIs
visualviewport.width read only returns the width of the visual viewport in css pixels.
WEBGL_compressed_texture_astc.getSupportedProfiles() - Web APIs
the webgl_compressed_texture_astc.getsupportedprofiles() method returns an array of strings containing the names of the astc profiles supported by the implementation.
WEBGL_compressed_texture_astc - Web APIs
t.getextension() method.
WEBGL_compressed_texture_pvrtc - Web APIs
for more information, see also using extensions in the webgl tutorial.
WEBGL_draw_buffers.drawBuffersWEBGL() - Web APIs
the webgl_draw_buffers.drawbufferswebgl() method is part of the webgl api and allows you to define the draw buffers to which all fragment colors are written.
WakeLock.request() - Web APIs
Web › API › WakeLock › request
n requests a wakelocksentinel object.
WakeLock - Web APIs
Web › API › WakeLock
sts a wakelocksentinel object.
WebGL2RenderingContext.createVertexArray() - Web APIs
the webgl2renderingcontext.createvertexarray() method of the webgl 2 api creates and initializes a webglvertexarrayobject object that represents a vertex array object (vao) pointing to vertex array data and which provides names for different sets of vertex data.
WebGL2RenderingContext.transformFeedbackVaryings() - Web APIs
the webgl2renderingcontext.transformfeedbackvaryings() method of the webgl 2 api specifies values to record in webgltransformfeedback buffers.
WebGLRenderingContext.enableVertexAttribArray() - Web APIs
ttribarray() to enable individual attributes so that they can be used.
WebGLRenderingContext.framebufferTexture2D() - Web APIs
the texture image to be attached.
WebGLRenderingContext.vertexAttrib[1234]f[v]() - Web APIs
nge the values is by calling this function again.
WebGLRenderingContext.vertexAttribPointer() - Web APIs
wer-end graphics cards, the value will be lower.
WebGLUniformLocation - Web APIs
ot directly accessible.
WebGLVertexArrayObject - Web APIs
the webglvertexarrayobject interface is part of the webgl 2 api, represents vertex array objects (vaos) pointing to vertex array data, and provides names for different sets of vertex data.
A basic 2D WebGL animation example - Web APIs
second component to the cosine.
Canvas size and WebGL - Web APIs
to support html5 canvas.</canvas> <canvas>your browser does not seem to support html5 canvas.</canvas> body { text-align : center; } canvas { display : inline-block; width : 120px; height : 80px; margin : auto; padding : 0; border : none; background-color : black; } window.addeventlistener("load", function() { "use strict" var firstcanvas = document.getelementsbytagname("canvas")[0], secondcanvas = document.getelementsbytagname("canvas")[1]; firstcanvas.width = firstcanvas.clientwidth; firstcanvas.height = firstcanvas.clientheight; [firstcanvas, secondcanvas].foreach(function(canvas) { var gl = canvas.getcontext("webgl") || canvas.getcontext("experimental-webgl"); if (!gl) { document.queryselector("p").innerhtml = "failed to...
Clearing with colors - Web APIs
vas.</canvas> body { text-align : center; } canvas { display : block; width : 280px; height : 210px; margin : auto; padding : 0; border : none; background-color : black; } // run everything inside window load event handler, to make sure // dom is fully loaded and styled before trying to manipulate it, // and to not mess up the global scope.
Getting started with WebGL - Web APIs
null) { alert("unable to initialize webgl.
WebGL model view projection - Web APIs
ast example: cubedemo.prototype.computesimpleprojectionmatrix = function(scalefactor) { this.transforms.projection = [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, scalefactor, 0, 0, 0, scalefactor ]; }; although the result is identical, the important step here is in the vertex shader.
Lifetime of a WebRTC session - Web APIs
g rtcpeerconnection.setconfiguration() with an updated rtcconfiguration dictionary before restarting ice.
Improving compatibility using WebRTC adapter.js - Web APIs
s or implement other workarounds.
WebRTC API - Web APIs
using rtcpeerconnection, media streams (mediastreams) and/or data channels (rtcdatachannels) can be added to the connection.
WebSocket.protocol - Web APIs
the websocket.protocol read-only property returns the name of the sub-protocol the server selected; this will be one of the strings specified in the protocols parameter when creating the websocket object, or the empty string if no connection is established.
WebSocket - Web APIs
Web › API › WebSocket
-protocol selected by the server.
Viewpoints and viewers: Simulating cameras in WebXR - Web APIs
her concepts behind webgl and webxr which may be useful to read before or while reading this one, including: explaining basic 3d theory matrix math for the web webgl model view projection geometry and reference spaces in webxr ed.
Geometry and reference spaces in WebXR - Web APIs
d, you can use the same functions to convert coordinates from space to parent space.
Lighting a WebXR setting - Web APIs
because the webxr device api relies on other technologies—namely, webgl and frameworks based upon it—to perform all rendering, texturing, and lighting of a scene, the same general lighting concepts apply to webxr settings or scenes as to any other webgl-generated display.
Movement, orientation, and motion: A WebXR example - Web APIs
vr headset, keyboard, and/or mouse.
Keyframe Formats - Web APIs
ll infer the other end of the animation if it is able to.
Controlling multiple parameters with ConstantSourceNode - Web APIs
is primarily a button to toggle the oscillator tones on and off and an <input> element of type range to control the volume of two of the three oscillators.
Web Speech API - Web APIs
t have been processed in the speech service.
Web Workers API - Web APIs
ble to run a script operation in a background thread separate from the main execution thread of a web application.
WheelEvent() - Web APIs
the wheelevent() constructor returns a newly created wheelevent object.
Window: animationcancel event - Web APIs
the animationcancel event is fired when a css animation unexpectedly aborts.
Window.content - Web APIs
Web › API › Window › content
nt instead of content.
Window.frameElement - Web APIs
the window.frameelement property returns the element (such as <iframe> or <object>) in which the window is embedded.
Window.frames - Web APIs
Web › API › Window › frames
ame objects.
Window.pageYOffset - Web APIs
exceed the maximum.
Window.resizeBy() - Web APIs
Web › API › Window › resizeBy
indow in a browser if the window wasn’t created by window.open(), or contains more than one tab.
Window.showModalDialog() - Web APIs
dow.showmodaldialog(uri[, arguments][, options]); returnval holds the returnvalue property as set by the document specified by uri.
Window.window - Web APIs
Web › API › Window › window
t modules).
WindowEventHandlers.onlanguagechange - Web APIs
r for processing languagechange events.
WindowEventHandlers.onstorage - Web APIs
the onstorage property of the windoweventhandlers mixin is an eventhandler for processing storage events.
WindowOrWorkerGlobalScope.atob() - Web APIs
mit, and decode control characters such as ascii values 0 through 31.
WindowOrWorkerGlobalScope.fetch() - Web APIs
y to the request.
WorkerGlobalScope.location - Web APIs
ing in a document served at localhost:8000 console.log(location); inside a worker (which would basically be the equivalent of self.console.log(self.location);, as these are being called on the worker scope, which can be referenced with workerglobalscope.self), you will get a workerlocation object written to the console — something like the following: workerlocation {hash: "", search: "", pathname: "/worker.js", port: "8000", hostname: "localhost"…} hash: "" host: "localhost:8000" hostname: "localhost" href: "http://localhost:8000/worker.js" origin: "http://localhost:8000" pathname: "/worker.js" port: "8000" protocol: "http:" search: "" __proto__: workerlocation you could use this location object to return more information about the document's location, as you might ...
WorkerGlobalScope.navigator - Web APIs
l get a workernavigator object written to the console — something like the following: object {online: true, useragent: "mozilla/5.0 (macintosh; intel mac os x 10_10_1) ap…ml, like gecko) chrome/40.0.2214.93 safari/537.36", product: "gecko", platform: "macintel", appversion: "5.0 (macintosh; intel mac os x 10_10_1) applewebki…ml, like gecko) chrome/40.0.2214.93 safari/537.36"…} appcodename: "mozilla" appname: "netscape" appversion: "5.0 (macintosh; intel mac os x 10_10_1) applewebkit/537.36 (khtml, like gecko) chrome/40.0.2214.93 safari/537.36" hardwareconcurrency: 4 online: true platform: "macintel" product: "gecko" useragent: "mozilla/5.0 (macintosh; intel mac os x 10_10_1) applewebkit/537.36 (khtml, like gecko) chrome/40.0.2214.93 safari/537.36" _...
WorkerGlobalScope.self - Web APIs
the same type as that worker object written to the console — something like the following: dedicatedworkerglobalscope { undefined: undefined, infinity: infinity, math: mathconstructor, nan: nan, intl: object…} infinity: infinity array: function array() { [native code] } arguments: null caller: null isarray: function isarray() { [native code] } length: 1 name: "array" observe: function observe() { [native code] } prototype: array[0] unobserve: function unobserve() { [native code] } __proto__: function empty() {} <function scope> arraybuffer: function arraybuffer() { [native code] } blob: function blob() { [native code] } boolean: function boolean() { [native code] } dataview: function dataview() { [native ...
WorkerNavigator.permissions - Web APIs
the workernavigator.permissions read-only property returns a permissions object that can be used to query and update permission status of apis covered by the permissions api.
Worklet - Web APIs
Web › API › Worklet
embly code to do graphics rendering or audio processing where high performance is required.
HTML in XMLHttpRequest - Web APIs
d asynchronously, because html support is only available in the asynchronous mode.
XMLHttpRequest.open() - Web APIs
ing event listeners.
XMLHttpRequest.responseXML - Web APIs
the xmlhttprequest.responsexml read-only property returns a document containing the html or xml retrieved by the request; or null if the request was unsuccessful, has not yet been sent, or if the data can't be parsed as xml or html.
XMLHttpRequest - Web APIs
b/api/xmlhttprequest" target="_top"><rect x="441" y="1" width="140" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="511" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">xmlhttprequest</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} despite its name, xmlhttprequest can be used to retrieve any type of data, not just xml.
XPathExpression - Web APIs
this interface is a compiled xpath expression that can be evaluated on a document or specific node to return information from its dom tree.
XRInputSource - Web APIs
his space indicates the angle at which the hand is gripping the object.
XRInputSourcesChangeEvent() - Web APIs
turn value a newly-created xrinputsourceschangeevent object configured based upon the input parameters provided.
XRPermissionDescriptor.mode - Web APIs
t offering webxr api support.
XRPermissionDescriptor.optionalFeatures - Web APIs
upported by all instances of xrsession, both immersive and inline, though it's most useful for inline sessions.
XRPermissionDescriptor.requiredFeatures - Web APIs
se, typically, one of the other reference space types will be used more often.
XRRigidTransform.matrix - Web APIs
z - q_yq_w) & 2(q_yq_z + q_xq_w) & 1 - 2(q_x^2 + q_y^2) & p_z\\ 0 & 0 & 0 & 1 \end{bmatrix} examples in this example, a transform is created to create a matrix which can be used as a transform during rendering of webgl objects, in order to place objects to match a given offset and orientation.
XRSession.requestAnimationFrame() - Web APIs
the xrsession method requestanimationframe(), much like the window method of the same name, schedules a callback to be executed the next time the browser is ready to paint the session's virtual environment to the xr display.
XRSession.requestReferenceSpace() - Web APIs
ng the distance between the viewer and an input, or when working with offset spaces.
XRSystem: isSessionSupported() - Web APIs
ntent inline within the context of an html document) or immersive-vr for a fully-immersive virtual experience.
XRSystem: requestSession() - Web APIs
providing options to configure the new xrsession.
msGetRegionContent - Web APIs
ween implementations and the behavior may change in the future.
Using the alert role - Accessibility
n the alert does not currently applies, causing users to incorrectly believe that there is a problem.
Using the aria-activedescendant attribute - Accessibility
this article describes the aria-activedescendant property.
Using the aria-label attribute - Accessibility
is styled to look like a typical "close" button, with an x in the middle.
Using the aria-valuetext attribute - Accessibility
e instead of the value of aria-valuenow.
Using the group role - Accessibility
ties notes group members that are outside of the dom subtree of the group need to have explicit relationships assigned to them in order to participate in the group.
Using the log role - Accessibility
role in the html code the snippet below shows how the log role is added directly into the html source code.
ARIA: application role - Accessibility
of the standard set to be accessible for direct interaction in ats that use both browse and focus modes for interacting with web content.
ARIA: feed role - Accessibility
gate through your feed.
ARIA: img role - Accessibility
binations, but some of them end up reading the label out twice.
ARIA: search role - Accessibility
search functionality.
ARIA: table role - Accessibility
the row group encapsulates a group of rows, similar to thead, tbody, and tfoot.
Architecture - Accessibility
thing that is embedded in text implements the hyperlink interface.
-webkit-border-before - CSS: Cascading Style Sheets
style: as specifiedborder-top-style: as specifiedcolor: if the value is translucent, the computed value will be the rgba() corresponding one.
-webkit-box-reflect - CSS: Cascading Style Sheets
<id-selector> )<paint()> = paint( <ident>, <declaration-value>?
-webkit-tap-highlight-color - CSS: Cascading Style Sheets
ates which element they're tapping on.
-webkit-text-fill-color - CSS: Cascading Style Sheets
-fill-color: inherit; -webkit-text-fill-color: initial; -webkit-text-fill-color: unset; syntax values <color> the foreground fill color of the element's text content.
-webkit-text-stroke-color - CSS: Cascading Style Sheets
bal values */ -webkit-text-stroke-color: inherit; -webkit-text-stroke-color: initial; -webkit-text-stroke-color: unset; syntax values <color> the color of the stroke.
-webkit-text-stroke - CSS: Cascading Style Sheets
all elementsinheritedyescomputed valueas each of the properties of the shorthand:-webkit-text-stroke-width: absolute <length>-webkit-text-stroke-color: computed coloranimation typeas each of the properties of the shorthand:-webkit-text-stroke-width: discrete-webkit-text-stroke-color: a color formal syntax <length> | <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
::before (:before) - CSS: Cascading Style Sheets
Web › CSS › ::before
.done { background: #ccff99; } li.done::before { content: ''; position: absolute; border-color: #009933; border-style: solid; border-width: 0 0.3em 0.25em 0; height: 1em; top: 1.3em; left: 0.6em; margin-top: -1em; transform: rotate(45deg); width: 0.5em; } javascript var list = document.queryselector('ul'); list.addeventlistener('click', function(ev) { if (ev.target.tagname === 'li') { ev.target.classlist.toggle('done'); } }, false); here is the above code example running live.
::placeholder - CSS: Cascading Style Sheets
screen reading technology will use aria-describedby to read the hint after the input's label text is announced, and the person using the screen reader can mute it if they find the extra information unnecessary.
:in-range - CSS: Cascading Style Sheets
Web › CSS › :in-range
dication that a field's current value is within the permitted limits.
:invalid - CSS: Cascading Style Sheets
Web › CSS › :invalid
descriptive text and/or an icon are used.
:nth-of-type() - CSS: Cascading Style Sheets
the :nth-of-type() css pseudo-class matches elements of a given type (tag name), based on their position among a group of siblings.
:out-of-range - CSS: Cascading Style Sheets
a field's current value is outside the permitted limits.
:read-only - CSS: Cascading Style Sheets
full support 10.1safari ios full support 3.2samsung internet android full support 1.0legend full support full support no support no supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
:read-write - CSS: Cascading Style Sheets
full support 10.1safari ios full support 3.2samsung internet android full support 1.0legend full support full support no support no supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
additive-symbols - CSS: Cascading Style Sheets
<id-selector> )<paint()> = paint( <ident>, <declaration-value>?
negative - CSS: Cascading Style Sheets
<id-selector> )<paint()> = paint( <ident>, <declaration-value>?
pad - CSS: Cascading Style Sheets
<id-selector> )<paint()> = paint( <ident>, <declaration-value>?
prefix - CSS: Cascading Style Sheets
<id-selector> )<paint()> = paint( <ident>, <declaration-value>?
suffix - CSS: Cascading Style Sheets
<id-selector> )<paint()> = paint( <ident>, <declaration-value>?
symbols - CSS: Cascading Style Sheets
<id-selector> )<paint()> = paint( <ident>, <declaration-value>?
aspect-ratio - CSS: Cascading Style Sheets
/* blue */ } } /* maximum aspect ratio */ @media (max-aspect-ratio: 3/2) { div { background: #9ff; /* cyan */ } } /* exact aspect ratio, put it at the bottom to avoid override*/ @media (aspect-ratio: 1/1) { div { background: #f9a; /* red */ } } _example used iframe and dataurl to enable this iframe could resize html <label id="wf" for="w">width:165</label> <input id="w" name="w" type="range" min="100" max="250" step="5" value="165"> <label id="hf" for="w">height:165</label> <input id="h" name="h" type="range" min="100" max="250" step="5" value="165"> <iframe id="outer" src="data:text/html,<style> @media (min-aspect-ratio: 8/5) { div { background: %239af; } } @media (max-aspect-ratio: 3/2) { div { background: %239ff; } } @media (aspect-ratio: 1/1) { div { background:...
prefers-reduced-motion - CSS: Cascading Style Sheets
our accessibility preferences, the animation is toned down to a simple dissolve without vestibular motion triggers.
@viewport - CSS: Cascading Style Sheets
Web › CSS › @viewport
use.
Adjacent sibling combinator - CSS: Cascading Style Sheets
font-weight: bold; } syntax former_element + target_element { style properties } examples css li:first-of-type + li { color: red; } html <ul> <li>one</li> <li>two!</li> <li>three</li> </ul> result specifications specification status comment selectors level 4the definition of 'next-sibling combinator' in that specification.
CSS Animations - CSS: Cascading Style Sheets
css that lets you animate the values of css properties over time, using keyframes.
Resizing background images with background-size - CSS: Cascading Style Sheets
mage up on the other end of the spectrum, you can scale an image up in the background.
Box alignment in grid layout - CSS: Cascading Style Sheets
ll occur if the tracks that you have defined total less than the total width of the grid container.
CSS Containment - CSS: Cascading Style Sheets
, it means that the size of the element's children cannot affect the size of the element itself — its size is computed as if it had no children.
CSS Display - CSS: Cascading Style Sheets
r controlling ratios of flex items along the main axis cross-browser flexbox mixins mastering wrapping of flex items ordering flex items relationship of flexbox to other layout methods backwards compatibility of flexbox typical use cases of flexbox display: grid basic concepts of grid layout relationship to other layout methods line-based placement grid template areas layout using named grid lines auto-placement in grid layout box alignment in grid layout grids, logical values and writing modes css grid layout and accessibility css grid layout and progressive enhancement realizing common layouts using grids specifications specification status comment css display module level 3the definition of 'display' in that specification.
Flow Layout and Overflow - CSS: Cascading Style Sheets
it takes one of two values clip, in which case content is clipped when it overflows, this is the initial value and therefore the default behaviour.
Introduction to formatting contexts - CSS: Cascading Style Sheets
ting a bfc using display: flow-root using display: flow-root (or display: flow-root list-item) on the containing block will create a new bfc without any other potentially problematic side-effects.
CSS grids, logical values, and writing modes - CSS: Cascading Style Sheets
rid-column: -1 / -3; } .item3 { grid-column: 1 / 3; grid-row: 2; } <div class="wrapper"> <div class="item1">item 1</div> <div class="item2">item 2</div> <div class="item3">item 3</div> </div> what this demonstrates, is that if you are switching the direction of your text, either for entire pages or for parts of pages, and are using lines: you may want to name your lines, if you do not want the layout to completely switch direction.
CSS Grid Layout - CSS: Cascading Style Sheets
rea row-gap column-gap gap css functions repeat() minmax() fit-content() css data types <flex> glossary entries grid grid lines grid tracks grid cell grid area gutters grid axis grid row grid column guides basic concepts of grid layout relationship of grid layout to other layout methods layout using line-based placement grid template areas layout using named grid lines auto-placement in css grid layout box alignment in css grid layout css grid, logical values and writing modes css grid layout and accessibility css grid and progressive enhancement realising common layouts using css grid subgrid external resources css grid and ie11 (polyfill) examples from jen simmons grid by example - a collection of usage examples and video tutorials ...
CSS data types - CSS: Cascading Style Sheets
Web › CSS › CSS Types
ywords and units) accepted by css properties and functions.
General sibling combinator - CSS: Cascading Style Sheets
ed; } html <span>this is not red.</span> <p>here is a paragraph.</p> <code>here is some code.</code> <span>and here is a red span!</span> <code>more code...</code> <span>and this is a red span!</span> result specifications specification status comment selectors level 4the definition of 'subsequent-sibling combinator' in that specification.
Recipe: Media objects - CSS: Cascading Style Sheets
the media object is a pattern we see all over the web.
Testing media queries programmatically - CSS: Cascading Style Sheets
ylistevent as the argument to the callback function.
Using media queries - CSS: Cascading Style Sheets
y were deprecated in media queries 4 and shouldn't be used.
Mozilla CSS extensions - CSS: Cascading Style Sheets
a while.
Selector list - CSS: Cascading Style Sheets
ificity, because of how :is() calculates specificity.
Syntax - CSS: Cascading Style Sheets
Web › CSS › Syntax
the basic goal of the cascading stylesheet (css) language is to allow a browser engine to paint elements of the page with specific features, like colors, positioning, or decorations.
align-content - CSS: Cascading Style Sheets
e flex-end">unsafe flex-end</option> </select> </div> javascript var values = document.getelementbyid('values'); var display = document.getelementbyid('display'); var container = document.getelementbyid('container'); values.addeventlistener('change', function (evt) { container.style.aligncontent = evt.target.value; }); display.addeventlistener('change', function (evt) { container.classname = evt.target.value; }); result specifications specification status comment css box alignment module level 3the definition of 'align-content' in that specification.
align-items - CSS: Cascading Style Sheets
afe flex-end">unsafe flex-end</option> </select> </div> javascript var values = document.getelementbyid('values'); var display = document.getelementbyid('display'); var container = document.getelementbyid('container'); values.addeventlistener('change', function (evt) { container.style.alignitems = evt.target.value; }); display.addeventlistener('change', function (evt) { container.classname = evt.target.value; }); result specifications specification status comment css box alignment module level 3the definition of 'align-items' in that specification.
animation-duration - CSS: Cascading Style Sheets
equired.
animation-iteration-count - CSS: Cascading Style Sheets
ation will repeat forever.
animation-play-state - CSS: Cascading Style Sheets
-state: paused, running, running; /* global values */ animation-play-state: inherit; animation-play-state: initial; animation-play-state: unset; values running the animation is currently playing.
backdrop-filter - CSS: Cascading Style Sheets
gth>{2,3} <color>?
background-color - CSS: Cascading Style Sheets
r mdn understanding wcag, guideline 1.4 explanations understanding success criterion 1.4.3 | w3c understanding wcag 2.0 formal definition initial valuetransparentapplies toall elements.
background-image - CSS: Cascading Style Sheets
<id-selector> )<paint()> = paint( <ident>, <declaration-value>?
background-size - CSS: Cascading Style Sheets
full support 14safari ios full support 4.2samsung internet android full support 1.0legend full support full supportsee implementation notes.see implementation notes.requires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
background - CSS: Cascading Style Sheets
<id-selector> )<paint()> = paint( <ident>, <declaration-value>?
border-block-end - CSS: Cascading Style Sheets
r 0 if border-top-style is none or hiddenborder-top-style: as specifiedborder-top-color: computed coloranimation typeas each of the properties of the shorthand:border-block-end-color: a colorborder-block-end-style: discreteborder-block-end-width: a length formal syntax <'border-top-width'> | <'border-top-style'> | <'color'>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-block-start - CSS: Cascading Style Sheets
r-right-style: as specifiedborder-top-style: as specifiedborder-block-start-color: computed coloranimation typeas each of the properties of the shorthand:border-block-start-color: a colorborder-block-start-style: discreteborder-block-start-width: a length formal syntax <'border-top-width'> | <'border-top-style'> | <'color'>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-block - CSS: Cascading Style Sheets
rapplies toall elementsinheritednocomputed valueas each of the properties of the shorthand:border-top-width: the absolute length or 0 if border-top-style is none or hiddenborder-top-style: as specifiedborder-top-color: computed coloranimation typediscrete formal syntax <'border-top-width'> | <'border-top-style'> | <'color'>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-bottom - CSS: Cascading Style Sheets
as each of the properties of the shorthand:border-bottom-color: a colorborder-bottom-style: discreteborder-bottom-width: a length formal syntax <line-width> | <line-style> | <color>where <line-width> = <length> | thin | medium | thick<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset<color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-color - CSS: Cascading Style Sheets
:border-bottom-color: computed colorborder-left-color: computed colorborder-right-color: computed colorborder-top-color: computed coloranimation typeas each of the properties of the shorthand:border-bottom-color: a colorborder-left-color: a colorborder-right-color: a colorborder-top-color: a color formal syntax <color>{1,4}where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-image-source - CSS: Cascading Style Sheets
<id-selector> )<paint()> = paint( <ident>, <declaration-value>?
border-inline-end - CSS: Cascading Style Sheets
order-right-style: as specifiedborder-top-style: as specifiedborder-inline-end-color: computed coloranimation typeas each of the properties of the shorthand:border-inline-end-color: a colorborder-inline-end-style: discreteborder-inline-end-width: a length formal syntax <'border-top-width'> | <'border-top-style'> | <'color'>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-inline-start - CSS: Cascading Style Sheets
ght-style: as specifiedborder-top-style: as specifiedborder-inline-start-color: computed coloranimation typeas each of the properties of the shorthand:border-inline-start-color: a colorborder-inline-start-style: discreteborder-inline-start-width: a length formal syntax <'border-top-width'> | <'border-top-style'> | <'color'>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-inline - CSS: Cascading Style Sheets
rapplies toall elementsinheritednocomputed valueas each of the properties of the shorthand:border-top-width: the absolute length or 0 if border-top-style is none or hiddenborder-top-style: as specifiedborder-top-color: computed coloranimation typediscrete formal syntax <'border-top-width'> | <'border-top-style'> | <'color'>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-left-color - CSS: Cascading Style Sheets
rder-left-color: unset; the border-left-color property is specified as a single value.
border-left - CSS: Cascading Style Sheets
n typeas each of the properties of the shorthand:border-left-color: a colorborder-left-style: discreteborder-left-width: a length formal syntax <line-width> | <line-style> | <color>where <line-width> = <length> | thin | medium | thick<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset<color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-right-color - CSS: Cascading Style Sheets
r-right-color: unset; the border-right-color property is specified as a single value.
border-right - CSS: Cascading Style Sheets
ypeas each of the properties of the shorthand:border-right-color: a colorborder-right-style: discreteborder-right-width: a length formal syntax <line-width> | <line-style> | <color>where <line-width> = <length> | thin | medium | thick<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset<color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border-top-color - CSS: Cascading Style Sheets
; border-top-color: unset; the border-top-color property is specified as a single value.
border-top - CSS: Cascading Style Sheets
tion typeas each of the properties of the shorthand:border-top-color: a colorborder-top-style: discreteborder-top-width: a length formal syntax <line-width> | <line-style> | <color>where <line-width> = <length> | thin | medium | thick<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset<color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
border - CSS: Cascading Style Sheets
Web › CSS › border
s of the shorthand:border-bottom-width: a lengthborder-left-width: a lengthborder-right-width: a lengthborder-top-width: a length formal syntax <line-width> | <line-style> | <color>where <line-width> = <length> | thin | medium | thick<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset<color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
box-shadow - CSS: Cascading Style Sheets
the longer list.
caret-color - CSS: Cascading Style Sheets
uto is not interpolated in transitions and animations.
column-count - CSS: Cascading Style Sheets
5.0 full support 5.0 full support 1.0prefixed prefixed implemented with the vendor prefix: -webkit-legend full support full supportsee implementation notes.see implementation notes.requires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
column-rule-color - CSS: Cascading Style Sheets
tial; column-rule-color: unset; the column-rule-color property is specified as a single <color> value.
cross-fade() - CSS: Cascading Style Sheets
tions understanding success criterion 1.1.1 | w3c understanding wcag 2.0 formal syntax cross-fade( <cf-mixing-image> , <cf-final-image>?
display - CSS: Cascading Style Sheets
Web › CSS › display
r controlling ratios of flex items along the main axis cross-browser flexbox mixins mastering wrapping of flex items ordering flex items relationship of flexbox to other layout methods backwards compatibility of flexbox typical use cases of flexbox display: grid basic concepts of grid layout relationship to other layout methods line-based placement grid template areas layout using named grid lines auto-placement in grid layout box alignment in grid layout grids, logical values and writing modes css grid layout and accessibility css grid layout and progressive enhancement realizing common layouts using grids accessibility concerns display: none using a display value of none on an element will remove it from the accessibility tree.
<easing-function> - CSS: Cascading Style Sheets
0%; } } li { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; } javascript const selectelem = document.queryselector('select'); const startbtn = document.queryselector('button'); const divelem = document.queryselector('div > div'); startbtn.addeventlistener('click', () => { if(startbtn.textcontent === 'start animation') { divelem.style.animationname = 'move-right'; startbtn.textcontent = 'stop animation'; divelem.style.animationtimingfunction = selectelem.value; } else { divelem.style.animationname = 'unset'; startbtn.textcontent = 'start animation'; } }); selectelem.addeventlistener('change', () => { divelem.style.animationtimingfunction = selectelem.value; }); result cubic-bezier() function examples these cubic ...
filter - CSS: Cascading Style Sheets
Web › CSS › filter
gth>{2,3} <color>?
font-style - CSS: Cascading Style Sheets
iable fonts, the "slnt" variation is used to implement varying slant angles for oblique, and the "ital" variation with a value of 1 is used to implement italic values.
ident - CSS: Cascading Style Sheets
Web › CSS › ident
the <ident> css data type denotes an arbitrary string used as an identifier.
image-set() - CSS: Cascading Style Sheets
Web › CSS › image-set
or prefix: -webkit-legend full support full support partial support partial support no support no supportsee implementation notes.see implementation notes.requires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
image() - CSS: Cascading Style Sheets
rt of that image defined by a media fragment, and specifying a solid color as a fallback in case none of the specified images are able to be rendered.
initial - CSS: Cascading Style Sheets
Web › CSS › initial
14safari ios full support 1samsung internet android full support 1.0legend full support full support no support no supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
list-style-type - CSS: Cascading Style Sheets
00b"; } voiceover and list-style-type: none – unfettered thoughts mdn understanding wcag, guideline 1.3 explanations understanding success criterion 1.3.1 | w3c understanding wcag 2.0 formal definition initial valuediscapplies tolist itemsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax <counter-style> | <string> | nonewhere <counter-style> = <counter-style-name> | symbols()where <counter-style-name> = <custom-ident> examples setting list item markers html list 1 <ol class="normal"> <li>hello</li> <li>world</li> <li>what's up?</li> </ol> list 2 <ol class="shortcut"> <li>looks</li> <li>like</li> <li>the</li> <li>same</li> </ol> css ol.normal { list-style-type: upper-alpha; } /* or use the shortcut "list-style": */ ol.shortcut { l...
mask-border-source - CSS: Cascading Style Sheets
<id-selector> )<paint()> = paint( <ident>, <declaration-value>?
mask-image - CSS: Cascading Style Sheets
<id-selector> )<paint()> = paint( <ident>, <declaration-value>?
mask - CSS: Cascading Style Sheets
Web › CSS › mask
eclaration-value>?
object-fit - CSS: Cascading Style Sheets
rt 10samsung internet android full support 2.0legend full support full support no support no supportsee implementation notes.see implementation notes.requires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
object-position - CSS: Cascading Style Sheets
th the vendor prefix: -o-safari ios full support 10samsung internet android no support 2.0 — 10.0legend full support full support no support no supportrequires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
place-items - CSS: Cascading Style Sheets
ue="stretch auto">stretch auto</option> </select> </div> javascript var values = document.getelementbyid('values'); var display = document.getelementbyid('display'); var container = document.getelementbyid('container'); values.addeventlistener('change', function (evt) { container.style.placeitems = evt.target.value; }); display.addeventlistener('change', function (evt) { container.classname = evt.target.value; }); css #container { height:200px; width: 240px; place-items: center; /* you can change this value by selecting another option in the list */ background-color: #8c8c8c; } .flex { display: flex; flex-wrap: wrap; } .grid { display: grid; grid-template-columns: repeat(auto-fill, 50px); } result specifications specification status comment...
position - CSS: Cascading Style Sheets
Web › CSS › position
pport 6.0legend full support full support no support no supportsee implementation notes.see implementation notes.user must explicitly enable this feature.user must explicitly enable this feature.requires a vendor prefix or different name for use.requires a vendor prefix or different name for use.
scrollbar-color - CSS: Cascading Style Sheets
ween them.
shape-outside - CSS: Cascading Style Sheets
n> = [ [ left | center | right ] | [ top | center | bottom ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]?
text-decoration-color - CSS: Cascading Style Sheets
r mdn understanding wcag, guideline 1.4 explanations understanding success criterion 1.4.3 | w3c understanding wcag 2.0 formal definition initial valuecurrentcolorapplies toall elements.
text-emphasis-color - CSS: Cascading Style Sheets
mphasis-color: initial; text-emphasis-color: unset; syntax values <color> defines the color of the emphasis marks.
text-shadow - CSS: Cascading Style Sheets
ghter.
url() - CSS: Cascading Style Sheets
Web › CSS › url()
und-image: cross-fade(20% url(first.png), url(second.png)); mask-image: image(url(mask.png), skyblue, linear-gradient(rgba(0, 0, 0, 1.0), transparent); /* as part of a non-shorthand multiple value */ content: url(star.svg) url(star.svg) url(star.svg) url(star.svg) url(star.svg); /* at-rules */ @document url("https://www.example.com/") { ...
<url> - CSS: Cascading Style Sheets
Web › CSS › url
the <url> css data type denotes a pointer to a resource, such as an image or a font.
user-select - CSS: Cascading Style Sheets
he entire element including all its descendants.
width - CSS: Cascading Style Sheets
Web › CSS › width
ed; border: 1px solid black; } <div class="px_length">width measured in px</div> <div class="em_length">width measured in em</div> percentage .percent { width: 20%; background-color: silver; border: 1px solid red; } <div class="percent">width in percentage</div> max-content p.maxgreen { background: lightgreen; width: intrinsic; /* safari/webkit uses a non-standard name */ width: -moz-max-content; /* firefox/gecko */ width: -webkit-max-content; /* chrome */ width: max-content; } <p class="maxgreen">the mozilla community produces a lot of great software.</p> min-content p.minblue { background: lightblue; width: -moz-min-content; /* firefox */ width: -webkit-min-content; /* chrome */ width: min-content; } <p class="minblue">the mozilla co...
will-change - CSS: Cascading Style Sheets
ature> can be one of the following values: scroll-position indicates that the author expects to animate or change the scroll position of the element in the near future.
exsl:object-type() - EXSLT
xpath reference: xslt elements, exslt functions, xpath functions, xpath axes exsl:object-type() returns a string that indicates the type of the specified object.
Common (exsl) - EXSLT
Web › EXSLT › exsl
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the exslt common package provides basic functions that expand upon the capabilities of xslt.
Math (math) - EXSLT
Web › EXSLT › math
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the exslt math package provides functions for working with numeric values and comparing nodes.
Regular expressions (regexp) - EXSLT
Web › EXSLT › regexp
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the exslt regular expressions package provides functions that allow testing, matching, and replacing text using javascript style regular expressions.
Sets (set) - EXSLT
Web › EXSLT › set
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the exslt sets package offers functions that let you perform set manipulation.
Strings (str) - EXSLT
Web › EXSLT › str
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the exslt strings package provides functions that allow the manipulation of strings.
Cross-browser audio basics - Developer guides
includes flash fallbacks, which are used something like this: <audio controls> <source src="audiofile.mp3" type="audio/mpeg"> <source src="audiofile.ogg" type="audio/ogg"> <!-- fallback for non supporting browsers goes here --> <a href="audiofile.mp3">download audio</a> <object width="320" height="30" type="application/x-shockwave-flash" data="mediaelement-flash-video.swf"> <param name="movie" value="mediaelement-flash-video.swf" /> <param name="flashvars" value="controls=true&isvideo=false&file=audiofile.mp3" /> </object> </audio> note: you should be aware that flash and silverlight code require that the user has the appropriate plugin installed, and that the browser cannot guarantee the security aspects of code running on those plugin platforms.
Setting up adaptive streaming media sources - Developer guides
ood to go.
Creating a cross-browser video player - Developer guides
ip-medium.mp4" type="video/mp4"> <source src="video/tears-of-steel-battle-clip-medium.webm" type="video/webm"> <source src="video/tears-of-steel-battle-clip-medium.ogg" type="video/ogg"> <!-- flash fallback --> <object type="application/x-shockwave-flash" data="flash-player.swf?videourl=video/tears-of-steel-battle-clip-medium.mp4" width="1024" height="576"> <param name="movie" value="flash-player.swf?videourl=video/tears-of-steel-battle-clip-medium.mp4" /> <param name="allowfullscreen" value="true" /> <param name="wmode" value="transparent" /> <param name="flashvars" value="controlbar=over&amp;image=img/poster.jpg&amp;file=flash-player.swf?videourl=video/tears-of-steel-battle-clip-medium.mp4" /> <img alt="tears of steel poste...
Block formatting context - Developer guides
splay: flow-root a newer value of display lets us create a new bfc without any other potentially problematic side-effects.
Creating and triggering events - Developer guides
}); this will then allow you to access the additional data in the event listener: function eventhandler(e) { console.log('the time is: ' + e.detail); } the old-fashioned way the older approach to creating events uses apis inspired by java.
Content categories - Developer guides
content <area>, if it is a descendant of a <map> element <del>, if it contains only phrasing content <ins>, if it contains only phrasing content <link>, if the itemprop attribute is present <map>, if it contains only phrasing content <meta>, if the itemprop attribute is present embedded content embedded content imports another resource or inserts content from another mark-up language or namespace into the document.
Printing - Developer guides
<p><a href="javascript: popuponclick()">open popup window</a></p> </body> </html> view live examples print an external page without opening it if you want to be able to print an external page without opening it, you can utilize a hidden <iframe> (see: htmliframeelement), automatically removing it after the user prints its contents.
Applying color to HTML elements using CSS - HTML: Hypertext Markup Language
that a computer can use.
HTML attribute: crossorigin - HTML: Hypertext Markup Language
ia elements is a cors settings attribute.
HTML attribute: min - HTML: Hypertext Markup Language
Web › HTML › Attributes › min
80" value="40"> at 40/100</meter> impact on step the value of min and step define what are valid values, even if the step attribute is not included, as step defaults to 0.
HTML attribute: minlength - HTML: Hypertext Markup Language
long, with validitystate.tooshort returning true.
HTML attribute: step - HTML: Hypertext Markup Language
Web › HTML › Attributes › step
as <input type="number" min="-5.2"> min impact on step the value of min and step define what are valid values, even if the step attribute is not included, as step defaults to 0.
<h1>–<h6>: The HTML Section Heading elements - HTML: Hypertext Markup Language
heading levels: always start from <h1>, next use <h2> and so on.
<address>: The Contact Address element - HTML: Hypertext Markup Language
Web › HTML › Element › address
interactive-examples and send us a pull request.
<audio>: The Embed Audio element - HTML: Hypertext Markup Language
Web › HTML › Element › audio
wser would obviously need to start downloading the audio for playback.
<b>: The Bring Attention To element - HTML: Hypertext Markup Language
Web › HTML › Element › b
none, both the starting and ending tag are mandatory.
<datalist>: The HTML Data List element - HTML: Hypertext Markup Language
Web › HTML › Element › datalist
any element that accepts phrasing content.
<figure>: The Figure with Optional Caption element - HTML: Hypertext Markup Language
Web › HTML › Element › figure
he beautiful mdn logo."> </figure> <!-- image with a caption --> <figure> <img src="https://udn.realityripple.com/samples/6c/98485e5d8a.png" alt="the beautiful mdn logo."> <figcaption>mdn logo</figcaption> </figure> code snippets <figure> <figcaption>get browser details using <code>navigator</code>.</figcaption> <pre> function navigatorexample() { var txt; txt = "browser codename: " + navigator.appcodename + "; "; txt+= "browser name: " + navigator.appname + "; "; txt+= "browser version: " + navigator.appversion + "; "; txt+= "cookies enabled: " + navigator.cookieenabled + "; "; txt+= "platform: " + navigator.platform + "; "; txt+= "user-agent header: " + navigator.useragent + "; "; console.log("navigatorexample", txt); } </pre> </figure> quotations ...
<frame> - HTML: Hypertext Markup Language
Web › HTML › Element › frame
et>.
<hr>: The Thematic Break (Horizontal Rule) element - HTML: Hypertext Markup Language
Web › HTML › Element › hr
t that accepts flow content.
<html>: The HTML Document / Root element - HTML: Hypertext Markup Language
Web › HTML › Element › html
manifest specifies the uri of a resource manifest indicating resources that should be cached locally.
<input type="range"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › range
orient similar to the -moz-orient non-standard css property impacting the <progress> and <meter> elements, the orient attribute defines the orientation of the range slider.
<isindex> - HTML: Hypertext Markup Language
Web › HTML › Element › isindex
t this attribute added its value as a prompt for text field.
<marquee>: The Marquee element (Obsolete) - HTML: Hypertext Markup Language
Web › HTML › Element › marquee
g area of text.
<menu> - HTML: Hypertext Markup Language
Web › HTML › Element › menu
e starting and ending tag are mandatory.
<optgroup> - HTML: Hypertext Markup Language
Web › HTML › Element › optgroup
le permitted dom interface htmloptgroupelement note: optgroup elements may not be nested.
<section>: The Generic Section element - HTML: Hypertext Markup Language
Web › HTML › Element › section
s flow content, sectioning content, palpable content.
<template>: The Content Template element - HTML: Hypertext Markup Language
Web › HTML › Element › template
ent property, which is a read-only documentfragment containing the dom subtree which the template represents.
<video>: The Video Embed element - HTML: Hypertext Markup Language
Web › HTML › Element › video
or playback.
is - HTML: Hypertext Markup Language
the is global attribute allows you to specify that a standard html element should behave like a defined custom built-in element (see using custom elements for more details).
slot - HTML: Hypertext Markup Language
the slot global attribute assigns a slot in a shadow dom shadow tree to an element: an element with a slot attribute is assigned to the slot created by the <slot> element whose name attribute's value matches that slot attribute's value.
tabindex - HTML: Hypertext Markup Language
the tabindex global attribute indicates that its element can be focused, and where it participates in sequential keyboard navigation (usually with the tab key, hence the name).
Link types: noopener - HTML: Hypertext Markup Language
the window.opener property on the opened window (it returns null).
Evolution of HTTP - HTTP
xibility.
Reason: CORS header 'Access-Control-Allow-Origin' does not match 'xyz' - HTTP
eader is included in responses.
Reason: Did not find method in CORS header ‘Access-Control-Allow-Methods’ - HTTP
to access the url specified in the request; if the request is using any other method, this error occurs.
Reason: CORS header 'Access-Control-Allow-Origin' missing - HTTP
o indicate that some headers are being set dynamically depending on the origin.
Content Security Policy (CSP) - HTTP
Web › HTTP › CSP
riginal-policy the original policy as specified by the content-security-policy http header.
Content negotiation - HTTP
oper language using this header.
Accept-CH-Lifetime - HTTP
the accept-ch-lifetime header is set by the server to specify the persistence of accept-ch header value that specifies for which client hints headers client should include in subsequent requests.
Accept-CH - HTTP
the accept-ch header is set by the server to specify which client hints headers a client should include in subsequent requests.
Accept-Encoding - HTTP
acceptable error.
Accept-Language - HTTP
also want to visit a page in another language than the locale of their user interface.
Accept-Patch - HTTP
d media types.
Accept-Ranges - HTTP
accept-ranges response http header is a marker used by the server to advertise its support of partial requests.
Accept - HTTP
Web › HTTP › Headers › Accept
en selects one of the proposals, uses it and informs the client of its choice with the content-type response header.
Access-Control-Allow-Credentials - HTTP
pi.
Access-Control-Allow-Origin - HTTP
the access-control-allow-origin response header indicates whether the response can be shared with requesting code from the given origin.
Access-Control-Max-Age - HTTP
the access-control-max-age response header indicates how long the results of a preflight request (that is the information contained in the access-control-allow-methods and access-control-allow-headers headers) can be cached.
Access-Control-Request-Method - HTTP
the access-control-request-method request header is used by browsers when issuing a preflight request, to let the server know which http method will be used when the actual request is made.
Age - HTTP
Web › HTTP › Headers › Age
age header contains the time in seconds the object has been in a proxy cache.
Allow - HTTP
Web › HTTP › Headers › Allow
ader lists the set of methods supported by a resource.
Cache-Control - HTTP
the cache-control http header holds directives (instructions) for caching in both requests and responses.
Clear-Site-Data - HTTP
the clear-site-data header clears browsing data (cookies, storage, cache) associated with the requesting website.
Content-Language - HTTP
which language the document is written in, use the lang attribute instead).
Content-Length - HTTP
the content-length entity header indicates the size of the entity-body, in bytes, sent to the recipient.
Content-Range - HTTP
the content-range response http header indicates where in a full body message a partial message belongs.
CSP: base-uri - HTTP
can be allowed for the base-uri policy: content-security-policy: base-uri <source>; content-security-policy: base-uri <source> <source>; sources while this directive uses the same arguments as other csp directives, some of them don’t make sense for `<base>`, such as the keywords 'unsafe-inline' and 'strict-dynamic' <source> can be one of the following: <host-source> internet hosts by name or ip address, as well as an optional url scheme and/or port number.
CSP: child-src - HTTP
fetch directive default-src fallback yes.
CSP: connect-src - HTTP
directive default-src fallback yes.
CSP: default-src - HTTP
-attr style-src style-src-elem style-src-attr worker-src csp version 1 directive type fetch directive syntax one or more sources can be allowed for the default-src policy: content-security-policy: default-src <source>; content-security-policy: default-src <source> <source>; sources <source> can be one of the following: <host-source> internet hosts by name or ip address, as well as an optional url scheme and/or port number.
CSP: font-src - HTTP
fetch directive default-src fallback yes.
CSP: frame-ancestors - HTTP
policy: frame-ancestors <source> <source>; sources <source> can be one of the following: the frame-ancestors directive’s syntax is similar to a source list of other directives (e.g.
CSP: frame-src - HTTP
back if this directive is absent, the user agent will look for the child-src directive (which falls back to the default-src directive).
CSP: img-src - HTTP
e fetch directive default-src fallback yes.
CSP: manifest-src - HTTP
ective default-src fallback yes.
CSP: media-src - HTTP
fetch directive default-src fallback yes.
CSP: object-src - HTTP
ch directive default-src fallback yes.
CSP: prefetch-src - HTTP
ective default-src fallback yes.
CSP: report-to - HTTP
the content-security-policy report-to http response header field instructs the user agent to store reporting endpoints for an origin.
CSP: script-src-attr - HTTP
e allowed for the script-src-attr policy: content-security-policy: script-src-attr <source>; content-security-policy: script-src-attr <source> <source>; script-src-attr can be used in conjunction with script-src: content-security-policy: script-src <source>; content-security-policy: script-src-attr <source>; sources <source> can be one of the following: <host-source> internet hosts by name or ip address, as well as an optional url scheme and/or port number.
CSP: script-src-elem - HTTP
e allowed for the script-src-elem policy: content-security-policy: script-src-elem <source>; content-security-policy: script-src-elem <source> <source>; script-src-elem can be used in conjunction with script-src: content-security-policy: script-src <source>; content-security-policy: script-src-elem <source>; sources <source> can be one of the following: <host-source> internet hosts by name or ip address, as well as an optional url scheme and/or port number.
CSP: script-src - HTTP
h directive default-src fallback yes.
CSP: style-src-attr - HTTP
ces can be allowed for the style-src-attr policy: content-security-policy: style-src-attr <source>; content-security-policy: style-src-attr <source> <source>; style-src-attr can be used in conjunction with style-src: content-security-policy: style-src <source>; content-security-policy: style-src-attr <source>; sources <source> can be one of the following: <host-source> internet hosts by name or ip address, as well as an optional url scheme and/or port number.
CSP: style-src-elem - HTTP
can be allowed for the style-src-elem policy: content-security-policy: style-src-elem <source>; content-security-policy: style-src-elem <source> <source>; style-src-elem can be used in conjunction with style-src: content-security-policy: style-src <source>; content-security-policy: style-src-elem <source>; sources <source> can be one of the following: <host-source> internet hosts by name or ip address, as well as an optional url scheme and/or port number.
CSP: style-src - HTTP
fetch directive default-src fallback yes.
CSP: worker-src - HTTP
rning worker execution.
Cookie2 - HTTP
Web › HTTP › Headers › Cookie2
the obsolete cookie2 http request header used to advise the server that the user agent understands "new-style" cookies, but nowadays user agents will use the cookie header instead, not this one.
Cross-Origin-Embedder-Policy - HTTP
the http cross-origin-embedder-policy (coep) response header prevents a document from loading any cross-origin resources that don't explicitly grant the document permission (using corp or cors).
Cross-Origin-Opener-Policy - HTTP
attacks dubbed xs-leaks.
Cross-Origin-Resource-Policy - HTTP
igin-resource-policy can prevent some resources (such as pdfs) from being downloaded in some circumstances.
DNT - HTTP
Web › HTTP › Headers › DNT
the dnt (do not track) request header indicates the user's tracking preference.
DPR - HTTP
Web › HTTP › Headers › DPR
the dpr header is a client hints headers which represents the client device pixel ratio (dpr), which is the the number of physical device pixels corresponding to every css pixel.
Device-Memory - HTTP
the device-memory header is a device memory api header that works like client hints header which represents the approximate amount of ram client device has.
Digest - HTTP
Web › HTTP › Headers › Digest
gest values.
ETag - HTTP
Web › HTTP › Headers › ETag
ource at a given url changes, a new etag value must be generated.
Early-Data - HTTP
the early-data header is set by an intermediary to indicate that the request has been conveyed in tls early data, and also indicates that the intermediary understands the 425 (too early) status code.
Expect-CT - HTTP
e the expect-ct header over http; the header only has effect on https connections.
Expect - HTTP
Web › HTTP › Headers › Expect
the header is sufficient to cause an immediate success, 417 (expectation failed) if it cannot meet the expectation; or any other 4xx status otherwise.
Expires - HTTP
Web › HTTP › Headers › Expires
the expires header contains the date/time after which the response is considered stale.
Forwarded - HTTP
re the x-forwarded-for, x-forwarded-host and x-forwarded-proto headers.
From - HTTP
Web › HTTP › Headers › From
who controls the requesting user agent.
If-Match - HTTP
Web › HTTP › Headers › If-Match
rticular for put, if-match can be used to prevent the lost update problem.
If-None-Match - HTTP
to update a cached entity that has an associated etag.
Keep-Alive - HTTP
tion header needs to be set to "keep-alive" for this header to have any meaning.
Location - HTTP
Web › HTTP › Headers › Location
a redirection (or the url of a newly created resource), while content-location indicates the direct url to use to access the resource when content negotiation happened, without the need of further content negotiation.
Pragma - HTTP
Web › HTTP › Headers › Pragma
t a reliable replacement for the general http/1.1 cache-control header, although it does behave the same as cache-control: no-cache, if the cache-control header field is omitted in a request.
Public-Key-Pins-Report-Only - HTTP
ll allows browsers to connect to the server if the pinning is violated.
Public-Key-Pins - HTTP
ociate a specific cryptographic public key with a certain web server to decrease the risk of mitm attacks with forged certificates, however, it has been removed from modern browsers and is no longer supported.
Range - HTTP
Web › HTTP › Headers › Range
e, and the server may send back these ranges in a multipart document.
Retry-After - HTTP
e service is expected to be unavailable.
Sec-Fetch-Dest - HTTP
the sec-fetch-dest fetch metadata header indicates the request's destination, that is how the fetched data will be used.
Sec-Fetch-Mode - HTTP
the sec-fetch-mode fetch metadata header indicates the request's mode.
Sec-Fetch-Site - HTTP
the sec-fetch-site fetch metadata header indicates the relationship between a request initiator's origin and the origin of the resource.
Sec-Fetch-User - HTTP
the sec-fetch-user fetch metadata header indicates whether or not a navigation request was triggered by a user activation.
Sec-WebSocket-Accept - HTTP
the sec-websocket-accept header is used in the websocket opening handshake.
SourceMap - HTTP
the sourcemap http response header links generated code to a source map, enabling the browser to reconstruct the original source and present the reconstructed original in the debugger.
Strict-Transport-Security - HTTP
the http strict-transport-security response header (often abbreviated as hsts) lets a web site tell browsers that it should only be accessed using https, instead of using http.
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.
Tk - HTTP
Web › HTTP › Headers › Tk
the tk response header indicates the tracking status that applied to the corresponding request.
Upgrade-Insecure-Requests - HTTP
the http upgrade-insecure-requests request header sends a signal to the server expressing the client’s preference for an encrypted and authenticated response, and that it can successfully handle the upgrade-insecure-requests csp directive.
Want-Digest - HTTP
clude any digest algorithms that the server supports, the server may respond with: a digest calculated using a different digest algorithm, or a 400 bad request error, and include another want-digest header with that response, listing the algorithms that it does support.
X-Content-Type-Options - HTTP
rs correctly.
X-Forwarded-For - HTTP
exposes privacy sensitive information, such as the ip address of the client.
X-Forwarded-Proto - HTTP
logs contain the protocol used between the server and the load balancer, but not the protocol used between the client and the load balancer.
X-XSS-Protection - HTTP
that don't yet support csp.
HTTP Messages - HTTP
Web › HTTP › Messages
h get, post, head, and options methods.
POST - HTTP
Web › HTTP › Methods › POST
mple form using the default application/x-www-form-urlencoded content type: post /test http/1.1 host: foo.example content-type: application/x-www-form-urlencoded content-length: 27 field1=value1&field2=value2 a form using the multipart/form-data content type: post /test http/1.1 host: foo.example content-type: multipart/form-data;boundary="boundary" --boundary content-disposition: form-data; name="field1" value1 --boundary content-disposition: form-data; name="field2"; filename="example.txt" value2 --boundary-- specifications specification title rfc 7231, section 4.3.3: post hypertext transfer protocol (http/1.1): semantics and content rfc 2046, section 5.1.1: common syntax multipurpose internet mail extensions (mime) part two: media types ...
451 Unavailable For Legal Reasons - HTTP
Web › HTTP › Status › 451
see below) and contains a reference to monty python's life of brian.
CSS Houdini
klets, you can create modular css, requiring a single line of javascript to import configureable components: no pre-processors, post-processors or javascript frameworks needed.
About JavaScript - JavaScript
o their source text).
Regular expressions - JavaScript
ed in regular expressions in a single table, see the following: special characters in regular expressions.
extends - JavaScript
his example is extracted from this live demo (source).
Deprecated and obsolete features - JavaScript
ecated togmtstring method in new code.
TypeError: property "x" is non-configurable and can't be deleted - JavaScript
rom the object and whether its attributes (other than writable) can be changed.
SyntaxError: missing : after property id - JavaScript
ykey'] = 'value'; empty properties you can't create empty properties like this: var obj = { propertykey; }; // syntaxerror: missing : after property id if you need to define a property without a value, you might use null as a value.
SyntaxError: "x" is a reserved identifier - JavaScript
ivate protected public static examples strict and non-strict reserved keywords the enum identifier is generally reserved.
TypeError: invalid 'instanceof' operand 'x' - JavaScript
: invalid 'instanceof' operand 0 function foo() {} var f = foo(); // foo() is called and returns undefined var x = new foo(); x instanceof f; // typeerror: invalid 'instanceof' operand f x instanceof x; // typeerror: x is not a function to fix these errors, you will either need to replace the instanceof operator with the typeof operator, or to make sure you use the function name, instead of the result of its evaluation.
AggregateError() constructor - JavaScript
s an iterable of errors, may not actually be error instances.
Array.prototype[@@unscopables] - JavaScript
the @@unscopable symbol property contains property names that were not included in the ecmascript standard prior to the es2015 version.
Array.prototype.copyWithin() - JavaScript
ywithin copies up to but not including end.
Array.prototype.map() - JavaScript
11 if (typeof callback !== 'function') { throw new typeerror(callback + ' is not a function'); } // 5.
Array.prototype.pop() - JavaScript
the pop() method removes the last element from an array and returns that element.
Date.prototype.getDay() - JavaScript
he given date, according to local time: 0 for sunday, 1 for monday, 2 for tuesday, and so on.
Date.prototype.getMonth() - JavaScript
senting the month in the given date according to local time.
Date.prototype.toDateString() - JavaScript
the todatestring() method returns the date portion of a date object in english in the following format separated by spaces: first three letters of the week day name first three letters of the month name two digit day of the month, padded on the left a zero if necessary four digit year (at least), padded on the left with zeros if necessary e.g.
Date.prototype.toLocaleString() - JavaScript
the options argument: let date = new date(date.utc(2012, 11, 20, 3, 0, 0)); // request a weekday along with a long date let options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }; console.log(date.tolocalestring('de-de', options)); // → "donnerstag, 20.
Error.prototype.message - JavaScript
the message property is a human-readable description of the error.
Function.caller - JavaScript
(n - 1); } function g(n) { if (n > 0) { f(n); } else { stop(); } } f(2); at the moment stop() is called the call stack will be: f(2) -> g(1) -> f(1) -> g(0) -> stop() the following is true: stop.caller === g && f.caller === g && g.caller === f so if you tried to get the stack trace in the stop() function like this: var f = stop; var stack = 'stack trace:'; while (f) { stack += '\n' + f.name; f = f.caller; } the loop would never stop.
Function.prototype.toString() - JavaScript
l('foo'); // typeerror if the tostring() method is called on built-in function objects or a function created by function.prototype.bind, tostring() returns a native function string which looks like "function () {\n [native code]\n}" if the tostring() method is called on a function created by the function constructor, tostring() returns the source code of a synthesized function declaration named "anonymous" using the provided parameters and function body.
Intl.DateTimeFormat.prototype.resolvedOptions() - JavaScript
ned (representing the runtime's default time zone) if none was provided.
Intl.Locale.prototype.calendar - JavaScript
property returns the part of the locale that indicates the locale's calendar era.
Intl.Locale.prototype.toString() - JavaScript
ject will return the identifier string for that particular locale.
Intl.Locale - JavaScript
system type.
Intl.NumberFormat.prototype.formatToParts() - JavaScript
locale-specific tokens from which it possible to build custom strings while preserving the locale-specific parts.
Math.abs() - JavaScript
the math.abs() function returns the absolute value of a number, that is math.abs(x)=|x|={xifx>00ifx=0-xifx<0{\mathtt{\operatorname{math.abs}(z)}} = {|z|} = \begin{cases} x & \text{if} \quad x \geq 0 \\ x & \text{if} \quad x < 0 \end{cases} the source for this interactive example is stored in a github repository.
Math.acos() - JavaScript
the math.acos() function returns the arccosine (in radians) of a number, that is ∀x∊[-1;1],math.acos(x)=arccos(x)= the unique y∊[0;π]such thatcos(y)=x\forall x \in [{-1};1],\;\mathtt{\operatorname{math.acos}(x)} = \arccos(x) = \text{ the unique } \; y \in [0; \pi] \, \text{such that} \; \cos(y) = x the source for this interactive example is stored in a github repository.
Math.asin() - JavaScript
the math.asin() function returns the arcsine (in radians) of a number, that is ∀x∊[-1;1],math.asin(x)=arcsin(x)= the unique y∊[-π2;π2]such thatsin(y)=x\forall x \in [{-1};1],\;\mathtt{\operatorname{math.asin}(x)} = \arcsin(x) = \text{ the unique } \; y \in \left[-\frac{\pi}{2}; \frac{\pi}{2}\right] \, \text{such that} \; \sin(y) = x the source for this interactive example is stored in a github repository.
Math.asinh() - JavaScript
the math.asinh() function returns the hyperbolic arcsine of a number, that is math.asinh(x)=arsinh(x)= the unique ysuch thatsinh(y)=x\mathtt{\operatorname{math.asinh}(x)} = \operatorname{arsinh}(x) = \text{ the unique } \; y \; \text{such that} \; \sinh(y) = x the source for this interactive example is stored in a github repository.
Math.atan() - JavaScript
the math.atan() function returns the arctangent (in radians) of a number, that is math.atan(x)=arctan(x)= the unique y∊[-π2;π2]such thattan(y)=x\mathtt{\operatorname{math.atan}(x)} = \arctan(x) = \text{ the unique } \; y \in \left[-\frac{\pi}{2}; \frac{\pi}{2}\right] \, \text{such that} \; \tan(y) = x the source for this interactive example is stored in a github repository.
Math.clz32() - JavaScript
untleadingzeroes32.
Math.cosh() - JavaScript
the math.cosh() function returns the hyperbolic cosine of a number, that can be expressed using the constant e: math.cosh(x)=ex+e-x2\mathtt{\operatorname{math.cosh(x)}} = \frac{e^x + e^{-x}}{2} the source for this interactive example is stored in a github repository.
Math.hypot() - JavaScript
the math.hypot() function returns the square root of the sum of squares of its arguments, that is: math.hypot(v1,v2,…,vn)=∑i=1nvi2=v12+v22+…+vn2\mathtt{\operatorname{math.hypot}(v_1, v_2, \dots, v_n)} = \sqrt{\sum_{i=1}^n v_i^2} = \sqrt{v_1^2 + v_2^2 + \dots + v_n^2} the source for this interactive example is stored in a github repository.
Math.log() - JavaScript
the math.log() function returns the natural logarithm (base e) of a number, that is ∀x>0,math.log(x)=ln(x)=the uniqueysuch thatey=x\forall x > 0, \mathtt{\operatorname{math.log}(x)} = \ln(x) = \text{the unique} \; y \; \text{such that} \; e^y = x the javascript math.log() function is equivalent to ln(x) in mathematics.
Math.log10() - JavaScript
the math.log10() function returns the base 10 logarithm of a number, that is ∀x>0,math.log10(x)=log10(x)=the uniqueysuch that10y=x\forall x > 0, \mathtt{\operatorname{math.log10}(x)} = \log_10(x) = \text{the unique} \; y \; \text{such that} \; 10^y = x the source for this interactive example is stored in a github repository.
Math.log1p() - JavaScript
the math.log1p() function returns the natural logarithm (base e) of 1 + a number, that is ∀x>-1,math.log1p(x)=ln(1+x)\forall x > -1, \mathtt{\operatorname{math.log1p}(x)} = \ln(1 + x) the source for this interactive example is stored in a github repository.
Math.log2() - JavaScript
the math.log2() function returns the base 2 logarithm of a number, that is ∀x>0,math.log2(x)=log2(x)=the uniqueysuch that2y=x\forall x > 0, \mathtt{\operatorname{math.log2}(x)} = \log_2(x) = \text{the unique} \; y \; \text{such that} \; 2^y = x the source for this interactive example is stored in a github repository.
Math.sinh() - JavaScript
the math.sinh() function returns the hyperbolic sine of a number, that can be expressed using the constant e: math.sinh(x)=ex-e-x2\mathtt{\operatorname{math.sinh(x)}} = \frac{e^x - e^{-x}}{2} the source for this interactive example is stored in a github repository.
Number.prototype.toLocaleString() - JavaScript
upport for locales and options arguments the locales and options arguments are not supported in all browsers yet.
Object.prototype.__defineGetter__() - JavaScript
erty() api.
Object.prototype.__defineSetter__() - JavaScript
e object initializer syntax or the object.defineproperty() api.
Object.prototype.__lookupGetter__() - JavaScript
the __lookupgetter__ method returns the function bound as a getter to the specified property.
Object.prototype.__lookupSetter__() - JavaScript
the __lookupsetter__ method returns the function bound as a setter to the specified property.
Object.getOwnPropertyDescriptors() - JavaScript
tydescriptors(obj) parameters obj the object for which to get all own property descriptors.
Object.prototype.propertyIsEnumerable() - JavaScript
returns a boolean indicating whether the specified property is enumerable and is the object's own property.
Object.prototype.__proto__ - JavaScript
rototype.__proto__ = p; var circle = new shape(); circle.a(); // aaa console.log(shape.prototype === circle.__proto__); // true // or var shape = function () {}; var p = { a: function () { console.log('a'); } }; var circle = new shape(); circle.__proto__ = p; circle.a(); // a console.log(shape.prototype === circle.__proto__); // false // or function test() {}; test.prototype.myname = function () { console.log('myname'); }; var a = new test(); console.log(a.__proto__ === test.prototype); // true a.myname(); // myname // or var fn = function () {}; fn.prototype.myname = function () { console.log('myname'); }; var obj = { __proto__: fn.prototype }; obj.myname(); // myname specifications specification ecmascript (ecma-262)the definition...
handler.deleteProperty() - JavaScript
f you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
handler.get() - JavaScript
epository.
handler.getOwnPropertyDescriptor() - JavaScript
to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
handler.has() - JavaScript
s stored in a github repository.
Proxy() constructor - JavaScript
er.deleteproperty() a trap for the delete operator.
Reflect.defineProperty() - JavaScript
rns a boolean.
Reflect.deleteProperty() - JavaScript
te operator as a function.
Reflect.get() - JavaScript
propertykey]) as a function.
Reflect.getOwnPropertyDescriptor() - JavaScript
ned otherwise.
Reflect.has() - JavaScript
like the in operator as a function.
Reflect.ownKeys() - JavaScript
a pull request.
Reflect.set() - JavaScript
roperty on an object.
RegExp.$1-$9 - JavaScript
ed in the replacement text for the string.replace method.
String.prototype.fontcolor() - JavaScript
d creates a <font> html element that causes a string to be displayed in the specified font color.
String.prototype.localeCompare() - JavaScript
heck browser support for extended arguments the locales and options arguments are not supported in all browsers yet.
String.prototype.replaceAll() - JavaScript
ch has been performed.
TypedArray.prototype.fill() - JavaScript
s interval to fill is [start, end).
TypedArray.prototype.join() - JavaScript
ve-examples and send us a pull request.
TypedArray.prototype.slice() - JavaScript
tted, slice extracts through the end of the sequence (typedarray.length).
TypedArray.prototype.some() - JavaScript
ome, it will be passed to callback when invoked, for use as its this value.
WebAssembly.Module.exports() - JavaScript
ted_func: function(arg) { console.log(arg); } } }; onmessage = function(e) { console.log('module received from main thread'); var mod = e.data; webassembly.instantiate(mod, importobject).then(function(instance) { instance.exports.exported_func(); }); var exports = webassembly.module.exports(mod); console.log(exports[0]); }; the exports[0] output looks like this: { name: "exported_func", kind: "function" } specifications specification webassembly javascript interfacethe definition of 'exports()' in that specification.
WebAssembly.Module.imports() - JavaScript
is thrown.
WebAssembly.Module - JavaScript
stateless webassembly code that has already been compiled by the browser — this can be efficiently shared with workers, and instantiated multiple times.
encodeURI() - JavaScript
arameters uri a complete uri.
encodeURIComponent() - JavaScript
can be safely used: function fixedencodeuricomponent(str) { return encodeuricomponent(str).replace(/[!'()*]/g, function(c) { return '%' + c.charcodeat(0).tostring(16); }); } examples encoding for content-disposition and link headers the following example provides the special encoding required within utf-8 content-disposition and link server response header parameters (e.g., utf-8 filenames): var filename = 'my file(2).txt'; var header = "content-disposition: attachment; filename*=utf-8''" + encoderfc5987valuechars(filename); console.log(header); // logs "content-disposition: attachment; filename*=utf-8''my%20file%282%29.txt" function encoderfc5987valuechars(str) { return encodeuricomponent(str).
undefined - JavaScript
ecmascript 5 specification.
Strict equality (===) - JavaScript
// true console.log(3 === 4); // false console.log(true === true); // true console.log(true === false); // false console.log(null === null); // true comparing operands of different types console.log("3" === 3); // false console.log(true === 1); // false console.log(null === undefined); // false comparing objects const object1 = { name: "hello" } const object2 = { name: "hello" } console.log(object1 === object2); // false console.log(object1 === object1); // true specifications specification ecmascript (ecma-262)the definition of 'equality operators' in that specification.
Strict inequality (!==) - JavaScript
// false console.log(3 !== 4); // true console.log(true !== true); // false console.log(true !== false); // true console.log(null !== null); // false comparing operands of different types console.log("3" !== 3); // true console.log(true !== 1); // true console.log(null !== undefined); // true comparing objects const object1 = { name: "hello" } const object2 = { name: "hello" } console.log(object1 !== object2); // true console.log(object1 !== object1); // false specifications specification ecmascript (ecma-262)the definition of 'equality operators' in that specification.
new.target - JavaScript
with new') } new foo() // logs "foo instantiated with new" foo() // throws "foo() must be called with new" new.target in constructors in class constructors, new.target refers to the constructor that was directly invoked by new.
label - JavaScript
statement, and continue can be used with looping labeled statements.
Statements and declarations - JavaScript
use, and executes statements associated with that case.
JavaScript reference - JavaScript
array float64array bigint64array biguint64array keyed collections map set weakmap weakset structured data arraybuffer sharedarraybuffer atomics dataview json control abstraction promise generator generatorfunction asyncfunction reflection reflect proxy internationalization intl intl.collator intl.datetimeformat intl.displaynames intl.listformat intl.locale intl.numberformat intl.pluralrules intl.relativetimeformat webassembly webassembly webassembly.module webassembly.instance webassembly.memory webassembly.table webassembly.compileerror webassembly.linkerror webassembly.runtimeerror statements javascript statements and declarations control flowblock break continu...
categories - Web app manifests
type array of strings mandatory no the categories member is an array of strings defining the names of categories that the application supposedly belongs to.
Values - MathML
firefox 7.0 / thunderbird 7.0 / seamonkey 2.4) (bug 650530) negativeveryverythinmathspace -1/18em negativeverythinmathspace -2/18em negativethinmathspace -3/18em negativemediummathspace -4/18em negativethickmathspace -5/18em negativeverythickmathspace -6/18em negativeveryverythickmathspace -7/18em note: namedspace binding is deprecated in mathml3 and has been removed in gecko 15.0 (firefox 15.0 / thunderbird 15.0 / seamonkey 2.12) (bug 673759).
<mglyph> - MathML
Web › MathML › Element › mglyph
image.
<mphantom> - MathML
the mathml <mphantom> element is rendered invisibly, but dimensions (such as height, width, and baseline position) are still kept.
<mspace> - MathML
Web › MathML › Element › mspace
alues and units).
MathML documentation index - MathML
Web › MathML › Index
hml, mathml reference, mathml:element the mathml <mglyph> element is used to display non-standard symbols where existing unicode characters are not available.
Image file type and format guide - Web media technologies
algorithm was covered by patents until the early 2000s.
Digital video concepts - Web media technologies
and using floating-point components.
Critical rendering path - Web Performance
as a width of 100%, meaning it will be 100% of the width of the viewport.
Performance fundamentals - Web Performance
waits until the browser is actually ready to start building the next frame of your animation, and won't bother if the hardware isn't going to actually draw anything.
Navigation and resource timings - Web Performance
ness is set to complete.
Understanding latency - Web Performance
ting for a network connection it is considered blocked.
Web Performance
el from source to a destination.
Installing and uninstalling web apps - Progressive web apps (PWAs)
m of the screen: this calls up the sharing panel.
PWA developer guide - Progressive web apps (PWAs)
in the articles listed here, you'll find guides about every aspect of development specific to the greation of progressive web applications (pwas).
Progressive loading - Progressive web apps (PWAs)
the screenshots of games referenced in <img> element src attributes, which will force the browser to download them automatically, we can do it selectively via javascript.
The building blocks of responsive design - Progressive web apps (PWAs)
say, 320px or 480px wide.
Progressive web apps (PWAs)
.
SVG Event Attributes - SVG: Scalable Vector Graphics
Web › SVG › Attribute › Events
event attributes always have their name starting with "on" followed by the name of the event for which they are intended.
SVG Presentation Attributes - SVG: Scalable Vector Graphics
alpha compositing.
alignment-baseline - SVG: Scalable Vector Graphics
the alignment-baseline attribute specifies how an object is aligned with respect to its parent.
baseProfile - SVG: Scalable Vector Graphics
sing restrictions; it can be considered metadata.
data-* - SVG: Scalable Vector Graphics
Web › SVG › Attribute › data-*
the data-* svg attributes are called custom data attributes.
fill - SVG: Scalable Vector Graphics
Web › SVG › Attribute › fill
id="mygradient"> <stop offset="0%" stop-color="pink" /> <stop offset="100%" stop-color="black" /> </radialgradient> </defs> <circle cx="150" cy="50" r="40" fill="url(#mygradient)" /> <!-- keeping the final state of an animated circle which is a circle with a radius of 40.
font-variant - SVG: Scalable Vector Graphics
: 100%; } <svg viewbox="0 0 250 30" xmlns="http://www.w3.org/2000/svg"> <text y="20" font-variant="normal">normal text</text> <text x="100" y="20" font-variant="small-caps">small-caps text</text> </svg> usage notes value normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> || stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feature-value-name> ) || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordina...
from - SVG: Scalable Vector Graphics
Web › SVG › Attribute › from
used with the by attribute, the animation will change the attribute relatively from the from value by the value specified in by.
id - SVG: Scalable Vector Graphics
Web › SVG › Attribute › id
the id attribute assigns a unique name to an element.
in - SVG: Scalable Vector Graphics
Web › SVG › Attribute › in
arent or semi-transparent parts.
operator - SVG: Scalable Vector Graphics
ndicates that the source graphic defined in the in attribute and the destination graphic defined in the in2 attribute are combined using the following formula: result = k1*i1*i2 + k2*i1 + k3*i2 + k4 where: i1 and i2 indicate the corresponding pixel channel values of the input image, which map to in and in2 respectively, and k1,k2,k3,and k4 indicate the values of the attributes with the same name.
to - SVG: Scalable Vector Graphics
Web › SVG › Attribute › to
n.
values - SVG: Scalable Vector Graphics
Web › SVG › Attribute › values
sequence of values over the course of the animation.
xlink:href - SVG: Scalable Vector Graphics
the xlink:href attribute defines a reference to a resource as a reference iri.
<animateColor> - SVG: Scalable Vector Graphics
tribute target attributes animation timing attributes animation value attributes animation addition attributes externalresourcesrequired specific attributes by from to dom interface this element implements the svganimatecolorelement interface.
<animateMotion> - SVG: Scalable Vector Graphics
: <number>|auto|auto-reverse; default value: 0; animatable: no note: for <animatemotion> the default value for the calcmode attribute is paced animation attributes animation timing attributes begin, dur, end, min, max, restart, repeatcount, repeatdur, fill animation value attributes calcmode, values, keytimes, keysplines, from, to, by other animation attributes most notably: attributename, additive, accumulate animation event attributes most notably: onbegin, onend, onrepeat global attributes core attributes most notably: id styling attributes class, style event attributes global event attributes, document element event attributes usage notes this element implements the svganimatemotionelement interface.
<animateTransform> - SVG: Scalable Vector Graphics
thereby allowing animations to control translation, scaling, rotation, and/or skewing.
<color-profile> - SVG: Scalable Vector Graphics
the <color-profile> element allows describing the color profile used for the image.
<feComposite> - SVG: Scalable Vector Graphics
selighting> and <fespecularlighting> filters with texture data.
<metadata> - SVG: Scalable Vector Graphics
Web › SVG › Element › metadata
the <metadata> svg element adds metadata to svg content.
SVG 1.1 Support in Firefox - SVG: Scalable Vector Graphics
ented.
Basic shapes - SVG: Scalable Vector Graphics
« previousnext » there are several basic shapes used for most svg drawing.
Basic Transformations - SVG: Scalable Vector Graphics
ments seamlessly.
Fills and Strokes - SVG: Scalable Vector Graphics
inline css, but there are advantages and disadvantages associated with each type.
Filter effects - SVG: Scalable Vector Graphics
fill="#ffffff" stroke="black" font-size="45" font-family="verdana" > <text x="52" y="52">svg</text> </g> </g> </svg> step 1 <fegaussianblur in="sourcealpha" stddeviation="4" result="blur"/> <fegaussianblur> takes in "sourcealpha", which is the alpha channel of the source graphic, applies a blur of 4, and stores the result in a temporary buffer named "blur".
Positions - SVG: Scalable Vector Graphics
ents which position x from right-to-left).
SVG In HTML Introduction - SVG: Scalable Vector Graphics
p class="end" offset="100%"/> </lineargradient> <rect x="0" y="0" width="100" height="100" style="fill:url(#gradient)" /> <circle cx="50" cy="50" r="30" style="fill:url(#gradient)" /> </svg> </body> </html> discussion the page is mainly regular html, css and javascript.
Tools for SVG - SVG: Scalable Vector Graphics
der or smaller devices, chances are that svg tiny is supported.
Web security
authority challenge-response authentication cipher cipher suite ciphertext cors cors-safelisted request header cors-safelisted response header cross-site scripting cryptanalysis cryptographic hash function cryptography csp csrf decryption digital certificate dtls encryption forbidden header name forbidden response header name hash hmac hpkp hsts https key mitm owasp preflight request public-key cryptography reporting directive robots.txt same-origin policy session hijacking sql injection symmetric-key cryptography tofu tls ...
descendant-or-self - XPath
the descendant-or-self axis indicates the context node and all of its descendants.
descendant - XPath
Web › XPath › Axes › descendant
the descendant axis indicates all of the children of the context node, and all of their children, and so forth.
following - XPath
Web › XPath › Axes › following
the following axis indicates all the nodes that appear after the context node, except any descendant, attribute, and namespace nodes.
preceding - XPath
Web › XPath › Axes › preceding
the preceding axis indicates all the nodes that precede the context node in the document except any ancestor, attribute and namespace nodes.
format-number - XPath
nction evaluates a number and returns a string representing the number in a given format.
XPath
h snippets these are javascript utility functions, that can be used in your own code, based on dom level 3 xpath apis.
<xsl:apply-templates> - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:apply-templates> element selects a set of nodes in the input tree and instructs the processor to apply the proper templates to them.
<xsl:output> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › output
e characteristics of the output document.
<xsl:strip-space> - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:strip-space> element defines the elements in the source document for which whitespace should be removed.
Advanced Example - XSLT: Extensible Stylesheet Language Transformations
= fragment; // add the new content from the transformation document.getelementbyid("example").appendchild(fragment) } // xsl stylesheet: <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/xsl/transform"> <xsl:output method="html" indent="yes" /> <xsl:param name="myorder" /> <xsl:template match="/"> <xsl:apply-templates select="/div//div"> <xsl:sort select="." data-type="number" order="{$myorder}" /> </xsl:apply-templates> </xsl:template> <xsl:template match="div"> <xsl:copy-of select="." /> </xsl:template> </xsl:stylesheet> ...
Exported WebAssembly functions - WebAssembly
on that you can do to other functions in javascript — call(), bind(), etc.
WebAssembly
ebassembly text format this article explains the wasm text format.