Search completed in 1.01 seconds.
5835 results for "method":
Your results are loading. Please wait...
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.
... the read-only methodname property of the paymentmethodchangeevent interface is a string which uniquely identifies the payment handler currently selected by the user.
... the read-only methodname property of the paymentmethodchangeevent interface is a string which uniquely identifies the payment handler currently selected by the user.
...And 16 more matches
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.
... 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.
... 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.
...And 15 more matches
Reason: Did not find method in CORS header ‘Access-Control-Allow-Methods’ - HTTP
reason reason: did not find method in cors header ‘access-control-allow-methods’ what went wrong?
... reason reason: did not find method in cors header ‘access-control-allow-methods’ what went wrong?
... reason reason: did not find method in cors header ‘access-control-allow-methods’ what went wrong?
...And 8 more matches
Adding Methods to XBL-defined Elements - Archive of obsolete content
« previousnext » next, we'll find out how to add custom methods to xbl-defined elements.
... « previousnext » next, we'll find out how to add custom methods to xbl-defined elements.
... « previousnext » next, we'll find out how to add custom methods to xbl-defined elements.
...And 43 more matches
Adding a new todo form: Vue events, methods, and models - Learn web development
previous overview: client-side javascript frameworks next we now have sample data in place, and a loop that takes each bit of data and renders it inside a todoitem in our app.
...javascript objects that manage the app's data and an html-based template syntax that maps to the underlying dom structure.
..." :key="item.id"> <to-do-item :label="item.label" :done="item.done" :id="item.id"></to-do-item> </li> </ul> </div> </template> now when you view your running site, you should see the new form displayed.
...And 33 more matches
NSPR Poll Method
this technical note documents the poll method of prfiledesc.
... this technical note documents the poll method of prfiledesc.
... this technical note documents the poll method of prfiledesc.
...And 27 more matches
PaymentMethodChangeEvent - Web APIs
the paymentmethodchangeevent() constructor creates a new paymentmethodchangeevent object providing details about a paymentmethodchange event.
... the paymentmethodchangeevent() constructor creates a new paymentmethodchangeevent object providing details about a paymentmethodchange event.
... the paymentmethodchangeevent() constructor creates a new paymentmethodchangeevent object providing details about a paymentmethodchange event.
...And 16 more matches
Object.prototype.__noSuchMethod__ - Archive of obsolete content
obsolete since gecko 43 (firefox 43 / thunderbird 43 / seamonkey 2.40)this feature is obsolete.
... obsolete since gecko 43 (firefox 43 / thunderbird 43 / seamonkey 2.40)this feature is obsolete.
...since gecko 43 (firefox 43 / thunderbird 43 / seamonkey 2.40)this feature is obsolete.
...And 14 more matches
PaymentRequest.onpaymentmethodchange - Web APIs
the paymentrequest event handler onpaymentmethodchange is invoked when the paymentmethodchange is fired, indicating that the user has changed payment methods within a given payment handler.
... invoked when the paymentmethodchange is fired, indicating that the user has changed payment methods within a given payment handler.
...entmethodchange is fired, indicating that the user has changed payment methods within a given payment handler.
...And 13 more matches
Relationship of flexbox to other layout methods - CSS: Cascading Style Sheets
on details how alignment works in all layout — not just flexbox.
...perties apply to flex items.
...xbox is writing mode aware.
...And 13 more matches
PaymentRequest: paymentmethodchange event - Web APIs
paymentmethodchange events are delivered by the payment request api to a paymentrequest object when the user changes payment methods within a given payment handler.
... paymentmethodchange events are delivered by the payment request api to a paymentrequest object when the user changes payment methods within a given payment handler.
...thodchange events are delivered by the payment request api to a paymentrequest object when the user changes payment methods within a given payment handler.
...And 12 more matches
HTTP request methods - HTTP
Web › HTTP › Methods
http defines a set of request methods to indicate the desired action to be performed for a given resource.
... http defines a set of request methods to indicate the desired action to be performed for a given resource.
... http defines a set of request methods to indicate the desired action to be performed for a given resource.
...And 12 more matches
Method definitions - JavaScript
starting with ecmascript 2015, a shorter syntax for method definitions on objects initializers is introduced.
... starting with ecmascript 2015, a shorter syntax for method definitions on objects initializers is introduced.
...… ) {}, async* [generator]( parameters… ) {}, }; description the shorthand syntax is similar to the getter and setter syntax introduced in ecmascript 2015.
...And 12 more matches
PRIOMethods
the table of i/o methods used in a file descriptor.
... the table of i/o methods used in a file descriptor.
...ctfn 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).
...And 10 more matches
PaymentMethodChangeEvent - Web APIs
the paymentmethodchangeevent interface of the payment request api describes the paymentmethodchange event which is fired by some payment handlers when the user switches payment instruments (e.g., a user selects a "store" card to make a purchase while using apple pay).
... the paymentmethodchangeevent interface of the payment request api describes the paymentmethodchange event which is fired by some payment handlers when the user switches payment instruments (e.g., a user selects a "store" card to make a purchase while using apple pay).
... the paymentmethodchangeevent interface of the payment request api describes the paymentmethodchange event which is fired by some payment handlers when the user switches payment instruments (e.g., a user selects a "store" card to make a purchase while using apple pay).
...And 10 more matches
Useful string methods - Learn web development
previous overview: first steps next now that we've looked at the very basics of 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.
...ings 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.
...bjective: to understand that strings are objects, and learn how to use some of the basic methods available on those objects to manipulate strings.
...And 9 more matches
spreadMethod - SVG: Scalable Vector Graphics
the spreadmethod attribute determines how a shape is filled beyond the defined edges of a gradient.
... filled.
...fy and fr (inner) attributes.
...And 9 more matches
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.
... the access-control-allow-methods response header specifies the method or methods allowed when accessing the resource in response to a preflight request.
... the access-control-allow-methods response header specifies the method or methods allowed when accessing the resource in response to a preflight request.
...And 8 more matches
PR_GetDefaultIOMethods
gets the default i/o methods table.
... gets the default i/o methods table.
... gets the default i/o methods table.
...And 6 more matches
Method - MDN Web Docs Glossary: Definitions of Web-related terms
a method is a function which is a property of an object.
... a method is a function which is a property of an object.
... a method is a function which is a property of an object.
...And 5 more matches
Static method - MDN Web Docs Glossary: Definitions of Web-related terms
a static method (or static function) is a method defined as a member of an object but is accessible directly from an api object's constructor, rather than from an object instance created via the constructor.
... a static method (or static function) is a method defined as a member of an object but is accessible directly from an api object's constructor, rather than from an object instance created via the constructor.
... a static method (or static function) is a method defined as a member of an object but is accessible directly from an api object's constructor, rather than from an object instance created via the constructor.
...And 5 more matches
Legacy layout methods - Learn web development
previous overview: css layout next grid systems are a very common feature used in css layouts, and before css grid layout they tended to be implemented using floats or other layout features.
...) objective: to understand the fundamental concepts behind the grid layout systems used prior to css grid layout being available in browsers.
...the grid layout systems used prior to css grid layout being available in browsers.
...And 5 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 5 more matches
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?
... reason reason: invalid token ‘xyz’ in cors header ‘access-control-allow-methods’ what went wrong?
... reason reason: invalid token ‘xyz’ in cors header ‘access-control-allow-methods’ what went wrong?
...And 5 more matches
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.
... 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.
...d 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.
...And 5 more matches
NPN_HasMethod - Archive of obsolete content
« gecko plugin api reference « scripting plugins summary determines whether or not the specified npobject has a particular method.
... « gecko plugin api reference « scripting plugins summary determines whether or not the specified npobject has a particular method.
... « gecko plugin api reference « scripting plugins summary determines whether or not the specified npobject has a particular method.
...And 4 more matches
HTMLFormElement.method - Web APIs
the htmlformelement.method property represents the http method used to submit the <form>.
... the htmlformelement.method property represents the http method used to submit the <form>.
... the htmlformelement.method property represents the http method used to submit the <form>.
...And 4 more matches
Comparing Reflect and Object methods - JavaScript
the reflect object, introduced in es2015, is a built-in object that provides methods to interface with javascript objects.
... the reflect object, introduced in es2015, is a built-in object that provides methods to interface with javascript objects.
... the reflect object, introduced in es2015, is a built-in object that provides methods to interface with javascript objects.
...And 3 more matches
JSFUN_BOUND_METHOD
obsolete since javascript 1.8.5this feature is obsolete.
...could be removed at any time.
...to avoid using it.
...And 2 more matches
PaymentRequestEvent.methodData - Web APIs
the methoddata read-only property of the paymentrequestevent interface returns an array of paymentmethoddata objects containing payment method identifers for the payment methods that the web site accepts and any associated payment method specific data.
... the methoddata read-only property of the paymentrequestevent interface returns an array of paymentmethoddata objects containing payment method identifers for the payment methods that the web site accepts and any associated payment method specific data.
... the methoddata read-only property of the paymentrequestevent interface returns an array of paymentmethoddata objects containing payment method identifers for the payment methods that the web site accepts and any associated payment method specific data.
...And 2 more matches
Request.method - Web APIs
Web › API › Request › method
the method read-only property of the request interface contains the request's method (get, post, etc.) syntax var mymethod = request.method; value a bytestring indicating the method of the request.
... the method read-only property of the request interface contains the request's method (get, post, etc.) syntax var mymethod = request.method; value a bytestring indicating the method of the request.
...ns the request's method (get, post, etc.) syntax var mymethod = request.method; value a bytestring indicating the method of the request.
...And 2 more matches
method - SVG: Scalable Vector Graphics
Web › SVG › Attribute › method
the method attribute indicates the method by which text should be rendered along the path of a <textpath> element.
... the method attribute indicates the method by which text should be rendered along the path of a <textpath> element.
... the method attribute indicates the method by which text should be rendered along the path of a <textpath> element.
...And 2 more matches
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.
... 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.
...n.
Relationship of grid layout to other layout methods - CSS: Cascading Style Sheets
wo items have wrapped onto a new line.
...ible.
...e rules for .box3 you can see how it would display without the positioning.
...t items nested into the grid to act as if they are part of the grid, and is a way around some of the issues that would be solved by subgrids once they are implemented.
405 Method Not Allowed - HTTP
Web › HTTP › Status › 405
the hypertext transfer protocol (http) 405 method not allowed response status code indicates that the request method is known by the server but is not supported by the target resource.
... the hypertext transfer protocol (http) 405 method not allowed response status code indicates that the request method is known by the server but is not supported by the target resource.
... the hypertext transfer protocol (http) 405 method not allowed response status code indicates that the request method is known by the server but is not supported by the target resource.
...hod not allowed response status code indicates that the request method is known by the server but is not supported by the target resource.
XRWebGLLayer.getNativeFramebufferScaleFactor() static method - Web APIs
the static method xrwebgllayer.getnativeframebufferscalefactor() returns a floating-point scaling factor by which one can multiply the specified xrsession's resolution to get the native resolution of the webxr device's frame buffer.
...resolution of 1280x1440 pixels).
...needed to reach the native resolution, and we then pass that into the webgllayer() constructor as the value of the framebufferscalefactor property in its layerinit dictionary, which is an xrwebgllayerinit object.
Methods - Archive of obsolete content
parts of this page show the use of the xpinstall api.
... extracts a file from the xpi file to a temporary location and schedules it for later execution.
Input method editor - MDN Web Docs Glossary: Definitions of Web-related terms
an input method editor (ime) is a program that provides a specialized user interface for text input.
... an input method editor (ime) is a program that provides a specialized user interface for text input.
Methods - Archive of obsolete content
parts of this page show the use of the xpinstall api.
Methods - Archive of obsolete content
methods compareto compares the version information specified in this object to the version information specified in the version parameter.
Methods - Archive of obsolete content
parts of this page show the use of the xpinstall api.
Methods - Archive of obsolete content
parts of this page show the use of the xpinstall api.
Methods - Archive of obsolete content
removetab removetabsprogresslistener removetransientnotifications replacegroup reset rewind scrollbyindex scrollbypixels scrolltoindex select selectall selectitem selectitemrange selecttabatindex setselectionrange showpane showpopup sizeto startediting 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...
Index - Web APIs
Web › API › Index
app or site.
... angle_instanced_arrays extension is part of the webgl api and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type.
...me object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type.
...And 2902 more matches
Index - Archive of obsolete content
/path provides access to the local filesystem with the nodejs path module api.
...on sdk, jpm implements the assert interface defined in the commonjs unit testing specification version 1.1.
... 178 customizing the download progress bar no summary!
...And 282 more matches
Index - Archive of obsolete content
Archive › Mozilla › XUL › Index
reference no summary!
... 423 dynamically modifying xul-based user interface add-ons, dom, extensions, xul this article discusses manipulating xul interfaces, using dom and other apis.
... reading from files | writing to files | moving, copying and deleting files | uploading and downloading files | working with directories ] 433 writing to files to write to a file, an output stream is used.
...And 167 more matches
WebIDL bindings
orts of possible options here that handle various edge cases, but most descriptors can be very simple.
...rappers, as nodes do).
...new interface has as arguments or return values.
...And 160 more matches
Index
Mozilla › Tech › XPCOM › Index
emes—that were created prior to firefox 1.5.
...can be reused anytime a simple implementation of nsifactory is needed.
...y xpcom component using visual studio add-ons, extensions, xpcom this is a simple tutorial for building xpcom objects in c++ using visual studio.
...And 155 more matches
nsIAnnotationService
efox 4 / thunderbird 3.3 / seamonkey 2.1) implemented by: "@mozilla.org/browser/annotation-service;1".
...ill want to outlast a session.
...ved at 7 days.
...And 75 more matches
HTTP Index - HTTP
Web › HTTP › Index
4 basics of http guide, http, overview http is a pretty extensible protocol.
...llow-origin’ is ‘*’ cors, corsnotsupportingcredentials, cross-origin, error, http, https, messages, reasons, security, console, troubleshooting the cors request was attempted with the credentials flag set, but the server is configured using the wildcard ("*") as the value of access-control-allow-origin, which doesn't allow the use of credentials.
...portingcredentials, cross-origin, error, http, https, messages, reasons, security, console, troubleshooting the cors request was attempted with the credentials flag set, but the server is configured using the wildcard ("*") as the value of access-control-allow-origin, which doesn't allow the use of credentials.
...And 67 more matches
Starting WebLock
are created and notified via the general-purpose observer interface nsiobserver.
...ersare objects that are notified when various events occur.
...serverservice can notify your object of registered events by means of this interface, as in the figure below.
...And 63 more matches
LiveConnect Overview - Archive of obsolete content
this chapter describes using liveconnect technology to let java and javascript code communicate with each other.
...onnect technology to let java and javascript code communicate with each other.
...side, javascript objects are wrapped in an instance of the class netscape.javascript.jsobject and passed to java.
...And 56 more matches
JavaScript Daemons Management - Archive of obsolete content
s problem is to nest all the information needed by each animation to start, stop, etc.
...ex version of it is nothing but a big and scalable collection of methods for the daemon constructor.
...tails).
...And 53 more matches
nsINavBookmarksService
toolkit/components/places/nsinavbookmarksservice.idlscriptable the bookmarksservice interface provides methods for managing bookmarked history items.
...ced gecko 1.8 inherits from: nsisupports last changed in gecko 14.0 (firefox 14.0 / thunderbird 14.0 / seamonkey 2.11) implemented by: @mozilla.org/browser/nav-bookmarks-service;1.
... a folder.
...And 52 more matches
Scripting Java
for example, to import the org.mozilla.javascript package you could use importpackage() as follows: $ java org.mozilla.javascript.tools.shell.main js> importpackage(packages.org.mozilla.javascript); js> context.currentcontext; org.mozilla.javascript.context@bb6ab6 occasionally, you will see examples that use the fully qualified name of the package instead of importing using the importpackage() method.
...ore typing.
...ackages.org.mozilla.javascript.context); js> context.currentcontext; org.mozilla.javascript.context@bb6ab6 working with java now that we can access java classes, the next logical step is to create an object.
...And 50 more matches
nsIFile
having to deal with the different path separators used on different platforms, query the state of any file or directory at the position represented by the nsifile and create, move or copy items in the filesystem.
...om the directory service.
...is guaranteed that the path passed to a native form function is always ascii.
...And 50 more matches
Introduction to XPCOM for the DOM
e.
...nterface is also provided, and eventually, a more detailed discussion of class inheritance in c++.
... on the used of inheritance between classes.
...And 44 more matches
Index - MDN Web Docs Glossary: Definitions of Web-related terms
hnology.
... tabs).
...ght secret (usually a key), reproducing the original cleartext.
...And 43 more matches
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
mer 2007.
... nglayout.debug.disable_xul_cache (not present in firefox 3.5+) ordinarily, firefox will cache xul documents after they have been read in once, to speed subsequent displays.
...in firefox 3.5+) ordinarily, firefox will cache xul documents after they have been read in once, to speed subsequent displays.
...And 42 more matches
Working with objects - JavaScript
« previousnext » javascript is designed on a simple object-based paradigm.
...gned on a simple object-based paradigm.
...eys in the square bracket notation are converted to string unless they're symbols, since javascript object property names (keys) can only be strings or symbols (at some point, private names will also be added as the class fields proposal progresses, but you won't use them with [] form).
...And 38 more matches
Following the Android Toasts Tutorial from a JNI Perspective
ar feature, so mozilla developers chose to bring it to the privileged javascript scope via the nativewindow object.
...one with privileged javascript from firefox for android with the following code: window.nativewindow.toast.show("hello, firefox!", "short"); converting java to jni.jsm the first step is to look at the java code and see all the different types, methods, constructors, and fields that are being used.
...ed as javascript strings in jni.jsm, and the sig's of the types are as follows: java type signature boolean z byte b char c class/object lclass name in slash notation here; double d float f int i long j short s void v array of type [sig here method format (sig of type of each argument here)sig of the return type here declaring a class/object is done in a special way.
...And 37 more matches
XPIDL
w up to date again) xpidl syntax (out of date) xpidl author's guide (not as out of date) explanation of idl semantics a full guide to the syntax can be found at xpidl:syntax, which is written in an abnf form.
... nscid* ?
...point constants, though parseable, cannot be made into a header or xpt file.
...And 37 more matches
Migrate apps from Internet Explorer to Mozilla - Archive of obsolete content
s when new browser versions arrive, thus requiring code changes.
...elementbyid(aid), which works in internet explorer 5.0+, mozilla-based browsers, other w3c-compliant browsers and is part of the dom level 1 specification.
...h internet explorer does (also called global namespace polluting).
...And 36 more matches
Reading from Files - Archive of obsolete content
using the unavailable nsiscriptableio apis: code snippets: file i/o, open and save dialogs, reading textual data, writing textual data, list of file-related error codes.
...t file objects, see files and streams.
...le and return a stream.
...And 36 more matches
Bytecode Descriptions
f x compiles to getgname "x"; typeof.
...tor.
...mat: jof_ic neg stack: val ⇒ (-val) the unary - operator.
...And 36 more matches
An Overview of XPCOM
things are made and just use that software.
...t - establishing a contract with the software clients that use it.
... abstraction is crucial for software maintainability and reusability.
...And 36 more matches
Public class fields - JavaScript
abel.
...pat information below.
...sole.log(subclasswithstaticfield.basestaticfield) // expected output: "base field" when initializing fields, this refers to the class constructor.
...And 36 more matches
Mail composition back end
feedback mechanism is provided by a nsimsgsendlistener which is implemented by the caller.
...ener which is implemented by the caller.
...o the nsimsgsend object and the interface can support multiple listeners.
...And 35 more matches
Creating the Component Code
variables are picked up by files that do not specify themselves as mozilla_strict_api.
...functions such as registerfactorylocation that are required to implement the module and factory classes in your code.
... series of nsiid variables initialized here are actually classes created for handing the 128-bit identifiers that xpcom uses to support contractual relationships between the client and component interfaces.
...And 34 more matches
Using Web Workers - Web APIs
ly accessible from the script that first spawned it, whereas shared workers can be accessed from multiple scripts.
...rker, or use some default methods and properties of the window object.
...code in the following (main.js): if (window.worker) { ...
...And 34 more matches
Vue conditional rendering: editing existing todos - Learn web development
<button type="submit" class="btn btn__primary"> save <span class="visually-hidden">edit for {{label}}</span> </button> </div> </form> </template> <script> export default { props: { label: { type: string, required: true }, id: { type: string, required: true } }, data() { return { newlabel: this.label }; }, methods: { onsubmit() { if (this.newlabel && this.newlabel !== this.label) { this.$emit("item-edited", this.newlabel); } }, oncancel() { this.$emit("edit-cancelled"); } } }; </script> <style scoped> .edit-label { font-family: arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; color: #0b0c0c; display: block; ...
...n clicked, will delete the todo item via an event handler function called deletetodo().
...elete the todo item via an event handler function called deletetodo().
...And 33 more matches
nsIWindowsRegKey
xpcom/ds/nsiwindowsregkey.idlscriptable this interface is designed to provide scriptable access to the windows registry system.
...corresponds to the hkey_ prefix in the ms platform sdk.
... wow64_32 0x00000200 wow64_64 0x00000100 type constants values for the type of a registry value.
...And 33 more matches
Using XMLHttpRequest - Web APIs
} var oreq = new xmlhttprequest(); oreq.addeventlistener("load", reqlistener); oreq.open("get", "http://www.example.org/example.txt"); oreq.send(); types of requests a request made via xmlhttprequest can fetch the data in one of two ways, asynchronously or synchronously.
...analyzing this xml document: using xpath to address (or point to) parts of it.
...arts of it.
...And 33 more matches
Sending form data - Learn web development
note: to get a better idea of how client-server architectures work, read our server-side website programming first steps module.
...pairs joined with ampersands.
...sands.
...And 32 more matches
static - JavaScript
the static keyword defines a static method for a class.
... the static keyword defines a static method for a class.
...led on instances of the class.
...And 32 more matches
Object prototypes - Learn web development
previous overview: objects next prototypes are the mechanism by which javascript objects inherit features from one another.
...ing things, which provides easier syntax to achieve the same things — see ecmascript 2015 classes.
...s basics (see introduction to objects).
...And 31 more matches
Mozilla DOM Hacking Guide
++, we expect to receive an argument of the correct type for our function.
...ne of the jobs of xpconnect.
... it safely.
...And 31 more matches
CSSPrimitiveValue - Web APIs
tivevalue interface derives from the cssvalue interface and represents the current computed value of a css property.
...div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, cssvalue.
... cssprimitivevalue.primitivetype read only an unsigned short representing the type of the value.
...And 31 more matches
nsIPromptService
embedding/components/windowwatcher/public/nsipromptservice.idlscriptable this interface can be used to display simple dialogs.
...t, window.confirm, and other similar functions.
...pty or have a value property set to the out parameter type.
...And 30 more matches
XPCOM Objects - Archive of obsolete content
few extensions installed yields 876 strings.
... like @xulschool.com/ to make our own components.
...rfaces.
...And 29 more matches
Mozilla internal string guide
ing/nsacstring: the abstract base class for all strings.
...string/nscstring: builds on nsastring by guaranteeing a null-terminated storage.
... they all share a simple api.
...And 29 more matches
Private class fields - JavaScript
class properties are public by default and can be examined or modified outside the class.
... class properties are public by default and can be examined or modified outside the class.
... class classwithprivatefield { #privatefield } class classwithprivatemethod { #privatemethod() { return 'hello world' } } class classwithprivatestaticfield { static #private_static_field } examples private static fields private fields are accessible on the class constructor from inside the class declaration itself.
...And 29 more matches
Cross-Origin Resource Sharing (CORS) - HTTP
Web › HTTP › CORS
sing drawimage().
...iscussion of cross-origin resource sharing and includes a discussion of the necessary http headers.
...ce sharing standard works by adding new http headers that let servers describe which origins are permitted to read that information from a web browser.
...And 28 more matches
Binding Implementations - Archive of obsolete content
introduction bindings can define methods and properties on a bound element using the implementation tag.
... introduction bindings can define methods and properties on a bound element using the implementation tag.
... introduction bindings can define methods and properties on a bound element using the implementation tag.
...And 25 more matches
Numbers and dates - JavaScript
te value; returned on overflow number.epsilon difference between 1 and the smallest value greater than 1 that can be represented as a number (2.220446049250313e-16) number.min_safe_integer minimum safe integer in javascript (−253 + 1, or −9007199254740991) number.max_safe_integer maximum safe integer in javascript (+253 − 1, or +9007199254740991) methods of number method description number.parsefloat() parses a string argument and returns a floating point number.
...nes whether the passed value is a finite number.
...value is an integer.
...And 25 more matches
nsIAccessible
ts and text.
...ns of nsiaccessible on demand.
...tes are grouped by categories.
...And 24 more matches
Debugger - Firefox Developer Tools
the debugger object when called as a constructor, the debugger object creates a new debugger instance.
...ned to a debugging handler must be either a function or undefined; otherwise a typeerror is thrown.
..., has been loaded in the scope of the debuggees.
...And 24 more matches
Debugger.Object - Firefox Developer Tools
debugger.object a debugger.object instance represents an object in the debuggee, providing reflection-oriented methods to inspect and modify its referent.
... debugger.object a debugger.object instance represents an object in the debuggee, providing reflection-oriented methods to inspect and modify its referent.
...ironment if the referent is a function that is debuggee code, a debugger.environment instance representing the lexical environment enclosing the function when it was created.
...And 24 more matches
Modularization techniques - Archive of obsolete content
.
...s the nsisupports interface, our equivalent to com's iunknown interface.
...e object was implemented.
...And 23 more matches
nsIFaviconService
1.0 66 introduced gecko 1.8 inherits from: nsisupports last changed in gecko 22.0 (firefox 22.0 / thunderbird 22.0 / seamonkey 2.19) implemented by: @mozilla.org/browser/favicon-service;1.
...ete since gecko 22.0 void setfavicondatafromdataurl(in nsiuri afaviconuri, in astring adataurl, in prtime aexpiration); obsolete since gecko 22.0 void setfaviconurlforpage(in nsiuri apageuri, in nsiuri afaviconuri); obsolete since gecko 22.0 attributes attribute type description defaultfavicon nsiuri the default favicon uri.
...id setfavicondatafromdataurl(in nsiuri afaviconuri, in astring adataurl, in prtime aexpiration); obsolete since gecko 22.0 void setfaviconurlforpage(in nsiuri apageuri, in nsiuri afaviconuri); obsolete since gecko 22.0 attributes attribute type description defaultfavicon nsiuri the default favicon uri.
...And 23 more matches
nsIOutputStream
xpcom/io/nsioutputstream.idlscriptable an interface describing a writable stream of data.
...(), write(), writefrom(), or writesegments().
...e.
...And 23 more matches
DevTools API - Firefox Developer Tools
box (and all the tools it contains) is linked to a target, which is the object the tools are debugging.
...arget is usually a web page (a tab), but can be other things (a chrome window, a remote tab,…).
...ose a toolpanel is to close its containing toolbox.
...And 23 more matches
JXON - Archive of obsolete content
(nattrlen; nattrlen < oxmlparent.attributes.length; nattrlen++) { oattrib = oxmlparent.attributes.item(nattrlen); this.keyattributes[oattrib.name.tolowercase()] = parsetext(oattrib.value.trim()); } } /* * optional properties...
...name]; } nattr++; } return null; }; jxontree.prototype.haschildren = function () { return this.keylength > 0; }; */ var myobject = new jxontree(doc); // we got our javascript object!
...} }, "script": { "keyvalue": "function matchwo(a,b) {\n if (a < b && a < 0) { return 1; }\n else { return 0; }\n}", "keyattributes": { "type": "text/javascript" } }, "keyvalue": null }, "keyvalue": null } this is a recommanded technique if you don't know the structure of the xml document.
...And 22 more matches
Add to iPhoto
nstallable version of this extension on amo.
...is stuff is repetitive, we'll only look at selected parts of the code to get an idea how things work.
... field data type.
...And 22 more matches
Drawing and Event Handling - Plugins
window or a drawable.
...owed or windowless), and some platform-specific information.
...ecific handle to a window.
...And 22 more matches
CSSPrimitiveValue.primitiveType - Web APIs
the primitivetype read-only property of the cssprimitivevalue interface represents the type of a css value.
... syntax type = cssprimitivevalue.primitivetype; value an unsigned short representing the type of the value.
... constant description css_attr the value is an attr() function.
...And 22 more matches
RTCPeerConnection - Web APIs
the rtcpeerconnection interface represents a webrtc connection between the local computer and a remote peer.
...te end of the connection as it was most recently successfully negotiated since the last time the rtcpeerconnection finished negotiating and connecting to a remote peer.
...angethe onsignalingstatechange event handler property of the rtcpeerconnection interface specifies a function to be called when the signalingstatechange event occurs on an rtcpeerconnection interface.ontrack the rtcpeerconnection property ontrack is an eventhandler which specifies a function to be called when the track event occurs, indicating that a track has been added to the rtcpeerconnection.methodsalso inherits methods from: eventtargetaddicecandidate()when a web site or app using rtcpeerconnection receives a new ice candidate from the remote peer over its signaling channel, it delivers the newly-received candidate to the browser's ice agent by calling rtcpeerconnection.addicecandidate().addstream() the obsolete rtcpeerconnection method addstream() adds a mediastream as a local source o...
...And 22 more matches
WindowOrWorkerGlobalScope.setInterval() - Web APIs
the setinterval() method, offered on the window and worker interfaces, repeatedly calls a function or executes a code snippet, with a fixed time delay between each call.
... the setinterval() method, offered on the window and worker interfaces, repeatedly calls a function or executes a code snippet, with a fixed time delay between each call.
...t amet, consectetur adipiscing elit.
...And 22 more matches
this - JavaScript
a function's this keyword behaves a little differently in javascript compared to other languages.
...w; // true // in node: f1() === globalthis; // true in strict mode, however, if the value of this is not set when entering an execution context, it remains as undefined, as shown in the following example: function f2() { 'use strict'; // see strict mode return this; } f2() === undefined; // true in the second example, this should be undefined, because f2 was called directly and not as a method or property of an object (e.g.
... they incorrectly returned the window object.
...And 22 more matches
Python binding for NSS
wing: network security services (nss).
...ith the richness of full python.
...ed by a mix of lower and upper case letters, a upper case letter is used to separate words.
...And 21 more matches
Finishing the Component
technical details about how interface changes beneath your code can cause havoc.
...foo interface requires a major change, and methods are reordered, some are added, others are removed.
... of the interface don't know that it's being used, and don't change the iid of the interface.
...And 21 more matches
nsINavHistoryService
introduced gecko 1.8 inherits from: nsisupports last changed in gecko 22 (firefox 22 / thunderbird 22 / seamonkey 2.19) implemented by: "@mozilla.org/browser/nav-history-service;1".
... the transition was a permanent redirect.
...t redirect.
...And 21 more matches
Migrating from webkitAudioContext - Web APIs
e is a library called webkitaudiocontext monkeypatch, which automatically fixes some of these changes to make most code targetting webkitaudiocontext to work on the standards based audiocontext out of the box, but it currently doesn't handle all of the cases below.
...diocontext monkeypatch, which automatically fixes some of these changes to make most code targetting webkitaudiocontext to work on the standards based audiocontext out of the box, but it currently doesn't handle all of the cases below.
...ically handled by it.
...And 21 more matches
WindowOrWorkerGlobalScope.setTimeout() - Web APIs
the settimeout() method of the windoworworkerglobalscope mixin (and successor to window.settimeout()) sets a timer which executes a function or specified piece of code once the timer expires.
...ple: var intervalid = settimeout(function() { myfunc('one', 'two', 'three'); }, 1000); the above example can also be written with the help of an arrow function: var intervalid = settimeout(() => { myfunc('one', 'two', 'three'); }, 1000); yet another possibility is to use function's bind.
...t separate from the function from which settimeout was called.
...And 21 more matches
Chapter 4: Using XPCOM—Implementing advanced processes - Archive of obsolete content
developing components in c++ or other compiled languages, be sure to include binaries for every platform.
...ce = components.classes['@mozilla.org/network/io-service;1'] .getservice(components.interfaces.nsiioservice); alert(ioservice); ]]></script> </page> calling xpconnect using local files try saving the contents of listing 1 as the file test.xul, somewhere on your desktop, and drag and drop it into firefox to open it.
...ary/application support/firefox/profiles/random number.default/ in the interests of security, delete these lines from prefs.js after finishing these tests.
...And 20 more matches
Elements - Archive of obsolete content
plementation?,handlers?)"> <!element binding %binding-content;> <!attlist binding id id #required extends cdata #implied display cdata #implied inheritstyle true #implied > the binding element describes a single xbl binding.
...at the embedded xml in the previous example looks like: <?xml version="1.0"?> <bindings id="xbltestbindings" xmlns="http://www.mozilla.org/xbl"> <binding id="xbltest"><content>pass</content></binding> </bindings> only css declarations provide an easy way to attach bindings to any set of elements.
...ml fragment <customelement><foobar><hoge/></foobar></customelement> with an binding definition <binding id="customelement"><content><xul:box><children includes="hoge"/></xul:box></content></binding> for the customelement element, <xul:box/> becomes empty because the selector includes="hoge" doesn't match for the immediate child foobar element.
...And 20 more matches
Writing to Files - Archive of obsolete content
nd i/o not using the unavailable nsiscriptableio apis: code snippets: file i/o, open and save dialogs, reading textual data, writing textual data, list of file-related error codes.
...iscriptableio.getfile().
... to write to, and the second is a set of flags which control the writing.
...And 20 more matches
Focus management with Vue refs - Learn web development
oitem.vue.
...roperty provided on our component instance.
...orm() { console.log(this.$refs.editbutton); this.isediting = true; } if you activate the "edit" button at this point, you should see an html <button> element referenced in your console.
...And 20 more matches
Using the Payment Request API - Web APIs
the payment request api provides a browser-based method of connecting users and their preferred payment systems and platforms to merchants that they want to pay for goods and services.
...his section details the basics of using the payment request api to make a payment.
...ippets from this section are from our feature detect support demo.
...And 20 more matches
Plug-in Development Overview - Gecko Plugin API Reference
browser and the special media for which the plug-in is created.
...e type for the plug-in (see registering plug-ins).
...s windows unix mac os x ms windows on windows, plug-ins are found according to the section how gecko finds plug-ins.
...And 19 more matches
Mozilla accessibility architecture
all expose an accessible name, or text representation, of each object, and they all use an enumerated integer value from a finite list, to expose the role of an object.
...one in widget/src.
...used a lot of difficulty when implementing the accessibility cache, the code was moved in to the "wrap" classes in a source directory specific to each toolkit.
...And 19 more matches
Adding a new event
this header file should be used for defining input events from keyboard or ime and also other text edit related events like querying focused content information.
...e and also other text edit related events like querying focused content information.
...ents like querying focused content information.
...And 19 more matches
JSAPI User Guide
lects—objects it no longer needs.
...ta types—numbers, strings, arrays, objects, and so on—and a few methods, such as array.push.
...so use js_setoptions to enable jsoption_varobjfix.
...And 19 more matches
Using XPCOM Utilities to Make Things Easier
ule implementation code and another that creates a generic factory for your implementation class.
... \ 0x18bc, \ 0x11d3, \ {0x93, 0x37, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \ } the next entry is the contract id string, which is also usually defined in a #define in a header file.
...u must be sure that a member variable of type nsrefcnt is defined and named mrefcnt in your class.
...And 19 more matches
nsIDOMWindowUtils
dom/interfaces/base/nsidomwindowutils.idlscriptable this interface is a dom utility interface that provides useful dom methods and attributes.
...interfaces/base/nsidomwindowutils.idlscriptable this interface is a dom utility interface that provides useful dom methods and attributes.
... ime-mode: password.
...And 19 more matches
nsIXULTemplateQueryProcessor
r and a query processor.
...ach bookmark within a given folder.
...riable, while the variable ?id would be the member variable, since it is the unique value that identifies a result.
...And 19 more matches
Plug-in Development Overview - Plugins
browser and the special media for which the plug-in is created.
...e type for the plug-in (see registering plug-ins).
...s windows unix mac os x ms windows on windows, plug-ins are found according to the section how gecko finds plug-ins.
...And 19 more matches
Element - Web APIs
Web › API › Element
element is the most general base class from which all element objects (i.e.
...ge event, which is sent when the element enters or exits full-screen mode.
... sent when the element enters or exits full-screen mode.
...And 19 more matches
Classes - JavaScript
s.width = width; } }; console.log(rectangle.name); // output: "rectangle" // named let rectangle = class rectangle2 { constructor(height, width) { this.height = height; this.width = width; } }; console.log(rectangle.name); // output: "rectangle2" note: class expressions are subject to the same hoisting restrictions as described in the class declarations section.
...ctor(height, width) { this.height = height; this.width = width; } }; console.log(rectangle.name); // output: "rectangle2" note: class expressions are subject to the same hoisting restrictions as described in the class declarations section.
...s the part that is in curly brackets {}.
...And 19 more matches
MenuModification - Archive of obsolete content
modifying a menu menus have a number of methods which may be used to add and remove items.
... modifying a menu menus have a number of methods which may be used to add and remove items.
... modifying a menu menus have a number of methods which may be used to add and remove items.
...And 18 more matches
Template and Tree Listeners - Archive of obsolete content
ent purposes.
...ixulbuilderlistener - used to listen to template rebuilds.
... the template is rebuilt using the builder's rebuild call.
...And 18 more matches
JSObject - Archive of obsolete content
tance of the class netscape.javascript.jsobject and passed to java.
...its original javascript object type.
... invoke javascript methods and examine javascript properties.
...And 18 more matches
Inheritance in JavaScript - Learn web development
running live also).
...unction 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.
...ou'll also see bio() and farewell() methods defined.
...And 18 more matches
Gecko info for Windows accessibility vendors
this is the w3c's specification for how web content is exposed to javascript and other languages.
...l: extensible user-interface language the xml-based language used by firefox and mozilla to develop the ui.
...ad a new window by firing two event_state_change's on the root role_document accessible -- the first state change indicates the document pane is now busy loading.
...And 18 more matches
nsIProtocolProxyService
netwerk/base/public/nsiprotocolproxyservice.idlscriptable this interface provides methods to access information about various network proxies.
...riptable this interface provides methods to access information about various network proxies.
...roxyinfo getfailoverforproxy(in nsiproxyinfo aproxyinfo, in nsiuri auri, in nsresult areason); void registerfilter(in nsiprotocolproxyfilter afilter, in unsigned long aposition); void unregisterfilter(in nsiprotocolproxyfilter afilter); constants constant value description resolve_non_blocking 1<<0 this flag may be passed to the resolve method to request that it fail instead of block the calling thread.
...And 18 more matches
Function.name - JavaScript
x new function(...) or just function(...) create function objects and their name is "anonymous".
...on expression anonymous function expressions that were created using the keyword function or arrow functions would have ""(an empty string) as their name.
...word function or arrow functions would have ""(an empty string) as their name.
...And 18 more matches
StringView - Archive of obsolete content
the aims of this library are: to create a c-like interface for strings (i.e., an array of character codes — an arraybufferview in javascript) based upon the javascript arraybuffer interface to create a highly extensible library that anyone can extend by adding methods to the object stringview.prototype to create a collection of methods for such string-like objects (since now: stringviews) which work strictly on arrays of numbers rather than on creating new immutable javascript strings to work with unicode encodings other than javascript's default utf-16 domstrings introduction as web applications become more and more powerful, adding features such as audio and video manipulation, access to raw data using websockets, and so forth, it has become clear that there are times when i...
...b applications become more and more powerful, adding features such as audio and video manipulation, access to raw data using websockets, and so forth, it has become clear that there are times when it would be helpful for javascript code to be able to quickly and easily manipulate raw binary data.
... break conversionswitch; case 7: awhole = new ftaview(noutptlen ?
...And 17 more matches
tabbrowser - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] this element is used for holding a set of read-only views of web documents.
...eupdown, onbookmarkgroup, onnewtab, tabmodalpromptshowing properties browsers, cangoback, cangoforward, contentdocument, contenttitle, contentvieweredit, contentviewerfile, contentwindow, currenturi, docshell, documentcharsetinfo, homepage, markupdocumentviewer, securityui, selectedbrowser, selectedtab, sessionhistory, tabcontainer, tabs, visibletabs, webbrowserfind, webnavigation, webprogress methods addprogresslistener, addtab, addtabsprogresslistener,appendgroup, getbrowseratindex, getbrowserindexfordocument, getbrowserfordocument, getbrowserfortab, geticon, getnotificationbox, gettabforbrowser, gettabmodalpromptbox, goback, gobackgroup, goforward, goforwardgroup, gohome, gotoindex, loadgroup, loadonetab, loadtabs, loaduri, loaduriwithflags, movetabto, pintab, reload, reloadalltabs, reloa...
...ations on the document.
...And 17 more matches
IPDL Tutorial
with the letter p.
...a matching name, pplugin.ipdl.
...age is a c++ method which can be called.
...And 17 more matches
Download
a download object represents a single download, with associated state and actions.
...mise whensucceeded(); promise finalize([optional] boolean aremovepartialdata); properties attribute type description canceled read only boolean indicates that the download has been canceled.
...d.
...And 17 more matches
Accessing the Windows Registry Using XPCOM
the value is read using readstringvalue().
...hat type of data you expect to read, which we will expand on later.
...eys before doing anything with a registry key you must first open the key you are interested in.
...And 17 more matches
imgIContainer
image/public/imgicontainer.idlscriptable represents an image in the gecko rendering engine.
...sisupports last changed in gecko 14.0 (firefox 14.0 / thunderbird 14.0 / seamonkey 2.11) implemented by: ?????????????????????????????????????.
....9.2 void requestdecode(); void requestdiscard(); void requestrefresh([const] in timestamp atime); violates the xpcom interface guidelines void resetanimation(); void restoredatadone(); native code only!
...And 17 more matches
PaymentRequest.show() - Web APIs
the paymentrequest interface's show() method instructs the user agent to begin the process of showing and handling the user interface for the payment request to the user.
... the paymentrequest interface's show() method instructs the user agent to begin the process of showing and handling the user interface for the payment request to the user.
...handling the user interface for the payment request to the user.
...And 17 more matches
Working with Svelte stores - Learn web development
your component hierarchy gets complex, it might become too difficult for components to relay data between each other.
...ch other.
...is piece of code in detail.
...And 16 more matches
Using XPCOM Components
called xpconnect to seamlessly connect to the cookiemanager component (see connecting to components from the interface below).
... the cookie list.
...erfaces].
...And 16 more matches
nsIJSON
rfaces/json/nsijson.idlscriptable this interface provides a convenient way to encode and decode json strings from javascript code.
.../ seamonkey 2.4) note: this interface may only be used from javascript code, with the exception of the legacydecodetojsval() method.
...only!
...And 16 more matches
Drawing shapes with canvas - Web APIs
tx.strokerect(50, 50, 50, 50); } } this example's output is shown below.
...apes using paths, we take some extra steps: first, you create the path.
...g paths, we take some extra steps: first, you create the path.
...And 16 more matches
Custom XUL Elements with XBL - Archive of obsolete content
n from the xbl page.
...ing" image="" />, then those attribute values are "inherited" to the content nodes that have this special attribute.
...to the content nodes that have this special attribute.
...And 15 more matches
Adding preferences to an extension - Archive of obsolete content
e call nsiprefservice.getbranch().
...this lets us specify a specific branch of the preference tree to access.
...es, but we only want access to those belonging to our own extension, so we specify that we want to access the "extensions.stockwatcher2" branch.
...And 15 more matches
Obsolete: XPCOM-based scripting for NPAPI plugins - Archive of obsolete content
nce = 10, nsplugininstancevariable_scriptableiid = 11 what's in the plugin code?
...rface id should be obtained.
...gin.
...And 15 more matches
Displaying Places information using views
data.
...urpose convenience.
...eview.
...And 15 more matches
Browser API
browser api concepts and usage the browser api consists of two major parts: custom <iframe> attributes: by adding a mozbrowser attribute to the <iframe> element we can make it appear like a top-level browser window to the embedded content.
...indow.parent, window.frameelement, etc.
... frame hierarchy.
...And 15 more matches
Index
, reference, référence(2), spidermonkey js::compilefunction compiles a function from a text string chars, bytes, or srcbuf.
...text string chars, bytes, or srcbuf.
... reference, reference, référence(2), spidermonkey js::getdeflatedutf8stringlength returns the length of the char buffer required to encode s as utf8.
...And 15 more matches
nsICryptoHash
ompute a cryptographic hash function of some data.
...view acstring finish(in prbool aascii); void init(in unsigned long aalgorithm); void initwithstring(in acstring aalgorithm); void update([const, array, size_is(alen)] in octet adata, in unsigned long alen); void updatefromstream(in nsiinputstream astream, in unsigned long alen); constants hash algorithms these constants are used by the init() method to indicate which hashing function to use.
...ues defined in mozilla/security/nss/lib/cryptohi/hasht.h.
...And 15 more matches
CanvasRenderingContext2D - Web APIs
the canvasrenderingcontext2d interface, part of the canvas api, provides the 2d rendering context for the drawing surface of a <canvas> element.
... hand, you can draw anything you like.
...t) to transparent black, erasing any previously drawn content.
...And 15 more matches
Using Fetch - Web APIs
the fetch api provides a javascript interface for accessing and manipulating parts of the http pipeline, such as requests and responses.
...ta => console.log(data)); here we are fetching a json file across the network and printing it to the console.
... takes one argument — the path to the resource you want to fetch — and returns a promise containing the response (a response object).
...And 15 more matches
Anatomy of a video game - Game development
o develop an efficient, execute-once-per-frame main loop.
...well-programmed per-frame main loops.
...g of our new line if the previous one was not empty or terminated.
...And 14 more matches
Signature (functions) - MDN Web Docs Glossary: Definitions of Web-related terms
a function signature (or type signature, or method signature) defines input and output of functions or methods.
... a function signature (or type signature, or method signature) defines input and output of functions or methods.
... an object-oriented program (such as the keywords public, static, or prototype).
...And 14 more matches
Index - Learn web development
endan eich (co-founder of the mozilla project), the mozilla foundation, and the mozilla corporation.
...beginner, codingscripting, ftp, github, google app engine, learn, web, l10n:priority, publishing, web server publishing a website is a complex topic because there are many ways to go about it.
...hen, with recommendations and reminders of common pitfalls where appropriate.
...And 14 more matches
Client-side storage - Learn web development
ata is contained within two object-like structures inside the browser: sessionstorage and localstorage.
...nd then opened again.
...is'); the storage.getitem() method takes one parameter — the name of a data item you want to retrieve — and returns the item's value.
...And 14 more matches
JavaScript object basics - Learn web development
d building blocks).
...: member2value, member3name: member3value }; the value of an object member can be pretty much anything — in our person object we've got a string, a number, two arrays, and two functions.
... you want to transfer a series of structured, related data items in some manner, for example sending a request to the server to be put into a database.
...And 14 more matches
Setting up your own test automation environment - Learn web development
another new file inside your project directory called google_test_multiple.js.
...xamples to learn from written in different languages.
... you need to include the selenium-webdriver module like this: const webdriver = require('selenium-webdriver'), by = webdriver.by, until = webdriver.until; next, you need to create a new instance of a driver, using the new webdriver.builder() constructor.
...And 14 more matches
Promise
a promise object represents a value that may not be available yet.
...ons in documentation, the type of the fulfillment value is usually specified between angular brackets.
...mpleted, to control the final state of the promise.
...And 14 more matches
XPCOM Stream Guide
Mozilla › Tech › XPCOM › Guide › Streams
-file-output-stream;1 nsisafefileoutputstream, nsifileoutputstream stream.init(file, ioflags, perm, behaviorflags); channels have streams too any implementation of nsichannel will have an input stream as well, but unless you own the channel, you shouldn't try to read from the input stream.
...tstream stream.init(file, ioflags, perm, behaviorflags); channels have streams too any implementation of nsichannel will have an input stream as well, but unless you own the channel, you shouldn't try to read from the input stream.
...ill have an input stream as well, but unless you own the channel, you shouldn't try to read from the input stream.
...And 14 more matches
Component; nsIPrefBranch
hich this "branch" stems.
..."branch" stems.
...s attribute type description root string called to get the root on which this branch is based, such as "browser.startup." read only.
...And 14 more matches
nsISecurityCheckedComponent
caps/idl/nsisecuritycheckedcomponent.idlscriptable provides methods that let an xpcom component define custom rules for accessing it from potentially unprivileged code.
... accessing it from potentially unprivileged code.
...low access to code trusted with that capability.
...And 14 more matches
nsIXULTemplateBuilder
ch query may be accompanied by one or more <rule> elements.
...esult passes a rule's conditions, this is considered a match, and the content within the rule's <action> body is inserted as a sibling of the <template>, assuming the template builder creates real dom content.
...within the rule's <action> body is inserted as a sibling of the <template>, assuming the template builder creates real dom content.
...And 14 more matches
Xptcall Porting Guide
overview xptcall is a library that supports both invoking methods on arbitrary xpcom objects and implementing classes whose objects can impersonate any xpcom interface.
...the base md directory for their given platforms and to integrate into the build system as appropriate for their platform.
...tcall.h): xptc_public_api(nsresult) ns_invokebyindex(nsisupports* that, pruint32 methodindex, pruint32 paramcount, nsxptcvariant* params); calling code is expected to supply an array of nsxptcvariant structs.
...And 14 more matches
Streams - Plugins
n have more than one stream object per instance.
...e, and npp_destroystream to, respectively, create a stream, find out how much data the plug-in can handle, push data into the stream, and delete it.
...delete it.
...And 14 more matches
Transformations - Web APIs
ousnext » earlier in this tutorial we've learned about the canvas grid and the coordinate space.
...orial we've learned about the canvas grid and the coordinate space.
... position, rotate the grid and even scale it.
...And 14 more matches
Payment processing concepts - Web APIs
into the details of how the api operates, there are tems you'll need to know.
... of how the api operates, there are tems you'll need to know.
...rson or an organization—whose web site or app wishes to receive money through the payment request api.
...And 14 more matches
A simple RTCDataChannel sample - Web APIs
r('click', connectpeers, false); disconnectbutton.addeventlistener('click', disconnectpeers, false); sendbutton.addeventlistener('click', sendmessage, false); } this is quite straightforward.
...tion(localconnection.localdescription)) .then(() => remoteconnection.createanswer()) .then(answer => remoteconnection.setlocaldescription(answer)) .then(() => localconnection.setremotedescription(remoteconnection.localdescription)) .catch(handlecreatedescriptionerror); let's go through this line by line and decipher what it means.
... remoteconnection.setlocaldescription(answer)) .then(() => localconnection.setremotedescription(remoteconnection.localdescription)) .catch(handlecreatedescriptionerror); let's go through this line by line and decipher what it means.
...And 14 more matches
Implementing a Microsoft Active Accessibility (MSAA) Server - Accessibility
g, for a number of reasons.
...t and dragon can get by with your msaa support., and jaws can be scripted (even by external developers) to support alternative interfaces.
...rking with a small number of at vendors, you can get everyone to agree on a different solution, and you're sure that you won't be needing to support other assistive technologies later.
...And 14 more matches
Index - HTTP
Web › HTTP › Headers › Index
when the request's credentials mode (request.credentials) is "include".
... 8 access-control-allow-headers cors, http, reference, header 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.
...rs cors, http, reference, header 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.
...And 14 more matches
String - JavaScript
the string object is used to represent and manipulate a sequence of characters.
...resent and manipulate a sequence of characters.
...st situations.
...And 14 more matches
Symbol - JavaScript
the data type symbol is a primitive data type.
...() function: let sym = symbol('foo') typeof sym // "symbol" let symobj = object(sym) typeof symobj // "object" shared symbols in the global symbol registry the above syntax using the symbol() function will not create a global symbol that is available in your whole codebase.
...obal symbol registry the above syntax using the symbol() function will not create a global symbol that is available in your whole codebase.
...And 14 more matches
OpenClose - Archive of obsolete content
be opened by either holding down the mouse button or by pressing the control key and clicking the mouse button.
... context menu can also be opened by pressing the menu key on the keyboard (the key on many keyboards next to control with a menu image) or by pressing shift+f10.
... can also be opened by pressing the menu key on the keyboard (the key on many keyboards next to control with a menu image) or by pressing shift+f10.
...And 13 more matches
Template Builder Interface - Archive of obsolete content
ulelement interface, so all xul elements will have this property, although, as mentioned earlier, is will be set to null for most elements.
...erface, so all xul elements will have this property, although, as mentioned earlier, is will be set to null for most elements.
...t to null for most elements.
...And 13 more matches
Commands - Archive of obsolete content
group of commands inside a commandset element, together near the top of the xul file, as in the following: <commandset> <command id="cmd_open" oncommand="alert('open!');"/> <command id="cmd_help" oncommand="alert('help!');"/> </commandset> a command is invoked when the user activates the button or other element attached to the command.
...though you can't use it on unprivileged web pages, but you may use it from, for example, a browser extension.
... the controllers list on an element or a window.
...And 13 more matches
Tree View Details - Archive of obsolete content
l set of items using the view.
...vel 0, the children of those rows are at level 1, their children at level 2 and so on.
...s and higher values for inner rows.
...And 13 more matches
Safe - MDN Web Docs Glossary: Definitions of Web-related terms
an http method is safe if it doesn't alter the state of the server.
... an http method is safe if it doesn't alter the state of the server.
... an http method is safe if it doesn't alter the state of the server.
...And 13 more matches
nsIHttpChannel
ing http response status and headers when they become available.
...be sent as the referrer for a plaintext http request).
...the implementation is not required to throw an exception when the referrer uri is rejected.
...And 13 more matches
nsIInputStream
xpcom/io/nsiinputstream.idlscriptable this interface represents a readable stream of data.
...ll to close(), available(), read(), or readsegments().
...d overview unsigned long available();deprecated since gecko 17.0 unsigned long long available(); void close(); boolean isnonblocking(); unsigned long read(in charptr abuf, in unsigned long acount); native code only!
...And 13 more matches
nsILoginManagerStorage
tive password manager system, implementing and registering a storage module for the login manager is how you do it.
... void removealllogins(); void removelogin(in nsilogininfo alogin); void searchlogins(out unsigned long count, in nsipropertybag matchdata, [retval, array, size_is(count)] out nsilogininfo logins); void setloginsavingenabled(in astring ahost, in boolean isenabled); attributes attribute type description uibusy boolean true when a master password prompt is being shown.
... a master password prompt is being shown.
...And 13 more matches
Dragging and Dropping Multiple Items - Web APIs
caution: all of the methods and properties with a moz prefix (such as mozsetdataat() are gecko specific interfaces.
... caution: all of the methods and properties with a moz prefix (such as mozsetdataat() are gecko specific interfaces.
... caution: all of the methods and properties with a moz prefix (such as mozsetdataat() are gecko specific interfaces.
...And 13 more matches
A re-introduction to JavaScript (JS tutorial) - JavaScript
dobe photoshop, svg images, yahoo's widget engine, server-side environments such as node.js, nosql databases like the open source apache couchdb, embedded computers, complete desktop environments like gnome (one of the most popular guis for gnu/linux operating systems), and others.
...sfinite(-infinity); // false isfinite(nan); // false the parseint() and parsefloat() functions parse a string until they reach a character that isn't valid for the specified number format, then return the number parsed up to that point.
...t number.
...And 13 more matches
Regular expressions - JavaScript
« previousnext » regular expressions are patterns used to match character combinations in strings.
... « previousnext » regular expressions are patterns used to match character combinations in strings.
...posal to add such a function to regexp, but it was rejected by tc39.
...And 13 more matches
Preferences - Archive of obsolete content
elopers that wish to use the mozilla preferences system.
...sibly other mozilla-based applications.
...eferences system.
...And 12 more matches
Appendix F: Monitoring DOM changes - Archive of obsolete content
4+ and chrome 18.
...possible to tell when a mutation has occurred or is about to occur without resorting to mutation events or observers.
...e specific to a particular site or codebase.
...And 12 more matches
Twitter - Archive of obsolete content
eriment report for what we learned from it and the blog post announcing the first sdk release for what we're up to next!
...t for what we learned from it and the blog post announcing the first sdk release for what we're up to next!
...the blog post announcing the first sdk release for what we're up to next!
...And 12 more matches
JavaArray - Archive of obsolete content
summary core object a wrapped java array accessed from within javascript code is a member of the type javaarray.
... summary core object a wrapped java array accessed from within javascript code is a member of the type javaarray.
...lo world!"); var bytearray = javastring.getbytes(); bytearray[0] // returns 72 bytearray[1] // returns 101 any java data brought into javascript is converted to javascript data types.
...And 12 more matches
Graceful asynchronous programming with Promises - Learn web development
eal example promises are important to understand because most modern web apis use them for functions that perform potentially lengthy tasks.
...because most modern web apis use them for functions that perform potentially lengthy tasks.
...rl).
...And 12 more matches
Object building practice - Learn web development
et up the <canvas> element and provide a general function that we're going to use.
...zontal and vertical velocity (velx and vely) — each ball is given a horizontal and vertical velocity; in real terms these values are regularly added to the x/y coordinate values when we animate the balls, to move them by this much on each frame.
...alues are regularly added to the x/y coordinate values when we animate the balls, to move them by this much on each frame.
...And 12 more matches
Advanced Svelte: Reactivity, lifecycle, accessibility - Learn web development
d a terminal with node + npm installed to compile and build your app.
...can access them.
...rtual dom is an in-memory copy of the contents of the web page.
...And 12 more matches
XPCOM array guide
Mozilla › Tech › XPCOM › Guide › Arrays
ar usage pattern.
...possible.
...ugh, extra indirection!
...And 12 more matches
nsIBrowserHistory
es as from the history interface.
...fy); void removepagesbytimeframe(in long long abegintime, in long long aendtime); void removepagesfromhost(in autf8string ahost, in boolean aentiredomain); void removevisitsbytimeframe(in long long abegintime, in long long aendtime); void unregisteropenpage(in nsiuri auri); obsolete since gecko 9.0 note: the markpageasfollowedlink and markpageastyped methods were moved to nsinavhistoryservice in gecko 22.0 so that all markpageas* methods can be found in one interface.
... not return the real number of entries.
...And 12 more matches
nsIWindowWatcher
notify this component when they are created or destroyed, so only a weak reference is kept.
... activewindow nsidomwindow the watcher serves as a global storage facility for the current active (front most non-floating-palette-type) window, storing and returning it on demand.
...f the active window is not an nsidomwindow; for example, if the active window is an alert.
...And 12 more matches
Debugger.Frame - Firefox Developer Tools
debugger.frame a debugger.frame instance represents a visible stack frame.
...ace whatever properties it likes on its debugger.frame instances, without worrying about interfering with other debuggers.) when the debuggee pops a stack frame (say, because a function call has returned or an exception has been thrown from it), the debugger.frame instance referring to that frame becomes inactive: its live property becomes false, and accessing its other properties or calling its methods throws an exception.
...ke a call to a primitive: you see a frame for the non-debuggee function that was accessible to the debuggee, but any further calls that function makes are treated as internal details, and omitted from the stack trace.
...And 12 more matches
Traversing an HTML table with JavaScript and DOM Interfaces - Web APIs
introduction this article is an overview of some powerful, fundamental dom level 1 methods and how to use them from javascript.
... introduction this article is an overview of some powerful, fundamental dom level 1 methods and how to use them from javascript.
...le is an overview of some powerful, fundamental dom level 1 methods and how to use them from javascript.
...And 12 more matches
Using readable streams - Web APIs
is a matter of just accessing the body property of the response: // fetch the original image fetch('./tortoise.png') // retrieve its body as readablestream .then(response => response.body) this provides us with a readablestream object.
...ovides us with a readablestream object.
...e reduced by one step, as response.body is synchronous and so doesn't need the promise: // fetch the original image fetch('./tortoise.png') // retrieve its body as readablestream .then(response => { const reader = response.body.getreader(); reading the stream now you’ve got your reader attached, you can read data chunks out of the stream using the readablestreamdefaultreader.read() method.
...And 12 more matches
Using writable streams - Web APIs
required, and creates a model in javascript of the underlying sink the data is being written to.
... to.
...ce of bytelengthqueuingstrategy or countqueuingstrategy.
...And 12 more matches
Using the User Timing API - Web APIs
ry types: the "mark" entry type and the "measure" entry type.
... a live version of the examples is available on github, as is the source code.
...github, as is the source code.
...And 12 more matches
Using DTMF with WebRTC - Web APIs
ial() function, as shown in starting the connection process below.
...andidate = handlereceivericeevent; if (hasaddtrack) { receiverpc.ontrack = handlereceivertrackevent; } else { receiverpc.onaddstream = handlereceiveraddstreamevent; } navigator.mediadevices.getusermedia(mediaconstraints) .then(gotstream) .catch(err => log(err.message)); } after creating the rtcpeerconnection for the caller (callerpc), we look to see if it has an addtrack() method.
... navigator.mediadevices.getusermedia(mediaconstraints) .then(gotstream) .catch(err => log(err.message)); } after creating the rtcpeerconnection for the caller (callerpc), we look to see if it has an addtrack() method.
...And 12 more matches
<input type="image"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › image
his interactive example is stored in a github repository.
...ntribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...to be displayed is specified in the src attribute.
...And 12 more matches
Appendix D: Loading Scripts - Archive of obsolete content
to find and understand at a glance.
...nd will execute as javascript version 1.8, based on the version specified in the script tag.
...rg/keymaster/gatekeeper/there.is.only.xul"> <script type="application/javascript;version=1.8" src="overlay.js"/> </overlay> evalinsandbox the components.utils.evalinsandbox method may be used to load arbitrary code into components.utils.sandbox objects.
...And 11 more matches
Observer Notifications - Archive of obsolete content
be performed.
... further describes the notification.
...erver = { observe : function(asubject, atopic, adata) { if (atopic == "xulschoolhello-test-topic") { window.alert("data received: " + adata); } } } in order for this observer to work, you need to use the observer service that provides methods for you to add, remove, notify and enumerate observers.
...And 11 more matches
browser - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a xul <browser> element represents a frame which is expected to contain a view of a web document.
... « xul reference home [ examples | attributes | properties | methods | related ] a xul <browser> element represents a frame which is expected to contain a view of a web document.
...> element represents a frame which is expected to contain a view of a web document.
...And 11 more matches
NPN_Invoke - Archive of obsolete content
« gecko plugin api reference « scripting plugins summary invokes a method on the given npobject.
... « gecko plugin api reference « scripting plugins summary invokes a method on the given npobject.
... « gecko plugin api reference « scripting plugins summary invokes a method on the given npobject.
...And 11 more matches
Using workers in extensions - Archive of obsolete content
w workers and main thread code can pass data back and forth.
...nutes.
...of that value.
...And 11 more matches
Introduction to CSS layout - Learn web development
around them, their parent container, or the main viewport/window.
...ld run.
...out by default rather than fighting against it.
...And 11 more matches
Creating Sandboxed HTTP Connections
eate sandboxed http connections which don't affect the user's cookies.
...the basics of doing http connections from xpcom javascript, and should easily translate to c++ xpcom.
...ring, we use the newuri method of nsiioservice: // the io service var ioservice = components.classes["@mozilla.org/network/io-service;1"] .getservice(components.interfaces.nsiioservice); // create an nsiuri var uri = ioservice.newuri(myurlstring, null, null); once the nsiuri has been created, a nsichannel can be generated from it using nsiioservice's newchannelfromuri method: // get a channel for that nsiuri var channel = ioservice.newchannelfromuri(uri); to initiate the connection, the asyncopen method is called.
...And 11 more matches
Embedding Tips
r password dialog boxes and so on.
...some of the default service implementations with their own.
... get thensiwebnavigation interface on your webbrowser and call the loaduri method with the appropriate uri and flags.
...And 11 more matches
JS::CallArgs
per class encapsulating access to the callee, this value, arguments, and argument count for a function call.
... encapsulating access to the callee, this value, arguments, and argument count for a function call.
...e, this value, arguments, and argument count for a function call.
...And 11 more matches
mozIStorageConnection
le or an in-memory database.
...transaction_exclusive 2 an exclusive lock is obtained on the database.
...ous statements to complete first.
...And 11 more matches
nsIDOMEvent
domevent.idlscriptable this interface is the primary data type for all events in the document object model.
...800000 locate 0x01000000 move 0x02000000 resize 0x04000000 forward 0x08000000 help 0x10000000 back 0x20000000 text 0x40000000 alt_mask 0x00000001 control_mask 0x00000002 shift_mask 0x00000004 meta_mask 0x00000008 methods violates the xpcom interface guidelines deserialize() boolean deserialize( in constipcmessageptr amsg, out voidptr aiter ); parameters amsg aiter return value native code only!duplicateprivatedata void duplicateprivatedata(); parameters none.
...ssageptr amsg, out voidptr aiter ); parameters amsg aiter return value native code only!duplicateprivatedata void duplicateprivatedata(); parameters none.
...And 11 more matches
nsIThread
raction for an operating system thread.
...summary to this article.
...bute type description prthread prthread the nspr thread object corresponding to the nsithread.
...And 11 more matches
nsITransactionManager
editor/txmgr/idl/nsitransactionmanager.idlscriptable this interface is implemented by an object that wants to manage/track transactions.
...s commonly referred to as the number of levels of undo.
...t can exist at any time on both the undo and redo stacks.
...And 11 more matches
nsITreeView
layout/xul/base/src/tree/public/nsitreeview.idlscriptable this interface is used by the tree widget to get information about what and how to display a tree widget.
...lay a tree widget.
... note: renamed from progressundetermined in gecko 1.8 progress_none 3 note: renamed from progressnone in gecko 1.8 drop_before -1 drop_on 0 drop_after 1 indropbefore 0 obsolete since gecko 1.8 indropon 1 obsolete since gecko 1.8 indropafter 2 obsolete since gecko 1.8 methods candrop() methods used by the drag feedback code to determine if a drag is allowable at the current location.
...And 11 more matches
The libmime module
warning: the content of this article may be out of date.
...the parent classes) and then we define the class object using the mimedefclass macro: #include "foobar.h" #define mime_superclass parentlclass mimedefclass(foobar, foobarclass, foobarclass, &mime_superclass); 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.
...nd then we define the class object using the mimedefclass macro: #include "foobar.h" #define mime_superclass parentlclass mimedefclass(foobar, foobarclass, foobarclass, &mime_superclass); 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.
...And 11 more matches
Applying styles and colors - Web APIs
« previousnext » in the chapter about drawing shapes, we used only the default line and fill styles.
...+ math.floor(255 - 42.5 * j) + ', 0)'; ctx.fillrect(j * 25, i * 25, 25, 25); } } } <canvas id="canvas" width="150" height="150"></canvas> draw(); the result looks like this: screenshotlive sample a strokestyle example this example is similar to the one above, but uses the strokestyle property to change the colors of the shapes' outlines.
...<br> <form onsubmit="return draw();"> <label>miter limit</label> <input type="number" size="3" id="miterlimit"/> <input type="submit" value="redraw"/> </form> </td> </tr> </table> document.getelementbyid('miterlimit').value = document.getelementbyid('canvas').getcontext('2d').miterlimit; draw(); screenshotlive sample using line dashes the setlinedash method and the linedashoffset property specify the dash pattern for lines.
...And 11 more matches
console - Web APIs
Web › API › Console
er, but there is a de facto set of features that are typically provided.
...sole.
...he properties of a specified javascript object.
...And 11 more matches
PaymentRequest.PaymentRequest() - Web APIs
the paymentrequest() constructor creates a new paymentrequest object which will be used to handle the process of generating, validating, and submitting a payment request.
... the paymentrequest() constructor creates a new paymentrequest object which will be used to handle the process of generating, validating, and submitting a payment request.
... the paymentrequest() constructor creates a new paymentrequest object which will be used to handle the process of generating, validating, and submitting a payment request.
...And 11 more matches
Performance API - Web APIs
or the difference in time between two discrete points in time.
...ete points in time.
... the unit of domhighrestimestamp is milliseconds and should be accurate to 5 µs (microseconds).
...And 11 more matches
WritableStream.WritableStream() - Web APIs
the writablestream() constructor creates a new writablestream object instance.
... the writablestream() constructor creates a new writablestream object instance.
...ect instance.
...And 11 more matches
Redirections in HTTP - HTTP
edirects, sorted into three categories: permanent redirections temporary redirections special redirections permanent redirections these redirections are meant to last forever.
...rections special redirections permanent redirections these redirections are meant to last forever.
...ould no longer be used, and replaced with the new one.search engine robots, rss readers, and other crawlers will update the original url for the resource.
...And 11 more matches
Functions - JavaScript
ipt, a function can be defined based on a condition.
...nction definition defines myfunc only if num equals 0: var myfunc; if (num === 0) { myfunc = function(theobject) { theobject.make = 'toyota'; } } in addition to defining functions as described here, you can also use the function constructor to create functions from a string at runtime, much like eval().
...lue 24 e = factorial(5); // e gets the value 120 there are other ways to call functions.
...And 11 more matches
ui/sidebar - Archive of obsolete content
s attached to the left-hand side of the browser window.
...y they can show or hide the built-in sidebars.
...ce you've done that, you can show the sidebar by calling the sidebar's show() method.
...And 10 more matches
Bookmarks - Archive of obsolete content
bookmarksservice.getbookmarkstoolbarfolder(), // bookmark folder 0); // index in the folder firefox 3 firefox 3 provides a reworked set of api for working with history and bookmarks.
...rvice as is the case with nearly all interfaces, before you can use the bookmarks service, you need to get access to it: var bmsvc = components.classes["@mozilla.org/browser/nav-bookmarks-service;1"] .getservice(components.interfaces.nsinavbookmarksservice); creating a bookmark folder creating a new bookmark folder is done using the nsinavbookmarksservice.createfolder() method.
...es a new folder named "folder name here" in it.
...And 10 more matches
Migrating from Internal Linkage to Frozen Linkage - Archive of obsolete content
ler error to debug this error, make in the failing directory, adding the /showincludes directive to figure out what is being included incorrectly: make -c directory/that/failed os_cppflags=-showincludes the frozen string api is similar but not identical to the nonfrozen string api.
...unc(promiseflatstring(combostring)); + nsresult rv = somefunc(combostring); removing the nsreadableutils.h from the headers list also means that we would not have access to appendutf16toutf8 kind of functions.
...ils.h from the headers list also means that we would not have access to appendutf16toutf8 kind of functions.
...And 10 more matches
prefwindow - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a specialized window used for preference dialogs.
...roup together a set of related preferences.
...og() with the following window features: "chrome,titlebar,toolbar,centerscreen,dialog=yes".
...And 10 more matches
Using the W3C DOM - Archive of obsolete content
d 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.
...alue 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.
...ms[0] (using square brackets) uses the dom standard forms collection) scripts that use these properties will throw errors in most standards-compliant browsers.
...And 10 more matches
Archived JavaScript Reference - Archive of obsolete content
ovide the function that invoked the currently executing function.
...chronously observing changes to arrays, similar to object.observe() for objects.
...pdate", "delete", "splice"].
...And 10 more matches
Manipulating documents - Learn web development
of functionality that enable us to do a great many things with web pages.
...ith it.
...ou to select elements using css selectors.
...And 10 more matches
Adding features to our bouncing balls demo - Learn web development
y the evil circle).
...exists from shape(), but velx and vely should always equal 20.
...should always equal 20.
...And 10 more matches
Using the Browser API
Mozilla › Gecko › Chrome › API › Browser API › Using
nd used in places like the firefox devtools.
... on in the code we implement two simple event listeners to move the browser back and forward in history when the relevant buttons are pressed: back.addeventlistener('touchend',function() { browser.goback(); }); fwd.addeventlistener('touchend',function() { browser.goforward(); }); the functions can be handled using the browser api htmliframeelement.goback() and htmliframeelement.goforward() methods.
...backwards in the history at any point.
...And 10 more matches
HTTP Cache
use the old cache api any more - nsicacheservice et al.
...scriptable.
...into application caches application cache (appcachestorage): when a consumer has a specific nsiapplicationcache (i.e.
...And 10 more matches
Extending a Protocol
wser engineers who are implementing dom/web apis that need to, for example, send a message to the os or spin up something off the main thread - so it's biased towards supporting w3c/whatwg dom apis.
... need to, for example, send a message to the os or spin up something off the main thread - so it's biased towards supporting w3c/whatwg dom apis.
...ng system bit, which we are not actually going to do - just to illustrate what we could do): let's start by implementing the webidl above.
...And 10 more matches
CustomizableUI.jsm
handled by customizemode.jsm, which interacts with customizableui through a listener mechanism.
...th customizableui through a listener mechanism.
...on bootstrap's "shutdown", that's enough.
...And 10 more matches
DeferredTask.jsm
firefox 28 note interface was changed in firefox 28, and old methods were removed.
...o take into account other changes.
...rmed boolean indicates whether the task is currently requested to start again later, regardless of whether it is currently running.
...And 10 more matches
Tutorial: Embedding Rhino
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.
...; uses the context cx to evaluate a string.
...f = (function)fobj; object result = f.call(cx, scope, scope, functionargs); string report = "f('my args') = " + context.tostring(result); system.out.println(report); } javascript host objects defining host objects custom host objects can implement special javascript features like dynamic properties.
...And 10 more matches
JS_InitClass
f any, are added to the class's new prototype object.
...inherit these properties via the prototype chain.
...ss's constructor.
...And 10 more matches
JSAPI reference
lete since javascript 1.8.5 js_addargumentformatter obsolete since jsapi 18 js_removeargumentformatter obsolete since jsapi 18 the following functions convert js values to various types.
...s obsolete since jsapi 31 js_lookuppropertywithflagsbyid obsolete since jsapi 31 js_newpropertyiterator obsolete since jsapi 36 js_nextproperty obsolete since jsapi 36 js_setpropertyattributes obsolete since jsapi 26 js_setucpropertyattributes obsolete since jsapi 26 the following functions behave like js_getproperty and js_getpropertybyid except when operating on e4x xml objects.
...opertywithflagsbyid obsolete since jsapi 31 js_newpropertyiterator obsolete since jsapi 36 js_nextproperty obsolete since jsapi 36 js_setpropertyattributes obsolete since jsapi 26 js_setucpropertyattributes obsolete since jsapi 26 the following functions behave like js_getproperty and js_getpropertybyid except when operating on e4x xml objects.
...And 10 more matches
Manipulating bookmarks using Places
the places bookmarks service, provided by the nsinavbookmarksservice interface, provides methods for creating, deleting, and manipulating bookmarks and bookmark folders.
...rvice as is the case with nearly all interfaces, before you can use the bookmarks service, you need to get access to it: var bmsvc = components.classes["@mozilla.org/browser/nav-bookmarks-service;1"] .getservice(components.interfaces.nsinavbookmarksservice); creating a bookmark folder creating a new bookmark folder is done using the nsinavbookmarksservice.createfolder() method.
...es a new folder named "folder name here" in it.
...And 10 more matches
nsICacheEntryDescriptor
netwerk/cache/nsicacheentrydescriptor.idlscriptable this interface provides a cache entry descriptor.
...n the cache for an entry that we know up front is going to have to be evicted anyway.
...try that we know up front is going to have to be evicted anyway.
...And 10 more matches
nsIDOMChromeWindow
dom/interfaces/base/nsidomchromewindow.idlscriptable this interface is implemented on the window object in chrome.
...r read only.
...the value is one of state_* constants.
...And 10 more matches
nsINavHistoryResultViewObserver
toolkit/components/places/public/nsinavhistoryservice.idlscriptable this interface is used by clients of the history results to define domain-specific handling of specific nsitreeview methods that the history result doesn't implement.
... toolkit/components/places/public/nsinavhistoryservice.idlscriptable this interface is used by clients of the history results to define domain-specific handling of specific nsitreeview methods that the history result doesn't implement.
...itreecolumn column); constants constant value description drop_before -1 the drag operation wishes to insert the dragged item before the indicated row.
...And 10 more matches
AudioWorkletProcessor.process - Web APIs
the process() method of an audioworkletprocessor-derived class implements the audio processing algorithm for the audio processor worklet.
... the process() method of an audioworkletprocessor-derived class implements the audio processing algorithm for the audio processor worklet.
... the process() method of an audioworkletprocessor-derived class implements the audio processing algorithm for the audio processor worklet.
...And 10 more matches
DirectoryEntrySync - Web APIs
the directoryentrysync interface of the file system api represents a directory in a file system.
...having failed to reach any substantial traction.
...at do not exist yet, you get an error.
...And 10 more matches
HTMLFormElement - Web APIs
s properties from its parent, htmlelement.
...lement.elements read only a htmlformcontrolscollection holding all form controls belonging to this form element.
...olscollection holding all form controls belonging to this form element.
...And 10 more matches
HTMLInputElement - Web APIs
the htmlinputelement interface provides special properties and methods for manipulating the options, layout, and presentation of <input> elements.
...nt's formaction attribute, containing the uri of a program that processes information submitted by the element.
...program that processes information submitted by the element.
...And 10 more matches
HTMLMediaElement - Web APIs
the htmlmediaelement interface adds to htmlelement the properties and methods needed to support basic media-related capabilities that are common to audio and video.
...eventhandler called when the media element is interrupted because of the audio channel manager.
...ment is interrupted because of the audio channel manager.
...And 10 more matches
Drag Operations - Web APIs
ent types.
...e a simple textual representation.
...n include just a single url or text version.
...And 10 more matches
Indexed collections - JavaScript
ject an array is an ordered list of values that you refer to with a name and an index.
...me and an index.
...mber whose fractional portion is non-zero.
...And 10 more matches
Inheritance and the prototype chain - JavaScript
bject.prototype and there is no 'd' property by default, check its prototype.
...property by default, check its prototype.
...ing behavior rules is when there is an inherited property with a getter or a setter.
...And 10 more matches
Object.create() - JavaScript
the object.create() method creates a new object, using an existing object as the prototype of the newly created object.
...ariables.
...ed no matter what the order members are added.
...And 10 more matches
Connecting to Remote Content - Archive of obsolete content
nload and onerror handlers are registered to a callback function to handle the response returned from the remote server.
...document, the responsexml property will hold an xmldocument object that can be manipulated using dom methods.
...ment object that can be manipulated using dom methods.
...And 9 more matches
Search Extension Tutorial (Draft) - Archive of obsolete content
y steps necessary to mitigate the impact of offending add-ons.
...ss extensions, the preferences need to be changed manually, and reverted when the extension is disabled if they have not been changed in the meantime.
...t search engine this change comes in two parts: 1) installing a new search engine (and removing it when your extension is disabled), and 2) setting it as a default (and restoring the previous default when your extension is uninstalled).
...And 9 more matches
JavaScript Client API - Archive of obsolete content
ilt into your data that you can make use of (note that guids must be allowed to change and should be url friendly).
... it's consistent.
...ollowing methods: itemexists(id) createrecord(id, collection) changeitemid(oldid, newid) getallids() wipe() create(record) update(record) remove(record) you may also find it useful to override other methods of the base implementation, for example applyincomingbatch if the underlying storage for your data supports batch operations.
...And 9 more matches
Dynamically modifying XUL-based user interface - Archive of obsolete content
this article discusses manipulating xul interfaces, using dom and other apis.
...bird, to describe the user interface.
...re used in any interaction of a script and a document.
...And 9 more matches
Document Object Model - Archive of obsolete content
ument object model (dom) can be used with xul elements to get information about them or modify them.
...block of text.
...various dom objects have functions which may be accessed in script, however, it is important to note that the dom is an api that is accessible by javascript.
...And 9 more matches
Reference - Archive of obsolete content
, base64-related functionality is not a part of the javascript engine, but a dom feature (probably non-standard).
...t of the javascript engine, but a dom feature (probably non-standard).
...ript engine, but a dom feature (probably non-standard).
...And 9 more matches
NetUtil.jsm
the netutil.jsm javascript code module provides easy-to-use apis for performing common network related tasks.
... the netutil.jsm javascript code module provides easy-to-use apis for performing common network related tasks.
... nsichannel newchannel(awhattoload, [optional] aorigincharset, [optional] nsiuri abaseuri) nsiuri newuri(atarget, [optional] aorigincharset, [optional] nsiuri abaseuri) string readinputstreamtostring(ainputstream, acount, aoptions) attributes attribute type description ioservice nsiioservice returns a reference to nsiioservice.
...And 9 more matches
JS::Value
val.isobject() js::objectvalue(jsobject&amp;), js::objectornullvalue(jsobject*) val.toobject() val.setobject(jsobject &) symbol val.issymbol() js::symbolvalue(js::symbol*) val.tosymbol() val.setsymbol(js::symbol &) numbers are stored in a js::value either as a double or as an int32_t.
...alues, returning true when int32 could be used and false when double representation was required.
...and false when double representation was required.
...And 9 more matches
nsILivemarkService
gecko 22.0 inherits from: nsisupports last changed in gecko 1.9.2 (firefox 3.6 / thunderbird 3.1 / fennec 1.0) this interface is obsolete.
... nsiuri getsiteuri(in long long container); boolean islivemark(in long long folder); void reloadalllivemarks(); 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.
...ri, in long index ); parameters folder the id of the parent folder.
...And 9 more matches
nsINavBookmarkObserver
toolkit/components/places/nsinavbookmarksservice.idlscriptable this interface is an observer for bookmark changes.
... void onitemvisited(in long long aitemid, in long long avisitid, in prtime atime, in unsigned long atransitiontype, in nsiuri auri, in long long aparentid, in acstring aguid, in acstring aparentguid); void onseparatoradded(in print64 parent, in print32 index); obsolete since gecko 1.9 void onseparatorremoved(in print64 parent, in print32 index); obsolete since gecko 1.9 methods onbeforeitemremoved() obsolete since gecko 21.0 (firefox 21.0 / thunderbird 21.0 / seamonkey 2.18) note: this method was removed in gecko 21.0 as part of bug 826409.
... void onseparatoradded(in print64 parent, in print32 index); obsolete since gecko 1.9 void onseparatorremoved(in print64 parent, in print32 index); obsolete since gecko 1.9 methods onbeforeitemremoved() obsolete since gecko 21.0 (firefox 21.0 / thunderbird 21.0 / seamonkey 2.18) note: this method was removed in gecko 21.0 as part of bug 826409.
...And 9 more matches
nsIXPCScriptable
note: this is not really an xpcom interface.
...ntee that they set the *_retval of the various methods that return a boolean to pr_true before making the call.
...(define below) that indicate the behavior of this object.
...And 9 more matches
Debugger.Object - Firefox Developer Tools
debugger.object a debugger.object instance represents an object in the debuggee, providing reflection-oriented methods to inspect and modify its referent.
... debugger.object a debugger.object instance represents an object in the debuggee, providing reflection-oriented methods to inspect and modify its referent.
...ionsite if object allocation site tracking was enabled when this debugger.object’s referent was allocated, return the javascript execution stack captured at the time of the allocation.
...And 9 more matches
Introduction to the DOM - Web APIs
ion of the web page, which can be modified with a scripting language such as javascript.
...by various browsers with different doms.
...uction–you can immediately begin using the api for the document or window elements to manipulate the document itself or to get at the children of that document, which are the various elements in the web page.
...And 9 more matches
EventTarget.addEventListener() - Web APIs
the eventtarget method addeventlistener() sets up a function that will be called whenever the specified event is delivered to the target.
... synthetic events dispatched by web content (the default is false for browser chrome and true for regular web pages).
... is useful for code found in add-ons, as well as the browser itself.
...And 9 more matches
PaymentResponse - Web APIs
the paymentresponse interface of the payment request api is returned after a user selects a payment method and approves a payment request.
... the paymentresponse interface of the payment request api is returned after a user selects a payment method and approves a payment request.
...face of the payment request api is returned after a user selects a payment method and approves a payment request.
...And 9 more matches
SVGSVGElement - Web APIs
the svgsvgelement interface provides access to the properties of <svg> elements, as well as methods to manipulate them.
... the svgsvgelement interface provides access to the properties of <svg> elements, as well as methods to manipulate them.
... an extra transformation were placed at the outermost level on the svg document fragment (i.e., outside the outermost <svg> element).
...And 9 more matches
Rendering and the WebXR frame animation callback - Web APIs
icle covers the process of driving the frames of the xr scene to the device in the rendering loop, using the xrsession to obtain an xrframe object representing each frame, which is then used to prepare the framebuffer for delivery to the xr device.
...r the scene, you can set up the renderer to start running.
...nsform(viewerstartposition, viewerstartorientation)); animationframerequestid = xrsession.requestanimationframe(mydrawframe); } } after getting a reference space for the immersive world, this creates an offset reference space representing the position and orientation of the viewer by creating an xrrigidtransform representing that position and orientation, then calling the xrreferencespace method getoffsetreferencespace().
...And 9 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.
...e string.
...ndowproxy object, which is basically a thin wrapper for the window object representing the newly created window, and has all its features available.
...And 9 more matches
WindowOrWorkerGlobalScope.fetch() - Web APIs
the fetch() method of the windoworworkerglobalscope mixin starts the process of fetching a resource from the network, returning a promise which is fulfilled once the response is available.
...turning a promise which is fulfilled once the response is available.
...the fetch() method is available in pretty much any context in which you might want to fetch resources.
...And 9 more matches
CSS Grid Layout and Progressive Enhancement - CSS: Cascading Style Sheets
ent, in terms of the amount of time it has been in development, and the work of the various browser vendors to ensure that what ships works in the same way for everyone.
... time it has been in development, and the work of the various browser vendors to ensure that what ships works in the same way for everyone.
... ships works in the same way for everyone.
...And 9 more matches
Constraint validation - Developer guides
acters (code points) must not exceed the value of the attribute.
...the <form> element itself.
...outputelement or htmltextareaelement), which evaluates the constraints only on this element, allowing a script to get this information.
...And 9 more matches
Date - JavaScript
pt epoch and timestamps a javascript date is fundamentally specified as the number of milliseconds that have elapsed since midnight on january 1, 1970, utc.
... (number.max_safe_integer is 9,007,199,254,740,991).
...one conversions.
...And 9 more matches
Object.prototype.valueOf() - JavaScript
the valueof() method returns the primitive value of the specified object.
...you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...b.com/mdn/interactive-examples and send us a pull request.
...And 9 more matches
Promise - JavaScript
ailure) of an asynchronous operation, and its resulting value.
...nd its resulting value.
...n use them, we advise you to read using promises first.
...And 9 more matches
Property accessors - JavaScript
e clone https://github.com/mdn/interactive-examples and send us a pull request.
...interactive-examples and send us a pull request.
...x object.property object['property'] description one can think of an object as an associative array (a.k.a.
...And 9 more matches
super - JavaScript
the super keyword is used to access and call functions on an object's parent.
...s.height; // referenceerror, super needs to be called first!
...ed first!
...And 9 more matches
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
r.server2.username", env_user); //smtp lockpref("mail.identity.id1.smtpserver", "smtp1"); lockpref("mail.identity.id1.stationery_folder", "imap://" + env_user + "@imap-int.int-evry.fr/templates"); lockpref("mail.identity.id1.tmpl_folder_picker_mode", "0"); lockpref("mail.identity.id1.valid", true); //smtp general lockpref("mail.smtp.defaultserver", "smtp1"); lockpref("mail.smtpserver.smtp1.auth_method", 0); lockpref("mail.smtpserver.smtp1.hostname", "smtp-int.int-evry.fr"); lockpref("mail.smtpserver.smtp1.port", 25); lockpref("mail.smtpserver.smtp1.try_ssl", 0); lockpref("mail.smtpserver.smtp1.username", ""); lockpref("mail.smtpservers", "smtp1"); lockpref("mail.startup.enabledmailcheckonce", true); lockpref("mailnews.quotingprefs.version", 1); lockpref("mailnews.ui.threadpane.version", 5); /...
...gs defaultpref("mail.server.server1.hostname", "myimap.server.com" ); defaultpref("mail.server.server1.name", userinfo.mail ); defaultpref("mail.server.server1.port", 993 ); defaultpref("mail.server.server1.sockettype", 3 ); defaultpref("mail.server.server1.type", "imap" ); defaultpref("mail.server.server1.username", userinfo.mail ); // smtp server settings defaultpref("mail.smtpserver.smtp1.authmethod", 3 ); defaultpref("mail.smtpserver.smtp1.description", "my company name" ); defaultpref("mail.smtpserver.smtp1.hostname", "mysmtp.server.com" ); defaultpref("mail.smtpserver.smtp1.port", 465 ); defaultpref("mail.smtpserver.smtp1.try_ssl", 3 ); defaultpref("mail.smtpserver.smtp1.username", userinfo.mail ); // glue it all together defaultpref("mail.account.account1.identities", "id1" ); defaultpr...
...nfig api is there, ldap call works fine, good !.
...And 8 more matches
Manipulating Lists - Archive of obsolete content
« previousnext » the xul listbox provides a number of specialized methods.
... « previousnext » the xul listbox provides a number of specialized methods.
...oveitemat(3); the insertitemat() function takes an additional argument, the position to insert the new item.
...And 8 more matches
listbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] this element is used to create a list of items where one or more of the items may be selected.
... « xul reference home [ examples | attributes | properties | methods | related ] this element is used to create a list of items where one or more of the items may be selected.
...se the richlistbox element.
...And 8 more matches
Writing JavaScript for XHTML - Archive of obsolete content
correctly in both application/xhtml+xml and text/html environments are sometimes known as 'polyglot' documents.) to test the following examples locally, use firefox's extension switch.
.../xhtml+xml and text/html (at least as far as xhtml 1.* and html 4; html5 addresses many of these problems).
...firefox 2 there was a new feature enabled, the html 5 storage object.
...And 8 more matches
Arrays - Learn web development
code is saying: start looping at item number 0 in the array.
...ooping at the item number equal to the length of the array.
...lated methods that allow us to split strings into array items and vice versa, and add new items into arrays.
...And 8 more matches
Object-oriented JavaScript for beginners - Learn web development
ous function with the following: function person(name) { this.name = name; this.greeting = function() { alert('hi!
...ures you'd expect in a function, although it doesn't return anything or explicitly create an object — it basically just defines properties and methods.
...t person1 = new person('bob'); let person2 = new person('sarah'); save your code and reload it in the browser, and try entering the following lines into your js console: person1.name person1.greeting() person2.name person2.greeting() cool!
...And 8 more matches
Eclipse CDT
he ctrl/cmd key, move the mouse slightly to linkify the symbol, then click on it.
...efinition of an enum, class, method, etc.
... ctrl-shift-t/cmd-shift-t.
...And 8 more matches
JNI.jsm
if you need to run jni from the global scope, use a different variable name then jenv.
...s all the js-ctypes needed to communicate with the jni libraries.
...thod in jni, it is declared the same way we define functions, except in jni they are called fields.
...And 8 more matches
SpiderMonkey 31
latforms (sparc, mips), the jit is provided but not supported.
...s), the jit is provided but not supported.
...reter, as in previous versions.
...And 8 more matches
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.
... 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.
...r assign assignascii assignliteral(const char assignliteral(char adopt replace replaceascii append appendascii appendliteral(const char appendliteral(char operator+= insert cut setcapacity setlength truncate getdata getmutabledata setisvoid stripchar base classes nscstring data members no public members.
...And 8 more matches
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.
... 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.
...ar assign assignascii assignliteral(const char assignliteral(char adopt replace replaceascii append appendascii appendliteral(const char appendliteral(char operator+= insert cut setcapacity setlength truncate getdata getmutabledata setisvoid stripchar base classes nsstring data members no public members.
...And 8 more matches
nsIChannel
n().
...ocument uri.
...uld call the content sniffers as described in netwerk/build/nsnetcid.h about ns_content_sniffer_category.
...And 8 more matches
nsIComponentRegistrar
xpcom/components/nsicomponentregistrar.idlscriptable this interface provides methods to access and modify the xpcom component registry.
... xpcom/components/nsicomponentregistrar.idlscriptable this interface provides methods to access and modify the xpcom component registry.
...terfactory(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 (.manifest) file or all component files in a directory.
...And 8 more matches
nsIMsgFolder
the nsimsgfolder interface is used to interact with folders in thunderbird.
... the nsimsgfolder interface is used to interact with folders in thunderbird.
...gdownloadsettings sortorder long used for order in the folder pane, folder pickers, etc.
...And 8 more matches
nsIThreadObserver
the nsithreadobserver interface may be implemented to let an observer implement a layered event queue.
... summary to this article.
...firefox 3) inherits from: nsisupports method overview void afterprocessnextevent(in nsithreadinternal thread, in unsigned long recursiondepth); void ondispatchedevent(in nsithreadinternal thread); void onprocessnextevent(in nsithreadinternal thread, in boolean maywait, in unsigned long recursiondepth); methods afterprocessnextevent() called by the nsithread method nsithread.processnextevent() after an event is processed.
...And 8 more matches
nsIWindowMediator
/ seamonkey 2.5) the two most common uses of nsiwindowmediator are, enumerating all windows of a given type and getting the most recent / any window of a given type.
... void updatewindowtimestamp(in nsixulwindow awindow); native code only!
...; //to register services.wm.addlistener(windowlistener); //services.wm.removelistener(windowlistener); //once you want to remove this listener execute removelistener, currently its commented out so you can copy paste this code in scratchpad and see it work native code only!calculatezposition a window wants to be moved in z-order.
...And 8 more matches
Storage
ion is treated specially by windows as a known extension for an 'application compatibility database' and changes are backed up by the system automatically as part of system restore functionality.
...acked up by the system automatically as part of system restore functionality.
...ind a value to a parameter, it will be interpreted as null.
...And 8 more matches
xptcall FAQ
what is xptcall?
... what is xptcall?
... what is xptcall?
...And 8 more matches
Working with ArrayBuffers
her, if you have a byte array pixelbuffer, and you need to create imagedata from it.
...a from it.
... * 4 because per pixel there is r, g, b, a numbers casted.tostring(); // "ctypes.uint8_t.array(640000)([45, 66, 135, 255, 99, 86, 55, 255, ..........
...And 8 more matches
Debugger.Script - Firefox Developer Tools
al, excluding the bodies of any functions that code defines.
...ntents of a <script> element.
...ment.
...And 8 more matches
Network request list - Firefox Developer Tools
he default by selecting "reset sorting" from the context menu.
...reset sorting" from the context menu.
...est properties.
...And 8 more matches
AudioNode - Web APIs
Web › API › AudioNode
put has a given amount of channels.
...s as required; check the web audio spec for details.
...ctor const analysernode = new analysernode(audioctx, { fftsize: 2048, maxdecibels: -25, mindecibels: -60, smoothingtimeconstant: 0.5, }); // factory method const analysernode = audioctx.createanalyser(); analysernode.fftsize = 2048; analysernode.maxdecibels = -25; analysernode.mindecibels = -60; analysernode.smoothingtimeconstant = 0.5; you are free to use either constructors or factory methods, or mix both, however there are advantages to using the constructors: all parameters can be set during construction time and don't need to be set individually.
...And 8 more matches
Using images - Web APIs
mlcanvaselement you can use another <canvas> element as your image source.
...age from another domain for use in your call to drawimage().
...iaaaaaa3pn/zih5baeaaaealaaaaaalaasaaaiuha+hkcuo4lmnvindo7qyrixigbyaow=='; one advantage of data urls is that the resulting image is available immediately without another round trip to the server.
...And 8 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.
...as well as information about the file it points to—including the file name and its path from the root to the entry.
...o the entry.
...And 8 more matches
HTMLInputElement.stepDown() - Web APIs
the htmlinputelement.stepdown([n]) method decrements the value of a numeric type of <input> element by the value of the step attribute or up to n multiples of the step attribute if a number is passed as the parameter.
... the htmlinputelement.stepdown([n]) method decrements the value of a numeric type of <input> element by the value of the step attribute or up to n multiples of the step attribute if a number is passed as the parameter.
....
...And 8 more matches
HTMLSelectElement - Web APIs
the htmlselectelement interface represents a <select> html element.
...control is in.
...ue a domstring reflecting the value of the form control.
...And 8 more matches
The HTML DOM API - Web APIs
le object within the document (such as an element or text node).
...eric, however, providing only the functionality common to all html elements such as the element's id, its coordinates, the html making up the element, information about scroll position, and so forth.
...and so forth.
...And 8 more matches
Using IndexedDB - Web APIs
n work both online and offline.
...abase or start the transaction right away.
...write").objectstore("customers"); customerdata.foreach(function(customer) { customerobjectstore.add(customer); }); }; }; as indicated previously, onupgradeneeded is the only place where you can alter the structure of the database.
...And 8 more matches
Microdata DOM API - Web APIs
e browsers for a long time.
...s a nodelist containing the items with the specified types, or all types if no argument is specified.
...he element.itemtype idl attribute on the element with the itemscope attribute.
...And 8 more matches
Starting up and shutting down a WebXR session - Web APIs
for webxr.
...k = await navigator.xr.issessionsupported("immersive-vr"); if (immersiveok) { // create and use an immersive vr session } else { // create an inline session instead, or tell the user about the // incompatibility if inline is required } creating and starting the session a webxr session is represented by an xrsession object.
...a webxr session could look like this: async function createimmersivesession(xr) { try { session = await xr.requestsession("immersive-vr"); return session; } catch(error) { throw error; } } this function returns the new xrsession or throws an exception if an error occurs while creating the session.
...And 8 more matches
Getting Started - Developer guides
1 – how to make an http request in order to make an http request to the server with javascript, you need an instance of an object with the necessary functionality.
...me, you can use the javascript technique of defining functions on the fly (called "anonymous functions") to define the actions that will process the response, like this: httprequest.onreadystatechange = function(){ // process the server response here.
... = function(){ // process the server response here.
...And 8 more matches
OPTIONS - HTTP
Web › HTTP › Methods › OPTIONS
the http options method requests permitted communication options for a given url or server.
... the http options method requests permitted communication options for a given url or server.
...rl or server.
...And 8 more matches
Closures - JavaScript
al environments.
...actical closures closures are useful because they let you associate data (the lexical environment) with a function that operates on that data.
...ch them to buttons (in this case hyperlinks) as demonstrated in the following code example.
...And 8 more matches
Details of the object model - JavaScript
t you are already somewhat familiar with javascript and that you have used javascript functions to create simple objects.
... properties for a new object.
...r when you create it or at run time.
...And 8 more matches
Function.prototype.apply() - JavaScript
the apply() method calls a function with a given this value, and arguments provided as an array (or an array-like object).
... the source for this interactive example is stored in a github repository.
... this interactive example is stored in a github repository.
...And 8 more matches
Object - JavaScript
the object class represents one of javascript's data types.
...ds) from object.prototype, although these properties may be shadowed (a.k.a.
...null or undefined, it will create and return an empty object.
...And 8 more matches
context-menu - Archive of obsolete content
({ label: "edit image", context: cm.selectorcontext("img"), contentscript: 'self.on("click", function (node, data) {' + ' self.postmessage(node.src);' + '});', onmessage: function (imgsrc) { openimageeditor(imgsrc); } }); updating a menu item's label each menu item must be created with a label, but you can change its label later using a couple of methods.
...", context: cm.selectorcontext("img"), contentscript: 'self.on("click", function (node, data) {' + ' self.postmessage(node.src);' + '});', onmessage: function (imgsrc) { openimageeditor(imgsrc); } }); updating a menu item's label each menu item must be created with a label, but you can change its label later using a couple of methods.
...onmessage: function () { numclicks++; this.label = "click me: " + numclicks; // setting myitem.label is equivalent.
...And 7 more matches
dev/panel - Archive of obsolete content
it can receive messages from the add-on that created it, and the add-on can pass it the debuggee so it can communicate with the debugger server the developer tools are targeting.
... }, onready: function() { this.postmessage("message from the add-on", [this.debuggee]); } }); // export the constructor exports.mypanel = mypanel; // create a new tool, initialized // with the new constructor const mytool = new tool({ panels: { mypanel: mypanel } }); this is being tracked as bug 1079540.
...ch as a javascript debugger or style editor, is the client, and the program being debugged, such as firefox, is the server.
...And 7 more matches
ui/button/toggle - Archive of obsolete content
.log("you changed '" + state.label + "'"); button.removelistener("change", firstchange); button.on("change", subsequentchanges); } function subsequentchanges(state) { console.log("you changed '" + state.label + "' again"); } the listener is passed a state object that contains all the button's properties.
...nction subsequentchanges(state) { console.log("you changed '" + state.label + "' again"); } the listener is passed a state object that contains all the button's properties.
... label = "my default" w1 t1 > displays "my default" t2 > displays "my default" w2 t3 > displays "my t3 label" t4 > displays "my w2 label" setting the properties on the button instance sets the button's global state: button.label = "my new label"; you can set state to be specific to a window or tab using the button's state() method.
...And 7 more matches
Promises - Archive of obsolete content
use the response to construct form data object for the // second request.
... iconurl, version, loadgroup)); }, getinstallforfile: function getinstallforfile(url, mimetype) { return new promise(accept => this.addonmanager.getinstallforfile(url, accept, mimetype)); }, getallinstalls: function getallinstalls() { return new promise(accept => this.addonmanager.getallinstalls(accept)); }, _replacemethod: function replacemethod(method, callback) { object.defineproperty(this, method, { enumerable: true, configurable: true, value: key => { return new promise(accept => this.addonmanager[method](key, addon => accept(callback(addon)))); } }); }, }; for (let method ...
..., method, { enumerable: true, configurable: true, value: key => { return new promise(accept => this.addonmanager[method](key, addon => accept(callback(addon)))); } }); }, }; for (let method of ["getaddonbyid", "getaddonbysyncguid"]) aom._replacemethod(method, addon => aom.addon(addon)); for (let method of ["getalladdons", "getaddonsbyids", "getaddonsbytypes", "getaddonswithoperationsbytypes"]) aom._replacemethod(method, addons => addons.map(aom.addon)); aom._replacemethod("getinstallsbytypes", installs => installs); components.utils.import("resource://gre/modules/addonmanager.j...
...And 7 more matches
MMgc - Archive of obsolete content
age collector.
...nning at once.
... mark phase.
...And 7 more matches
Space Manager High Level Design - Archive of obsolete content
anager also play an important part in the management of he available and used space.
...ferred to as propagation of float damage and is handled by the block frame, making use of the space manager.
...: a specialization of nsbanddata that is used by nsblockreflowstate to determine the available space, float impacts, and where floats are cleared.
...And 7 more matches
editor - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a frame which is expected to contain an editable document.
...to create an editor document.
... xul file, the document does not become editable by default.
...And 7 more matches
panel - Archive of obsolete content
Archive › Mozilla › XUL › panel
« xul reference home [ examples | attributes | properties | methods | related ] a panel is a used as a temporary floating popup window that may contain any type of content.
...rary floating popup window that may contain any type of content.
...n, it floats above the window and may extend outside the border of the main window.
...And 7 more matches
NPN_InvokeDefault - Archive of obsolete content
« gecko plugin api reference « scripting plugins summary invokes the default method, if one exists, on the given npobject.
...pi reference « scripting plugins summary invokes the default method, if one exists, on the given npobject.
...exists, on the given npobject.
...And 7 more matches
NPAPI plugin reference - Archive of obsolete content
the articles below describe each of the apis related to npapi plugins.
... the articles below describe each of the apis related to npapi plugins.
... allows the browser to query the plug-in for information.
...And 7 more matches
Adobe Flash - Archive of obsolete content
this document is out of date.
... this document is out of date.
...ator.useragent.indexof("mach-o")!=-1) { if(flashversion < flashversionosxscriptable) // flash version is less than version 12, thus not scriptable on os x } // 6.
...And 7 more matches
Browser Feature Detection - Archive of obsolete content
an experimental approach to discovering degree of support for standards.
... an experimental approach to discovering degree of support for standards.
... an experimental approach to discovering degree of support for standards.
...And 7 more matches
JavaObject - Archive of obsolete content
summary core object the type of a wrapped java object accessed from within javascript code.
...avascript is converted to javascript data types.
... javascript data types.
...And 7 more matches
Cooperative asynchronous JavaScript: Timeouts and intervals - Learn web development
previous overview: asynchronous next this tutorial looks at the traditional methods javascript has available for running code asychronously after a set time period has elapsed, or at a regular interval (e.g.
...ello'); this can be useful in cases where you want to set a block of code to run as soon as all of the main thread has finished running — put it on the async event loop, so it will run straight afterwards.
... which for example doesn't run at a frame rate optimized for the device, sometimes drops frames, continues to run even if the tab is not the active tab or the animation is scrolled off the page, etc.
...And 7 more matches
Fetching data from the server - Learn web development
let url = verse + '.txt'; to begin creating an xhr request, you need to create a new request object using the xmlhttprequest() constructor.
...begin creating an xhr request, you need to create a new request object using the xmlhttprequest() constructor.
...nstructor.
...And 7 more matches
Using Vue computed properties - Learn web development
previous overview: client-side javascript frameworks next in this article we'll add a counter that displays the number of completed todo items, using a feature of vue called computed properties.
...s.filter(item => item.done).length}} out of {{todoitems.length}} items completed</h2> it would be recalculated on every render.
...e complicated, that could cause a serious performance problem.
...And 7 more matches
mach
n it!') @commandargument('--debug', '-d', action='store_true', help='do it in debug mode.') def doit(self, debug=false): print('i did it!') from mach.decorators we import some python decorators which are used to define what python code corresponds to mach commands.
...om mach.decorators we import some python decorators which are used to define what python code corresponds to mach commands.
...corators which are used to define what python code corresponds to mach commands.
...And 7 more matches
Error codes returned by Mozilla APIs
ript.
...lts.
...to use a component or object which has not yet been initialized.
...And 7 more matches
HTML parser threading
s constructed without an nshtml5streamparser due to legacy code structure around parser creation.
...ddities, an nshtml5parser is initialized by calling nshtml5parser::parse(nsiuri*, nsirequestobserver*, void*, nsdtdmode).
...rser::getstreamlistener().
...And 7 more matches
JavaScript Tips
ng 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.
...isting or future function and variable names.
... } }; xpconnect don't use object methods and properties more than you have to.
...And 7 more matches
Addon
an addon represents an add-on that is either installed or can be installed.
... an addon represents an add-on that is either installed or can be installed.
... an addon represents an add-on that is either installed or can be installed.
...And 7 more matches
Downloads.jsm
the downloads.jsm javascript code module provides a single entry point to interact with the downloading capabilities of the platform, including starting new downloads, controlling ongoing downloads, and retrieving download-related configuration.
...exception during a download, you can use this to verify if ex instanceof downloads.error, before reading the exception properties with the error details.
... path: string containing the path of the target file.
...And 7 more matches
PromiseWorker.jsm
thread file.
...e brought in with the require() method.
...ly, the template code should be added in.
...And 7 more matches
WebRequest.jsm
escription url string target of the request.
... string target of the request.
...escription url string target of the request.
...And 7 more matches
NS_ConvertASCIItoUTF16
class declaration method overview constructors operator= get find rfind rfindchar findcharinset rfindcharinset equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar replacesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsascii lowercaseequalsliteral(const char lowercaseequalsliteral(char assign ...
... assign assignascii assignliteral(const char assignliteral(char adopt replace replaceascii append appendascii appendliteral(const char appendliteral(char operator+= insert cut setcapacity setlength truncate getdata getmutabledata setisvoid stripchar base classes nsautostring data members no public members.
...ecase print32 aoffset print32 acount print32 find(const nsaflatstring&, print32, print32) const - source parameters nsaflatstring& astring print32 aoffset print32 acount print32 find(const prunichar*, print32, print32) const - source parameters prunichar* astring print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...And 7 more matches
NS_ConvertUTF16toUTF8
class declaration a helper class that converts a utf-16 string to utf-8 method overview constructors operator= get find rfind rfindchar findcharinset rfindcharinset compare equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar replacesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsascii lowercaseeq...
... assign assignascii assignliteral(const char assignliteral(char adopt replace replaceascii append appendascii appendliteral(const char appendliteral(char operator+= insert cut setcapacity setlength truncate getdata getmutabledata setisvoid stripchar base classes nscautostring data members no public members.
...h.
...And 7 more matches
NS_ConvertUTF8toUTF16
class declaration method overview constructors operator= get find rfind rfindchar findcharinset rfindcharinset equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar replacesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsascii lowercaseequalsliteral(const char lowercaseequalsliteral(char assign ...
... assign assignascii assignliteral(const char assignliteral(char adopt replace replaceascii append appendascii appendliteral(const char appendliteral(char operator+= insert cut setcapacity setlength truncate getdata getmutabledata setisvoid stripchar base classes nsautostring data members no public members.
...ecase print32 aoffset print32 acount print32 find(const nsaflatstring&, print32, print32) const - source parameters nsaflatstring& astring print32 aoffset print32 acount print32 find(const prunichar*, print32, print32) const - source parameters prunichar* astring print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...And 7 more matches
NS_LossyConvertUTF16toASCII
class declaration a helper class that converts a utf-16 string to ascii in a lossy manner method overview constructors operator= get find rfind rfindchar findcharinset rfindcharinset compare equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar replacesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsasc...
... assign assignascii assignliteral(const char assignliteral(char adopt replace replaceascii append appendascii appendliteral(const char appendliteral(char operator+= insert cut setcapacity setlength truncate getdata getmutabledata setisvoid stripchar base classes nscautostring data members no public members.
...h.
...And 7 more matches
nsAdoptingCString
class declaration nstadoptingstring extends nstxpidlstring such that: (1) adopt given string on construction or assignment, i.e.
... assign assignascii assignliteral(const char assignliteral(char adopt replace replaceascii append appendascii appendliteral(const char appendliteral(char operator+= insert cut setcapacity setlength truncate getdata getmutabledata setisvoid stripchar base classes nsxpidlcstring data members no public members.
...h.
...And 7 more matches
nsAdoptingString
class declaration nstadoptingstring extends nstxpidlstring such that: (1) adopt given string on construction or assignment, i.e.
... assign assignascii assignliteral(const char assignliteral(char adopt replace replaceascii append appendascii appendliteral(const char appendliteral(char operator+= insert cut setcapacity setlength truncate getdata getmutabledata setisvoid stripchar base classes nsxpidlstring data members no public members.
...ecase print32 aoffset print32 acount print32 find(const nsaflatstring&, print32, print32) const - source parameters nsaflatstring& astring print32 aoffset print32 acount print32 find(const prunichar*, print32, print32) const - source parameters prunichar* astring print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...And 7 more matches
nsAutoString
class declaration nstautostring_chart subclass of nststring_chart that adds support for stack-based string allocation.
... assign assignascii assignliteral(const char assignliteral(char adopt replace replaceascii append appendascii appendliteral(const char appendliteral(char operator+= insert cut setcapacity setlength truncate getdata getmutabledata setisvoid stripchar base classes nsfixedstring data members no public members.
...ecase print32 aoffset print32 acount print32 find(const nsaflatstring&, print32, print32) const - source parameters nsaflatstring& astring print32 aoffset print32 acount print32 find(const prunichar*, print32, print32) const - source parameters prunichar* astring print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...And 7 more matches
nsCAutoString
class declaration nstautostring_chart subclass of nststring_chart that adds support for stack-based string allocation.
...t replace replaceascii append appendascii appendliteral(const char appendliteral(char operator+= insert cut setcapacity setlength truncate getdata getmutabledata setisvoid stripchar base classes nsfixedcstring data members no public members.
...string.
...And 7 more matches
nsCString
class declaration this is the canonical null-terminated string class.
...gn assignascii assignliteral(const char assignliteral(char adopt replace replaceascii append appendascii appendliteral(const char appendliteral(char operator+= insert cut setcapacity setlength truncate getdata getmutabledata setisvoid stripchar base classes nsacstring_internal data members no public members.
...h.
...And 7 more matches
nsDependentCString
class declaration nstdependentstring_chart stores a null-terminated, immutable sequence of characters.
...r assign assignascii assignliteral(const char assignliteral(char adopt replace replaceascii append appendascii appendliteral(const char appendliteral(char operator+= insert cut setcapacity setlength truncate getdata getmutabledata setisvoid stripchar base classes nscstring data members no public members.
...h.
...And 7 more matches
nsDependentString
class declaration nstdependentstring_chart stores a null-terminated, immutable sequence of characters.
...ar assign assignascii assignliteral(const char assignliteral(char adopt replace replaceascii append appendascii appendliteral(const char appendliteral(char operator+= insert cut setcapacity setlength truncate getdata getmutabledata setisvoid stripchar base classes nsstring data members no public members.
...ecase print32 aoffset print32 acount print32 find(const nsaflatstring&, print32, print32) const - source parameters nsaflatstring& astring print32 aoffset print32 acount print32 find(const prunichar*, print32, print32) const - source parameters prunichar* astring print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...And 7 more matches
nsFixedCString
class declaration method overview constructors operator= get find rfind rfindchar findcharinset rfindcharinset compare equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar replacesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsascii lowercaseequalsliteral(const char lowercaseequalsliteral(char...
...r assign assignascii assignliteral(const char assignliteral(char adopt replace replaceascii append appendascii appendliteral(const char appendliteral(char operator+= insert cut setcapacity setlength truncate getdata getmutabledata setisvoid stripchar base classes nscstring data members no public members.
...h.
...And 7 more matches
nsFixedString
class declaration method overview constructors operator= get find rfind rfindchar findcharinset rfindcharinset equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar replacesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsascii lowercaseequalsliteral(const char lowercaseequalsliteral(char assign ...
...ar assign assignascii assignliteral(const char assignliteral(char adopt replace replaceascii append appendascii appendliteral(const char appendliteral(char operator+= insert cut setcapacity setlength truncate getdata getmutabledata setisvoid stripchar base classes nsstring data members no public members.
...ecase print32 aoffset print32 acount print32 find(const nsaflatstring&, print32, print32) const - source parameters nsaflatstring& astring print32 aoffset print32 acount print32 find(const prunichar*, print32, print32) const - source parameters prunichar* astring print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...And 7 more matches
nsPromiseFlatCString
class declaration method overview constructors operator= get find rfind rfindchar findcharinset rfindcharinset compare equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar replacesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsascii lowercaseequalsliteral(const char lowercaseequalsliteral(char...
...r assign assignascii assignliteral(const char assignliteral(char adopt replace replaceascii append appendascii appendliteral(const char appendliteral(char operator+= insert cut setcapacity setlength truncate getdata getmutabledata setisvoid stripchar base classes nscstring data members no public members.
...h.
...And 7 more matches
nsPromiseFlatString
class declaration method overview constructors operator= get find rfind rfindchar findcharinset rfindcharinset equalsignorecase tofloat tointeger mid left right setcharat stripchars stripwhitespace replacechar replacesubstring trim compresswhitespace assignwithconversion appendwithconversion appendint appendfloat beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsascii lowercaseequalsliteral(const char lowercaseequalsliteral(char assign ...
...ar assign assignascii assignliteral(const char assignliteral(char adopt replace replaceascii append appendascii appendliteral(const char appendliteral(char operator+= insert cut setcapacity setlength truncate getdata getmutabledata setisvoid stripchar base classes nsstring data members no public members.
...ecase print32 aoffset print32 acount print32 find(const nsaflatstring&, print32, print32) const - source parameters nsaflatstring& astring print32 aoffset print32 acount print32 find(const prunichar*, print32, print32) const - source parameters prunichar* astring print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...And 7 more matches
nsString
class declaration this is the canonical null-terminated string class.
...ign assignascii assignliteral(const char assignliteral(char adopt replace replaceascii append appendascii appendliteral(const char appendliteral(char operator+= insert cut setcapacity setlength truncate getdata getmutabledata setisvoid stripchar base classes nsastring_internal data members no public members.
...ecase print32 aoffset print32 acount print32 find(const nsaflatstring&, print32, print32) const - source parameters nsaflatstring& astring print32 aoffset print32 acount print32 find(const prunichar*, print32, print32) const - source parameters prunichar* astring print32 aoffset print32 acount rfind print32 rfind(const nscstring&, prbool, print32, print32) const - source this methods scans the string backwards, looking for the given string @param astring is substring to be sought in this @param aignorecase tells us whether or not to do caseless compare @param aoffset tells us where in this string to start searching.
...And 7 more matches
mozIStorageService
storage/public/mozistorageservice.idlscriptable this interface lets you open a mozistorageconnection to a database file, as well as create backups of an unopened database file.
...rview nsifile backupdatabasefile(in nsifile adbfile, in astring abackupfilename, [optional] in nsifile abackupparentdirectory); mozistorageconnection opendatabase(in nsifile adatabasefile); mozistorageconnection openspecialdatabase(in string astoragekey); mozistorageconnection openunshareddatabase(in nsifile adatabasefile); methods backupdatabasefile() this method makes a backup of the specified file.
...ase(in nsifile adatabasefile); mozistorageconnection openspecialdatabase(in string astoragekey); mozistorageconnection openunshareddatabase(in nsifile adatabasefile); methods backupdatabasefile() this method makes a backup of the specified file.
...And 7 more matches
mozIStorageStatement
storage/public/mozistoragestatement.idlscriptable this interface lets you create and execute sql statements on a mozistorageconnection.
...gestatement.moz_storage_statement_executing.
... moz_storage_statement_invalid 0 the sql statement is invalid.
...And 7 more matches
nsIAccessibleText
accessible/public/nsiaccessibletext.idlscriptable please add a summary to this article.
...in new code.
...height of the bounding box of the referenced character.
...And 7 more matches
nsIAsyncInputStream
erits from: nsiinputstream last changed in gecko 1.7 if an input stream is non-blocking, it may return ns_base_stream_would_block when read.
...en the caller can use this interface to request an asynchronous notification when the stream becomes readable or closed (via the asyncwait() method).
...sewithstatus(in nsresult astatus); constants constant value description wait_closure_only (1<<0) if passed to asyncwait(), this flag overrides the default behavior, causing the oninputstreamready notification to be suppressed until the stream becomes closed (either as a result of closewithstatus()/close being called on the stream or possibly due to some error in the underlying stream).
...And 7 more matches
nsIAsyncOutputStream
its from: nsioutputstream last changed in gecko 1.7 if an output stream is non-blocking, it may return ns_base_stream_would_block when written to.
...the caller can use this interface to request an asynchronous notification when the stream becomes writable or closed (via the asyncwait() method).
...sewithstatus(in nsresult reason); constants constant value description wait_closure_only (1<<0) if passed to asyncwait(), this flag overrides the default behavior, causing the onoutputstreamready notification to be suppressed until the stream becomes closed (either as a result of closewithstatus()/close being called on the stream or possibly due to some error in the underlying stream).
...And 7 more matches
nsIChannelEventSink
plement this interface to gain control over various channel events, such as redirects.
... inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) channels will try to get this interface from a channel's notificationcallbacks or, if not available there, from the loadgroup's notificationcallbacks.
...ast changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) channels will try to get this interface from a channel's notificationcallbacks or, if not available there, from the loadgroup's notificationcallbacks.
...And 7 more matches
nsINavHistoryResultObserver
ates itself according to bookmark and history system events.
...richanged(in nsinavhistoryresultnode anode, in autf8string anewuri); void sortingchanged(in unsigned short sortingmode); attributes attribute type description result nsinavhistoryresult the nsinavhistoryresult this observer monitors.
...mance degradation (for example, if updating a view for each update).
...And 7 more matches
nsITransaction
editor/txmgr/idl/nsitransaction.idlscriptable please add a summary to this article.
...is article.
...); void undotransaction(); attributes attribute type description istransient boolean the transaction's transient state.
...And 7 more matches
nsIXPConnect
js/src/xpconnect/idl/nsixpconnect.idlnot scriptable provides the xpconnect service.
...nce gecko 1.9 pendingexception nsiexception constants constant value description init_js_standard_classes 1 << 0 flag_system_global_object 1 << 1 omit_components_object 1 << 2 xpc_xow_clearscope 1 tells updatexows() to clear the scope of all of the xows it finds.
...ext.
...And 7 more matches
nsIXmlRpcClient
warning: this interface was removed from firefox 3 and is no longer available.
...rts method 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.
... server was unreachable or not yet contacted.
...And 7 more matches
Working with data
tents.tostring(); // outputs: `"2"` source of this, and to see wrong ways of casting, and explanation on why this is the right way to cast an array (explained by matching constructor's) see here: githubgist :: _ff-addon-tutorial-jsctypes_castingarrays data and pointers a cdata object represents a c value in memory.
...means certain operations might not work the way you expect.
...can do so like this: var t = ctypes.int32_t(5); if (t.tostring() == "ctypes.int32_t(5)") { // it's 5 } working with strings c functions expect strings to be arrays of characters, with the end of the string indicated by a null character.
...And 7 more matches
AudioWorkletProcessor - Web APIs
u can perform a custom initialization procedures — see constructor page for details.
...tor page for details.
...a new instance of an audioworkletprocessor object.
...And 7 more matches
Document - Web APIs
Web › API › Document
t x="266" y="1" width="80" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="306" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">document</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} the document interface describes the common properties and methods for any kind of document.
...coding as determined by the xml declaration.
...cument.creatensresolver() creates an xpathnsresolver object.
...And 7 more matches
Using files from web applications - Web APIs
x.tofixed(3) + " " + amultiples[nmultiple] + " (" + nbytes + " bytes)"; } // end of optional code document.getelementbyid("filenum").innerhtml = nfiles; document.getelementbyid("filesize").innerhtml = soutput; } document.getelementbyid("uploadinput").addeventlistener("change", updatesize, false); </script> </body> </html> using hidden file input elements using the click() method you can hide the admittedly ugly file <input> element and present your own interface for opening the file picker and displaying which file or files the user has selected.
...put").addeventlistener("change", updatesize, false); </script> </body> </html> using hidden file input elements using the click() method you can hide the admittedly ugly file <input> element and present your own interface for opening the file picker and displaying which file or files the user has selected.
...ument.getelementbyid("fileselect"), fileelem = document.getelementbyid("fileelem"); fileselect.addeventlistener("click", function (e) { if (fileelem) { fileelem.click(); } }, false); you can style the new button for opening the file picker as you wish.
...And 7 more matches
FileHandle API - Web APIs
emporary file" that exists only while you hold the filehandle instance.
...t this.
... content'); writing.onsuccess = function () { console.log('writing operation successful'); } writing.onerror = function () { console.log('something goes wrong in the writing process: ' + this.error); } reading it's possible to directly write the content of a lockedfile object without using an intermediate file object and a filereader object.
...And 7 more matches
HTML Drag and Drop API - Web APIs
faces are dragevent, datatransfer, datatransferitem and datatransferitemlist.
...me gecko-specific extensions to the datatransfer object, but those extensions will only work on firefox.) each datatransfer object contains an items property, which is a list of datatransferitem objects.
...ct contains an items property, which is a list of datatransferitem objects.
...And 7 more matches
Establishing a connection: The WebRTC perfect negotiation pattern - Web APIs
.
...es the candidate member of this ice event and passes it through to the signaling channel's send() method to be sent over the signaling server to the remote peer.
... to accept the offer, we set the remote description to the incoming offer by calling setremotedescription().
...And 7 more matches
Signaling and video calling - Web APIs
the specified username, then sends the message to that user.
...ew).
...her peer by sending a json message of type "new-ice-candidate" over the signaling server to the remote peer.
...And 7 more matches
Viewpoints and viewers: Simulating cameras in WebXR - Web APIs
used: when rendering animation—whether for filmmaking or for use within the context of a presentation or game—the virtual camera is used just like a real-world film camera.
...te a sense of anxiety, surprise, or tension.
...ing a setting or providing a sense of scope in a vast space or on a vast object.
...And 7 more matches
Advanced techniques: Creating and sequencing audio - Web APIs
you hear when you dial up, we're going to create an oscillator to generate the sound.
...e standard waves that come by default, we're going to create our own using the periodicwave interface and values set in a wavetable.
...created: function playsweep() { let osc = audioctx.createoscillator(); osc.setperiodicwave(wave); osc.frequency.value = 440; osc.connect(audioctx.destination); osc.start(); osc.stop(audioctx.currenttime + 1); } controlling amplitude this is great, but wouldn't it be nice if we had an amplitude envelope to go with it?
...And 7 more matches
Window - Web APIs
Web › API › Window
place to include these items that need to be globally available.
...rformance.
...ad only returns the orientation in degrees (in 90 degree increments) of the viewport relative to the device's natural orientation.
...And 7 more matches
CSS Box Alignment - CSS: Cascading Style Sheets
the css box alignment module specifies css features that relate to the alignment of boxes in the various css box layout models: block layout, table layout, flex layout, and grid layout.
... the css box alignment module specifies css features that relate to the alignment of boxes in the various css box layout models: block layout, table layout, flex layout, and grid layout.
...s that relate to the alignment of boxes in the various css box layout models: block layout, table layout, flex layout, and grid layout.
...And 7 more matches
<body>: The Document Body element - HTML: Hypertext Markup Language
Web › HTML › Element › body
mplicit aria role document permitted aria roles no role permitted dom interface htmlbodyelement the <body> element exposes the htmlbodyelement interface.
...e htmlbodyelement interface.
... this element includes the global attributes.
...And 7 more matches
<input type="submit"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › submit
type submit are rendered as buttons.
...t"> additional attributes in addition to the attributes shared by all <input> elements, submit button inputs support the following attributes: attribute description formaction the url to which to submit the form's data; overrides the form's action attribute, if any formenctype a string specifying the encoding type to use for the form data formmethod the http method (get or post) to use when submitting the form.
...browsing context into which to load the response returned by the server after submitting the form formaction a string indicating the url to which to submit the data.
...And 7 more matches
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
Web › HTML › Element › input
type or types description accept file hint for expected file type in file upload controls alt image alt attribute for the image type.
... name of form field to use for sending the element's directionality in form submission disabled all whether the form control is disabled form all associates the control with a form element formaction image, submit url to use for form submission formenctype image, submit form data set encoding type to use for form submission formmethod image, submit http method to use for form submission formnovalidate image, submit bypass form control validation for form submission formtarget image, submit browsing context for form submission height image same as height attribute for <img>; vertical dimension list almost all value of the id attribute of the <datalist> of autocom...
...uttons is on.
...And 7 more matches
HTTP response status codes - HTTP
Web › HTTP › Status
this code indicates that the server has received and is processing the request, but no response is available yet.
... response must be accessed by a proxy.
...ger used; it is just reserved.
...And 7 more matches
Iterators and generators - JavaScript
nd provide a mechanism for customizing the behavior of for...of loops.
...rovide a powerful alternative: they allow you to define an iterative algorithm by writing a single function whose execution is not continuous.
...{ iterationcount++; yield i; } return iterationcount; } iterables an object is iterable if it defines its iteration behavior, such as what values are looped over in a for...of construct.
...And 7 more matches
Object.prototype.toString() - JavaScript
the tostring() method returns a string representing the object.
...ring() method returns a string representing the object.
...ject, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...And 7 more matches
Iteration protocols - JavaScript
otocol.
...ect (or one of the objects up its prototype chain) must have a property with a @@iterator key which is available via constant symbol.iterator: property value [symbol.iterator] a zero-argument function that returns an object, conforming to the iterator protocol.
... [symbol.iterator] a zero-argument function that returns an object, conforming to the iterator protocol.
...And 7 more matches
Codecs used by WebRTC - Web media technologies
their sdp, identifying the sub-profile used by the codec.
...nd chrome support it.
...have different availability among the potential codecs—and may have multiple profiles or levels supported for a given codec—the first step when configuring codecs for an rtcpeerconnection is to get the list of available codecs.
...And 7 more matches
Introduction to using XPath in JavaScript - XPath
this document describes the interface for using xpath in javascript internally, in extensions, and from websites.
...hich means that xpath expressions can be run against both html and xml documents.
...sed.
...And 7 more matches
lang/functional - Archive of obsolete content
functional helper methods.
... functional helper methods.
... functional helper methods.
...And 6 more matches
Chapter 6: Firefox extensions and XUL applications - Archive of obsolete content
t about console 2 and docked-js console?
...} } implement the addition operation create test case begin by creating the test case.
...ating the test case.
...And 6 more matches
Basics - Archive of obsolete content
note: this page documents the jetpack prototype, which is no longer under active development.
...ote: this page documents the jetpack prototype, which is no longer under active development.
...otype, which is no longer under active development.
...And 6 more matches
Space Manager Detailed Design - Archive of obsolete content
*/ nsresult offsetregion(nsiframe* aframe, nscoord dx, nscoord dy); /** * remove the region associated with afrane.
...llocations and the performance penalties associated with it.
...the #define ns_space_manager_cache_size is used to control the number of space manager instances that can be present in the recycler, currently 4.
...And 6 more matches
execute - Archive of obsolete content
summary launches a file inside the install archive.
... summary launches a file inside the install archive.
...extract and execute.
...And 6 more matches
Learn XPI Installer Scripting by Example - Archive of obsolete content
ines 24 to 41; the registration part of the main installation block is on lines 42-58; and the execution at the end of the main block is on lines 59 to 71.
... choose not to register the installed software or do the verifications at the front end of the installation, then at a minimum, the install scripts mustinitialize, add the files to be installed, and execute.
...ustinitialize, add the files to be installed, and execute.
...And 6 more matches
Adding Properties to XBL-defined Elements - Archive of obsolete content
« previousnext » next, we'll find out how to add custom properties to xbl-defined elements.
...lements.
...t way, all you need is to get a reference to the element (using document.getelementbyid or a similar function) and then get or set the additional properties and call the methods on it.
...And 6 more matches
Focus and Selection - Archive of obsolete content
mentbyid("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.
...extbox 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.
...ername"/> </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.
...And 6 more matches
XBL Example - Archive of obsolete content
edindex'));" onset="return this.setpage(val);"/> the page property gets its value by looking at the first element of the anonymous array.
...ode property to get to it.
...rentnode returns the parent of the button which is the horizontal box, the second its parent, the vertical box, and finally, its parent which is the outer box.
...And 6 more matches
richlistbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] this element is used to create a list of listitems (richlistitems), similar to a listbox, but is designed to be used when the items do not contain simple text content.
...e selection.
...ng values: cell individual cells can be selected text rows are selected; however, the selection highlight appears only over the text of the primary column.
...And 6 more matches
NPClass - Archive of obsolete content
« gecko plugin api reference « scripting plugins summary npclass is a structure that holds a set of pointers to functions that make up the behavior of an instance of an npclass (i.e.
... « gecko plugin api reference « scripting plugins summary npclass is a structure that holds a set of pointers to functions that make up the behavior of an instance of an npclass (i.e.
...created.
...And 6 more matches
Processing XML with E4X - Archive of obsolete content
s to make comparisons of retrieved attributes with other strings, it is necessary to convert the attribute first, even though the attribute may be converted to a string when used in other contexts (such as insertion into a textbox).
...s something with more than one matching element, you get back an xmllist: alert(person.likes.language.length()); // 2 as with the dom, * can be used to access all child nodes: alert(person.likes.*.length()); // 4 while the .
... all child nodes: alert(person.likes.*.length()); // 4 while the .
...And 6 more matches
XForms Custom Controls - Archive of obsolete content
inding.
...with the data type of the instance node that your control is bound to.
... you an idea of what we are talking about, it could look something like this: <content> <xf:input xbl:inherits="ref=ref1" anonid="ref1"/> <xf:input xbl:inherits="ref=ref2" anonid="ref2"/> </content> <implementation> <method name="refresh"> <body> // here we should refresh custom control.
...And 6 more matches
Bounding volume collision detection with THREE.js - Game development
unding boxes and spheres using the three.js library.
....boundingsphere.radius); unfortunately, there is no equivalent of box3.setfromobject for sphere instances.
...ions or change the position of the mesh, we need to manually update the bounding sphere.
...And 6 more matches
2D maze game with device orientation - Game development
basic content in the <head> section: charset, title, css styling and the inclusion of the javascript files.
... the canvas in.
...y> tag: <canvas id='game' width='320' height='480'></canvas> the important thing to remember is that the framework is setting up helpful methods to speed up a lot of things like image manipulation or assets management, which would be a lot harder to do manually.
...And 6 more matches
Idempotent - MDN Web Docs Glossary: Definitions of Web-related terms
an http method is idempotent if an identical request can be made once or several times in a row with the same effect while leaving the server in the same state.
... an http method is idempotent if an identical request can be made once or several times in a row with the same effect while leaving the server in the same state.
... an http method is idempotent if an identical request can be made once or several times in a row with the same effect while leaving the server in the same state.
...And 6 more matches
Responsive design - Learn web development
ile devices became more powerful and able to display full websites, this was frustrating to mobile users who found themselves trapped in the site's mobile version and unable to access information they knew was on the full-featured desktop version of the site.
...hemselves trapped in the site's mobile version and unable to access information they knew was on the full-featured desktop version of the site.
...ogy — it is a term used to describe an approach to web design or a set of best practices, used to create a layout that can respond to the device being used to view the content.
...And 6 more matches
Introduction to web APIs - Learn web development
examples include jquery, mootools and react.
...o apis work?
...miliar with how objects work, you should go back and work through our javascript objects module before continuing.
...And 6 more matches
AddonManager
the addonmanager object is the global api used to access information about add-ons installed in the application and to manipulate them.
... the addonmanager object is the global api used to access information about add-ons installed in the application and to manipulate them.
... the addonmanager object is the global api used to access information about add-ons installed in the application and to manipulate them.
...And 6 more matches
OS.File for the main thread
c = path; example: append to file this example shows how to use open, write, and close to append to a file.
...', valopen); var txttoappend = 'append some text \n'; var txtencoded = new textencoder().encode(txttoappend); valopen.write(txtencoded).then(valwrite => { console.log('valwrite:', valwrite); valopen.close().then(valclose => { console.log('valclose:', valclose); console.log('successfully appended'); }); }); }); global object os.file method overview promise<file> open(in string path, [optional] in object mode, [optional] in object options); promise<object> openunique(in string path, [optional] in object options); promise<void> copy(in string sourcepath, in string destpath, [optional] in object options); promise<bool> exists(in string path); promise<string> getcurrentdirectory(); ...
...path, in date|number accessdate, in date|number modificationdate); promise<void> setpermissions(in string path, in object options ); promise<file.info> stat(in string path, [optional] in object options); promise<void> unixsymlink(in string targetpath, in string createpath); promise<void> writeatomic(in string path, in arrayview data, in object options); methods os.file.open() use method os.file.open() to open a file.
...And 6 more matches
XPCOMUtils.jsm
the xpcomutils.jsm javascript code module offers utility routines for javascript components loaded by the javascript component loader.
...t xpcomutils.jsm, as explained previously.
...nsiobserver, components.interfaces.nsimyinterface, "nsifoo", "nsibar"], flags: ci.nsiclassinfo.singleton}), // ...component implementation...
...And 6 more matches
Memory reporting
keep about:memory's "heap-unclassified" number low.
...ions (yes, functions) should look like for this class.
...; } 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.
...And 6 more matches
JS::CompileOptions
nkey 31 js::compileoptions(jscontext *cx, jsversion version = jsversion_unknown); name type description cx jscontext * pointer to a js context from which to derive runtime information.
...ompileoptions(jscontext *cx, jsversion version = jsversion_unknown); name type description cx jscontext * pointer to a js context from which to derive runtime information.
... description cx jscontext * pointer to a js context from which to derive runtime information.
...And 6 more matches
Language bindings
tween a particular language and xpcom to provide access to xpcom objects from that language, and to let modules written in that language be used as xpcom objects by all other languages for which there are xpcom bindings.
...nts.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 component manager service.
...account for any native (c++) xpcom objects hanging off javascript objects though.
...And 6 more matches
IAccessibleHyperlink
ink associated with a single substring of text or single non-text object.
...h area is associated with multiple actions, for example an image map of smart tags.
...ccessible hyperlinks.
...And 6 more matches
nsIBrowserSearchService
o 1.8 inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) implemented by: @mozilla.org/browser/search-service;1.
... slower, synchronous, initialization.
...earchservice, you should make sure that this code is executed from the callback to init().
...And 6 more matches
nsIClipboard
widget/nsiclipboard.idlscriptable this interface supports basic clipboard operations such as: setting, retrieving, emptying, matching and supporting clipboard data.
...s peculiar to the x windows system, where it refers to the primary selection, which is the one that simple mouse selection and middle-click paste operations are using.
...em, where it refers to the primary selection, which is the one that simple mouse selection and middle-click paste operations are using.
...And 6 more matches
nsIComponentManager
xpcom/components/nsicomponentmanager.idlscriptable this interface provides methods to access factory objects and instantiate instances of classes.
... xpcom/components/nsicomponentmanager.idlscriptable this interface provides methods to access factory objects and instantiate instances of classes.
...delegate, in nsiidref aiid, [iid_is(aiid),retval] out nsqiresult result); void getclassobject(in nscidref aclass, in nsiidref aiid, [iid_is(aiid),retval] out nsqiresult result); void getclassobjectbycontractid(in string acontractid, in nsiidref aiid, [iid_is(aiid),retval] out nsqiresult result); void removebootstrappedmanifestlocation(in nsilocalfile alocation); methods addbootstrappedmanifestlocation() loads a "bootstrapped" chrome.manifest file from the specified directory or xpi file.
...And 6 more matches
nsIEditor
« xpcom api reference editor/nsieditor.idlscriptable provides methods and attributes used when editing page content.
... « xpcom api reference editor/nsieditor.idlscriptable provides methods and attributes used when editing page content.
...attrvalue, 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 amodcount); void incrementmodificationcount(in long amodcount); transaction methods void dotransaction(in nsitransaction txn); void enableundo(in boolean enable); void undo(in unsigned long count); void canundo(out bo...
...And 6 more matches
nsIEffectiveTLDService
use: var etldservice = components.classes["@mozilla.org/network/effective-tld-service;1"] .getservice(components.interfaces.nsieffectivetldservice); the name "effective tld service" is a historical one; today, the items this interface manipulates are called public suffixes, and the list of them is the public suffix list, or psl.
...mail.intranet" actually a domain name?
... totally up to date (because it's not dynamically updated data).
...And 6 more matches
nsIIOService
netwerk/base/public/nsiioservice.idlscriptable this interface provides a set of url parsing utility functions.
...pendent way (for example newuri() inspects the scheme in order to delegate creation of the new uri to the appropriate protocol handler).
...tribute type description offline boolean returns true if networking is in "offline" mode.
...And 6 more matches
nsIMsgMessageService
objects that implements nsimsgmessageservice give the user top level routines related to messages like copying, displaying, attachment's manipulation, printing, streaming the message content to eml format string, etc.
... aurllistener, in boolean aconvertdata, in string aadditionalheader); nsiuri streamheaders(in string amessageuri, in nsistreamlistener aconsumer, in nsiurllistener aurllistener [optional] in boolean alocalonly); boolean ismsginmemcache(in nsiuri aurl, in nsimsgfolder afolder, out nsicacheentrydescriptor acacheentry); nsimsgdbhdr messageuritomsghdr(in string uri); methods copymessage() pass in the uri for the message you want to have copied.
... the end of the file.
...And 6 more matches
nsIProcess
xpcom/threads/nsiprocess.idlscriptable this interface represents an executable process.
...g the name of the process.
... x, see bug 307463 for details.
...And 6 more matches
nsIScriptableIO
object can be used in an extension or chrome code by referring to the global io object.
...onal] in astring acharset, [optional] in astring areplacechar, [optional] in unsigned long abuffersize); nsisupports newoutputstream(in nsivariant abase, in astring amode, [optional] in astring acharset, [optional] in astring areplacechar, [optional] in unsigned long abuffersize, [optional] in unsigned long apermissions); nsiuri newuri(in nsivariant auri); methods getfile() retrieves a reference to a file or directory on disk.
... nsisupports newoutputstream(in nsivariant abase, in astring amode, [optional] in astring acharset, [optional] in astring areplacechar, [optional] in unsigned long abuffersize, [optional] in unsigned long apermissions); nsiuri newuri(in nsivariant auri); methods getfile() retrieves a reference to a file or directory on disk.
...And 6 more matches
nsISupports proxies
ed because javascript code can no longer run on arbitrary threads, and compiled code can use compiled runnable to achieve the same effect in a much simpler manner.
...ions.
...rface and its documentation.
...And 6 more matches
CSS Typed Object Model API - Web APIs
gned to css properties while enabling maintainable code that is both more understand and easier to write.
... the typed om api.
...cssstylevalue interface sets all occurences of a specific css property to the specified valueand returns an array of cssstylevalue objects, each containing one of the supplied values.
...And 6 more matches
Pixel manipulation with canvas - Web APIs
st colorindices = getcolorindicesforcoord(xcoord, ycoord, canvaswidth); const [redindex, greenindex, blueindex, alphaindex] = colorindices; you may also access the size of the pixel array in bytes by reading the uint8clampedarray.length attribute: var numbytes = imagedata.data.length; creating an imagedata object to create a new, blank imagedata object, you should use the createimagedata() method.
..., canvaswidth); const [redindex, greenindex, blueindex, alphaindex] = colorindices; you may also access the size of the pixel array in bytes by reading the uint8clampedarray.length attribute: var numbytes = imagedata.data.length; creating an imagedata object to create a new, blank imagedata object, you should use the createimagedata() method.
... imagedata object with the same dimensions as the object specified by anotherimagedata.
...And 6 more matches
Examples of web and XML development using the DOM - Web APIs
le 5: event propagation this example demonstrates how events fire and are handled in the dom in a very simple way.
...nt listener handles the event by executing the function stopevent, which changes the value in the bottom cell of the table.
...n load() { elem = document.getelementbyid("tbl1"); elem.addeventlistener("click", stopevent, false); } </script> </head> <body onload="load();"> <table id="t-daddy" onclick="alert('hi');"> <tr id="tbl1"> <td id="c1">one</td> </tr> <tr> <td id="c2">two</td> </tr> </table> </body> </html> example 6: getcomputedstyle this example demonstrates how the window.getcomputedstyle method can be used to get the styles of an element that are not set using the style attribute or with javascript (e.g., elt.style.backgroundcolor="rgb(173, 216, 230)").
...And 6 more matches
HTMLAudioElement - Web APIs
the htmlaudioelement interface provides access to the properties of <audio> elements, as well as methods to manipulate them.
... the htmlaudioelement interface provides access to the properties of <audio> elements, as well as methods to manipulate them.
...eline="middle">htmlaudioelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor audio() creates and returns a new htmlaudioelement object, optionally starting the process of loading an audio file into it if the file url is given.
...And 6 more matches
HTMLInputElement.stepUp() - Web APIs
the htmlinputelement.stepup() method increments the value of a numeric type of <input> element by the value of the step attribute, or the default step value if the step attribute is not explicitly set.
... the htmlinputelement.stepup() method increments the value of a numeric type of <input> element by the value of the step attribute, or the default step value if the step attribute is not explicitly set.
...0 second (15 minute) increments: <input type="time" min="09:00" step="900"> datetime-local 1 (day) same day of the week: <input type="datetime-local" min="019-12-25t19:30" step="7"> number 1 0.1 increments <input type="number" min="0" step="0.1" max="10"> range 1 increments by 2: <input type="range" min="0" step="2" max="10"> the method, when invoked, changes the form control's value by the value given in the step attribute, multiplied by the parameter, within the constraints set on the form control.
...And 6 more matches
Working with the History API - Web APIs
html5 introduced the pushstate() and replacestate() methods for add and modifying history entries, respectively.
... html5 introduced the pushstate() and replacestate() methods for add and modifying history entries, respectively.
...es, respectively.
...And 6 more matches
IDBObjectStoreSync - Web APIs
important: the synchronous version of the indexeddb api was originally intended for use only with web workers, and was eventually removed from the spec because its need was questionable.
...ore.
... any read operations must access a snapshot view of the data, which cannot change once it is created.
...And 6 more matches
IDBTransactionSync - Web APIs
entually removed from the spec because its need was questionable.
... raises (idbdatabaseexception); idbobjectstoresync objectstore(in domstring name) raises (idbdatabaseexception); attributes attribute type description db idbdatabasesync the database connection that this transaction is associated with.
...n); idbobjectstoresync objectstore(in domstring name) raises (idbdatabaseexception); attributes attribute type description db idbdatabasesync the database connection that this transaction is associated with.
...And 6 more matches
LocalFileSystem - Web APIs
the localfilesystem interface of the file system api gives you access to a sandboxed file system.
... the localfilesystem interface of the file system api gives you access to a sandboxed file system.
...ile system.
...And 6 more matches
Node - Web APIs
Web › API › Node
pal obsolete since gecko 46 a nsiprincipal representing the node principal.
...e node principal.
... if not).
...And 6 more matches
Pointer Lock API - Web APIs
the pointer lock api (formerly called mouse lock api) provides input methods based on the movement of the mouse over time (i.e., deltas), not just the absolute position of the mouse cursor in the viewport.
...ed, but it stops when the mouse button is released.
...pture in the following ways: it is persistent: pointer lock does not release the mouse until an explicit api call is made or the user uses a specific release gesture.
...And 6 more matches
SVGGradientElement - Web APIs
h="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.
... 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.
...</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.
...And 6 more matches
SVGTextPathElement - Web APIs
textpathelement" target="_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.
...ine="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.
...ill: #0095dd; pointer-events: all;} constants method types name value description textpath_methodtype_unknown 0 the type is not one of predefined types.
...And 6 more matches
User Timing API - Web APIs
e "mark" event type and the "measure" event type.
...ication.
...timing methods that extend the performance interface.
...And 6 more matches
Introduction to the Real-time Transport Protocol (RTP) - Web APIs
instead, it only offers the information necessary to allow qos to be implemented elsewhere in the stack.
...ut incoming mediastreamtrack data.
...old" feature, wherein a participant in a call can click a button and turn off their microphone, begin sending music to the other peer instead, and stop accepting incoming audio.
...And 6 more matches
Spaces and reference spaces: Spatial tracking in WebXR - Web APIs
e is represented by an xrpose object, whose transform property is an xrrigidtransform defining the transform matrix that, applied to any coordinate, vector, or matrix in the original space, converts it to the target space.
... to the target space.
...pose interface.
...And 6 more matches
WorkerGlobalScope - Web APIs
scope.location read only returns the workerlocation associated with the worker.
...alled when the close event is raised.
...sed.
...And 6 more matches
Cross-browser audio basics - Developer guides
t the user has the appropriate plugin installed, and that the browser cannot guarantee the security aspects of code running on those plugin platforms.
...ocument.createelement('audio'); if (myaudio.canplaytype('audio/mpeg')) { myaudio.setattribute('src','audiofile.mp3'); } if (myaudio.canplaytype('audio/ogg')) { myaudio.setattribute('src','audiofile.ogg'); } alert('play'); myaudio.play(); alert('stop'); myaudio.pause(); alert('play from 5 seconds in'); myaudio.currenttime = 5; myaudio.play(); let's explore the available properties and methods in more detail.
...io.canplaytype('audio/mpeg')) { myaudio.setattribute('src','audiofile.mp3'); } if (myaudio.canplaytype('audio/ogg')) { myaudio.setattribute('src','audiofile.ogg'); } alert('play'); myaudio.play(); alert('stop'); myaudio.pause(); alert('play from 5 seconds in'); myaudio.currenttime = 5; myaudio.play(); let's explore the available properties and methods in more detail.
...And 6 more matches
<form> - HTML: Hypertext Markup Language
Web › HTML › Element › form
tes a hyperlink or annotation depending on the value, see the rel attribute for details.
...enctype is the mime type of the form submission.
...me type of the form submission.
...And 6 more matches
HTTP headers - HTTP
Web › HTTP › Headers
or a response.
...-level connection, and must not be retransmitted by proxies or cached.
... but easier to calculate in some environments.
...And 6 more matches
Meta programming - JavaScript
er object, in which a get trap is implemented.
... and traps the following table summarizes the available traps available to proxy objects.
...ference pages for detailed explanations and examples.
...And 6 more matches
Deprecated and obsolete features - JavaScript
not to test the regular expression against all possible matches in a string, or only against the first.
...xpression against all possible matches in a string, or only against the first.
...hes in a string, or only against the first.
...And 6 more matches
Functions - JavaScript
ally speaking, a function is a "subprogram" that can be called by code external (or internal in the case of recursion) to the function.
...st-class objects, because they can have properties and methods just like any other object.
...ction's arguments within the function by using the arguments object.
...And 6 more matches
Array.prototype.every() - JavaScript
the every() method tests whether all elements in the array pass the test implemented by the provided function.
...lement the current element being processed in the array.
...n.
...And 6 more matches
Array.prototype.push() - JavaScript
the push() method adds one or more elements to the end of an array and returns the new length of the array.
... this interactive example is stored in a github repository.
...ithub repository.
...And 6 more matches
Function.prototype.bind() - JavaScript
the bind() method creates a new function that, when called, has its this keyword set to the provided value, with a given sequence of arguments preceding any provided when the new function is called.
... [[boundtargetfunction]] the wrapped function object [[boundthis]] the value that is always passed as this value when calling the wrapped function.
...oundarguments]] a list of values whose elements are used as the first arguments to any call to the wrapped function.
...And 6 more matches
Object.defineProperty() - JavaScript
the static method object.defineproperty() defines a new property directly on an object, or modifies an existing property on an object, and returns the object.
...thub.com/mdn/interactive-examples and send us a pull request.
...operty to be defined or modified.
...And 6 more matches
String.prototype.substring() - JavaScript
the substring() method returns the part of the string between the start and end indexes, or to the end of the string.
...g.substring(1, 0)) // displays 'mozill' console.log(anystring.substring(0, 6)) // displays 'lla' console.log(anystring.substring(4)) console.log(anystring.substring(4, 7)) console.log(anystring.substring(7, 4)) // displays 'mozilla' console.log(anystring.substring(0, 7)) console.log(anystring.substring(0, 10)) using substring() with length property the following example uses the substring() method and length property to extract the last characters of a particular string.
...plays 'lla' console.log(anystring.substring(4)) console.log(anystring.substring(4, 7)) console.log(anystring.substring(7, 4)) // displays 'mozilla' console.log(anystring.substring(0, 7)) console.log(anystring.substring(0, 10)) using substring() with length property the following example uses the substring() method and length property to extract the last characters of a particular string.
...And 6 more matches
SVG documentation index - SVG: Scalable Vector Graphics
Web › SVG › Index
ignment coordinate for glyphs to achieve mathematical baseline alignment for horizontally oriented glyph layouts.
...ment for horizontally oriented glyph layouts.
...glyph layouts.
...And 6 more matches
Classes and Inheritance - Archive of obsolete content
all instances of that class.
...circle(2, 3, 5); circle instanceof circle; // => true circle.x; // => 2 circle.y; // => 3 circle.radius; // => 5 inheritance and prototypes there is a problem with the definition of circle in the previous section that we have glossed over thus far.
...otype of circle, but this is needlessly inefficient.
...And 5 more matches
Menu - Archive of obsolete content
Archive › Mozilla › Jetpack › UI › Menu
beforeshow is attached.
... hide() insertbefore(newitems, target) item(target) popupon(node) remove(target) replace(target, newitems) reset() set(items) show(anchornode) add(items) adds items to the menu.
...e(newitems, target) item(target) popupon(node) remove(target) replace(target, newitems) reset() set(items) show(anchornode) add(items) adds items to the menu.
...And 5 more matches
DOM Interfaces - Archive of obsolete content
the nsidomdocumentxbl interface the nsidomdocumentxbl interface contains methods for manipulating xbl bindings.
...ll dom documents.
...mdocumentxbl { nodelist getanonymousnodes(in element elt); element getanonymouselementbyattribute(in element elt, in domstring attrname, in domstring attrvalue); element getbindingparent(in node node); void loadbindingdocument(in domstring documenturl); }; methods getanonymousnodes the getanonymousnodes method retrieves the anonymous children of the specified element.
...And 5 more matches
PopupEvents - Archive of obsolete content
clicking elsewhere.
...n be applied to any type of popup.
...astchild.value = (new date()).tolocaleformat('%t')"> <label value="time:"/> <label id="time"/> </panel> <toolbarbutton label="show time" popup="time-panel"/> you can prevent a menu or popup from appearing by calling the preventdefault method of the event from within a popupshowing listener.
...And 5 more matches
toolbar - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a container which typically contains a row of buttons.
... external toolbars.
...oolbar class may be used to create a toolbar where its visibility depends on the toolbar flag when opening the window with the window interface's open() method loads the specified resource into the browsing context (window, <iframe> or tab) with the specified name.
...And 5 more matches
wizard - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] this element is used to construct a step-by-step wizard found in some applications to guide users through a task.
...ed theme and platform.
...go back to the beginning.
...And 5 more matches
Old Proxy API - Archive of obsolete content
lower-level languages like c++.
...mmer define most of the behavior of an object in javascript.
...o be defined, then an error is thrown.
...And 5 more matches
RDF in Mozilla FAQ - Archive of obsolete content
how to write a datasource, refer to the rdf datasource how-to.
...fix@mozilla.org/rdf/datasource;1?name=</code>.
...emote.refresh(false); // note that ds will load asynchronously, so assertions will not // be immediately available you may decide that you need to "manually" create an rdf/xml datasource if you want to force it to load synchronously.
...And 5 more matches
Supporting older browsers - Learn web development
previous overview: css layout next in this module, we recommend using flexbox and grid as the main layout methods for your designs.
... previous overview: css layout next in this module, we recommend using flexbox and grid as the main layout methods for your designs.
...browsers.
...And 5 more matches
CSS layout - Learn web development
ng on a computer/tablet/other device where you don't have the ability to create your own files, you could try out (most of) the code examples in an online coding program such as jsbin or glitch.
...on in previous modules — such as different display values — and introduce some of the concepts we'll be covering throughout this module.
...explains.
...And 5 more matches
Your first form - Learn web development
lementing our form html ok, let's have a go at creating the html for our form.
...t, like this: <form action="/my-handling-form-page" method="post"> </form> this element formally defines a form.
...e a <section> or <footer> element, but specifically for containing forms; it also supports some specific attributes to configure the way the form behaves.
...And 5 more matches
Third-party APIs - Learn web development
rel="stylesheet" href="https://api.mqcdn.com/sdk/mapquest-js/v1.3.2/mapquest.css"/> you can then start using the objects available in that library.
...e map information in, then creating a new map using the mapquest.map() method, which takes as its parameters the id of a <div> element you want to display the map in ('map'), and an options object containing the details of the particular map we want to display.
...l.mapquest.tilelayer('map') try changing 'map' to 'hybrid' to show a hybrid-style map.
...And 5 more matches
Interfacing with the Add-on Repository
ist/recommended/all/%max_results%/%os%/%version%?src=firefox"); prefsservice.savepreffile(null); } this fetches the value of the extensions.getaddons.recommended.url preference, and, if the preference doesn't exist or has no value, sets the value of the preference to the correct one for the amo site.
...earch term based query would be very similar.
...uest: addonrepository.retrieverecommendedaddons(10, this); this asks the repository to fetch up to 10 add-ons, using the object this as the target for callbacks.
...And 5 more matches
Deferred
a deferred object is returned by the obsolete promise.defer() method to provide a new promise along with methods to change its state.
...given below).
...ect) { dosomething(function cb(good) { if (good) resolve(); else reject(); }); }); method overview void resolve([optional] avalue); void reject([optional] areason); properties attribute type description promise read only promise a newly created promise, initially in the pending state.
...And 5 more matches
Promise.jsm
with the promise.
... be any value, including undefined, though it is generally an error object, like in exception handling.
...rence to an existing promise may be received by different means, for example as the return value of a call into an asynchronous api.
...And 5 more matches
Rhino JavaScript compiler
overview the javascript compiler translates javascript source into java class files.
... not available to compiled scripts when they are run outside the shell.
...re run outside the shell.
...And 5 more matches
JSAutoByteString
syntax jsautobytestring str; jsautobytestring(jscontext *cx, jsstring *str); name type description cx jscontext * the context in which to add the root.
...string str; jsautobytestring(jscontext *cx, jsstring *str); name type description cx jscontext * the context in which to add the root.
...z, or allocate string and copy the content of jslinearstring::latin1chars, and take the ownership of the string.
...And 5 more matches
JSClass
a jsclass describes a class of javascript objects.
...tystub (spidermonkey 31 or older) for default behavior.
...ich is equivalent to that defined by ecmascript in §8.12.8.
...And 5 more matches
Places Developer Guide
and unique integer identifiers for items in the bookmark system.
...itemid) - works for all types removefolder(aitemid) - works for folders and livemarks removefolderchildren(aitemid) - works for folders and livemarks observing bookmark events the nsinavbookmarkobserver interface is used for observing bookmarks activity such as item additions, changes and deletions.
...mat.
...And 5 more matches
Fun With XBL and XPConnect
rty on the widget called autocompletesession.
....
...aluates to an xp-connect object.
...And 5 more matches
Generic factory
in xpcom, a generic factory is a factory created using the facilities in xpcom/glue/nsigenericfactory.h.
...ple factory needs.
... create a new instance from the repository with a cid of ns_genericfactory_cid, and and iid of ns_igenericfactory_iid.
...And 5 more matches
nsIAuthModule
netwerk/base/public/nsiauthmodule.idlscriptable this interface is intended to be used as server and client authentication service.
...in boolean confidential, out voidptr aouttoken, out unsigned long aouttokenlength); constants constant value description req_default 0 default behavior.
... voidptr aouttoken, out unsigned long aouttokenlength); constants constant value description req_default 0 default behavior.
...And 5 more matches
nsIContentPrefService2
his interface doesn't impart any special significance to global preferences; they're simply name-value pairs that aren't associated with any particular domain.
...many methods of this interface accept a "domain" parameter.
...ull urls, like "http://example.com/foo/bar".
...And 5 more matches
nsIFocusManager
please add a summary to this article.
...ved(in nsidocument adocument, in nsicontent aelement); native code only!
...s_first 5 move focus to the first focusable element.
...And 5 more matches
nsILoginManager
inherits from: nsisupports last changed in gecko 1.9.2 (firefox 3.6 / thunderbird 3.1 / fennec 1.0) replaces nsipasswordmanager which was used in older versions of gecko.
...g ahost); void modifylogin(in nsilogininfo oldlogin, in nsisupports newlogindata); void removealllogins(); void removelogin(in nsilogininfo alogin); void searchlogins(out unsigned long count, in nsipropertybag matchdata, [retval, array, size_is(count)] out nsilogininfo logins); void setloginsavingenabled(in astring ahost, in boolean isenabled); methods addlogin() stores a new login in the login manager.
...d if the specified login doesn't explicitly specify them.
...And 5 more matches
nsIMicrosummaryService
toolkit/components/places/public/nsimicrosummaryservice.idlscriptable this interface provides methods for managing installed microsummaries, and the bookmarks they apply to.
...s from: nsisupports last changed in gecko 1.9 (firefox 3) warning: microsummary support was removed in gecko 6.0 (firefox 6.0 / thunderbird 6.0 / seamonkey 2.3) implemented by: @mozilla.org/microsummary/service;1 as a service: var microsummaryservice = components.classes["@mozilla.org/microsummary/service;1"] .getservice(components.interfaces.nsimicrosummaryservice); method overview void addgenerator(in nsiuri generatoruri); nsimicrosummary createmicrosummary(in nsiuri pageuri, in nsiuri generatoruri); nsisimpleenumerator getbookmarks(); nsimicrosummarygenerator getgenerator(in nsiuri generatoruri); nsimicrosummaryset getmicrosummaries(in nsiuri pageuri, in long long bookmarkid); nsimicrosummary getmicrosummary...
... nsimicrosummarygenerator installgenerator(in nsidomdocument xmldefinition); boolean ismicrosummary(in long long bookmarkid, in nsimicrosummary microsummary); nsimicrosummary refreshmicrosummary(in long long bookmarkid); void removemicrosummary(in long long bookmarkid); void setmicrosummary(in long long bookmarkid, in nsimicrosummary microsummary); methods addgenerator() install the microsummary generator from the resource at the supplied uri.
...And 5 more matches
nsIPlacesImportExportService
toolkit/components/places/nsiplacesimportexportservice.idlscriptable provides methods for exporting places data.
... toolkit/components/places/nsiplacesimportexportservice.idlscriptable provides methods for exporting places data.
... toolkit/components/places/nsiplacesimportexportservice.idlscriptable provides methods for exporting places data.
...And 5 more matches
nsIScriptableInputStream
xpcom/io/nsiscriptableinputstream.idlscriptable this interface provides scriptable access to a nsiinputstream instance.
...rface provides scriptable access to a nsiinputstream instance.
...ast changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview unsigned long available(); void close(); void init(in nsiinputstream ainputstream); string read(in unsigned long acount); acstring readbytes(in unsigned long acount); methods available() return the number of bytes currently available in the stream.
...And 5 more matches
nsITransactionListener
editor/txmgr/idl/nsitransactionlistener.idlscriptable this interface is implemented by an object that tracks transactions.
... in nsitransaction atransaction); boolean willendbatch(in nsitransactionmanager amanager); boolean willmerge(in nsitransactionmanager amanager, in nsitransaction atoptransaction, in nsitransaction atransactiontomerge); boolean willredo(in nsitransactionmanager amanager, in nsitransaction atransaction); boolean willundo(in nsitransactionmanager amanager, in nsitransaction atransaction); methods didbeginbatch() called after a nsitransactionmanager begins a batch.
...sitransaction atransaction); methods didbeginbatch() called after a nsitransactionmanager begins a batch.
...And 5 more matches
nsIZipWriter
not necessary to add directory entries in order to add file entries within them, some zip utilities may have problems with that, so it may be best to add the directory entries explicitly first.
... nsifile the zip file being written to.
...eing performed in the background queue, or false if background operations are not in progress.
...And 5 more matches
Setting HTTP request headers
your own http headers to any request the application makes, whether the request is initiated by your code explicitly opening an http channel, because of xmlhttprequest activity, an <img> element in content, or even from css.
...ders to any request the application makes, whether the request is initiated by your code explicitly opening an http channel, because of xmlhttprequest activity, an <img> element in content, or even from css.
...est is initiated by your code explicitly opening an http channel, because of xmlhttprequest activity, an <img> element in content, or even from css.
...And 5 more matches
XPCOM
dd-ons—like extensions and themes—that were created prior to firefox 1.5.
...on of its use.</t>how to build a binary xpcom component using visual studiothis is a simple tutorial for building xpcom objects in c++ using visual studio.
...t, and can be used from c, c++, and javascript.
...And 5 more matches
Using Objective-C from js-ctypes
ername("alloc"); sending a message once target class and selector are ready, you can send a message.
...er instance that has not yet been initialized.
..., reducing casting and making our code more efficient in future.
...And 5 more matches
StructType
re (that is, one created in c using #pragma pack).
...er, and array types, this should be a valid c type expression.
...pe expression.
...And 5 more matches
Scripting plugins - Plugins
alling the old plugin api call npp_getvalue with the new enumeration value that has been added to the nppvariable enumeration.
...riable enumeration.
...ions to this api might provide a mechanism for proxying calls from one thread to another to aid in using this api from other threads.
...And 5 more matches
URLs - Plugins
l; displays a page that javascript has updated using document.write.
...de hyperlinks to other documents or retrieve data from the network.
...eneral, if a url works in the location box of the navigator, it works as a target for npn_geturl, except for the _self target.
...And 5 more matches
Version, UI, and Status Information - Plugins
status line to notify the user of plug-in-related information.
...t the status message belongs to.
...s.
...And 5 more matches
Web Console remoting - Firefox Developer Tools
tivity", "fileactivity"] the web console actor does not start any listeners by default.
...native or not for the top level window object for the given tab - this is always true when navigation starts.
...his notification is sent only when your client is attached to the global console actor, it does not make sense for tab console actors.
...And 5 more matches
CSS - Web APIs
Web › API › CSS
the css interface holds useful css-related methods.
... the css interface holds useful css-related methods.
...objects with this interface are implemented: it contains only static methods and is therefore a utilitarian interface.
...And 5 more matches
Using the CSS Typed Object Model - Web APIs
d javascript objects to allow their performant manipulation.
...<dd> for each for (const [prop, val] of defaultcomputedstyles) { // properties const cssproperty = document.createelement('dt'); cssproperty.appendchild(document.createtextnode(prop)); styleslist.appendchild(cssproperty); // values const cssvalue = document.createelement('dd'); cssvalue.appendchild(document.createtextnode(val)); styleslist.appendchild(cssvalue); } the computedstylemap() method returns a stylepropertymapreadonly object containing the size property, which indicates how many properties are in the map.
...nd value respectively.
...And 5 more matches
CanvasRenderingContext2D.rect() - Web APIs
the canvasrenderingcontext2d.rect() method of the canvas 2d api adds a rectangle to the current path.
... the canvasrenderingcontext2d.rect() method of the canvas 2d api adds a rectangle to the current path.
... the canvasrenderingcontext2d.rect() method of the canvas 2d api adds a rectangle to the current path.
...And 5 more matches
Manipulating video using canvas - Web APIs
2.
...riginal video, while c2 is used to display the video after performing the chroma-keying effect; c2 is preloaded with the still image that will be used to replace the green background in the video.
...rming the chroma-keying effect; c2 is preloaded with the still image that will be used to replace the green background in the video.
...And 5 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.
...mpty string); see notes for details.
...e the name of the attribute to look for.
...And 5 more matches
FileSystemDirectoryEntry - Web APIs
the filesystemdirectoryentry interface of the file and directory entries api represents a directory in a file system.
... //directoryentry.isdirectory === true //directoryentry.name === 'documents' //directoryentry.fullpath === '/documents' }, onerror); } // opening a file system with temporary storage window.requestfilesystem(temporary, 1024*1024 /*1mb*/, onfs, onerror); properties this interface has no properties of its own, but inherits properties from its parent interface, filesystementry.
...== true //directoryentry.name === 'documents' //directoryentry.fullpath === '/documents' }, onerror); } // opening a file system with temporary storage window.requestfilesystem(temporary, 1024*1024 /*1mb*/, onfs, onerror); properties this interface has no properties of its own, but inherits properties from its parent interface, filesystementry.
...And 5 more matches
Introduction to the File and Directory Entries API - Web APIs
hronous api can be used in either the document or webworkers context, while the synchronous api is for use with webworkers only.
...er the document or webworkers context, while the synchronous api is for use with webworkers only.
....
...And 5 more matches
HTMLButtonElement - Web APIs
the htmlbuttonelement interface provides properties and methods (beyond the regular htmlelement interface it also has available to it by inheritance) for manipulating <button> elements.
...s information submitted by the button.
...pecified, this attribute overrides the action attribute of the <form> element that owns this element.
...And 5 more matches
Recommended Drag Types - Web APIs
the html drag and drop api supports dragging various types of data, including plain text, urls, html code, files, etc.
... = event.datatransfer; dt.setdata("text/html", "hello there, <strong>stranger</strong>"); dt.setdata("text/plain", "hello there, stranger"); dragging files a local file is dragged using the application/x-moz-file type with a data value that is an nsifile object.
...data("text/plain", "hello there, stranger"); dragging files a local file is dragged using the application/x-moz-file type with a data value that is an nsifile object.
...And 5 more matches
IDBIndexSync - Web APIs
important: the synchronous version of the indexeddb api was originally intended for use only with web workers, and was eventually removed from the spec because its need was questionable.
...adonly domstring the key path of this index.
...oolean if true, a key can have only one value within the index; if false, a key can have duplicate values.
...And 5 more matches
LocalFileSystemSync - Web APIs
the localfilesystemsync interface of the file system api gives you access to a sandboxed file system.
...ed by worker objects.
...12 and follows the w3c specifications (working draft) drafted on april 19, 2011.
...And 5 more matches
Capabilities, constraints, and settings - Web APIs
that aren't known will simply be ignored when you specify them—but if you have any that you can't get by without, you can start by checking to be sure they're on the list.
... sure they're on the list.
...rned by the track's getcapabilities() method; this object lists each supported constraint and the values or range of values which are supported.
...And 5 more matches
PaymentResponse.retry() - Web APIs
the paymentresponse interface's retry() method makes it possible to ask the user to retry a payment after an error occurs during processing.
...ror can be provided all by itself to provide only a generic error message, or in concert with the other properties to serve as an overview while other properties' values gude the user to errors in specific fields in the payment form.
...self to provide only a generic error message, or in concert with the other properties to serve as an overview while other properties' values gude the user to errors in specific fields in the payment form.
...And 5 more matches
Performance - Web APIs
bject containing latency-related performance information.
...n.
...vent listener to the oneventname property of this interface.
...And 5 more matches
Using Performance Timeline - Web APIs
to the performance interface to support client-side latency measurements within applications.
...specific performance events occur.
... function print_perf_entry(pe) { log("..name: " + pe.name + "; entrytype: " + pe.entrytype + "; starttime: " + pe.starttime + "; duration: " + pe.duration); } function print_performanceentries() { if (performance.mark === undefined) { log("...
...And 5 more matches
Performance Timeline - Web APIs
o define performance observer callbacks that are notified when specific performance events are added to the browser's performance timeline.
...e.
...e type of performance metric (for example, "mark").
...And 5 more matches
Range - Web APIs
Web › API › Range
the range interface represents a fragment of a document that can contain nodes and parts of text nodes.
... the range interface represents a fragment of a document that can contain nodes and parts of text nodes.
... the range interface represents a fragment of a document that can contain nodes and parts of text nodes.
...And 5 more matches
ReadableStream.ReadableStream() - Web APIs
the readablestream() constructor creates and returns a readable stream object from the given handlers.
...adablestream() constructor creates and returns a readable stream object from the given handlers.
... given handlers.
...And 5 more matches
Using the Screen Capture API - Web APIs
in this article, we will examine how to use the screen capture api and its getdisplaymedia() method to capture part or all of a screen for streaming, recording, or sharing during a webrtc conference session.
...isplaymediaoptions = { video: { cursor: "always" }, audio: false }; // set event listeners for the start and stop buttons startelem.addeventlistener("click", function(evt) { startcapture(); }, false); stopelem.addeventlistener("click", function(evt) { stopcapture(); }, false); logging content to make logging of errors and other issues easy, this example overrides certain console methods to output their messages to the <pre> block whose id is log.
...gelem.innerhtml += `<span class="error">${msg}</span><br>`; console.warn = msg => logelem.innerhtml += `<span class="warn">${msg}<span><br>`; console.info = msg => logelem.innerhtml += `<span class="info">${msg}</span><br>`; this allows us to use the familiar console.log(), console.error(), and so on to log information to the log box in the document.
...And 5 more matches
Selection - Web APIs
Web › API › Selection
ode is an element, this is the number of child nodes of the focusnode preceding the focus.
...nd any content located between them.
...s a string currently being represented by the selection object, i.e.
...And 5 more matches
WebGLRenderingContext.uniform[1234][fi][v]() - Web APIs
the webglrenderingcontext.uniform[1234][fi][v]() methods of the webgl api specify values of uniform variables.
... the webglrenderingcontext.uniform[1234][fi][v]() methods of the webgl api specify values of uniform variables.
...on, v0, v1, v2, v3); void gl.uniform4fv(location, value); void gl.uniform4i(location, v0, v1, v2, v3); void gl.uniform4iv(location, value); parameters location a webgluniformlocation object containing the location of the uniform attribute to modify.
...And 5 more matches
WebGL model view projection - Web APIs
(this.webglprogram); // save the attribute and uniform locations this.positionlocation = gl.getattriblocation(this.webglprogram, 'position'); this.colorlocation = gl.getuniformlocation(this.webglprogram, 'color'); // tell webgl to test the depth when drawing, so if a square is behind // another square it won't be drawn gl.enable(gl.depth_test); } webglbox draw now we'll create a method to draw a box on the screen.
...this point is to move the boxes around the clip space by varying the code to get a feel for how points get clipped and moved around in clip space.
...y frame of the animation a series of scale, rotation, and translation matrices move the data into the desired spot in clip space.
...And 5 more matches
Inputs and input sources - Web APIs
h buttons or other sources of selection actions.
... to control the positioning of a shield.
...rom which the target ray is emitted (such as the front tip of the controller, or the end of a gun barrel if the controller is being rendered as a gun, for example), and the space's orientation vector extends outward along the path of the target ray.
...And 5 more matches
Using the Web Animations API - Web APIs
ead uses the javascript keyword infinity.
...animation-timing-function is ease, in the web animations api the default easing is linear — which is what we want here.
... { color: '#431236', offset: 0.3}, { transform: 'rotate(360deg) translate3d(-50%, -50%, 0)', color: '#000' } ], 3000); controlling playback with play(), pause(), reverse(), and updateplaybackrate() while we can write css animations with the web animations api, where the api really comes in handy is manipulating the animation’s playback.
...And 5 more matches
XMLHttpRequest.sendAsBinary() - Web APIs
the obsolete xmlhttprequest method sendasbinary() is a variant of the send() method that sends binary data.
... the obsolete xmlhttprequest method sendasbinary() is a variant of the send() method that sends binary data.
... the obsolete xmlhttprequest method sendasbinary() is a variant of the send() method that sends binary data.
...And 5 more matches
XMLSerializer - Web APIs
the xmlserializer interface provides the serializetostring() method to construct an xml string representing a dom tree.
... the xmlserializer interface provides the serializetostring() method to construct an xml string representing a dom tree.
...ument into a string containing xml.
...And 5 more matches
XRReferenceSpace - Web APIs
rdware.
...g bounded reference spaces to protect the viewer for more on using boundaries to keep the user from colliding with obstacles both physical and virtual.
...with obstacles both physical and virtual.
...And 5 more matches
XRSession - Web APIs
Web › API › XRSession
the webxr device api's xrsession interface represents an ongoing xr session, providing methods and properties used to interact with and control the session.
... the webxr device api's xrsession interface represents an ongoing xr session, providing methods and properties used to interact with and control the session.
... the webxr device api's xrsession interface represents an ongoing xr session, providing methods and properties used to interact with and control the session.
...And 5 more matches
A typical HTTP session - HTTP
Web › HTTP › Session
websockets api, or similar protocols.
...quent lines represent an http header, giving the server information about what type of data is appropriate (e.g., what language, what mime types), or other data altering its behavior (e.g., not sending an answer if it is already cached).
..., this data block is presented empty, marking the end of the headers, allowing the server to process the request the moment it receives this empty line.
...And 5 more matches
Equality comparisons and sameness - JavaScript
se toprimitive(a) == b toprimitive(a) == b toprimitive(a) == tonumber(b) a === b in the above table, tonumber(a) attempts to convert its argument to a number before comparison.
...roperty will throw an exception when attempting to change an immutable property, but it does nothing if no actual change is requested.
...ecially regarding property descriptors, when it is desirable for your work to mirror some of the characteristics of object.defineproperty.
...And 5 more matches
Array.prototype.map() - JavaScript
the map() method creates a new array populated with the results of calling a provided function on every element in the calling array.
... if (!array.prototype.map) { array.prototype.map = function(callback/*, thisarg*/) { var t, a, k; if (this == null) { throw new typeerror('this is null or not defined'); } // 1.
...in constructor with that name and // len is the value of len.
...And 5 more matches
Array - JavaScript
the javascript array class is a global object that is used in the construction of arrays; which are high-level, list-like objects.
...element', 'this is the second element', 'this is the last element'] console.log(arr[0]) // logs 'this is 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).
...string by the javascript engine through an implicit tostring conversion.
...And 5 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.
...ble and non-enumerable properties found directly in a given object obj.
...ll cause a typeerror.
...And 5 more matches
Object.prototype.propertyIsEnumerable() - JavaScript
the propertyisenumerable() method returns a boolean indicating whether the specified property is enumerable and is the object's own property.
...o contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...And 5 more matches
Promise.prototype.then() - JavaScript
the then() method returns a promise.
...s value.
... function to the moment the stack is empty settimeout(() => { console.log(thenprom); }); // logs, in order: // promise {[[promisestatus]]: "pending", [[promisevalue]]: undefined} // "this gets called after the end of the main stack.
...And 5 more matches
Web Components
hese can then be reused multiple times as the basis of a custom element's structure.
...y, using the ecmascript 2015 class syntax (see classes for more information).
...r your new custom element using the customelementregistry.define() method, passing it the element name to be defined, the class or function in which its functionality is specified, and optionally, what element it inherits from.
...And 5 more matches
Using the Mozilla JavaScript interface to XSL Transformations - XSLT: Extensible Stylesheet Language Transformations
this document describes the javascript interface in mozilla 1.2 and up to the xslt processing engine (transformiix).
...r.importstylesheet(testtransform); } xsltprocessor.importstylesheet() requires one argument, a dom node.
...() or xsltprocessor.transformtofragment() methods to transform a document using the imported xslt stylesheet.
...And 5 more matches
Content Processes - Archive of obsolete content
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.
...e page itself in that they are provided with a messaging api that can be used to send messages back to the add-on script.
...can be used to send messages back to the add-on script.
...And 4 more matches
page-mod - Archive of obsolete content
age matches ruleset</h1>";' }); you can supply the content script(s) in one of two ways: as a string literal, or an array of string literals, assigned to the contentscript option, as above as separate files supplied in your add-on's "data" directory.
...pproved on amo.
...scripts to documents based on their url.
...And 4 more matches
panel - Archive of obsolete content
is shown.
...the panel: var mypanel = require("sdk/panel").panel({ width: 180, height: 180, contenturl: "https://en.wikipedia.org/w/index.php?title=jetpack&useformat=mobile" }); mypanel.show(); you can also load html that's been packaged with your add-on, and this is most probably how you will create dialogs.
..."./myfile.html" as an alias for self.data.url("myfile.html").
...And 4 more matches
event/target - Archive of obsolete content
= require("sdk/event/target"); let target = eventtarget(); for a convenience though optional options arguments may be used, in which case all the function properties with keys like: onmessage, onmyevent...
...on method, that can be used to register event listeners on them for the given event type: target.on('message', function onmessage(message) { // note: `this` pseudo variable is an event `target` unless // intentionally overridden via `.bind()`.
...isteners on them for the given event type: target.on('message', function onmessage(message) { // note: `this` pseudo variable is an event `target` unless // intentionally overridden via `.bind()`.
...And 4 more matches
system/unload - Archive of obsolete content
experimental register callbacks that are called when a module is unloaded.
... experimental register callbacks that are called when a module is unloaded.
... experimental register callbacks that are called when a module is unloaded.
...And 4 more matches
ui/button/action - Archive of obsolete content
ate) { console.log("you clicked '" + state.label + "'"); button.removelistener("click", firstclick); button.on("click", subsequentclicks); } function subsequentclicks(state) { console.log("you clicked '" + state.label + "' again"); } the listener is passed a state object that contains all the button's properties.
...lick events and its icon will appear disabled: updating state you can update all the button's properties except for its id.
...ate("window", { disabled: true }); } to fetch the state for a specific window or tab, call state(), passing in the window or tab you are interested in, and it will return the state: var labelforactivetab = button.state("tab").label; to learn more about this, see the api documentation for state().
...And 4 more matches
Canvas code snippets - Archive of obsolete content
an object with the rgba values of the pixel at position x and y of the canvas.
... canvas.
... function canvas2dcontext(canvas) { if (typeof canvas === 'string') { canvas = document.getelementbyid(canvas); } if (!(this instanceof canvas2dcontext)) { return new canvas2dcontext(canvas); } this.context = this.ctx = canvas.getcontext('2d'); if (!canvas2dcontext.prototype.arc) { canvas2dcontext.setup.call(this, this.ctx); } } canvas2dcontext.setup = function() { var methods = ['arc', 'arcto', 'beginpath', 'beziercurveto', 'clearrect', 'clip', 'closepath', 'drawimage', 'fill', 'fillrect', 'filltext', 'lineto', 'moveto', 'quadraticcurveto', 'rect', 'restore', 'rotate', 'save', 'scale', 'settransform', 'stroke', 'strokerect', 'stroketext', 'transform', 'translate']; var gettermethods = ['createpattern', 'drawfocusring', 'ispointinpath', 'measuretext', /...
...And 4 more matches
View Source for XUL Applications - Archive of obsolete content
orting gviewsourceutils xul applications wanting to show the source code for documents should import the viewsourceutils.js script instead of attempting to open the viewsource.xul window themselves: <script type="application/javascript" src="chrome://global/content/viewsourceutils.js"/> viewsourceutils.js exposes a gviewsourceutils global into the scope of the window that imports that script.
...to show the source code for documents should import the viewsourceutils.js script instead of attempting to open the viewsource.xul window themselves: <script type="application/javascript" src="chrome://global/content/viewsourceutils.js"/> viewsourceutils.js exposes a gviewsourceutils global into the scope of the window that imports that script.
...s script instead of attempting to open the viewsource.xul window themselves: <script type="application/javascript" src="chrome://global/content/viewsourceutils.js"/> viewsourceutils.js exposes a gviewsourceutils global into the scope of the window that imports that script.
...And 4 more matches
Chapter 3: Introduction to XUL—How to build a more intuitive UI - Archive of obsolete content
ions, please see the xul reference on mdc and the xul page in the mozilla wiki.
...om: fixme: attache the translated tarball - paul task !.
...er, save them as text files with .xul extensions and drag and drop them into the firefox browser window.
...And 4 more matches
Appendix C: Avoiding using eval in Add-ons - Archive of obsolete content
myaddon.doneaddtab(rv); } catch (ex) { /* might handle this */ } // return the original result return rv; }; })(); this is admittedly a bit more verbose, but at the same time it should be easier to understand.
... easier to understand.
...in, then use a flag indicating that, or similar.
...And 4 more matches
Updating addons broken by private browsing changes - Archive of obsolete content
sing private-browsing-cancel-vote private-browsing-change-granted private-browsing-transition-complete then your addon will require updating to correctly support the new per-window private browser feature in firefox 20 (and will require updating to work correctly in releases of firefox since the ones listed).
...uestion.
...he relevant window.
...And 4 more matches
Creating a Microsummary - Archive of obsolete content
ut.
...icrosummary for the spread firefox page, we only need to use a single <template> element that matches the root node of the document and is processed once: <?xml version="1.0" encoding="utf-8"?> <generator xmlns="http://www.mozilla.org/microsummaries/0.1" name="firefox download count"> <template> <transform xmlns="http://www.w3.org/1999/xsl/transform" version="1.0"> <output method="text"/> <template match="/"> </template> </transform> </template> </generator> including the download count to include the download count in the output of the xslt transform sheet, we need to add an xslt <value-of> element to the template whose select attribute contains an xpath expression that points to the node containing the count.
...download count node: id('download-count').
...And 4 more matches
Embedding Mozilla in a Java Application using JavaXPCOM - Archive of obsolete content
th xpcom objects in java is not that much different than doing so in c++.
... different than doing so in c++.
...ed } locationprovider is a class provided by the java application.
...And 4 more matches
Safely loading URIs - Archive of obsolete content
rowser or even crash the operating system in some cases.
...rnally by mozilla modules to communicate with each other.
...ts access to a window with such expanded privileges, it may be able to abuse it to gain access to those privileges itself.
...And 4 more matches
Using XPInstall to Install Plugins - Archive of obsolete content
ascript -- if you have a native installer (exe) that recognizes netscape gecko browsers, and you merely wish to wrap the exe installer in an xpi package for a streamlined delivery to the client, you can easily do so.
... the xpinstall api documentation.
...ect is available to the install script, it need not be mentioned in the install script (e.g.
...And 4 more matches
addDirectory - Archive of obsolete content
adddirectory unpacks an entire directory into a temporary location.
...ativelocalpath); 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 the pathname in the client version registry for the root directory of the files that are to be installed.this parameter can be an absolute pathname (beginning with a /) or a relative pathname, (not beginning with a slash).
... the pathname in the client version registry for the root directory of the files that are to be installed.this parameter can be an absolute pathname (beginning with a /) or a relative pathname, (not beginning with a slash).
...And 4 more matches
addFile - Archive of obsolete content
addfile unpacks a single subcomponent into a temporary location.
...pec, 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.
...n registry about the file.
...And 4 more matches
textbox (Toolkit autocomplete) - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] this element is created by setting the type attribute of the textbox to autocomplete.
...ller, crop, disableautocomplete, disablekeynavigation, disabled, editable, focused, forcecomplete, highlightnonmatches, ignoreblurwhilesearching, inputfield, label, maxlength, maxrows, minresultsforpopup, open, popup, popupopen, searchcount, searchparam, selectionend, selectionstart, showcommentcolumn, showimagecolumn,size, tabindex, tabscrolling, textlength, textvalue, timeout, type, value methods getsearchat, onsearchcomplete, ontextentered, ontextreverted, select, setselectionrange examples <textbox type="autocomplete" autocompletesearch="history"/> attributes accesskey type: character this should be set to a character that is used as a shortcut key.
...out type: integer gets and sets the value of the timeout attribute.
...And 4 more matches
Tree Widget Changes - Archive of obsolete content
write any extra code.
... you should now get the tree selection object from the view, not the box object, meaning use tree.view.selection instead of tree.treeboxobject.selection.
...x instead of tree.treeboxobject.getkeycolumnindex().
...And 4 more matches
menulist - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] an element that can be used for drop-down choice lists.
... in the xul tutorial.
... property, the selectedindex property, or changed by the user.
...And 4 more matches
menupopup - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a container used to display the contents of a popup menu.
...upopup will be displayed.
... <menupopup id="clipmenu"> <menuitem label="cut"/> <menuitem label="copy"/> <menuitem label="paste"/> </menupopup> <label value="right click for popup" context="clipmenu"/> attributes ignorekeys type: boolean if true, keyboard navigation between items in the popup is disabled.
...And 4 more matches
tree - Archive of obsolete content
Archive › Mozilla › XUL › tree
« xul reference home [ examples | attributes | properties | methods | related ] a container which can be used to hold a tabular or hierarchical set of rows of elements.
...nd clicking on a row.
...e obtained by this property.
...And 4 more matches
calICalendarView - Archive of obsolete content
summary an object implementing calicalendarview is generally intended to serve as a way of manipulating a set of dom nodes corresonding to a visual representation of calievent and calitodo objects.
...tations are particularly well suited to xbl.
...up of dom nodes, even non-anonymous xul nodes.
...And 4 more matches
nsIContentPolicy - Archive of obsolete content
r example), or if you want to stop or allow user-browsed urls.
...load() will never get this, because it does not represent content to be loaded (the actual load triggered by the refresh will go through shouldload() as expected).
... type_media 15 indicates a video or audio load.
...And 4 more matches
Sunbird Theme Tutorial - Archive of obsolete content
this tutorial is a step-by-step guide to making a theme for sunbird 0.3a1 and later versions.
...rome/global/ skin help testing chrome/help/ skin mozapps testing chrome/mozapps/ replacing <tt>testing</tt> with your theme's one-word internal name as before.
...help testing chrome/help/ skin mozapps testing chrome/mozapps/ replacing <tt>testing</tt> with your theme's one-word internal name as before.
...And 4 more matches
JSException - Archive of obsolete content
| +----netscape.javascript.jsexception description jsexception is an exception which is thrown when javascript code returns an error.
...ascript.jsexception description jsexception is an exception which is thrown when javascript code returns an error.
...ion is an exception which is thrown when javascript code returns an error.
...And 4 more matches
Client-side form validation - Learn web development
.) validating forms using javascript you must use javascript if you want to take control over the look and feel of native error messages or to deal with legacy browsers that do not support html's built-in form validation.
... :valid css pseudo-class; the :invalid css pseudo-class otherwise.
...if true, the element matches the :invalid css pseudo-class.
...And 4 more matches
Making asynchronous programming easier with async and await - Learn web development
ary — you have to create an async function to define a block of code in which you'll run your async code; as we said earlier, await only works inside of async functions.
...block of code in which you'll run your async code; as we said earlier, await only works inside of async functions.
...he next line.
...And 4 more matches
Drawing graphics - Learn web development
red, and just like any other image (the rendered canvas is just an image), the image could become pixellated/distorted.
...s background black to give you a first taste of the canvas api.
...h.
...And 4 more matches
A first splash into JavaScript - Learn web development
onse to which we can run blocks of code.
...now let's look at the loop in our number guessing game — the following can be found inside the resetgame() function: const resetparas = document.queryselectorall('.resultparas p'); for (let i = 0 ; i < resetparas.length ; i++) { resetparas[i].textcontent = ''; } this code creates a variable containing a list of all the paragraphs inside <div class="resultparas"> using the queryselectorall() method, then it loops through each one, removing the text content of each.
...ide <div class="resultparas"> using the queryselectorall() method, then it loops through each one, removing the text content of each.
...And 4 more matches
Silly story generator - Learn web development
n each case will be a random item out of each array it is called on).
...for example you can call the function and get it to return one random string out of insertx by writing randomvaluefromarray(insertx).
...rtz: — with the strings stored in xitem, yitem, and zitem.
...And 4 more matches
Multiprocess on Windows
ter the interceptor to achieve the best of both worlds, we wrote our own code to facilitate the safe handing off of an inbound rpc from the content process's mta to the content main thread's sta.
... to the content main thread's sta.
...hnology called the interceptor.
...And 4 more matches
source-editor.jsm
e code module into your javascript scope: components.utils.import("resource:///modules/source-editor.jsm"); warning: much of the functionality of the source editor is implemented by a secondary code module (by default, source-editor-orion.jsm).
...most recent save.
...b "devtools.editor.expandtab" a boolean value that indicates whether or not to automatically expand tabs out to a series of spaces.
...And 4 more matches
Necko Interfaces Overview
r various uri parts (eg.
....) per protocol implementation necko provides uri impl's for common uri formats (see nsstandardurl, nssimpleuri) nsichannel : nsirequest represents a logical connection to the resource identified by a nsiuri per protocol implementation single use (ie.
...uri impl's for common uri formats (see nsstandardurl, nssimpleuri) nsichannel : nsirequest represents a logical connection to the resource identified by a nsiuri per protocol implementation single use (ie.
...And 4 more matches
Property cache
ill finds the same property on x'.
...hape of x' will change.) o this object is x, perhaps a call object.
...-> o ----> o ^global ^x' (----> indicates proto as before; downward arrows ↓ indicate the parent relation) method guarantee — if at time t0 the object x has shape s; and x has an own property p that is a method property (transparently joined function); and at time t1 an object y has shape s; and no shape-regenerating gc occurred; then at time t1 y's own property p is the same method property.
...And 4 more matches
JS_ShutDown
free all resources used by the js engine, not associated with specific runtimes.
...ng resources allocated by spidermonkey, not associated with any jsruntime, jscontext, or other structure.
...cture.
...And 4 more matches
Aggregating the In-Memory Datasource
introduction you can use xpcom aggregation1 with the in-memory datasource.
... introduction you can use xpcom aggregation1 with the in-memory datasource.
...tasource.
...And 4 more matches
Bundling multiple binary components
ple).
... component uses "unfrozen" interfaces and those interfaces can change between gecko versions.
... between gecko versions.
...And 4 more matches
Interfacing with the XPCOM cycle collector
elves, typically by using an nscyclecollectingautorefcnt rather than a nsautorefcnt.
...more complicated structure than this picture.
...ple of their use in some more complicated classes such as content/base/src/nsgenericelement.cpp.
...And 4 more matches
IAccessibleText
other-licenses/ia2/accessibletext.idlnot scriptable a structure containing a substring and the start and end offsets in the enclosing string.
... other-licenses/ia2/accessibletext.idlnot scriptable a structure containing a substring and the start and end offsets in the enclosing string.
...lication.
...And 4 more matches
mozIStorageStatementWrapper
the mozistoragestatementwrapper interface is a storage statement wrapper.
... by name as properties, etc.
...nt that is wrapped.
...And 4 more matches
nsIAppShellService
pshellservice.idlscriptable provides the appshellservice.
...scription size_to_content -1 create a window, which will be initially invisible.
... tasks specfied by "general.startup.*" prefs.
...And 4 more matches
nsIAuthPromptCallback
netwerk/base/public/nsiauthpromptcallback.idlscriptable interface for callback methods for the asynchronous nsiauthprompt2 method.
... netwerk/base/public/nsiauthpromptcallback.idlscriptable interface for callback methods for the asynchronous nsiauthprompt2 method.
... netwerk/base/public/nsiauthpromptcallback.idlscriptable interface for callback methods for the asynchronous nsiauthprompt2 method.
...And 4 more matches
nsICacheService
inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) this interface is no longer supported and planned to be removed soon: use nsicachestorageservice instead.
... void evictentries(in nscachestoragepolicy storagepolicy); void init(); obsolete since gecko 1.8 void shutdown(); obsolete since gecko 1.8 void visitentries(in nsicachevisitor visitor); attributes attribute type description cacheiotarget nsieventtarget the event target for cache i/o operation notifications.
...scachestoragepolicy storagepolicy); void init(); obsolete since gecko 1.8 void shutdown(); obsolete since gecko 1.8 void visitentries(in nsicachevisitor visitor); attributes attribute type description cacheiotarget nsieventtarget the event target for cache i/o operation notifications.
...And 4 more matches
nsIContentViewer
er.idlscriptable handles displaying content.
...ntviewer.
...ewindow.
...And 4 more matches
nsICryptoHMAC
netwerk/base/public/nsicryptohmac.idlscriptable this interface provides hmac signature algorithms.
...view acstring finish(in prbool aascii); void init(in unsigned long aalgorithm, in nsikeyobject akeyobject); void reset(); void update([const, array, size_is(alen)] in octet adata, in unsigned long alen); void updatefromstream(in nsiinputstream astream, in unsigned long alen); constants hashing algorithms.
...softoken/pkcs11t.h and are switched to ckm_*_hmac constant.
...And 4 more matches
nsIDOMNSHTMLDocument
dom/interfaces/html/nsidomnshtmldocument.idlscriptable this interface defines methods and properties supported by gecko on the document object that are not part of dom level 2.
... dom/interfaces/html/nsidomnshtmldocument.idlscriptable this interface defines methods and properties supported by gecko on the document object that are not part of dom level 2.
... height long the height of the body element.
...And 4 more matches
nsIEventTarget
xpcom/threads/nsieventtarget.idlscriptable a target for events.
... xpcom/threads/nsieventtarget.idlscriptable a target for events.
... description dispatch_normal 0 this flag specifies the default mode of event dispatch, whereby the event is simply queued for later processing.
...And 4 more matches
nsINavHistoryQueryOptions
toolkit/components/places/nsinavhistoryservice.idlscriptable represents the global options for executing a query.
...xpandqueries boolean when set, allows items with "place:" uris to appear as containers, with the container's contents filled in from the stored query.
....
...And 4 more matches
nsINavHistoryResultViewer
duced gecko 1.9 obsolete 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.
....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.
...anode , in unsigned long anewindex); void sortingchanged(in unsigned short sortingmode); attributes attribute type description result nsinavhistoryresult the nsinavhistoryresult this viewer monitors.
...And 4 more matches
nsIPrefService
c/nsiprefservice.idlscriptable this interface is the main entry point into the back end preferences management library.
...ct manipulation of the preferences themselves.
...method overview nsiprefbranch getbranch(in string aprefroot); nsiprefbranch getdefaultbranch(in string aprefroot); void readuserprefs(in nsifile afile); void resetprefs(); void resetuserprefs(); void savepreffile(in nsifile afile); methods getbranch() call to get a preferences "branch" which accesses user preference data.
...And 4 more matches
nsISelectionController
content/base/public/nsiselectioncontroller.idlscriptable please add a summary to this article.
... selection_on 2 selection_disabled 3 selection_attention 4 scroll constants constant value description scroll_synchronous 1<<1 if set scrolls the selection into view before returning.
...rolls the selection into view before returning.
...And 4 more matches
nsIServerSocket
netwerk/base/public/nsiserversocket.idlscriptable please add a summary to this article.
..., in long abacklog); void initwithaddress([const] in prnetaddrptr aaddr, in long abacklog);native code only!
... void initwithaddress([const] in prnetaddrptr aaddr, in long abacklog);native code only!
...And 4 more matches
nsIStreamListener
netwerk/base/public/nsistreamlistener.idlscriptable this interface is used to listen to data being received on a stream.
... netwerk/base/public/nsistreamlistener.idlscriptable this interface is used to listen to data being received on a stream.
...ace is used to listen to data being received on a stream.
...And 4 more matches
nsITaggingService
toolkit/components/places/public/nsitaggingservice.idlscriptable provides methods to tag/untag a uri, to retrieve uris for a given tag, and to retrieve all tags for a uri.
....
...ptional] 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).
...And 4 more matches
nsITimer
the nsitimer interface offers a functionality to invoke a function after a specified delay.
... the nsitimer interface offers a functionality to invoke a function after a specified delay.
...o 5 (firefox 5 / thunderbird 5 / seamonkey 2.2) inherits from: nsisupports implemented by: @mozilla.org/timer;1.
...And 4 more matches
nsIUploadChannel2
netwerk/base/public/nsiuploadchannel2.idlscriptable please add a summary to this article.
... netwerk/base/public/nsiuploadchannel2.idlscriptable please add a summary to this article.
...hannel2.idlscriptable please add a summary to this article.
...And 4 more matches
nsIXULTemplateResult
ill be able to uniquely identify a node in the source data, such as an rdf or xml node.
...le to uniquely identify a node in the source data, such as an rdf or xml node.
...the template.
...And 4 more matches
Weak reference
ck to you), then none of the objects in the cycle can be reclaimed without taking special measures.
... the new and interesting things are highlighted.
... ns_ok; } // ...
...And 4 more matches
Working with windows in chrome code
so handles window features a little differently, including always assuming the dialog feature is specified.
....getservice(components.interfaces.nsiwindowwatcher); var win = ww.openwindow(null, "chrome://myextension/content/about.xul", "aboutmyextension", "chrome,centerscreen", null); window object note the win variable in the above section, which is assigned the return value of window.open.
...m .queryinterface(components.interfaces.nsiinterfacerequestor) .getinterface(components.interfaces.nsidomwindow); this allows you to cross the chrome-content boundaries, and returns the main window object.
...And 4 more matches
Declaring types
the ctypes object offers a number of constructor methods that let you declare types.
... the ctypes object offers a number of constructor methods that let you declare types.
...ing primitive types.
...And 4 more matches
CData
a cdata object represents a c value or function located in memory.
... a cdata object represents a c value or function located in memory.
...data objects property type description constructor ctype the data type of the cdata object, as a ctype.
...And 4 more matches
Attr - Web APIs
Web › API › Attr
the attr interface represents one of a dom element's attributes as an object.
...oke="#d4dde4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" 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.
...nospace" fill="#4d4e53" text-anchor="middle" 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.
...And 4 more matches
AudioListener - Web APIs
d positionz) values.
...tion of the top of the listener's head in the same cartesian coordinate sytem as the position (positionx, positiony, and positionz) values.
..., internet explorer and safari.
...And 4 more matches
Beacon API - Web APIs
the beacon interface is used to schedule an asynchronous and non-blocking request to a web server.
...o-op loop for several seconds within the unload handler to delay the unload and submit data to a server.
...a to a server.
...And 4 more matches
CSSStyleSheet.insertRule() - Web APIs
the cssstylesheet.insertrule() method inserts a new css rule into the current style sheet, with some restrictions.
... the cssstylesheet.insertrule() method inserts a new css rule into the current style sheet, with some restrictions.
...heet.cssrules.
...And 4 more matches
CSSStyleSheet - Web APIs
the cssstylesheet interface represents a single css stylesheet, and lets you inspect and modify the list of rules contained in the stylesheet.
...erits properties from its parent, stylesheet.
...access individual rules like this: stylesheet.cssrules[i] // where i = 0..cssrules.length-1 to add or remove items in cssrules, use the cssstylesheet's insertrule() and deleterule() methods.
...And 4 more matches
CustomEvent - Web APIs
cation, this value is time since epoch—but in reality, browsers' definitions vary.
....
...) or by a script (using an event creation method, like event.initevent).
...And 4 more matches
DOMImplementation - Web APIs
the domimplementation interface represents an object providing methods which are not dependent on any particular document.
... the domimplementation interface represents an object providing methods which are not dependent on any particular document.
... the domimplementation interface represents an object providing methods which are not dependent on any particular document.
...And 4 more matches
DOMMatrix - Web APIs
Web › API › DOMMatrix
floating-point values representing the components of a 4×4 matrix which are required in order to perform 2d rotations and translations.
...nts of a 4×4 matrix which are required in order to perform 2d rotations and translations.
...ch are required in order to perform 2d rotations and translations.
...And 4 more matches
DataTransfer - Web APIs
s property applies only to the dragend event, and is true if the user canceled the drag operation by pressing escape.
... only to the dragend event, and is true if the user canceled the drag operation by pressing escape.
...nt read only gives the number of items in the drag operation.
...And 4 more matches
Document.getElementById() - Web APIs
the document method getelementbyid() returns an element object representing the element whose id property matches the specified string.
...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.
...olor('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.
...And 4 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.
...st'); this example finds all elements that have a class of test, which are also a descendant of the element that has the id of main: document.getelementbyid('main').getelementsbyclassname('test'); matching multiple classes to find elements whose class lists include both the red and test classes: element.getelementsbyclassname('red test'); examining the results you can use either the item() method on the returned htmlcollection or standard array syntax to examine individual elements in the collection.
...And 4 more matches
Element.removeAttributeNode() - Web APIs
the removeattributenode() method of the element object removes the specified attribute from the current element.
...nter" /> var d = document.getelementbyid("top"); var d_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.
...mentbyid("top"); var d_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
Event - Web APIs
Web › API › Event
the event interface represents an event which takes place in the dom.
... represent the progress of an asynchronous task.
...cation, this value is time since epoch—but in reality, browsers' definitions vary.
...And 4 more matches
FileReaderSync - Web APIs
the filereadersync interface allows to read file or blob objects synchronously.
... the filereadersync interface allows to read file or blob objects synchronously.
...blob objects synchronously.
...And 4 more matches
Using FormData Objects - Web APIs
the formdata object lets you compile a set of key/value pairs to send using xmlhttprequest.
...orm data, but can be used independently from forms in order to transmit keyed data.
... file...
...And 4 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.
...he fetch api allows you to perform various actions on http request and response headers.
...ames are matched by case-insensitive byte sequence.
...And 4 more matches
History - Web APIs
Web › API › History
for a page loaded in a new tab this property returns 1.
...ns 1.
...pplications to explicitly set default scroll restoration behavior on history navigation.
...And 4 more matches
compareVersion - Web APIs
is now deprecated and as of gecko 1.9 no longer available.
...e version of a file or package with the version of an existing file or package.
...computer; it is the location of information about the software inside the client version registry.
...And 4 more matches
Using the Media Capabilities API - Web APIs
o encode or decode media given a specified set of encoding parameters.
... encoding parameters.
...i is available.
...And 4 more matches
Navigator.sendBeacon() - Web APIs
the navigator.sendbeacon() method asynchronously sends a small amount of data over http to a web server.
... the navigator.sendbeacon() method asynchronously sends a small amount of data over http to a web server.
...igator.sendbeacon(url, data); parameters url the url that will receive the data.
...And 4 more matches
NodeFilter.acceptNode() - Web APIs
the nodefilter.acceptnode() method returns an unsigned short that will be used to tell if a given node must be accepted or not by the nodeiterator or treewalker iteration algorithm.
... the nodefilter.acceptnode() method returns an unsigned short that will be used to tell if a given node must be accepted or not by the nodeiterator or treewalker iteration algorithm.
... the nodefilter.acceptnode() method returns an unsigned short that will be used to tell if a given node must be accepted or not by the nodeiterator or treewalker iteration algorithm.
...And 4 more matches
NodeFilter - Web APIs
a nodefilter interface represents an object used to filter the nodes in a nodeiterator or treewalker.
...or traversing nodes; it only knows how to evaluate a single node against the provided filter.
...aluate a single node against the provided filter.
...And 4 more matches
NodeIterator.nextNode() - Web APIs
the nodeiterator.nextnode() method returns the next node in the set represented by the nodeiterator and advances the position of the iterator within the set.
... the nodeiterator.nextnode() method returns the next node in the set represented by the nodeiterator and advances the position of the iterator within the set.
... the nodeiterator.nextnode() method returns the next node in the set represented by the nodeiterator and advances the position of the iterator within the set.
...And 4 more matches
NodeIterator.previousNode() - Web APIs
the nodeiterator.previousnode() method returns the previous node in the set represented by the nodeiterator and moves the position of the iterator backwards within the set.
... the nodeiterator.previousnode() method returns the previous node in the set represented by the nodeiterator and moves the position of the iterator backwards within the set.
... the nodeiterator.previousnode() method returns the previous node in the set represented by the nodeiterator and moves the position of the iterator backwards within the set.
...And 4 more matches
PaymentRequest.canMakePayment() - Web APIs
the paymentrequest method canmakepayment() determines whether or not the request is configured in a way that is compatible with at least one payment method supported by the user agent.
... the paymentrequest method canmakepayment() determines whether or not the request is configured in a way that is compatible with at least one payment method supported by the user agent.
... with at least one payment method supported by the user agent.
...And 4 more matches
Payment Request API - Web APIs
ormation; used for billing and shipping addresses, for example.
...tevent an event delivered to a payment handler when a paymentrequest is made.
...tailsupdate an object describing changes that need to be made to the payment details in the event that the server needs to update information following the instantiation of the payment interface but before the user begins to interact with it.
...And 4 more matches
Using the Performance API - Web APIs
a fundamental requirement of web performance is a precise and consistent definition of time.
...d consistent definition of time.
...formance interfaces are defined in a suite of standards.
...And 4 more matches
Request - Web APIs
Web › API › Request
nly returns a string from the requestdestination enum describing the request's destination.
...tination enum describing the request's destination.
...d only contains the referrer policy of the request (e.g., no-referrer).
...And 4 more matches
SVGPathElement - Web APIs
"65" width="140" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="-29" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgpathelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} note: in svg 2 the getpathsegatlength() and createsvgpathseg* methods were removed and the pathlength property and the gettotallength() and getpointatlength() methods were moved to svggeometryelement.
... getpointatlength() methods were moved to svggeometryelement.
... to svggeometryelement.
...And 4 more matches
Background audio processing using AudioWorklet - Web APIs
on the main thread, thus blocking everything else going on until it completed execution.
...verview of what's involved.
...e as long) is implemented using a javascript module that defines and installs the custom audio processor class.
...And 4 more matches
Using the Web Audio API - Web APIs
ne audio context.
...nt.
...aying = 'false'; }, false); modifying sound let's delve into some basic modification nodes, to change the sound that we have.
...And 4 more matches
XMLHttpRequest - Web APIs
can be used to retrieve any type of data, not just xml.
...httprequest instance is supported in all browsers.
...returns the string containing the text of the specified header, or null if either the response has not yet been received or the header doesn't exist in the response.
...And 4 more matches
msWriteProfilerMark - 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.
...ween implementations and the behavior may change in the future.
...And 4 more matches
ime-mode - CSS: Cascading Style Sheets
Web › CSS › ime-mode
the ime-mode css property controls the state of the input method editor (ime) for text fields.
...me-mode attribute | imemode property.
...sly set by legacy code.
...And 4 more matches
Creating a cross-browser video player - Developer guides
ion on video formats and browser compatibility, see supported media formats.
... web browsers to show apps using your computer's full screen.
...ment.getelementbyid('voldec'); var progress = document.getelementbyid('progress'); var progressbar = document.getelementbyid('progress-bar'); var fullscreen = document.getelementbyid('fs'); using these handles, events can now be attached to each of the custom control buttons making them interactive.
...And 4 more matches
HTML attribute reference - HTML: Hypertext Markup Language
e content security policy that an embedded document must agree to enforce upon itself.
...ith the element.
... formaction <input>, <button> indicates the action of the element, overriding the action defined in the <form>.
...And 4 more matches
Allow - HTTP
Web › HTTP › Headers › Allow
the allow header lists the set of methods supported by a resource.
... the allow header lists the set of methods supported by a resource.
... the allow header lists the set of methods supported by a resource.
...And 4 more matches
Text formatting - JavaScript
ame result.
...string objects the string object is a wrapper around the string primitive data type.
...ll have length 2.
...And 4 more matches
Warning: Date.prototype.toLocaleFormat is deprecated - JavaScript
the javascript warning "date.prototype.tolocaleformat is deprecated; consider using intl.datetimeformat instead" occurs when the non-standard date.prototype.tolocaleformat method is used.
... "date.prototype.tolocaleformat is deprecated; consider using intl.datetimeformat instead" occurs when the non-standard date.prototype.tolocaleformat method is used.
...etimeformat instead error type warning.
...And 4 more matches
BigInt - JavaScript
007199254740991) // ↪ 9007199254740991n const hugestring = bigint("9007199254740991") // ↪ 9007199254740991n const hugehex = bigint("0x1fffffffffffff") // ↪ 9007199254740991n const hugebin = bigint("0b11111111111111111111111111111111111111111111111111111") // ↪ 9007199254740991n bigint is similar to number in some ways, but also differs in a few key matters — it cannot be used with methods in the built-in math object and cannot be mixed with instances of number in operations; they must be coerced to the same type.
...operators ||, &&, and !; or within a conditional test like an if statement.
... 0n || 12n // ↪ 12n 0n && 12n // ↪ 0n boolean(0n) // ↪ false boolean(12n) // ↪ true !12n // ↪ false !0n // ↪ true constructor bigint() creates a new bigint value.
...And 4 more matches
Date.prototype[@@toPrimitive] - JavaScript
the [@@toprimitive]() method converts a date object to a primitive value.
... the [@@toprimitive]() method converts a date object to a primitive value.
... the [@@toprimitive]() method converts a date object to a primitive value.
...And 4 more matches
Function.prototype.call() - JavaScript
the call() method calls a function with a given this value and arguments provided individually.
...mple is stored in a github repository.
... a github repository.
...And 4 more matches
Function.prototype.toString() - JavaScript
the tostring() method returns a string representing the source code of the function.
...of the function.
...the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...And 4 more matches
Object.prototype.toSource() - JavaScript
the tosource() method returns a string representing the source code of the object.
... the tosource() method returns a string representing the source code of the object.
... method returns the following values: for the built-in object object, tosource() returns the 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.
...And 4 more matches
Reflect - JavaScript
reflect is a built-in object that provides methods for interceptable javascript operations.
... reflect is a built-in object that provides methods for interceptable javascript operations.
... reflect is a built-in object that provides methods for interceptable javascript operations.
...And 4 more matches
RegExp.prototype[@@split]() - JavaScript
the [@@split]() method splits a string object into an array of strings by separating the string into substrings.
...teractive example is stored in a github repository.
... target of the split operation.
...And 4 more matches
TypedArray.prototype.toString() - JavaScript
the tostring() method returns a string representing the specified array and its elements.
... the tostring() method returns a string representing the specified array and its elements.
...ray types here.
...And 4 more matches
Object initializer - JavaScript
= {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.
... the same as the javascript object notation (json).
... computed property names making duplication possible at runtime, ecmascript 2015 has removed this restriction.
...And 4 more matches
Optional chaining (?.) - JavaScript
obj.first is null or undefined, the expression automatically short-circuits, returning undefined.
...efined.
... when attempting to call a method which may not exist.
...And 4 more matches
Loading and running WebAssembly code - WebAssembly
rovides a reference for the different mechanisms that can be used to fetch webassembly bytecode, as well as how to compile/instantiate then run it.
...hods require you to create an arraybuffer containing your webassembly module binary after fetching the raw bytes, and then compile/instantiate it.
...ons directly on the raw stream of bytes coming from the network, cutting out the need for the arraybuffer step.
...And 4 more matches
Appendix E: DOM Building and Insertion (HTML & XUL) - Archive of obsolete content
either xul or html, from their scripts.
...m their scripts.
...el', {for:'mycheck'}, 'here is text of label, click this text will check the box' ] ] ] ]; document.body.appendchild(jsontodom(json, document, {})); jquery templating for extensions which already use jquery, it is possible to use its builtin dom building functions for templating, though care must be taken when passing non-static strings to methods such as .append() and .html().
...And 3 more matches
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-weight:...
...ay: 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-weight:bold;} .method>.params>.param>.type:before{content: "type "; color: #888; font-weight:normal;} .method>.params>.param>.default{display:inline-block; width:100px; vertical-align:top;font-weight:bold;} .method>.params>.param>.default:before{content: "default "; color: #888;font-weight:normal;} ]]></style> clipboard jetpack's clipboard support api provides a standardized way for features to access the clipboard.
...y for features to access the clipboard.
...And 3 more matches
jspage - Archive of obsolete content
object":var d=function(){};d.prototype=a[c];var b=new d;a[c]=object.reset(b);break;case"array":a[c]=$unlink(a[c]); break;}return a;};new native({name:"class",initialize:class}).extend({instantiate:function(b){b._prototyping=true;var a=new b;delete b._prototyping;return a; },wrap:function(a,b,c){if(c._origin){c=c._origin;}return function(){if(c._protected&&this._current==null){throw new error('the method "'+b+'" cannot be called.'); }var e=this.caller,f=this._current;this.caller=f;this._current=arguments.callee;var d=c.apply(this,arguments);this._current=f;this.caller=e;return d;}.extend({_owner:a,_origin:c,_name:b}); }});class.implement({implement:function(a,d){if($type(a)=="object"){for(var e in a){this.implement(e,a[e]);}return this;}var f=class.mutators[a];if(f){d=f.call(this,d); if(d==null){...
...a]=class.wrap(this,a,d);break;case"object":var b=c[a]; if($type(b)=="object"){$mixin(b,d);}else{c[a]=$unlink(d);}break;case"array":c[a]=$unlink(d);break;default:c[a]=d;}return this;}});class.mutators={extends:function(a){this.parent=a; this.prototype=class.instantiate(a);this.implement("parent",function(){var b=this.caller._name,c=this.caller._owner.parent.prototype[b];if(!c){throw new error('the method "'+b+'" has no parent.'); }return c.apply(this,arguments);}.protect());},implements:function(a){$splat(a).each(function(b){if(b instanceof function){b=class.instantiate(b);}this.implement(b); },this);}};var chain=new class({$chain:[],chain:function(){this.$chain.extend(array.flatten(arguments));return this;},callchain:function(){return(this.$chain.length)?this.$chain.shift().apply(this,arguments)...
...2,10*--b)*math.cos(20*b*math.pi*(a[0]||1)/3);}});["quad","cubic","quart","quint"].each(function(b,a){fx.transitions[b]=new fx.transition(function(c){return math.pow(c,[a+2]); });});var request=new class({implements:[chain,events,options],options:{url:"",data:"",headers:{"x-requested-with":"xmlhttprequest",accept:"text/javascript, text/html, application/xml, text/xml, */*"},async:true,format:false,method:"post",link:"ignore",issuccess:null,emulation:true,urlencoded:true,encoding:"utf-8",evalscripts:false,evalresponse:false,nocache:false},initialize:function(a){this.xhr=new browser.request(); this.setoptions(a);this.options.issuccess=this.options.issuccess||this.issuccess;this.headers=new hash(this.options.headers);},onstatechange:function(){if(this.xhr.readystate!=4||!this.running){return; }this.
...And 3 more matches
Monitoring downloads - Archive of obsolete content
t care!
...e(); }, this is fairly simple stuff.
...cuted to create the table.
...And 3 more matches
RDF Datasource How-To - Archive of obsolete content
store.
...re can be modified "on the fly" by other agents.
...ach, you won't be able to selectively implement methods of the nsirdfdatasource interface; instead, all of the methods will be "forwarded" to the in-memory datasource.
...And 3 more matches
compareTo - Archive of obsolete content
compareto compares the version information specified in this object to the version information specified in the version parameter.
... compareto compares the version information specified in this object to the version information specified in the version parameter.
...release, int build); parameters the compareto method has the following parameters: maj the major version number.
...And 3 more matches
confirm - Archive of obsolete content
confirm displays a modal confirmation dialog.
...a modal confirmation dialog.
... number abuttonflags, string abutton0title, string abutton1title, string abutton2title, string acheckmsg, object acheckstate ); parameters the second, extended confirm() method is supported starting with gecko 1.8.
...And 3 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 3 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.
...subdirectory.
...And 3 more matches
getWinProfile - Archive of obsolete content
getwinprofile (windows only) constructs an object for working with a windows .ini file.
... getwinprofile (windows only) constructs an object for working with a windows .ini file.
... getwinprofile (windows only) constructs an object for working with a windows .ini file.
...And 3 more matches
initInstall - Archive of obsolete content
initinstall initializes the installation of the specified software and version.
...ntax int initinstall ( string displayname, string package, installversion version, int flags); int initinstall ( string displayname, string package, string version, int flags); int initinstall ( string displayname, string package, string version); int initinstall ( string displayname, string package, installversion version); parameters the initinstall method has the following parameters: displayname a string that contains the name of the software being installed.
...rea of the registry are reserved for use by netscape.
...And 3 more matches
patch - Archive of obsolete content
summary updates an existing component.
...ring registryname, string xpisourcepath, object localdirspec, string relativelocalpath); int patch ( string registryname, installversion version, string xpisourcepath, object localdirspec, string relativelocalpath); int patch ( string registryname, string version, string xpisourcepath, object localdirspec, string relativelocalpath); parameters the patch method has the following parameters: registryname the pathname in the client version registry for the component that is to be patched.this parameter can be an absolute pathname, such as /royalairways/royalsw/executable or a relative pathname, such as executable.
... be patched.this parameter can be an absolute pathname, such as /royalairways/royalsw/executable or a relative pathname, such as executable.
...And 3 more matches
setPackageFolder - Archive of obsolete content
setpackagefolder sets the default package folder.
... setpackagefolder sets the default package folder.
... setpackagefolder sets the default package folder.
...And 3 more matches
getValue - Archive of obsolete content
getvalue netscape 6 and mozilla do not currently support this method.
... getvalue netscape 6 and mozilla do not currently support this method.
... getvalue netscape 6 and mozilla do not currently support this method.
...And 3 more matches
setValue - Archive of obsolete content
setvalue netscape 6 and mozilla do not currently support this method.
... setvalue netscape 6 and mozilla do not currently support this method.
... setvalue netscape 6 and mozilla do not currently support this method.
...And 3 more matches
findbar - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] in gecko 1.9, the findbar widget moved into toolkit, so it's available to any xul application, as well as extensions.
...r to a particular browser element by either setting the findbar's browserid attribute to the id of the browser element before the findbar element is bound, or by setting the findbar's browser property to the browser element itself.
...rdinal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width browser type: browser element lets you set and get the browser in which the findbar is located.
...And 3 more matches
Positioning - Archive of obsolete content
ntly selected item if a list is focused.
...to the mouse pointer.
...he value supplied to openpopup.
...And 3 more matches
Textbox (XPFE autocomplete) - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] this element is created by setting the type attribute of a textbox to autocomplete.
... textbox to autocomplete.
...cecomplete, highlightnonmatches, ignoreblurwhilesearching, inputfield, issearching, iswaiting, label, maxlength, maxrows, minresultsforpopup, nomatch, open, popup, popupopen, resultspopup, searchcount, searchparam, searchsessions, selectionend, selectionstart, sessioncount, showcommentcolumn, showpopup, size, tabindex, tabscrolling, textlength, textvalue, timeout, type, useraction, value methods addsession, clearresults, 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.
...And 3 more matches
More Event Handlers - Archive of obsolete content
of doing this.
...box was pressed!'); event.stoppropagation(); } var button = document.getelementbyid("okbutton"); button.addeventlistener('command',buttonpressed,true); var outerbox = document.getelementbyid("outerbox"); outerbox.addeventlistener('command',boxpressed,true); </script> here, an event listener has been added to the button and another event listener has been added to the box.
...ng phases, the element will handle the event in a default way.
...And 3 more matches
Updating Commands - Archive of obsolete content
« previousnext » in this section, we will look at how to update commands.
...e following: var controller = document.commanddispatcher.getcontrollerforcommand("cmd_paste"); if (controller && controller.iscommandenabled("cmd_paste")){ controller.docommand(command); } the code above first retrieves the controller for the 'cmd_paste' command from the command dispatcher.
...robably shouldn't do that.
...And 3 more matches
Using the Editor from XUL - Archive of obsolete content
oxobject behind the scenes.
...seditorshell::preparedocumentforediting()).
... here (which tells the editor that it can edit everything under the <body> of the document).
...And 3 more matches
menu - Archive of obsolete content
Archive › Mozilla › XUL › menu
« xul reference home [ examples | attributes | properties | methods | related ] an element, much like a button, that is placed on a menubar.
...s also used to create submenus.
...f this element is selected, or false if it is not.
...And 3 more matches
notification - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] the notification is used to display an informative message.
...mples | attributes | properties | methods | related ] the notification is used to display an informative message.
...utes.
...And 3 more matches
radiogroup - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a group of radio buttons.
...he radiogroup or descendants.
...roperty, the selectedindex property, or changed by the user.
...And 3 more matches
tabs - Archive of obsolete content
Archive › Mozilla › XUL › tabs
« xul reference home [ examples | attributes | properties | methods | related ] a row of tabs.
... as button, but they will receive an index.
...x element returns the tabbox element that contains the tabs.
...And 3 more matches
Browser Detection and Cross Browser Support - Archive of obsolete content
sion.
...ore, then opera 5 and 6 should be considered downlevel as well due to their limited support for the w3c dom.
...unch.
...And 3 more matches
Date.prototype.toLocaleFormat() - Archive of obsolete content
the non-standard tolocaleformat() method converts a date to a string using the specified formatting.
...o longer work in firefox 58+.
... string is localized properly according to the user's system settings.
...And 3 more matches
Object.prototype.unwatch() - Archive of obsolete content
deprecation warning: do not use unwatch() and watch()!
... deprecation warning: do not use unwatch() and watch()!
...watch()!
...And 3 more matches
LiveConnect - Archive of obsolete content
liveconnect provides javascript with the ability to call methods of java classes and vice-versa using the existing java infrastructure.
...date documentation of liveconnect.
...sing number of other bugs introduced by the decline of the original liveconnect (e.g., java.lang.string and arrays not working properly).
...And 3 more matches
JavaClass - Archive of obsolete content
packages and also create javaclass objects.
...ckage, such as netscape.javascript.
...d which requires an argument of type java.lang.class.
...And 3 more matches
Working with JSON - Learn web development
ral syntax, it can be used independently from javascript, and many programming environments feature the ability to read (parse) and generate json.
...ge": 39, "secretidentity": "jane wilson", "powers": [ "million tonne punch", "damage resistance", "superhuman reflexes" ] } ] the above is perfectly valid json.
...ng at the bottom of your javascript code: let requesturl = 'https://mdn.github.io/learning-area/javascript/oojs/json/superheroes.json'; to create a request, we need to create a new request object instance from the xmlhttprequest constructor, using the new keyword.
...And 3 more matches
Test your skills: Object-oriented JavaScript - Learn web development
assessment or further help section at the bottom of this page.
...loadable version).
...f shape called triangle, with a name of triangle and a sidelength of 3.
...And 3 more matches
Creating JavaScript callbacks in components
es are used to manipulate the component in c++ and javascript.
...the external code when predefined events occur.
...codebase.
...And 3 more matches
Commenting IDL for better documentation
pand upon your documentation if necessary.
... english is not their native language will be reading your comments (as well as the generated documentation), so try to avoid slang and abbreviations when possible.
...listed below are interpreted by our tools.
...And 3 more matches
Experimental features in Firefox
element—or any element whose contenteditable attribute is enabled—immediately before the element's value changes.
... with no—or muted—audio), and disallowed (autoplay is not allowed at this time).
...for more details.
...And 3 more matches
AddonInstall
an addoninstall instance tracks download and installation process of an add-on.
... an addoninstall instance tracks download and installation process of an add-on.
... an addoninstall instance tracks download and installation process of an add-on.
...And 3 more matches
Add-on Manager
s.
...ion(aaddons) { // here aaddons is an array of addon objects }); // this code will execute before the code inside the callback notifications about changes to installed add-ons are dispatched to any registered addonlisteners.
...nts.utils.import("resource://gre/modules/addonmanager.jsm"); addonmanager.getinstallforurl("http://www.foo.com/test.xpi", function(ainstall) { // ainstall is an instance of addoninstall ainstall.install(); }, "application/x-xpinstall"); the progress of addoninstalls can be monitored using an installlistener.
...And 3 more matches
Assert.jsm
rt.jsm javascript code module implements the commonjs unit testing specification version 1.1, which provides a basic, standardized interface for performing in-code logical assertions with optional, customizable error reporting.
...js unit testing specification version 1.1, which provides a basic, standardized interface for performing in-code logical assertions with optional, customizable error reporting.
...port(failed, actual, expected, message, operator); constructor creates a new assert object.
...And 3 more matches
DownloadList
a downloadlist object represents a collection of download objects that can be viewed and managed by the user interface, and persisted across sessions.
...ct can be obtained using the downloads.getlist() function.
...l time.
...And 3 more matches
DownloadTarget
a downloadtarget object represents the target of a download, for example a file in the global downloads directory, or a file in the system temporary directory.
... example a file in the global downloads directory, or a file in the system temporary directory.
...oading a web page and its required media to disk, the meaning of this property is undefined.
...And 3 more matches
PopupNotifications.jsm
provides a popup notification box service.
...nto your javascript scope: components.utils.import("resource://gre/modules/popupnotifications.jsm"); once you've imported the module, you can then use the popupnotifications object it exports; this object provides methods for creating and displaying popup notification panels.
... void locationchange(); notification getnotification(id, browser); void remove(notification); notification show(browser, id, message, anchorid, mainaction, secondaryactions, options); properties attribute type description ispanelopen boolean returns true if the notification panel is currently visible, false if it is not.
...And 3 more matches
Deferred
a deferred object is returned by the promiseutils.defer() method to provide a new promise along with methods to change its state.
... a deferred object is returned by the promiseutils.defer() method to provide a new promise along with methods to change its state.
... a deferred object is returned by the promiseutils.defer() method to provide a new promise along with methods to change its state.
...And 3 more matches
Localization and Plurals
forms instead of figuring out locally to better support future rules - requires build from 2007/01/27 or later 0.3: generate a list of what numbers fall into which plural form to minimize the sample output to at most 3 of each form developing with pluralform the functionality for getting the correct plural forms is provided by a javascript module, pluralform.jsm.
...quires build from 2007/01/27 or later 0.3: generate a list of what numbers fall into which plural form to minimize the sample output to at most 3 of each form developing with pluralform the functionality for getting the correct plural forms is provided by a javascript module, pluralform.jsm.
... the extension doesn't necessarily have to be localized to the browser's locale.
...And 3 more matches
Index
cert will be added if there is no delimiter.
....
...test-type sets status checking test type.
...And 3 more matches
GC Rooting Guide
js::rootedstring js::rooted<jsscript*> js::rootedscript js::rooted<jsid> js::rootedid for example, instead of this: jsobject* localobj = js_getobjectofsomesort(cx); you would write this: js::rootedobject localobj(cx, js_getobjectofsomesort(cx)); spidermonkey makes it easy to remember to use js::rooted<t> types instead of a raw pointer because all of the api methods that may gc take a js::handle<t>, as described below, and js::rooted<t> autoconverts to js::handle<t> but a bare pointer does not.
... are used as out-parameters must be wrapped in a js::mutablehandle<t>.
...ass js::value[] autoarrayrooter js::vector<js::value> autovaluevector js::vector<jsid> autoidvector js::vector<jsobject*> autoobjectvector js::vector<jsscript*> autoscriptvector if your case is not covered by one of these, it is possible to write your own by deriving from js::customautorooter and overriding the virtual trace() method.
...And 3 more matches
Exact Stack Rooting
this guide is intended for spidermonkey hackers!
...rce you to initialize with constructor syntax.
...ion.
...And 3 more matches
JS_DefineElement
his jscontext.
... index uint32_t the index of the property to define.
...e.
...And 3 more matches
JS_Init
this article covers features introduced in spidermonkey 31 initializes the js engine so that further operations can be performed.
... this article covers features introduced in spidermonkey 31 initializes the js engine so that further operations can be performed.
... article covers features introduced in spidermonkey 31 initializes the js engine so that further operations can be performed.
...And 3 more matches
Parser API
it is also available since firefox 7; it can be imported into the global object via: components.utils.import("resource://gre/modules/reflect.jsm") or into a specified object via: components.utils.import("resource://gre/modules/reflect.jsm", obj) built-in objects whether in spidermonkey shell or firefox (after importing), the global singleton object reflect currently contains just the parse method.
...nts.utils.import("resource://gre/modules/reflect.jsm") or into a specified object via: components.utils.import("resource://gre/modules/reflect.jsm", obj) built-in objects whether in spidermonkey shell or firefox (after importing), the global singleton object reflect currently contains just the parse method.
...s not meaningful to the parsing process, but is produced as part of the source location information in the returned ast nodes.
...And 3 more matches
Using the Places annotation service
the annotation service, provided by the nsiannotationservice interface, is designed to store arbitrary data about a web page or about an item in the places database in firefox 3.
... the annotation service, provided by the nsiannotationservice interface, is designed to store arbitrary data about a web page or about an item in the places database in firefox 3.
...; getitemannotationint64(aitemid, aname); getitemannotationdouble(aitemid, aname); getitemannotationbinary(aitemid, aname, adata, adatalen, amimetype); from javascript: getpageannotation(auri, aname); getitemannotation(aitemid, aname); these functions will return/throw ns_error_not_available if the annotation requested does not exist.
...And 3 more matches
Building the WebLock UI
ck component is always initialized as unlocked, we can have the client code - the javascript code in the interface - represent this state and track it as the user manipulates the iweblock interface.
...in the snippets above.
...it more complicated, because it requires that you work with the currently loaded page or provide other ui (e.g., a textfield where you can enter an arbitrary url) for specifying urls.
...And 3 more matches
Packaging WebLock
all.
...rm's registry.
...ust appear at the top level of the installation archive (i.e., weblock.xpi) itself.
...And 3 more matches
Components.utils
components.utils is a collection of various useful xpconnect features.
... components.utils is a collection of various useful xpconnect features.
...garbage collection cycle.
...And 3 more matches
Components object
arbage collection cycle.
... returns the global object with which a given object is associated (through its prototype chain at birth, for example).
... sharing a scope.
...And 3 more matches
IAccessibleEditableText
r just before endoffset.
...h the two arguments exchanged.
... arguments exchanged.
...And 3 more matches
imgIDecoder
modules/libpr0n/public/imgidecoder.idlscriptable base class for a decoder that reads an image from an input stream and sends it to an imgiloader object.
...hat reads an image from an input stream and sends it to an imgiloader object.
...loses the stream.
...And 3 more matches
nsIAppShell
widget/public/nsiappshell.idlnot scriptable interface for the native event system layer.
...eventqueue aqueue, in prbool alisten); obsolete since gecko 1.9 void resumenative(); void run(); void runinstablestate(in nsirunnable arunnable); void spindown(); obsolete since gecko 1.9 void spinup(); obsolete since gecko 1.9 void suspendnative(); attributes attribute type description eventloopnestinglevel unsigned long the current event loop nesting level.
...1.9 (firefox 3) an event queue has been created or destroyed.
...And 3 more matches
nsICacheSession
netwerk/cache/public/nsicachesession.idlscriptable handles open synchronous and asynchronous cache entry operations along with evicting cache entries and checking for cache devices instantiation according to the session storage policies.
...void doomentry(in acstring key, in nsicachelistener listener); attributes attribute type description doomentriesifexpired prbool expired entries will be doomed or evicted if this attribute is set to true.
...nsicachelistener listener); attributes attribute type description doomentriesifexpired prbool expired entries will be doomed or evicted if this attribute is set to true.
...And 3 more matches
nsIContentPrefCallback2
dom/interfaces/base/nsicontentprefservice2.idlscriptable callback used by nsicontentprefservice2 methods 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) method overview void handlecompletion(in unsigned short reason); void handleerror(in nsresult error); void handleresult(in nsicontentpref pref); constants constant value description complete_ok 0 complete_error 1 methods handlecompletion() called when the method finishes.
...hod overview void handlecompletion(in unsigned short reason); void handleerror(in nsresult error); void handleresult(in nsicontentpref pref); constants constant value description complete_ok 0 complete_error 1 methods handlecompletion() called when the method finishes.
...gned short reason); void handleerror(in nsresult error); void handleresult(in nsicontentpref pref); constants constant value description complete_ok 0 complete_error 1 methods handlecompletion() called when the method finishes.
...And 3 more matches
nsIController
content/xul/document/public/nsicontroller.idlscriptable an interface that can be implemented to receive and process commands and events.
... content/xul/document/public/nsicontroller.idlscriptable an interface that can be implemented to receive and process commands and events.
...cument/public/nsicontroller.idlscriptable an interface that can be implemented to receive and process commands and events.
...And 3 more matches
nsIDOMMozNetworkStatsManager
ore, the networkstatsmanager is published through a moznetworkstats child object within the navigator object.
...ds between samples stored in the database.
... in jsval start, in jsval end, [optional] in jsval options /* networkstatsgetoptions */); parameters network the origin of the data.
...And 3 more matches
nsIDOMOfflineResourceList
the nsidomofflineresourcelist interface provides access to the application cache that allows web content's resources to be cached locally for use while offline.
...cached locally for use while offline.
...on cache is not in the process of being updated.
...And 3 more matches
nsIDynamicContainer
1.0 66 introduced gecko 1.9 inherits from: nsisupports last changed in gecko 1.9 (firefox 3) the service can fill result nodes directly into the container when it is opened.
...each container, registered to its service.
...s service.
...And 3 more matches
nsIEditorSpellCheck
cking commands for nsieditor instances.
...mdictionary(in wstring word); void replaceword(in wstring misspelledword, in wstring replaceword, in boolean alloccurrences); void savedefaultdictionary(); obsolete since gecko 9.0 void setcurrentdictionary(in astring dictionary); void setfilter(in nsitextservicesfilter filter); void uninitspellchecker(); void updatecurrentdictionary(); methods addwordtodictionary() adds the specified word to the current personal dictionary.
...this feature is obsolete.
...And 3 more matches
nsIFaviconDataCallback
toolkit/components/places/public/nsifaviconservice.idlscriptable please add a summary to this article.
...lic/nsifaviconservice.idlscriptable please add a summary to this article.
...duced gecko 2.0 inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview void oncomplete(in nsiuri auri, in unsigned long adatalen, [const,array,size_is(adatalen)] in octet adata, in autf8string amimetype); methods oncomplete() called when the required favicon's information is available.
...And 3 more matches
nsIFrameLoader
content/base/public/nsiframeloader.idlscriptable handles loading a frame.
... out whether the loader's frame is at too great a depth in the frame tree.
...ether or not to capture these events.
...And 3 more matches
nsILocaleService
ble the locale service interface.
...silocaleservice); method overview nsilocale getapplicationlocale(); astring getlocalecomponentforuseragent(); nsilocale getlocalefromacceptlanguage(in string acceptlanguage); nsilocale getsystemlocale(); nsilocale newlocale(in astring alocale); nsilocale newlocaleobject(in nsilocaledefinition localedefinition); obsolete since gecko 1.9 methods getapplicationlocale() gets the user preference for locale from the operating system.
...ilocale getsystemlocale(); nsilocale newlocale(in astring alocale); nsilocale newlocaleobject(in nsilocaledefinition localedefinition); obsolete since gecko 1.9 methods getapplicationlocale() gets the user preference for locale from the operating system.
...And 3 more matches
nsIMsgWindowCommands
mailnews/base/public/nsimsgwindow.idlscriptable this interface defines methods used by the back end to update the user interface in a mail or news message list.
... mailnews/base/public/nsimsgwindow.idlscriptable this interface defines methods used by the back end to update the user interface in a mail or news message list.
...criptable this interface defines methods used by the back end to update the user interface in a mail or news message list.
...And 3 more matches
nsINavHistoryObserver
is used to observe interactions on the global history.
... void ontitlechanged(in nsiuri auri, in astring apagetitle); void onvisit(in nsiuri auri, in long long avisitid, in prtime atime, in long long asessionid, in long long areferringid, in unsigned long atransitiontype, in acstring aguid, out unsigned long aadded); constants constant value description attribute_favicon 3 the page's favicon changed.
...ong long asessionid, in long long areferringid, in unsigned long atransitiontype, in acstring aguid, out unsigned long aadded); constants constant value description attribute_favicon 3 the page's favicon changed.
...And 3 more matches
nsINavHistoryQuery
introduced gecko 1.9 inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) the nsinavhistoryquery is not intended to be a super-general query mechanism.
...gs may be specified, but when reading the list, only unique tags are returned.
...uery will match any time.
...And 3 more matches
nsISelectionPrivate
dom/base/nsiselectionprivate.idlscriptable internal support for content selection handling.
...tants).
... that overlap (or touch) the input range.
...And 3 more matches
nsIServiceManager
xpcom/components/nsiservicemanager.idlscriptable this interface provides a means to obtain global services in an application.
...id getservice(in nscidref aclass, in nsiidref aiid, [iid_is(aiid),retval] out nsqiresult result); void getservicebycontractid(in string acontractid, in nsiidref aiid, [iid_is(aiid),retval] out nsqiresult result); boolean isserviceinstantiated(in nscidref aclass, in nsiidref aiid); boolean isserviceinstantiatedbycontractid(in string acontractid, in nsiidref aiid); methods getservice() this method returns a reference to a particular xpcom service given the classid of the service.
...vice( in nscidref aclass, in nsiidref aiid, [iid_is(aiid),retval] out nsqiresult result ); parameters aclass the classid of the service that is being requested.
...And 3 more matches
nsISessionStore
or.xul windows; see note on windows for details.
...ring akey, in astring astringvalue); nsidomnode undoclosetab(in nsidomwindow awindow, in unsigned long aindex); nsidomwindow undoclosewindow(in unsigned long aindex); attributes attribute type description canrestorelastsession boolean is it possible to restore the previous session.
...torelastsession boolean is it possible to restore the previous session.
...And 3 more matches
nsIStreamConverter
users there are currently two ways to use a stream converter: synchronous: stream to stream.
...eturn a converted (blocking) stream to you.
...r registration is a two step process.
...And 3 more matches
nsITaskbarWindowPreview
he preview; however, certain parts of the preview are not controlled using this interface.
...s automatically hidden.
...preview toolbars window previews may have a toolbar with up to seven buttons.
...And 3 more matches
nsITextInputProcessor
d manages its composition and modifier state 1.0 66 introduced gecko 38 inherits from: nsisupports last changed in gecko 38.0 (firefox 38.0 / thunderbird 38.0 / seamonkey 2.35) the motivation of this interface is to provide better api than nsidomwindowutils to dispatch key events and create, modify, and commit composition in higher level.
... and create, modify, and commit composition in higher level.
...); note that specifying keyboard event may not be dispatched during composition due to conforming to the specification of dom level 3 events.
...And 3 more matches
nsIThreadEventFilter
the nsithreadeventfilter interface may be implemented to determine whether or not an event may be accepted by a nested event queue; see nsithreadinternal.pusheventqueue() for more information.
...r or not an event may be accepted by a nested event queue; see nsithreadinternal.pusheventqueue() for more information.
...ion.
...And 3 more matches
nsITreeBoxObject
t trees is given in the xul tutorial.
...the treechildren tag.
... the index of the row scrollbylines() scroll the tree up or down by numlines lines.
...And 3 more matches
nsIURL
netwerk/base/public/nsiurl.idlscriptable this interface provides convenience methods that further break down the path portion of nsiuri.
...ory/filebasename.fileextension;param \ \ / \ ----------------------- \ | / \ filename / ---------------------------- | filepath you can get a nsiurl from an nsiuri, using the queryinterface() method: var myuri = components.classes["@mozilla.org/network/io-service;1"] .getservice(components.interfaces.nsiioservice) .newuri("http://developer.mozilla.org", null, null); try { var myurl = myuri.queryinterface(components.interfaces.nsiurl); } catch(e) { // the uri is not an url } or using instanceof: if (myuri instanceof components.interfaces.nsiurl...
...sses["@mozilla.org/network/io-service;1"] .getservice(components.interfaces.nsiioservice) .newuri("http://developer.mozilla.org", null, null); try { var myurl = myuri.queryinterface(components.interfaces.nsiurl); } catch(e) { // the uri is not an url } or using instanceof: if (myuri instanceof components.interfaces.nsiurl) { // your code here } method overview autf8string getcommonbasespec(in nsiuri auritocompare); autf8string getrelativespec(in nsiuri auritocompare); attributes attribute type description directory autf8string directory portion of a url.
...And 3 more matches
nsIUpdateTimerManager
ger.idlscriptable this interface provides a global application service that provides support for long-duration timers (on the order of many days, weeks, or even months).
...r of many days, weeks, or even months).
...y the timer interval; used for persistence.
...And 3 more matches
nsIWebProgressListener
face is implemented by clients wishing to listen in on the progress associated with the loading of asynchronous requests in the context of a nsiwebprogress instance as well as any child nsiwebprogress instances.
...on corresponds to the start or stop of activity for restoring a previously-rendered presentation.
...an insecure channel.
...And 3 more matches
Using the clipboard
function copystring that can be used to copy a string.
...;1"] .getservice(components.interfaces.nsiclipboardhelper); gclipboardhelper.copystring("put me on the clipboard, please."); this example will first create a clipboard helper and then copy a short string to the clipboard.
...org/widget/transferable;1 which implements the interface nsitransferable.
...And 3 more matches
Working with Multiple Versions of Interfaces
lf = static_cast<hwnd>(wh); } return self; } there is good news and bad news.
...lan b inside firefox 2 happily runs to completion.
...ust interface identifier mismatch, but class declaration mismatch.
...And 3 more matches
Working with out parameters
when working with xpcom components, you might come across method declarations like the following one: [scriptable, uuid(8b5314bc-db01-11d2-96ce-0060b0fb9956)] interface nsitransferable : nsisupports { ...
... when working with xpcom components, you might come across method declarations like the following one: [scriptable, uuid(8b5314bc-db01-11d2-96ce-0060b0fb9956)] interface nsitransferable : nsisupports { ...
...criptable, uuid(8b5314bc-db01-11d2-96ce-0060b0fb9956)] interface nsitransferable : nsisupports { ...
...And 3 more matches
Mail event system
listener() and removelistener().
...n.
...ice that acts as a broadcaster for folder notifications.
...And 3 more matches
ArrayType
er, and array types, this should be a valid c type expression.
...es, this should be a valid c type expression.
... property type description constructor ctype the data type of the cdata object, as a ctype.
...And 3 more matches
Initialization and Destruction - Plugins
« previousnext » this chapter describes the methods that provide the basic processes of initialization, instance creation and destruction, and shutdown.
...ion npp_destroy to tell the plug-in that the instance is being deleted.
...loaded and before the first instance is created.
...And 3 more matches
Memory - Plugins
as needed by the plug-in.
...pace with the browser, they can take advantage of any customized memory-allocation scheme the browser has.
... more efficiently because it knows how much memory the plug-in is using at any given time.
...And 3 more matches
Gecko Plugin API Reference - Plugins
an http server uploading files to an ftp server sending mail 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.
...nd 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.
... the plug-in api interact, see the how plug-ins work and overview of plug-in structure sections in the introduction.
...And 3 more matches
AddressErrors - Web APIs
t connected to an actual payment handler, so no payments are actually processed).
... to an organization that will be sending a "thank you" gift to the donor, so it requests shipping information along with allowing the donation payment itself.
...press, and discover.
...And 3 more matches
Blob.stream() - Web APIs
Web › API › Blob › stream
the blob interface's stream() method returns a readablestream which upon reading returns the data contained within the blob.
...n reading returns the data contained within the blob.
...stream = blob.stream(); parameters none.
...And 3 more matches
CanvasRenderingContext2D.lineTo() - Web APIs
the canvasrenderingcontext2d method lineto(), part of the canvas 2d api, adds a straight line to the current sub-path by connecting the sub-path's last point to the specified (x, y) coordinates.
... the canvasrenderingcontext2d method lineto(), part of the canvas 2d api, adds a straight line to the current sub-path by connecting the sub-path's last point to the specified (x, y) coordinates.
... the canvasrenderingcontext2d method lineto(), part of the canvas 2d api, adds a straight line to the current sub-path by connecting the sub-path's last point to the specified (x, y) coordinates.
...And 3 more matches
CharacterData - Web APIs
nextelementsibling read only returns the element immediately following the specified one in its parent's children list, or null if the specified element is the last one in the list.
... read only returns the element immediately following the specified one in its parent's children list, or null if the specified element is the last one in the list.
...mentsibling read only returns the element immediately prior to the specified one in its parent's children list, or null if the specified element is the first one in the list.
...And 3 more matches
Clipboard - Web APIs
Web › API › Clipboard
the clipboard interface implements the clipboard api, providing—if the user grants permission—both read and write access to the contents of the system clipboard.
... calls to the methods of the clipboard object will not succeed if the user hasn't granted the needed permissions using the permissions api and the "clipboard-read" or "clipboard-write" permission as appropriate.
... this can be between documents or applications it is usually implemented as an anonymous, temporary data buffer, sometimes called the paste buffer, that can be accessed from most or all programs within the environment via defined programming interfaces.
...And 3 more matches
DataTransfer.clearData() - Web APIs
the datatransfer.cleardata() method removes the drag operation's drag data for the given type.
... the datatransfer.cleardata() method removes the drag operation's drag data for the given type.
... the datatransfer.cleardata() method removes the drag operation's drag data for the given type.
...And 3 more matches
Locating DOM elements using selectors - Web APIs
the selectors api provides methods that make it quick and easy to retrieve element nodes from the dom by matching against a set of selectors.
... the selectors api provides methods that make it quick and easy to retrieve element nodes from the dom by matching against a set of selectors.
... the node's subtree.
...And 3 more matches
Element.setAttributeNode() - Web APIs
the setattributenode() method adds a new attr node to the specified element.
...iv> <div id="two">two</div> javascript let d1 = document.getelementbyid('one'); let d2 = document.getelementbyid('two'); let a = d1.getattributenode('align'); 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.
...entbyid('two'); let a = d1.getattributenode('align'); 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.
...And 3 more matches
Event.initEvent() - Web APIs
Web › API › Event › initEvent
the event.initevent() method is used to initialize the value of an event created using document.createevent().
... the event.initevent() method is used to initialize the value of an event created using document.createevent().
... the event.initevent() method is used to initialize the value of an event created using document.createevent().
...And 3 more matches
FileSystemDirectoryEntry.getDirectory() - Web APIs
the filesystemdirectoryentry interface's method getdirectory() returns a filesystemdirectoryentry object corresponding to a directory contained somewhere within the directory subtree rooted at the directory on which it's called.
...rectory() returns a filesystemdirectoryentry object corresponding to a directory contained somewhere within the directory subtree rooted at the directory on which it's called.
...called, describing which directory entry to return.
...And 3 more matches
FileSystemDirectoryEntry.getFile() - Web APIs
} the filesystemdirectoryentry interface's method getfile() returns a filesystemfileentry object corresponding to a file contained somewhere within the directory subtree rooted at the directory on which it's called.
...directoryentry interface's method getfile() returns a filesystemfileentry object corresponding to a file contained somewhere within the directory subtree rooted at the directory on which it's called.
...ecifying the path, relative to the directory on which the method is called, describing which file's entry to return.
...And 3 more matches
FileSystemEntry - Web APIs
the filesystementry interface of the file and directory entries api represents a single in a file system.
... basic concepts you don't create filesystementry objects directly.
...based on this interface through other apis.
...And 3 more matches
Fullscreen API - Web APIs
the fullscreen api adds methods to present a specific element (and its descendants) in full-screen mode, and to exit full-screen mode once it is no longer needed.
...sers, with many requiring vendor prefixes and/or not implementing the latest specification.
...below for details on support for this api.
...And 3 more matches
GainNode - Web APIs
Web › API › GainNode
s exactly one input and one output, both with the same number of channels.
...rpolation methods on the audioparam interface.
...erpretation "speakers" constructor gainnode() creates a new instance of a gainnode object.
...And 3 more matches
HTMLCanvasElement - Web APIs
the htmlcanvaselement interface provides properties and methods for manipulating the layout and presentation of <canvas> elements.
... the htmlcanvaselement interface provides properties and methods for manipulating the layout and presentation of <canvas> elements.
...s being printed.
...And 3 more matches
HTMLFormElement.submit() - Web APIs
the htmlformelement.submit() method submits a given <form>.
... the htmlformelement.submit() method submits a given <form>.
... the htmlformelement.submit() method submits a given <form>.
...And 3 more matches
HTMLMediaElement.seekToNextFrame() - Web APIs
the htmlmediaelement.seektonextframe() method asynchronously advances the the current play position to the next frame in the media.
... the htmlmediaelement.seektonextframe() method asynchronously advances the the current play position to the next frame in the media.
... the htmlmediaelement.seektonextframe() method asynchronously advances the the current play position to the next frame in the media.
...And 3 more matches
HTMLElement.focus() - Web APIs
the htmlelement.focus() method sets focus on the specified element, if it can be focused.
...y: preventscroll optional a boolean value indicating whether or not the browser should scroll the document to bring the newly-focused element into view.
...default) means that the browser will scroll the element into view after focusing it.
...And 3 more matches
HTMLScriptElement - Web APIs
html <script> elements expose the htmlscriptelement interface, which provides special properties and methods for manipulating the behavior and execution of <script> elements (beyond the inherited htmlelement interface).
... instead of the default blocking behavior.
... the script element.
...And 3 more matches
HTMLTextAreaElement - Web APIs
the htmltextareaelement interface provides special properties and methods for manipulating the layout and presentation of <textarea> elements.
...ap string: returns / sets the wrap html attribute, indicating how the control wraps text.
...the element (but does not focus it).
...And 3 more matches
IDBDatabase.createObjectStore() - Web APIs
the createobjectstore() method of the idbdatabase interface creates and returns a new object store or index.
... the createobjectstore() method of the idbdatabase interface creates and returns a new object store or index.
...f the idbdatabase interface creates and returns a new object store or index.
...And 3 more matches
IDBDatabaseSync - Web APIs
important: the synchronous version of the indexeddb api was originally intended for use only with web workers, and was eventually removed from the spec because its need was questionable.
...he human-readable description of the connected database.
...rs name the name of a new object store.
...And 3 more matches
IDBObjectStore.getAll() - Web APIs
the getall() method of the idbobjectstore interface returns an idbrequest object containing all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
... the getall() method of the idbobjectstore interface returns an idbrequest object containing all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
...the specified parameter or all objects in the store if no parameters are given.
...And 3 more matches
IDBObjectStore.put() - Web APIs
the put() method of the idbobjectstore interface updates a given record in a database, or inserts a new record if the given item does not already exist.
...cloned value in the object store.
...re.
...And 3 more matches
startSoftwareUpdate - Web APIs
summary triggers the downloading and installation of the software at the specified url.
... summary triggers the downloading and installation of the software at the specified url.
...ary triggers the downloading and installation of the software at the specified url.
...And 3 more matches
MediaRecorder - Web APIs
d black frames for video.
...mediarecorder.audiobitspersecond read only returns the audio encoding bit rate in use.
...hods mediarecorder.pause() pauses the recording of media.
...And 3 more matches
MouseEvent - Web APIs
the mouseevent interface represents events that occur due to the user interacting with a pointing device (such as a mouse).
...vent.webkitforce read only the amount of pressure applied when clicking mouseevent.x read only alias for mouseevent.clientx.
...unt of pressure applied when clicking mouseevent.x read only alias for mouseevent.clientx.
...And 3 more matches
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.
...data and provide names for different sets of vertex data.
...for more information, see also using extensions in the webgl tutorial.
...And 3 more matches
PaymentRequestEvent - Web APIs
f the the payment request api is the object passed to a payment handler when a paymentrequest is made.
... to a payment handler when a paymentrequest is made.
...quest is made.
...And 3 more matches
PerformanceEntry.toJSON() - Web APIs
the tojson() method is a serializer; it returns a json representation of the performance entry object.
... the tojson() method is a serializer; it returns a json representation of the performance entry object.
... return value json a json object that is the serialization of the performanceentry object.
...And 3 more matches
Using the Permissions API - Web APIs
better user experience as far as permissions are concerned.
...the source code on github.
...ocation.getcurrentposition(revealposition,positiondenied,geosettings); } else if (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.
...And 3 more matches
PushMessageData - Web APIs
the pushmessagedata interface of the push api provides methods which let you retrieve the push data sent by a server in various formats.
... the pushmessagedata interface of the push api provides methods which let you retrieve the push data sent by a server in various formats.
... the pushmessagedata interface of the push api provides methods which let you retrieve the push data sent by a server in various formats.
...And 3 more matches
Request() - Web APIs
Web › API › Request › Request
the constructor less likely to throw exceptions: if this object exists on another origin to the constructor call, the request.referrer is stripped out.
... likely to throw exceptions: if this object exists on another origin to the constructor call, the request.referrer is stripped out.
... method: the request method, e.g., get, post.
...And 3 more matches
Using Service Workers - Web APIs
ight expect, but the rest of the code is a little different: let body = document.queryselector('body'); let myimage = new image(); imgload('mylittlevader.jpg').then((response) => { var imageurl = window.url.createobjecturl(response); myimage.src = imageurl; body.appendchild(myimage); }, (error) => { console.log(error); }); on to the end of the function call, we chain the promise then() method, which contains two functions — the first one is executed when the promise successfully resolves, and the second is called when the promise is rejected.
...ror); }); on to the end of the function call, we chain the promise then() method, which contains two functions — the first one is executed when the promise successfully resolves, and the second is called when the promise is rejected.
...pp.js', './sw-test/image-list.js', './sw-test/star-wars-logo.jpg', './sw-test/gallery/', './sw-test/gallery/bountyhunters.jpg', './sw-test/gallery/mylittlevader.jpg', './sw-test/gallery/snowtroopers.jpg' ]); }) ); }); here we add an install event listener to the service worker (hence self), and then chain a extendableevent.waituntil() method onto the event — this ensures that the service worker will not install until the code inside waituntil() has successfully occurred.
...And 3 more matches
Service Worker API - Web APIs
ose assumptions are not exactly right; you have granular control over everything.
...ant for running your app offline.
...ime to clean up old caches and other things associated with the previous version of your service worker.
...And 3 more matches
Storage Access API - Web APIs
the storage access api provides a way for embedded, cross-origin content to gain unrestricted access to storage that it would normally only have access to in a first-party context (we refer to this as an origin’s first-party storage).
...s who wish to continue to interact with embedded content are forced to greatly relax their blocking policy for resources loaded from all embedded origins and possibly across all websites.
... their blocking policy for resources loaded from all embedded origins and possibly across all websites.
...And 3 more matches
TextRange - Web APIs
Web › API › TextRange
e distance between the top edge of the rectangle that binds the textrange object and the top edge that completely contains the textrange object.
...f the selection, the contents will be placed in the corresponding position of the parent element instead of the child element.
...exttobeselected" <!doctype html> <html> <head> <title>textrange example</title> </head> <body> <p id="test">sometexttobeselected</p> </body> </html> notes use textrange to operate the selection valid only under ie9.
...And 3 more matches
WebGL2RenderingContext.uniform[1234][uif][v]() - Web APIs
the webgl2renderingcontext.uniform[1234][uif][v]() methods of the webgl api specify values of uniform variables.
...void gl.uniform3uiv(location, data, optional srcoffset, optional srclength); void gl.uniform4uiv(location, data, optional srcoffset, optional srclength); parameters location a webgluniformlocation object containing the location of the uniform attribute to modify.
...tional srcoffset, optional srclength); void gl.uniform4uiv(location, data, optional srcoffset, optional srclength); parameters location a webgluniformlocation object containing the location of the uniform attribute to modify.
...And 3 more matches
WebGL2RenderingContext - Web APIs
for the drawing surface of an html <canvas> element.
...xture image in a compressed format.
...ee-dimensional sub-rectangle for a texture image in a compressed format.
...And 3 more matches
Window.getSelection() - Web APIs
the window.getselection() method returns a selection object representing the range of text selected by the user or the current position of the caret.
...ion object with selection.type set to none.
...the range } notes string representation of the selection object in javascript, when an object is passed to a function expecting a string (like window.alert() or document.write()), the object's tostring() method is called and the returned value is passed to the function.
...And 3 more matches
XDomainRequest - Web APIs
u need to use standard http access control.
...d both get and post requests.
...object, which can then be used to make and manage these requests.
...And 3 more matches
Sending and Receiving Binary Data - Web APIs
var filestream = load_binary_resource(url); var abyte = filestream.charcodeat(x) & 0xff; // throw away high-order byte (f7) the example above fetches the byte at offset x within the loaded binary data.
...d range for x is from 0 to filestream.length-1.
...use any binary data you'd like, of course.
...And 3 more matches
XMLHttpRequest.open() - Web APIs
the xmlhttprequest method open() initializes a newly-created request, or re-initializes an existing one.
... the xmlhttprequest method open() initializes a newly-created request, or re-initializes an existing one.
... the xmlhttprequest method open() initializes a newly-created request, or re-initializes an existing one.
...And 3 more matches
XMLHttpRequest.send() - Web APIs
the xmlhttprequest method send() sends the request to the server.
... the xmlhttprequest method send() sends the request to the server.
... the xmlhttprequest method send() sends the request to the server.
...And 3 more matches
Grid template areas - CSS: Cascading Style Sheets
in the previous guide we looked at grid lines, and how to position items against those lines.
... in the previous guide we looked at grid lines, and how to position items against those lines.
... items against those lines.
...And 3 more matches
Linear-gradient Generator - CSS: Cascading Style Sheets
this.r = obj.r; this.g = obj.g; this.b = obj.b; this.a = obj.a; this.hue = obj.hue; this.saturation = obj.saturation; this.value = obj.value; this.format = '' + obj.format; this.lightness = obj.lightness; }; color.prototype.setformat = function setformat(format) { if (format === 'hsv') this.format = 'hsv'; if (format === 'hsl') this.format = 'hsl'; }; /*========== methods to set color properties ==========*/ color.prototype.isvalidrgbvalue = function isvalidrgbvalue(value) { return (typeof(value) === 'number' && isnan(value) === false && value >= 0 && value <= 255); }; color.prototype.setrgba = function setrgba(red, green, blue, alpha) { if (this.isvalidrgbvalue(red) === false || this.isvalidrgbvalue(green) === false || this.isvalidrgbvalue(blue...
...valid !== true) return; if (value[0] === '#') value = value.slice(1, value.length); if (value.length === 3) value = value.replace(/([0-9a-f])([0-9a-f])([0-9a-f])/i,'$1$1$2$2$3$3'); this.r = parseint(value.substr(0, 2), 16); this.g = parseint(value.substr(2, 2), 16); this.b = parseint(value.substr(4, 2), 16); this.alpha = 1; this.rgbtohsv(); }; /*========== conversion methods ==========*/ color.prototype.converttohsl = function converttohsl() { if (this.format === 'hsl') return; this.setformat('hsl'); this.rgbtohsl(); }; color.prototype.converttohsv = function converttohsv() { if (this.format === 'hsv') return; this.setformat('hsv'); this.rgbtohsv(); }; /*========== update methods ==========*/ color.prototype.updatergb = function updater...
...lta) { if (cmax === red ) { hue = ((green - blue) / delta); } if (cmax === green ) { hue = 2 + (blue - red) / delta; } if (cmax === blue ) { hue = 4 + (red - green) / delta; } if (cmax) saturation = delta / x; } this.hue = 60 * hue | 0; if (this.hue < 0) this.hue += 360; this.saturation = (saturation * 100) | 0; this.lightness = (lightness * 100) | 0; }; /*========== get methods ==========*/ color.prototype.gethexa = function gethexa() { var r = this.r.tostring(16); var g = this.g.tostring(16); var b = this.b.tostring(16); if (this.r < 16) r = '0' + r; if (this.g < 16) g = '0' + g; if (this.b < 16) b = '0' + b; var value = '#' + r + g + b; return value.touppercase(); }; color.prototype.getrgba = function getrgba() { var rgb = '(' + this.r + ', ' ...
...And 3 more matches
<input type="radio"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › radio
n individual values on and off.
... defined by giving each of radio buttons in the group the same name.
...needs to ask the user for their preferred contact method, you might create three radio buttons, each with the name property set to contact but one with the value email, one with the value phone, and one with the value mail.
...And 3 more matches
If-None-Match - HTTP
the if-none-match http request header makes the request conditional.
... the if-none-match http request header makes the request conditional.
...he if-none-match http request header makes the request conditional.
...And 3 more matches
307 Temporary Redirect - HTTP
Web › HTTP › Status › 307
http 307 temporary redirect redirect status response code indicates that the resource requested has been temporarily moved to the url given by the location headers.
... http 307 temporary redirect redirect status response code indicates that the resource requested has been temporarily moved to the url given by the location headers.
...temporary redirect redirect status response code indicates that the resource requested has been temporarily moved to the url given by the location headers.
...And 3 more matches
Grammar and types - JavaScript
strings.
...value representing a number is in memory as a string, there are methods for conversion.
...propertynames.''); // syntaxerror: unexpected string console.log(unusualpropertynames['']); // an empty string console.log(unusualpropertynames.!); // syntaxerror: unexpected token !
...And 3 more matches
Introduction - JavaScript
numeric, boolean, and string values.
...bject model.
...c inheritance; that is, what is inherited can vary for individual objects.
...And 3 more matches
constructor - JavaScript
the constructor method is a special method of a class for creating and initializing an object of that class.
...ect of that class.
...-( (details: ${this.message}, code: ${this.code})`; } } try { throw new validationerror("not a valid phone number"); } catch (error) { if (error instanceof validationerror) { console.log(error.name); // now this is validationerror!
...And 3 more matches
Warning: String.x is deprecated; use String.prototype.x instead - JavaScript
warning: string.trim is deprecated; use string.prototype.trim instead warning: string.trimleft is deprecated; use string.prototype.trimleft instead warning: string.trimright is deprecated; use string.prototype.trimright instead error type warning.
...g.trimleft is deprecated; use string.prototype.trimleft instead warning: string.trimright is deprecated; use string.prototype.trimright instead error type warning.
....prototype.trimleft instead warning: string.trimright is deprecated; use string.prototype.trimright instead error type warning.
...And 3 more matches
Arrow function expressions - JavaScript
an arrow function expression is a syntactically compact alternative to a regular function expression, although without its own bindings to the this, arguments, super, or new.target keywords.
...e `length` is used as the property we want to retrieve from the object.
...o apply strict mode, it does throw an error when attempting to assign an undeclared variable.
...And 3 more matches
Array.prototype.indexOf() - JavaScript
the indexof() method returns the first index at which a given element can be found in the array, or -1 if it is not present.
... the end of the array.
...is still searched from front to back.
...And 3 more matches
Number - JavaScript
number is a primitive wrapper object used to represent and manipulate numbers like 37 or -9.25.
...ntable number—that is, the positive number closest to zero (without actually being zero).
...sed value is a finite number.
...And 3 more matches
Object.getOwnPropertyDescriptors() - JavaScript
the object.getownpropertydescriptors() method returns all own property descriptors of a given object.
... the object.getownpropertydescriptors() method returns all own property descriptors of a given object.
...defined if there is no setter (accessor descriptors only).
...And 3 more matches
Promise.any() - JavaScript
) takes an iterable of promise objects and, as soon as one of the promises in the iterable fulfils, returns a single promise that resolves with the value from that promise.
...ises in the iterable fulfils, returns a single promise that resolves with the value from that promise.
... value an already resolved promise if the iterable passed is empty.
...And 3 more matches
RegExp.prototype[@@replace]() - JavaScript
the [@@replace]() method replaces some or all matches of a this pattern in a string by a replacement, and returns the result of the replacement as a new string.
...string as a parameter section in string.prototype.replace() page.
...on as a parameter section in string.prototype.replace() page.
...And 3 more matches
String.prototype.indexOf() - JavaScript
the indexof() method returns the index within the calling string object of the first occurrence of the specified value, starting the search at fromindex.
...ithin the calling string object of the first occurrence of the specified value, starting the search at fromindex.
...'blue whale'.indexof('blute') // returns -1 'blue whale'.indexof('whale', 0) // returns 5 'blue whale'.indexof('whale', 5) // returns 5 'blue whale'.indexof('whale', 7) // returns -1 'blue whale'.indexof('') // returns 0 'blue whale'.indexof('', 9) // returns 9 'blue whale'.indexof('', 10) // returns 10 'blue whale'.indexof('', 11) // returns 10 the indexof() method is case sensitive.
...And 3 more matches
Digital audio concepts - Web media technologies
bout.
... we respond to those sounds, given the context and content of the sound.
...n decoding the data, the result be identical to the source audio?
...And 3 more matches
Using custom elements - Web Components
ge (76).
... info span info.textcontent = this.getattribute('data-text'); // create some css to apply to the shadow dom const style = document.createelement('style'); style.textcontent = '.wrapper {' + // css truncated for brevity // attach the created elements to the shadow dom this.shadowroot.append(style,wrapper); finally, we register our custom element on the customelementregistry using the define() method we mentioned earlier — in the parameters we specify the element name, and then the class name that defines its functionality: customelements.define('popup-info', popupinfo); it is now available to use on our page.
...e source code.
...And 3 more matches
<xsl:output> - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element › output
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:output> element controls the characteristics of the output document.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:output> element controls the characteristics of the output document.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:output> element controls the characteristics of the output document.
...And 3 more matches
widget - Archive of obsolete content
example, this widget contains an image, so it looks like a simple icon: require("sdk/widget").widget({ id: "mozilla-icon", label: "my mozilla widget", contenturl: "http://www.mozilla.org/favicon.ico" }); you can make contenturl point to an html or icon file which you have packaged inside your add-on.
...ges) for the widget has been loaded, at the time the window.onload event fires this property is optional and defaults to "end".
... represents a widget instance specific to one browser window.
...And 2 more matches
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.
... the following methods of downloading files may not work as expected after firefox 26, and should no longer be used.
...tener property of the nsiwebbrowserpersist instance to an object that implements nsiauthprompt.
...And 2 more matches
JS XPCOM - Archive of obsolete content
here are a few useful snippets of code for dealing with xpcom components in javascript.
...h creation gives you a completely new com object) or as services (each access gives you the same com object, often called a singleton).
...g/file/local;1", "nsifile", "initwithpath"); var file = new nsfile(filepath); they can also be created and initialized manually: var file = components.classes["@mozilla.org/file/local;1"] .createinstance(components.interfaces.nsifile); file.initwithpath(filepath); this creates a new instance of the object with contract id @mozilla.org/file/local;1 and allows you to call methods from the nsifile interface on it.
...And 2 more matches
Hiding browser chrome - Archive of obsolete content
there are times in which an extension may find it useful to hide browser chrome (that is, toolbars, the location bar, and so forth), in order to reduce clutter when presenting a particular user interface.
...tension may find it useful to hide browser chrome (that is, toolbars, the location bar, and so forth), in order to reduce clutter when presenting a particular user interface.
...functionality of firefox itself as well as other extensions.
...And 2 more matches
Inline options - Archive of obsolete content
ons.
...as the same subject and data as above, to find out when the ui is about to be removed.
...moved.
...And 2 more matches
Intercepting Page Loads - Archive of obsolete content
to, as specified in the observer notifications page: topic description http-on-modify-request called as an http request is made.
...e text before it gets to the original requester.
...too hard to follow.
...And 2 more matches
Notes on HTML Reflow - Archive of obsolete content
or example, a <div> with a constrained width (e.g., set via the css width property) would note this in the reflow state object before flowing its children.
...n the frame hierarchy.
...queue and dispatching it to its target frame.
...And 2 more matches
JavaScript crypto - Archive of obsolete content
text.
...ve", onsmartcardchange, false); } document.body.onload = register; document.body.onunload = deregister; </script> with the above example, your web site will automatically reload anytime a smartcard is inserted or removed.
...a crmf request object.
...And 2 more matches
open - Archive of obsolete content
warning: this section describes the file component of the spidermonkey javascript interpreter.
...tandard, not generally compiled into distributions, is a potential source of huge security holes, and not well tested.
...urce of huge security holes, and not well tested.
...And 2 more matches
Anonymous Content - Archive of obsolete content
ument.
...mous content, this scoping can be taken to an arbitrary level of nesting.
...licit content is said to be at the document-level scope.
...And 2 more matches
Binding Attachment and Detachment - Archive of obsolete content
hed.
...to empty string.
...nding and document.removebinding; these were subsequently discarded as redundant and not implemented.
...And 2 more matches
dirCreate - Archive of obsolete content
dircreate creates a new directory.
... dircreate creates a new directory.
...( filespecobject dirtocreate ); parameters the dircreate method has the following parameters: dirtocreate a filespecobject representing the pathname of the directory to create.
...And 2 more matches
getLastError - Archive of obsolete content
getlasterror returns the most recent nonzero error code.
... getlasterror returns the most recent nonzero error code.
... getlasterror returns the most recent nonzero error code.
...And 2 more matches
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.
... location in the key hierarchy, such as "software\\netscape\\navigator\\mail".
...And 2 more matches
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.
... path to the appropriate location in the key hierarchy, such as "software\\netscape\\navigator\\mail".
...And 2 more matches
Custom Tree Views - Archive of obsolete content
s this: <tree id="my-tree" flex="1"> <treecols> <treecol id="namecol" label="name" flex="1"/> <treecol id="datecol" label="date" flex="1"/> </treecols> <treechildren/> </tree> to assign data to be displayed in the tree, the view object needs to be created which is used to indicate the value of each cell, the total number of rows plus other optional information.
...in the tree, the view object needs to be created which is used to indicate the value of each cell, the total number of rows plus other optional information.
...all methods of the view to get the information that it needs to display.
...And 2 more matches
Introduction to XBL - Archive of obsolete content
vides no means in which you can change how an element works (or add a new element which can be reused).
...croll bar.
...xul elements that make up a scroll bar.
...And 2 more matches
XULBrowserWindow - Archive of obsolete content
the xulbrowserwindow object provides methods and properties that let the browser update the user interface of the enclosing xul window.
...dow object provides methods and properties that let the browser update the user interface of the enclosing xul window.
...ow.
...And 2 more matches
preferences - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] overview <preferences> is a container for <preference> elements.
... « xul reference home [ examples | attributes | properties | methods | related ] overview <preferences> is a container for <preference> elements.
...s 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 changed (non-bubbling) event to the specified preference element.
...And 2 more matches
prefpane - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a single preference panel in a prefwindow.
...ile.
...o the menulist.value property upon user selection of the menuitem.
...And 2 more matches
promptBox - Archive of obsolete content
the promptbox object represents the tab-modal prompts (or alerts) on a given tab.
... the promptbox object represents the tab-modal prompts (or alerts) on a given tab.
... prompts (or alerts) on a given tab.
...And 2 more matches
textbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] an input field where the user can enter text.
..., size, spellcheck, tabindex, timeout, type, value, wrap, wraparound properties accessibletype, clickselectsall, decimalplaces, decimalsymbol, defaultvalue, disabled, editor, emptytext, increment, inputfield, label, max, maxlength, min, placeholder, readonly, searchbutton, selectionend, selectionstart, size, spinbuttons, tabindex, textlength, timeout, type, value, valuenumber, wraparound methods decrease, increase, reset, select, setselectionrange style classes plain examples <vbox> <label control="your-name" value="enter your name:"/> <textbox id="your-name" value="john"/> </vbox> attributes cols type: integer for multiline textboxes, the number of columns to display.
..., then the user cannot change the value of the element.
...And 2 more matches
toolbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a container for toolbars.
...perty on the toolbar.
... within the toolbox.
...And 2 more matches
tooltip - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] this element is used for the tooltip popups.
...tip popups.
...s will not happen and the tooltip will only hide when the user moves the mouse to another element.
...And 2 more matches
Using SOAP in XULRunner 1.9 - Archive of obsolete content
ow enough about soap to implement a robust client in an afternoon.
...ed around easily.
...le.com/soap/namespace'; var method = 'foo'; var params = { 'foo': 'bar', 'baz': 'bang' }; var callback = function(obj) { components.utils.reporterror(obj.tosource()); }; soapclient.proxy = url; var body = new soapobject(method); body.ns = ns; for (var k in params) { body.appendchild(new soapobject(k).val(params[k])); } var req = new soaprequest(url, body); req.action = ns + '#' + method; soapclient.sendrequest(req, callback); diff between jqsoapclient.js and sasoapclient.js 42c42 < var jsout = $.xmltojson(xdata.responsexml); --- > var jsout = xmlobjectifier.xmltojson(xdata.responsexml); 46,60c46,62 < $.ajax({ < type: "post", < url: soapclient.proxy, < datatype: "xml", < processdata: false, < data: content, < complete: getresponse, < ...
...And 2 more matches
The global XML object - Archive of obsolete content
object has several properties that allow you to customize parsing and serialization of e4x.
...stomize parsing and serialization of e4x.
...ill remember the settings of the xml object from the time of their creation.
...And 2 more matches
New in JavaScript 1.3 - Archive of obsolete content
ascript language versions up to 1.3.
...e.prototype.setutcminutes() date.prototype.setutcseconds() date.prototype.setutcmilliseconds() other new features strict equality operators unicode support a javascript console was introduced.
...onstructor date(year, month, day, [,hours [, minutes [, seconds [, milliseconds ]]]]) additional method parameters: setmonth(month[, date]) sethours(hours[, min[, sec[, ms]]]) setminutes(min[, sec[, ms]]) setseconds(sec[, ms]) the length of an array (property length) is now an unsigned, 32-bit integer.
...And 2 more matches
ECMAScript 5 support in Mozilla - Archive of obsolete content
1.
...es.
... the features supported by different versions of mozilla's javascript runtime.
...And 2 more matches
Object.prototype.watch() - Archive of obsolete content
deprecation warning: do not use watch() and unwatch()!
... deprecation warning: do not use watch() and unwatch()!
...l) whenever prop is set and storing the return value in that property.
...And 2 more matches
handler.enumerate() - Archive of obsolete content
the handler.enumerate() method used to be a trap for for...in statements, but has been removed from the ecmascript standard in es2016 and is deprecated in browsers.
... the handler.enumerate() method used to be a trap for for...in statements, but has been removed from the ecmascript standard in es2016 and is deprecated in browsers.
...o be a trap for for...in statements, but has been removed from the ecmascript standard in es2016 and is deprecated in browsers.
...And 2 more matches
Packages - Archive of obsolete content
e is discouraged since it could be removed at any time.
...using it.
...edefined javascript object.
...And 2 more matches
Back to the Server: Server-Side JavaScript On The Rise - Archive of obsolete content
he line var x = new xml( str ); from here, the xml is accessible via dot notation.
...r engine, aptana jaxer fuses the client-side with the server-side, creating a unified “same language” development platform.
...ete dom before trying to access it.
...And 2 more matches
Windows Media in Netscape - Archive of obsolete content
l.
... detection mechanisms won't work owing to a bug in netscape 7.1.
...ws media 9 series sdk.
...And 2 more matches
Create the Canvas and draw on it - Game development
...
...fy the coordinates of the top left corner of the rectangle on the canvas, while the second two specify the width and height of the rectangle.
... the fill() method to paint the square, in our case, red.
...And 2 more matches
Animations and tweens - Game development
in your /img directory.
...ndicating to the program how to chop it up to get the individual frames.
... phaser extracts these and stores references to them in an array — positions 0, 1, and 2.
...And 2 more matches
CORS - MDN Web Docs Glossary: Definitions of Web-related terms
cors headers access-control-allow-origin indicates whether the response can be shared.
...ss-control-allow-origin indicates whether the response can be shared.
...-allow-origin indicates whether the response can be shared.
...And 2 more matches
Mixin - MDN Web Docs Glossary: Definitions of Web-related terms
a mixin is a class or interface in which some or all of its methods and/or properties are unimplemented, requiring that another class or interface provide the missing implementations.
... a mixin is a class or interface in which some or all of its methods and/or properties are unimplemented, requiring that another class or interface provide the missing implementations.
... a mixin is a class or interface in which some or all of its methods and/or properties are unimplemented, requiring that another class or interface provide the missing implementations.
...And 2 more matches
Preflight request - MDN Web Docs Glossary: Definitions of Web-related terms
a cors preflight request is a cors request that checks to see if the cors protocol is understood and a server is aware using specific methods and headers.
... a cors preflight request is a cors request that checks to see if the cors protocol is understood and a server is aware using specific methods and headers.
...cally issued by a browser and in normal cases, front-end developers don't need to craft such requests themselves.
...And 2 more matches
Vendor Prefix - MDN Web Docs Glossary: Definitions of Web-related terms
a) -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.
... 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.
...: 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.
...And 2 more matches
Beginner's guide to media queries - Learn web development
ther options you can put inside the content attribute of the viewport meta tag — see using the viewport meta tag to control layout on mobile browsers for more details.
...margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } .grid li { border: 1px solid #666; padding: 10px; } open the grid layout example in the browser, or view the source.
...er, make the screen wider and narrower to see the number of column tracks change.
...And 2 more matches
Functions — reusable blocks of code - Learn web development
languages like javascript.
...browser functions are not part of the core javascript language — some are defined as part of browser apis, which build on top of the default language to provide even more functionality (refer to this early section of our course for more descriptions).
... in more detail in a later module.
...And 2 more matches
Video and Audio APIs - Learn web development
} } here we use an if statement to check whether the video is paused.
...er also want to stop the video when it finishes playing — this is marked by the ended event firing, so we also set up a listener to run the function on that event firing too.
...ward functionality and replace it with the rewind functionality.
...And 2 more matches
Basic math in JavaScript — numbers and operators - Learn web development
both our original variables are of the same datatype.
...two lines as shown: typeof myint; typeof myfloat; you should get "number" returned in both cases — this makes things a lot easier for us than if different numbers had different data types, and we had to deal with them in different ways.
...ers.
...And 2 more matches
Test your skills: Object basics - Learn web development
our 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).
...s active, and style, and the title and release date of their first album.
...ou to return to the cat object literal from task #1.
...And 2 more matches
Aprender y obtener ayuda - Learn web development
t effective ways to try and get help so you can progress in your work.
...do so as part of this course when you are learning!
...r example, if you are collaborating on learning with someone else who isn't in the same location, or are sending it someone to ask for help with it.
...And 2 more matches
TypeScript support in Svelte - Learn web development
.svelte.
...irst instance of node with node: htmlelement.
...res.ts, like so: import { localstore } from './localstore' start by renaming the file to localstore.ts.
...And 2 more matches
Creating our first Vue component - Learn web development
around javascript primitive types), and perform simple prop validation.
...ned inside the component object, we can now use these variable values inside our template.
...efault { props: { label: { required: true, type: string }, done: { default: false, type: boolean } }, data() { return { isdone: this.done }; } }; vue does a little magic here — it binds all of your props directly to the component instance, so we don’t have to call this.props.done.
...And 2 more matches
Application cache implementation overview
ationcacheservice::createapplicationcache().
...date::processnexturi().
...load.
...And 2 more matches
AddonListener
addonlisteners can be registered with addaddonlistener() and will then receive notification of changes to the add-ons currently installed.
... addonlisteners can be registered with addaddonlistener() and will then receive notification of changes to the add-ons currently installed.
... addonlisteners can be registered with addaddonlistener() and will then receive notification of changes to the add-ons currently installed.
...And 2 more matches
DownloadSummary
provides an aggregated view on the contents of a downloadlist.
...mber of bytes currently transferred is reported as part of this property.
...ansferred is reported as part of this property.
...And 2 more matches
PromiseUtils.jsm
the promiseutils.jsm javascript code module offers some useful functions related to dom promise.
... the promiseutils.jsm javascript code module offers some useful functions related to dom promise.
... the promiseutils.jsm javascript code module offers some useful functions related to dom promise.
...And 2 more matches
Task.jsm
you want to recurse into other task functions.
... ...
... a new task.
...And 2 more matches
Mozilla Web Developer FAQ
roprietary document objects such as document.all and document.layers are not part of the w3c dom and are not supported in mozilla.
...lity with sites authored specifically for ie.
... attribute.
...And 2 more matches
I/O Types
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 directory type prdir file descriptor types nspr represents i/o objects, such as open files and sockets, by file descriptors of type prfiledesc.
...rivate prdescidentity note that the nspr documentation follows the unix convention of using the termfiles to refer to many kinds of i/o objects.
...ity note that the nspr documentation follows the unix convention of using the termfiles to refer to many kinds of i/o objects.
...And 2 more matches
PRFileDesc
a file descriptor used to represent any open file, such as a normal file, an end point of a pipe, or a socket (end point of network communication).
... a file descriptor used to represent any open file, such as a normal file, an end point of a pipe, or a socket (end point of network communication).
... a file descriptor used to represent any open file, such as a normal file, an end point of a pipe, or a socket (end point of network communication).
...And 2 more matches
PR_CreateIOLayerStub
creates a new layer.
... creates a new layer.
... creates a new layer.
...And 2 more matches
NSS 3.15.4 release notes
/security/nss/releases/nss_3_15_4_rtm/src/ security advisories the following security-relevant bugs have been resolved in nss 3.15.4.
...llowing security-relevant bugs have been resolved in nss 3.15.4.
... the http post method.
...And 2 more matches
NSS API Guidelines
likewise, the external references to errors are made in the prototypes files, with the functions which can return them.
...ion of the public routine looks like this: nssimplement rv * nsstype_method ( nsstype *t, nssfoo *arg1, nssbar *arg2 ) { nss_clearerrorstack(); #ifdef debug if( !nssfoo_verifypointer(arg1) ) return (rv *)null; if( !nssbar_verifypointer(arg2) ) return (rv *)null; #endif /* debug */ return nsstype_method(t, arg1, arg2); } aside from error cases, all documented entry points should check pointers in a debug, wherever possible.
...ks.
...And 2 more matches
PKCS11 FAQ
Mozilla › Projects › NSS › PKCS11 › FAQ
c keys to determine if the token may have the corresponding private key while the token is not logged in.
...c key sent to the server (with wrapping?).
...s does not keep a copy of the generated key if it generates the key itself.
...And 2 more matches
Rhino requirements and limitations
requirements recent versions of rhino have only been tested with jdk 1.4 and greater.
...ks as early as 1.1.
...ter feature or an optimization level of 0 or greater, rhino must be running under a security manager that allows the definition of class loaders.
...And 2 more matches
SpiderMonkey Internals
om manager consists of a hash table associating strings uniquely with scanner/parser information such as keyword type, index in script or function literal pool, etc.
...unction literal pool, etc.
...fficient property name hashing, and as members of the root gc set for exact gc.
...And 2 more matches
Places utilities for JavaScript
izer to decide what nodes should be shown in the left pane.
... persisted information about the browser.
...vidual bookmarks).
...And 2 more matches
Creating XPCOM components
e and register it with mozilla - prompts a discussion of the relationship between components and modules, of xpcom interfaces, and of the registration process in general.
...reface who should read this book organization of the tutorial following along with the examples conventions acknowledgements an overview of xpcom the xpcom solution gecko components interfaces interfaces and encapsulation the nsisupports base interface xpcom identifiers cid contract id factories xpidl and type libraries xpcom services xpcom types method types reference counting status codes variable mappings common xpcom error codes using xpcom components component examples cookie manager the webbrowserfind component the weblock component component use in mozilla finding mozilla components using xpcom components in your cpp xpconnect: using xpcom components from script component internals creating ...
...codes using xpcom components component examples cookie manager the webbrowserfind component the weblock component component use in mozilla finding mozilla components using xpcom components in your cpp xpconnect: using xpcom components from script component internals creating components in cpp xpcom initialization xpcom registry manifests registration methods in xpcom autoregistration the shutdown process three parts of a xpcom component library xpcom glue the glue library xpcom string classes creating the component code what we'll be working on component registration the regxpcom program registration alternatives overview of the weblock module source digging in: required includes and constants identifiers i...
...And 2 more matches
Components.lastResult
components.lastresult returns the numeric nsresult code that was the result code of the last xpcom method called via xpconnect.
... components.lastresult returns the numeric nsresult code that was the result code of the last xpcom method called via xpconnect.
...components.lastresult returns the numeric nsresult code that was the result code of the last xpcom method called via xpconnect.
...And 2 more matches
IAccessibleValue
gives access to a single numerical value.
...lass that supports numerical value like progress bars and spin boxes.
...nt currentvalue ); parameters currentvalue returns the current value represented by this object.
...And 2 more matches
mozIAsyncHistory
e visits to a single url in a batch.
...@mozilla.org/browser/history;1"] .getservice(components.interfaces.moziasynchistory); method overview void getplacesinfo(in jsval aplaceidentifiers, in mozivisitinfocallback acallback); void isurivisited(in nsiuri auri, in mozivisitedstatuscallback acallback); void updateplaces(in moziplaceinfo, [optional] in mozivisitinfocallback acallback); methods getplacesinfo() starts an asynchronous request to determine whether or not a given uri has been visited; you must implement a callback to receive the result of the request.
...us request to determine whether or not a given uri has been visited; you must implement a callback to receive the result of the request.
...And 2 more matches
mozIJSSubScriptLoader
irefox 28 / thunderbird 28 / seamonkey 2.25 / firefox os 1.3) implemented by: @mozilla.org/moz/jssubscript-loader;1.
...org/moz/jssubscript-loader;1"] .getservice(components.interfaces.mozijssubscriptloader); note: see components.utils.import for another way to import javascript code.
...the principal associated with the target object.
...And 2 more matches
mozIStorageFunction
o add functions that are available to sql queries and triggers.
...ctions provided by sqlite.
...ionarguments a mozistoragevaluearray holding the arguments passed in to the function.
...And 2 more matches
mozITXTToHTMLConv
/streamconv/public/mozitxttohtmlconv.idlscriptable please add a summary to this article.
... kglyphsubstitution unsigned long enables conversion of smilies and non-ascii special characters.
...ld composed of the conversion control attributes indicating what conversions to apply.
...And 2 more matches
nsIAppStartup
ng applications as well.
... an interactive prompt.
...ndows to close, then quit.
...And 2 more matches
nsIAuthPrompt
to pose a user/password prompt to obtain the values needed for authentication.
...title, 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.
...in wstring passwordrealm, in pruint32 savepassword, inout wstring user, inout wstring pwd); constants constant value description save_password_never 0 never saves the password.
...And 2 more matches
nsIAuthPrompt2
face on notification callbacks or similar.
...ruint32 level, in nsiauthinformation authinfo); constants constant value description level_none 0 the password will be sent unencrypted.
... data, is secure.
...And 2 more matches
nsIClipboardDragDropHookList
ooks for the nsiclipboarddragdrophooks interface.
... capabilities indirectly by sending commands using the nsiclipboarddragdrophooks interface.
...nds using the nsiclipboarddragdrophooks interface.
...And 2 more matches
nsICommandLine
changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) components may implement the nsicommandlinehandler interface to add custom command line handling behavior.
...ine may have had a different working directory.
...ve.
...And 2 more matches
nsICookieManager
interface for accessing or removing the cookies that are in the cookie list.
... void remove(in autf8string ahost, in acstring aname, in autf8string apath, in boolean ablocked, in jsval aoriginattributes); void removeall(); attributes attribute type description enumerator nsisimpleenumerator called to enumerate through each cookie in the cookie list.
... autf8string ahost, in acstring aname, in autf8string apath, in boolean ablocked, in jsval aoriginattributes); void removeall(); attributes attribute type description enumerator nsisimpleenumerator called to enumerate through each cookie in the cookie list.
...And 2 more matches
nsICookiePermission
the nsicookiepermission interface is used to test for cookie permissions netwerk/cookie/nsicookiepermission.idlscriptable please add a summary to this article.
...etoriginatinguri(in nsichannel achannel); void setaccess(in nsiuri auri, in nscookieaccess aaccess); constants constant value description access_default 0 nscookieaccess's access default value access_allow 1 nscookieaccess's access allow value access_deny 2 nscookieaccess's access deny value access_session 8 additional values for nscookieaccess, which are not directly used by any methods on this interface, but are nevertheless convenient to define here.
...lt 0 nscookieaccess's access default value access_allow 1 nscookieaccess's access allow value access_deny 2 nscookieaccess's access deny value access_session 8 additional values for nscookieaccess, which are not directly used by any methods on this interface, but are nevertheless convenient to define here.
...And 2 more matches
nsICookieService
netwerk/cookie/public/nsicookieservice.idlscriptable provides methods for setting and getting cookies in the context of a page load.
... netwerk/cookie/public/nsicookieservice.idlscriptable provides methods for setting and getting cookies in the context of a page load.
... private-cookie-changed since firefox 20 (see bugzilla #837091) same as cookie-changed, except used in lieu of cookie-changed for private windows.
...And 2 more matches
nsIDocShell
?
...component 13 kcharsetfromparentforced 14 the parent's character set was forced onto this content; all descendents will have this character set forced onto it.
...itle gecko currently ignores this parameter.
...And 2 more matches
nsIDownloadManager
t downloads, and being notified when downloads are completed.
...ity.
...ype used by adddownload.
...And 2 more matches
nsIDownloadProgressListener
anager.
... call nsidownloadmanager.removelistener() to stop listening.
... to stop listening.
...And 2 more matches
nsIFactory
xpcom/components/nsifactory.idlscriptable this interface is a class factory that allows for the creation of nsisupports derived classes without specifying a concrete class type.
...tory.idlscriptable this interface is a class factory that allows for the creation of nsisupports derived classes without specifying a concrete class type.
... be nsnull if no aggregation is requested.
...And 2 more matches
nsIFrameMessageManager
content/base/public/nsimessagemanager.idlscriptable provides methods for managing message listeners on local frames.
...s provides a way for local frames to receive messages from remote frames.
... 17.
...And 2 more matches
nsIINIParserWriter
nsiiniparserwriter xpcom/ds/nsiiniparser.idlscriptable allows writing to an ini-format configuration file.
... .getservice(components.interfaces.nsiiniparserfactory) .createiniparser(somelocalfile) .queryinterface(components.interfaces.nsiiniparserwriter); here, somelocalfile is an nsifile based object, such as an nsilocalfile.
...he writer object is created, you can use the setstring() method to set the value of a property within a given section; the section is created if it hasn't been yet.
...And 2 more matches
nsIJSID
js/src/xpconnect/idl/xpcjsid.idlscriptable this interface provides information about a contract or interface.
... components.classes[contract] components.interfacesbyid[uuid] components.classesbyid[cid] the first two cases create a named jsid while the last two cases create an unnamed jsid.
...id initialize(in string idstring); string tostring(); attributes attribute type description id nsidptr read only.
...And 2 more matches
nsILocalFile
in gecko 14 this interface was merged into the nsifile interface.
...ifile that are particular to a file that is accessible via the local file system.
...ntended to be used whenever a nsilocalfile needs to be serialized to disk and later recovered.
...And 2 more matches
nsIMicrosummary
toolkit/components/places/public/nsimicrosummaryservice.idlscriptable this interface defines attributes and methods for dealing with microsummaries generated by an nsimicrosummarygenerator.
...rvice.idlscriptable this interface defines attributes and methods for dealing with microsummaries generated by an nsimicrosummarygenerator.
... needsremoval boolean used when a site author has indicated that a microsummary (or an associated generator) will no longer be available.
...And 2 more matches
nsIModule
xpcom/components/nsimodule.idlscriptable this interface must be implemented by each xpcom component.
...nager acompmgr); void getclassobject(in nsicomponentmanager acompmgr, in nscidref aclass, in nsiidref aiid, [retval, iid_is(aiid)] out nsqiresult aresult); void registerself(in nsicomponentmanager acompmgr, in nsifile alocation, in string aloaderstr, in string atype); void unregisterself(in nsicomponentmanager acompmgr, in nsifile alocation, in string aloaderstr); methods canunload() this method may be queried to determine whether or not the component module can be unloaded by xpcom.
...can be unloaded.
...And 2 more matches
nsIObserverService
xpcom/ds/nsiobserverservice.idlscriptable this interface provides methods to add, remove, notify, and enumerate observers of various notifications.
...ions.
...ents.interfaces.nsiobserverservice); method overview void addobserver( in nsiobserver anobserver, in string atopic, in boolean ownsweak); nsisimpleenumerator enumerateobservers( in string atopic ); void notifyobservers( in nsisupports asubject, in string atopic, in wstring somedata ); void removeobserver( in nsiobserver anobserver, in string atopic ); methods addobserver() registers a given listener for a notifications regarding the specified topic.
...And 2 more matches
nsIParentalControlsService
ote: currently, this interface is only supported on microsoft windows vista and newer as well as android 4.3 and newer.
...ributes attribute type description blockfiledownloadsenabled boolean true if the current user account's parental controls restrictions include the blocking of all file downloads.
...g() method.
...And 2 more matches
nsIPermissionManager
the nsipermissionmanager interface is used to persistently store permissions for different object types (cookies, images, and so on) on a site-by-site basis.
...eny_action 2 permission is denied.
...etype expiration type of the permission.
...And 2 more matches
nsIScriptError
ror = components.classes["@mozilla.org/scripterror;1"] .createinstance(components.interfaces.nsiscripterror); note: the nsiscripterror2 interface was merged into this interface in gecko 12.0.
...illa.org/scripterror;1"] .createinstance(components.interfaces.nsiscripterror); note: the nsiscripterror2 interface was merged into this interface in gecko 12.0.
...ance(components.interfaces.nsiscripterror); note: the nsiscripterror2 interface was merged into this interface in gecko 12.0.
...And 2 more matches
nsISeekableStream
xpcom/io/nsiseekablestream.idlscriptable provides seeking support in data streams.
...void seteof(); long long tell(); constants constant value description ns_seek_set 0 specifies that the offset is relative to the start of the stream.
... long long tell(); constants constant value description ns_seek_set 0 specifies that the offset is relative to the start of the stream.
...And 2 more matches
nsIServerSocketListener
netwerk/base/public/nsiserversocket.idlscriptable this interface is notified whenever a server socket accepts a new connection.
...onnected state, and read/write streams can be opened using the normal nsitransport api.
...cting nsisockettransport.gethost(), which returns a string representation of the client's ip address, which may be either an ipv4 or an ipv6 address.
...And 2 more matches
nsISimpleEnumerator
xpcom/ds/nsisimpleenumerator.idlscriptable this interface represents an enumeration of xpcom objects and provides methods to access elements sequentially.
... xpcom/ds/nsisimpleenumerator.idlscriptable this interface represents an enumeration of xpcom objects and provides methods to access elements sequentially.
... xpcom/ds/nsisimpleenumerator.idlscriptable this interface represents an enumeration of xpcom objects and provides methods to access elements sequentially.
...And 2 more matches
nsISound
e used to play custom sounds in modern code.
...opened.
...enu_execute 5 a menu item is executed.
...And 2 more matches
nsITaskbarPreviewController
widget/public/nsitaskbarpreviewcontroller.idlscriptable this interface is used on microsoft windows to provide the behavior of taskbar previews.
...s and properties are used by the nsitaskbarpreview interface.
...ew interface.
...And 2 more matches
nsIThreadPool
1.0 66 introduced gecko 1.9 inherits from: nsieventtarget last changed in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) a thread pool provides a convenient way to process events off the main thread.
...ted after the listener is set so it is recommended that the consumer set the listener before dispatching the first event.
...method is called.
...And 2 more matches
nsIUTF8StringEnumerator
xpcom/ds/nsistringenumerator.idlscriptable an object can implement this interface to allow a client to iterate over a set of strings provided by the object.
... xpcom/ds/nsistringenumerator.idlscriptable an object can implement this interface to allow a client to iterate over a set of strings provided by the object.
... interface to allow a client to iterate over a set of strings provided by the object.
...And 2 more matches
nsIUUIDGenerator
nique, often referred to as a uuid or guid.
...upports last changed in gecko 1.8.1 (firefox 2 / thunderbird 2 / seamonkey 1.1) implemented by @mozilla.org/uuid-generator; as a service: var uuidgenerator = components.classes["@mozilla.org/uuid-generator;1"] .getservice(components.interfaces.nsiuuidgenerator); method overview nsidptr generateuuid(); void generateuuidinplace(in nsnonconstidptr id); native code only!
...) implemented by @mozilla.org/uuid-generator; as a service: var uuidgenerator = components.classes["@mozilla.org/uuid-generator;1"] .getservice(components.interfaces.nsiuuidgenerator); method overview nsidptr generateuuid(); void generateuuidinplace(in nsnonconstidptr id); native code only!
...And 2 more matches
nsIUpdateChecker
toolkit/mozapps/update/nsiupdateservice.idlscriptable this interface describes an object that knows how to check for software updates.
...e updates.
....5 / thunderbird 1.5 / seamonkey 1.0) method overview void checkforupdates(in nsiupdatechecklistener listener, in boolean force); void stopchecking(in unsigned short duration); constants constant value description current_check 1 constant for the stopchecking() method indicating that only the current update check should be stopped.
...And 2 more matches
nsIVariant
xpcom/ds/nsivariant.idlscriptable xpconnect has magic to transparently convert between nsivariant and js types.
... xpcom/ds/nsivariant.idlscriptable xpconnect has magic to transparently convert between nsivariant and js types.
...t has magic to transparently convert between nsivariant and js types.
...And 2 more matches
nsIWebContentHandlerRegistrar
to confirm adding an entry to the local list.
...ce(ci.nsiwebcontenthandlerregistrar); method overview void registercontenthandler(in domstring mimetype, in domstring uri, in domstring title, in nsidomwindow contentwindow) void registerprotocolhandler(in domstring protocol,in domstring uri, in domstring title, in nsidomwindow contentwindow) methods registercontenthandler summary of registercontenthandler void registercontenthandler( in domstring mimetype, in domstring uri, in domstring title, in nsidomwindow contentwindow ); parameters mimetype the desired mime type as a string uri the uri to the handler as a string.
...thandler summary of registercontenthandler void registercontenthandler( in domstring mimetype, in domstring uri, in domstring title, in nsidomwindow contentwindow ); parameters mimetype the desired mime type as a string uri the uri to the handler as a string.
...And 2 more matches
CType
all data types declared using the js-ctypes api are represented by ctype objects.
... all data types declared using the js-ctypes api are represented by ctype objects.
...tured data, such as the predefined types listed in predefined data types.
...And 2 more matches
Int64
ffers the int64 and uint64 objects to let you work with c functions and data that need (or may need) values represented using a 64-bit data type.
...ons thrown typeerror the specified value cannot be converted into a 64-bit integer.
...r contains a value outside the range that can be represented in 64 bits.
...And 2 more matches
Library
the library object represents a native library loaded by the ctypes open() method.
... the library object represents a native library loaded by the ctypes open() method.
... the library object represents a native library loaded by the ctypes open() method.
...And 2 more matches
PointerType
er, and array types, this should be a valid c type expression.
...es, this should be a valid c type expression.
... property type description constructor ctype the data type of the cdata object, as a ctype.
...And 2 more matches
UInt64
int64 and uint64 objects to let you work with c functions and data that need (or may need) to use data represented using a 64-bit data type.
...ons thrown typeerror the specified value cannot be converted into a 64-bit integer.
... contains a value outside the range that can be represented in 64 bits.
...And 2 more matches
ANGLE_instanced_arrays - Web APIs
the angle_instanced_arrays extension is part of the webgl api and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type.
...hey share the same vertex data, primitive count and type.
...e constants and methods are available without the "angle" suffix.
...And 2 more matches
AbsoluteOrientationSensor - Web APIs
if a feature policy blocks use of a feature it is because your code is inconsistent with the policies set on your server.
...your server.
...hat would ever be shown to a user.
...And 2 more matches
Using the Beacon API - Web APIs
the beacon interface schedules an asynchronous and non-blocking request to a web server.
... request to a web server.
...ee beacon api for an overview.
...And 2 more matches
CSSStyleSheet.addRule() - Web APIs
the obsolete cssstylesheet interface's addrule() legacy method adds a new rule to the stylesheet.
... the obsolete cssstylesheet interface's addrule() legacy method adds a new rule to the stylesheet.
... the obsolete cssstylesheet interface's addrule() legacy method adds a new rule to the stylesheet.
...And 2 more matches
CSSStyleSheet.removeRule() - Web APIs
the obsolete cssstylesheet method removerule() removes a rule from the stylesheet object.
... the obsolete cssstylesheet method removerule() removes a rule from the stylesheet object.
... the obsolete cssstylesheet method removerule() removes a rule from the stylesheet object.
...And 2 more matches
Using the CSS Painting API - Web APIs
o register it using addmodule() and include it in our css, ensuring the css selector matches a dom node in our html registering the worklet the setup and design of our paint worklet took place in the external script shown above.
...ame2']; } static get inputarguments() { return ['<color>']; } static get contextoptions() { return {alpha: true}; } paint(drawingcontext, elementsize, stylemap) { // paint code goes here.
... } /* use this function to retrieve any custom properties (or regular properties, such as 'height') defined for the element, return them in the specified array */ static get inputproperties() { return ['--boxcolor', '--widthsubtractor']; } paint(ctx, size, props) { /* ctx -> drawing context size -> paintsize: width and height props -> properties: get() method */ ctx.fillstyle = props.get('--boxcolor'); ctx.fillrect(0, size.height/3, size.width*0.4 - props.get('--widthsubtractor'), size.height*0.6); } }); we used the inputproperties() method in the registerpaint() class to get the values of two custom properties set on an element that has boxbg applied to it and then used those within our paint() function.
...And 2 more matches
CacheStorage.match() - Web APIs
the match() method of the cachestorage interface checks if a given request or url string is a key for a stored response.
... the match() method of the cachestorage interface checks if a given request or url string is a key for a stored response.
... the match() method of the cachestorage interface checks if a given request or url string is a key for a stored response.
...And 2 more matches
CanvasRenderingContext2D.arcTo() - Web APIs
the canvasrenderingcontext2d.arcto() method of the canvas 2d api adds a circular arc to the current sub-path, using the given control points and radius.
... the canvasrenderingcontext2d.arcto() method of the canvas 2d api adds a circular arc to the current sub-path, using the given control points and radius.
...lstyle = 'red'; ctx.arc(200, 130, 5, 0, 2 * math.pi); // control point one ctx.arc(50, 20, 5, 0, 2 * math.pi); // control point two ctx.fill(); result in this example, the path created by arcto() is thick and black.
...And 2 more matches
CanvasRenderingContext2D.closePath() - Web APIs
the canvasrenderingcontext2d.closepath() method of the canvas 2d api attempts to add a straight line from the current point to the start of the current sub-path.
... the canvasrenderingcontext2d.closepath() method of the canvas 2d api attempts to add a straight line from the current point to the start of the current sub-path.
... the canvasrenderingcontext2d.closepath() method of the canvas 2d api attempts to add a straight line from the current point to the start of the current sub-path.
...And 2 more matches
CanvasRenderingContext2D.resetTransform() - Web APIs
the canvasrenderingcontext2d.resettransform() method of the canvas 2d api resets the current transform to the identity matrix.
... the canvasrenderingcontext2d.resettransform() method of the canvas 2d api resets the current transform to the identity matrix.
... the canvasrenderingcontext2d.resettransform() method of the canvas 2d api resets the current transform to the identity matrix.
...And 2 more matches
Advanced animations - Web APIs
to add some physics to make our animations more advanced.
...; var ctx = canvas.getcontext('2d'); var ball = { x: 100, y: 100, radius: 25, color: 'blue', draw: function() { ctx.beginpath(); ctx.arc(this.x, this.y, this.radius, 0, math.pi * 2, true); ctx.closepath(); ctx.fillstyle = this.color; ctx.fill(); } }; ball.draw(); nothing special here, the ball is actually a simple circle and gets drawn with the help of the arc() method.
...rame(draw); }); canvas.addeventlistener('mouseout', function(e) { window.cancelanimationframe(raf); }); ball.draw(); boundaries without any boundary collision testing our ball runs out of the canvas quickly.
...And 2 more matches
ClipboardItem - Web APIs
pe of file types and data easily.
...d.writetext() methods of the clipboard interface.
...ce.
...And 2 more matches
CredentialsContainer.get() - Web APIs
the get() method of the credentialscontainer interface returns a promise to a single credential instance that matches the provided parameters.
... the get() method of the credentialscontainer interface returns a promise to a single credential instance that matches the provided parameters.
...es the provided parameters.
...And 2 more matches
CustomEvent.initCustomEvent() - Web APIs
the customevent.initcustomevent() method initializes a customevent object.
... the customevent.initcustomevent() method initializes a customevent object.
... the customevent.initcustomevent() method initializes a customevent object.
...And 2 more matches
DOMMatrixReadOnly - Web APIs
floating-point values representing the components of a 4×4 matrix which are required in order to perform 2d rotations and translations.
...onents of a 4×4 matrix which are required in order to perform 2d rotations and translations.
...re required in order to perform 2d rotations and translations.
...And 2 more matches
DataTransfer.mozClearDataAt() - Web APIs
the datatransfer.mozcleardataat() method removes the data associated with the given format for an item at the specified index.
... the datatransfer.mozcleardataat() method removes the data associated with the given format for an item at the specified index.
...format argument is not provided, then the data associated with all formats is removed.
...And 2 more matches
DataTransfer.mozGetDataAt() - Web APIs
the datatransfer.mozgetdataat() method is used to retrieve an item in the drag event's data transfer object, based on a given format and index.
... the datatransfer.mozgetdataat() method is used to retrieve an item in the drag event's data transfer object, based on a given format and index.
... the datatransfer.mozgetdataat() method is used to retrieve an item in the drag event's data transfer object, based on a given format and index.
...And 2 more matches
DedicatedWorkerGlobalScope - Web APIs
rglobalscope.navigator read only returns the workernavigator associated with the worker.
...eventtarget, and therefore implements event handlers from windowtimers, windowbase64, and windoweventhandlers.
...ge is an eventhandler representing the code to be called when the message event is raised.
...And 2 more matches
DirectoryReaderSync - Web APIs
s interface has been abandonned: it was on a standard track and it proves not a good idea.
...age('error: ' + e.tostring()); } self.onmessage = function(e) { var data = e.data; // ignore everything else except our 'list' command.
...ta; // ignore everything else except our 'list' command.
...And 2 more matches
DocumentFragment - Web APIs
ementchild read only returns the element that is the first child of the documentfragment object, or null if there is none.
...lement that is the first child of the documentfragment object, or null if there is none.
...atch the specified selectors.
...And 2 more matches
DocumentOrShadowRoot.getSelection() - Web APIs
etselection() parameters none.
... // do stuff with the range } notes string representation of the selection object in javascript, when an object is passed to a function expecting a string (like window.alert()), the object's tostring() method is called and the returned value is passed to the function.
...ow.alert()), the object's tostring() method is called and the returned value is passed to the function.
...And 2 more matches
Element.classList - Web APIs
Web › API › Element › classList
element.classname.
...classlist.add("foo", "bar", "baz"); div.classlist.remove("foo", "bar", "baz"); // add or remove multiple classes using spread syntax const cls = ["foo", "bar"]; div.classlist.add(...cls); div.classlist.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.
...nts in the add/remove/toggle methods.
...And 2 more matches
Element.getAttributeNodeNS() - Web APIs
== tbd the example needs to be fixed pre> // html: <div id="top" /> t = document.getelementbyid("top"); specialnode = t.getattributenodens( "http://www.mozilla.org/ns/specialspace", "id"); // inode.value = "full-top" </pre notes getattributenodens is more specific than getattributenode in that it allows you to specify attributes that are part of a particular namespace.
...ed pre> // html: <div id="top" /> t = document.getelementbyid("top"); specialnode = t.getattributenodens( "http://www.mozilla.org/ns/specialspace", "id"); // inode.value = "full-top" </pre notes getattributenodens is more specific than getattributenode in that it allows you to specify attributes that are part of a particular namespace.
...getattributenodens( "http://www.mozilla.org/ns/specialspace", "id"); // inode.value = "full-top" </pre notes getattributenodens is more specific than getattributenode in that it allows you to specify attributes that are part of a particular namespace.
...And 2 more matches
Element.msZoomTo() - Web APIs
Web › API › Element › msZoomTo
non-standard this feature is non-standard and is not on a standards track.
...eb: it will not work for every user.
...the viewport to the element's contenty value.
...And 2 more matches
Element.removeAttribute() - Web APIs
the element method removeattribute() removes the attribute with the specified name from the element.
... specifying the name of the attribute to remove from the element.
...ribute does not exist, removeattribute() returns without generating an error.
...And 2 more matches
Element.setAttributeNS() - Web APIs
is a string specifying the namespace of the attribute.
...he attribute by its qualified name; that is, a namespace prefix followed by a colon followed by a local name.
...efix followed by a colon followed by a local name.
...And 2 more matches
Fetch API - Web APIs
Web › API › Fetch API
ponses, or any kind of use case that might require you to generate your responses programmatically (that is, the use of computer program or personal programming instructions).
...lated concepts such as cors and the http origin header semantics, supplanting their separate definitions elsewhere.
...tty much any context you might want to fetch resources in.
...And 2 more matches
FileSystemFileEntry.createWriter() - Web APIs
the filesystemfileentry interface's method createwriter() returns a filewriter object which can be used to write data into the file represented by the directory entry.
...ct which can be used to write data into the file represented by the directory entry.
... is called when the filewriter has been created successfully; the filewriter is passed into the callback as the only parameter.
...And 2 more matches
FileSystemFileEntry.file() - Web APIs
the filesystemfileentry interface's method file() returns a file object which can be used to read data from the file represented by the directory entry.
...) returns a file object which can be used to read data from the file represented by the directory entry.
...sed into the callback as the only parameter.
...And 2 more matches
FileSystemFileEntry - Web APIs
the filesystemfileentry interface of the file system api represents a file in a file system.
... the filesystemfileentry interface of the file system api represents a file in a file system.
...esents a file in a file system.
...And 2 more matches
HTMLAnchorElement - Web APIs
the htmlanchorelement interface represents hyperlink elements and provides special properties and methods (beyond those of the regular htmlelement object interface that they inherit from) for manipulating the layout and presentation of such elements.
... rev html attribute, specifying the relationship of the link object to the target object.
...e, specifying the relationship of the link object to the target object.
...And 2 more matches
HTMLDialogElement - Web APIs
the htmldialogelement interface provides methods to manipulate <dialog> elements.
... the htmldialogelement interface provides methods to manipulate <dialog> elements.
...">htmldialogelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...And 2 more matches
HTMLFormElement.requestSubmit() - Web APIs
the htmlformelement method requestsubmit() requests that the form be submitted using a specific submit button.
... the htmlformelement method requestsubmit() requests that the form be submitted using a specific submit button.
...f is used as the submitter.
...And 2 more matches
HTMLInputElement.setSelectionRange() - Web APIs
the htmlinputelement.setselectionrange() method sets the start and end positions of the current text selection in an <input> or <textarea> element.
...ge() method sets the start and end positions of the current text selection in an <input> or <textarea> element.
...o have occurred.
...And 2 more matches
HTMLTableElement - Web APIs
the htmltableelement interface provides special properties and methods (beyond the regular htmlelement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an html document.
... following values: "none", "groups", "rows", "cols", or "all".
... "none", "groups", "rows", "cols", or "all".
...And 2 more matches
HTMLVideoElement - Web APIs
the htmlvideoelement interface provides special properties and methods for manipulating video objects.
... the htmlvideoelement interface provides special properties and methods for manipulating video objects.
...lvideoelement.msislayoutoptimalforplayback read only indicates whether the video can be rendered more efficiently.
...And 2 more matches
Using microtasks in JavaScript with queueMicrotask() - Web APIs
user agent has the opportunity to react to actions taken by the microtask.
... such, you should typically use microtasks only when there's no other solution, or when creating frameworks or libraries that need to use microtasks in order to create the functionality they're implementing.
...microtasks, exceptions thrown by the callback are reported as rejected promises rather than being reported as standard exceptions.
...And 2 more matches
History.replaceState() - Web APIs
the history.replacestate() method modifies the current history entry, replacing it with the stateobj, title, and url passed in the method parameters.
... the history.replacestate() method modifies the current history entry, replacing it with the stateobj, title, and url passed in the method parameters.
...ith the stateobj, title, and url passed in the method parameters.
...And 2 more matches
History API - Web APIs
the dom window object provides access to the browser's session history (not to be confused for webextensions history) through the history object.
...ovides access to the browser's session history (not to be confused for webextensions history) through the history object.
... using the back(), forward(), and go() methods.
...And 2 more matches
databases - Web APIs
the databases method of the idbfactory interface returns a list represening all the available databases, including their names and versions.
... the databases method of the idbfactory interface returns a list represening all the available databases, including their names and versions.
... the databases method of the idbfactory interface returns a list represening all the available databases, including their names and versions.
...And 2 more matches
IDBFactory.open() - Web APIs
Web › API › IDBFactory › open
the open() method of the idbfactory interface requests opening a connection to a database.
... the open() method of the idbfactory interface requests opening a connection to a database.
... the open() method of the idbfactory interface requests opening a connection to a database.
...And 2 more matches
IDBFactory - Web APIs
the idbfactory interface of the indexeddb api lets applications asynchronously access the indexed databases.
... the idbfactory interface of the indexeddb api lets applications asynchronously access the indexed databases.
...asynchronously access the indexed databases.
...And 2 more matches
IDBObjectStore.add() - Web APIs
the add() method of the idbobjectstore interface returns an idbrequest object, and, in a separate thread, creates a structured clone of the value, and stores the cloned value in the object store.
...for adding new records to an object store.
... an object store.
...And 2 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.
... the deleteindex() method of the idbobjectstore interface destroys the index with the specified name in the connected database, used during a version upgrade.
...And 2 more matches
IDBObjectStore.get() - Web APIs
the get() method of the idbobjectstore interface returns an idbrequest object, and, in a separate thread, returns the object store selected by the specified key.
... the get() method of the idbobjectstore interface returns an idbrequest object, and, in a separate thread, returns the object store selected by the specified key.
...y the specified key.
...And 2 more matches
IDBObjectStore.getAllKeys() - Web APIs
the getallkeys() method of the idbobjectstore interface returns an idbrequest object retrieves record keys for all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
... the getallkeys() method of the idbobjectstore interface returns an idbrequest object retrieves record keys for all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
...g the specified parameter or all objects in the store if no parameters are given.
...And 2 more matches
IDBVersionChangeRequest.setVersion() - Web APIs
the idbversionchangerequest.setversion method updates the version of the database, returning immediately and running a versionchange transaction on the connected database in a separate thread.
... the idbversionchangerequest.setversion method updates the version of the database, returning immediately and running a versionchange transaction on the connected database in a separate thread.
... the idbversionchangerequest.setversion method updates the version of the database, returning immediately and running a versionchange transaction on the connected database in a separate thread.
...And 2 more matches
install - Web APIs
summary installs one or more xpi files on the local machine.
... summary installs one or more xpi files on the local machine.
... and false if it did not, but these values are not always reliable as a determinant of the success of the operation.
...And 2 more matches
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.
... name name is displayed in the dialog, but is also used to *select* the theme somust match exactly the name in the internal manifest.rdf file.
...And 2 more matches
KeyboardEvent.initKeyEvent() - Web APIs
non-standard this feature is non-standard and is not on a standards track.
...g the web: it will not work for every user.
...ementations and the behavior may change in the future.
...And 2 more matches
MSGestureEvent - Web APIs
e msgestureevent is a proprietary interface specific to internet explorer and microsoft edge which represents events that occur due to touch gestures.
...e the previous msgestureevent of the current gesture msgestureevent.velocityangular read only angular velocity.
...urrent gesture msgestureevent.velocityangular read only angular velocity.
...And 2 more matches
MediaQueryList - Web APIs
eriodically, and allows you to programmatically make changes to a document based on media query status.
... make changes to a document based on media query status.
...tches the media query list, or false if not.
...And 2 more matches
Media Capabilities API - Web APIs
access display property information such as supported color gamut, dynamic range abilities, and real-time feedback about the playback.
... provides information about the decoding abilities of the device, system and browser based on codecs, profile, resolution, and bitrates.
...currently supported anywhere).
...And 2 more matches
NavigatorID - Web APIs
the navigatorid interface contains methods and properties related to the identity of the browser.
...atorid.platform read only returns either the empty string or a string representing the platform the browser is running on.
...ring or a string representing the platform the browser is running on.
...And 2 more matches
Node.removeChild() - Web APIs
Web › API › Node › removeChild
the node.removechild() method removes a child node from the dom and returns the removed node.
...node later in your code, via the oldchild object reference.
...unusable and irretrievable, and will usually be automatically deleted from memory after a short time.
...And 2 more matches
NodeIterator - Web APIs
the nodeiterator interface represents an iterator over the members of a list of the nodes in a subtree of the dom.
...g if, when discarding an entityreference its whole sub-tree must be discarded at the same time.
... whole sub-tree must be discarded at the same time.
...And 2 more matches
Using the Notifications API - Web APIs
been asked for permission yet, so notifications won't be displayed.
...sion to show notifications.
...e-detecting the requestpermission() promise above we said that we had to check whether the browser supports the promise version of notification.requestpermission().
...And 2 more matches
OscillatorNode - Web APIs
the oscillatornode interface represents a periodic waveform, such as a sine wave.
... max channel count 2 (not used in the default count mode) channel interpretation speakers constructor oscillatornode() creates a new instance of an oscillatornode object, optionally providing an object specifying default values for the node's properties.
...o play; this can be one of a number of standard values, or custom to use a periodicwave to describe a custom waveform.
...And 2 more matches
PaymentRequest: merchantvalidation event - Web APIs
s for details on how the merchant validation process works.
... event handler property onmerchantvalidation examples in this example, an event handler is established for the merchantvalidation event.
... const merchantserverurl = window.location.origin + '/validate?url=' + encodeuricomponent(event.validationurl); // get validation data, and complete validation; return await fetch(merchantserverurl).then(response => response.text()); }, false); }; const response = await request.show(); how merchant server handles the validation depends on the server implementation and payment method documentation.
...And 2 more matches
PaymentRequestEvent() - Web APIs
t handler when a paymentrequest is made..
... is made..
...event = new paymentrequesteventy(type, options) parameters type must always be 'paymentrequest'.
...And 2 more matches
RTCDataChannel - Web APIs
work channel which can be used for bidirectional peer-to-peer transfers of arbitrary data.
...erface.
... sent to the channel when a message is received from the other peer.onopen the rtcdatachannel.onopen property is an eventhandler which specifies a function to be called when the open event is fired; this is a simple event which is sent when the data channel's underlying data transport—the link over which the rtcdatachannel's messages flow—is established or re-established.methodsalso inherits methods from: eventtargetclose()the rtcdatachannel.close() method closes the rtcdatachannel.
...And 2 more matches
ReadableStream.pipeThrough() - Web APIs
the pipethrough() method of the readablestream interface provides a chainable way of piping the current stream through a transform stream or any other writable/readable pair.
...bytes written to it and strings read from it, while a video decoder has encoded bytes written to it and uncompressed video frames read from it.
...lestream closing will no longer cause the destination writablestream to be closed.
...And 2 more matches
ReadableStream.pipeTo() - Web APIs
the pipeto() method of the readablestream interface pipes the current readablestream to a given writablestream and returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
...estream.pipeto(destination[, options]); parameters destination a writablestream that acts as the final destination for the readablestream.
...lestream closing will no longer cause the destination writablestream to be closed.
...And 2 more matches
RelativeOrientationSensor - Web APIs
if a feature policy blocks use of a feature it is because your code is inconsistent with the policies set on your server.
...your server.
...hat would ever be shown to a user.
...And 2 more matches
Resource Timing API - Web APIs
eturns the network protocol used to fetch the resource.
...resource.
...itiated the performance entry such as "css" for a css resource, "xmlhttprequest" for an xmlhttprequest and "img" for an image (such as a jpeg).
...And 2 more matches
SVGForeignObjectElement - Web APIs
the svgforeignobjectelement interface provides access to the properties of <foreignobject> elements, as well as methods to manipulate them.
...jectelement.y read only an svganimatedlength corresponding to the x attribute of the given <foreignobject> element.
...ganimatedlength corresponding to the x attribute of the given <foreignobject> element.
...And 2 more matches
SVGTextContentElement - Web APIs
erface also inherits properties from its parent, svggraphicselement.
...ts parent, svggraphicselement.
...ring within the current element, regardless of whether they will be rendered.
...And 2 more matches
SVGViewElement - Web APIs
the svgviewelement interface provides access to the properties of <view> elements, as well as methods to manipulate them.
...roperties this interface also inherits properties from its parent interface, svgelement.
... interface also inherits properties from its parent interface, svgelement.
...And 2 more matches
SharedWorker - Web APIs
xecutes the script at the specified url.
... at the specified url.
...ies from its parent, eventtarget, and implements properties from abstractworker.
...And 2 more matches
StorageEvent - Web APIs
k:href="/docs/web/api/storageevent" target="_top"><rect x="116" y="1" width="120" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="176" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">storageevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} method overview void initstorageevent( in domstring type, in boolean canbubble, in boolean cancelable, in domstring key, in domstring oldvalue, in domstring newvalue, in usvstring url, in storage storagearea ); attributes attribute type description key domstring represents the key changed.
... void initstorageevent( in domstring type, in boolean canbubble, in boolean cancelable, in domstring key, in domstring oldvalue, in domstring newvalue, in usvstring url, in storage storagearea ); attributes attribute type description key domstring represents the key changed.
...ng newvalue, in usvstring url, in storage storagearea ); attributes attribute type description key domstring represents the key changed.
...And 2 more matches
Storage API - Web APIs
n, however, has a lower quota than the other two do.
...if it becomes necessary to consider clearing persistent boxes, the user agent will notify the user and provide a way to clear one or more persistent boxes as needed.
....
...And 2 more matches
SubtleCrypto.unwrapKey() - Web APIs
the unwrapkey() method of the subtlecrypto interface "unwraps" a key.
...rap algorithm or if the cryptokey.usages value of that key doesn't contain unwrap.
...t key doesn't contain unwrap.
...And 2 more matches
SubtleCrypto.wrapKey() - Web APIs
the wrapkey() method of the subtlecrypto interface "wraps" a key.
...ector.
..., "decrypt"] ) .then((secretkey) => { return wrapcryptokey(secretkey); }) .then((wrappedkey) => { console.log(wrappedkey); }); pkcs #8 wrap this example wraps an rsa private signing key.
...And 2 more matches
Text - Web APIs
Web › API › Text
if an element has no markup within its content, it has a single child implementing text that contains the element's text.
...nodes logically adjacent to this node, concatenated in document order.
...jacent to this node, concatenated in document order.
...And 2 more matches
TextDecoder - Web APIs
haracter encoding, which is appropriate for cyrillic script.
...code(bytes)); // Привет, мир!
...esn't inherit any properties.
...And 2 more matches
UIEvent.initUIEvent() - Web APIs
the uievent.inituievent() method initializes a ui event once it's been created.
... the uievent.inituievent() method initializes a ui event once it's been created.
... the uievent.inituievent() method initializes a ui event once it's been created.
...And 2 more matches
UIEvent - Web APIs
Web › API › UIEvent
the uievent interface represents simple user interface events.
... returns an instance of the inputdevicecapabilities interface, which provides information about the physical device responsible for generating a touch event.
...cecapabilities interface, which provides information about the physical device responsible for generating a touch event.
...And 2 more matches
WEBGL_draw_buffers - Web APIs
the webgl_draw_buffers extension is part of the webgl api and enables a fragment shader to write to several textures, which is useful for deferred shading, for example.
...extension is available on the webgl2 context by default.
...aw_buffer9_webgl ext.draw_buffer10_webgl ext.draw_buffer11_webgl ext.draw_buffer12_webgl ext.draw_buffer13_webgl ext.draw_buffer14_webgl ext.draw_buffer15_webgl a glenum returning a draw buffer.
...And 2 more matches
Taking still photos with WebRTC - Web APIs
video.setattribute('width', width); video.setattribute('height', height); canvas.setattribute('width', width); canvas.setattribute('height', height); streaming = true; } }, false); this callback does nothing unless it's the first time it's been called; this is tested by looking at the value of our streaming variable, which is false the first time this method is run.
...g variable to true to prevent us from inadvertently running this setup code again.
...ed: startbutton.addeventlistener('click', function(ev){ takepicture(); ev.preventdefault(); }, false); this method is simple enough: it just calls our takepicture() function, defined below in the section capturing a frame from the stream, then calls event.preventdefault() on the received event to prevent the click from being handled more than once.
...And 2 more matches
Geometry and reference spaces in WebXR - Web APIs
te is always 0, unless a floor is otherwise established.
...tation of objects, webxr is able to standardize the form of the data you use to describe these things, regardless of the underlying xr hardware.
... coordinates or manually apply a transform each time they move, but there's an easier way, thanks to reference spaces and their ability to be created relative to one another.
...And 2 more matches
Controlling multiple parameters with ConstantSourceNode - Web APIs
udiocontext, stashing the reference in context.
... the play button and volumecontrol to reference the slider control that the user will use to adjust the gain on the linked pair of oscillators.
...de2 and gainnode3, setting their values to match gainnode1, then set the value of the volume slider to the same value, so it is synchronized with the gain level it controls.
...And 2 more matches
Example and tutorial: Simple synth keyboard - Web APIs
= audiocontext.createoscillator(); osc.connect(mastergainnode); let type = wavepicker.options[wavepicker.selectedindex].value; if (type == "custom") { osc.setperiodicwave(customwaveform); } else { osc.type = type; } osc.frequency.value = freq; osc.start(); return osc; } playtone() begins by creating a new oscillatornode by calling the audiocontext.createoscillator() method.
...er.selectedindex].value; if (type == "custom") { osc.setperiodicwave(customwaveform); } else { osc.type = type; } osc.frequency.value = freq; osc.start(); return osc; } playtone() begins by creating a new oscillatornode by calling the audiocontext.createoscillator() method.
...or's type to the value of the picker; that value will be one of sine, square, triangle, and sawtooth.
...And 2 more matches
Web Authentication API - Web APIs
b authentication concepts and usage the web authentication api (also referred to as webauthn) uses asymmetric (public-key) cryptography instead of passwords or sms texts for registering, authenticating, and second-factor authentication with websites.
...e (since users don't have to manage dozens of increasingly complicated passwords).
... in their most basic forms, both create() and get() receive a very large random number called a challenge from the server and they return the challenge signed by the private key back to the server.
...And 2 more matches
Functions and classes available to Web Workers - Web APIs
in addition to the standard javascript set of functions (such as string, array, object, json, etc), there are a variety of functions available from the dom to workers.
...re are a variety of functions available from the dom to workers.
...es) no support filereadersync this api allows synchronous read of blob and file objects.
...And 2 more matches
Window.close() - Web APIs
Web › API › Window › close
the window.close() method closes the current window, or the window on which it was called.
... the window.close() method closes the current window, or the window on which it was called.
... the window.close() method closes the current window, or the window on which it was called.
...And 2 more matches
Window.print() - Web APIs
Web › API › Window › print
opens the print dialog to print the current document.
.../github.com/mdn/browser-compat-data and send us a pull request.
...ribute has the value allow-modals.edge full support 12firefox full support 1ie full support 5opera full support 6notes full support 6notes notes starting with opera 33, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.safari full support 1.1webview android full support 1notes full support 1notes notes starting with webview 46, this method is blocked inside an <iframe> unless its sandbox attri...
...And 2 more matches
Window.requestAnimationFrame() - Web APIs
the window.requestanimationframe() method tells the browser that you wish to perform an animation and requests that the browser calls a specified function to update an animation before the next repaint.
... the window.requestanimationframe() method tells the browser that you wish to perform an animation and requests that the browser calls a specified function to update an animation before the next repaint.
...me() method tells the browser that you wish to perform an animation and requests that the browser calls a specified function to update an animation before the next repaint.
...And 2 more matches
Window.setImmediate() - Web APIs
this method is used to break up long running operations and run a callback function immediately after the browser has completed other operations such as events and display updates.
... this method is used to break up long running operations and run a callback function immediately after the browser has completed other operations such as events and display updates.
... resistance both from gecko (firefox) and webkit (google/apple).
...And 2 more matches
XDomainRequest.open() - Web APIs
opens an xdomainrequest which is configured to use a given method (get/post) and url.
... opens an xdomainrequest which is configured to use a given method (get/post) and url.
... opens an xdomainrequest which is configured to use a given method (get/post) and url.
...And 2 more matches
HTML in XMLHttpRequest - Web APIs
e synchronous mode and you have to explicitly request a document by assigning the string "document" to the responsetype property of the xmlhttprequest object after calling open() but before calling send().
...ode and you have to explicitly request a document by assigning the string "document" to the responsetype property of the xmlhttprequest object after calling open() but before calling send().
...after it is opened as "sync".
...And 2 more matches
XRInputSourceArray - Web APIs
the interface xrinputsourcearray represents a live list of webxr input sources, and is used as the return value of the xrsession property inputsources.
...input sources, and is used as the return value of the xrsession property inputsources.
... addition to being able to access the input sources in the list using standard array notation (that is, with index numbers insize square brackets), methods are available to allow the use of iterators and the foreach() method is also available.
...And 2 more matches
Box alignment for block, absolutely positioned and table layout - CSS: Cascading Style Sheets
the box alignment specification details how alignment works in various layout methods.
... how alignment works in various layout methods.
...cts these properties to be implemented for completeness, and is likely to change as the specification and browser implementations develop.
...And 2 more matches
Typical use cases of Flexbox - CSS: Cascading Style Sheets
in this guide we will take a look at some of the common use cases for flexbox — those places where it makes more sense than another layout method.
...to use flexbox is because you want to lay a collection of items out in one direction or another.
...ideal flexbox use case.
...And 2 more matches
Writing Web Audio API code that works in every browser - Developer guides
lready 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.
...cited and ready to make your until-now-webkit-only sites work with firefox, which uses the unprefixed version of the spec.
...g in a standards compliant browser, by aliasing prefixed names to the unprefixed versions.
...And 2 more matches
HTTP conditional requests - HTTP
ing a download, or when preventing to lose updates when uploading or modifying a document on the server.
...n the server.
...esult of the request will be different if the precondition is matched or not.
...And 2 more matches
CSP: script-src - HTTP
ntent source.
... sites needing to allow these content types can specify them using the data attribute.
...ha256, sha384 and sha512.
...And 2 more matches
Location - HTTP
Web › HTTP › Headers › Location
the location response header indicates the url to redirect a page to.
... the location response header indicates the url to redirect a page to.
...cation response header indicates the url to redirect a page to.
...And 2 more matches
302 Found - HTTP
Web › HTTP › Status › 302
the hypertext transfer protocol (http) 302 found redirect status response code indicates that the resource requested has been temporarily moved to the url given by the location header.
... their links to the resource (in 'seo-speak', it is said that the 'link-juice' is not sent to the new url).
...hat the 'link-juice' is not sent to the new url).
...And 2 more matches
Array.prototype.copyWithin() - JavaScript
the copywithin() method shallow copies part of an array to another location in the same array and returns it without modifying its length.
...will copy from index 0.
... elements from.
...And 2 more matches
Array.prototype.find() - JavaScript
the find() method returns the value of the first element in the provided array that satisfies the provided testing function.
...element the current element in the array.
... is returned.
...And 2 more matches
Array.prototype.findIndex() - JavaScript
the findindex() method returns the index of the first element in the array that satisfies the provided testing function.
...x of the first element in the array that satisfies the provided testing function.
...t the current element being processed in the array.
...And 2 more matches
Array.from() - JavaScript
the array.from() static method creates a new, shallow-copied array instance from an array-like or iterable object.
... array being created.
...g), except that it does not create an intermediate array.
...And 2 more matches
Array.prototype.shift() - JavaScript
the shift() method removes the first element from an array and returns that removed element.
... the shift() method removes the first element from an array and returns that removed element.
...his method changes the length of the array.
...And 2 more matches
Array.prototype.toString() - JavaScript
the tostring() method returns a string representing the specified array and its elements.
... the tostring() method returns a string representing the specified array and its elements.
... the tostring() method returns a string representing the specified array and its elements.
...And 2 more matches
Boolean.prototype.toString() - JavaScript
the tostring() method returns a string representing the specified boolean object.
...pecified boolean object.
...ike to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...And 2 more matches
Date.UTC() - JavaScript
the date.utc() method accepts parameters similar to the date constructor, but treats them as utc.
...milliseconds for the given date since january 1, 1970, 00:00:00, utc.
...e.
...And 2 more matches
Date.prototype.getUTCMilliseconds() - JavaScript
the getutcmilliseconds() method returns the milliseconds portion of the time object's value.
... the getutcmilliseconds() method returns the milliseconds portion of the time object's value.
... the getutcmilliseconds() method returns the milliseconds portion of the time object's value.
...And 2 more matches
Date.parse() - JavaScript
the date.parse() method parses a string representation of a date, and returns the number of milliseconds since january 1, 1970, 00:00:00 utc or nan if the string is unrecognized or, in some cases, contains illegal date values (e.g.
... simplification of the iso 8601 calendar date extended format.
... by parsing the given string representation of a date.
...And 2 more matches
Date.prototype.valueOf() - JavaScript
the valueof() method returns the primitive value of a date object.
... the valueof() method returns the primitive value of a date object.
... the valueof() method returns the primitive value of a date object.
...And 2 more matches
Intl.DateTimeFormat.prototype.formatToParts() - JavaScript
the intl.datetimeformat.prototype.formattoparts() method allows locale-aware formatting of strings produced by datetimeformat formatters.
... the intl.datetimeformat.prototype.formattoparts() method allows locale-aware formatting of strings produced by datetimeformat formatters.
...s date optional the date to format.
...And 2 more matches
Intl.NumberFormat.prototype.formatToParts() - JavaScript
the intl.numberformat.prototype.formattoparts() method allows locale-aware formatting of strings produced by numberformat formatters.
... the intl.numberformat.prototype.formattoparts() method allows locale-aware formatting of strings produced by numberformat formatters.
...onal a number or bigint to format.
...And 2 more matches
Number.prototype.toExponential() - JavaScript
the toexponential() method returns a string representing the number object in exponential notation.
...a string representing the given number object in exponential notation with one digit before the decimal point, rounded to fractiondigits digits after the decimal point.
..., inclusive, will not cause a rangeerror.
...And 2 more matches
Object.prototype.hasOwnProperty() - JavaScript
the hasownproperty() method returns a boolean indicating whether the object has the specified property as its own property (as opposed to inheriting it).
... the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...ive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...And 2 more matches
Promise.prototype.catch() - JavaScript
the catch() method returns a promise and deals with rejected cases only.
... return originalcatch.apply(this, arguments); }; })(this.promise); // calling catch on an already resolved promise promise.resolve().catch(function xxx(){}); // logs: // > > > > > > called .catch on promise{} with arguments: arguments{1} [0: function xxx()] // > > > > > > called .then on promise{} with arguments: arguments{2} [0: undefined, 1: function xxx()] description the catch method is used for error handling in promise composition.
....resolve().catch(function xxx(){}); // logs: // > > > > > > called .catch on promise{} with arguments: arguments{1} [0: function xxx()] // > > > > > > called .then on promise{} with arguments: arguments{2} [0: undefined, 1: function xxx()] description the catch method is used for error handling in promise composition.
...And 2 more matches
handler.construct() - JavaScript
the handler.construct() method is a trap for the new operator.
... the handler.construct() method is a trap for the new operator.
... the source for this interactive example is stored in a github repository.
...And 2 more matches
handler.getPrototypeOf() - JavaScript
the handler.getprototypeof() method is a trap for the [[getprototypeof]] internal method.
...peof]] internal method.
...ou'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...And 2 more matches
handler.set() - JavaScript
the handler.set() method is a trap for setting a property value.
...ty value.
...this is usually the proxy itself.
...And 2 more matches
handler.setPrototypeOf() - JavaScript
the handler.setprototypeof() method is a trap for object.setprototypeof().
...().
...clone https://github.com/mdn/interactive-examples and send us a pull request.
...And 2 more matches
RegExp.prototype[@@match]() - JavaScript
the [@@match]() method retrieves the matches when matching a string against a regular expression.
...ou'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...atch](str) parameters str a string that is a target of the match.
...And 2 more matches
RegExp.prototype[@@matchAll]() - JavaScript
the [@@matchall] method returns all matches of the regular expression against a string.
...pression against a string.
...one https://github.com/mdn/interactive-examples and send us a pull request.
...And 2 more matches
RegExp.prototype[@@search]() - JavaScript
the [@@search]() method executes a search for a match between a this regular expression and a string.
... the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...a string that is a target of the search.
...And 2 more matches
RegExp.prototype.exec() - JavaScript
the exec() method executes a search for a match in a specified string.
..., exec() can be used to iterate over multiple matches in a string of text (with capture groups), as opposed to getting just the matching strings with string.prototype.match().
...earch() instead.
...And 2 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 2 more matches
String.fromCodePoint() - JavaScript
the static string.fromcodepoint() method returns a string created by using the specified sequence of code points.
...com/mdn/interactive-examples and send us a pull request.
...um1[, ...[, numn]]) parameters num1, ..., numn a sequence of code points.
...And 2 more matches
String.prototype.includes() - JavaScript
the includes() method determines whether one string may be found within another string, returning true or false as appropriate.
...ve-examples and send us a pull request.
...string a string to be searched for within str.
...And 2 more matches
TypedArray - JavaScript
a typedarray object describes an array-like view of an underlying binary data buffer.
...t no such engines, so %typedarray% is only useful to polyfill functions or properties onto all typedarray constructors.
...ay types (such as int32array), the typedarray gets copied into a new typed array.
...And 2 more matches
yield - JavaScript
to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...rator function execution and the value of the expression following the yield keyword is returned to the generator's caller.
...e yield keyword causes the call to the generator's next() method to return an iteratorresult object with two properties: value and done.
...And 2 more matches
requiredFeatures - SVG: Scalable Vector Graphics
ven to attribute requiredfeatures, the attribute is evaluate to false.
...value animatable no <list-of-features> this is a list of feature strings, separated using white space.
...11/feature#pattern http://www.w3.org/tr/svg11/feature#clip http://www.w3.org/tr/svg11/feature#mask http://www.w3.org/tr/svg11/feature#filter http://www.w3.org/tr/svg11/feature#xlinkattribute http://www.w3.org/tr/svg11/feature#font http://www.w3.org/tr/svg11/feature#extensibility http://www.w3.org/tr/svg11/feature#svgdom-static the browser supports all of the dom interfaces and methods that correspond to the language features for http://www.w3.org/tr/svg11/feature#svg-static.
...And 2 more matches
Scripting - SVG: Scalable Vector Graphics
Web › SVG › Scripting
one can override default browser behaviors with the evt.preventdefault( ) method, add eventlisteners to objects with the syntax element.addeventlistener(event, function, usecapture), and set element properties with syntax svgelement.style.setproperty("fill-opacity", "0.0", "").
...arguments setting properties.
...nt code when writing drag and drop code, sometimes you'll find that text on the page gets accidently selected while dragging.
...And 2 more matches
Gradients in SVG - SVG: Scalable Vector Graphics
100" fill="url(#gradient2)"/> </svg> screenshotlive sample above is an example of a linear gradient being applied to a <rect> element.
...d earlier, it's impossible for the gradient to be rendered correctly, so the spot will be assumed to be within the edge of the circle.
...n the gradient reaches its end, the final offset color is used to fill the rest of the object.
...And 2 more matches
Using the WebAssembly JavaScript API - WebAssembly
</script> element in your html file, and add the following code to it: var importobject = { imports: { imported_func: arg => console.log(arg) } }; streaming the webassembly module new in firefox 58 is the ability to compile and instantiate webassembly modules directly from underlying sources.
...nt in your html file, and add the following code to it: var importobject = { imports: { imported_func: arg => console.log(arg) } }; streaming the webassembly module new in firefox 58 is the ability to compile and instantiate webassembly modules directly from underlying sources.
... example that achieves very little, but it does serve to illustrate what is possible — using webassembly code alongside javascript in your web applications.
...And 2 more matches
Communicating With Other Scripts - Archive of obsolete content
using <script> tags) main.js your content scripts can communicate with your add-on's "main.js" (or any other modules you're written for your add-on) by sending it messages, using either the port.emit() api or the postmessage() api.
... and using port for details.
...etails.
...-on creates a single page-mod object and loads several content scripts into the page mod, then only content scripts associated with the same page can interact with each other: if two different matching pages are loaded, content scripts attached to page a cannot interact with those attached to page b.
Working with Events - Archive of obsolete content
g to built-in events emitted by objects in the sdk, such as tabs opening, pages loading, mouse clicks sending and receiving user-defined events between content scripts and add-on code this guide only covers the first of these; the second is explained in the working with content scripts guide.
...ready event above, or they may be objects returned by constructors.
...t supplied to the button's constructor.
...id: "visit-mozilla", label: "visit mozilla", icon: "./icon-16.png" }); button.on("click", function() { require("sdk/tabs").open("https://developer.mozilla.org/"); }); removing event listeners event listeners can be removed by calling removelistener(type, listener), supplying the type of event and the listener to remove.
page-worker - Archive of obsolete content
on to the page() constructor.
...eracting with web content.
... use this to add a listener to the page worker's message event.
...r's message event.
request - Archive of obsolete content
the request object is used to make get, head, post, put, or delete network requests.
..., post, put, or delete network requests.
...ame); console.log("tweet: " + tweet.text); } }); // be a good consumer and check for rate limiting before doing more.
...response events complete the request object emits this event when the request has completed and a response has been received.
platform/xpcom - Archive of obsolete content
r with its contract id: var { factory } = require('sdk/platform/xpcom'); var { cc, ci } = require('chrome'); var contractid = '@me.org/request' // create and register the factory var factory = factory({ contract: contractid, component: request }); now xpcom users can access our implementation in the normal way: var request = cc[contractid].createinstance(ci.nsirequest); request.resume(); methods queryinterface(interface) this method is called automatically by xpcom, so usually you don't need to call it yourself.
...nd class id are accessible as the values of the contract and id properties, respectively.
...egister() and unregister() functions to register and unregister.
... interface of the 'about' object if you will be getting the wrappedjsobject property from the returned object to access its javascript implementation, pass ci.nsisupports here: var custom = factory.createinstance(null, ci.nsisupports).wrappedjsobject; // you can now access the interface defined for the 'custom' object returns object : the component created by the factory.
Bootstrapped extensions - Archive of obsolete content
may be a directory or an xpi file depending on whether the add-on is installed unpacked or not.
...e root of the add-ons files, this may be a jar: or file: uri depending on whether the add-on is installed unpacked or not.
...ldversion string the previously installed version, if the reason is addon_upgrade or addon_downgrade, and the method is install or startup.
...ring the version to be installed, if the reason is addon_upgrade or addon_downgrade, and the method is shutdown or uninstall.
File I/O - Archive of obsolete content
createinstance(components.interfaces.nsilocalfile); file.initwithpath("/home"); note: the path should be in the "native" form (for example"c:\\windows").
...ch(/\\/) != -1) ?
...s.classes["@mozilla.org/network/safe-file-output-stream;1"].
...tstream); stream.init(afile, 0x04 | 0x08 | 0x20, 0600, 0); // readwrite, create, truncate stream.write(pngbinary, pngbinary.length); if (stream instanceof components.interfaces.nsisafeoutputstream) { stream.finish(); } else { stream.close(); } more there are more methods and properties on nsifile and nsilocalfile interfaces; please refer to their documentation for more details.
Post data to window - Archive of obsolete content
this offers examples of sending post data to the server and displaying the server response.
...) loaduri(), opendialog(), and (tab)browser.loaduriwithflags() 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.
...post data in the form of an nsiinputstream (because they eventually call nsiwebnavigation.loaduri()) while post data can be created using nsimimeinputstream.
...ring, datastring.length); var postdata = cc["@mozilla.org/network/mime-input-stream;1"].
Common Pitfalls - Archive of obsolete content
with saves super-reviewers a lot of effort.
...s the baseuri can be null if the uristring should be treated as an absolute uri and uricharset can be null if there is no clear origin charset for the string (e.g.
...null if there is no clear origin charset for the string (e.g.
... representing the uri as the second argument.
Adding Events and Commands - Archive of obsolete content
on how to use the load event to initialize your add-on without having a negative performance impact on firefox.
...refox.
...bel;" oncommand="xulschoolchrome.browseroverlay.changegreeting(event);" /> then on the javascript code you would have something like this: changegreeting : function(aevent) { // more stuff aevent.target.setattribute("label", somenewgreeting); } the target in this example is the button element, so clicking on it will change its text.
...d about event propagation.
Handling Preferences - Archive of obsolete content
i.nsiprefbranch); // ...
... important thing to keep in mind is that the "get" methods of the service can throw an exception if the preference is not found.
... a try / catch block to prevent unhandled errors.
...his._prefservice.queryinterface(ci.nsiprefbranch2); this._prefservice.addobserver(prefname, this, false); this._prefservice.queryinterface(ci.nsiprefbranch); all the qi'ing is necessary because the addobserver method is in a different interface, and other than for adding and removing observers, we use the nsiprefbranch interface for everything related to preferences.
JavaScript Object Management - Archive of obsolete content
ve to set attributes or functions with dynamically generated names.
...object is not readily available, use an nsitimer instead.
...ple of this is the fact that there are no private or public keywords that allow you to protect object members.
...clude interacting with a local database or a remote api.
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.
.../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.
...m amo.
... style drop-down menu in the editor.
Source Navigator - Archive of obsolete content
o build your projects, either with your own makefile, or by using source-navigator's build system to automatically generate a makefile.
...earching the mozilla code in a faster speed.
...e in a faster speed.
... project open a terminal.
Editor Embedding Guide - Archive of obsolete content
->do_getinterface on the nsiwebbrowser to retrieve the nsieditingsession from it.
... getcommandstate "state_enabled" (boolean) docommand no parameter note getcommandstate in these cases will return whether or not it is possible to call docommand.
...,"left"); reading for reading you may go after individual name/value pairs you know are there or you may iterate through all the name/value pairs and programatically pull off data.
...ame/value pairs you know are there or you may iterate through all the name/value pairs and programatically pull off data.
Using microformats - Archive of obsolete content
this object and its api make finding and reading microformats easy to do.
...cript.
...out.
...nt of the specified node.
generateCRMFRequest() - Archive of obsolete content
o api instead.
... keysizen, "keyparamsn", "keygenalgn"); this method will generate a sequence of crmf requests that has n requests.
...le dsa key for nonrepudiation.
...ave digitalsignature and nonrepudiation set for keyusage.) "dh-ex" "ec-ex" "ec-dual-use" "ec-sign" "ec-sign-nonrepudiation" "ec-nonrepudiation" the generatecrmfrequest() method will cause the user to be presented with a key generation dialog.
Java in Firefox Extensions - Archive of obsolete content
//set security policies using the above policyadd() function policyadd(cl, urlarray); now you can begin using liveconnect, including referencing the classes in your jars.
...icies using the above policyadd() function policyadd(cl, urlarray); now you can begin using liveconnect, including referencing the classes in your jars.
...add(cl, urlarray); now you can begin using liveconnect, including referencing the classes in your jars.
...ar aclass = java.lang.class.forname("org.mozilla.developer.helloworld", true, cl); var astaticmethod = aclass.getmethod("getgreeting", []); var greeting = astaticmethod.invoke(null, []); alert(greeting); another, perhaps simpler approach is as follows: var myclass = loader.loadclass('com.example.myclass'); // use the same loader from above var myobj = myclass.newinstance(); var binval = myobj.mymethod(arg1, arg2); // pass whatever arguments you need (they'll be auto-converted to java form, taking into account the liveconnect conversion rules) for more complex cases, in which you need to call a specific constructor with arguments, you will need reflection.
Simple Storage - Archive of obsolete content
operators.
...these methods, since they cause firefox -- all of firefox -- to drop what it's doing to make a trip to the disk.
...sers.
...ed above, the jetpack.storage.simple object is automatically written to disk, but a feature may force flush by calling jetpack.storage.simple.sync().
Clipboard - Archive of obsolete content
dardized way for features to access the clipboard.
...data type.
...this is the recommended method of copying data to the clipboard.
...clipboard.
Clipboard - Archive of obsolete content
y for features to access the clipboard.
... type.
...s the recommended method of copying data to the clipboard.
...pboard.
Simple Storage - Archive of obsolete content
operators.
...these methods, since they cause firefox -- all of firefox -- to drop what it's doing to make a trip to the disk.
...sers.
...ed above, the jetpack.storage.simple object is automatically written to disk, but a feature may force flush by calling jetpack.storage.simple.sync().
Clipboard - Archive of obsolete content
ay for features to access the clipboard.
... the namespace associated with this api is jetpack.clipboard which provides both read and write access to the clipboard.
... this is the recommended method of copying data to the clipboard.
...pboard.
InstallVersion Object - Archive of obsolete content
recated and as of gecko 1.9 no longer available.
...ging scheme with an install.rdf manifest.
...how to package a plugin as an extension.
...n objects to contain version information for software.
gestalt - Archive of obsolete content
gestalt (macintosh only) retrieves information about the operating environment.
... gestalt (macintosh only) retrieves information about the operating environment.
...) retrieves information about the operating environment.
...he following parameters: selector the selector code for the information you want.
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.
...available in netscape 6 or later and may be case sensitive (depending on the operating system).
... a filespecobject representing a directory obtained by getcomponentfolder or getfolder.
getWinRegistry - Archive of obsolete content
getwinregistry (windows only) constructs an object for working with the windows registry.
... getwinregistry (windows only) constructs an object for working with the windows registry.
... getwinregistry (windows only) constructs an object for working with the windows registry.
...rking with the windows registry.
refreshPlugins - Archive of obsolete content
refreshplugins refreshes the list of plug-ins registered for the browser.
... refreshplugins refreshes the list of plug-ins registered for the browser.
...hplugins( [ areloadpages ] ); parameters the refreshplugins method has the following parameter: areloadpages areloadpages is an optional boolean value indicating whether you want to reload the open web pages after you have refreshed the plug-in list.
...turns nothing.
registerChrome - Archive of obsolete content
registerchrome registers chrome with the chrome registry.
... registerchrome registers chrome with the chrome registry.
... xpi is registered.
...od on the install object.
getString - Archive of obsolete content
getstring retrieves a value from a .ini file.
... getstring retrieves a value from a .ini file.
...ieves a value from a .ini file.
...on, string key); parameters the method has the following parameters: section section in the file, such as "boot" or "drivers".
writeString - Archive of obsolete content
summary changes a value in a .ini file.
... summary changes a value in a .ini file.
...le object syntax boolean writestring ( string section, string key, string value); parameters the method has the following parameters: section section in the file, such as "boot" or "drivers".
..."boot" or "drivers".
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.
... subkey the key path to the appropriate location in the key hierarchy, such as "software\\netscape\\navigator\\mail".
...uch as "software\\netscape\\navigator\\mail".
setRootKey - Archive of obsolete content
setrootkey changes the root key being accessed.
... setrootkey changes the root key being accessed.
...ntax void setrootkey ( int key ); parameters the method has the following parameter: key an integer representing a root key in the registry.
...eger representing a root key in the registry.
WinReg Object - Archive of obsolete content
sed packages to the new packaging scheme with an install.rdf manifest.
...d, you construct an instance of this object by calling the getwinregistry method of the install object.
... are already familiar with the windows registry.
... it, see api documentation for windows nt or windows 95.
onpopuphidden - Archive of obsolete content
« xul reference home onpopuphidden type: script code this event is sent to a popup after it has been hidden.
... <menuitem label="submenu1 item 1"/> <menuitem label="submenu1 item 2"/> </menupopup> </menu> <menu id="submenu2" label="submenu 1"> <menupopup id="submenu2-popup"> <menuitem label="submenu2 item 1"/> <menuitem label="submenu2 item 2"/> </menupopup> </menu> <menupopup/> with the above structure, the onpopuphidden method of <menupopup id="top"> will be called every time either <menupopup id="submenu1-popup"> or <menupopup id="submenu2-popup"> are hidden.
...enu 1"> <menupopup id="submenu2-popup"> <menuitem label="submenu2 item 1"/> <menuitem label="submenu2 item 2"/> </menupopup> </menu> <menupopup/> with the above structure, the onpopuphidden method of <menupopup id="top"> will be called every time either <menupopup id="submenu1-popup"> or <menupopup id="submenu2-popup"> are hidden.
...p id="top"> will be called every time either <menupopup id="submenu1-popup"> or <menupopup id="submenu2-popup"> are hidden.
Working With Directories - Archive of obsolete content
nsifile.create().
...h files and directories are represented using the same kind of object so most of the functions available for nsifile will work for both.
...ect so most of the functions available for nsifile will work for both.
...rs to a file.
Moving, Copying and Deleting Files - Archive of obsolete content
rsion of the platform (pending some fixes).
... data, list of file-related error codes.
...is to make a backup of a directory of files for instance.
...destination argument may be null.
MoveResize - Archive of obsolete content
moving and resizing a popup menus and popups have methods which may be used to move and resize them.
... moving and resizing a popup menus and popups have methods which may be used to move and resize them.
... moving and resizing a popup menus and popups have methods which may be used to move and resize them.
...enu popup might appear above the label.
Panels - Archive of obsolete content
e values that can be used, see positioning popups.
...the panel element is used instead of the menupopup element.
...re details on this.
...ntbyid("search-panel").hidepopup(); } </script> <toolbarbutton label="search" type="panel"> <panel id="search-panel" position="after_start"> <textbox id="search"/> <button label="search" oncommand="dosearch();"/> </panel> </toolbarbutton> in this example, the dosearch() function is called when the "search" button is pressed.
Popup Guide - Archive of obsolete content
lly disappears.
...e created by setting the tooltiptext attribute on an element or by using the tooltip element.
...mation about closing a popup, see closing a popup or closing a menu.
... about how the position of a popup on screen is determined, and how to align popups to other elements, see positioning popups.
Install Scripts - Archive of obsolete content
for this reason, installers include an install script to handle the installation process.
...files","/xulplanet/find files","0.5.0.0"); the first argument is the name of the package in user-readable form.
...he package in user-readable form.
... the package information as described earlier.
More Wizards - Archive of obsolete content
zard navigation normally, a wizard displays each wizardpage in the order that you place them in the xul file.
...depending on what the user selects in earlier pages.
...ttribute on each of the pages.
...h page to the page id of the next page to go to.
XPCOM Interfaces - Archive of obsolete content
javascript.
...returns true if afile implements the nsilocalfile interface.
...his also has the side effect of calling queryinterface(), so afile will be a valid nsilocalfile afterwards.
...file to another directory, optionally renaming the file.
The Implementation of the Application Object Model - Archive of obsolete content
ings to cids, so we have a story for instantiating our different content nodes.
...nction bodies.
...ied.
...in the interfaces as well as a likely code redundancy in the implementation of some of those methods, and (2) the desire to be insulated from the layout dll should those interfaces change, imply that a layer needs to exist between the pluggable content and the content tree interfaces.
arrowscrollbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a box which provides scroll arrows along its edges for scrolling through the contents of the box.
...r only needs to hover the mouse over the arrows to scroll the box.
...lean can be set to enable or disable smooth scrolling for the corresponding arrowscrollbox.
...ument to scroll forward that many lines, or a negative value to scroll backward that many lines.
button - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a button that can be pressed by the user.
... controls have a disabled property which, except for menus and menuitems, is normally preferred to use of the attribute, as it may need to update additional state.
... of the label attribute.
....
dialog - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] this element should be used in place of the window element for dialog boxes.
...uttonaccesskeyaccept, buttonaccesskeycancel, buttonaccesskeydisclosure, buttonaccesskeyextra1, buttonaccesskeyextra2, buttonaccesskeyhelp, buttonalign, buttondir, buttondisabledaccept, buttonlabelaccept, buttonlabelcancel, buttonlabeldisclosure, buttonlabelextra1, buttonlabelextra2, buttonlabelhelp, buttonorient, buttonpack, buttons, defaultbutton, title properties buttons, defaultbutton methods acceptdialog, canceldialog, centerwindowonscreen, getbutton, movetoalertposition examples <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?> <dialog id="donothing" title="dialog example" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" buttons="accept,cancel" buttonlabelcancel="cancel" buttonlabelaccept="save"> <d...
...onal additional button.
... its label with the buttonlabelextra2 attribute.
iframe - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] an inner frame that works much like the html <iframe> element.
... object in the element.
... this read-only property contains the nsidocshell object for the document.
...property contains the nsidocshell object for the document.
notificationbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] the notificationbox element is used to display notifications above an element.
...so it is possible to call function with the same name (they are different) of global object gbrowser: notifybox = gbrowser.getnotificationbox() examples <notificationbox flex="1"> <browser src="http://www.mozilla.org"/> </notificationbox> there is a more complex code available in the code snippets area.
....
...-only.
preference - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] declares a preference that may be adjusted in a prefpane.
... such as a checkbox to a preference element using the user interface element's preference attribute.
...ue === undefined, indicating that the preference does not have a user-set value (hasuservalue == false).
...nction calls onsynctopreference.
scale - Archive of obsolete content
Archive › Mozilla › XUL › scale
« xul reference home [ examples | attributes | properties | methods | related ] a scale (sometimes referred to as a "slider") allows the user to select a value from a range.
... one page, as specified by the pageincrement attribute.
... gets and sets the value of the pageincrement attribute.
...value of the pageincrement attribute.
stringbundle - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] an element which can be used to load localized resources from property files.
...he following defines two properties: message.displayerror=an error occured trying to display this message message.namealreadyused=the name %s is already being used by another account.
... user's locale.
...t in the supplied array.
tab - Archive of obsolete content
Archive › Mozilla › XUL › tab
« xul reference home [ examples | attributes | properties | methods | related ] a single tab which should be placed inside a tabs element.
...ved.
...ilable for menuitem and menuseparator elements in firefox 3.
... menuseparator elements in firefox 3.
toolbarbutton - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a button that appears on a toolbar.
...e controls have a disabled property which, except for menus and menuitems, is normally preferred to use of the attribute, as it may need to update additional state.
...value of the label attribute.
...ribute.
Monitoring plugins - Archive of obsolete content
o the mozilla observer service, you may want to familiarize yourself with it before proceeding further.
... proceeding further.
...od that contains the following code: var observerservice = components.classes["@mozilla.org/observer-service;1"] .getservice (components.interfaces.nsiobserverservice); observerservice.addobserver(this, "experimental-notify-plugin-call", false); observing as discussed above, to specify what you want done when a notification arrives your class must have an observe method, receiving 3 parameters (subject, topic and data).
...bove an if statement first checks to see that the arriving notification's topic is the correct one.
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.
...ets the names of the properties and methods of the specified npobject.
...ifier **identifiers, uint32_t *identifiercount); parameters the function has the following parameters: npp the npp indicating which plugin instance is making the request.
...g which plugin instance is making the request.
Developing cross-browser and cross-platform pages - Archive of obsolete content
ed/expected to.
...tton" onclick="hideelement('d1');">hide div</button> // <div id="d1">some text</div> these repeated calls to document.getelementbyid are not the most efficient way to check for the existence of particular objects or features in the browser's dom implementation, but they serve to illustrate clearly how object support detection works.
... a reference to an existing element, which it then checks for a style object.
...e object exists on the element, then it sets that object's visibility property.
XForms Custom Controls Examples - Archive of obsolete content
ol examples.
...nds="chrome://xforms/content/xforms.xml#xformswidget-base"> <content> <html:div> <html:img anonid="content"/> </html:div> </content> <implementation implements="nsixformsuiwidget"> <method name="refresh"> <body> var img = document.getanonymouselementbyattribute(this, "anonid", "content"); img.setattribute("src", this.stringvalue); 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> <proper...
...<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.
...gvalue; var newdom = this.domparser.parsefromstring(val, "text/xml"); var impnode = document.importnode(newdom.firstchild, true); // get content node, clean it, and update it var content = document.getanonymouselementbyattribute(this, "anonid", "content"); if (content.firstchild) { content.removechild(content.firstchild); } content.appendchild(impnode); return true; </body> </method> </implementation> </binding> ...
Implementation Status - Archive of obsolete content
etinstancedocument() supported 4.8.2 rebuild() supported 4.8.3 recalculate() supported 4.8.4 revalidate() supported 4.8.5 refresh() supported 4.9 feature string for the hasfeature method call supported 5.
...ctions supported 10.18 iteration of xforms actions supported 11.
...asis via a preference.
... 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 11.9.3 the put submission method supported 11.9.4 the delete submission method unsupported 11.9.5 serialization as ...
The Business Benefits of Web Standards - Archive of obsolete content
nevitably always wrong.
... in the office and when travelling.
...the person applying the markup need not necessarily, know (or care) how it is going to be styled.
...pleasing, satisfying and fulfilling user experience translates, into more traffic, more repeat visitors, fewer bounces, greater loiter time and higher click throughs.
Primitive - MDN Web Docs Glossary: Definitions of Web-related terms
in javascript, a primitive (primitive value, primitive data type) is data that is not an object and has no methods.
...mmutable, i.e., they cannot be altered.
... new value, but the existing value can not be changed in the ways that objects, arrays, and functions can be altered.
...ng a copy, without affecting the original.
Cacheable - MDN Web Docs Glossary: Definitions of Web-related terms
a cacheable response is an http response that can be cached, that is stored to be retrieved and used later, saving a new request to the server.
... a cacheable response is an http response that can be cached, that is stored to be retrieved and used later, saving a new request to the server.
...nstraints for an http response to be cached: the method used in the request is itself cacheable, that is either a get or a head method.
...cacheable: 200, 203, 204, 206, 300, 301, 404, 405, 410, 414, and 501.
Organizing your CSS - Learn web development
always win over your own personal preferences.
... organisation, therefore you need to do the work to create consistency and rules around how you write css.
... css projects.
...ose use of css than you might have if you wrote and optimised every selector to a custom set of rules for that project.
Floats - Learn web development
or creating multiple column layouts on webpages.
...gin: 0 auto; font: .9em/1.2 arial, helvetica, sans-serif } .wrapper { background-color: rgb(79,185,227); padding: 10px; color: #fff; } .box { float: left; margin: 15px; width: 150px; height: 150px; border-radius: 5px; background-color: rgb(207,232,220); padding: 1em; } .wrapper::after { content: ""; clear: both; display: block; } using overflow an alternative method is to set the overflow property of the wrapper to a value other than visible.
...207,232,220); padding: 1em; } test your skills!
... development.
Choosing the right approach - Learn web development
executed when passed to a third-party library.
... full support full support compatibility unknown compatibility unknownsee implementation notes.see implementation notes.
... full support compatibility unknown compatibility unknownsee implementation notes.see implementation notes.
...> { // depending on what type of file is being fetched, use the relevant function to decode its contents if(type === 'blob') { return response.blob(); } else if(type === 'text') { return response.text(); } }) .catch(e => { console.log(`there has been a problem with your fetch operation for resource "${url}": ` + e.message); }); } // call the fetchanddecode() method to fetch the images and the text, and store their promises in variables let coffee = fetchanddecode('coffee.jpg', 'blob'); let tea = fetchanddecode('tea.jpg', 'blob'); let description = fetchanddecode('description.txt', 'text'); // use promise.all() to run code only when all three function calls have resolved promise.all([coffee, tea, description]).then(values => { console.log(values); // st...
Package management basics - Learn web development
challenging to keep track of.
...e now and you’ll not see anything for now, but what is cool is that when you do make changes to your app, parcel will rebuild it and refresh the server automatically so you can instantly see the effect your update had.
...n some in action, but lets look at the others.
...rcel-experiment directory: npm run dev this should start parcel and serve up your index.html at the local development server, as we saw before: server running at http://localhost:1234 ✨ built in 5.48s.
Accessibility/LiveRegionDevGuide
regards to live regions.
...ions.
...any live region support module is the priority queue.
...er and the live politeness properties.
Listening to events on all tabs
firefox 3.5 adds support for listening to progress events on all tabs.
...method: gbrowser.addtabsprogresslistener(myprogresslistener); myprogresslistener is an object that implements the callbacks used to provide notifications of progress events.
...indicated by the request parameter.
... of possible status codes.
Communicating with frame scripts
0s-extension-message", { details : "they clicked", tag : event.target.tagname }); content.console.log(results[0]); // "value from chrome" }, false); like arguments, return values from sendsyncmessage() must be json-serializable, so chrome can't return functions.
...messages from content, use the message manager's removemessagelistener() method: // chrome script messagemanager.removemessagelistener("my-addon@me.org:my-e10s-extension-message", listener); chrome to content to send a message from chrome to content, you need to know what kind of message manager you're using.
... to content to send a message from chrome to content, you need to know what kind of message manager you're using.
... it's a browser message manager, you can use the message manager's sendasyncmessage method: // chrome script browser.messagemanager.sendasyncmessage("my-addon@me.org:message-from-chrome"); if you have a window or a global message manager, you need to use the broadcastasyncmessage method: // chrome script window.messagemanager.broadcastasyncmessage("my-addon@me.org:message-from-chrome"); these methods takes one mandatory parameter, which is the message name.
mozbrowsershowmodalprompt
ure is non-standard and is not on a standards track.
... object a custom object.
...ties: prompttype a domstring defining the type of the prompt.
...bedder.
Introduction to Layout in Mozilla
creates a content sink, which is linked to the parser and the document creates a documentviewerimpl object, which is returned as nsicontentviewer back to the docshell documentviewerimpl creates pres context and pres shell content model construction content arrives from network via nsistreamlistener::ondataavailable parser tokenizes & processes content; invokes methods on nsicontentsink with parser node objects some buffering and fixup occurs here opencontainer, closecontainer, addleaf content sink creates and attaches content nodes using nsicontent interface content sink maintains stack of “live” elements more buffering and fixup occurs here insertchildat, appendchildto, removechildat frame constructio...
... w, h) for frames, views, and widgets given w & h constraints of “root frame” compute (x, y, w, h) for all children constraints propagated “down” via nshtmlreflowstate desired size returned “up” via nshtmlreflowmetrics basic pattern parent frame initializes child reflow state (available w, h); places child frame (x, y); invokes child’s reflow method child frame computes desired (w, h), returns via reflow metrics parent frame sizes child frame and view based on child’s metrics n.b.
...ilable w, h); places child frame (x, y); invokes child’s reflow method child frame computes desired (w, h), returns via reflow metrics parent frame sizes child frame and view based on child’s metrics n.b.
...ry and damage propagation cost painting as reflow proceeds through the frame hierarchy, areas are invalidated via nsiviewmanager::updateview unless immediate, invalid areas are coalesced and processed asynchronously via os expose event native expose event dispatched to widget; widget delegates to the view manager view manager paints views back-to-front, invoking presshell’s paint method presshell::paint walks from the view to the frame; invokes nsiframe::paint for each layer incrementalism single-threaded simple (no locking) can’t leave event queue unattended content construction unwinds “at will” parser and content sink do some buffering content sink has “notification limits” efficiency vs.
Dict.jsm
bject type.
... changes during iteration, no guarantees are made as to what will happen.
...tees are made as to what will happen.
...s article.
OS.File.Info
instances of os.file.info represent file metadata, such as the size of the file, its last modification date, etc.
... instances of os.file.info represent file metadata, such as the size of the file, its last modification date, etc.
...uccess(info) { if ("unixowner" in info) { // info.unixowner holds the owner of the file } else { // information is not available on this platform } } ); evolution of this example bug 802534 will introduce the ability to check whether field unixowner appears in os.file.info.prototype, which will make it possible to write faster code.
...ms it was returning the last modified date and thus it was deprecated.
WebChannel.jsm
g webchannelid, nsiuri originorpermission); 2nd argument is a valid origin that should be part of requests for this channel.
...ument is a permission for which the permission manager will be checked to determine if the request is allowed.
... for messages on this channel.
...to the .send() method stoplistening() resets the callback for messages on this channel.
Mozilla Style System Documentation
n the css specification.) we also create style contexts for some things that are not css formatting objects: text nodes and placeholder frames.
...s defined in the css specification (:before, :after, :first-line, :first-letter), but few of mozilla's custom pseudo-elements, many of which are hacks for further formatting objects that we create.
...s very hard to fix because of the "sibling-sharing" optimisation.
...herited by default or single properties that are set to the initial value by default (see css26.1.1), which is essential for the ruletree.
A brief guide to Mozilla preferences
and information on editing preferences.
...the preference has a user value even when it is the same as the default.
...an modify the default preferences in two ways: the administrator may add an all-companyname.js preference file (install_directory/browser/defaults/preferences/all-companyname.js).
...rofile/ ; this will put a copy of the user.js in all new profiles.
About NSPR
ating system structuring concept , communications of the acm, 17(10), october 1974 and then formalized by xerox' mesa programming language ("mesa language manual", j.g.
...ditionally, nspr provides synchronization methods more suited for use by java.
...ities include monitor reentrancy, implicit and tightly bound notification capabilities with the ability to associate the synchronization objects dynamically.
...currency needed for complex applications.
NSS tools : vfychain
ions) is a collection of the following flags: [-g type [-h flags] [-m type [-s flags]] ...] ...
...tion of the following flags: [-g type [-h flags] [-m type [-s flags]] ...] ...
...re: -g test-type sets status checking test type.
...type.
NSS tools : vfychain
.
...test-type sets status checking test type.
...ain" -g test type sets status checking test type.
...test type.
Rhino overview
introduction most people who have used javascript before have done so by adding scripts to their html web pages.
...ject that implements the securitysupport interface.
...ay.
...getinterpretersecuritydomain() method of context to obtain the security domain of the currently executing interpreted script or function.
The JavaScript Runtime
ccess properties in javascript objects may be accessed using either string or numeric identifiers.
...too expensive to be performed on every array access.
..., values of numbers that do not fix in integers (like 1.1 and 0x100000000) must be converted to strings.
...access to the host environment.
Self-hosted builtins in SpiderMonkey
t using the syntax callfunction(fun, receiver, ...args) (or callcontentfunction, see below), which causes fun to be called within the scope of receiver with ...args as its arguments.
...s it impossible for other code to interfere and gets compiled to bytecode that doesn't have any overhead compared to a normal function invocation.
...selfhostingdefines.h header contains adding self-hosted functions to host objects first, the code has to be embedded into spidermonkey.
...e, create a new .js file in that directory and add it to the selfhosted.inputs list in moz.build.
JS::MutableHandle
this article covers features introduced in spidermonkey 17 reference to a t that has been rooted elsewhere.
... this article covers features introduced in spidermonkey 17 reference to a t that has been rooted elsewhere.
...method description const t &get() const returns *ptr.
...lue of *ptr to v.
JSFastNative
obsolete since javascript 1.8.5this feature is obsolete.
...l * the arguments, including the this argument, the return-value slot, and the callee function object are accessible through this pointer using macros described below.
...cros to access the fields of vp: macro name description js_callee(cx, vp) returns the function object that was called, as a jsval.
... after calling js_set_rval.
JS_DefineFunction
ve call, unsigned nargs, unsigned attrs); // added in spidermonkey 17 name type description cx jscontext * the context in which to define the function.
...e function.
... nargs unsigned number of arguments that are passed to the function when it is called.
... description js_definefunction exposes a c/c++ function to scripts by defining a new method on an existing javascript object.
SpiderMonkey 1.8.8
types changes, see this blog post.
...prototype.
...ack changes many of the jsclass callbacks such as jsresolveop, jsenumerateop and jspropertyop, have a type change on their arguments to jshandleobject, jshandleid, jshandlemutableobject etc.
...r around these objects, so you would cast the argument to jsobject**, in the callback function.
SpiderMonkey 17
types changes, see this blog post.
...prototype.
...ack changes many of the jsclass callbacks such as jsresolveop, jsenumerateop and jspropertyop, have a type change on their arguments to jshandleobject, jshandleid, jshandlemutableobject etc.
... required a jscontext* in threadsafe builds.
Embedded Dialog API
ions concerned with a consistent overall dialog appearance will probably choose to implement the complete api as well.
...as well.
...ces are the canonical example.
...ly opening a window must take an nsidomwindow *aparent parameter, and use that window as the dialog's parent, if non-null.
Feed content access API
est = new xmlhttprequest(); httprequest.open("get", feedurl, true); try { httprequest.onload = inforeceived; httprequest.send(null); } catch(e) { alert(e); } } the nsifeedprocessor interface lets you parse the feed data from several possible sources; in this case, we're loading a document into a string, then parsing that string using its parsefromstring() method.
... alert(e); } } the nsifeedprocessor interface lets you parse the feed data from several possible sources; in this case, we're loading a document into a string, then parsing that string using its parsefromstring() method.
... receives as its argument an nsifeedresult that describes a feed; its doc property is an nsifeed that contains all the feed data.
...() method to get a copy of the title translated into plain text.
Using the Places keywords API
ence is that keywords are not bound to a specific bookmark, but to a specific url.
... url: "http://www.example.com/" postdata: "post+data=1&test=2" }).then(() => { /* success */ }, e => { /* failure */ }); note that setting an already existing keyword to a different url, will silently update the existing keyword to the new url.
...enting the keyword url: the url represeted by the keyword postdata: optional post data string.
...e entries it's necessary to provide a callback function.
Using the Places tagging service
the tagging service, offered by the nsitaggingservice interface, provides methods to tag and untag a uri, to retrieve uris for a given tag, and to retrieve all tags for a uri.
..., to retrieve uris for a given tag, and to retrieve all tags for a uri.
...gging a uri nsitaggingservice.untaguri() removes tags from a url.
...rgument = uri //second argument = array of tag(s) finding all urls with a given tag the nsitaggingservice.geturisfortag() method returns an array of all urls tagged with the given tag.
extISessionStorage
this content covers features introduced in thunderbird 3 extisessionstorage allows an extension to store data for the life time of the application (e.g.
... features introduced in thunderbird 3 extisessionstorage allows an extension to store data for the life time of the application (e.g.
...n to store data for the life time of the application (e.g.
...lication.storage.
Component Internals
stration below shows the basic relationship between the shared library containing the component implementation code you write and the xpcom framework itself.
...with which interfaces.
...these manifests, so that your component will be found and registered at startup.
...ir own code for watching a particular directory and registering new components that are added there, which is what's often referred to as autoregistration.
How to build a binary XPCOM component using Visual Studio
this is a simple tutorial for building xpcom objects in c++ using visual studio.
...com_glue and i am linking against xpcomglue_s.lib create an xpcom component a full tutorial of xpcom is beyond the scope of this posting.
...ting.
...thing(); 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; } ns_imethodimp cspecialthing::setname(const nsastring & aname) { mname.assign(aname); return ns_ok; } /* long add (in long a, in long b); */ ns_imethodimp cspecialthing::add(print32 a, print32 b, print32 *_retval) { *_retval = a + b; return ns_ok; } lastly, we need to create the module implementation.
Components.Constructor
behavior of functions returned by components.constructor() varies depending upon the arguments given to components.constructor() when called.
... "nsibinaryinputstream"); var bis = new binaryinputstream(); print(bis.tostring()); // "[xpconnect wrapped nsibinaryinputstream]" // someinputstream is an existing nsiinputstream bis.setinputstream(someinputstream); // succeeds if three arguments are given, then in addition to being nsisupports.queryinterface()'d, the instance will also have had an initialization method called on it.
... = new binaryinputstream(); print(bis.tostring()); // "[xpconnect wrapped nsibinaryinputstream]" // someinputstream is an existing nsiinputstream bis.setinputstream(someinputstream); // succeeds if three arguments are given, then in addition to being nsisupports.queryinterface()'d, the instance will also have had an initialization method called on it.
...binaryinputstream;1"] .createinstance(components.interfaces.nsibinaryinputstream); bis.setinputstream(someinputstream); // assumes binaryinputstream was initialized previously var bis = new binaryinputstream(someinputstream); components.constructor() is purely syntactic sugar (albeit speedy and pretty syntactic sugar) for actions that can be accomplished using other common methods.
Components.classes
s are classes indexed by contractid.
... components.classes object can be enumerated using a for...in loop.
... .createinstance(components.interfaces.nsisupportsarray); which is a shortcut to var obj = components.classes["@mozilla.org/supports-array;1"] .createinstance(); obj.queryinterface(components.interfaces.nsisupportsarray); if you don't provide a specific interface to createinstance(), it will return an xpconnect wrapper for the component, which only exposes the methods of the nsisupports interface (and under certain circumstances the special wrappedjsobject property).
... var os = cc["@mozilla.org/observer-service;1"] .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.utils.setGCZeal
this method lets scripts set the zeal level for garbage collection.
... this method lets scripts set the zeal level for garbage collection.
... this method lets scripts set the zeal level for garbage collection.
... this method lets scripts set the zeal level for garbage collection.
NS_OVERRIDE
ns_override is a macro which allows c++ code in mozilla to specify that a method is intended to override a base class method.
... ns_override is a macro which allows c++ code in mozilla to specify that a method is intended to override a base class method.
... ns_override is a macro which allows c++ code in mozilla to specify that a method is intended to override a base class method.
... a::getfoo() is changed 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.
IAccessibleAction
other-licenses/ia2/accessibleaction.idlnot scriptable this interface gives access to actions that can be executed for accessible objects.
...e needed more for ats that assist the mobility impaired, such as on-screen keyboards and voice command software.
...] long actionindex ); [propget] hresult keybinding([in] long actionindex, [in] long nmaxbindings, [out, size_is(,nmaxbindings), length_is(, nbindings)] bstr keybindings, [out] long nbindings ); [propget] hresult localizedname([in] long actionindex, [out] bstr localizedname ); hresult nactions([out,retval] long nactions ); [propget] hresult name([in] long actionindex, [out] bstr name ); methods description() returns a description of the specified action of the object.
...scribing one or more key bindings, if there are any, associated with the specified action.
imgIContainerObserver
image/public/imgicontainerobserver.idlscriptable an interface to implement to listen to activities on an imgicontainer object.
... image/public/imgicontainerobserver.idlscriptable an interface to implement to listen to activities on an imgicontainer object.
... introduced gecko 1.7 inherits from: nsisupports last changed in gecko 12.0 (firefox 12.0 / thunderbird 12.0 / seamonkey 2.9) if you wish to listen for activities on an imgicontainer, you should implement the framechanged() method.
... has changed.
imgIRequest
modules/libpr0n/public/imgirequest.idlscriptable please add a summary to this article.
...ors_none 1 cors modes images can be loaded with.
...ns) with all the notifications that have already been dispatched for this image load.
...t yet, locks it once it becomes available.
mozIStorageAggregateFunction
ns one value from a series of values.
...cts implementing this interface can be registered with mozistorageconnection.createaggregatefunction().
...tddev", 1, standarddeviationfunc); // run some query that uses the function.
...andle the results } } finally { stmt.reset(); } c++ // first, create our class that will represent our function.
mozIStoragePendingStatement
the mozistoragependingstatement interface represents a pending asynchronous database statement, and offers the cancel() method which allows you to cancel the pending statement.
... the mozistoragependingstatement interface represents a pending asynchronous database statement, and offers the cancel() method which allows you to cancel the pending statement.
...dingstatement interface represents a pending asynchronous database statement, and offers the cancel() method which allows you to cancel the pending statement.
...once.
mozIVisitInfoCallback
toolkit/components/places/public/moziasynchistory.idlscriptable this interface provides callback handling functionality for moziasynchistory.updateplaces() 1.0 66 introduced gecko 2.0 inherits from: nsisupports last changed in gecko 9.0 (firefox 9.0 / thunderbird 9.0 / seamonkey 2.6) method overview void handleerror(in nsresult aresultcode, in moziplaceinfo aplaceinfo); void handleresult(in moziplaceinfo aplaceinfo); void oncomplete(in nsresult aresultcode, in moziplaceinfo aplaceinfo);obsolete since gecko 8.0 methods handleerror() called when a moziplaceinfo couldn't be processed.
...r( in nsresult aresultcode, in moziplaceinfo aplaceinfo ); parameters aresultcode nsresult indicating the reason why the change failed.
...ird 8.0 / seamonkey 2.5) called for each visit added, title change, or guid change when passed to moziasynchistory.updateplaces().
...change, or guid change when passed to moziasynchistory.updateplaces().
nsIAccessibleImage
accessible/public/nsiaccessibleimage.idlscriptable this interface allows in-process accessibility clients to retrieve information about an image.
...ic/nsiaccessibleimage.idlscriptable this interface allows in-process accessibility clients to retrieve information about an image.
...ity clients to retrieve information about an image.
...ng y ); parameters coordtype specifies coordinates origin (for available constants refer to nsiaccessiblecoordinatetype).
nsIAlertsService
no effect on mac os x in gecko 1.8, but was fully supported in mac os x in gecko 1.9.
...t, [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.
... hovered the notification background becomes lighter and the cursor turns to a pointer.
...cks from the alert; may be null if you don't care about callbacks.
nsIAnnotationObserver
toolkit/components/places/public/nsiannotationservice.idlscriptable please add a summary to this article.
...troduced gecko 1.8 inherits from: nsisupports last changed in gecko 1.9 (firefox 3) method overview void onitemannotationremoved(in long long aitemid, in autf8string aname); void onitemannotationset(in long long aitemid, in autf8string aname); void onpageannotationremoved(in nsiuri auri, in autf8string aname); void onpageannotationset(in nsiuri apage, in autf8string aname); methods onitemannotationremoved() this method is called when an annotation is deleted for an item.
...on is deleted for an item.
...n an annotation is deleted for a uri.
nsIAuthPromptWrapper
the nsiauthpromptwrapper interface is an override of nsiauthprompt which performs some action on the data going through nsiauthprompt methods.
...nterface is an override of nsiauthprompt which performs some action on the data going through nsiauthprompt methods.
... on the data going through nsiauthprompt methods.
...thprompt methods.
nsICacheListener
netwerk/cache/nsicachelistener.idlscriptable this interface is a cache listener.
... netwerk/cache/nsicachelistener.idlscriptable this interface is a cache listener.
...icachelistener.idlscriptable this interface is a cache listener.
...acquired.
nsICacheVisitor
netwerk/cache/nsicachevisitor.idlscriptable this interface provides information about cache devices and entries.
... netwerk/cache/nsicachevisitor.idlscriptable this interface provides information about cache devices and entries.
... netwerk/cache/nsicachevisitor.idlscriptable this interface provides information about cache devices and entries.
...method is called to provide information about a cache device.
nsICategoryManager
e pairs, called categories, where each value is a list of strings.
...g avalue, in boolean apersist, in boolean areplace); void deletecategory(in string acategory); void deletecategoryentry(in string acategory, in string aentry, in boolean apersist); nsisimpleenumerator enumeratecategories(); nsisimpleenumerator enumeratecategory(in string acategory); string getcategoryentry(in string acategory, in string aentry); methods addcategoryentry() this method sets the value for the given entry on the given category.
...ther or not to overwrite the value of an existing category entry.
... entry already has a value, or if apersist is true.
nsIClassInfo
xpcom/components/nsiclassinfo.idlscriptable provides information about a specific implementation class.
...the high order bit is reserved for consumers of these flags.
...or to callers of the instance object.
...mminglanguage defines language identifiers that may be passed for this parameter.
nsIClipboardHelper
widget/public/nsiclipboardhelper.idlscriptable the nsiclipboardhelper interface is a helper service for common uses of nsiclipboard interface.
... widget/public/nsiclipboardhelper.idlscriptable the nsiclipboardhelper interface is a helper service for common uses of nsiclipboard interface.
... widget/public/nsiclipboardhelper.idlscriptable the nsiclipboardhelper interface is a helper service for common uses of nsiclipboard interface.
... nsisupports last changed in gecko 1.7 method overview void copystring(in astring astring); void copystringtoclipboard(in astring astring, in long aclipboardid); methods copystring() this method copies string to (default) clipboard.
nsIConsoleService
sed to log various messages, warnings, and errors and to obtain the logged messages.
... gecko 19 void getmessagearray([optional] out uint32_t count, [retval, array, size_is(count)] out nsiconsolemessage messages); void logmessage(in nsiconsolemessage message); void logstringmessage(in wstring message); void registerlistener(in nsiconsolelistener listener); void reset(); void unregisterlistener(in nsiconsolelistener listener); methods getmessagearray() to obtain an array of all logged messages.
...ay.
...eturn consoleservice.getmessagearray(array, {}) || array.value; } logging a simple message a common usage is logging a message string to the console: function log(msg) { var consoleservice = components.classes["@mozilla.org/consoleservice;1"] .getservice(components.interfaces.nsiconsoleservice); consoleservice.logstringmessage(msg); } alternative logging methods include components.utils.reporterror and dump().
nsIContentSecurityPolicy
content/base/public/nsicontentsecuritypolicy.idlscriptable describes an xpcom component used to model and enforce content security policies.
...barrier for the nsdocument so it doesn't load any sub-content until either it knows that a content security policy is ready or will not be used.
...a( in nsihttpchannel achannel ); parameters achannel sendreports() manually triggers violation report sending given a uri and reason.
...ger violation reports when queried, so this value should not be cached.
nsIConverterOutputStream
o 1.8 inherits from: nsiunicharoutputstream last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) implemented by: @mozilla.org/intl/converter-output-stream;1.
...g/intl/converter-output-stream;1.
...rteroutputstream = components.classes["@mozilla.org/intl/converter-output-stream;1"] .createinstance(components.interfaces.nsiconverteroutputstream); method overview void init(in nsioutputstream aoutstream, in string acharset, in unsigned long abuffersize, in prunichar areplacementcharacter); methods init() initialize this stream.
...am;1"] .createinstance(components.interfaces.nsiconverteroutputstream); method overview void init(in nsioutputstream aoutstream, in string acharset, in unsigned long abuffersize, in prunichar areplacementcharacter); methods init() initialize this stream.
nsICookieManager2
the nsicookiemanager2 interface contains additional methods that expand upon the nsicookiemanager interface.
...ager2.idlscriptable please add a summary to this article.
...on, in print64 aexpiry); boolean cookieexists(in nsicookie2 acookie); unsigned long countcookiesfromhost(in autf8string ahost); boolean findmatchingcookie(in nsicookie2 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.
... unsigned long countcookiesfromhost(in autf8string ahost); boolean findmatchingcookie(in nsicookie2 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.
nsIDNSService
ervice = components.classes["@mozilla.org/network/dns-service;1"] .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.
...ow (1 << 3) the query is given lower priority.
...l, then onlookupcomplete will be called on an unspecified thread (possibly recursively).
...wn_host if host could not be resolved.
nsIDOMUserDataHandler
dom/interfaces/core/nsidomuserdatahandler.idlscriptable the callback function for the setuserdata method.
... dom/interfaces/core/nsidomuserdatahandler.idlscriptable the callback function for the setuserdata method.
...ethod 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.
... 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.
nsIDOMWindowInternal
.
...provides many of the common functions used in javascript such as alert() or open().
... void forward() void home() void stop() void print() void moveto(in 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.
...es in the window.
nsIDeviceMotion
xpcom/system/nsidevicemotion.idlscriptable this interface is used to implement accelerometer support.
....3) note: this interface was named nsidevicemotion prior to gecko 6.0 (firefox 6.0 / thunderbird 6.0 / seamonkey 2.3).
...void addwindowlistener(in nsidomwindow awindow); native code only!
... called, the accelerometer support implementation must begin to notify the specified nsidevicemotionlistener by calling its nsidevicemotionlistener.onaccelerationchange() method as appropriate to share updated acceleration data.
nsIDirectoryService
xpcom/io/nsidirectoryservice.idlscriptable this interface provides methods to initialize and configure a directory service instance.
... xpcom/io/nsidirectoryservice.idlscriptable this interface provides methods to initialize and configure a directory service instance.
...m directory service implements this interface to provide support for a variety of well-known file and directory locations.
... inherits from: nsisupports last changed in gecko 1.7 method overview void init(); void registerprovider(in nsidirectoryserviceprovider prov); void unregisterprovider(in nsidirectoryserviceprovider prov); init() initializes the nsidirectoryservice instance.
nsIFeedProcessor
he processing.
...od overview void parseasync(in nsirequestobserver requestobserver, in nsiuri uri); void parsefromstream(in nsiinputstream stream, in nsiuri uri); void parsefromstring(in astring str, in nsiuri uri); attributes attribute type description listener nsifeedresultlistener the feed result listener that will respond to feed events.
...romstream(in nsiinputstream stream, in nsiuri uri); void parsefromstring(in astring str, in nsiuri uri); attributes attribute type description listener nsifeedresultlistener the feed result listener that will respond to feed events.
...(in astring str, in nsiuri uri); attributes attribute type description listener nsifeedresultlistener the feed result listener that will respond to feed events.
nsIFeedProgressListener
es callbacks used during the processing of an rss or atom feed.
...ifeedresultlistener last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) method overview void handleentry(in nsifeedentry entry, in nsifeedresult result); void handlefeedatfirstentry(in nsifeedresult result); void handlestartfeed(in nsifeedresult result); void reporterror(in astring errortext, in long linenumber, in boolean bozo); methods handleentry() called after each entry or item is processed.
...eedentry entry, in nsifeedresult result); void handlefeedatfirstentry(in nsifeedresult result); void handlestartfeed(in nsifeedresult result); void reporterror(in astring errortext, in long linenumber, in boolean bozo); methods handleentry() called after each entry or item is processed.
...ing information about the entry that was just processed.
nsIFilePicker
directories, as well as for selecting destinations for, and naming, new files.
...corresponds to the *.aac, *.aif, *.flac, *.iff, *.m4a, *.m4b, *.mid, *.midi, *.mp3, *.mpa, *.mpc, *.oga, *.ogg, *.ra, *.ram, *.snd, *.wav and *.wma filters for file extensions.
...s default filter when displaying the nsifilepicker dialog.
... in astring title, in short mode ); parameters parent the nsidomwindow parent.
nsIFileProtocolHandler
netwerk/protocol/file/nsifileprotocolhandler.idlscriptable this interface provides methods to convert between nsifile and nsiuri.
... netwerk/protocol/file/nsifileprotocolhandler.idlscriptable this interface provides methods to convert between nsifile and nsiuri.
... (firefox 3.6 / thunderbird 3.1 / fennec 1.0) method overview nsifile getfilefromurlspec(in autf8string url); autf8string geturlspecfromactualfile(in nsifile file); autf8string geturlspecfromdir(in nsifile file); autf8string geturlspecfromfile(in nsifile file); nsiuri newfileuri(in nsifile afile); nsiuri readurlfile(in nsifile file); methods getfilefromurlspec() converts the url string into the corresponding nsifile if possible.
...y contain url-escaped characters.
nsIHttpActivityObserver
netwerk/protocol/http/nsihttpactivityobserver.idlscriptable this interface provides a way for http transport activities to be reported to observers.
...0) method overview void observeactivity(in nsisupports ahttpchannel, in pruint32 aactivitytype, in pruint32 aactivitysubtype, in prtime atimestamp, in pruint64 aextrasizedata, in acstring aextrastringdata); attributes attribute type description isactive boolean true when the interface is active and should observe http activity, otherwise false.
...equest_body_sent 0x5002 the http request's body has been sent.
... the http response has started to arrive.
nsIHttpChannelInternal
netwerk/protocol/http/nsihttpchannelinternal.idlscriptable an internal interface for http channels.
...ctivityobserver.isactive attribute is false.
...igned long minor ); parameters major on return, contains the response's major version number.
...st events are still delivered and the listener gets full control over the socket if and when nsihttpupgradelistener.ontransportavailable() is delivered.
nsIJSCID
js/src/xpconnect/idl/xpcjsid.idlscriptable this interface provides methods to instantiate a component and access service components.
... js/src/xpconnect/idl/xpcjsid.idlscriptable this interface provides methods to instantiate a component and access service components.
... js/src/xpconnect/idl/xpcjsid.idlscriptable this interface provides methods to instantiate a component and access service components.
...sijsid last changed in gecko 1.7 method overview nsisupports createinstance(); nsisupports getservice(); methods createinstance() nsisupports createinstance(); parameters none.
nsIMemory
xpcom/base/nsimemory.idlscriptable this interface represents a generic memory allocator.
...nstance.
...nt.
... in boolean immediate ); parameters immediate if true, heap minimization will occur immediately if the call was made on the main thread.
nsIMessenger
ng messages and attachments in mailnews.
...ring readonly: the url of the last displayed message.
...the attachment.
...the attachment.
nsIMsgIncomingServer
nsimsgincomingserver mailnews/base/public/nsimsgincomingserver.idlscriptable ???
...kspace boolean read only.
...ne.
...rs (yet).
nsINavHistoryContainerResultNode
/public/nsinavhistoryservice.idlscriptable a foundation for the interfaces that provide a description of a query result on the places service that describes a container (which is any kind of grouping, including bookmark folders).
...es; accessing this throws an ns_error_not_available exception of containeropen is false.
...d to provide certain operations.
...sultnode anode ); parameters anode the node whose index is to be returned.
nsIObserver
xpcom/ds/nsiobserver.idlscriptable this interface is implemented by an object that wishes to observe notifications.
... xpcom/ds/nsiobserver.idlscriptable this interface is implemented by an object that wishes to observe notifications.
...xpcom/ds/nsiobserver.idlscriptable this interface is implemented by an object that wishes to observe notifications.
... void observe(in nsisupports asubject, in string atopic, in wstring adata); methods observe() this method will be called when there is a notification for the topic that the observer has been registered for.
nsIPrefBranch2
in gecko 13 this interface was merged into the nsiprefbranch interface.
... in gecko 13 this interface was merged into the nsiprefbranch interface.
......) will observe changes to foo.bar.baz and foo.bar.bzip.
...ject to be notified if the preference changes.
nsIPrintingPrompt
.
...east the print dialog and a print progress dialog or you may implement just one of the dialogs and pass back ns_error_not_implemented for any of the others.
...ialog.
...); void showprintdialog(in nsiwebbrowserprint webbrowserprint, in nsiprintsettings printsettings); void showprogress(in nsiwebbrowserprint webbrowserprint, in nsiprintsettings printsettings, in nsiobserver opendialogobserver, in boolean isforprinting, out nsiwebprogresslistener webprogresslistener, out nsiprintprogressparams printprogressparams, out boolean notifyonopen); methods showpagesetup() shows the print progress dialog.
nsIProgressEventSink
ogress information that is generally not critical to the processing of the channel.
...s intended to be displayed to the user in some meaningful way.
...sichannel for more info.
...rface is actually not specific to channels and may be used with other implementations of nsirequest.
nsIPropertyBag2
xpcom/ds/nsipropertybag2.idlscriptable this interface extends nsipropertybag with some methods for getting properties in specific formats.
... xpcom/ds/nsipropertybag2.idlscriptable this interface extends nsipropertybag with some methods for getting properties in specific formats.
...astring prop); print32 getpropertyasint32(in astring prop); print64 getpropertyasint64(in astring prop); void getpropertyasinterface(in astring prop, in nsiidref iid, [iid_is(iid), retval] out nsqiresult result); pruint32 getpropertyasuint32(in astring prop); pruint64 getpropertyasuint64(in astring prop); prbool haskey(in astring prop); methods get() this method returns null if the value does not exist, or exists but is null.
...perty value as a print32.
nsIProtocolHandler
netwerk/base/nsiprotocolhandler.idlscriptable this interface is used to implement protocol handlers.
...g, it doesn't need to support nsiproxiedprotocolhandler, but should instead set the allows_proxy_http flag.
...tead set the allows_proxy_http flag.
...handler to the http protocol handler instead.
nsIProtocolProxyCallback
netwerk/base/public/nsiprotocolproxycallback.idlscriptable this interface serves as a closure for nsiprotocolproxyservice.asyncresolve().
....idlscriptable this interface serves as a closure for nsiprotocolproxyservice.asyncresolve().
...rves as a closure for nsiprotocolproxyservice.asyncresolve().
...yavailable( in nsicancelable arequest, in nsiuri auri, in nsiproxyinfo aproxyinfo, in nsresult astatus ); parameters arequest the value returned from asyncresolve.
nsIProtocolProxyFilter
this interface is used to apply filters to the proxies selected for a given uri.
...s from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) this interface is used to apply filters to the proxies selected for a given uri.
...anged in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) this interface is used to apply filters to the proxies selected for a given uri.
...proxy); methods applyfilter() this method is called to apply proxy filter rules for the given uri and proxy object (or list of proxy objects).
nsISHistoryListener
ications about activities that occur in session history, and optionally cancel them.
...ecko 1.7 a session history listener is notified when pages are added to, removed from, and loaded from session history.
... a session history listener is notified when pages are added to, removed from, and loaded from session history.
...nsishistory.addshistorylistener() method.
nsIScriptableUnescapeHTML
available for compatibility with legacy extensions) and all its functionality is available with more configuration options via the nsiparserutils interface.
...capehtml;1 as a service: var scriptableunescapehtml = components.classes["@mozilla.org/feed-unescapehtml;1"] .getservice(components.interfaces.nsiscriptableunescapehtml); method overview nsidomdocumentfragment parsefragment(in astring fragment, in prbool isxml, in nsiuri baseuri, in nsidomelement element); astring unescape(in astring src); methods parsefragment() parses a string of html or xml source into a sanitized documentfragment.
...tring fragment, in prbool isxml, in nsiuri baseuri, in nsidomelement element); astring unescape(in astring src); methods parsefragment() parses a string of html or xml source into a sanitized documentfragment.
...nt with the new text appended.
nsIScrollable
/docshell/base/nsiscrollable.idlscriptable this interface can be implemented by a control that supports scrolling.
... maxpos); obsolete since gecko 29.0 void setscrollrangeex(in long minhorizontalpos, in long maxhorizontalpos, in long minverticalpos, in long maxverticalpos); obsolete since gecko 29.0 constants scroll orientations scroll orientations a scrollbar can be in.
...erticalpos); obsolete since gecko 29.0 constants scroll orientations scroll orientations a scrollbar can be in.
...a for the vertical scrollbar.
nsISocketTransport
netwerk/base/public/nsisockettransport.idlscriptable this interface specializes nsitransport for communication over network sockets.
... inherits from: nsitransport last changed in gecko 6.0 (firefox 6.0 / thunderbird 6.0 / seamonkey 2.3) note: connection setup is triggered by opening an input or output stream, it does not start on its own.
...connect 1 when this flag is set, the socket will not apply any credentials when establishing a connection.
...ers atype the timeout type which should be set to avalue.
nsISpeculativeConnect
erits from: nsisupports last changed in gecko 15.0 (firefox 15.0 / thunderbird 15.0 / seamonkey 2.12) to use this service, simply call nsisupports.queryinterface() on the nsiioservice you plan to use for the connection, to get access to the i/o service's implementation of nsispeculativeconnect.
...ply call nsisupports.queryinterface() on the nsiioservice you plan to use for the connection, to get access to the i/o service's implementation of nsispeculativeconnect.
...n the nsiioservice you plan to use for the connection, to get access to the i/o service's implementation of nsispeculativeconnect.
...all speculativeconnect() to let the networking layer know what you might be doing in the future.
nsIStringEnumerator
xpcom/ds/nsistringenumerator.idlscriptable please add a summary to this article.
... xpcom/ds/nsistringenumerator.idlscriptable please add a summary to this article.
...istringenumerator.idlscriptable please add a summary to this article.
... by a call to hasmoreelements() which returns pr_true.
nsISupports
xpcom/base/nsisupports.idlscriptable all xpcom interfaces inherit this interface.
... xpcom/base/nsisupports.idlscriptable all xpcom interfaces inherit this interface.
...ref uuid, [iid_is(uuid),retval] out nsqiresult result); nsrefcnt release();violates the xpcom interface guidelines methods violates the xpcom interface guidelines addref() notifies the object that an interface pointer has been duplicated.
...xceptions thrown ns_error_no_interface the requested interface is not available.
nsITaskbarTabPreview
ndow will automatically hide that window's nsitaskbarwindowpreview; this is done by windows and cannot be prevented.
...vewindow gethwnd(); violates the xpcom interface guidelines void move(in nsitaskbartabpreview anext); attributes attribute type description icon imgicontainer the icon displayed next to the title in the preview.
...ext to the title in the preview.
...his is null by default.
nsITreeSelection
layout/xul/base/src/tree/public/nsitreeselection.idlscriptable this interface is used by the tree widget to get information about what is selected.
... attributes attribute type description count long the number of rows currently selected in this tree.
... indicates only the index of the row with tree cursor around it.
...le, on a sort.
nsIURI
netwerk/base/public/nsiuri.idlscriptable this is 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.
...illa.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 type description asciihost acstring the uri host with an ascii co...
...ot applicable to the uri scheme (e.g.
... is not applicable to the uri scheme (e.g.
nsIWebBrowserChrome2
embedding/browser/webbrowser/nsiwebbrowserchrome2.idlscriptable an extension to nsiwebbrowserchrome.
... embedding/browser/webbrowser/nsiwebbrowserchrome2.idlscriptable an extension to nsiwebbrowserchrome.
...an extension to nsiwebbrowserchrome.
...nherits from: nsiwebbrowserchrome last changed in gecko 1.9 (firefox 3) method overview void setstatuswithcontext(in unsigned long statustype, in astring statustext, in nsisupports statuscontext); methods setstatuswithcontext() called when the status text in the chrome needs to be updated.
nsIWebBrowserPersist
gecko 36.0 (firefox 36.0 / thunderbird 36.0 / seamonkey 2.33) implemented by: @mozilla.org/embedding/browser/nswebbrowser;1 and @mozilla.org/embedding/browser/nswebbrowserpersist;1.
...operability with older products that don't support α and friends.
...ot be opened yet.
...save the document and all sub-documents into or nsnull to use the default behavior.
nsIWebProgress
plementations.
...ated with this nsiwebprogress instance.
... includes nsiwebprogresslistener::state_is_network.
...curity 0x00000040 receive nsiwebprogresslistener.onsecuritychange() events.
nsIWebSocketChannel
1.0 66 introduced gecko 8.0 inherits from: nsisupports last changed in gecko 8.0 (firefox 8.0 / thunderbird 8.0 / seamonkey 2.5) implemented by: ?????????????????????????????????????.
...lly (that is, with no close frame being sent) when a status code is expected.
....
...tion is reopened.
nsIWinTaskbar
have to correspond to tabs within the application; they can vary in size, shape, and location.
...plication; they can vary in size, shape, and location.
...e addition of the method getoverlayiconcontroller().
...lications, the defaultgroupid attribute is configured using application.ini settings, and is of the format "vendor.application.version".
nsIXULBrowserWindow
xpfe/appshell/public/nsixulbrowserwindow.idlscriptable provides methods that may be called from the internals of the browser area to tell the containing xul window to update its user interface.
...rom: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) the xulbrowserwindow attribute exists on the nsixulwindow interface although both firefox and seamonkey also store their nsixulbrowserwindow reference in the global xulbrowserwindow object accessible from javascript code.
...terface although both firefox and seamonkey also store their nsixulbrowserwindow reference in the global xulbrowserwindow object accessible from javascript code.
...ere, which are only the ones available to c++ code.
nsIXULWindow
please add a summary to this article.
...constants constant value description lowestz 0 loweredz 4 the z level of an independent window opened with the "alwayslowered" chrome flag.
...independent window opened with the "alwaysraised" chrome flag.
... be set in this case.) aalert true to move the window to an alert position, generally centered horizontally and 1/3 down from the top.
nsIAbCard/Thunderbird3
_aimscreenname dates: anniversaryyear, anniversarymonth, anniversaryday birthyear, birthmonth, birthday webpage1 (work), webpage2 (home) custom1, custom2, custom3, custom4 notes integral properties: lastmodifieddate popularityindex prefermailformat (see nsiabprefermailformat) boolean properties: allowremotecontent inherits from: nsiabitem method overview nsivariant getproperty(in autf8string name, in nsivariant defaultvalue); [noscript] astring getpropertyasastring(in string name); [noscript] autf8string getpropertyasautf8string(in string name); [noscript] pruint32 getpropertyasuint32(in string name); [noscript] boolean getpropertyasbool(in string name); void setproperty(in autf8stri...
...and setproperty.
...rtyasbool(in string name); setproperty() setpropertyasastring() setpropertyasautf8string() setpropertyasuint32() setpropertyasbool() assigns the given to value to the property of the given name.
...setpropertyasuint32(in string name, in pruint32 value); [noscript] void setpropertyasbool(in string name, in boolean value); parameters name the case-sensitive name of the property to set.
nsIMsgCloudFileProvider
nsimsgcloudfileprovider is the interface that must be implemented by new filelink providers.
...ns -1.
...uploadwouldexceedquota 0x8055311b returned when uploading has failed because the user has exceeded their storage quota.
...ack); parameters acallback the nsirequestobserver for monitoring the start and stop states of the creation operation.
Using js-ctypes
before you can use js-ctypes, you need to import the ctypes.jsm code module.
...dll"); on mac os x, you can load the core foundation library from the core foundation framework like this: var corefoundation = ctypes.open("/system/library/frameworks/corefoundation.framework/corefoundation"); the returned object is a library object that you use to declare functions and data types for use with the loaded library.
...e library, in this order: the application's directory.
... ctypes.winapi_abi, ctypes.int32_t, ctypes.int32_t, ctypes.jschar.ptr, ctypes.jschar.ptr, ctypes.int32_t); var mb_ok = 0; var ret = msgbox(0, "hello world", "title", mb_ok); lib.close(); in line 3, the user32.dll system library is loaded.
Debugger.Environment - Firefox Developer Tools
ebugger.environment instance for a given environment.
...erent remains live.
...ll.
...d may present optimized-out environments.
Index - Firefox Developer Tools
t the frame is executing, walk the stack to older frames, find the lexical environment in which the execution is taking place, and so on.
...ebugger api can help tools observe the debuggee’s memory use in various ways: 22 debugger.object a debugger.object instance represents an object in the debuggee, providing reflection-oriented methods to inspect and modify its referent.
...ression whenever it is hit.
...jects a web page allocates, sorted by the function call path that allocated them.
AbstractRange - Web APIs
tainer read only the dom node in which the beginning of the range, as specified by the startoffset property, is located.
...ginning of the range, as specified by the startoffset property, is located.
...ange interface offers no methods.
...anges of content within a document are described using instances of interfaces based on abstractrange.
AudioScheduledSourceNode - Web APIs
the audioscheduledsourcenode interface—part of the web audio api—is a parent interface for several types of audio source node interfaces which share the ability to be started and stopped, optionally at specified times.
...ends it, such as audiobuffersourcenode, oscillatornode, and constantsourcenode.
...udiobuffersourcenode, oscillatornode, and constantsourcenode.
...s stated otherwise, nodes based upon audioscheduledsourcenode output silence when not playing (that is, before start() is called and after stop() is called).
Background Tasks API - Web APIs
ns by recording the time at which our implementation was called.
...background tasks api adds only one new interface: idledeadline an object of this type is passed to the idle callback to provide an estimate of how long the idle period is expected to last, as well as whether or not the callback is running because its timeout period has expired.
...esent the progress of an operation (because you never know how long decoding "quantum filament tachyon emissions" will take, after all) as well as a second main box (with the id "logbox"), which is used to display textual output.
...andled through requestanimationframe().
BaseAudioContext.decodeAudioData() - Web APIs
the decodeaudiodata() method of the baseaudiocontext interface is used to asynchronously decode audio file data contained in an arraybuffer.
... the decodeaudiodata() method of the baseaudiocontext interface is used to asynchronously decode audio file data contained in an arraybuffer.
...f the baseaudiocontext interface is used to asynchronously decode audio file data contained in an arraybuffer.
...er into a decodeaudiodata() function; the success callback takes the successfully decoded pcm data, puts it into an audiobuffersourcenode created using audiocontext.createbuffersource(), connects the source to the audiocontext.destination and sets it to loop.
BaseAudioContext - Web APIs
econd) used by all nodes in this context.
...annot be changed.
...diocontext.state read only returns the current state of the audiocontext.
... panning to an audio source.
BiquadFilterNode - Web APIs
the biquadfilternode interface represents a simple low-order filter, and is created using the audiocontext.createbiquadfilter() method.
...s filter.
...all frequencies through, but changes the phase-relationship between the various frequencies.
...group delay, that is, the frequency where the center of the phase transition occurs.
Blob.arrayBuffer() - Web APIs
Web › API › Blob › arrayBuffer
the arraybuffer() method in the blob interface returns a promise that resolves with the contents of the blob as binary data contained in an arraybuffer.
...a promise that resolves with the contents of the blob as binary data contained in an arraybuffer.
...resolves with an arraybuffer that contains the blob's data in binary form.
...tions, it may reject the promise.
Blob - Web APIs
Web › API › Blob
the blob object represents a blob, which is a file-like object of immutable, raw data; they can be read as text or binary data, or converted into a readablestream so its methods can be used for processing the data.
...essing the data.
...s a newly created blob object which contains a concatenation of all of the data in the array passed into the constructor.
...reader.addeventlistener('loadend', () => { // reader.result contains the contents of blob as a typed array }); reader.readasarraybuffer(blob); another way to read content from a blob is to use a response.
Bluetooth.getDevices() - Web APIs
the getdevices() method of bluetooth interface of web bluetooth api exposes the bluetooth devices this origin is allowed to access.
... the getdevices() method of bluetooth interface of web bluetooth api exposes the bluetooth devices this origin is allowed to access.
... the getdevices() method of bluetooth interface of web bluetooth api exposes the bluetooth devices this origin is allowed to access.
... to access, even the ones that are out of range or powered off.
Using dynamic styling information - Web APIs
"> #p1 { border: solid blue 2px; } </style> </head> <body> <!-- passes a reference to the element's object as parameter 'this'.
...nd color.
... } function resetstyle() { document.getelementbyid('d').style.color = 'black'; } </script> </head> <body> <div id="d" class="thunder">thunder</div> <button onclick="stilo()">click here to change text color</button> <button onclick="resetstyle()">reset text color</button> </body> </html> the media and type of the style may or may not be given.
... <body> <div id="d" class="thunder">thunder</div> <button onclick="stilo()">click here to change text color</button> <button onclick="resetstyle()">reset text color</button> </body> </html> the media and type of the style may or may not be given.
Cache.match() - Web APIs
Web › API › Cache › match
the match() method of the cache interface returns a promise that resolves to the response associated with the first matching request in the cache object.
...sponses in the cache.
...ons for the match operation.
...all event.respondwith(), the request will be handled by the browser as if there were no service worker involvement.
CanvasPattern.setTransform() - Web APIs
the canvaspattern.settransform() method uses an svgmatrix or dommatrix object as the pattern's transformation matrix and invokes it on the pattern.
... the canvaspattern.settransform() method uses an svgmatrix or dommatrix object as the pattern's transformation matrix and invokes it on the pattern.
... the canvaspattern.settransform() method uses an svgmatrix or dommatrix object as the pattern's transformation matrix and invokes it on the pattern.
...trix an svgmatrix or dommatrix to use as the pattern's transformation matrix.
CanvasPattern - Web APIs
the canvaspattern interface represents an opaque object describing a pattern, based on an image, a canvas, or a video, created by the canvasrenderingcontext2d.createpattern() method.
... the canvaspattern interface represents an opaque object describing a pattern, based on an image, a canvas, or a video, created by the canvasrenderingcontext2d.createpattern() method.
... the canvaspattern interface represents an opaque object describing a pattern, based on an image, a canvas, or a video, created by the canvasrenderingcontext2d.createpattern() method.
... an opaque object, this has no exposed property.
CanvasRenderingContext2D.createLinearGradient() - Web APIs
the canvasrenderingcontext2d.createlineargradient() method of the canvas 2d api creates a gradient along the line connecting two given coordinates.
... the canvasrenderingcontext2d.createlineargradient() method of the canvas 2d api creates a gradient along the line connecting two given coordinates.
...linear canvasgradient.
...axis coordinate of the start point.
CanvasRenderingContext2D.createPattern() - Web APIs
the canvasrenderingcontext2d.createpattern() method of the canvas 2d api creates a pattern using the specified image and repetition.
... the canvasrenderingcontext2d.createpattern() method of the canvas 2d api creates a pattern using the specified image and repetition.
... the canvasrenderingcontext2d.createpattern() method of the canvas 2d api creates a pattern using the specified image and repetition.
...: "repeat" (both directions) "repeat-x" (horizontal only) "repeat-y" (vertical only) "no-repeat" (neither direction) if repetition is specified as an empty string ("") or null (but not undefined), a value of "repeat" will be used.
CanvasRenderingContext2D.createRadialGradient() - Web APIs
the canvasrenderingcontext2d.createradialgradient() method of the canvas 2d api creates a radial gradient using the size and coordinates of two circles.
... the canvasrenderingcontext2d.createradialgradient() method of the canvas 2d api creates a radial gradient using the size and coordinates of two circles.
...anvasgradient.
...nite.
CanvasRenderingContext2D.fillRect() - Web APIs
the canvasrenderingcontext2d.fillrect() method of the canvas 2d api draws a rectangle that is filled according to the current fillstyle.
... the canvasrenderingcontext2d.fillrect() method of the canvas 2d api draws a rectangle that is filled according to the current fillstyle.
... the canvasrenderingcontext2d.fillrect() method of the canvas 2d api draws a rectangle that is filled according to the current fillstyle.
... x the x-axis coordinate of the rectangle's starting point.
CanvasRenderingContext2D.fillText() - Web APIs
the canvasrenderingcontext2d method filltext(), part of the canvas 2d api, draws a text string at the specified coordinates, filling the string's characters with the current fillstyle.
... the canvasrenderingcontext2d method filltext(), part of the canvas 2d api, draws a text string at the specified coordinates, filling the string's characters with the current fillstyle.
...sing a lower font size.
...ext.
CanvasRenderingContext2D.strokeRect() - Web APIs
the canvasrenderingcontext2d.strokerect() method of the canvas 2d api draws a rectangle that is stroked (outlined) according to the current strokestyle and other context settings.
... the canvasrenderingcontext2d.strokerect() method of the canvas 2d api draws a rectangle that is stroked (outlined) according to the current strokestyle and other context settings.
... the canvasrenderingcontext2d.strokerect() method of the canvas 2d api draws a rectangle that is stroked (outlined) according to the current strokestyle and other context settings.
...x-axis coordinate of the rectangle's starting point.
CanvasRenderingContext2D.strokeText() - Web APIs
the canvasrenderingcontext2d method stroketext(), part of the canvas 2d api, strokes — that is, draws the outlines of — the characters of a text string at the specified coordinates.
... the canvasrenderingcontext2d method stroketext(), part of the canvas 2d api, strokes — that is, draws the outlines of — the characters of a text string at the specified coordinates.
......
...owever, if this value is provided, the user agent will adjust the kerning, select a more horizontally condensed font (if one is available or can be generated without loss of quality), or scale down to a smaller font size in order to fit the text in the specified width.
CanvasRenderingContext2D.translate() - Web APIs
the canvasrenderingcontext2d.translate() method of the canvas 2d api adds a translation transformation to the current matrix.
... the canvasrenderingcontext2d.translate() method of the canvas 2d api adds a translation transformation to the current matrix.
...origin x units horizontally and y units vertically on the grid.
...alues are to the right, and negative to the left.
Basic animations - Web APIs
plex frames and the performance depends highly on the speed of the computer it's running on.
...etc.) which affect the canvas state and you want to make sure the original state is used each time a frame is drawn, you need to save that original state.
...f you don't want any user interaction you can use the setinterval() function which repeatedly executes the supplied code.
...terval() function which repeatedly executes the supplied code.
Basic usage of canvas - Web APIs
rendering contexts, which are used to create and manipulate the content shown.
...ng functions.
...e covered by this tutorial, you specify "2d" to get a canvasrenderingcontext2d.
...in the dom representing the <canvas> element by calling the document.getelementbyid() method.
Hit regions and accessibility - Web APIs
hit regions whether the mouse coordinates are within a particular area on the canvas, is a common problem to solve.
...r example.
...on({control: element}); this can be useful for routing to <input> elements, for example.
...e also this codepen demo.
ChannelMergerNode - Web APIs
umber of inputs variable; default to 6.
...riable; default to 6.
...o 6.
...ies no specific property; inherits properties from its parent, audionode.
ChannelSplitterNode - Web APIs
use "max".
...channel count fixed to the number of outputs.
...fixed to the number of outputs.
... specific property; inherits properties from its parent, audionode.
ChildNode - Web APIs
Web › API › ChildNode
the childnode mixin contains methods and properties that are common to all types of node objects that can have a parent.
... the childnode mixin contains methods and properties that are common to all types of node objects that can have a parent.
... the childnode mixin contains methods and properties that are common to all types of node objects that can have a parent.
... specification status comment domthe definition of 'childnode' in that specification.
Clipboard.read() - Web APIs
Web › API › Clipboard › read
the read() method of the clipboard interface requests a copy of the clipboard's contents, delivering the data to the returned promise when the promise is resolved.
... the read() method of the clipboard interface requests a copy of the clipboard's contents, delivering the data to the returned promise when the promise is resolved.
... the read() method of the clipboard interface requests a copy of the clipboard's contents, delivering the data to the returned promise when the promise is resolved.
...ary data, such as images.
CloseEvent.initCloseEvent() - Web APIs
the closeevent.initcloseevent() method initializes the value of a close event once it's been created (normally using the document.createevent() method).
... the closeevent.initcloseevent() method initializes the value of a close event once it's been created (normally using the document.createevent() method).
... the closeevent.initcloseevent() method initializes the value of a close event once it's been created (normally using the document.createevent() method).
...closeevent() method initializes the value of a close event once it's been created (normally using the document.createevent() method).
CloseEvent - Web APIs
e iana via first-come, first-serve.
... 4000–4999 available for use by applications.
...osed the connection.
... to the particular server and sub-protocol.
CompositionEvent - Web APIs
ignment-baseline="middle">compositionevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor compositionevent() creates a new compositionevent object instance.
...nt object instance.
...nt, and its ancestor — event.
...positionevent.data read only returns the characters generated by the input method that raised the event; its varies depending on the type of event that generated the compositionevent object.
ConstantSourceNode - Web APIs
: offset an audioparam which specifies the value that this source continuously outputs.
...dioparam which specifies the value that this source continuously outputs.
...vent handlers inherits event handlers from its parent interface, audioscheduledsourcenode.
...e3.connect(context.destination); this code starts by creating the gain nodes and setting them and the volume control that will adjust their value all to 0.5.
Constraint validation API - Web APIs
pect to its defined constraints.
...; if a custom error message is set using setcustomvalidity(), this will be shown.
...ents with the htmlobjectelement interface are never candidates for constraint validation.
...ddeventlistener('invalid', () => { if(nameinput.value === '') { nameinput.setcustomvalidity('enter your username!'); } else { nameinput.setcustomvalidity('usernames can only contain upper and lowercase letters.
ContentIndex.delete() - Web APIs
the delete() method of the contentindex interface unregisters an item from the currently indexed content.
... the delete() method of the contentindex interface unregisters an item from the currently indexed content.
...delete(id).then(...); parameters this method receives no parameters.
...registration, which allows us to access the index property and thus access the delete method.
DOMHighResTimeStamp - Web APIs
f neither of the above determines the time origin, then the time origin is the time at which the navigation responsible for creating the window's current document took place.
...ermines the time origin, then the time origin is the time at which the navigation responsible for creating the window's current document took place.
... if the script's global object is a workerglobalscope (that is, the script is running as a web worker), the time origin is the moment at which the worker was created.
...s global object is a workerglobalscope (that is, the script is running as a web worker), the time origin is the moment at which the worker was created.
DOMMatrixReadOnly.scale() - Web APIs
the scale() method of the dommatrixreadonly interface creates a new matrix being the result of the original matrix with a scale transform applied.
... the scale() method of the dommatrixreadonly interface creates a new matrix being the result of the original matrix with a scale transform applied.
... three squares, one red, one blue, and one green, each positioned at the document origin: <svg width="250" height="250" viewbox="0 0 25 25"> <rect width="25" height="25" fill="red" /> <rect id="transformed" width="25" height="25" fill="blue" /> <rect id="transformedorigin" width="25" height="25" fill="green" /> </svg> this javascript first creates an identity matrix, then uses the scale() method to create a new matrix with a single parameter.
...t="250" viewbox="0 0 25 25"> <rect width="25" height="25" fill="red" /> <rect id="transformed" width="25" height="25" fill="blue" /> <rect id="transformedorigin" width="25" height="25" fill="green" /> </svg> this javascript first creates an identity matrix, then uses the scale() method to create a new matrix with a single parameter.
DOMParser - Web APIs
Web › API › DOMParser
ee into xml or html source—using the xmlserializer interface.
... of the element.innerhtml and outerhtml properties.
...ods domparser.parsefromstring() syntax let doc = domparser.parsefromstring(string, mimetype) return either document or xmldocument depending on the mimetype argument.
...lowing: mimetype doc.constructor text/html document text/xml xmldocument application/xml xmldocument application/xhtml+xml xmldocument image/svg+xml xmldocument examples parsing xml once you have created a parser object, you can parse xml from a string using the parsefromstring() method: let parser = new domparser() let doc = parser.parsefromstring(stringcontainingxmlsource, "application/xml") error handling note that if the parsing process fails, the domparser does not throw an exception, but instead returns an error document: <parsererror xmlns="http://www.mozilla.org/newlayout/xml/parsererror.xml"> (error description) <sourcetext>(a snippet of the source xml)</source...
DOMPoint - Web APIs
Web › API › DOMPoint
omponent extends outward from the screen (in other words, toward the user).
...xtends outward from the screen (in other words, toward the user).
...een (in other words, toward the user).
...dompoint() creates and returns a new dompoint object given the values of zero or more of its coordinate components and optionally the w perspective value.
DOMPointInit.w - Web APIs
Web › API › DOMPointInit › w
o json a dompoint or dompointreadonly object.
...ve value.
...s, its value may be nan or ±infinity).
...ompointreadonly.frompoint() takes an object that complies with dompointinit as its sole input parameter, to specify the coordinates and perspective value of the new point to be created.
DOMPointInit.y - Web APIs
Web › API › DOMPointInit › y
ntinit.y = ypos; var ypos = dompointinit.y; value a double-precision floating-point value indicating the point's y-coordinate.
...infinity).
...he value is assumed to be 0 by default.
...ompointreadonly.frompoint() takes an object that complies with dompointinit as its sole input parameter, to specify the coordinates and perspective value of the new point to be created.
DOMPointInit.z - Web APIs
Web › API › DOMPointInit › z
rse, if transforms have been applied, the axes may have changed orientation.
...ordinate.
...s, its value may be nan or ±infinity).
...ompointreadonly.frompoint() takes an object that complies with dompointinit as its sole input parameter, to specify the coordinates and perspective value of the new point to be created.
DOMPointReadOnly - Web APIs
stance.
...rspective.
...bject, you can instead use dompointreadonly.frompoint().
...ontal coordinate, x.
DataTransfer.addElement() - Web APIs
the datatransfer.addelement() method sets the drag source to the given element.
... the datatransfer.addelement() method sets the drag source to the given element.
...d sets the drag source to the given element.
...t the defaut target (the node that was dragged).
DataTransfer.getData() - Web APIs
the datatransfer.getdata() method retrieves drag data (as a domstring) for the specified type.
... the datatransfer.getdata() method retrieves drag data (as a domstring) for the specified type.
...ta, this method returns an empty string.
...has no data or the operation has no data for the specified format, this method returns an empty string.
DataTransfer.mozSetDataAt() - Web APIs
the datatransfer.mozsetdataat() method is used to add data to a specific index in the drag event's data transfer object.
...the mozitemcount is incremented by one.
...-specific.
...ample this example shows the use of the mozsetdataat() method in a dragstart handler.
DataTransfer.mozTypesAt() - Web APIs
the datatransfer.moztypesat() method returns a list of the format types that are stored for an item at the specified index.
... the datatransfer.moztypesat() method returns a list of the format types that are stored for an item at the specified index.
...cific.
... i < count; i++) { output(" item " + i + ":\n"); var types = dt.moztypesat(i); for (var t = 0; t < types.length; t++) { output(" " + types[t] + ": "); try { var data = dt.mozgetdataat(types[t], i); output("(" + (typeof data) + ") : <" + data + " >\n"); } catch (ex) { output("<>\n"); dump(ex); } } } } specifications this method is not defined in any web standard.
DataTransfer.setDragImage() - Web APIs
when a drag occurs, a translucent image is generated from the drag target (the element the dragstart event is fired at), and follows the mouse pointer during the drag.
...t the dragstart event is fired at), and follows the mouse pointer during the drag.
...<image> element but it can also be a <canvas> or any other visible element.
...image (at its intrinsic size); otherwise, set the drag data store bitmap to an image generated from the given element (the exact mechanism for doing so is not currently specified).
DelayNode - Web APIs
Web › API › DelayNode
n the cycle will be muted.
... channel interpretation "speakers" constructor delaynode() creates a new instance of an delaynode object instance.
...etation "speakers" constructor delaynode() creates a new instance of an delaynode object instance.
...rs" constructor delaynode() creates a new instance of an delaynode object instance.
Document.createTouch() - Web APIs
note: before gecko 25.0, this method was defined on the documenttouch mixin.
... note: before gecko 25.0, this method was defined on the documenttouch mixin.
... screenx, screeny); parameters note: all parameters are optional.
... clientx the value for touch.clientx.
Document.getElementsByTagNameNS() - Web APIs
) elements is a live nodelist (but see the note below) of found elements in the order they appear in the tree.
...namespace is the namespace uri of elements to look for (see element.namespaceuri).
...e).
...ementsbytagnamens for details.
DocumentOrShadowRoot.elementFromPoint() - Web APIs
the elementfrompoint() method—available on both the document and shadowroot objects—returns the topmost element at the specified coordinates (relative to the viewport).
..., the document of an <iframe>), that document's parent element is returned (the <iframe> itself).
...en point is anonymous or xbl generated content, such as a textbox's scroll bars, then the first non-anonymous ancestor element (for example, the textbox) is returned.
...he top edge of the current viewport.
Events and the DOM - Web APIs
re 3 ways to register event handlers for a dom element.
...ing mybutton is a button element mybutton.addeventlistener('click', greet, false) function greet(event){ // print and have a look at the event object // always print arguments in case of overlooking any other arguments console.log('greet:', arguments) alert('hello world') } this is the method you should use in modern web pages.
...wser compatibility, use one of the many javascript libraries available.
... less readable.
DynamicsCompressorNode - Web APIs
effect, which lowers the volume of the loudest parts of the signal in order to help prevent clipping and distortion that can occur when multiple sounds are played and multiplexed together at once.
...oat representing the amount of gain reduction currently applied by the compressor to the signal.
...amount of gain reduction currently applied by the compressor to the signal.
...uction currently applied by the compressor to the signal.
Element.getAttributeNode() - Web APIs
oceeding.
...ent tree.
...ibling, and nextsibling are null for an attr node.
... which the attribute belongs with the ownerelement property.
Element.querySelectorAll() - Web APIs
the element method queryselectorall() returns a static (not live) nodelist representing a list of elements matching the specified group of selectors which are descendants of the element on which the method was called.
... the element method queryselectorall() returns a static (not live) nodelist representing a list of elements matching the specified group of selectors which are descendants of the element on which the method was called.
... the element method queryselectorall() returns a static (not live) nodelist representing a list of elements matching the specified group of selectors which are descendants of the element on which the method was called.
...s 0), then no matches were found.
Element.scrollIntoViewIfNeeded() - Web APIs
the element.scrollintoviewifneeded() method scrolls the current element into the visible area of the browser window if it's not already within the visible area of the browser window.
... the element.scrollintoviewifneeded() method scrolls the current element into the visible area of the browser window if it's not already within the visible area of the browser window.
... the element.scrollintoviewifneeded() method scrolls the current element into the visible area of the browser window if it's not already within the visible area of the browser window.
...igned to the top edge of the visible area, or the bottom edge of the element will be aligned to the bottom edge of the visible area.
Element.setAttribute() - Web APIs
ring or the name of the attribute are recommended values.
...the attribute is present at all, regardless of its actual value, its value is considered to be true.
...alue, its value is considered to be true.
...is false.
Element.setAttributeNodeNS() - Web APIs
s: `utterleft' notes if the specified attribute already exists on the element, then that attribute is replaced with the new one and the replaced one is returned.
... that attribute is replaced with the new one and the replaced one is returned.
...ed one is returned.
...s 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).
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.
...e names.
...readonly attribute of a <input>.
...> <button>toggleattribute("readonly")</button> javascript var button = document.queryselector("button"); var input = document.queryselector("input"); button.addeventlistener("click", function(){ input.toggleattribute("readonly"); }); result dom methods dealing with element's attributes: not namespace-aware, most commonly used methods namespace-aware variants (dom level 2) dom level 1 methods for dealing with attr nodes directly (seldom used) dom level 2 namespace-aware methods for dealing with attr nodes directly (seldom used) setattribute (dom 1) setattributens setattributenode setattributenodens getattribute (dom 1) getattributens getattributenode getattributenodens hasattribute (dom 2) hasattributens - - removeattribute (dom 1) removeattributens removeattributenode - ...
FetchEvent - Web APIs
this is the event type for fetch events dispatched on the service worker global scope.
...nse, or undefined if this fetch is not a navigation, or navigation preload is not enabled.
...if this fetch is not a navigation, or navigation preload is not enabled.
...ng and caching.
File.getAsBinary() - Web APIs
Web › API › File › getAsBinary
l not work for every user.
...n implementations and the behavior may change in the future.
...he future.
...< files.length; i++) { file = files[i]; // if file type could be detected if (file !== null) { if (accept.binary.indexof(file.type) > -1) { // file is a binary, which we accept var data = file.getasbinary(); } else if (accept.text.indexof(file.type) > -1) { // file is of type text, which we accept var data = file.getastext(); // modify data with string methods } } } specification not part of any specification.
File.getAsText() - Web APIs
Web › API › File › getAsText
obsolete since gecko 7.0 (firefox 7.0 / thunderbird 7.0 / seamonkey 2.4)this feature is obsolete.
... obsolete since gecko 7.0 (firefox 7.0 / thunderbird 7.0 / seamonkey 2.4)this feature is obsolete.
... obsolete since gecko 7.0 (firefox 7.0 / thunderbird 7.0 / seamonkey 2.4)this feature is obsolete.
...ain", "text/css", "application/xml", "text/html"] }; var file; for (var i = 0; i < files.length; i++) { file = files[i]; // if file type could be detected if (file !== null) { if (accept.text.indexof(file.mediatype) > -1) { // file is of type text, which we accept // make sure it's encoded as utf-8 var data = file.getastext("utf-8"); // modify data with string methods } else if (accept.binary.indexof(file.mediatype) > -1) { // binary } } } specification not part of any specification.
FileEntrySync - Web APIs
te content to a file.
...w3c specifications (working draft) drafted on april 19, 2011.
... a filewriter object by calling createwriter().
... exception description not_found_err the file does not exist.
FileReader.readyState - Web APIs
the filereader readystate property provides the current state of the reading operation a filereader is in.
... the filereader readystate property provides the current state of the reading operation a filereader is in.
...ent state of the reading operation a filereader is in.
...eader is in.
File and Directory Entries API support in Firefox - Web APIs
: content scripts can't create file systems or initiate access to a file system.
...nput> element, using the htmlinputelement.webkitentries property to access an array of filesystementry objects describing file system entries you can then read.
...bjects describing file system entries you can then read.
...ethod to get access to a specified local file system.
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.
...associated with a given key from within a formdata object.
Geolocation API - Web APIs
ccess this information (for example, gps).
...ieval is unsuccessful, the callback executes with a geolocationpositionerror object as its only parameter, providing access information on what went wrong.
...or further information on geolocation usage, read using the geolocation api.
...side geolocation, inside a success callback, and contains a timestamp plus a geolocationcoordinates object instance.
HTMLCanvasElement.getContext() - Web APIs
the htmlcanvaselement.getcontext() method returns a drawing context on the canvas, or null if the context identifier is not supported.
... the htmlcanvaselement.getcontext() method returns a drawing context on the canvas, or null if the context identifier is not supported.
... the htmlcanvaselement.getcontext() method returns a drawing context on the canvas, or null if the context identifier is not supported.
...lement.getcontext() method returns a drawing context on the canvas, or null if the context identifier is not supported.
HTMLDialogElement.close() - Web APIs
the close() method of the htmldialogelement interface closes the dialog.
...y be passed as an argument, updating the returnvalue of the the dialog.
...rnvalue); parameters returnvalue optional a domstring representing an updated value for the htmldialogelement.returnvalue of the dialog.
... return value void.
HTMLDialogElement.show() - Web APIs
the show() method of the htmldialogelement interface displays the dialog modelessly, i.e.
... the show() method of the htmldialogelement interface displays the dialog modelessly, i.e.
...plays the dialog modelessly, i.e.
...one.
HTMLDialogElement.showModal() - Web APIs
the showmodal() method of the htmldialogelement interface displays the dialog as a modal, over the top of any other dialogs that might be present.
...ed and the content outside it is rendered inert.
...return value void.
...tateerror is thrown.
HTMLFieldSetElement - Web APIs
the htmlfieldsetelement interface provides special properties and methods (beyond the regular htmlelement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements.
... not satisfy (if any).
...ny).
...eldsetelement' in that specification.
HTMLHeadElement - Web APIs
the htmlheadelement interface contains the descriptive information, or metadata, for a document.
...amily="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlheadelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...o,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlheadelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...ospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlheadelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLHeadingElement - Web APIs
the htmlheadingelement interface represents the different heading elements, <h1> through <h6>.
...ddle">htmlheadingelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...ent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...vg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLHtmlElement - Web APIs
the htmlhtmlelement interface serves as the root node for a given html document.
...e="middle">htmlhtmlelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...ement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
.../svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLLIElement - Web APIs
the htmllielement interface exposes specific properties and methods (beyond those defined by regular htmlelement interface it also has available to it by inheritance) for manipulating list elements.
..." alignment-baseline="middle">htmllielement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...andard way of defining the list type is via the css list-style-type property, use the cssom methods to set it via a script.
...g the list type is via the css list-style-type property, use the cssom methods to set it via a script.
HTMLLabelElement - Web APIs
the htmllabelelement interface gives access to properties specific to <label> elements.
...ent.form read only is a htmlformelement object representing the form with which the labeled control is associated, or null if there is no associated control, or if that control isn't associated with a form.
...is a htmlformelement object representing the form with which the labeled control is associated, or null if there is no associated control, or if that control isn't associated with a form.
...nt object representing the form with which the labeled control is associated, or null if there is no associated control, or if that control isn't associated with a form.
HTMLLegendElement - Web APIs
the htmllegendelement is an interface allowing to access properties of the <legend> elements.
...to.
... a fieldset element as its parent, then this attribute returns the same value as the form attribute on the parent fieldset element.
...nt as its parent, then this attribute returns the same value as the form attribute on the parent fieldset element.
HTMLLinkElement - Web APIs
the htmllinkelement interface represents reference information for external resources and the relationship of those resources to a document and vice-versa (corresponds to <link> element; not to be confused with <a>, which is represented by htmlanchorelement).
...ip of the linked resource from the resource to the document.
...urce from the resource to the document.
...ource to the document.
HTMLMapElement - Web APIs
the htmlmapelement interface provides special properties and methods (beyond those of the regular object htmlelement interface it also has available to it by inheritance) for manipulating the layout and presentation of map elements.
...er-events: all;} properties inherits properties from its parent, htmlelement.
... properties inherits properties from its parent, htmlelement.
...erits properties from its parent, htmlelement.
HTMLMarqueeElement - Web APIs
the htmlmarqueeelement interface provides methods to manipulate <marquee> elements.
... the htmlmarqueeelement interface provides methods to manipulate <marquee> elements.
...rquee has reached the end of its scroll position.
...the end of its scroll position.
msClearEffects - 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.
...it will not work for every user.
...o be large incompatibilities between implementations and the behavior may change in the future.
HTMLMediaElement: pause event - Web APIs
the pause event is sent when a request to pause an activity is handled and the activity has entered its paused state, most commonly after the media has been paused through a call to the element's pause() method.
... the pause event is sent when a request to pause an activity is handled and the activity has entered its paused state, most commonly after the media has been paused through a call to the element's pause() method.
...cification html5 media examples these examples add an event listener for the htmlmediaelement's pause event, then post a message when that event handler has reacted to the event firing.
...o'); video.addeventlistener('pause', (event) => { console.log('the boolean paused property is now true.
HTMLMedia​Element​.textTracks - Web APIs
tracks are added or existing ones removed.
...age 3"> </video> the htmlmediaelement.texttracks returns a texttrackslist thru which we can iterate.
...n iterate.
...each english track to the console.
HTMLMetaElement - Web APIs
the htmlmetaelement interface contains descriptive metadata about a document.
... domstring gets or sets the value of meta-data property.
... sets the value of meta-data property.
...f meta-data property.
HTMLMeterElement - Web APIs
the html <meter> elements expose the htmlmeterelement interface, which provides special properties and methods (beyond the htmlelement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements.
...te.
...imum value, reflecting the min attribute.
...g the min attribute.
HTMLObjectElement - Web APIs
the htmlobjectelement interface provides special properties and methods (beyond those on the htmlelement interface it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, representing external resources.
... a long representing the horizontal space in pixels around the control.
...ng the horizontal space in pixels around the control.
... latest of a previous version of html living standard technically, the property tabindex is now defined on htmlelement.
HTMLOptGroupElement - Web APIs
the htmloptgroupelement interface provides special properties and methods (beyond the regular htmlelement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <optgroup> elements.
...dle">htmloptgroupelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...ent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...vg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLOutputElement - Web APIs
the htmloutputelement interface provides properties and methods (beyond those inherited from htmlelement) for manipulating the layout and presentation of <output> elements.
...ies its constraints.
...t.validityread only a validitystate representing the validity states that this element is in.
...e the node.textcontent property.
HTMLPictureElement - Web APIs
the htmlpictureelement interface represents a <picture> html element.
...ill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="401" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlpictureelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties no specific property, but inherits properties from its parent, htmlelement.
..."#d4dde4" stroke-width="2px" /><text x="401" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlpictureelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties no specific property, but inherits properties from its parent, htmlelement.
...h="2px" /><text x="401" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlpictureelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties no specific property, but inherits properties from its parent, htmlelement.
HTMLSourceElement - Web APIs
src html attribute, containing the url for the media resource.
... htmlsourceelement.srcset is a domstring reflecting the srcset html attribute, containing a list of candidate images, separated by a comma (',', u+002c comma).
...cset is a domstring reflecting the srcset html attribute, containing a list of candidate images, separated by a comma (',', u+002c comma).
...tring reflecting the srcset html attribute, containing a list of candidate images, separated by a comma (',', u+002c comma).
HTMLSpanElement - Web APIs
the htmlspanelement interface represents a <span> element and derives from the htmlelement interface, but without implementing any additional properties or methods.
... 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">htmlspanelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties, but inherits properties from: htmlelement.
..." 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">htmlspanelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties, but inherits properties from: htmlelement.
...><text x="416" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlspanelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties, but inherits properties from: htmlelement.
HTMLTableCellElement - Web APIs
the htmltablecellelement interface provides special properties and methods (beyond the regular htmlelement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an html document.
... the end of the row or another <th> in the same row establishes a new scope.
...r another <th> in the same row establishes a new scope.
... the same row establishes a new scope.
HTMLTableRowElement - Web APIs
the htmltablerowelement interface provides special properties and methods (beyond the htmlelement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an html table.
...e which gives the logical position of the row within the table section it belongs to.
...logical position of the row within the table section it belongs to.
...ng standard html5the definition of 'htmltablerowelement' in that specification.
HTMLTableSectionElement - Web APIs
the htmltablesectionelement interface provides special properties and methods (beyond the htmlelement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an html table.
...t-to-left scripts) of the character defined by htmltablerowelement.ch.
... of the character defined by htmltablerowelement.ch.
...ving standardthe definition of 'htmltablesectionelement' in that specification.
HTMLTitleElement - Web APIs
the htmltitleelement interface contains the title for a document.
..."411" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmltitleelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...e="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmltitleelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...ily="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmltitleelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
IDBCursor.continuePrimaryKey() - Web APIs
the continueprimarykey() method of the idbcursor interface advances the cursor to the to the item whose key matches the key parameter as well as whose primary key matches the primary key parameter.
... the continueprimarykey() method of the idbcursor interface advances the cursor to the to the item whose key matches the key parameter as well as whose primary key matches the primary key parameter.
..., is to resume the iteration where a previous cursor has been closed, without having to compare the keys one by one.
...r’s got value flag has been unset.
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.
...ys the object store with the given name in the connected database, along with any indexes that reference it.
...e, this method can be called only within a versionchange transaction.
IDBFactory.deleteDatabase() - Web APIs
the deletedatabase() method of the idbfactory interface requests the deletion of a database.
... the deletedatabase() method of the idbfactory interface requests the deletion of a database.
... the deletedatabase() method of the idbfactory interface requests the deletion of a database.
...the method returns an idbopendbrequest object immediately, and performs the deletion operation asynchronously.
IDBObjectStore.createIndex() - Web APIs
the createindex() method of the idbobjectstore interface creates and returns a new idbindex object in the connected database.
...tore interface creates and returns a new idbindex object in the connected database.
...e ways: string: a string containing a specific locale code, e.g.
...f the following types: exception description constrainterror occurs if an index with the same name already exists in the database.
IDBOpenDBRequest - Web APIs
uest" target="_top"><rect x="291" y="1" width="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="371" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-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.
...ight="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="371" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-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.
...ll="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="371" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-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.
...d4dde4" stroke-width="2px" /><text x="371" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-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 - Web APIs
nstance.
...quest starts in the pending state.
... in the pending state.
... the state changes to done when the request completes successfully or when an error occurs.
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.
... the objectstore() method of the idbtransaction interface returns an object store that has already been added to the scope of this transaction.
... the objectstore() method of the idbtransaction interface returns an object store that has already been added to the scope of this transaction.
...name, returns the same idbobjectstore instance.
IDBVersionChangeEvent - Web APIs
the idbversionchangeevent interface of the indexeddb api indicates that the version of the database has changed, as the result of an idbopendbrequest.onupgradeneeded event handler function.
...ns the new version of the database.
... the database.
...ionchangeevent.version read only the new version of the database in a versionchange transaction.
getVersion - Web APIs
nd plug-in developers must switch away from install.js based packages to the new packaging scheme with an install.rdf manifest.
...anifest.
...number from the client version registry for the specified component.
...d has one parameter: component the name of a component in the client version registry.
Timing element visibility with the Intersection Observer API - Web APIs
d's total visible time counter, then we set their dataset.lastviewstarted property to 0, which indicates that the tab's timer isn't running.
...econds / 60); timerbox.innertext = min + ":" + sec.tostring().padstart(2, "0"); } this code finds the ad's timer using its id, "timer", and computes the number of seconds elapsed by dividing the ad's totalviewtime by 1000.
... like, but this does the job for our purposes.
...ing it the class "timer".
Intersection Observer API - Web APIs
re and more content is loaded and rendered as you scroll, so that the user doesn't have to flip through pages.
...rsectionratio is above 75%, in which case it increments the counter.
... but also becomes increasingly opaque as it becomes less obscured.
...visibility ratio is decreasing.
Key Values - Web APIs
pressed.
...or standby modes.
...h lets the user enter characters by typing their code points (their unicode character numbers, typically).
... imes.
KeyboardEvent - Web APIs
ey (on mac keyboards, the ⌘ command key; on windows keyboards, the windows key (⊞)) was active when the key event was generated.
...key; on windows keyboards, the windows key (⊞)) was active when the key event was generated.
...ically repeating.
... specification status comment ui eventsthe definition of 'keyboardevent' in that specification.
MSCandidateWindowHide - Web APIs
non-standard this feature is non-standard and is not on a standards track.
...dard this feature is non-standard and is not on a standards track.
....
....1 imes of all languages.
MSCandidateWindowShow - Web APIs
non-standard this feature is non-standard and is not on a standards track.
...s non-standard and is not on a standards track.
....
... addeventlistener method object.addeventlistener("mscandidatewindowshow", handler, usecapture) parameters pevtobj [in] type: ihtmleventobj pointer to an ihtmleventobj interface for the current event.
MSSiteModeEvent - Web APIs
non-standard this feature is non-standard and is not on a standards track.
...tes facing the web: it will not work for every user.
...: it will not work for every user.
...and the behavior may change in the future.
MediaElementAudioSourceNode - Web APIs
the mediaelementaudiosourcenode interface represents an audio source consisting of an html5 <audio> or <video> element.
...tsource() method.
...fined by the media in the htmlmediaelement passed to the audiocontext.createmediaelementsource method that created it.
... in the htmlmediaelement passed to the audiocontext.createmediaelementsource method that created it.
MediaStreamAudioSourceNode - Web APIs
n audio source whose media is received from a mediastream obtained using the webrtc or media capture and streams apis.
...whose kind attribute's value is audio.
...) method that created it.
...ted it.
MediaStreamTrackAudioSourceNode - Web APIs
from a specific mediastreamtrack obtained through the webrtc or media capture and streams apis.
...createmediastreamtracksource() method.
...iastreamtrack passed to the audiocontext.createmediastreamtracksource() method that created it.
...ed to the audiocontext.createmediastreamtracksource() method that created it.
MerchantValidationEvent() - Web APIs
se events yourself; instead, just handle the merchantvalidation event.
...dation event.
...rification information used to validate the merchant.
...ue a newly-created merchantvalidationevent providing the information that needs to be delivered to the client-side code to present to the user agent by calling complete().
MerchantValidationEvent - Web APIs
to use a particular payment handler.
...t validation, see merchant validation in payment processing concepts.
... context creates a new merchantvalidationevent object describing a merchantvalidation event that will be sent to the payment handler to request that it validate the merchant.
... as https://apple.com/apple-pay.
MessageEvent - Web APIs
messageevent.source read only a messageeventsource (which can be a windowproxy, messageport, or serviceworker object) representing the message emitter.
...ssageeventsource (which can be a windowproxy, messageport, or serviceworker object) representing the message emitter.
... the following code snippet shows creation of a sharedworker object using the sharedworker() constructor.
...og('message posted to worker'); } myworker.port.onmessage = function(e) { result1.textcontent = e.data; console.log('message received from worker'); } inside the worker we use the sharedworkerglobalscope.onconnect handler to connect to the same port discussed above.
MouseEvent.initMouseEvent() - Web APIs
the mouseevent.initmouseevent() method initializes the value of a mouse event once it's been created (normally using the document.createevent() method).
... the mouseevent.initmouseevent() method initializes the value of a mouse event once it's been created (normally using the document.createevent() method).
... the mouseevent.initmouseevent() method initializes the value of a mouse event once it's been created (normally using the document.createevent() method).
...mouseevent() method initializes the value of a mouse event once it's been created (normally using the document.createevent() method).
Navigator.requestMediaKeySystemAccess() - Web APIs
the navigator.requestmediakeysystemaccess() method returns a promise which delivers a mediakeysystemaccess object that can be used to access a particular media key system, which can in turn be used to create keys for decrypting a media stream.
... the navigator.requestmediakeysystemaccess() method returns a promise which delivers a mediakeysystemaccess object that can be used to access a particular media key system, which can in turn be used to create keys for decrypting a media stream.
... the navigator.requestmediakeysystemaccess() method returns a promise which delivers a mediakeysystemaccess object that can be used to access a particular media key system, which can in turn be used to create keys for decrypting a media stream.
...e effects such as asking for permission to access one or more system resources.
Navigator.vibrate() - Web APIs
Web › API › Navigator › vibrate
the navigator.vibrate() method pulses the vibration hardware on the device, if such hardware exists.
... the navigator.vibrate() method pulses the vibration hardware on the device, if such hardware exists.
... the navigator.vibrate() method pulses the vibration hardware on the device, if such hardware exists.
... the navigator.vibrate() method pulses the vibration hardware on the device, if such hardware exists.
Navigator - Web APIs
Web › API › Navigator
guage.language read only returns a domstring representing the preferred language of the user, usually the language of the browser ui.
...ser.
...only.
... read only returns a storagequota interface which provides means to query and request storage usage and quota information.
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.
...etuserdata() method allows a user to attach (or remove) data to an element, without needing to modify the dom.
... data in making the assessment.
...prevuserdata = somenode.setuserdata(userkey, userdata, handler); parameters userkey is used as the key by which one may subsequently obtain the stored data.
NodeList - Web APIs
Web › API › NodeList
nodelist objects are collections of nodes, usually returned by properties such as node.childnodes and methods such as document.queryselectorall().
...ument.getelementbyid('parent'); let child_nodes = parent.childnodes; console.log(child_nodes.length); // let's assume "2" parent.appendchild(document.createelement('div')); console.log(child_nodes.length); // outputs "3" static nodelists in other cases, the nodelist is static, where any changes in the dom does not affect the content of the collection.
... nodelist is static, where any changes in the dom does not affect the content of the collection.
...item properties and cause errors if your script assumes it only has to deal with element objects.
Notification - Web APIs
nt.
...red each time the user clicks on the notification.
...he user clicks on the notification.
...handler for the error event.
OfflineAudioContext - Web APIs
ce, baseaudiocontext.
... offlineaudiocontext.length read only an integer representing the size of the buffer in sample-frames.
...aseaudiocontext.
...s a promise.
PannerNode.setPosition() - Web APIs
the setposition() method of the pannernode interface defines the position of the audio source relative to the listener (represented by an audiolistener object stored in the audiocontext.listener attribute.) the three parameters x, y and z are unitless and describe the source's position in 3d space using the right-hand cartesian coordinate system.
... the setposition() method of the pannernode interface defines the position of the audio source relative to the listener (represented by an audiolistener object stored in the audiocontext.listener attribute.) the three parameters x, y and z are unitless and describe the source's position in 3d space using the right-hand cartesian coordinate system.
... and z are unitless and describe the source's position in 3d space using the right-hand cartesian coordinate system.
...ut our panner-node example (view the source code) — this demo transports you to the 2.5d "room of metal", where you can play a track on a boom box and then walk around the boom box to see how the sound changes!
PannerNode.setVelocity() - Web APIs
the setvelocity() method of the pannernode interface defines the velocity vector of the audio source — how fast it is moving and in what direction.
... the setvelocity() method of the pannernode interface defines the velocity vector of the audio source — how fast it is moving and in what direction.
...he vector controls both the direction of travel and its velocity, the three parameters x, y and z are expressed in meters per second.
...ut our panner-node example (view the source code) — this demo transports you to the 2.5d "room of metal", where you can play a track on a boom box and then walk around the boom box to see how the sound changes!
PannerNode - Web APIs
double value representing the reference distance for reducing volume as the audio source moves further from the listener.
...esenting the reference distance for reducing volume as the audio source moves further from the listener.
... source — how fast it is moving and in what direction.
...ut our panner-node example (view the source code) — this demo transports you to the 2.5d "room of metal", where you can play a track on a boom box and then walk around the boom box to see how the sound changes!
PaymentAddress - Web APIs
contain empty strings.
...d is intended to aid in localization of the display of the address.
...s that can be used for the payment, one containing details of the actual order (such as items bought and shipping options), and an optional object containing further options.
...}, ], }; const options = { requestshipping: true }; async function dopaymentrequest() { const request = new paymentrequest(supportedinstruments, details, options); // add event listeners here.
PaymentDetailsUpdate - Web APIs
the paymentdetailsupdate dictionary is used to provide updated information to the payment user interface after it has been instantiated.
... the paymentdetailsupdate dictionary is used to provide updated information to the payment user interface after it has been instantiated.
...invoice.
...), including error in the updated data causes the user agent to display the text as a general error message.
PaymentResponse.complete() - Web APIs
the paymentrequest method complete() of the payment request api notifies the user agent that the user interaction is over, and causes any remaining user interface to be closed.
... the paymentrequest method complete() of the payment request api notifies the user agent that the user interaction is over, and causes any remaining user interface to be closed.
... the paymentrequest method complete() of the payment request api notifies the user agent that the user interaction is over, and causes any remaining user interface to be closed.
...lowing example sends payment information to a secure server using the fetch api.
PaymentResponse.details - Web APIs
the details read-only property of the paymentresponse interface returns a json-serializable object that provides a payment method specific message used by the merchant to process the transaction and determine a successful funds transfer.
...ure defined in the basiccardresponse dictionary.
... basiccardresponse dictionary.
...onary.
PaymentValidationErrors - Web APIs
the paymentvalidationerrors dictionary represents objects providing information about any and all errors that occurred while processing a payment request.
...ror can be provided all by itself to provide only a generic error message, or in concert with the other properties to serve as an overview while other properties' values gude the user to errors in specific fields in the payment form.
...self to provide only a generic error message, or in concert with the other properties to serve as an overview while other properties' values gude the user to errors in specific fields in the payment form.
...ent form.
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.
...e entries of certain types or that have certain names, see getentriesbytype() and getentriesbyname().
...return value entries an array of performanceentry objects.
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.
....entrytype.
... return.
performance.getEntriesByType() - Web APIs
the getentriesbytype() method returns a list of performanceentry objects for a given type.
... the getentriesbytype() method returns a list of performanceentry objects for a given type.
...entry to retrieve such as "mark".
...e in chronological order based on the entries' starttime.
PerformanceObserverEntryList.getEntries() - Web APIs
the getentries() method of the performanceobserverentrylist interface returns a list of explicitly observed performance entry objects for a given filter.
... the getentries() method of the performanceobserverentrylist interface returns a list of explicitly observed performance entry objects for a given filter.
... the getentries() method of the performanceobserverentrylist interface returns a list of explicitly observed performance entry objects for a given filter.
...es(performanceentryfilteroptions); specific usage: entries = list.getentries({name: "entry_name", entrytype: "mark"}); parameters performanceentryfilteroptionsoptional is a performanceentryfilteroptions dictionary, having the following fields: "name", the name of a performance entry.
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.
... the getentriesbyname() method of the performanceobserverentrylist interface returns a list of explicitly observed performance entry objects for a given name and entry type.
... the getentriesbyname() method of the performanceobserverentrylist interface returns a list of explicitly observed performance entry objects for a given name and entry type.
...0; i < perfentries.length; i++) { print_perf_entry(perfentries[i]); } }); // subscribe to only the 'frame' event observe_frame.observe({entrytypes: ['frame']}); specifications specification status comment performance timeline level 2the definition of 'getentriesbyname()' in that specification.
PerformanceObserverEntryList.getEntriesByType() - Web APIs
the getentriesbytype() method of the performanceobserverentrylist returns a list of explicitly observed performance entry objects for a given performance entry type.
... the getentriesbytype() method of the performanceobserverentrylist returns a list of explicitly observed performance entry objects for a given performance entry type.
... the getentriesbytype() method of the performanceobserverentrylist returns a list of explicitly observed performance entry objects for a given performance entry type.
...0; i < perfentries.length; i++) { print_perf_entry(perfentries[i]); } }); // subscribe to only the 'frame' event observe_frame.observe({entrytypes: ['frame']}); specifications specification status comment performance timeline level 2the definition of 'getentriesbytype()' in that specification.
PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() - Web APIs
isuserverifyingplatformauthenticatoravailable() is a static method of the publickeycredential interface that returns a promise which resolves to true if a user-verifying platform authenticator is available.
...c method of the publickeycredential interface that returns a promise which resolves to true if a user-verifying platform authenticator is available.
...ilable.
...lickeycredential.isuserverifyingplatformauthenticatoravailable() parameters none.
PublicKeyCredential - Web APIs
s to credentialscontainer.get.
...icatorresponse object.
...call, or of type authenticatorassertionresponse if the publickeycredential was the result of a navigator.credentials.get() call.
...tensionresults()secure context if any extensions were requested, this method will return the results of processing those extensions.
PushManager.register() - Web APIs
the register method is used to ask the system to request a new endpoint for notifications.
... the register method is used to ask the system to request a new endpoint for notifications.
... the register method is used to ask the system to request a new endpoint for notifications.
... the register method is used to ask the system to request a new endpoint for notifications.
PushManager.unregister() - Web APIs
the unregister() method was used to ask the system to unregister and delete the specified endpoint.
... the unregister() method was used to ask the system to unregister and delete the specified endpoint.
... unregister() method was used to ask the system to unregister and delete the specified endpoint.
...was used to ask the system to unregister and delete the specified endpoint.
RTCDataChannel.close() - Web APIs
the rtcdatachannel.close() method closes the rtcdatachannel.
... the rtcdatachannel.close() method closes the rtcdatachannel.
...method closes the rtcdatachannel.
... layer decides whether to send them or discard them.
RTCPeerConnection.addTrack() - Web APIs
the rtcpeerconnection method addtrack() adds a new media track to the set of tracks which will be transmitted to the other peer.
...video: true, audio: true}); for (const track of gumstream.gettracks()) { pc.addtrack(track, gumstream); } } the remote peer might then use a track event handler that looks like this: pc.ontrack = ({streams: [stream]} => videoelem.srcobject = stream; this sets the video element's current stream to the one that contains the track that's been added to the connection.
...ansceiver's currentdirection has ever been "sendrecv" or "sendonly", the sender can't be reused.
...er.
RTCPeerConnection.close() - Web APIs
the rtcpeerconnection.close() method closes the current peer connection.
... the rtcpeerconnection.close() method closes the current peer connection.
... the rtcpeerconnection.close() method closes the current peer connection.
...thing.
RTCRtpTransceiver.setCodecPreferences() - Web APIs
the rtcrtptransceiver method setcodecpreferences() configures the transceiver's codecs given a list of rtcrtpcodeccapability objects specifying the new preferences for each codec.
... the rtcrtptransceiver method setcodecpreferences() configures the transceiver's codecs given a list of rtcrtpcodeccapability objects specifying the new preferences for each codec.
...not supported by the transceiver.
...tion when you call this method.
RTCSctpTransport - Web APIs
a data channel on the peer connection.
...ing the rtcdatachannel.send() method.
...ethod.
...rt.stateread only a domstring enumerated value indicating the state of the sctp transport.
Range.compareNode() - Web APIs
Web › API › Range › compareNode
he range.comparenode() returns a constant indicating the position of the node.
... return 1; if (nodeisbefore && nodeisafter) return 2; return 3; } syntax returnvalue = range.comparenode( referencenode ); parameters referencenode the node to compare with the range.
...syntax returnvalue = range.comparenode( referencenode ); parameters referencenode the node to compare with the range.
...mparenode( referencenode ); parameters referencenode the node to compare with the range.
Reporting API - Web APIs
ly of the running of the websites they relate to, which is useful — a crash for example could bring down a web site and stop anything running, but a report could still be obtained to give the developer some clues as to why it happened.
...te to, which is useful — a crash for example could bring down a web site and stop anything running, but a report could still be obtained to give the developer some clues as to why it happened.
...n the observer's report queue, and a copy of the same reportingobserver object, so observation can be controlled directly from inside the callback.
...ailure); } else { navigator.getusermedia( constraints, success, failure); } this causes a deprecation report to be generated; because of the event handler we set up inside the reportingobserver() constructor, we can now click the button to display the report details.
Using the Resource Timing API - Web APIs
] = " + list[i].transfersize); else console.log("...
...e[" + i + "] = not supported"); } } managing the resource buffer although the browser is required to support at least 150 resource timing performance entries in its resource timing buffer, some applications may use more resources than that limit.
...performance entries in its resource timing buffer, some applications may use more resources than that limit.
...defines two methods that extend the performance interface.
SVGAElement - Web APIs
the svgaelement interface provides access to the properties of <a> element, as well as methods to manipulate them.
...icy.
...anchorelement.rel.
...vgaelement.rellist see htmlanchorelement.rellist.
SVGAnimatedPoints - Web APIs
svg animated points interface the svganimatedpoints interface supports elements which have a points attribute which holds a list of coordinate values and which support the ability to animate that attribute.
...elements which have a points attribute which holds a list of coordinate values and which support the ability to animate that attribute.
...ase (i.e., static) contents of the points attribute.
...dpoints svgpointlist provides access to the current animated contents of the points attribute.
SVGAnimationElement - Web APIs
></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent, svgelement.
... #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent, svgelement.
...urns a float representing the number of seconds for the simple duration for this animation.
...d is equivalent to beginelementat(0).
SVGClipPathElement - Web APIs
the svgclippathelement interface provides access to the properties of <clippath> elements, as well as methods to manipulate them.
..."middle">svgclippathelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent, svgelement.
...a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent, svgelement.
...0095dd; pointer-events: all;} properties this interface also inherits properties from its parent, svgelement.
SVGCursorElement - Web APIs
the svgcursorelement interface provides access to the properties of <cursor> elements, as well as methods to manipulate them.
...5dd; pointer-events: all;} properties this interface also inherits properties from its parent, svgelement, and implements properties from svgurireference.
...face also inherits properties from its parent, svgelement, and implements properties from svgurireference.
...perties from its parent, svgelement, and implements properties from svgurireference.
SVGFEFloodElement - Web APIs
monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfefloodelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svgelement, and implements properties from svgfilterprimitivestandardattributes.
...r="middle" alignment-baseline="middle">svgfefloodelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svgelement, and implements properties from svgfilterprimitivestandardattributes.
...aseline="middle">svgfefloodelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svgelement, and implements properties from svgfilterprimitivestandardattributes.
...a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svgelement, and implements properties from svgfilterprimitivestandardattributes.
SVGFontElement - Web APIs
e="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfontelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement and implements properties from svgexternalresourcesrequired and svgstylable.
...monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfontelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement and implements properties from svgexternalresourcesrequired and svgstylable.
...nospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfontelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement and implements properties from svgexternalresourcesrequired and svgstylable.
...ent-baseline="middle">svgfontelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement and implements properties from svgexternalresourcesrequired and svgstylable.
SVGGlyphRefElement - Web APIs
ing to the format attribute of the given element.
...the given element.
...vgglyphrefelement.x a float corresponding to the x attribute of the given element.
... attribute of the given element.
SVGLength - Web APIs
Web › API › SVGLength
svg length interface the svglength interface correspond to the <length> basic data type.
...fiedunits, and unittype to be updated automatically to reflect this setting.
...d_err is raised when the length corresponds to a read only attribute or when the object itself is read only.
...bute or when the object itself is read only.
SVGLineElement - Web APIs
the svglineelement interface provides access to the properties of <line> elements, as well as methods to manipulate them.
...x1 on the given <line> element.
... only returns an svganimatedlength that corresponds to attribute y1 on the given <line> element.
...animatedlength that corresponds to attribute y1 on the given <line> element.
SVGMaskElement - Web APIs
the svgmaskelement interface provides access to the properties of <mask> elements, as well as methods to manipulate them.
...x attribute of the given <mask> element.
...t.y read only an svganimatedlength corresponding to the y attribute of the given <mask> element.
...animatedlength corresponding to the y attribute of the given <mask> element.
SVGMeshElement - Web APIs
ily="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgmeshelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svggeometryelement, and implements the properties of svgurireference.
...53" text-anchor="middle" alignment-baseline="middle">svgmeshelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svggeometryelement, and implements the properties of svgurireference.
...e" alignment-baseline="middle">svgmeshelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svggeometryelement, and implements the properties of svgurireference.
...:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svggeometryelement, and implements the properties of svgurireference.
SVGMissingGlyphElement - Web APIs
x="111" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgmissingglyphelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement and implements properties from svgstylable.
...x" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgmissingglyphelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement and implements properties from svgstylable.
...las,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgmissingglyphelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement and implements properties from svgstylable.
...xt-anchor="middle" alignment-baseline="middle">svgmissingglyphelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement and implements properties from svgstylable.
SVGPolygonElement - Web APIs
the svgpolygonelement interface provides access to the properties of <polygon> elements, as well as methods to manipulate them.
...family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgpolygonelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent, svggeometryelement and also implements properties from svganimatedpoints.
...d4e53" text-anchor="middle" alignment-baseline="middle">svgpolygonelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent, svggeometryelement and also implements properties from svganimatedpoints.
...ddle" alignment-baseline="middle">svgpolygonelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent, svggeometryelement and also implements properties from svganimatedpoints.
SVGPolylineElement - Web APIs
the svgpolylineelement interface provides access to the properties of <polyline> elements, as well as methods to manipulate them.
...amily="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgpolylineelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent, svggeometryelement and also implements properties from svganimatedpoints.
...4e53" text-anchor="middle" alignment-baseline="middle">svgpolylineelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent, svggeometryelement and also implements properties from svganimatedpoints.
...dle" alignment-baseline="middle">svgpolylineelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent, svggeometryelement and also implements properties from svganimatedpoints.
SVGRectElement - Web APIs
the svgrectelement interface provides access to the properties of <rect> elements, as well as methods to manipulate them.
...iven <rect> element.
... returns an svganimatedlength corresponding to the height attribute of the given <rect> element.
...dlength corresponding to the height attribute of the given <rect> element.
SVGStyleElement - Web APIs
ion_allowed_err on an attempt to change the value of a read-only attribute.
...read-only attribute.
...his restriction was removed in svg 2.
...e a domstring corresponding to the title attribute of the given element.
SVGSymbolElement - Web APIs
ily="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgsymbolelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svggraphicselement, and implements properties from svgfittoviewbox.
...53" text-anchor="middle" alignment-baseline="middle">svgsymbolelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svggraphicselement, and implements properties from svgfittoviewbox.
...e" alignment-baseline="middle">svgsymbolelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svggraphicselement, and implements properties from svgfittoviewbox.
... a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svggraphicselement, and implements properties from svgfittoviewbox.
SVGTransformable - Web APIs
svg transformable interface interface svgtransformable contains properties and methods that apply to all elements which have attribute transform.
... svg transformable interface interface svgtransformable contains properties and methods that apply to all elements which have attribute transform.
...nsform.
... methods none properties readonly svganimatedtransformlist transform normative document svg 1.1 (2nd edition) properties name type description transform svganimatedtransformlist corresponds to attribute transform on the given element.
SVGUseElement - Web APIs
en getting this attribute returns null.
...animatedinstanceroot read only an svgelement corresponding to the instance root of the given element, which is a direct child of the elements shadow root.
...ead only an svgelement corresponding to the instance root of the given element, which is a direct child of the elements shadow root.
...ven element, which is a direct child of the elements shadow root.
Screen Capture API - Web APIs
the screen capture api introduces additions to the existing media capture and streams api to let the user select a screen or portion of a screen (such as a window) to capture as a media stream.
...evices.getdisplaymedia(displaymediaoptions); the promise returned by getdisplaymedia() resolves to a mediastream which streams the captured media.
...the captured media.
...-depth look at how to use the api to capture screen contents as a stream.
ScriptProcessorNode - Web APIs
he input audio data, one containing the processed output audio data.
... 1 channel count mode "max" channel count 2 (not used in the default count mode) channel interpretation "speakers" properties inherits properties from its parent, audionode.
...count mode "max" channel count 2 (not used in the default count mode) channel interpretation "speakers" properties inherits properties from its parent, audionode.
..." channel count 2 (not used in the default count mode) channel interpretation "speakers" properties inherits properties from its parent, audionode.
ServiceWorkerContainer - Web APIs
the serviceworkercontainer interface of the service worker api provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.
... the serviceworkercontainer.oncontrollerchange property.
...e serviceworkercontainer object (e.g.
...ation for the given scripturl.
ServiceWorkerRegistration - Web APIs
ound synchronization processes.
...esses.
...'); } specifications specification status comment service workersthe definition of 'serviceworkerregistration' in that specification.
...ecification status comment service workersthe definition of 'serviceworkerregistration' in that specification.
SharedWorkerGlobalScope - Web APIs
rglobalscope.navigator read only returns the workernavigator associated with the worker.
...rom the workerglobalscope interface, and its parent eventtarget, and therefore implements event handlers from windowtimers, windowbase64, and windoweventhandlers.
...ce, and its parent eventtarget, and therefore implements event handlers from windowtimers, windowbase64, and windoweventhandlers.
...se64, and windoweventhandlers.
SourceBuffer - Web APIs
whenever sourcebuffer.appendbuffer() or sourcebuffer.appendstream() is ended by a call to sourcebuffer.abort().
...r occurs during sourcebuffer.appendbuffer() or sourcebuffer.appendstream().
...hod or the sourcebuffer.remove() completes.
...uffer.remove() completes.
SpeechSynthesis - Web APIs
d read only a boolean that returns true if the speechsynthesis object is in a paused state.
...ue if the speechsynthesis object is in a paused state.
...esis.speak() adds an utterance to the utterance queue; it will be spoken when any other utterances queued before it have been spoken.
...d populate a select menu with them so the user can choose what voice they want.
StereoPannerNode - Web APIs
of outputs 1 channel count mode "clamped-max" channel count 2 channel interpretation "speakers" constructor stereopannernode() creates a new instance of a stereopannernode object.
... channel count mode "clamped-max" channel count 2 channel interpretation "speakers" constructor stereopannernode() creates a new instance of a stereopannernode object.
...t mode "clamped-max" channel count 2 channel interpretation "speakers" constructor stereopannernode() creates a new instance of a stereopannernode object.
...he amount of panning to apply.
TimeEvent - Web APIs
Web › API › TimeEvent
></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties timeevent.detail read only is a long that specifies some detail information about the event, depending on the type of the event.
...etail read only is a long that specifies some detail information about the event, depending on the type of the event.
...e of the event.
...eevent.view read only is a windowproxy that identifies the window from which the event was generated.
URL - Web APIs
Web › API › URL
cluding the final ':'.
...o access the individual query parameters found in search.
...n.html'; console.log(url.href); // "http://www.example.com/d%c3%a9monstration.html" the urlsearchparams interface can be used to build and manipulate the url query string.
... the tostring() method of url just returns the value of the href property, so the constructor can be used to normalize and encode a url directly.
WakeLockSentinel - Web APIs
the wakelocksentinel interface of the screen wake lock api provides a handle to the underlying platform wake lock and can be manually released and reacquired.
... the wakelocksentinel interface of the screen wake lock api provides a handle to the underlying platform wake lock and can be manually released and reacquired.
...ck type will cause the underlying platform wake lock to be released.
....
WebGLContextEvent - Web APIs
the webcontextevent interface is part of the webgl api and is an interface for an event that is generated in response to a status change to the webgl rendering context.
...y="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">webglcontextevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface inherits properties from its parent interface, event.
..."#4d4e53" text-anchor="middle" alignment-baseline="middle">webglcontextevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface inherits properties from its parent interface, event.
..."middle" alignment-baseline="middle">webglcontextevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface inherits properties from its parent interface, event.
WebGLRenderingContext.getUniformLocation() - Web APIs
part of the webgl api, the webglrenderingcontext method getuniformlocation() returns the location of a specific uniform variable which is part of a given webglprogram.
...hod getuniformlocation() returns the location of a specific uniform variable which is part of a given webglprogram.
... the arrayuniform uniform.
...ng errors may occur; to check for errors after getuniformlocation() returns, call geterror().
Clearing with colors - Web APIs
color the simplest graphical webgl program.
... canvas to black, so when the canvas turns green we know that webgl's magic has worked.
....
... with a solid color is a two-stage process.
WebGL constants - Web APIs
color 0x8005 passed to getparameter to return a the current blend color.
...malized 0x886a vertex_attrib_array_pointer 0x8645 vertex_attrib_array_buffer_binding 0x889f culling constants passed to webglrenderingcontext.cullface().
... 0x0408 passed to cullface to specify that front and back faces should be culled.
.../disable to turn on/off blending.
Adding 2D content to a WebGL context - Web APIs
y creating a float32array from the // javascript array, then use it to fill the current buffer.
... new float32array(positions), gl.static_draw); return { position: positionbuffer, }; } this routine is pretty simplistic given the basic nature of the scene in this example.
...mple.
...etween 0.1 and 100 units from the camera to be rendered.
Writing a WebSocket server in C# - Web APIs
is a good idea to include the namespace with the using keyword in order to write less.
...ude the namespace with the using keyword in order to write less.
...em; class server { public static void main() { tcplistener server = new tcplistener(ipaddress.parse("127.0.0.1"), 80); server.start(); console.writeline("server has started on 127.0.0.1:80.{0}waiting for a connection...", environment.newline); tcpclient client = server.accepttcpclient(); console.writeline("a client connected."); } } tcpclient methods: system.net.sockets.networkstream getstream() gets the stream which is the communication channel.
...teline("a client connected."); } } tcpclient methods: system.net.sockets.networkstream getstream() gets the stream which is the communication channel.
Using bounded reference spaces - Web APIs
rence space, and if it fails to do so it can then fall back to requesting a local-floor reference space instead (in which we will have to handle boundaries ourselves).
...ts render in the right place.
...n is placed immediately above the floor, like a camera lying on the ground.
...te is no longer constrained to -1 to 1, while maintaining the definition that a value of 1 represents one meter).
Web Audio API best practices - Web APIs
tor('button'); button.addeventlistener('click', function() { const audioctx = new audiocontext(); }, false); if however, you create the context outside of a user gesture, its state will be set to suspended and it will need to be started after user interaction.
...ntext(); const button = document.queryselector('button'); button.addeventlistener('click', function() { // check if context is in suspended state (autoplay policy) if (audioctx.state === 'suspended') { audioctx.resume(); } }, false); you might instead be working with an offlineaudiocontext, in which case you can resume the suspended audio context with the startrendering() method.
...tting audioparam values there are two ways to manipulate audionode values, which are themselves objects of type audioparam interface.
...ve property setting.
Visualizations with Web Audio API - Web APIs
rm, and other data from your audio source, which can then be used to create visualizations.
...roperty value (if no value is specified, the default is 2048.) note: you can also specify a minimum and maximum power value for the fft data scaling range, using analysernode.mindecibels and analysernode.maxdecibels, and different data averaging constants using analysernode.smoothingtimeconstant.
...rent data averaging constants using analysernode.smoothingtimeconstant.
...cybincount value, which is half the fft, then call uint8array() with the frequencybincount as its length argument — this is how many data points we will be collecting, for that fft size.
Web Audio API - Web APIs
dfilternode, or volume control like gainnode).
...nterfaces.
...omputer).
...the basics, and helped you to understand what it's useful for and how it works.using the web audio apigreat!
Window: beforeunload event - Web APIs
ad this event enables a web page to trigger a confirmation dialog asking the user if they really want to leave the page.
...e user if they really want to leave the page.
...nload event handlers unless the page has been interacted with, or may even not display them at all.
... prevents browsers from using in-memory page navigation caches, like firefox's back-forward cache or webkit's page cache.
Window.convertPointFromNodeToPage() - Web APIs
given a point specified in a particular dom node's coordinate system, the window method convertpointfromnodetopage() returns a point which specifies the same position in the page's coordinate system.
... given a point specified in a particular dom node's coordinate system, the window method convertpointfromnodetopage() returns a point which specifies the same position in the page's coordinate system.
... given a point specified in a particular dom node's coordinate system, the window method convertpointfromnodetopage() returns a point which specifies the same position in the page's coordinate system.
...= window.convertpointfromnodetopage(node, nodepoint); parameters node the node in whose coordinate system the point specified by nodepoint is described.
Window.crypto - Web APIs
Web › API › Window › crypto
the read-only window.crypto property returns the crypto object associated to the global object.
... the read-only window.crypto property returns the crypto object associated to the global object.
...allows web pages access to certain cryptographic related services.
...secure contexts: the getrandomvalues() method.
Window.external - Web APIs
Web › API › Window › external
the external property of the window api returns an instance of the external interface, which was intended to contain functions related to adding external search providers to the browser.
... the external property of the window api returns an instance of the external interface, which was intended to contain functions related to adding external search providers to the browser.
... the external property of the window api returns an instance of the external interface, which was intended to contain functions related to adding external search providers to the browser.
... the external property of the window api returns an instance of the external interface, which was intended to contain functions related to adding external search providers to the browser.
Window: popstate event - Web APIs
instead.
...opstate event on page load, but firefox doesn't.
...ry will be referred to as current-entry.
... complete—and the document is not already visible, it's made visible and the pageshow event is fired at the document with the pagetransitionevent's persisted attribute set to true.
Window.prompt() - Web APIs
Web › API › Window › prompt
github.com/mdn/browser-compat-data and send us a pull request.
...o version of internet explorer for windows 8.
... 3notes notes starting with opera 33, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.safari full support 1webview android full support 1notes full support 1notes notes starting with webview 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.chrome android full support 18notes full support 18notes notes starting with chrome 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.firefox android full...
... 18notes notes starting with chrome 46, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.firefox android full support 4opera android full support 10.1notes full support 10.1notes notes starting with opera 33, this method is blocked inside an <iframe> unless its sandbox attribute has the value allow-modals.safari ios full support 1samsung internet android full support 1.0notes full support 1.0notes notes starting with samsung internet 5.0, this method is blocked inside an <iframe>...
Window.sidebar - Web APIs
Web › API › Window › sidebar
returns a sidebar object which contains several methods for registering add-ons with the browser.
... returns a sidebar object which contains several methods for registering add-ons with the browser.
... returns a sidebar object which contains several methods for registering add-ons with the browser.
... returns a sidebar object which contains several methods for registering add-ons with the browser.
WindowOrWorkerGlobalScope.btoa() - Web APIs
the windoworworkerglobalscope.btoa() method creates a base64-encoded ascii string from a binary string (i.e., a string object in which each character in the string is treated as a byte of binary data).
... the windoworworkerglobalscope.btoa() method creates a base64-encoded ascii string from a binary string (i.e., a string object in which each character in the string is treated as a byte of binary data).
... the windoworworkerglobalscope.btoa() method creates a base64-encoded ascii string from a binary string (i.e., a string object in which each character in the string is treated as a byte of binary data).
...oded); console.log(original); // ☸☹☺☻☼☾☿ polyfill you can use a polifill from https://github.com/maxart2501/base64-js/blob/master/base64.js for browsers that don't support it.
Worker - Web APIs
Web › API › Worker
worker.onmessage an eventlistener called whenever a messageevent of type message bubbles through the worker — i.e.
... an eventlistener called whenever a messageevent of type message bubbles through the worker — i.e.
...type message bubbles through the worker — i.e.
...is raised.
XMLHttpRequest.readyState - Web APIs
unsent client has been created.
... called yet.
...s been called, and headers and status are available.
...ders and status are available.
XRInputSource - Web APIs
dnessread only a domstring that indicates which hand the device represented by this xrinputsource is being used in, if any.
...name of an input profile describing the preferred visual representation and behavior of this input source.
... the preferred visual representation and behavior of this input source.
...r of this input source.
XRInputSourceArray.entries() - Web APIs
the xrinputsourcearray interface's entries() method returns a javascript iterator which can then be used to iterate over the key/value pairs in the input source array.
...in hand controller */ handlemainhandinput(input); } else { /* handle other inputs */ } } } for each input in the llist, gamepad inputs are dispatched to a checkgamepad() with the input's gamepad object, taken from its gamepad property, as an input for other devices, we look for tracked-pointer devices in the player's main hand, dispatching those to a handlemainhandinput() method.
...ts gamepad property, as an input for other devices, we look for tracked-pointer devices in the player's main hand, dispatching those to a handlemainhandinput() method.
...ifications specification status comment webxr device apithe definition of 'xrinputsourcearray' in that specification.1 working draft xrinputsourcearray interface [1] see iterator-like methods in information contained in a webidl file for information on how an iterable declaration in an interface definition causes entries(), foreach(), keys(), and values() methods to be exposed from objects that implement the interface.
XRInputSourceArray.forEach() - Web APIs
the xrinputsourcearray method foreach() executes the specified callback once for each input source in the array, starting at index 0 and progressing until the end of the list.
...troller */ handlemainhandinput(input); } else { /* handle other inputs */ } } }); for each input in the llist, the callback dispatches gamepad inputs to a checkgamepad() with the input's gamepad object, taken from its gamepad property, as an input for other devices, we look for tracked-pointer devices in the player's main hand, dispatching those to a handlemainhandinput() method.
...ts gamepad property, as an input for other devices, we look for tracked-pointer devices in the player's main hand, dispatching those to a handlemainhandinput() method.
...ifications specification status comment webxr device apithe definition of 'xrinputsourcearray' in that specification.1 working draft xrinputsourcearray interface [1] see iterator-like methods in information contained in a webidl file for information on how an iterable declaration in an interface definition causes entries(), foreach(), keys(), and values() methods to be exposed from objects that implement the interface.
XRInputSourceEvent - Web APIs
ceevent object whose properties match those provided in the eventinitdict dictionary provided.
...eeded information about the event frame during which the event occurred.
...t occurred.
... have been rendered in the past rather than being a current frame.
XRInputSourceEventInit.frame - Web APIs
the xrinputsourceeventinit dictionary's property frame specifies an xrframe providing information about the timestamp at which the new input source event took place, as well as access to the xrframe method getpose() which can be used to map the coordinates of any xrreferencespace to the space in which the event took place.
...ed to create xrinputsourceeventinit objects yourself.
...he event took place, and providing a getpose() method which can be used to map reference spaces to the world reference space.
...se() method which can be used to map reference spaces to the world reference space.
XRReferenceSpace.getOffsetReferenceSpace() - Web APIs
the xrreferencespace interface's getoffsetreferencespace() method returns a new reference space object which describes the relative difference in position between the object on which the method is called and a given point in 3d space.
...n of the object on which you call getoffsetreferencespace().
...idtransform specifying the offset to the origin of the new reference space.
...ce and then the result is used as the position and orientation of the newly created xrreferencespace.
XRSystem: isSessionSupported() - Web APIs
the xrsystem method issessionsupported() returns a promise which resolves to true if the specified webxr session mode is supported by the user's webxr device.
...exception whose name is one of the following strings.
...re policy.
...e if an immersive-vr session is supported.
XRSystem: requestSession() - Web APIs
the xrsystem interface's requestsession() method returns a promise which resolves to an xrsession object through which you can manage the requested type of webxr session.
... xr.requestsession(sessionmode, sessioninit) parameters sessionmode a domstring whose value is one of those included in the xrsessionmode enum.
... and should be avalable on any user agent offering webxr api support.
...ollowing example shows how to use both issessionsupported() and requestsession().
XRSystem - Web APIs
Web › API › XRSystem
the webxr device api interface xrsystem provides methods which let you get access to an xrsession object representing a webxr session.
... the webxr device api interface xrsystem provides methods which let you get access to an xrsession object representing a webxr session.
...api interface xrsystem provides methods which let you get access to an xrsession object representing a webxr session.
...enting a webxr session.
XRWebGLLayer - Web APIs
using a particular webglrenderingcontext or webgl2renderingcontext as the destination context.
...uitable for passing into the bindframebuffer() method.
...turns a new xrviewport instance representing the position, width, and height to which the webgl context's viewport must be set to contain drawing to the area of the framebuffer designated for the specified view's contents.
... state and is then bound as the current rendering webgl framebuffer by calling the webgl bindframebuffer() function.
XSLTProcessor - Web APIs
an xsltprocessor applies an xslt stylesheet transformation to an xml document to produce a new xml document as output.
... an xsltprocessor applies an xslt stylesheet transformation to an xml document to produce a new xml document as output.
...rce by applying the stylesheet imported using the xsltprocessor.importstylesheet() function.
...he xsltprocessor.importstylesheet() function.
Cognitive accessibility - Accessibility
make it possible to predict what each section contains.
... navigation through page content sections, and provide a mechanism to aid comprehension.
...viation has no expanded form, or is an abbreviation for a word that is not in the document's main language (such as latin), explain its meaning.
...y appear.
Box alignment in grid layout - CSS: Cascading Style Sheets
the box alignment specification details how alignment works in various layout methods.
... the box alignment specification details how alignment works in various layout methods.
...s extra space in the grid container after laying out the fixed width tracks on the inline (main) axis.
...grid container.
Box alignment in Multi-column Layout - CSS: Cascading Style Sheets
the box alignment specification details how alignment works in various layout methods; on this page we explore how box alignment works in the context of multi-column layout.
...he box alignment specification details how alignment works in various layout methods; on this page we explore how box alignment works in the context of multi-column layout.
...f justify-content other than normal or stretch will cause column boxes to display at the column-width specified on the multicol container, and the remaining space distributed according to the value of justify-content.
...h will cause column boxes to display at the column-width specified on the multicol container, and the remaining space distributed according to the value of justify-content.
Backwards Compatibility of Flexbox - CSS: Cascading Style Sheets
flexbox is very well supported across modern browsers, however there are a few issues that you might run into.
...th all css specifications the flexbox specification went through a large number of changes before it became the candidate recommendation that we have today.
...ny versions you wish to go back with browser support.
...or information about when prefixes were removed in browsers to make your decision.
Basic concepts of flexbox - CSS: Cascading Style Sheets
the flexible box module, usually referred to as flexbox, was designed as a one-dimensional layout model, and as a method that could offer space distribution between items in an interface and powerful alignment capabilities.
... is important when we start to look at aligning and justifying flex items; flexbox features properties that align and justify content along one axis or the other.
...en the start edge of my main axis would be on the right and the end edge on the left.
...we come to look at aligning items.
Box alignment in CSS Grid Layout - CSS: Cascading Style Sheets
css grid layout implements the specification box alignment level 3 which is the same standard flexbox uses for aligning items in its flex container.
... css grid layout implements the specification box alignment level 3 which is the same standard flexbox uses for aligning items in its flex container.
...ich is the same standard flexbox uses for aligning items in its flex container.
...etails how alignment should work in all the different layout methods.
Realizing common layouts using CSS Grid Layout - CSS: Cascading Style Sheets
few different layouts, which demonstrate some of the different techniques you can use when designing with grid layout.
...the advertisements (ad).
...ws, with no danger of them rising up into the row above if it is left empty.
... add a class to certain ones as they are rendered into the html.
Event reference
the browser estimates it can play the media up to its end without stopping for content buffering.
...dragging an element or text selection.
...current version.
... sent when a new paint occurs on any document in the browser <iframe>.
DOM onevent handlers - Developer guides
onclick="handleclick()">, or by setting the corresponding property from javascript: document.queryselector("button").onclick = function(event) { … }.
... onevent which can be used to register a handler for an event directly within the html code.
...using .onclick log('<br>changing onclick handler using <strong> onclick property </strong> '); el.onclick = anchoronclick; log(`changed the property to: <code> ${el.onclick.tostring()} </code>`); log(`but the html attribute is unchanged: <code> ${el.getattribute("onclick")} </code><br>`); //changing handler using .setattribute log('<hr/><br> changing onclick handler using <strong> setattribute method </strong> '); el.setattribute("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.
... is invoked tbd (non-capturing listener) terminology the term event handler may refer to: any function or object that is registered to be notified of events or more specifically, to the mechanism of registering event listeners via on… attributes in html or properties in web apis, such as <button onclick="alert(this)"> or window.onload = function() { … }.
The HTML autocomplete attribute - HTML: Hypertext Markup Language
d.
... breaking the name into pieces.
...t card.
...ment instrument or credit card.
HTML attribute: multiple - HTML: Hypertext Markup Language
hitespace is removed from each address in the list.
..." accept=".jpg, .jpeg, .png, .svg, .gif" multiple> </p> <p> <label for="text">pick a text file to upload: </label> <input type="file" id="text" name="text" accept=".txt"> </p> <p> <input type="submit" value="submit"> </p> </form> note the difference in appearance between the example with multiple set and the other file input without.
...ontrol for selecting zero or more options from the list of options.
...on how to provide multiple values, such as "separate email addresses with a comma." setting size="1" on a multiple select can make it appear as a single select in some browsers, but then it doesn't expand on focus, harming usability.
<button>: The Button element - HTML: Hypertext Markup Language
Web › HTML › Element › button
submitted.
...t> elements with their type attributes set to file.
...pecifies the http method used to submit the form.
...uded in the body of the http request when sent to the server.
<input type="file"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › file
a domstring representing the path to the selected file.
...eaning "any image file".
...pt png or jpeg files.
...t a slightly more advanced file chooser that takes advantage of the file information available in the htmlinputelement.files property, as well as showing off a few clever tricks.
Evolution of HTTP - HTTP
ublic project.
... age: 9578461 cache-control: public, max-age=315360000 connection: keep-alive content-length: 3077 content-type: image/png date: thu, 31 mar 2016 13:34:46 gmt last-modified: wed, 21 oct 2015 18:27:50 gmt server: apache (image content of 3077 bytes) http/1.1 was first published as rfc 2068 in january 1997.
...arddav to handle address book entries and caldav to deal with calendars.
...endars.
CSP: style-src - HTTP
ntent source.
... sites needing to allow these content types can specify them using the data attribute.
... content-security-policy: style-src 'sha256-a330698cbe9dc4ef1fb12e2ee9fc06d5d14300262fa4dc5878103ab7347e158f' when generating the hash, don't include the <style> tags and note that capitalization and whitespace matter, including leading or trailing whitespace.
...e hash, don't include the <style> tags and note that capitalization and whitespace matter, including leading or trailing whitespace.
If-Match - HTTP
Web › HTTP › Headers › If-Match
the if-match http request header makes the request conditional.
... the if-match http request header makes the request conditional.
...d etags.
...ed etag has the w/ prefix indicating a weak entity tag, it will never match under this comparison algorithm.
301 Moved Permanently - HTTP
Web › HTTP › Status › 301
he hypertext transfer protocol (http) 301 moved permanently redirect status response code indicates that the resource requested has been definitively moved to the url given by the location headers.
...ate their links to the resource (in 'seo-speak', it is said that the 'link-juice' is sent to the new url).
...said that the 'link-juice' is sent to the new url).
...e' is sent to the new url).
501 Not Implemented - HTTP
Web › HTTP › Status › 501
the hypertext transfer protocol (http) 501 not implemented server error response code means that the server does not support the functionality required to fulfill the request.
...r error response code means that the server does not support the functionality required to fulfill the request.
... a retry-after header, telling the requester when to check back to see if the functionality is supported by then.
...unctionality is supported by then.
TypeError: "x" is not a function - JavaScript
the javascript exception "is not a function" occurs when there was an attempt to call a value from a function, but the value is not actually a function.
... function.
...expects you to provide a function, but that didn't happen.
...(), 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 objects only.
TypeError: 'x' is not iterable - JavaScript
rresponding to the generator is callable, but not iterable.
...ot iterable.
...r the values yielded during the execution of the generator.
...2)) console.log(x); iterating over a custom iterable custom iterables can be created by implementing the symbol.iterator method.
Array.prototype.concat() - JavaScript
the concat() method is used to merge two or more arrays.
... the concat() method is used to merge two or more arrays.
...ull request.
...n below for more details.
Array.prototype.forEach() - JavaScript
the foreach() method executes a provided function once for each array element.
...for each array element; unlike map() or reduce() it always returns the value undefined and is not chainable.
... called.
...erating.
Array.prototype.includes() - JavaScript
the includes() method determines whether an array includes a certain value among its entries, returning true or false as appropriate.
...o begin searching for valuetofind.
...or valuetofind.
... ['a', 'b', 'c'] arr.includes('a', -100) // true arr.includes('b', -100) // true arr.includes('c', -100) // true arr.includes('a', -2) // false includes() used as a generic method includes() method is intentionally generic.
Array.prototype.pop() - JavaScript
the pop() method removes the last element from an array and returns that element.
... the pop() method removes the last element from an array and returns that element.
...his method changes the length of the array.
... if you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
Array.prototype.slice() - JavaScript
the slice() method returns a shallow copy of a portion of an array into a new array object selected from start to end (end not included) where start and end represent the index of items in that array.
...r = ' + newcar[0].color) this script writes: mycar = [{color: 'red', wheels: 4, engine: {cylinders: 4, size: 2.2}}, 2, 'cherry condition', 'purchased 1997'] newcar = [{color: 'red', wheels: 4, engine: {cylinders: 4, size: 2.2}}, 2] mycar[0].color = red newcar[0].color = red the new color of my honda is purple mycar[0].color = purple newcar[0].color = purple array-like objects slice method can also be called to convert array-like objects/collections to a new array.
... 4, size: 2.2}}, 2, 'cherry condition', 'purchased 1997'] newcar = [{color: 'red', wheels: 4, engine: {cylinders: 4, size: 2.2}}, 2] mycar[0].color = red newcar[0].color = red the new color of my honda is purple mycar[0].color = purple newcar[0].color = purple array-like objects slice method can also be called to convert array-like objects/collections to a new array.
...ple newcar[0].color = purple array-like objects slice method can also be called to convert array-like objects/collections to a new array.
Array.prototype.some() - JavaScript
the some() method tests whether at least one element in the array passes the test implemented by the provided function.
...current element being processed in the array.
...me() is set before the first invocation of callback.
...turn element > 10; } [2, 5, 8, 1, 4].some(isbiggerthan10); // false [12, 5, 8, 1, 4].some(isbiggerthan10); // true testing array elements using arrow functions arrow functions provide a shorter syntax for the same test.
Array.prototype.toLocaleString() - JavaScript
the tolocalestring() method returns a string representing the elements of the array.
... the tolocalestring() method returns a string representing the elements of the array.
...xtelement.tolocalestring(locales, options); // e.
...e k by 1.
Array.prototype.unshift() - JavaScript
the unshift() method adds one or more elements to the beginning of an array and returns the new length of the array.
... the unshift() method adds one or more elements to the beginning of an array and returns the new length of the array.
... the unshift() method adds one or more elements to the beginning of an array and returns the new length of the array.
...an array and returns the new length of the array.
Atomics - JavaScript
the atomics object provides atomic operations as static methods.
... the atomics object provides atomic operations as static methods.
...ds of atomics are static (as is the case with the math object, for example).
...c operations make sure that predictable values are written and read, that operations are finished before the next operation starts and that operations are not interrupted.
BigInt.prototype.toString() - JavaScript
the tostring() method returns a string representing the specified bigint object.
...ntobj.tostring([radix]) parameters radixoptional optional.
...he base to use for representing numeric values.
...cified bigint object.
Date.prototype.getTime() - JavaScript
the gettime() method returns the number of milliseconds* since the unix epoch.
... the gettime() method returns the number of milliseconds* since the unix epoch.
...ns the number of milliseconds* since the unix epoch.
....
Date.now() - JavaScript
the static date.now() method returns the number of milliseconds elapsed since january 1, 1970 00:00:00 utc.
... the static date.now() method returns the number of milliseconds elapsed since january 1, 1970 00:00:00 utc.
... the static date.now() method returns the number of milliseconds elapsed since january 1, 1970 00:00:00 utc.
... the static date.now() method returns the number of milliseconds elapsed since january 1, 1970 00:00:00 utc.
Date.prototype.toISOString() - JavaScript
the toisostring() method returns a string in simplified extended iso format (iso 8601), which is always 24 or 27 characters long (yyyy-mm-ddthh:mm:ss.sssz or ±yyyyyy-mm-ddthh:mm:ss.sssz, respectively).
...d by the suffix "z".
...you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
... examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
Date.prototype.toString() - JavaScript
the tostring() method returns a string representing the specified date object.
...presenting the specified date object.
... name (there is no standard for names or abbreviations of timezones), e.g.
...t of the string returned by date.prototype.tostring was implementation dependent.
Error - JavaScript
cing an invalid reference.
...-standard mozilla property for the path to the file that raised this error.
...rty for the line number in the file that raised this error.
...n error types deriving from error to be able to throw new myerror() and use instanceof myerror to check the kind of error in the exception handler.
Intl.DateTimeFormat - JavaScript
is a constructor for objects that enable language-sensitive date and time formatting.
...teractive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...ct.
...ptions() returns a new object with properties reflecting the locale and formatting options computed during initialization of the object.
JSON.stringify() - JavaScript
the json.stringify() method converts a javascript object or value to a json string, optionally replacing values if a replacer function is specified or optionally including only the specified properties if a replacer array is specified.
...pace is used.
...e first ten characters of it).
...standard pretty-print appearance: json.stringify({ uno: 1, dos: 2 }, null, '\t'); // returns the string: // '{ // "uno": 1, // "dos": 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.
Map - JavaScript
g a property does not interact with the map data structure.
...address: "123 n 1st ave"} contacts.delete('raymond') // false contacts.delete('jessie') // true console.log(contacts.size) // 1 constructor map() creates a new map object.
...ot exist.
...ey, value] of mymap) { console.log(key + ' = ' + value) } // 0 = zero // 1 = one for (let key of mymap.keys()) { console.log(key) } // 0 // 1 for (let value of mymap.values()) { console.log(value) } // zero // one for (let [key, value] of mymap.entries()) { console.log(key + ' = ' + value) } // 0 = zero // 1 = one iterating map with foreach() maps can be iterated using the foreach() method: mymap.foreach(function(value, key) { console.log(key + ' = ' + value) }) // 0 = zero // 1 = one relation with array objects let kvarray = [['key1', 'value1'], ['key2', 'value2']] // use the regular map constructor to transform a 2d key-value array into a map let mymap = new map(kvarray) mymap.get('key1') // returns "value1" // use array.from() to transform a map into a 2d key-value arra...
Math.trunc() - JavaScript
g any fractional digits.
...ax math.trunc(x) parameters x a number.
...f the given number.
...s: math.floor(), math.ceil() and math.round(), the way math.trunc() works is very simple.
Math - JavaScript
math is a built-in object that has properties and methods for mathematical constants and functions.
... math is a built-in object that has properties and methods for mathematical constants and functions.
...n object that has properties and methods for mathematical constants and functions.
...h.ln10 natural logarithm of 10; approximately 2.303.
Number.prototype.toString() - JavaScript
the tostring() method returns a string representing the specified number object.
...yntax numobj.tostring([radix]) parameters radix optional.
... base to use for representing numeric values.
...fied number object.
Object.fromEntries() - JavaScript
the object.fromentries() method transforms a list of key-value pairs into an object.
... to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
... iterable such as array or map or other objects implementing the iterable protocol.
..., ['baz', 42] ]); const obj = object.fromentries(map); console.log(obj); // { foo: "bar", baz: 42 } converting an array to an object with object.fromentries, you can convert from array to object: const arr = [ ['0', 'a'], ['1', 'b'], ['2', 'c'] ]; const obj = object.fromentries(arr); console.log(obj); // { 0: "a", 1: "b", 2: "c" } object transformations with object.fromentries, its reverse method object.entries(), and array manipulation methods, you are able to transform objects like this: const object1 = { a: 1, b: 2, c: 3 }; const object2 = object.fromentries( object.entries(object1) .map(([ key, val ]) => [ key, val * 2 ]) ); console.log(object2); // { a: 2, b: 4, c: 6 } please do not add polyfills on mdn pages.
handler.apply() - JavaScript
the handler.apply() method is a trap for a function call.
...on call.
...eractive-examples and send us a pull request.
...= new proxy(target, { apply: function(target, thisarg, argumentslist) { } }); parameters the following parameters are passed to the apply() method.
handler.defineProperty() - JavaScript
the handler.defineproperty() method is a trap for object.defineproperty().
...source for this interactive example is stored in a github repository.
...defineproperty: function(target, property, descriptor) { } }); parameters the following parameters are passed to the defineproperty() method.
...hod.
handler.deleteProperty() - JavaScript
the handler.deleteproperty() method is a trap for the delete operator.
...tor.
...tps://github.com/mdn/interactive-examples and send us a pull request.
..., property) { } }); parameters the following parameters are passed to the deleteproperty() method.
handler.get() - JavaScript
the handler.get() method is a trap for getting a property value.
... property value.
...end us a pull request.
... get: function(target, property, receiver) { } }); parameters the following parameters are passed to the get() method.
handler.getOwnPropertyDescriptor() - JavaScript
the handler.getownpropertydescriptor() method is a trap for object.getownpropertydescriptor().
...ce for this interactive example is stored in a github repository.
...s and send us a pull request.
... function(target, prop) { } }); parameters the following parameters are passed to the getownpropertydescriptor() method.
handler.has() - JavaScript
the handler.has() method is a trap for the in operator.
...hod is a trap for the in operator.
...xamples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...mples and send us a pull request.
handler.isExtensible() - JavaScript
the handler.isextensible() method is a trap for object.isextensible().
...ject.isextensible().
...u'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...s://github.com/mdn/interactive-examples and send us a pull request.
handler.ownKeys() - JavaScript
the handler.ownkeys() method is a trap for reflect.ownkeys().
... a trap for reflect.ownkeys().
...pository.
...ease clone https://github.com/mdn/interactive-examples and send us a pull request.
handler.preventExtensions() - JavaScript
the handler.preventextensions() method is a trap for object.preventextensions().
...ensions().
...tribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...nteractive-examples and send us a pull request.
Reflect.isExtensible() - JavaScript
the static reflect.isextensible() method determines if an object is extensible (whether it can have new properties added to it).
...teractive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
... reflect.isextensible(target) parameters target the target object which to check if it is extensible.
...flect.preventextensions(empty) reflect.isextensible(empty) // === false // sealed objects are by definition non-extensible.
RegExp.prototype.test() - JavaScript
the test() method executes a search for a match between a regular expression and a specified string.
...amples and send us a pull request.
...ssion.
...gular expression and the string str.
Set - JavaScript
n and undefined can also be stored in a set.
... removes all elements from the set object.
...lement is present with the given value in the set object or not.
...nt in the set object in insertion order.
String.prototype.endsWith() - JavaScript
the endswith() method determines whether a string ends with the characters of a specified string, returning true or false as appropriate.
...//github.com/mdn/interactive-examples and send us a pull request.
...dswith(searchstring[, length]) parameters searchstring the characters to be searched for at the end of str.
... searchstring the characters to be searched for at the end of str.
String.fromCharCode() - JavaScript
the static string.fromcharcode() method returns a string created from the specified sequence of utf-16 code units.
...ctive-examples and send us a pull request.
...numn]]) parameters num1, ..., numn a sequence of numbers that are utf-16 code units.
...ode units.
String.prototype.startsWith() - JavaScript
the startswith() method determines whether a string begins with the characters of a specified string, returning true or false as appropriate.
... send us a pull request.
...ers searchstring the characters to be searched for at the start of this string.
...searched for at the start of this string.
String.prototype.sub() - JavaScript
the sub() method creates a <sub> html element that causes a string to be displayed as subscript.
... the sub() method creates a <sub> html element that causes a string to be displayed as subscript.
... the sub() method creates a <sub> html element that causes a string to be displayed as subscript.
... the sub() method creates a <sub> html element that causes a string to be displayed as subscript.
String.prototype.sup() - JavaScript
the sup() method creates a <sup> html element that causes a string to be displayed as superscript.
... the sup() method creates a <sup> html element that causes a string to be displayed as superscript.
... the sup() method creates a <sup> html element that causes a string to be displayed as superscript.
... the sup() method creates a <sup> html element that causes a string to be displayed as superscript.
String.prototype.toString() - JavaScript
the tostring() method returns a string representing the specified object.
... the tostring() method returns a string representing the specified object.
... the tostring() method returns a string representing the specified object.
...a string representing the specified object.
String.prototype.toUpperCase() - JavaScript
the touppercase() method returns the calling string value converted to uppercase (the value will be converted to a string if it isn't one).
...to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...s://github.com/mdn/interactive-examples and send us a pull request.
...r undefined, for example, string.prototype.touppercase.call(undefined).
String.prototype.trimEnd() - JavaScript
the trimend() method removes whitespace from the end of a string.
... the trimend() method removes whitespace from the end of a string.
...or this interactive example is stored in a github repository.
....trimend(); str.trimright(); return value a new string representing the calling string stripped of whitespace from its (right) end.
String.prototype.trimStart() - JavaScript
the trimstart() method removes whitespace from the beginning of a string.
... the trimstart() method removes whitespace from the beginning of a string.
...eractive example is stored in a github repository.
... str.trimleft(); return value a new string representing the calling string stripped of whitespace from its beginning (left end).
Symbol.prototype[@@toPrimitive] - JavaScript
the [@@toprimitive]() method converts a symbol object to a primitive value.
... the [@@toprimitive]() method converts a symbol object to a primitive value.
... the [@@toprimitive]() method converts a symbol object to a primitive value.
...tax symbol()[symbol.toprimitive](hint) return value the primitive value of the specified symbol object.
Symbol.prototype.valueOf() - JavaScript
the valueof() method returns the primitive value of a symbol object.
... the valueof() method returns the primitive value of a symbol object.
... the valueof() method returns the primitive value of a symbol object.
... the valueof() method returns the primitive value of a symbol object.
TypedArray.prototype.every() - JavaScript
the every() method tests whether all elements in the typed array pass the test implemented by the provided function.
... the every() method tests whether all elements in the typed array pass the test implemented by the provided function.
...ntvalue the current element being processed in the typed array.
...ting callback.
TypedArray.prototype.reduce() - JavaScript
the reduce() method applies a function against an accumulator and each value of the typed array (from left-to-right) has to reduce it to a single value.
... the reduce() method applies a function against an accumulator and each value of the typed array (from left-to-right) has to reduce it to a single value.
... (see below).
...rst value in the typed array and currentvalue will be equal to the second.
TypedArray.prototype.slice() - JavaScript
the slice() method returns a shallow copy of a portion of a typed array into a new typed array object.
... the slice() method returns a shallow copy of a portion of a typed array into a new typed array object.
...ourth element (elements indexed 1, 2, and 3).
...e done on an "as needed" basis.
TypedArray.prototype.some() - JavaScript
the some() method tests whether some element in the typed array passes the test implemented by the provided function.
... the some() method tests whether some element in the typed array passes the test implemented by the provided function.
...urrentvalue the current element being processed in the typed array.
...edarray, polyfilling must be done on an "as needed" basis.
WeakMap - JavaScript
he values can be arbitrary values.
...event garbage collection in case there would be no other reference to the key object.
...valuable only if the key has not been garbage collected.
....get(o2); // "azerty" wm2.get(o2); // undefined, because there is no key for o2 on wm2 wm2.get(o3); // undefined, because that is the set value wm1.has(o2); // true wm2.has(o2); // false wm2.has(o3); // true (even if the value itself is 'undefined') wm3.set(o1, 37); wm3.get(o1); // 37 wm1.has(o1); // true wm1.delete(o1); wm1.has(o1); // false implementing a weakmap-like class with a .clear() method class clearableweakmap { constructor(init) { this._wm = new weakmap(init); } clear() { this._wm = new weakmap(); } delete(k) { return this._wm.delete(k); } get(k) { return this._wm.get(k); } has(k) { return this._wm.has(k); } set(k, v) { this._wm.set(k, v); return this; } } specifications specification ecmascript (ecma-...
WebAssembly.instantiate() - JavaScript
r arraybuffer, and performs both compilation and instantiation in one step.
...assembly.instance.
...ytes => webassembly.instantiate(bytes, importobject) ).then(result => result.instance.exports.exported_func() ); note: you can also find this example at index.html on github (view it live also).
...sage().
function* - JavaScript
l for asynchronous programming as they mitigate -- if not entirely eliminate -- the problems with callbacks, such as callback hell and inversion of control.
...ed with async functions.
... the generator function's body is executed until the first yield expression, which specifies the value to be returned from the iterator or, with yield*, delegates to another generator function.
...console.log(gen.next()); // { value: undefined, done: true } generator as an object property const someobj = { *generator () { yield 'a'; yield 'b'; } } const gen = someobj.generator() console.log(gen.next()); // { value: 'a', done: false } console.log(gen.next()); // { value: 'b', done: false } console.log(gen.next()); // { value: undefined, done: true } generator as an object method class foo { *generator () { yield 1; yield 2; yield 3; } } const f = new foo (); const gen = f.generator(); console.log(gen.next()); // { value: 1, done: false } console.log(gen.next()); // { value: 2, done: false } console.log(gen.next()); // { value: 3, done: false } console.log(gen.next()); // { value: undefined, done: true } generator as a computed property class foo { ...
JavaScript typed arrays - JavaScript
ode to be able to quickly and easily manipulate raw binary data.
...ew is a low-level interface that provides a getter/setter api to read and write arbitrary data to the buffer.
...our platform.
...the getter/setter methods.
Autoplay guide for media and Web Audio APIs - Web media technologies
g delivered to the handler.
...that relies upon the video having been started up.
... optimize the timing of that taking place.
...indicates that playback failed due to a permission issue, such as autoplay being denied.
Namespaces crash course - SVG: Scalable Vector Graphics
p, but also scripting.
...vg, read on.
...tion was created before the original namespaces in xml recommendation was released; therefore, dom1 isn't namespace aware.
...entsbytagnamens (also added to element) getnameditem getnameditemns hasattribute hasattributens removeattribute removeattributens removenameditem removenameditemns setattribute setattributens setattributenode setattributenodens setnameditem setnameditemns the first parameter for all the dom2 namespace aware methods must be the namespace name (also known as the namespace uri) of the element or parameter in question.
SVG 2 support in Mozilla - SVG: Scalable Vector Graphics
point or dompointreadonly instead of svgpoint implementation status unknown members of svgstylable and svglangspace available in svgelement implementation status unknown svggraphicselement instead of svglocatable and svgtransformable implementation status unknown svggeometryelement with svggeometryelement.ispointinfill() and svggeometryelement.ispointinstroke() methods partially implemented (bug 1239100).
...lementation status unknown members of svgstylable and svglangspace available in svgelement implementation status unknown svggraphicselement instead of svglocatable and svgtransformable implementation status unknown svggeometryelement with svggeometryelement.ispointinfill() and svggeometryelement.ispointinstroke() methods partially implemented (bug 1239100).
... svggraphicselement.gettransformtoelement() removed not removed yet svggraphicselement.getctm() on the outermost element implementation status unknown animval attribute alias of baseval implementation status unknown dataset attribute for svgelement implementation status unknown moved pathlength attribute and gettotallength() and getpointatlength() methods from svgpathelement to svggeometryelement implemented (bug 1239100) document structure change notes svgsvgelement.suspendredraw(), svgsvgelement.unsuspendredraw(), and svgsvgelement.unsuspendredrawall() deprecated turned into no-ops (bug 734079) externalresourcesrequired attribute removed implementation status unknown auto value for wid...
...plementation status unknown paths change notes b and b path commands implementation status unknown z and z path commands to add path coordinate data to previous command implementation status unknown not render <path>, <polygon> and <polyline> with no data implementation status unknown svgpathseg*, svganimatedpathdata and related methods removed from svgpathelement implementation status unknown d attribute as css property implementation status unknown basic shapes change notes pathlength attribute for all basic shapes implementation status unknown svganimatedpoints.animatedpoints as alias of svganimatedpoints.points implementation status unknown auto behavio...
Index - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Index
mmary!
...orm and then add it into an existing document.
... <xsl:otherwise> element is used to define the action that should be taken when none of the <xsl:when> conditions apply.
...the action that should be taken when none of the <xsl:when> conditions apply.
JavaScript/XSLT Bindings - XSLT: Extensible Stylesheet Language Transformations
javascript/xslt bindings javascript can run xslt transformations through the xsltprocessor object.
... produce the final result.
...m an html document to an xml document.
... in the xml document as the first parameter that will be transformed.
port - Archive of obsolete content
ing api enabling conversations between a content script and the main add-on code.
...on handlemymessage(mymessagepayload) { // handle the message }); in the main add-on code, to listen for "mymessage" sent from a a content script: // main.js worker.port.on("mymessage", function handlemymessage(mymessagepayload) { // handle the message }); once() often you'll want to receive a message just once, then stop listening.
...ir payloads are automatically deserialized, so you don't need to worry about serialization.
Modules - Archive of obsolete content
ct, which has the global object of the loading script as its prototype.
...s it allows the script being loaded to access the built-in constructors of the loading script, which are defined on its global object.
...uilt-in constructors of the loading script, which are defined on its global object.
self - Archive of obsolete content
m the private-browsing key in the add-on's package.json file.
... package.json file.
...ied or parsed in some way, such as json, xml, plain text, or perhaps an html template.
tabs - Archive of obsolete content
callback function that will be registered for the 'activate' event.
...ed.
...when the active tab is made inactive.
core/promise - Archive of obsolete content
promise, both figuratively and by name, to eventually resolve.
...exception (rejection): foo().then(function success(value) { // ...
... defer(); promise.then(deferred.resolve, deferred.reject); delay(ms, 'timeout').then(deferred.reject); return deferred.promise; } var tweets = readasync(url); timeout(tweets, 20).then(function(data) { ui.display(data); }, function() { alert('network is being too slow, try again later'); }); alternative promise apis there may be cases where you will want to provide more than just then method on your promises.
console - Archive of obsolete content
een installed in firefox, then the messages appear in the browser console.
...fox, then the messages appear in the browser console.
...iscarded.
Logging - Archive of obsolete content
to follow this tutorial you'll need to have learned the basics of jpm.
... to follow this tutorial you'll need to have learned the basics of jpm.
... object is useful for debugging javascript.
Finding window handles - Archive of obsolete content
ell, queryinterface it into nsibasewindow, call getmainwidget on result, and then call getnativedata(ns_native_window).
....
...sibasewindow *window) { nscomptr< nsiwidget > widget; window->getmainwidget(getter_addrefs(widget)); if (widget) return (hwnd) widget->getnativedata(ns_native_window); } yet another way to find a window handle (parent window handle) this method is for people who want to get the top level window hwnd from the window object in javascript.
Running applications - Archive of obsolete content
this page describes how to run other programs from your chrome javascript code, using mozilla xpcom interfaces.
...chrome javascript code, using mozilla xpcom interfaces.
...ipt code, using mozilla xpcom interfaces.
Creating custom Firefox extensions with the Mozilla build system - Archive of obsolete content
stick to javascript.
... the public/ directory contains any interfaces that need to be accessed by other modules.
...com component in javascript.
Extension Etiquette - Archive of obsolete content
heir download weight.
...r;1" it is important that the prefix that you use be unlikely to conflict with other code, and that it be indicative of the name of your add-on.
...(true) where applicable many common libraries which create global variables provide a method called noconflict, or similar, which revert any global variables they've declared, and return the object itself.
Chapter 2: Technologies used in developing extensions - Archive of obsolete content
emely flexible and giving it qualities that in some senses could be considered similar to lisp.
... to lisp.
...totype = { property1 : true, property2 : 'string', method : function() { alert('hello, world!'); } }; var obj = new myclass(); obj.method(); dom: an api for manipulating xml documents the document object model (dom) is a technical standard promulgated by the w3c, and is an api for manipulating the contents of xml documents as objects.
Adding windows and dialogs - Archive of obsolete content
specify the window you want to use as a parent for the alert.
...ompts the user to choose an answer.
...rns a boolean value indicating the user's response.
Tabbed browser - Archive of obsolete content
le.com/")); newtabbrowser.addeventlistener("load", function () { newtabbrowser.contentdocument.body.innerhtml = "<div>hello world</div>"; }, true); (the event target in the onload handler will be a 'tab' xul element).
... // focus *this* browser window in case another one is currently focused tabbrowser.ownerdocument.defaultview.focus(); } } the function can be called like so: openandreuseonetabperattribute("myextension-myattribute", "http://developer.mozilla.org/").
...lly, use gbrowser.browsers.length to get the number of browsers and gbrowser.getbrowseratindex() to get a <browser/> element.
Using the Stylesheet Service - Archive of obsolete content
can apply styles to native anonymous elements and to css anonymous boxes.
...vice(components.interfaces.nsistylesheetservice); var ios = components.classes["@mozilla.org/network/io-service;1"] .getservice(components.interfaces.nsiioservice); var uri = ios.newuri("chrome://myext/content/myext.css", null, null); sss.loadandregistersheet(uri, sss.user_sheet); note: loadandregistersheet will load the stylesheet synchronously, so you should only call this method using local uris.
...twork/io-service;1"] .getservice(components.interfaces.nsiioservice); var uri = ios.newuri("chrome://myext/content/myext.css", null, null); if(!sss.sheetregistered(uri, sss.user_sheet)) sss.loadandregistersheet(uri, sss.user_sheet); removing a previously registered stylesheet if you wish to remove a stylesheet that you previously registered, simply use the unregistersheet method.
Creating reusable content with CSS and XBL - Archive of obsolete content
ctural limitation concerns content.
...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.button.setattribute("disabled", "true") settimeout(this.cleardemo, 2000, this) ]]></body> </method> <method name="cleardemo"> <parameter name="me"/> <body><![cdata[ me.square.style.backgroundcolor = "trans...
...eft = "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() ]]></handler> </handlers> </binding> </bindings> make a new css file, bind6.css.
Index of archived content - Archive of obsolete content
macalias file.windowsshortcut install.adddirectory install.addfile installtrigger.installchrome installtrigger.startsoftwareupdate trigger scripts and install scripts windows install file object methods install object methods properties installversion object methods properties return codes winprofile object...
... install object methods properties installversion object methods properties return codes winprofile object methods winreg object methods winregvalue xpjs components proposal xre xtech 2005 presentations directions of the mozilla rdf engine exten...
... npn_destroystream npn_enumerate npn_evaluate npn_forceredraw npn_getauthenticationinfo npn_getintidentifier npn_getproperty npn_getstringidentifier npn_getstringidentifiers npn_geturl npn_geturlnotify npn_getvalue npn_getvalueforurl npn_hasmethod npn_hasproperty npn_identifierisstring npn_intfromidentifier npn_invalidaterect npn_invalidateregion npn_invoke npn_invokedefault npn_memalloc npn_memflush npn_memfree npn_pluginthreadasynccall npn_posturl npn_posturlnotify npn_rel...
Inner-browsing extending the browser navigation paradigm - Archive of obsolete content
ted navigational models in mind.
... to use iframes only for the communication channel and use the dom and javascript to bind the content with the document in the main working page.
...s completed loading.
Localizing an extension - Archive of obsolete content
ar highstring = stringsbundle.getstring('highstring') + " "; var volumestring = stringsbundle.getstring('volumestring') + " "; this code gets a reference to the string bundle element we added to stockwatcher2.xul by calling document.getelementbyid(), specifying the id "string-bundle".
...create localized versions of those property files in the chrome/locale/es-es directory as well.
...ons of those property files in the chrome/locale/es-es directory as well.
Monitoring WiFi access points - Archive of obsolete content
nitor); wifi_service.startwatching(listener); </script> </head> <body> <div id="d"><p></p></div> <div id="c"><p></p></div> </body> </html> the nsiwifilistener object the first thing the code above does is to prototype the listener object that will be receiving notifications of changes to the access point list.
...) method (lines 13 through 27) begins by enabling universalxpconnect privileges, then clearing out the div (d) that will receive the updated list of access points.
...e number of times the list has been refreshed.
Dehydra Object Reference - Archive of obsolete content
ction (e.g.
...ean flag the type was forward-declared and the full declaration has not been processed.
...or integer types, true if the type stores signed values .isunsigned boolean flag for integer types, true if the type stores unsigned values .bitfieldbits integer if the type represents a bitfield, the number of bits used by the bitfield .bitfieldof number type object if the type represents a bitfield, the base type of the bitfield.
Exception logging in JavaScript - Archive of obsolete content
javascript code is sometimes designed to throw exceptions to report a result condition back to the c++ caller.
...te in idl (see, for example, nsidomeventlistener) that throw exceptions always report those exceptions into the error console.
...eptions that are generated by xpconnect -- that is, those exceptions whose result codes are defined in nsixpconnect.idl -- are always logged into the error console.
Documentation for BiDi Mozilla - Archive of obsolete content
tto the page includes a element with the attribute dir=rtl, either explicitly (nsgenerichtmlelement::mapcommonattributesinto), or as a consequence of a style rule (mapdeclarationtextinto in nscssstylerule.cpp) all these cases use nsdocument::enablebidi to set the flag mbidienabled.
...ility.
...ic swapping reordering shaping numeric translation conversion to/from presentation forms nsbidipresutils layout/base/nsbidipresutils.cpp utilities for the layout engine including: resolve frames by bidi level split framesreorder frames format bidi text support for deletion and insertion of frames by editor nsbiditextframe layout/generic/nsbidiframes.cpp subclass of nsframe with additional method setoffsets, to adjust mcontentoffset and mcontentlength during bidi processing nsdirectionalframe layout/generic/nsbidiframes.cpp subclass of nsframethis is a special frame which represents a bidi control.
Layout System Overview - Archive of obsolete content
ntext to determine what kind of frame to create (block, inline, table, etc.).
...he frame manager, an instance of which the presshell owns.
... controls should be removed eventually.
Introducing the Audio API extension - Archive of obsolete content
var samples = new float32array(22050); for (var i = 0; i < samples.length ; i++) { samples[i] = math.sin( i / 20 ); } output.mozwriteaudio(samples); } </script> </head> <body> <p>this demo plays a one second tone when you click the button below.</p> <button onclick="playtone();">play</button> </body> </html> the mozcurrentsampleoffset() method gives the audible position of the audio stream, meaning the position of the last heard sample.
...</p> <button onclick="playtone();">play</button> </body> </html> the mozcurrentsampleoffset() method gives the audible position of the audio stream, meaning the position of the last heard sample.
...020; // initial buffer is 20 ms var autolatency = true, started = new date().valueof(); ...
Enabling Experimental Jetpack Features - Archive of obsolete content
note: this page documents the jetpack prototype, which is no longer under active development.
...e first sdk release for what we're up to next!
...e functionality that foo yields to the script.
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.
... 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.
...he functionality that foo yields to the script.
Selection - Archive of obsolete content
note: this page documents the jetpack prototype, which is no longer under active development.
...ting the selection the following is an example of getting the selection from the user.
...example of getting the selection from the user.
Selection - Archive of obsolete content
jetpack's selection api provides a method for detecting the selections made by the user.
... selection the following is an example of getting the selection from the user.
...of getting the selection from the user.
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.
... 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.
...he functionality that foo yields to the script.
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.
... selection the following is an example of getting the selection from the user.
...of getting the selection from the user.
Message Summary Database - Archive of obsolete content
the mail summary files (.msf) are used to store summary information about messages and threads in a folder, and some meta information about the folder.
...), or we could invent a whole new database interface and change all the code that uses the nsimsgdatabase interface.
...e is in reply to, etc.
Scripting - Archive of obsolete content
on windows has finished loading.
...ct has been initialized and can be used.
...lements the nsiplatformglue interface, whose methods are described in the following section.
Example Sticky Notes - Archive of obsolete content
n this.innertext='something' will lead to circular setter call and stack overflow.
...lead to circular setter call and stack overflow.
... here we simply echoing it back: return val; ]]></setter> </property> <method name="setborder"> <!-- new method for the bound element.
XBL 1.0 Reference - Archive of obsolete content
new behavior specified by the binding.
...arison of earlier xbl proposals, and not all of them are reflected yet in this document.
... the dom content generation rules for generation attribute forwarding insertion points <children> handling dom changes event flow and targeting flow and targeting across scopes focus and blur events mouseover and mouseout events anonymous content and css selectors and scopes binding stylesheets binding implementations introduction methods properties inheritance of implementations event handlers example - sticky notes updated and adjusted for the current firefox implementation.
execute - Archive of obsolete content
execute queues the executing of a local file.
... execute queues the executing of a local file.
...le a filespecobject representing the local file already on disk to be executed.
toString - Archive of obsolete content
summary converts an installversion init object to a string.
... summary converts an installversion init object to a string.
... summary converts an installversion init object to a string.
createKey - Archive of obsolete content
createkey adds a key to the registry.
... createkey adds a key to the registry.
...iate location in the key hierarchy, such as "software\\netscape\\navigator\\mail".
enumValueNames - Archive of obsolete content
enumvaluenames enumerates the value of a given key.
... enumvaluenames enumerates the value of a given key.
..., such as "software\\netscape\\navigator\\mail".
XPInstall API reference - Archive of obsolete content
of this page show the use of the xpinstall api.
...leteregisteredfile execute gestalt getcomponentfolder getfolder getlasterror getwinprofile getwinregistry initinstall loadresources logcomment patch performinstall refreshplugins registerchrome reseterror setpackagefolder installtrigger no properties methods compareversion enabled getversion install installchrome startsoftwareupdate installversion properties methods compareto init tostring file no properties methods copy dircreate dirgetparent dirremove dirrename diskspaceava...
...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 no properties methods createkey deletekey deletevalue enumkeys enumvaluenames getvalue getvaluenumber getvaluestring iskeywritable keyexists setrootkey setvalue setvaluenumber setvaluestring valueex...
XPJS Components Proposal - Archive of obsolete content
ore akin to 'dynamic' libraries.
...ry to see that the js factory for the given clsid is in a given .js file.
... object to be deleted or the compiled code to be unloaded [except by deleting the jsruntime; i.e.
Accessing Files - Archive of obsolete content
to get a reference to a file object use nsiscriptableio.getfile().
...l still return a valid file reference even if the file 'sample.txt' does not yet exist.
....getfile("profile", "sample.txt"); if (file.exists()) alert("the file is there!"); else alert("file not found!"); here, the same file is retrieved and a further check is performed to see whether the file is present or not.
Getting File Information - Archive of obsolete content
returned time to the date constructor.
...stmodifiedtime); in this example, a date object is created using the modification time of a file.
...ted.
Introduction to XUL - Archive of obsolete content
scribed in individual documents dedicated to the features requiring the extensions.
...xulelement xulelement extends element.
...ame" src="contentframe.html" flex="100%"/> </window> the beginning of this example, down through the window tag, is the standard preamble.
getElementsByAttribute - Archive of obsolete content
« xul reference home getelementsbyattribute( attrib, value ) return type: dom nodelist returns a nodelist of all the child elements of the element that have the attribute given by the first argument set to the value given by the second argument.
... return type: dom nodelist returns a nodelist of all the child elements of the element that have the attribute given by the first argument set to the value given by the second argument.
...s a nodelist of all the child elements of the element that have the attribute given by the first argument set to the value given by the second argument.
ContextMenus - Archive of obsolete content
ached using the oncontextmenu attribute.
...n checkcontextmenu(event) { if (event.target.localname == "textbox") event.preventdefault(); } function init() { var container = document.getelementbyid("container"); container.addeventlistener("contextmenu", checkcontextmenu, true); } the 'checkcontextmenu' function checks to see if the textbox was the target of the context menu and, if so, cancels the event using the preventdefault method.
... { var container = document.getelementbyid("container"); container.addeventlistener("contextmenu", checkcontextmenu, true); } the 'checkcontextmenu' function checks to see if the textbox was the target of the context menu and, if so, cancels the event using the preventdefault method.
Filtering - Archive of obsolete content
ifferent filter is applied.
...er is applied.
...add some information to the datasource in order to specify the list of countries that are available.
RDF Modifications - Archive of obsolete content
akin/images/t/obelisk.jpg"); var predicate = rdf.getresource("http://purl.org/dc/elements/1.1/description"); var target = rdf.getliteral("one of the thirty or so egyptian obelisks"); datasource.assert(source, predicate, target, true); the assert call adds a new triple to the rdf datasource.
...d.
... a triple does not exist yet, it will be added.
SQLite Templates - Archive of obsolete content
ill cause the datasource to be treated as an sqlite database.
...i attribute on the hbox element is required on one element within the action body.
...ender = 'male' this technique is used as quotes or other special characters are handled automatically.
Sorting Results - Archive of obsolete content
n the case of an rdf seq, this order is arbitrary as rdf triples don't occur in any particular order.
...sort attribute for the result is used to determine where in the content the generated output should be inserted.
...te, or you can call the sort method of the sort service: var listbox = document.getelementbyid("alistbox"); var sortservice = components.classes["@mozilla.org/xul/xul-sort-service;1"].
SeaMonkey - making custom toolbar (SM ver. 1.x) - Archive of obsolete content
ed all the steps, you will have a structure like this in the directory where you installed seamonkey: 1.
... the extension.) ensure that the package does not contain your working directory itself, but only install.js, content and all the files in content.
...monkey and type the chrome url: chrome://myapp/content/myapp.xul, the browser should show you the content of the xul file.
Tree Box Objects - Archive of obsolete content
ground.
...() function with an argument set to the value of the textbox.
...umber of rows.
XPCOM Examples - Archive of obsolete content
enever the menu is opened, as indicated by the onpopupshowing attribute on the menulist.
...the existing items in the menu.
...very time the menu is opened and we don't want to leave the old items there each time.
Using spell checking in XUL - Archive of obsolete content
how to use the mozispellcheckingengine component to add spell checking capabilities to your firefox extension.
...nent to add spell checking capabilities to your firefox extension.
... .getservice(components.interfaces.mozipersonaldictionary); if (mpersonaldictionary.check("kat", gspellcheckengine.dictionary)) { // it's spelled correctly accourdly to user personal dictionary } else { // it's spelled incorrectly } } getting a list of suggestions to get a list of suggestions for a misspelled word, you call the suggest() method, specifying the word and an object to be filled with an array of possible suggestions.
XUL Questions and Answers - Archive of obsolete content
an editor widget in xul that supports syntax highlighting?
...if you are using a button that matches one of these common usages, use the icon attribute to indicate this.
...nction(e) { shutdown(); }, false); is there an event which is called when the firefox browser is initialized?
binding - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] should be contained within a bindings element.
...i.
...erties 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattr...
caption - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a header for a groupbox.
... the accesskey attribute.
...te.
checkbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] an element that can be turned on and off.
...and sets the value of the crop attribute.
...he crop attribute.
colorpicker - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a palette of colors from which a user may select by clicking on one of the grid cells.
... disabled type: boolean gets and sets the value of the disabled attribute.
... boolean gets and sets the value of the disabled attribute.
commandset - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] this element is not displayed and serves as a container for command elements.
...ter might be used when the select event occurs.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
datepicker - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a datepicker allows the user to enter a date.
...erty, months in this value range from 01 to 12.
...lue range from 01 to 12.
deck - Archive of obsolete content
Archive › Mozilla › XUL › deck
« xul reference home [ examples | attributes | properties | methods | related ] an element that displays only one of its children at a time.
....
...ties 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattr...
description - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] this element is used to create a block of text.
...n gets and sets the value of the disabled attribute.
...the value of the disabled attribute.
image - Archive of obsolete content
Archive › Mozilla › XUL › image
« xul reference home [ examples | attributes | properties | methods | related ] summary an element that displays an image, much like the html img element.
....
...ties 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattr...
label - Archive of obsolete content
Archive › Mozilla › XUL › label
« xul reference home [ examples | attributes | properties | methods | related ] this element is used to provide a label for a control element.
...string gets and sets the value of the crop attribute.
...ets the value of the crop attribute.
listitem - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a single row in a listbox.
...vailable for menuitem and menuseparator elements in firefox 3.
...nd menuseparator elements in firefox 3.
member - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] used within a rule's conditions element to match elements that are containers or are contained within another element.
....
...ties 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattr...
menubar - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a container that usually contains menu elements.
...e.
...ties 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattr...
menuseparator - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] used to create a separator between menu items.
...ilable for menuitem and menuseparator elements in firefox 3.
... menuseparator elements in firefox 3.
radio - Archive of obsolete content
Archive › Mozilla › XUL › radio
« xul reference home [ examples | attributes | properties | methods | related ] an element that can be turned on and off.
...ilable for menuitem and menuseparator elements in firefox 3.
... menuseparator elements in firefox 3.
richlistitem - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] an individual item in a richlistbox.
...ilable for menuitem and menuseparator elements in firefox 3.
... menuseparator elements in firefox 3.
scrollbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a box that has additional functions that can be used to scroll the content.
... out.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
statusbar - Archive of obsolete content
i suggest using the add-on bar instead.
....
...erties 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattr...
<statusbarpanel> - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] firefox 4 note the status bar has been removed.
....
...ties 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattr...
tabbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a container used to display a set of tabbed pages of elements.
... is changed.
...tedtab type: tab element a reference to the currently selected tab, which will always be one of the tab elements in the tabs element.
tabpanels - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a container to hold the set of pages in a tabbox.
...elect an item by assigning its index to this property.
...ing its index to this property.
timepicker - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] the timepicker is used to allow the user to enter a time.
... secondleadingzero type: boolean a read only value indicating whether a leading zero should be displayed before the second when it is less than 10.
...ero type: boolean a read only value indicating whether a leading zero should be displayed before the second when it is less than 10.
toolbargrippy - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] not in firefox the notch on the side of a toolbar which can be used to collapse and expand it.
....
...ties 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattr...
toolbarseparator - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] creates a separator between groups of toolbar items.
...t.
...erties 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattr...
toolbarspring - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] firefox only a flexible space between toolbar items.
....
...erties 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattr...
treecol - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a column of a tree.
....
...ties 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattr...
window - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] describes the structure of a top-level window.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
...insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata see also: dom window object methods note the error message "xml parsing error: undefined entity...<window" can be caused by a missing or unreachable dtd file referenced in the xul file.
calICalendarViewController - Archive of obsolete content
e-360e0de38237)] interface calicalendarviewcontroller : nsisupports { void createnewevent (in calicalendar acalendar, in calidatetime astarttime, in calidatetime aendtime); void modifyoccurrence (in caliitemoccurrence aoccurrence, in calidatetime anewstarttime, in calidatetime anewendtime); void deleteoccurrence (in caliitemoccurrence aoccurrence); }; methods createnewevent void createnewevent (in calicalendar acalendar, in calidatetime astarttime, in calidatetime aendtime); the createnewevent method is used for creating a new calievent in the calicalendar specified by the acalendar parameter.
... value, as determined by the application.
...ly', that is, without a more detailed dialog appearing.
2006-10-20 - Archive of obsolete content
contribute visit the wiki discussions i wanna make an addon for firefox a commonly asked question in many newsgroups.
...any newsgroups.
... change download action for .rdp files on windows and os x a question regarding enabling firefox to associate .rdp files with microsoft remote desktop client so that the correct application opens the files automatically.
NPN_GetURL - Archive of obsolete content
ror code.
...ues, see error codes.
....
NPN_InvalidateRect - Archive of obsolete content
validate a portion of.
...e system that originates at the top left of the plug-in's content area.
... npn_invalidaterect() causes the npp_handleevent() method to pass an update event or a paint message to the plug-in.
NPN_InvalidateRegion - Archive of obsolete content
to the current plug-in instance.
...oordinate system that originates at the top left of the plug-in.
...or npn_invalidateregion().
Date.getVarDate() - Archive of obsolete content
warning: this method is supported in internet explorer only.
... warning: this method is supported in internet explorer only.
... warning: this method is supported in internet explorer only.
Enumerator.atEnd - Archive of obsolete content
non-standard.
... non-standard.
...d method returns a boolean value indicating if the enumerator is at the end of the collection.
VBArray.lbound - Archive of obsolete content
non-standard.
... non-standard.
...rd.
VBArray.ubound - Archive of obsolete content
non-standard.
...n internet explorer.
...n of the vbarray.
VBArray - Archive of obsolete content
igned.
...not be created directly.
...nction --> </script> <script type="text/javascript"> <!-- function vbarraytest(vbarray){ var a = new vbarray(vbarray); var b = a.toarray(); var i; for (i = 0; i < 9; i++) { document.writeln(b[i]); } } --> </script> </head> <body> <script type="text/javascript"> <!-- vbarraytest(createvbarray()); --> </script> </body> properties the vbarray object has no properties.
New in JavaScript 1.8.5 - Archive of obsolete content
new ecmascript5 features get and set operators now allows the identifier to be numeric or a string.
... get and set operators now allows the identifier to be numeric or a string.
... object description old proxy api offers support for creating object and function proxies that enable meta-programming in javascript.
Object.prototype.eval() - Archive of obsolete content
the object.eval() method used to evaluate a string of javascript code in the context of an object, however, this method has been removed.
... the object.eval() method used to evaluate a string of javascript code in the context of an object, however, this method has been removed.
...bject.eval() method used to evaluate a string of javascript code in the context of an object, however, this method has been removed.
Building up a basic demo with Babylon.js - Game development
0.8); thus, the scene is created and the second line sets the background color to light gray.
...ecamera("camera", new babylon.vector3(0, 0, -10), scene); there are many cameras available in babylon.js; freecamera is the most basic and universal one.
...e cubes, spheres, cylinders and more complicated shapes available.
Building up a basic demo with Three.js - Game development
rer.setsize(width, height); renderer.setclearcolor(0xdddddd, 1); document.body.appendchild(renderer.domelement); we are creating a new webgl renderer, setting its size to fit the whole available space on the screen, and appending the dom structure to the page.
...ement, just below the javascript comment.
...ght happen when you add a torus, wrapped in the phong material?
Implementing controls using the Gamepad API - Game development
te of each button, represented by an array of gamepadbutton objects containing pressed and value properties.
...atus = axes; gamepadapi.buttonsstatus = pressed; // return buttons for debugging purposes return pressed; }, on every frame, update() saves buttons pressed during the previous frame to the buttonscache array and takes fresh ones from the gamepadapi.controller object.
...f we move it a little by mistake or the stick doesn't make it back to its original position, the tank won't turn unexpectedly.
Square tilemaps implementation: Static maps - Game development
ed in the canvas api tutorial, as well as the basic information included in our tilemaps introduction article.
...map data structure to store that map data, we can use a plain object or a custom class.
...e.) however, we must account for empty tiles, since they are crucial for implementing layers — empty tiles are usually assigned a negative index value, 0, or a null value.
Move the ball - Game development
dcoded position at (50,50) we will define a starting point at the bottom center part of the canvas in variables called x and y, then use those to define the position the circle is drawn at.
...style = "#0095dd"; ctx.fill(); ctx.closepath(); x += dx; y += dy; } save your code again and try it in your browser.
...th(); x += dx; y += dy; } save your code again and try it in your browser.
The score - Game development
medev phaser tutorial.
...ble for storing the score and phaser's text() method to print it out onto the screen.
...ndered.
Cryptanalysis - MDN Web Docs Glossary: Definitions of Web-related terms
cryptanalysis is the branch of cryptography that studies how to break codes and cryptosystems.
... cryptanalysis is the branch of cryptography that studies how to break codes and cryptosystems.
... cryptanalysis is the branch of cryptography that studies how to break codes and cryptosystems.
Symbol - MDN Web Docs Glossary: Definitions of Web-related terms
as property keys.
...vailable symbols.
...ls.
MDN Web Docs Glossary: Definitions of Web-related terms
tp header http/2 http/3 https hyperlink hypertext i i18n iana icann ice ide idempotent identifier idl ietf iife imap immutable index indexeddb information architecture inheritance input method editor instance internationalization internet intrinsic size ip address ipv4 ipv6 irc iso isp itu j jank java javascript jpeg jquery json k key keyword l latency ...
...e local scope local variable locale localization long task loop lossless compression lossy compression ltr (left to right) m main axis main thread markup mathml media media (audio-visual 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 navigatio...
... slug smoke test smpte (society of motion picture and television engineers) smtp snap positions soap spa (single-page application) specification speculative parsing speed index sql sql injection sri stacking context state machine statement static method static typing strict mode string stun style origin stylesheet svg svn symbol symmetric-key cryptography synchronous syntax syntax error synthetic monitoring t tag tcp tcp handshake tcp slow start telnet ...
Handling different text directions - Learn web development
horizontally.
...ut right-to-left.
...only recently been implemented in browsers.
Flexbox - Learn web development
previous overview: css layout next flexbox is a one-dimensional layout method for laying out items in rows or columns.
...-between, which is very similar to space-around except that it doesn't leave any space at either end.
...n, and will have a good play around with it as you travel forward with your learning.
Adding vector graphics to the Web - Learn web development
<img src="equilateral.png" alt="triangle with equal sides" srcset="equilateral.svg"> you can also use svgs as css background images, as shown below.
...er within the svg or wherever you put the css style rules for your html document.
... you can open svg images in your browser just like webpages.
Introduction to events - Learn web development
ndlers — don't use these you might also see a pattern like this in your code: <button onclick="bgchange()">press me</button> function bgchange() { const rndcol = 'rgb(' + random(255) + ',' + random(255) + ',' + random(255) + ')'; document.body.style.backgroundcolor = rndcol; } note: you can find the full source code for this example on github (also see it running live).
... quickly turn into a maintenance nightmare.
... it so that a random color is applied to each one when selected: const divs = document.queryselectorall('div'); for (let i = 0; i < divs.length; i++) { divs[i].onclick = function(e) { e.target.style.backgroundcolor = bgchange(); } } the output is as follows (try clicking around on it — have fun): most event handlers you'll encounter have a standard set of properties and functions (methods) available on the event object; see the event object reference for a full list.
Handling text — strings in JavaScript - Learn web development
le that you want to convert to a string but not change otherwise, or a string variable that you want to convert to a number but not change otherwise, you can use the following two constructs: the number object converts anything passed to it into a number, if it can.
...rtant information?
...ript and how we can use them to manipulate our strings into just the form we want.
What went wrong? Troubleshooting JavaScript - Learn web development
value to the console.
...lem with line 48.
...xample, if we were to change this line inside checkguess(): if (userguess === randomnumber) { to if (userguess = randomnumber) { the test would always return true, causing the program to report that the game has been won.
Solve common problems in your JavaScript code - Learn web development
nd do ...
...n and a method?
...my web pages?
Dynamic behavior in Svelte: working with variables and props - Learn web development
g the handler.
...ments.
...tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events, methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, l...
Getting started with Vue - Learn web development
ther frameworks, see vue docs: comparison with other frameworks.
...andard html — <template lang="pug">.
...tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events, methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, l...
Understanding client-side JavaScript frameworks - Learn web development
d saving data state.
...ts using the v-for directive.
...ver in this article.
Implementing feature detection - Learn web development
orting document.queryselector, and having a messed up box model).
... object.
...memory using document.createelement() and then check if a property exists on it.
Adding a new CSS property
ble rather than combining variant_keyword with variant_auto, variant_normal, or variant_none.
...yle*::calcdifference (in nsstylestruct.cpp) to describe how dynamic changes of your new css property need to be handled.
...(in nsstylestruct.cpp) to describe how dynamic changes of your new css property need to be handled.
Creating MozSearch plugins
<searchplugin xmlns="http://www.mozilla.org/2006/browser/search/"> <shortname>yahoo</shortname> <description>yahoo search</description> <inputencoding>utf-8</inputencoding> <image width="16" height="16">data:image/x-icon;base64,r0lgodlheaaqajecap8aaaaaap///waaach5baeaaaialaaaaaaqabaaaaipli+py+0nogquybdened2khkffwuamezmpzsfmaihphrrguum/ft+uwaaow==</image> <url type="application/x-suggestions+json" method="get" template="http://ff.search.yahoo.com/gossip?output=fxjson&amp;command={searchterms}" /> <url type="text/html" method="get" template="http://search.yahoo.com/search"> <param name="p" value="{searchterms}"/> <param name="ei" value="utf-8"/> <mozparam name="fr" condition="pref" pref="yahoo-fr" /> </url> <searchform>http://search.yahoo.com/</searchform> </searchplugin> let's say t...
...3tdqn75d4xmavcok9armhbzaw0aecibhkalc0mdy7x9abna3obazxiaa6ikecglmvqhwwyjyul2d4v2cpg8vzswx7ghyaaak7aoif7saboqcmn4ha3ahfsidtgpq%2fvlz8p4mskj2w9h8ggbjevxvhdo4fquqg%2fkdypqcg4h8luiacnq%2fsobmyi8basajfpcj1aaeejwvqqlpabxmh5bjjqi0gi9dtaagdbbccavlkgmq7ykczxpcqxquzhaeccj4xgml493ug21zd%2badaxh0wlm4a9mzpxjkjiiawtar5pqmalacabquulttbgccagcnnzgabbgamj5thwgvjlaaaaabjru5erkjggg%3d%3d</image> <url type="text/html" method="get" template="http://developer.mozilla.org/en/docs/special:search?search={searchterms}"/> <searchform>http://developer.mozilla.org/en/docs/special:search</searchform> </searchplugin> notice in this case that instead of using <param> to define parameters to the search engine, they're simply embedded inside the template url.
...="get" template="http://developer.mozilla.org/en/docs/special:search?search={searchterms}"/> <searchform>http://developer.mozilla.org/en/docs/special:search</searchform> </searchplugin> notice in this case that instead of using <param> to define parameters to the search engine, they're simply embedded inside the template url.
Performance best practices for Firefox front-end engineers
}, 0); }); // or, if you are running in privileged javascript and want to avoid the timer overhead, // you could also use: requestanimationframe(() => { services.tm.dispatchtomainthread(() => { // same-ish as above.
...vascript and want to avoid the timer overhead, // you could also use: requestanimationframe(() => { services.tm.dispatchtomainthread(() => { // same-ish as above.
...services.tm.dispatchtomainthread(() => { // same-ish as above.
MozBeforePaint
gecko 2.0 adds a new method for performing javascript controlled animations that synchronize not only with one another, but also with css transitions and smil animations being performed within the same window.
...ationstarttime.
...estamp - start; d.style.left = math.min(progress/10, 200) + "px"; if (progress < 2000) { window.mozrequestanimationframe(); } else { window.removeeventlistener("mozbeforepaint", step, false); } } window.addeventlistener("mozbeforepaint", step, false); window.mozrequestanimationframe(); </script> </body> </html> as you can see, each time the mozbeforepaint event fires, our step() method is called.
Overview of Mozilla embedding APIs
instances of this class are stack allocated, and wrap ascii arguments which must be converted into ucs2.
...obal memory manager implementation for xpcom.
...terface is used to print the contents of the desired domwindow.
JavaScript-DOM Prototypes in Mozilla
n mozilla, the native c++ dom node is wrapped using xpconnect and the wrapper is exposed to javascript as the javascript representation of the dom node.
...ok identical, but they would be two different jsobject's.
...s how class constructor and their prototype properties are set up, what about the actual prototype chain of a xpconnected dom object?
UpdateListener
an updatelistener receives messages from an update check for a single add-on, though it is possible to pass the same updatelistener to as many calls to findupdates() as you like.
...ethods will be called on the listener: either oncompatibilityupdateavailable() or onnocompatibilityupdateavailable(), depending on whether compatibility information for the requested application version was seen.
...datefinished() to signal that the update check has completed.
FxAccountsOAuthClient.jsm
the fxaccountsoauthclient.jsm javascript module provides a way for browser services to authenticate with the firefox accounts oauth server.
...ed list of scopes that the user has authorized.
... authorized.
FxAccountsProfileClient.jsm
the fxaccountsprofileclient.jsm javascript module provides a way to fetch firefox accounts profile information.
...arer token.
...ountsprofileclient() creates and returns a new fxaccountsprofileclient object.
ISO8601DateUtils.jsm
the iso8601dateutils.jsm javascript code module provides methods that make it easy to convert javascript date objects into iso 8601 format date strings and back.
...cope: components.utils.import("resource://gre/modules/iso8601dateutils.jsm"); once you've imported the module, you can then use the iso8601dateutils object it exports.
...jsm"); once you've imported the module, you can then use the iso8601dateutils object it exports.
Log.jsm
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 prototype: doappend(); getinputstream(); newoutputstream(); ou...
... storagestreamappender(); length: 1 keys of prototype: doappend(); getinputstream(); newoutputstream(); outputstream reset(); 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 ...
... error 30 fatal 70 info 40 numbers { "all": 0, "trace": 10, "debug": 20, "config": 30, "info": 40, "warn": 50, "error": 60, "fatal": 70 } trace 10 warn 50 repository loggerrepository logger methods void fatal(string text, [optional] object params); void error(string text, [optional] object params); void warn(string text, [optional] object params); void info(string text, [optional] object params); void config(string text, [optional] object params); void debug(string text, [optional] object params); void trace(string text, [op...
PerfMeasurement.jsm
t into your scope: components.utils.import("resource://gre/modules/perfmeasurement.jsm") see measuring performance using the perfmeasurement.jsm code module for details on how to use this api.
... stop(); member fields recorded data variables these variables provide access to the recorded data.
... event types.
openLocationLastURL.jsm
ts private browsing mode.
...te browsing mode.
...nlasturl object to get or set the value of the open location edit box, simply read the value of, or set the value of, the openlocationlasturl.value field: var url = openlocationlasturl.value; openlocationlasturl.value = "http://www.mozilla.org/"; to reset the value of the edit box to the default (which is an empty string), you can call the reset() method: method overview reset() methods reset the reset() method resets the saved url to the default, which is an empty string.
DMD
led, you will need to do a few things.
...he device so that it can by dynamically loaded by fennec.
...t/bin/libdmd.so /sdcard/ second, you will need to make an executable wrapper for fennec which sets an environment variable before launching it.
Refcount tracing and balancing
rb/make-tree.pl, specifying the object of interest.
...ake-tree.pl --object 0x00253ab0 < my-leak.log this will build an indented tree that looks something like this (except probably a lot larger and leafier): .root: bal=1 main: bal=1 dosomethingwithfooandreturnittoo: bal=2 ns_newfoo: bal=1 let's pretend in our toy example that ns_newfoo() is a factory method that makes a new foo and returns it.
...o() is a factory method that makes a new foo and returns it.
Leak And Bloat Tests
form tests that measure memory leaks and bloat for mailnews and its sub-components.
...measure memory leaks and bloat for mailnews and its sub-components.
...ilnews and its sub-components for the following items: total memory leaks.
4.3 Release Notes
release date: 01 april 2009 introduction network security services for java (jss) 4.3 is a minor release with the following new features: sqlite-based shareable certificate and key databases libpkix: an rfc 3280 compliant certificate path validation library pkcs11 needslogin method support hmacsha256, hmacsha384, and hmacsha512 support for all nss 3.12 initialization options jss 4.3 is tri-licensed under mpl 1.1/gpl 2.0/lgpl 2.1.
... tri-licensed under mpl 1.1/gpl 2.0/lgpl 2.1.
... bugzilla query jss 4.3 requires nss 3.12 or higher.
NSS_3.12_release_notes.html
igestdirect (see cryptohi.h) vfy_verifydigestwithalgorithmid (see cryptohi.h) new macros for camellia support (see blapit.h): nss_camellia nss_camellia_cbc camellia_block_size new macros for rsa (see blapit.h): rsa_max_modulus_bits rsa_max_exponent_bits new macros in certt.h: x.509 v3 ku_encipher_only cert_max_serial_number_bytes cert_max_dn_bytes pkix cert_rev_m_do_not_test_using_this_method cert_rev_m_test_using_this_method cert_rev_m_allow_network_fetching cert_rev_m_forbid_network_fetching cert_rev_m_allow_implicit_default_source cert_rev_m_ignore_implicit_default_source cert_rev_m_skip_test_on_missing_source cert_rev_m_require_info_on_missing_source cert_rev_m_ignore_missing_fresh_info cert_rev_m_fail_on_missing_fresh_info cert_rev_m_stop_testing_on_fresh_info cert_rev_m_continue...
..._allow_network_fetching cert_rev_m_forbid_network_fetching cert_rev_m_allow_implicit_default_source cert_rev_m_ignore_implicit_default_source cert_rev_m_skip_test_on_missing_source cert_rev_m_require_info_on_missing_source cert_rev_m_ignore_missing_fresh_info cert_rev_m_fail_on_missing_fresh_info cert_rev_m_stop_testing_on_fresh_info cert_rev_m_continue_testing_on_fresh_info cert_rev_mi_test_each_method_separately cert_rev_mi_test_all_local_information_first cert_rev_mi_no_overall_info_requirement cert_rev_mi_require_some_fresh_info_available cert_policy_flag_no_mapping cert_policy_flag_explicit cert_policy_flag_no_any cert_enable_ldap_fetch cert_enable_http_fetch new macro in utilrename.h: smime_aes_cbc_128 the nssckbi pkcs #11 module's version changed to 1.70.
...ive call in vfy_verifydigestdirect bug 382078: pkix default http client returns error when try to get an ocsp response.
NSS Sample Code Sample1
checking a digest value with the adminstrator of the // secondary host.
...s server { public: // initializes the server instance.
...data = new unsigned char[data->len]; if (!data->data) { rv = 1; goto done; } s = pk11_pubwrapsymkey(ckm_rsa_pkcs, pubkey, key, data); if (s != secsuccess) { rv = 1; goto done; } *ret = data; data = 0; done: if (data) secitem_freeitem(data, pr_true); return rv; } // example of how to do a raw export (no wrapping of a key) // this should not be used.
nss tech note1
upper 2 tag bits (number 6 and 7).
...tring, sec_asn1_printable_string, sec_asn1_t61_string, sec_asn1_teletex_string, sec_asn1_t61_string, sec_asn1_videotex_string, sec_asn1_ia5_string, sec_asn1_utc_time, sec_asn1_generalized_time, sec_asn1_graphic_string, sec_asn1_visible_string, sec_asn1_general_string, sec_asn1_universal_string, sec_asn1_bmp_string note that for sec_asn1_set and sec_asn1_sequence types, you must also include the method type macro sec_asn1_constructed to construct a fully valid tag, as defined by the asn.1 standard .
...the offset.
NSPR functions
to the layers in the network stack.
...spr i/o layer that wraps your own tcp socket code.
...wn nspr i/o layer and manipulate it.
Rhino Examples
js script allows printing unique lines from a file.
...shell.java is a program that executes javascript programs; it is a simplified version of the shell in the tools package.
...e allows both information to be shared across threads, and amortizes the cost of context.initstandardobjects by only performing that expensive operation once.
Rhino scopes and contexts
ere, but more complicated embeddings can gain performance and flexibility from the techniques described below.
...e scope simultaneously, the scripts are responsible for coordinating any accesses to shared variables.
...rched.
Shumway
rity or performance concerns can still see content through shumway because it cannot be forced to behave worse than javascript (and webgl, etc.) allows.
...(this will be listed as "shockwave flash" under the plugins tab).
...ues with flash content should be reported through github.
Tracing JIT
, by rewriting native jump instructions to jump to new locations.
...nning tally is kept of assignments between registers and lir operands, and any time a new lir operand is required in a register a new one is assigned from the list of free registers.
...t-often-used register currently in use is spilled.
JS::Handle
this article covers features introduced in spidermonkey 17 reference to a t that has been rooted elsewhere.
... this article covers features introduced in spidermonkey 17 reference to a t that has been rooted elsewhere.
...r those arguments and avoid any explicit rooting.
JS::PersistentRooted
cx); js::persistentrooted<t> var(cx, initial); js::persistentrooted<t> var(rt); js::persistentrooted<t> var(rt, initial); name type description cx jscontext * the context to get the runtime in which to add the root rt jsruntime * the runtime in which to add the root.
...t> var(rt, initial); name type description cx jscontext * the context to get the runtime in which to add the root rt jsruntime * the runtime in which to add the root.
...heap<t> or tenuredheap<t> members to make sure their referents get marked when the object itself is marked.
JS::Rooted
js::rooted<t> var(rt); js::rooted<t> var(rt, initial); name type description cx jscontext * the context in which to add the root.
...ion cx jscontext * the context in which to add the root.
...ose value is always rooted.
JSClass.call
nt received by the jsnative is the this argument, not the custom object that was called!
... is the this argument, not the custom object that was called!
...as jsclass.call and jsclass.construct hooks.
JSObjectOps.defaultValue
scription cx jscontext * pointer to the js context in which the conversion is needed.
... converted value here.
...provide a custom jsobjectops.defaultvalue callback to implement customized [[defaultvalue]] behavior.
JSPropertySpec
/* 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.
...d int8 obsolete since jsapi 31 unique id number for the property to aid in resolving getproperty and setproperty method calls.
...getproperty and setproperty method calls.
JS_NewObject
r must ensure that the jsclass remains alive throughout the lifetime of the new object, including the garbage collection cycle that finally frees it.
...e new object.
...new object will have a prototype with the js value of null.
JS_PreventExtensions
ed bool * outparam indicating, on jsapi success, whether the object is now non-extensible.
...dicating, on jsapi success, whether the object is now non-extensible.
...le.
JS_ValueToObject
p and returns true.
... if v is a boolean value, a number, or a string, the result is a new wrapper object of type boolean, number, or string.
...ame object as v.
SpiderMonkey 24
changed, though most of them still have the same names and do the same things.
...he original value of array.prototype.
... js_newruntime adds a js_[use|no]_helper_threads flag delete property in jsclass definitions now use js_deletepropertystub garbage collection functions now take runtime argument most garbage collection functions now take a runtime argument instead of a context.
Animated PNG graphics
Mozilla › Tech › APNG
ed for each frame.
...me.
... datastream is then the concatenation of the contents of the data fields of all the 'fdat' chunks within a frame.
Using the Places livemark service
folders that contain the most recent items from an rss feed.
... uri("http://example.com/rss.xml"), -1); the parameters here are the same as for nsilivemarkservice.createlivemark(), except for the insertion of a new parameter at the beginning, which is the nsinavbookmarksservice to use when creating the livemark.
...he nsinavbookmarksservice to use when creating the livemark.
Making cross-thread calls using runnables
ne dispatched to the worker thread, and one to hand us back the result.
...k the result.
...ver...
XPCOM hashtable guide
t> a hashtable that maps nsisupports pointers to reference counted cacheentrys - nsrefptrhashtable<nsisupportshashkey, cacheentry> a hashtable that maps jscontext pointers to a contextinfo struct - nsclasshashtable<nsptrhashkey<jscontext>, contextinfo> a hashset of strings - nsthashtable<nsstringhashkey> hashtable api the hashtable classes all expose the same basic api.
...ings - nsthashtable<nsstringhashkey> hashtable api the hashtable classes all expose the same basic api.
..., and remove, which retrieve entries from the hashtable, write entries into the hashtable, and remove entries from the hashtable respectively.
Inheriting from implementation classes
interface ia { void funca(); } interface ib : ia { void funcb(); } interface ic : ib { void funcc(); } c++ implementation: class a : public ia { ???
... as usual: class a : public ia { ...
...upports_inherited ns_forward_ia(a::) // need to disambiguate ns_decl_ib } b.cpp: ns_impl_isupports_inherited1(b, a, ib) // this, superclass,added ifaces ns_imethodimp b::funcb() { ...
Components.returnCode
components.returncode is a property which can hold an xpcom return code additionally to the value returned by the return statement.
... components.returncode is a property which can hold an xpcom return code additionally to the value returned by the return statement.
...o bug 287107.
Components.utils.importGlobalProperties
...]); parameters [string1, string2, ...] an array of strings.
...o import.
.../gre/modules/devtools/console.jsm"); components.utils.importglobalproperties(["atob", "btoa"]); var encoded = btoa("hello"); console.log(encoded); // "sgvsbg8=" console.log(atob(encoded)); // "hello" alternative methods if importglobalproperties does not support the targeted firefox version, here are some alternative methods to import these objects.
Monitoring HTTP activity
gecko includes the nsihttpactivityobserver interface, which you can implement in your code to monitor http transactions in real time, receiving a callback as the transactions take place.
... nsihttpactivityobserver.activity_subtype_response_header: // received response header break; case nsihttpactivityobserver.activity_subtype_response_complete: // received complete http response break; } } } }; then you need to install your activity observer.
... .getservice(components.interfaces.nsihttpactivitydistributor); activitydistributor.addobserver(httpobserver); observable activities there are two classes of observable activities: those that occur at the socket level and those that occur at the http transaction level.
Observer Notifications
tifications you can monitor related to dom documents.
...od of doing this, which uses significantly less memory).
...ces-maintenance-finished sent when maintenance of the places database is complete; this is done periodically in the background to keep the places database tidy.
nsACString
ed to represent ascii or utf-8 character arrays.
...y random binary data.
...ry data.
nsACString_internal
ef="http://developer.mozilla.org/en/ns_lossyconvertutf16toascii" shape="rect" title="ns_lossyconvertutf16toascii"> <area alt="" coords="251,389,435,437" href="http://developer.mozilla.org/en/ns_convertutf16toutf8" shape="rect" title="ns_convertutf16toutf8"> <area alt="" coords="309,293,445,341" href="http://developer.mozilla.org/en/nsadoptingcstring" shape="rect" title="nsadoptingcstring"> </map> method overview constructors beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsascii lowercaseequalsliteral(const char lowercaseequalsliteral(char ...
...lsliteral(char assign assignascii assignliteral(const char assignliteral(char operator= adopt replace replaceascii append appendascii appendliteral(const char appendliteral(char operator+= insert cut setcapacity setlength truncate getdata getmutabledata setisvoid stripchar data members no public members.
... of the buffer in characters or 0 if unable to satisfy the request due to low-memory conditions.
nsAString
de character arrays.
...ny random double-byte data.
...uble-byte data.
nsAString_internal
,192,437" href="http://developer.mozilla.org/en/ns_convertasciitoutf16" shape="rect" title="ns_convertasciitoutf16"> <area alt="" coords="216,389,400,437" href="http://developer.mozilla.org/en/ns_convertutf8toutf16" shape="rect" title="ns_convertutf8toutf16"> <area alt="" coords="277,293,405,341" href="http://developer.mozilla.org/en/nsadoptingstring" shape="rect" title="nsadoptingstring"> </map> method overview constructors beginreading endreading beginwriting endwriting data length isempty isvoid isterminated charat operator[] first last countchar findchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsascii lowercaseequalsliteral(const char lowercaseequalsliteral(char ...
...lsliteral(char assign assignascii assignliteral(const char assignliteral(char operator= adopt replace replaceascii append appendascii appendliteral(const char appendliteral(char operator+= insert cut setcapacity setlength truncate getdata getmutabledata setisvoid stripchar data members no public members.
...ffer in characters or 0 if unable to satisfy the request due to low-memory conditions.
nsAutoRef
nsautoref<t> is a template class implementing an object that holds a handle to a resource that must be released, typically on destruction of the object.
... that the handle is a pointer to an object that was created with new or has addref() and release() methods.
...managing a reference to a foreign object.
nsCountedRef
nscountedref<t> is a template class implementing an object that takes a strong reference to a reference-counted resource that must be released, typically on destruction of the object.
...rong reference to a reference-counted resource that must be released, typically on destruction of the object.
...ts its methods.
nsDependentCSubstring
class declaration nstdependentsubstring_chart a string class which wraps an external array of string characters.
...scii assignliteral(const char assignliteral(char operator= adopt replace replaceascii append appendascii appendliteral(const char appendliteral(char operator+= insert cut setcapacity setlength truncate getdata getmutabledata setisvoid stripchar base classes nsacstring_internal data members no public members.
... of the buffer in characters or 0 if unable to satisfy the request due to low-memory conditions.
nsDependentSubstring
class declaration nstdependentsubstring_chart a string class which wraps an external array of string characters.
...ascii assignliteral(const char assignliteral(char operator= adopt replace replaceascii append appendascii appendliteral(const char appendliteral(char operator+= insert cut setcapacity setlength truncate getdata getmutabledata setisvoid stripchar base classes nsastring_internal data members no public members.
...ffer in characters or 0 if unable to satisfy the request due to low-memory conditions.
nsMemory
« xpcom api reference summary the nsmemory class provides static helper routines to manage memory.
...ry that was allocated by xpcom's memory manager.
... to shrink the size of the heap.
amIInstallTrigger
toolkit/mozapps/extensions/amiinstalltrigger.idlscriptable called when an install completes or fails.
... since gecko 2.0 boolean startsoftwareupdate(in astring aurl, [optional] in print32 aflags); deprecated since gecko 2.0 boolean updateenabled(); deprecated since gecko 2.0 constants retained for backwards compatibility.
...lue of the property should either be a string url, or an object with the following properties: url for the add-on's url iconurl for an icon for the add-on hash for a hash of the add-on.
imgILoader
modules/libpr0n/public/imgiloader.idlscriptable please add a summary to this article.
... nsisupports cachekey, in imgirequest arequest, in nsichannelpolicy channelpolicy); imgirequest loadimagewithchannel(in nsichannel achannel, in imgidecoderobserver aobserver, in nsisupports cx, out nsistreamlistener alistener); boolean supportimagewithmimetype(in string mimetype); constants constant value description load_cors_anonymous 1 << 16 load_cors_use_credentials 1 << 17 methods loadimage() start the load and decode of an image.
...reference cycles.
jsdIStackFrame
iptcontext.
...w a ns_error_no_interface exception.
...e code only!
mozIPersonalDictionary
ary.
...ray, size_is(count)] out wstring words, out pruint32 count); void ignoreword(in wstring word); void load(); void removecorrection(in wstring word,in wstring correction, in wstring lang); void removeword(in wstring word, in wstring lang); void save(); attributes attribute type description wordlist nsistringenumerator get the (lexicographically sorted) list of words.
...ing word); void load(); void removecorrection(in wstring word,in wstring correction, in wstring lang); void removeword(in wstring word, in wstring lang); void save(); attributes attribute type description wordlist nsistringenumerator get the (lexicographically sorted) list of words.
mozIPlacesAutoComplete
toolkit/components/places/public/moziplacesautocomplete.idlscriptable this interface provides some constants used by the places autocomplete search provider as well as methods to track opened pages for autocomplete purposes.
... toolkit/components/places/public/moziplacesautocomplete.idlscriptable this interface provides some constants used by the places autocomplete search provider as well as methods to track opened pages for autocomplete purposes.
...okmark 1 << 1 search though bookmarks.
mozIStorageProgressHandler
the mozistorageprogresshandler interface lets storage consumers receive callbacks during the execution of sqlite requests.
...torageprogresshandler interface lets storage consumers receive callbacks during the execution of sqlite requests.
...orage consumers receive callbacks during the execution of sqlite requests.
mozIStorageStatementCallback
mozistoragestatementcallback interface represents a callback handler that the storage api calls with result, error, and completion notifications while handling asynchronous database queries.
...or aerror); void handleresult(in mozistorageresultset aresultset); constants constant value description reason_finished 0 the statement has finished executing normally.
...e called more than once with a different storageierror each time for any given asynchronous statement, and handlecompletion will be called once the statement is complete.
mozIStorageValueArray
the mozistoragevaluearray interface obtains provides methods to obtain data from a given result.
... the mozistoragevaluearray interface obtains provides methods to obtain data from a given result.
...ion numentries unsigned long the number of entries in the array.
nsIAboutModule
netwerk/protocol/about/nsiaboutmodule.idlscriptable this interface is implemented to add an 'about:' page.
....
... will be able to link to it.
nsIAccelerometerUpdate
xpcom/system/nsiaccelerometer.idlnot scriptable replaced by nsidevicemotionupdate 1.0 66 introduced gecko 2.0 obsolete gecko 6.0 inherits from: nsiaccelerometer last changed in gecko 5.0 (firefox 5.0 / thunderbird 5.0 / seamonkey 2.2) this method is only used in content tabs to receive nsiacceleration data from the chrome process.
... xpcom/system/nsiaccelerometer.idlnot scriptable replaced by nsidevicemotionupdate 1.0 66 introduced gecko 2.0 obsolete gecko 6.0 inherits from: nsiaccelerometer last changed in gecko 5.0 (firefox 5.0 / thunderbird 5.0 / seamonkey 2.2) this method is only used in content tabs to receive nsiacceleration data from the chrome process.
...sidevicemotionupdate 1.0 66 introduced gecko 2.0 obsolete gecko 6.0 inherits from: nsiaccelerometer last changed in gecko 5.0 (firefox 5.0 / thunderbird 5.0 / seamonkey 2.2) this method is only used in content tabs to receive nsiacceleration data from the chrome process.
nsIAccessibleDocument
document for each document whether it is xul, html or whatever.
... as specified in the document.
...hain() obsolete since gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) returns the first accessible parent of a dom node.
nsIAccessibleEditableText
diting text of an accessible object.
...ong position); void pastetext(in long position); void setattributes(in long startpos, in long endpos, in nsisupports attributes); unimplemented void settextcontents(in astring text); attributes attribute type description associatededitor nsieditor returns an editor associated with the accessible.
...attributes( in long startpos, in long endpos, in nsisupports attributes ); parameters startpos the start index of the text whose attributes are modified.
nsIAccessibleHyperLink
accessible/public/nsiaccessiblehyperlink.idlscriptable a cross-platform interface that supports hyperlink-specific properties and methods.
... accessible/public/nsiaccessiblehyperlink.idlscriptable a cross-platform interface that supports hyperlink-specific properties and methods.
...whether the hyperlink is valid, for example points to a valid url.
nsIAccessibleRelation
accessible/public/nsiaccessiblerelation.idlscriptable this interface gives access to an accessibles set of relations.
...ub window of a target object.
...ince the label and description can occur both on their own, and in the name or description fields of an nsiaccessible.
nsIAccessibleRetrieval
accessible/public/nsiaccessibleretrieval.idlscriptable an interface for in-process accessibility clients wishing to get an nsiaccessible or nsiaccessnode for a given dom node.
...bsolete since gecko 2.0 nsidomnode getrelevantcontentnodefor(in nsidomnode anode); astring getstringeventtype(in unsigned long aeventtype); astring getstringrelationtype(in unsigned long arelationtype); astring getstringrole(in unsigned long arole); nsidomdomstringlist getstringstates(in unsigned long astates, in unsigned long aextrastates); methods getaccessiblefor() return an nsiaccessible for a dom node in pres shell 0.
... the nsiaccessnode for the given dom node or null if an access node does not already exist for this dom node.
nsIApplicationCache
netwerk/base/public/nsiapplicationcache.idlscriptable this interface represents an application cache, which stores resources for offline use.
...nique client id for use with nsicacheservice.opensession() method, to access the cache's entries.
...e's group as its manifest.
nsIApplicationCacheChannel
netwerk/base/public/nsiapplicationcachechannel.idlscriptable this interface is implemented by communication channels that support application caches.
...not explicitly provided.
...exceptions thrown ns_error_already_opened if set after calling asyncopen() on the channel.
nsIApplicationCacheService
netwerk/base/public/nsiapplicationcacheservice.idlscriptable this interface manages the set of application cache groups that manage offline resources for web applications.
...siapplicationcache chooseapplicationcache(in acstring key); nsiapplicationcache createapplicationcache(in acstring group); void deactivategroup(in acstring group); nsiapplicationcache getactivecache(in 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.
... group); void deactivategroup(in acstring group); nsiapplicationcache getactivecache(in 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.
nsIArray
rom this convention.
...ameters may be null, except where noted.
...ay.
nsIAsyncVerifyRedirectCallback
ctcallback.idlscriptable implement this interface to receive a callback that lets you know whether an asynchronous redirect was verified or vetoed.
...k.idlscriptable implement this interface to receive a callback that lets you know whether an asynchronous redirect was verified or vetoed.
...whether an asynchronous redirect was verified or vetoed.
nsIAuthPromptProvider
netwerk/base/public/nsiauthpromptprovider.idlscriptable this interface requests a prompt interface for the given prompt reason.
... requests a prompt interface for the given prompt reason.
...for the given prompt reason.
nsIAutoCompleteListener
xpfe/components/autocomplete/public/nsiautocompletelistener.idlscriptable this interface is deprecated.
...ocomplete session support.
...milar manner to the toolkit autocomplete interface.
nsIBidiKeyboard
detect bidirectional writer users, and do some magic for them.
...ributes attribute type description havebidikeyboards boolean indicates whether or not the system has at least one keyboard for each direction (left-to-right and right-to-left) installed.
...one keyboard for each direction (left-to-right and right-to-left) installed.
nsIBinaryInputStream
from a "binary stream" containing untagged, big-endian binary data, that is as produced by an implementation of nsibinaryoutputstream.
...dboolean(); void readbytearray(in pruint32 alength, [array, size_is(alength), retval] out pruint8 abytes); void readbytes(in pruint32 alength, [size_is(alength), retval] out string astring); acstring readcstring(); double readdouble(); float readfloat(); astring readstring(); void setinputstream(in nsiinputstream ainputstream); methods read8() reads from the stream.
...m.
nsICacheEntryInfo
netwerk/cache/nsicachevisitor.idlscriptable this interface provides information about a cache entry.
...the epoch).
...hcount long get the number of times the cache entry has been opened.
nsICacheMetaDataVisitor
netwerk/cache/nsicacheentrydescriptor.idlscriptable this interface is used for visiting the meta data elements for a specified cache entry.
... netwerk/cache/nsicacheentrydescriptor.idlscriptable this interface is used for visiting the meta data elements for a specified cache entry.
... netwerk/cache/nsicacheentrydescriptor.idlscriptable this interface is used for visiting the meta data elements for a specified cache entry.
nsICachingChannel
es: support for "stream as file" semantics (for jar and plugins).
...if this attribute is set to true, then the document will not be loaded from the cache.
...he() to determine if the asyncopen will actually result in data being streamed.
nsICancelable
netwerk/base/public/nsicancelable.idlscriptable this interface provides a means to cancel an operation that is in progress.
... netwerk/base/public/nsicancelable.idlscriptable this interface provides a means to cancel an operation that is in progress.
... netwerk/base/public/nsicancelable.idlscriptable this interface provides a means to cancel an operation that is in progress.
nsIClipboardOwner
the nsiclipboardowner interface notifies the clipboard owner about the current status of ownership of the clipboard transferable at given situation and time.
...e notifies the clipboard owner about the current status of ownership of the clipboard transferable at given situation and time.
...about the current status of ownership of the clipboard transferable at given situation and time.
nsIContentPrefService
riptable please add a summary to this article.
...e(in astring aname); void setpref(in nsivariant agroup, in astring aname, in nsivariant avalue); attributes attribute type description dbconnection mozistorageconnection the database connection to the content preferences database.
... to multiple callers should generally be added to this unfrozen interface.
nsICrashReporter
xpcom/system/nsicrashreporter.idlscriptable provides access to crash reporting functionality.
... crash reports will be submitted.
...e added.
nsIDBChangeListener
bird, we must call addlistener on a nsidbchangeannouncer, typically through a nsimsgdatabase.
...uncer instigator); void onreadchanged(in nsidbchangelistener ainstigator); void onjunkscorechanged(in nsidbchangelistener ainstigator); void onhdrpropertychanged(in nsimsgdbhdr ahdrtochange, in unsigned long aoldflags, in prbool aprechange, inout pruint32 astatus, in nsidbchangelistener ainstigator); void onevent(in nsimsgdatabase adb, in string aevent); methods onhdrflagschanged() called when a message's flags change.
...f started.
nsIDNSRecord
netwerk/dns/nsidnsrecord.idlscriptable this interface represents the result of a dns lookup.
...caller to easily step through the list of ip addresses.
...r( in pruint16 aport ); parameters aport a port number to initialize the prnetaddr with.
nsIDOMGeoGeolocation
ess this service using: var geolocation = components.classes["@mozilla.org/geolocation;1"] .getservice(components.interfaces.nsidomgeogeolocation); note: if nsidgeogeolocation throws an exception when importing, try using this: var geolocation = components.classes["@mozilla.org/geolocation;1"] .getservice(components.interfaces.nsisupports); method overview void clearwatch(in unsigned short watchid); void getcurrentposition(in nsidomgeopositioncallback successcallback, [optional] in nsidomgeopositionerrorcallback errorcallback, [optional] in nsidomgeopositionoptions options); unsigned short watchposition(in nsidomgeopositioncallback successcallback, ...
...oncallback successcallback, [optional] in nsidomgeopositionerrorcallback errorcallback, [optional] in nsidomgeopositionoptions options); attributes attribute type description lastposition nsidomgeoposition the most recently retrieved location as seen by the provider.
... [optional] in nsidomgeopositionerrorcallback errorcallback, [optional] in nsidomgeopositionoptions options); attributes attribute type description lastposition nsidomgeoposition the most recently retrieved location as seen by the provider.
nsIDOMHTMLTimeRanges
the nsidomhtmltimeranges interface represents a set of time ranges in media; it's primarily used by the nsidomhtmlmediaelement interface, and implements the dom timeranges interface.
...ed by an nsidomhtmltimeranges object has an index number; you call the start() and end() methods to obtain the start and end times of each range, specifying the index number of the range to look up.
...iptable please add a summary to this article.
nsIDOMProgressEvent
deprecated gecko 22 inherits from: nsidomevent last changed in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) the nsidomprogressevent is used in the media elements (<video> and <audio>) to inform interested code of the progress of the media download.
...d only.
...ytes transferred since the beginning of the operation.
nsIDOMStorageManager
dom/interfaces/storage/nsidomstoragemanager.idlscriptable this interface provides methods for managing data stored in the offline apps cache.
...ffline apps cache.
...@mozilla.org/dom/storagemanager;1 as a service: var domstoragemanager = components.classes["@mozilla.org/dom/storagemanager;1"] .getservice(components.interfaces.nsidomstoragemanager); method overview void clearofflineapps(); nsidomstorage getlocalstorageforprincipal(in nsiprincipal aprincipal, in domstring adocumenturi); long getusage(in astring aownerdomain); methods clearofflineapps() clears keys owned by offline applications.
nsIDOMXPathEvaluator
uator.idlscriptable this interface is used to evaluate xpath expressions against a dom node.
...aces.nsidomxpathevaluator); method overview nsidomxpathexpression createexpression(in domstring expression, in nsidomxpathnsresolver resolver) nsidomxpathnsresolver creatensresolver(in nsidomnode noderesolver); nsisupports evaluate(in domstring expression, in nsidomnode contextnode, in nsidomxpathnsresolver resolver, in unsigned short type, in nsisupports result) methods createexpression() creates an nsidomxpathexpression which can then be used for (repeated) evaluations.
... nsidomxpathnsresolver creatensresolver(in nsidomnode noderesolver); nsisupports evaluate(in domstring expression, in nsidomnode contextnode, in nsidomxpathnsresolver resolver, in unsigned short type, in nsisupports result) methods createexpression() creates an nsidomxpathexpression which can then be used for (repeated) evaluations.
nsIDOMXULElement
dom/interfaces/xul/nsidomxulelement.idlscriptable represents a xul element within the dom.
...rns an object that may be used to read or write individual css style properties for the element.
...tiptext attribute.
nsIDialogParamBlock
embedding/components/windowwatcher/public/nsidialogparamblock.idlscriptable an interface to pass strings, integers and nsisupports to a dialog.
...string getstring( in print32 inindex ); void setint( in print32 inindex, in print32 inint ); void setnumberstrings( in print32 innumstrings ); void setstring( in print32 inindex, in wstring instring); attributes attribute type description objects nsimutablearray a place where you can store an nsimutablearray to pass nsisupports.
...reviously been set at that index.
nsIDirectoryServiceProvider
xpcom/io/nsidirectoryservice.idlscriptable this interface is used by the directory service to get file locations.
... xpcom/io/nsidirectoryservice.idlscriptable this interface is used by the directory service to get file locations.
... xpcom/io/nsidirectoryservice.idlscriptable this interface is used by the directory service to get file locations.
nsIDiskCacheStreamInternal
netwerk/cache/nsidiskcachestreaminternal.idlscriptable please add a summary to this article.
... netwerk/cache/nsidiskcachestreaminternal.idlscriptable please add a summary to this article.
... netwerk/cache/nsidiskcachestreaminternal.idlscriptable please add a summary to this article.
nsIDragDropHandler
drag and drop implementation in the content area.
...at implements nspidomeventtarget which is what we end up using under the hood).
...handlers to a specified receiver, setting up callbacks to let built-in behaviors be overridden.
nsIDragService
ling drag and drop operations.
...tions.
... dragdrop_action_none 0 no action.
nsIEnvironment
xpcom/threads/nsienvironment.idlscriptable scriptable access to the current process environment.
...rom: 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"].
...riable.
nsIEventListenerInfo
vice.idlscriptable an instance of this interface describes how an event listener was added to an event target; these are returned by nsieventlistenerservice.getlistenerinfofor, which provides a list of all the listeners to a given event target.
...r or not the event listener allows untrusted events.
...read only.
nsIEventListenerService
pports last changed in gecko 7.0 (firefox 7.0 / thunderbird 7.0 / seamonkey 2.4) implemented by: @mozilla.org/eventlistenerservice;1.
...r listener, in boolean usecapture); void removesystemeventlistener(in nsidomeventtarget target, in domstring type, in nsidomeventlistener listener, in boolean usecapture); attributes attribute type description systemeventgroup nsidomeventgroup returns system event group.
...targetchainfor() returns an array of event targets indicating all the targets that will receive the same events that are delivered to the specified target.
nsIExternalProtocolService
e is used for finding and launching web handlers (a la registerprotocolhandler in the html5 draft) or platform-specific applications for handling particular protocols.
...n acstring aprotocolscheme); nsihandlerinfo getprotocolhandlerinfofromos(in acstring aprotocolscheme, out boolean afound); boolean isexposedprotocol(in string aprotocolscheme); void loaduri(in nsiuri auri, [optional] in nsiinterfacerequestor awindowcontext); void loadurl(in nsiuri aurl); void setprotocolhandlerdefaults(in nsihandlerinfo ahandlerinfo, in boolean aoshandlerexists); methods externalprotocolhandlerexists() check whether a handler for a specific protocol exists.
...ts("tlcxp")) { // handler for http:// urls exists } else { // suppress external-load warning for standard browser schemes pref("network.protocol-handler.external.tlcxp", true); pref("network.protocol-handler.app.tlcxp, "lzx"); } </pre> getprotocolhandlerinfo() retrieve the handler for the given protocol.
nsIFeedResult
toolkit/components/feeds/nsifeedresult.idlscriptable this interface provides access to http and parsing metadata for a feed or entry.
... a processing instruction.
...ress from which the feed was fetched.
nsIFeedTextConstruct
ced gecko 1.8 inherits from: nsisupports last changed in gecko 1.8.1 (firefox 2 / thunderbird 2 / seamonkey 1.1) implemented by: @mozilla.org/feed-textconstruct;1, but users usually don't need to create instances of this directly.
... xhtml, relative references in the content should be resolved against this base uri.
...parameters element the element in which to create the new document fragment.
nsIFileView
implemented.
... nsiarray instances.
...ion.
nsIFrameMessageListener
e in a remote frame handling process to receive messages from the browser process.
...he browser process.
... introduced gecko 2.0 inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) this interface is used when implementing out-of-process handling of frames; the process handling a frame should implement this interface in order to receive messages.
nsIGeolocationProvider
users location to interested parties via nsigeolocationupdate.
...equest().
....9.2 (firefox 3.6 / thunderbird 3.1 / fennec 1.0) reports whether or not the device is ready and has a position.
nsIGlobalHistory3
docshell/base/nsiglobalhistory3.idlscriptable this interface provides information about global history to gecko.
...lly created as part of nsiglobalhistory2, but was split off during the transition to places.
...s_link_visited_event_topic to observers for redirect pages.
nsIHTMLEditor
editor/idl/nsihtmleditor.idlscriptable please add a summary to this article.
... and if the css pref is currently checked.
...e "href" attribute set).
nsIHttpHeaderVisitor
netwerk/protocol/http/nsihttpheadervisitor.idlscriptable this interface is used to view http request and response headers.
... netwerk/protocol/http/nsihttpheadervisitor.idlscriptable this interface is used to view http request and response headers.
... netwerk/protocol/http/nsihttpheadervisitor.idlscriptable this interface is used to view http request and response headers.
nsIIDNService
netwerk/dns/nsiidnservice.idlscriptable this interface provides support for internationalized domain names, including methods for manipulating idn hostnames according to ietf specification.
...pport for internationalized domain names, including methods for manipulating idn hostnames according to ietf specification.
...s.classes["@mozilla.org/network/idn-service;1"] .getservice(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.
nsIInputStreamCallback
xpcom/io/nsiasyncinputstream.idlscriptable this is a companion interface for nsiasyncinputstream.asyncwait().
... xpcom/io/nsiasyncinputstream.idlscriptable this is a companion interface for nsiasyncinputstream.asyncwait().
...it().
nsIJetpack
js/jetpack/nsijetpack.idlscriptable this interface enables communication between the chrome process and a remote jetpack process.
...od overview void sendmessage(in astring amessagename /* [optional] in jsval v1, [optional] in jsval v2, ...
...sage(in astring amessagename /* [optional] in jsval v1, [optional] in jsval v2, ...
nsIJetpackService
js/jetpack/nsijetpackservice.idlscriptable this interface enables the creation of new jetpack processes.
... js/jetpack/nsijetpackservice.idlscriptable this interface enables the creation of new jetpack processes.
... js/jetpack/nsijetpackservice.idlscriptable this interface enables the creation of new jetpack processes.
nsILocalFileMac
xpcom/io/nsilocalfilemac.idlscriptable please add a summary to this article.
... combined size of both the data fork and the resource fork (if present) rather than just the size of the data fork as returned by getfilesize() read only.
..._macosx.
nsILoginInfo
o.idlscriptable please add a summary to this article.
...word astring the password for the login.
...n empty string ("").
nsIMIMEInputStream
ers and a datastream.
...nsimimeinputstream); method overview void addheader(in string name, in string value); void setdata(in nsiinputstream stream); attributes attribute type description addcontentlength boolean when true a "content-length" header is automatically added to the stream.
...ute type description addcontentlength boolean when true a "content-length" header is automatically added to the stream.
nsIMemoryMultiReporter
l of a large data structure), you can use a multi-reporter to do so.
...all of this multi-reporter's measurements that have a path that starts with "explicit" and are of the kind kind_nonheap.
... note: this is a hack that makes nsimemoryreportermanager.explicit more efficient.
nsIMemoryMultiReporterCallback
xpcom/base/nsimemoryreporter.idlscriptable implement this interface to handle callbacks from nsimemorymultireporter instances.
...ndle callbacks from nsimemorymultireporter instances.
...ed gecko 7.0 inherits from: nsisupports last changed in gecko 7.0 (firefox 7.0 / thunderbird 7.0 / seamonkey 2.4) method overview void callback(in acstring process, in autf8string path, in print32 kind, in print32 units, in print64 amount, in autf8string description, in nsisupports closure); methods callback() called to provide information from a multi-reporter.
nsIMemoryReporterManager
xpcom/base/nsimemoryreporter.idlscriptable a service that provides methods for managing nsimemoryreporter objects.
...manager;1 as a service: var reportermanager = components.classes["@mozilla.org/memory-reporter-manager;1"] .getservice(components.interfaces.nsimemoryreportermanager); each memory reporter object, which implements nsimemoryreporter interface, provides information for a given code area.
...resting, and is moderately difficult to compute in javascript.
nsIMessageListenerManager
nterfaces.
...henclosed) 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 messagename.
...listener to invoke when a message is received.
nsIMicrosummaryGenerator
nents/places/public/nsimicrosummaryservice.idlscriptable this interface provides access to a microsummary that has been installed in firefox.
...the generator.
...al locations (uri attribute) are equal.
nsIMicrosummaryObserver
toolkit/components/places/public/nsimicrosummaryservice.idlscriptable this interface provides methods for observing changes to micrummaries.
... toolkit/components/places/public/nsimicrosummaryservice.idlscriptable this interface provides methods for observing changes to micrummaries.
...1.8 obsolete gecko 6.0 inherits from: nsisupports last changed in gecko 1.9 (firefox 3) warning: microsummary support was removed in gecko 6.0 (firefox 6.0 / thunderbird 6.0 / seamonkey 2.3) method overview void oncontentloaded(in nsimicrosummary microsummary); void onelementappended(in nsimicrosummary microsummary); void onerror(in nsimicrosummary microsummary); methods oncontentloaded() called when an observed microsummary updates its content.
nsIMsgAccountManagerExtension
egister any new account manager extensions via the the category manager at start up.
...anager extension.
...perty file and the xul page as well as the name of the localized string contained in the property file.
nsIMsgCustomColumnHandler
e/public/nsimsgcustomcolumnhandler.idlscriptable please add a summary to this article.
...arow, acol) { }, getsortstringforrow: function(ahdr) { return ""; }, isstring: function() {return true;}, getcellproperties: function(arow, acol, aprops) { }, getrowproperties: function(arow, aprops) { }, getimagesrc: function(arow, acol) {return null;}, getsortlongforrow: function(ahdr) {return 0;} } to attach it use the nsimsgdbview.addcolumnhandler() method (recall gdbview is the global nsimsgdbview in thunderbird): gdbview.addcolumnhandler("newcolumn", columnhandler); after which it can be retrieved using the nsimsgdbview.getcolumnhandler() method: var handler = gdbview.getcolumnhandler("newcolumn"); and removed using the nsimsgdbview.removecolumnhandler() method: gdbview.removecolumnhandler("newcolumn"); method overview astring getsortstr...
...); after which it can be retrieved using the nsimsgdbview.getcolumnhandler() method: var handler = gdbview.getcolumnhandler("newcolumn"); and removed using the nsimsgdbview.removecolumnhandler() method: gdbview.removecolumnhandler("newcolumn"); method overview astring getsortstringforrow(in nsimsgdbhdr ahdr); unsigned long getsortlongforrow(in nsimsgdbhdr ahdr); boolean isstring(); methods getsortstringforrow() if the column displays a string, this will return the string that the column should be sorted by.
nsIMsgDBView
.createinstance(components.interfaces.nsimsgdbview); where type designates different types of view's available.
... db nsimsgdatabase readonly: the current database of messages.
...erface: nsmsgviewcommandtype.
nsIMsgDatabase
the nsimsgdatabase interface is an abstract interface used to access the mail database backend.
...donly: nextpseudomsgkey nsmsgkey for undo-redo of move pop->imap.
...instigator); ismdnneeded() markmdnneeded only used when mail server is a pop3 server, or when the imap server does not support user defined permanentflags.
nsIMsgFilterCustomAction
actionvalue is valid */ autf8string validateactionvalue(in autf8string actionvalue, in nsimsgfolder actionfolder, in nsmsgfiltertypetype filtertype); /* allow duplicate actions in the same filter list?
... */ autf8string validateactionvalue(in autf8string actionvalue, in nsimsgfolder actionfolder, in nsmsgfiltertypetype filtertype); /* allow duplicate actions in the same filter list?
... * that the action does correct notifications to maintain counts, and correct * manipulations of both imap and local non-database storage of message * metadata.
nsIMsgSearchSession
then call search().
... 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 term.
...ring attribute.
nsIMutableArray
nterface to nsimutablearray unless they own the array.
...te also that null elements can be created as a side effect of insertelementat().
...the call, but the allocation fails.
nsINavHistoryResult
he puzzle; they define how the data looks and how the data is interacted with.
...the viewer then tells the actual view object what to do.
... true, notifications are suppressed.
nsIOutputStreamCallback
xpcom/io/nsiasyncoutputstream.idlscriptable this is a companion interface for nsiasyncoutputstream.asyncwait.
... xpcom/io/nsiasyncoutputstream.idlscriptable this is a companion interface for nsiasyncoutputstream.asyncwait.
...eam.asyncwait.
nsIPluginHost
dom/plugins/base/nsipluginhost.idlscriptable please add a summary to this article.
...stance(in string amimetype, in nsiuri aurl, in nsiplugininstanceowner aowner); native code only!
...ledfortype( in string amimetype ); parameters amimetype native code only!loadplugins void loadplugins(); parameters none.
nsIProcess2
xpcom/threads/nsiprocess.idlscriptable this interface represents an executable process.
...rom: nsiprocess last changed in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) gecko 1.9.2 note this interface was removed in gecko 1.9.2 and its method added to nsiprocess.
...cess.
nsIProfileLock
toolkit/profile/public/nsitoolkitprofile.idlscriptable an object returned by the nsitoolkitprofile.lock method; as long as you hold a reference to the object, the profile remains locked.
... toolkit/profile/public/nsitoolkitprofile.idlscriptable an object returned by the nsitoolkitprofile.lock method; as long as you hold a reference to the object, the profile remains locked.
...localfile a directory corresponding to the main profile directory, which exists for the purpose of storing data on the local filesystem, including cache files or other data files that may not represent critical user data.
nsIProfileUnlocker
profile/public/nsiprofileunlocker.idlscriptable returned by the nsitoolkitprofile.lock method; you can use this to attempt to force a profile to be unlocked.
... profile/public/nsiprofileunlocker.idlscriptable returned by the nsitoolkitprofile.lock method; you can use this to attempt to force a profile to be unlocked.
...supports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) method overview void unlock(in unsigned long aseverity); constants constant value description attempt_quit 0 politely ask the process currently holding the profile's lock to quit.
nsIPrompt
table this is the prompt interface which can be used without knowledge of a parent window.
...tinterface though which it is obtained.
...indow parameter.
nsIProperties
xpcom/ds/nsiproperties.idlscriptable this interface provides methods to access a map of named xpcom object values.
...xpcom/ds/nsiproperties.idlscriptable this interface provides methods to access a map of named xpcom object values.
...e/directory_service;1"] .getservice(components.interfaces.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.
nsIProxyInfo
long this attribute specifies flags that modify the proxy type.
...st method.
... "http" - http proxy (or ssl connect for https) "socks" - socks v5 proxy "socks4" - socks v4 proxy "direct" - no proxy "unknown" - unknown proxy (see nsiprotocolproxyservice.resolve()) a future version of this interface may define additional types.
nsIPushMessage
dom/interfaces/push/nsipushnotifier.idlscriptable a push message sent to a system subscription.
...ports last changed in gecko 46.0 (firefox 46.0 / thunderbird 46.0 / seamonkey 2.43) nsipushmessage is the subject of a push-message observer notification.
...son.
nsIPushSubscription
irefox 46.0 / thunderbird 46.0 / seamonkey 2.43) each subscription is associated with a unique url generated by the push service.
... description endpoint domstring the subscription url.
...in domstring name, [optional] out uint32_t keylen, [array, size_is(keylen), retval] out uint8_t key ); parameters name the encryption key name.
nsISHistory
ct can be obtained from nsiwebnavigation.
...hold for each instance.
...() to obtain handle the nsisimpleenumerator object.
nsIScreen
provides information about a display screen.
...reen rotation constants requires gecko 13.0(firefox 13.0 / thunderbird 13.0 / seamonkey 2.10) constant value description rotation_0_deg 0 0° of rotation (that is, no rotation, or default orientation).
...ut long height ); parameters left the left edge of the screen's rectangle.
nsISelection2
content/base/public/nsiselection2.idlscriptable please add a summary to this article.
... in print32 endoffset, in prbool allowadjacent, in rangearray results); native code only!
...ollintoview( in short aregion, in boolean aissynchronous, in short avpercent, in short ahpercent ); parameters aregion the region inside the selection to scroll into view (see selection region constants defined in nsiselectioncontroller).
nsISocketProviderService
netwerk/socket/nsisocketproviderservice.idlscriptable provides a mapping between a socket type and its associated socket provider instance.
... netwerk/socket/nsisocketproviderservice.idlscriptable provides a mapping between a socket type and its associated socket provider instance.
...table provides a mapping between a socket type and its associated socket provider instance.
nsISocketTransportService
could also use the service manager directly.
...nit(); obsolete since gecko 1.8 void notifywhencanattachsocket(in nsirunnable aevent); native code only!
...boolean controls whether or not the socket transport service should poke the autodialer on connection failure.
nsIStringBundle
intl/strres/nsistringbundle.idlscriptable this interface provides functions for retrieving both formatted and unformatted strings from a properties file.
...ng both formatted and unformatted strings from a properties file.
... wstring formatstringfromid(in long aid, [array, size_is(length)] in wstring params, in unsigned long length); wstring formatstringfromname(in wstring aname, [array, size_is(length)] in wstring params, in unsigned long length); nsisimpleenumerator getsimpleenumeration(); wstring getstringfromid(in long aid); wstring getstringfromname(in wstring aname); methods formatstringfromid() returns a formatted string with the given id from the string bundle, where each occurrence of %s (uppercase) is replaced by each successive element in the supplied array.
nsIStringBundleService
dle service, which provides a way to fetch localized strings from a property file.
...@mozilla.org/intl/stringbundle;1"] .getservice(components.interfaces.nsistringbundleservice); method overview nsistringbundle createbundle(in string aurlspec); nsistringbundle createextensiblebundle(in string aregistrykey); void flushbundles(); wstring formatstatusmessage(in nsresult astatus, in wstring astatusarg); methods createbundle() nsistringbundle createbundle( in string aurlspec ); parameters aurlspec the url of the properties file to load.
...undle cache - useful when the locale changes or when we need to get some extra memory back.
nsISupportsCString
xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for ascii character strings.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for ascii character strings.
...nsisupportsprimitives.idlscriptable this interface provides scriptable access for ascii character strings.
nsISupportsChar
xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for single character values (often used to store an ascii character).
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for single character values (often used to store an ascii character).
...nsisupportsprimitives.idlscriptable this interface provides scriptable access for single character values (often used to store an ascii character).
nsISupportsDouble
xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for double-precision floating-point values.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for double-precision floating-point values.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for double-precision floating-point values.
nsISupportsFloat
xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for single-precision floating-point values.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for single-precision floating-point values.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for single-precision floating-point values.
nsISupportsID
xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for boolean values.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for boolean values.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for boolean values.
nsISupportsPRBool
xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for boolean values.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for boolean values.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for boolean values.
nsISupportsPRInt16
xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for 16-bit signed integers.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for 16-bit signed integers.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for 16-bit signed integers.
nsISupportsPRInt32
xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for 32-bit signed integers.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for 32-bit signed integers.
...supportsprimitives.idlscriptable this interface provides scriptable access for 32-bit signed integers.
nsISupportsPRInt64
xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for 64-bit signed integers.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for 64-bit signed integers.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for 64-bit signed integers.
nsISupportsPRTime
xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for prtime values.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for prtime values.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for prtime values.
nsISupportsPRUint16
xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for 16-bit unsigned integers.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for 16-bit unsigned integers.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for 16-bit unsigned integers.
nsISupportsPRUint32
xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for 32-bit unsigned integers.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for 32-bit unsigned integers.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for 32-bit unsigned integers.
nsISupportsPRUint64
xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for 64-bit unsigned integers.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for 64-bit unsigned integers.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for 64-bit unsigned integers.
nsISupportsPRUint8
xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for 8-bit unsigned integers.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for 8-bit unsigned integers.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for 8-bit unsigned integers.
nsISupportsPriority
gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) this interface does not strictly define what happens when the priority of an object is changed.
....
...initialized to priority_normal, but implementations may choose to assign a different initial value.
nsISupportsString
xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for unicode character strings.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for unicode character strings.
...sisupportsprimitives.idlscriptable this interface provides scriptable access for unicode character strings.
nsITXTToHTMLConv
erk/streamconv/public/nsitxttohtmlconv.idlscriptable this interface allows you to modify the conversion from plain text to html.
...rits from: nsistreamconverter last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) implemented by "@mozilla.org/streamconv;1?from=text/plain&to=text/html".
... / thunderbird 1.5 / seamonkey 1.0) implemented by "@mozilla.org/streamconv;1?from=text/plain&to=text/html".
nsITaskbarPreview
ptable this interface is used on microsoft windows as a common interface for both window and tab taskbar previews.
...bar preview, and is responsible for determining the size and contents of the preview, which buttons are displayed, and how the application responds to user actions on the preview.
...ndicates whether or not the preview is visible; by default, this is false.
nsITelemetry
ed over time to allow generating histograms.
... 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 acstring acategory, in boolean aenabled); jsval snapshotevents(in uint32_t adataset, [optional] in boolean aclear); void registerevents(in acstring acategory, in jsval aeventdata); void registerscalars(in acstring acategoryname, in jsval ascalardata); ...
...r storing a string value.
nsIThreadManager
the nsithreadmanager interface lets applications and extensions create and manage threads, each of which is represented by an nsithread.
... nsithread the currently executing thread.
...s not already have a nsithread associated with it, one is created and associate with the current prthread.
nsIToolkitProfile
toolkit/profile/public/nsitoolkitprofile.idlscriptable represents a user profile.
...oolean removefiles); attributes attribute type description localdir nsilocalfile the location of the profile local directory, which may be the same as the root directory.
... description localdir nsilocalfile the location of the profile local directory, which may be the same as the root directory.
nsIToolkitProfileService
o 4.0 and thunderbird up to 3.3 you can launch with the -profilemanager command line flag.
...urrently in existence.
... file.
nsITraceableChannel
tener" below).
...ll be able to pass the data on to the original nsistreamlistener (possibly modifying it).
...n nsistreamlistener to be notified of events on the http channel.
nsITransport
netwerk/base/public/nsitransport.idlscriptable this interface provides a common way of accessing i/o streams connected to some resource.
...ed by this interface (that is, data is being transfered in some fashion via the streams exposed by this interface).
...et); constants open flags.
nsITreeColumns
the nsitreecolumns interface represents the tree columns.
...); nsitreecolumn getprimarycolumn(); nsitreecolumn getsortedcolumn(); void invalidatecolumns(); void restorenaturalorder(); attributes attribute type description count long the number of columns.
... for a given name.
nsIURLFormatter
toolkit/components/urlformatter/public/nsiurlformatter.idlscriptable this interface exposes methods to substitute variables in url formats.
...te variables in url formats.
...n gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) variable names can contain 'a-z' letters and '_' characters.
nsIURLParser
netwerk/base/public/nsiurlparser.idlscriptable specifies the interface to an url parser that attempts to follow the definitions of rfc 2396.
...hostnamelen, out long port); void parseurl(in string spec, in long speclen, out unsigned long schemepos, out long schemelen, out unsigned long authoritypos, out long authoritylen, out unsigned long pathpos, out long pathlen); void parseuserinfo(in string userinfo, in long userinfolen, out unsigned long usernamepos, out long usernamelen, out unsigned long passwordpos, out long passwordlen); methods the string to parse in the methods may be given as a null terminated string, in which case the length argument should be -1.
...os, out long authoritylen, out unsigned long pathpos, out long pathlen); void parseuserinfo(in string userinfo, in long userinfolen, out unsigned long usernamepos, out long usernamelen, out unsigned long passwordpos, out long passwordlen); methods the string to parse in the methods may be given as a null terminated string, in which case the length argument should be -1.
nsIUploadChannel
netwerk/base/public/nsiuploadchannel.idlscriptable a channel may optionally implement this interface if it supports the notion of uploading a data stream.
...the upload stream may only be set prior to the invocation of asyncopen on the channel.
...the uploaded stream and that any required headers are already encoded in the stream.
nsIWeakReference
ence.idlscriptable this interface represents a proxy for an xpcom object.
...indirect, non-owning reference to an xpcom object.
...e to an xpcom object.
nsIWebBrowser
associate the new web browser instance with the embedders chrome and to register any listeners.
...is set to an object that implements nsisupportsweakreference, the implementation should get the nsiweakreference and hold that.
...that a non null value is always valid.
nsIWebNavigation
docshell/base/nsiwebnavigation.idlscriptable defines an interface for navigating the web.
...gecko 1.9 (firefox 3) this interface is implemented by the following components: * @mozilla.org/browser/shistory-internal;1 * @mozilla.org/browser/shistory;1 * @mozilla.org/embedding/browser/nswebbrowser;1 * @mozilla.org/docshell;1 gecko 1.9.2 note in gecko 1.9.2 (firefox 3.6), the @mozilla.org/webshell;1 component no longer exists; you need to use @mozilla.org/docshell;1 instead.
...ieves the current dom document for the frame, or lazily creates a blank document if there is none.
nsIWebNavigationInfo
b navigation objects.
... plugin 2 returned by istypesupported() to indicate that a type is supported via an npapi ("netscape 4 api") plug-in.
...) to indicate that a type is supported via some other means.
nsIWebSocketListener
netwerk/protocol/websocket/nsiwebsocketlistener.idlscriptable implement this interface to receive websocket traffic events asynchronously after calling nsiwebsocketchannel.asyncopen().
...asize); void onbinarymessageavailable(in nsisupports acontext, in acstring amsg); void onmessageavailable(in nsisupports acontext, in autf8string amsg); void onserverclose(in nsisupports acontext, in unsigned short acode, in autf8string areason); void onstart(in nsisupports acontext); void onstop(in nsisupports acontext, in nsresult astatuscode); methods onacknowledge() called to acknowledge a message sent via nsiwebsocketchannel.sendmsg() or nsiwebsocketchannel.sendbinarymsg().
... amsg the message data.
nsIWebappsSupport
toolkit/components/webapps/nsiwebappssupport.idlscriptable please add a summary to this article.
...bapps/nsiwebappssupport.idlscriptable please add a summary to this article.
...ble please add a summary to this article.
nsIWindowCreator
embedding/base/nsiwindowcreator.idlscriptable a callback interface used by gecko to create new browser windows.
...d by gecko to create new browser windows.
...r an embedding app, must provide an implementation of the window watcher component and notify the windowwatcher during application initialization.
nsIWritablePropertyBag2
xpcom/ds/nsiwritablepropertybag2.idlscriptable this interface extends nsipropertybag2 with methods for setting properties.
... xpcom/ds/nsiwritablepropertybag2.idlscriptable this interface extends nsipropertybag2 with methods for setting properties.
...e(in astring prop, in double value); void setpropertyasint32(in astring prop, in print32 value); void setpropertyasint64(in astring prop, in print64 value); void setpropertyasinterface(in astring prop, in nsisupports value); void setpropertyasuint32(in astring prop, in pruint32 value); void setpropertyasuint64(in astring prop, in pruint64 value); methods setpropertyasacstring() void setpropertyasacstring( in astring prop, in acstring value ); parameters prop property to set the value of.
nsIXFormsModelElement
extensions/xforms/nsixformsmodelelement.idlscriptable defines scriptable methods for manipulating instance data and updating computed and displayed values.
... extensions/xforms/nsixformsmodelelement.idlscriptable defines scriptable methods for manipulating instance data and updating computed and displayed values.
...nce data and updating computed and displayed values.
nsIZipReader
modules/libjar/nsizipreader.idlscriptable this interface provides methods for reading compressed (zip) files.
...gecko 10.0 (firefox 10.0 / thunderbird 10.0 / seamonkey 2.7), the nsizipreader api supports a limited 8 bit code page usage.
...e gecko 10 void test(in autf8string aentryname); void test(in string aentryname); obsolete since gecko 10 attributes attribute type description file nsifile the file that represents the zip with which this zip reader was initialized.
nsIZipReaderCache
table please add a summary to this article.
...ar/zip-reader-cache;1"] .createinstance(components.interfaces.nsizipreadercache); method overview nsizipreader getinnerzip(in nsifile zipfile, in autf8string zipentry); nsizipreader getinnerzip(in nsifile zipfile, in string zipentry); obsolete since gecko 10 nsizipreader getzip(in nsifile zipfile); void init(in unsigned long cachesize); methods getinnerzip() returns a (possibly shared) cached nsizipreader for a zip inside another zip.
...ry the zip entry.
XPCOM Thread Synchronization
xpcom thread synchronization primitives have the same semantics as those in nspr, and each method of these synchronization objects (e.g.
...ck for null // ...
...lt init() { // ...
Using nsIDirectoryService
er than requiring the same disk layout as seamonkey.
...ng the same disk layout as seamonkey.
...oryservice.registerprovider().
wrappedJSObject
pconnect wrappers that support the wrappedjsobject property: xpcnativewrappers which are used to protect the chrome code working with content objects.
...oworld)) throw components.results.ns_error_no_interface; return this; } }; xpconnect wrapping now let's get a reference to our component.
...use it is defined in the nsisupports interface, and the wrapper knows the underlying object implements nsisupports: > comp.queryinterface(components.interfaces.nsihelloworld); [xpconnect wrapped (nsisupports, nsihelloworld)] as you can see, the queryinterface call also made the wrapper know about the other interface our component supports.
Address Book examples
vice(components.interfaces.nsiabmanager); let alladdressbooks = abmanager.directories; while (alladdressbooks.hasmoreelements()) { let ab = alladdressbooks.getnext(); if (ab instanceof components.interfaces.nsiabdirectory && !ab.isremote) { let searchresult = abmanager.getdirectory(ab.uri + "?" + searchquery).childcards; // ...
...ion about acard's photo.
...he requested photo in the img tag with id * atargetid.
Address book sync client design
include "nsrootidl.idl" #include "nsifilespec.idl" [scriptable, uuid(e0ed29e0-098a-11d4-8fd6-00a024a7d144)] interface nsiabsynclistener : nsisupports { /** * notify the observer that the ab sync authorization operation has begun.
... - the id for this particular request * astatus - status code for the sync request * amsg - a text string describing the error (if any).
...s occurred for the ab sync operation */ void onprogress(in print32 atransactionid, in pruint32 aprogress, in pruint32 aprogressmax); /** * notify the observer with a status message for sync operation */ void onstatus(in print32 atransactionid, in wstring amsg); /** * notify the observer that the ab sync operation has been completed.
Access Thunderbird Window Areas
to access particular parts of the thunderbird window you can use these helper methods.
... to access particular parts of the thunderbird window you can use these helper methods.
...ve to these methods is to directly access the element by it's id as in the detect when a folder opens example.
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.
...s a pointer to an indeterminate type of data.
Browser Side Plug-in API - Plugins
« previousnext » this chapter describes methods in the plug-in api that are available from the browser.
... « previousnext » this chapter describes methods in the plug-in api that are available from the browser.
... to indicate that they are implemented by the browser and called by the plug-in.
Plug-in Basics - Plugins
.
...ction is an overview of basic information you will need as you develop plug-ins.
...ons and a set of shared data structures.
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.
... « previousnext » this chapter describes methods in the plug-in api that are available for the plug-in object.
...next » this chapter describes methods in the plug-in api that are available for the plug-in object.
AbstractWorker - Web APIs
the abstractworker interface of the web workers api is an abstract interface that defines properties and methods that are common to all types of worker, including not only the basic worker, but also serviceworker and sharedworker.
...e common to all types of worker, including not only the basic worker, but also serviceworker and sharedworker.
...ut also serviceworker and sharedworker.
Animation.finish() - Web APIs
Web › API › Animation › finish
the finish() method of the web animations api's animation interface sets the current playback time to the end of the animation corresponding to the current playback direction.
... the finish() method of the web animations api's animation interface sets the current playback time to the end of the animation corresponding to the current playback direction.
...mation is playing in reverse (having had its reverse() method called), it sets the playback time to 0.
AnimationEvent.initAnimationEvent() - Web APIs
summary the animationevent.initanimationevent() method initializes an animation event created using the deprecated document.createevent("animationevent") method.
... summary the animationevent.initanimationevent() method initializes an animation event created using the deprecated document.createevent("animationevent") method.
...the animationevent.initanimationevent() method initializes an animation event created using the deprecated document.createevent("animationevent") method.
AnimationEvent - Web APIs
art event, elapsedtime is 0.0 unless there was a negative value for animation-delay, in which case the event will be fired with elapsedtime containing (-1 * delay).
...is 0.0 unless there was a negative value for animation-delay, in which case the event will be fired with elapsedtime containing (-1 * delay).
... read only is a domstring, starting with '::', containing the name of the pseudo-element the animation runs on.
AudioBufferSourceNode - Web APIs
if the audiobuffersourcenode has not already reached the end of the buffer.
...aram that defines the speed factor at which the audio asset will be played, where a value of 1.0 is the sound's natural sampling rate.
...the speed factor at which the audio asset will be played, where a value of 1.0 is the sound's natural sampling rate.
AudioDestinationNode - Web APIs
on property.
... number of inputs 1 number of outputs 0 channel count mode "explicit" channel count 2 channel interpretation "speakers" properties inherits properties from its parent, audionode.
...s 1 number of outputs 0 channel count mode "explicit" channel count 2 channel interpretation "speakers" properties inherits properties from its parent, audionode.
AudioListener.setOrientation() - Web APIs
the setorientation() method of the audiolistener interface defines the orientation of the listener.
...ead.
...ut our panner-node example (view the source code) — this demo transports you to the 2.5d "room of metal", where you can play a track on a boom box and then walk around the boom box to see how the sound changes!
AudioListener.setPosition() - Web APIs
the setposition() method of the audiolistener interface defines the position of the listener.
...ht-hand cartesian coordinate system.
...ut our panner-node example (view the source code) — this demo transports you to the 2.5d "room of metal", where you can play a track on a boom box and then walk around the boom box to see how the sound changes!
AudioParam.value - Web APIs
Web › API › AudioParam › value
u set it to.
...ach render quantum, the browser does the following things related to managing the value of a parameter: if the value setter has been used, the parameter's value is changed to the value given.
... equals or exceeds the time specified by a previous call to setvalueattime(), the value is changed to the value passed into setvalueattime().
AudioWorklet - Web APIs
the worklet's code is run in the audioworkletglobalscope global execution context, using a separate web audio thread which is shared by the worklet and other audio nodes.
...audioworkletglobalscope global execution context, using a separate web audio thread which is shared by the worklet and other audio nodes.
...b audio thread which is shared by the worklet and other audio nodes.
AudioWorkletGlobalScope - Web APIs
8 (the size of a render quantum) after the processing of each audio block.
... the constructor of a custom audioworkletprocessor.
...sor, and register it.
AudioWorkletNode - Web APIs
th this mechanism it is possible to make your own audioparam objects accessible from your audioworkletnode.
... possible to make your own audioparam objects accessible from your audioworkletnode.
... can then use their values in the associated audioworkletprocessor.
BaseAudioContext.createPanner() - Web APIs
the createpanner() method of the baseaudiocontext interface is used to create a new pannernode, which is used to spatialize an incoming audio stream in 3d space.
...an incoming audio stream in 3d space.
...ut our panner-node example (view the source code) — this demo transports you to the 2.5d "room of metal", where you can play a track on a boom box and then walk around the boom box to see how the sound changes!
BasicCardRequest - Web APIs
t spec).
...ns an official list of approved card network identifier strings, which may be used in the supportednetworks list.
...etails of the actual order (such as items bought and shipping options), and an optional object that describes what data is needed to fullfil the payment (e.g., a shipping address).
BatteryManager - Web APIs
the batterymanager interface provides ways to get information about the system's battery charge level.
...argingtimechange a handler for the chargingtimechange event; this event is sent when the battery charging time is updated batterymanager.ondischargingtimechange a handler for the dischargingtimechange event; this event is sent when the battery discharging time is updated.
...dler for the levelchange event; this event is sent when the battery level is updated.
Blob.text() - Web APIs
Web › API › Blob › text
the text() method in the blob interface returns a promise that resolves with a string containing the contents of the blob, interpreted as utf-8.
...tring containing the contents of the blob, interpreted as utf-8.
... the blob, interpreted as utf-8.
BlobBuilder - Web APIs
the blobbuilder interface provides an easy way to construct blob objects.
... the blobbuilder interface provides an easy way to construct blob objects.
...builder interface has been deprecated in favor of the newly introduced blob constructor.
BlobEvent - Web APIs
Web › API › BlobEvent
ent.
...red on the eventtarget because of something happening on that specific blob.
...arget because of something happening on that specific blob.
CSS.escape() - Web APIs
Web › API › CSS › escape
the css.escape() static method returns a cssomstring containing the escaped string passed as parameter, mostly for use as part of a css selector.
...ped.
... // "\(\)\[\]\{\}" css.escape('--a') // "--a" css.escape(0) // "\30 ", the unicode code point of '0' is 30 css.escape('\0') // "\ufffd", the unicode replacement character in context uses to escape a string for use as part of a selector, the escape() method can be used: var element = document.queryselector('#' + css.escape(id) + ' > img'); the escape() method can also be used for escaping strings, although it escapes characters that don't strictly need to be escaped: var element = document.queryselector('a[href="#' + css.escape(fragment) + '"]'); specification specification status comment css object model (cssom)the definition of 'css.escape()' in that specification.
CSSCounterStyleRule - Web APIs
e speak-as descriptor defined for the associated rule.
...if the descriptor was not specified in the associated rule, the attribute returns an empty string.
...s not specified in the associated rule, the attribute returns an empty string.
CSSGroupingRule - Web APIs
rulelist cssrules; unsigned long insertrule (domstring rule, unsigned long index); void deleterule (unsigned long index); } properties common to all cssgroupingrule instances the cssgroupingrule derives from cssrule and inherits all properties of this class.
...(unsigned long index); } properties common to all cssgroupingrule instances the cssgroupingrule derives from cssrule and inherits all properties of this class.
...n to all cssgroupingrule instances the cssgroupingrule derives from cssrule and inherits all properties of this class.
CSSKeyframeRule - Web APIs
e.keyframe_rule).
...e also implements the properties of these interfaces.
...rfaces.
CSSKeyframesRule - Web APIs
plements the cssrule interface with a type value of 7 (cssrule.keyframes_rule).
...le.keyframes_rule).
...skeyframesrule also implements the properties of these interfaces.
CSSMediaRule - Web APIs
ace cssmediarule : cssconditionrule { readonly attribute medialist media; } properties as a cssconditionrule, and therefore both a cssgroupingrule and a cssrule, cssmediarule also implements the properties of these interfaces.
...and therefore both a cssgroupingrule and a cssrule, cssmediarule also implements the properties of these interfaces.
...rule, cssmediarule also implements the properties of these interfaces.
CSSNamespaceRule - Web APIs
g?
...lso implements the properties of that interface.
...e.
CSSPageRule - Web APIs
e domstring selectortext; readonly attribute cssstyledeclaration style; }; properties as a cssrule, csspagerule also implements the properties of this interface.
...declaration style; }; properties as a cssrule, csspagerule also implements the properties of this interface.
...le, csspagerule also implements the properties of this interface.
CSSStyleDeclaration - Web APIs
the cssstyledeclaration interface represents an object that is a css declaration block, and exposes style information and various style-related methods and properties.
...tyledeclaration object on the first css rule in the document's first stylesheet.
...ing this attribute changes the style.
CSSSupportsRule - Web APIs
e, and therefore the cssrule and cssgroupingrule interfaces with a type value of 12 (cssrule.supports_rule).
...tax the syntax is described using the webidl format.
...format.
Cache.delete() - Web APIs
Web › API › Cache › delete
the delete() method of the cache interface finds the cache entry whose key is the request, and if found, deletes the cache entry and returns a promise that resolves to true.
...st object or a url.
...lete operation.
Cache.keys() - Web APIs
Web › API › Cache › keys
the keys() method of the cache interface returns a promise that resolves to an array of cache keys.
...uest object or a url.
...keys operation.
Cache.matchAll() - Web APIs
Web › API › Cache › matchAll
the matchall() method of the cache interface returns a promise that resolves to an array of all matching responses in the cache object.
...is cache.
...hing performed.
CacheStorage - Web APIs
erty.
...checking the "enable service workers over http (when toolbox is open)" option in the firefox devtools options/gear menu.
... already exist.) cachestorage.delete() finds the cache object matching the cachename, and if found, deletes the cache object and returns a promise that resolves to true.
CanvasGradient - Web APIs
the canvasgradient interface represents an opaque object describing a gradient.
... the canvasgradient interface represents an opaque object describing a gradient.
... the canvasgradient interface represents an opaque object describing a gradient.
CanvasRenderingContext2D.addHitRegion() - Web APIs
the canvasrenderingcontext2d method addhitregion() adds a hit region to the bitmap.
...s cursor.
...vas) to which events are to be routed.
CanvasRenderingContext2D.arc() - Web APIs
the canvasrenderingcontext2d.arc() method of the canvas 2d api adds a circular arc to the current sub-path.
... the canvasrenderingcontext2d.arc() method of the canvas 2d api adds a circular arc to the current sub-path.
...which the arc starts in radians, measured from the positive x-axis.
CanvasRenderingContext2D.beginPath() - Web APIs
the canvasrenderingcontext2d.beginpath() method of the canvas 2d api starts a new path by emptying the list of sub-paths.
... the canvasrenderingcontext2d.beginpath() method of the canvas 2d api starts a new path by emptying the list of sub-paths.
... of sub-paths.
CanvasRenderingContext2D.clearHitRegions() - Web APIs
the canvasrenderingcontext2d method clearhitregions() removes all hit regions from the canvas.
... the canvasrenderingcontext2d method clearhitregions() removes all hit regions from the canvas.
... the canvasrenderingcontext2d method clearhitregions() removes all hit regions from the canvas.
CanvasRenderingContext2D.clearRect() - Web APIs
the canvasrenderingcontext2d.clearrect() method of the canvas 2d api erases the pixels in a rectangular area by setting them to transparent black.
...enderingcontext2d.clearrect() method of the canvas 2d api erases the pixels in a rectangular area by setting them to transparent black.
...d at the start of each frame in an animation.
CanvasRenderingContext2D.clip() - Web APIs
the canvasrenderingcontext2d.clip() method of the canvas 2d api turns the current or given path into the current clipping region.
...p([fillrule]); void ctx.clip(path [, fillrule]); parameters fillrule the algorithm by which to determine if a point is inside or outside the clipping region.
...region ctx.beginpath(); ctx.arc(100, 75, 50, 0, math.pi * 2); ctx.clip(); // draw stuff that gets clipped ctx.fillstyle = 'blue'; ctx.fillrect(0, 0, canvas.width, canvas.height); ctx.fillstyle = 'orange'; ctx.fillrect(0, 0, 100, 100); result specifying a path and a fillrule this example saves two rectangles to a path2d object, which is then made the current clipping region using the clip() method.
CanvasRenderingContext2D.drawImage() - Web APIs
the canvasrenderingcontext2d.drawimage() method of the canvas 2d api provides different ways to draw an image onto the canvas.
... the canvas or source rectangle width or height is zero.
... 124.
CanvasRenderingContext2D.drawWindow() - Web APIs
the deprecated, non-standard and internal only canvasrenderingcontext2d.drawwindow() method of the canvas 2d api renders a region of a window into the canvas.
...w_use_widget_layers 0x08 use the widget layer manager if available.
...nto the canvas.
CanvasRenderingContext2D.fill() - Web APIs
the canvasrenderingcontext2d.fill() method of the canvas 2d api fills the current or given path with the current fillstyle.
...d ctx.fill([fillrule]); void ctx.fill(path [, fillrule]); parameters fillrule the algorithm by which to determine if a point is inside or outside the filling region.
...path to fill.
CanvasRenderingContext2D.getImageData() - Web APIs
the canvasrenderingcontext2d method getimagedata() of the canvas 2d api returns an imagedata object representing the underlying pixel data for a specified portion of the canvas.
... the canvasrenderingcontext2d method getimagedata() of the canvas 2d api returns an imagedata object representing the underlying pixel data for a specified portion of the canvas.
...turns an imagedata object representing the underlying pixel data for a specified portion of the canvas.
CanvasRenderingContext2D.putImageData() - Web APIs
the canvasrenderingcontext2d.putimagedata() method of the canvas 2d api paints data from the given imagedata object onto the canvas.
... the canvasrenderingcontext2d.putimagedata() method of the canvas 2d api paints data from the given imagedata object onto the canvas.
... the canvasrenderingcontext2d.putimagedata() method of the canvas 2d api paints data from the given imagedata object onto the canvas.
CanvasRenderingContext2D.removeHitRegion() - Web APIs
the canvasrenderingcontext2d method removehitregion() removes a given hit region from the canvas.
... the canvasrenderingcontext2d method removehitregion() removes a given hit region from the canvas.
... the canvasrenderingcontext2d method removehitregion() removes a given hit region from the canvas.
CanvasRenderingContext2D.restore() - Web APIs
the canvasrenderingcontext2d.restore() method of the canvas 2d api restores the most recently saved canvas state by popping the top entry in the drawing state stack.
... the canvasrenderingcontext2d.restore() method of the canvas 2d api restores the most recently saved canvas state by popping the top entry in the drawing state stack.
... the canvasrenderingcontext2d.restore() method of the canvas 2d api restores the most recently saved canvas state by popping the top entry in the drawing state stack.
CanvasRenderingContext2D.scrollPathIntoView() - Web APIs
the canvasrenderingcontext2d.scrollpathintoview() method of the canvas 2d api scrolls the current or given path into view.
... the canvasrenderingcontext2d.scrollpathintoview() method of the canvas 2d api scrolls the current or given path into view.
... the canvasrenderingcontext2d.scrollpathintoview() method of the canvas 2d api scrolls the current or given path into view.
CanvasRenderingContext2D.stroke() - Web APIs
the canvasrenderingcontext2d.stroke() method of the canvas 2d api strokes (outlines) the current or given path with the current stroke style.
...a path; in other words, half of the stroke is drawn on the inner side, and half on the outer side.
...="canvas"></canvas> javascript const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); ctx.rect(10, 10, 150, 100); ctx.stroke(); result re-stroking paths typically, you'll want to call beginpath() for each new thing you want to stroke.
Compositing and clipping - Web APIs
osite shapes are built.
... achieve more or less the same effect in source-in and source-atop.
...e effect in source-in and source-atop.
Canvas API - Web APIs
imation, game graphics, data visualization, photo manipulation, and real-time video processing.
... the canvas api largely focuses on 2d graphics.
...ml <canvas id="canvas"></canvas> javascript the document.getelementbyid() method gets a reference to the html <canvas> element.
ChildNode.after() - Web APIs
Web › API › ChildNode › after
the childnode.after() method inserts a set of node or domstring objects in the children list of this childnode's parent, just after this childnode.
...xt"); console.log(parent.outerhtml); // "<div><p></p>text</div>" inserting an element and text var parent = document.createelement("div"); var child = document.createelement("p"); parent.appendchild(child); var span = document.createelement("span"); child.after(span, "text"); console.log(parent.outerhtml); // "<div><p></p><span></span>text</div>" childnode.after() is unscopable the after() method is not scoped into the with statement.
...ild); var span = document.createelement("span"); child.after(span, "text"); console.log(parent.outerhtml); // "<div><p></p><span></span>text</div>" childnode.after() is unscopable the after() method is not scoped into the with statement.
ChildNode.before() - Web APIs
Web › API › ChildNode › before
the childnode.before() method inserts a set of node or domstring objects in the children list of this childnode's parent, just before this childnode.
...); console.log(parent.outerhtml); // "<div>text<p></p></div>" inserting an element and text var parent = document.createelement("div"); var child = document.createelement("p"); parent.appendchild(child); var span = document.createelement("span"); child.before(span, "text"); console.log(parent.outerhtml); // "<div><span></span>text<p></p></div>" childnode.before() is unscopable the before() method is not scoped into the with statement.
...var span = document.createelement("span"); child.before(span, "text"); console.log(parent.outerhtml); // "<div><span></span>text<p></p></div>" childnode.before() is unscopable the before() method is not scoped into the with statement.
ChildNode.remove() - Web APIs
Web › API › ChildNode › remove
the childnode.remove() method removes the object from the tree it belongs to.
... the childnode.remove() method removes the object from the tree it belongs to.
...iv-02</div> <div id="div-03">here is div-03</div> var el = document.getelementbyid('div-02'); el.remove(); // removes the div with the 'div-02' id childnode.remove() is unscopable the remove() method is not scoped into the with statement.
ChildNode.replaceWith() - Web APIs
the childnode.replacewith() method replaces this childnode in the children list of its parent with a set of node or domstring objects.
...node cannot be inserted at the specified point in the hierarchy.
...ocument.createelement("span"); child.replacewith(span); console.log(parent.outerhtml); // "<div><span></span></div>" childnode.replacewith() is unscopable the replacewith() method is not scoped into the with statement.
Clients.matchAll() - Web APIs
Web › API › Clients › matchAll
the matchall() method of the clients interface returns a promise for a list of service worker client objects.
... the matchall() method of the clients interface returns a promise for a list of service worker client objects.
...current service worker.
Clients.openWindow() - Web APIs
the openwindow() method of the clients interface creates a new top level browsing context and loads a given url.
... the openwindow() method of the clients interface creates a new top level browsing context and loads a given url.
... the openwindow() method of the clients interface creates a new top level browsing context and loads a given url.
ClipboardEvent - Web APIs
odification of the clipboard, that is cut, copy, and paste events.
...ipboard, that is cut, copy, and paste events.
...ut, copy, and paste events.
ContentIndex.add() - Web APIs
Web › API › ContentIndex › add
the add() method of the contentindex interface registers an item with the content index.
...es with undefined exceptions typeerror if the service worker's registration is not present or the service worker does not contain a fetchevent.
...rticle' }; // our asynchronous function to add indexed content async function registercontent(data) { const registration = await navigator.serviceworker.ready; // feature detect content index if (!registration.index) { return; } // register content try { await registration.index.add(data); } catch (e) { console.log('failed to register content: ', e.message); } } the add method can also be used within the service worker scope.
ContentIndex - Web APIs
the contentindex interface of the content index api allows developers to register their offline enabled content with the browser.
...cess to the content index interface.
...d content below is an asynchronous function, that removes an item from the content index.
ContentIndexEvent - Web APIs
ntindexevent interface of the content index api defines the object used to represent the contentdelete event.
...elete method is called.
...ntentindexevent() creates and returns a new contentindexevent object whose type and other options are configured as specified.
Content Index API - Web APIs
cess to the content index interface.
...d content below is an asynchronous function, that removes an item from the content index.
...ent is received by the service worker.
ConvolverNode - Web APIs
operties from its parent, audionode.
...ent, audionode.
... convolvernode.buffer a mono, stereo, or 4-channel audiobuffer containing the (possibly multichannel) impulse response used by the convolvernode to create the reverb effect.
CredentialsContainer.preventSilentAccess() - Web APIs
the preventsilentaccess() method of the credentialscontainer interface sets a flag that specifies whether automatic log in is allowed for future visits to the current origin, then returns an empty promise.
...pecifies whether automatic log in is allowed for future visits to the current origin, then returns an empty promise.
...that he/she isn't automatically signed in on the next site visit.
CredentialsContainer - Web APIs
the credentialscontainer interface of the the credential management api exposes methods to request credentials and notify the user agent when events such as successful sign in or sign out happen.
... the credentialscontainer interface of the the credential management api exposes methods to request credentials and notify the user agent when events such as successful sign in or sign out happen.
...ovided parameters.
Crypto.getRandomValues() - Web APIs
the crypto.getrandomvalues() method lets you get cryptographically strong random values.
...y an integer-based typedarray, that is an int8array, a uint8array, an int16array, a uint16array, an int32array, or a uint32array.
...y but with its contents replaced with the newly generated random numbers.
Crypto - Web APIs
Web › API › Crypto
s.
... in web workers.
...ncryption, or decryption.
CustomElementRegistry - Web APIs
the customelementregistry interface provides methods for registering custom elements and querying registered elements.
... the customelementregistry interface provides methods for registering custom elements and querying registered elements.
...o its shadow root.
DOMMatrixReadOnly.translate() - Web APIs
the translate() method of the dommatrixreadonly interface creates a new matrix being the result of the original matrix with a translation applied.
... the translate() method of the dommatrixreadonly interface creates a new matrix being the result of the original matrix with a translation applied.
... resulting matrix will be a 4x4 3d matrix.
DOMRect - Web APIs
Web › API › DOMRect
a domrect represents a rectangle.
...only.right returns the right coordinate value of the domrect (has the same value as x + width, or x if width is negative.) domrectreadonly.bottom returns the bottom coordinate value of the domrect (has the same value as y + height, or y if height is negative.) domrectreadonly.left returns the left coordinate value of the domrect (has the same value as x, or x + width if width is negative.) methods domrect inherits methods from its parent, domrectreadonly.
...e as x + width, or x if width is negative.) domrectreadonly.bottom returns the bottom coordinate value of the domrect (has the same value as y + height, or y if height is negative.) domrectreadonly.left returns the left coordinate value of the domrect (has the same value as x, or x + width if width is negative.) methods domrect inherits methods from its parent, domrectreadonly.
DataTransferItem.getAsFile() - Web APIs
if the item is a file, the datatransferitem.getasfile() method returns the drag data item's file object.
... if the item is a file, the datatransferitem.getasfile() method returns the drag data item's file object.
... if the item is a file, the datatransferitem.getasfile() method returns the drag data item's file object.
DataTransferItemList.clear() - Web APIs
the datatransferitemlist method clear() removes all datatransferitem objects from the drag data items list, leaving the list empty.
... the datatransferitemlist method clear() removes all datatransferitem objects from the drag data items list, leaving the list empty.
... items list, leaving the list empty.
DataTransferItemList.remove() - Web APIs
the datatransferitemlist.remove() method removes the datatransferitem at the specified index from the list.
...ist.remove(index); parameters index the zero-based index number of the item in the drag data list to remove.
..."dragover"); ev.preventdefault(); // set the dropeffect to move ev.datatransfer.dropeffect = "move" } function dragend_handler(ev) { console.log("dragend"); var datalist = ev.datatransfer.items; for (var i = 0; i < datalist.length; i++) { datalist.remove(i); } // clear any remaining drag data datalist.clear(); } html <h1>example uses of <code>datatransferitemlist</code> methods and property</h1> <div> <p id="source" ondragstart="dragstart_handler(event);" ondragend="dragend_handler(event);" draggable="true"> select this element, drag it to the drop zone and then release the selection to move the element.</p> </div> <div id="target" ondrop="drop_handler(event);" ondragover="dragover_handler(event);">drop zone</div> css div { margin: 0em; padding:...
Document.createNodeIterator() - Web APIs
the first position of the traversal.
... nodefilter.show_text 4 shows text nodes.
...at root which is accepted as included by the whattoshow flag to determine whether or not to include it in the list of iterable nodes (a simple callback function may also be used instead).
Document.createTouchList() - Web APIs
note: before gecko 25.0, this method was defined on the documenttouch mixin.
... note: before gecko 25.0, this method was defined on the documenttouch mixin.
...returns a new touchlist object.
Document.createTreeWalker() - Web APIs
the document.createtreewalker() creator method returns a newly created treewalker object.
...otation node will appear in the first position of the traversal.
...eck.
Document.enableStyleSheetsForSet() - Web APIs
the name of the style sheets to enable.
...meter to disable all alternate and preferred style sheets (but not the persistent style sheets; that is, those with no title attribute).
...le all alternate and preferred style sheets (but not the persistent style sheets; that is, those with no title attribute).
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).
...t have both the 'red' and 'test' classes: document.getelementsbyclassname('red test') get all elements that have a class of 'test', inside of an element that has the id of 'main': document.getelementbyid('main').getelementsbyclassname('test') get the first element with a class of 'test', or undefined if there is no matching element: document.getelementsbyclassname('test')[0] we can also use methods of array.prototype on any htmlcollection by passing the htmlcollection as the method's this value.
...y htmlcollection by passing the htmlcollection as the method's this value.
Document.getElementsByName() - Web APIs
the getelementsbyname() method of the document object returns a nodelist collection of elements with a given name in the document.
...> <script> var up_names = document.getelementsbyname("up"); console.log(up_names[0].tagname); // displays "input" </script> </html> notes the name attribute can only be applied in (x)html documents.
...ection contains all elements with the given name, such as <meta>, <object>, and even elements which do not support the name attribute at all.
Document.implementation - Web APIs
ument.implementation.hasfeature( modname, modver ); alert( "dom " + modname + " " + modver + " supported?: " + conformtest ); // alerts with: "dom html 2.0 supported?: true" if dom level 2 html module is supported.
...l 2 html module is supported.
...'s dom level 1 recommendation only specified the hasfeature method, which is one way to determine if a dom module is supported by a browser (see example above and what does your user agent claim to support?).
Document.querySelectorAll() - Web APIs
the document method queryselectorall() returns a static (not live) nodelist representing a list of the document's elements that match the specified group of selectors.
... the document method queryselectorall() returns a static (not live) nodelist representing a list of the document's elements that match the specified group of selectors.
... the document method queryselectorall() returns a static (not live) nodelist representing a list of the document's elements that match the specified group of selectors.
DocumentTouch - Web APIs
the documenttouch interface used to provide convenience methods for creating touch and touchlist objects, but documenttouch been removed from the standards.
... the documenttouch interface used to provide convenience methods for creating touch and touchlist objects, but documenttouch been removed from the standards.
... the documenttouch interface used to provide convenience methods for creating touch and touchlist objects, but documenttouch been removed from the standards.
EXT_color_buffer_float - Web APIs
the ext_color_buffer_float extension is part of webgl and adds the ability to render a variety of floating point formats.
...l and adds the ability to render a variety of floating point formats.
... availability: this extension is available to webgl 2 contexts only.
EXT_disjoint_timer_query - Web APIs
the ext_disjoint_timer_query extension is part of the webgl api and provides a way to measure the duration of a set of gl commands, without stalling the rendering pipeline.
...y active query for the given target.
...query_result_ext a gluint64ext containing the query result.
Element.hasAttribute() - Web APIs
the element.hasattribute() method returns a boolean value indicating whether the specified element has the specified attribute or not.
...a string representing the name of the attribute.
...entbyid("foo"); if (foo.hasattribute("bar")) { // do something } polyfill ;(function(prototype) { prototype.hasattribute = prototype.hasattribute || function(name) { return !!(this.attributes[name] && this.attributes[name].specified); } })(element.prototype); notes dom methods dealing with element's attributes: not namespace-aware, most commonly used methods namespace-aware variants (dom level 2) dom level 1 methods for dealing with attr nodes directly (seldom used) dom level 2 namespace-aware methods for dealing with attr nodes directly (seldom used) setattribute (dom 1) setattributens setattributenode setattributenodens getattribute (dom 1) getattributens getattributenode getattributenodens hasattribute (dom 2) hasattributens - - removea...
Element.hasAttributeNS() - Web APIs
he boolean value true or false.
... attribute.
...ple // check that the attribute exists before you set a value var d = document.getelementbyid("div1"); if (d.hasattributens( "http://www.mozilla.org/ns/specialspace/", "special-align")) { d.setattribute("align", "center"); } notes dom methods dealing with element's attributes: not namespace-aware, most commonly used methods namespace-aware variants (dom level 2) dom level 1 methods for dealing with attr nodes directly (seldom used) dom level 2 namespace-aware methods for dealing with attr nodes directly (seldom used) setattribute (dom 1) setattributens setattributenode setattributenodens getattribute (dom 1) getattributens getattributenode getattributenodens hasattribute (dom 2) hasattributens - - removeattribute (dom 1) removeattributens removeattributenode - ...
Element.releasePointerCapture() - Web APIs
the releasepointercapture() method of the element interface releases (stops) pointer capture that was previously set for a specific (pointerevent) pointer.
... the releasepointercapture() method of the element interface releases (stops) pointer capture that was previously set for a specific (pointerevent) pointer.
...) method of the element interface releases (stops) pointer capture that was previously set for a specific (pointerevent) pointer.
Element.removeAttributeNS() - Web APIs
the removeattributens() method of the element interface removes the specified attribute from an element.
...ame is a string that names the attribute to be removed from the current node.
...e // given: // <div id="div1" xmlns:special="http://www.mozilla.org/ns/specialspace" // special:specialalign="utterleft" width="200px" /> d = document.getelementbyid("div1"); d.removeattributens("http://www.mozilla.org/ns/specialspace", "specialalign"); // now: <div id="div1" width="200px" /> notes dom methods dealing with element's attributes: not namespace-aware, most commonly used methods namespace-aware variants (dom level 2) dom level 1 methods for dealing with attr nodes directly (seldom used) dom level 2 namespace-aware methods for dealing with attr nodes directly (seldom used) setattribute (dom 1) setattributens setattributenode setattributenodens getattribute (dom 1) getattributens getattributenode getattributenodens hasattribute (dom 2) hasattributens - - removea...
Element.requestFullscreen() - Web APIs
the element.requestfullscreen() method issues an asynchronous request to make the element be displayed in full-screen mode.
...instead.
...ideo"); if (!document.fullscreenelement) { elem.requestfullscreen().catch(err => { alert(`error attempting to enable full-screen mode: ${err.message} (${err.name})`); }); } else { document.exitfullscreen(); } } if the document isn't already in full-screen mode—detected by looking to see if document.fullscreenelement has a value—we call the video's requestfullscreen() method.
ElementTraversal - Web APIs
the elementtraversal interface used to define methods that allowed access from one node to another in the document tree.
... the elementtraversal interface used to define methods that allowed access from one node to another in the document tree.
... the elementtraversal interface used to define methods that allowed access from one node to another in the document tree.
Event.msConvertURL() - Web APIs
non-standard this feature is non-standard and is not on a standards track.
... not work for every user.
...plorer and the microsoft edge browser.
Event.stopPropagation() - Web APIs
the stoppropagation() method of the event interface prevents further propagation of the current event in the capturing and bubbling phases.
... the stoppropagation() method of the event interface prevents further propagation of the current event in the capturing and bubbling phases.
...turing and bubbling phases.
EventSource - Web APIs
handlers eventsource.onerror is an eventhandler called when an error occurs and the error event is dispatched on an eventsource object.
... eventhandler called when an error occurs and the error event is dispatched on an eventsource object.
...eived, that is when a message is coming from the source.
EventTarget.dispatchEvent() - Web APIs
ancelled = !target.dispatchevent(event) parameter event is the event object to be dispatched.
...o initialize the event.target and determine which event listeners to invoke.
... 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 18firefox android full support ...
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.
... 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.
...d by the feature policy.enables introspection of individual directives of the feature policy it is run on.
File - Web APIs
Web › API › File
y returns the name of the file referenced by the file object.
...the file object.
....prototype.webkitrelativepath read only returns the path the url of the file is relative to.
FileReader.result - Web APIs
Web › API › FileReader › result
the filereader result property returns the file's contents.
... the filereader result property returns the file's contents.
...ete, and the format of the data depends on which of the methods was used to initiate the read operation.
FileReader - Web APIs
his is one of the following: empty 0 no data has been loaded yet.
...g is starting.
...ing.
FileReaderSync.readAsBinaryString() - Web APIs
note: this method is deprecated in favor of readasarraybuffer().
... note: this method is deprecated in favor of readasarraybuffer().
...ead file or blob objects in a synchronous way into an domstring.
FileReaderSync.readAsText() - Web APIs
the readastext() method of the filereadersync interface allows to read file or blob objects in a synchronous way into an domstring.
...ronous way into an domstring.
...stext(blob); readastext(file, encoding); readastext(blob, encoding); parameters blob the dom file or blob to read.
FileSystemDirectoryEntry.removeRecursively() - Web APIs
the filesystemdirectoryentry interface's method removerecursively() removes the directory as well as all of its content, hierarchically iterating over its entire subtree of descendant files and directories.
...ome for androidfirefox for androidopera for androidsafari on iossamsung internetremoverecursively deprecatednon-standardchrome full support 8edge full support 79firefox no support 50 — 52notes no support 50 — 52notes notes while the removerecursively() method existed, it immediately called the error callback with ns_error_dom_security_err.ie no support noopera no support nosafari no support nowebview android full support ≤37chrome android full support ...
... nosafari no support nowebview android full support ≤37chrome android full support 18firefox android no support 50 — 52notes no support 50 — 52notes notes while the removerecursively() method existed, it immediately called the error callback with ns_error_dom_security_err.opera android no support nosafari ios no support nosamsung internet android full support yeslegend full support fu...
FileSystemDirectoryReader.readEntries() - Web APIs
the filesystemdirectoryreader interface's readentries() method retrieves the directory entries within the directory being read and delivers them in an array to a provided callback function.
...t to the container.
...ms.
FocusEvent - Web APIs
constructor focusevent() creates a focusevent event with the given parameters.
... a focusevent event with the given parameters.
...ith the given parameters.
FormData.append() - Web APIs
Web › API › FormData › append
the append() method of the formdata interface appends a new value onto an existing key inside a formdata object, or adds the key if it does not already exist.
...of the formdata interface appends a new value onto an existing key inside a formdata object, or adds the key if it does not already exist.
...ormdata object, or adds the key if it does not already exist.
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.
...rmdata interface returns all the values associated with a given key from within a formdata object.
FormData.set() - Web APIs
Web › API › FormData › set
the set() method of the formdata interface sets a new value for an existing key inside a formdata object, or adds the key/value if it does not already exist.
... formdata interface sets a new value for an existing key inside a formdata object, or adds the key/value if it does not already exist.
...ject, or adds the key/value if it does not already exist.
FormDataEntryValue - Web APIs
a string or file that represents a single value from a set of formdata key-value pairs.
... a string or file that represents a single value from a set of formdata key-value pairs.
... a string or file that represents a single value from a set of formdata key-value pairs.
FormDataEvent - Web APIs
is fired on an htmlformelement object after the entry list representing the form's data is constructed.
... to put it together yourself when you wish to submit form data via a method like xmlhttprequest (see using formdata objects).
...r yourself when you wish to submit form data via a method like xmlhttprequest (see using formdata objects).
Guide to the Fullscreen API - Web APIs
this article demonstrates how to use the fullscreen api to place a given element into full-screen mode, as well as how to detect when the browser enters or exits full-screen mode.
...n() method.
...d newer versions of opera however, no such warning is generated.
Geolocation - Web APIs
e.
...ained using the navigator.geolocation property implemented by the navigator object.
...ted by the navigator object.
Using the Geolocation API - Web APIs
tion api is available through the navigator.geolocation object.
...ent techniques are used to geolocate you.
...edly.
GestureEvent - Web APIs
ative values indicate anticlockwise rotation.
...tation.
... distance between the digits at the beginning of the gesture.
HTMLAreaElement - Web APIs
the htmlareaelement interface provides special properties and methods (beyond those of the regular object htmlelement interface it also has available to it by inheritance) for manipulating the layout and presentation of <area> elements.
...ing order.
...eaelement.target is a domstring that reflects the target html attribute, indicating the browsing context in which to open the linked resource.
HTMLBRElement - Web APIs
6" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlbrelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlbrelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlbrelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLBaseElement - Web APIs
the htmlbaseelement interface contains the base uri for a document.
... properties inherits properties from its parent, htmlelement.
...rits properties from its parent, htmlelement.
HTMLBaseFontElement - Web APIs
e client's browser supports.
...pports.
...t listed is installed on the local system, the browser typically defaults to the proportional or fixed-width font for that system.
HTMLBodyElement - Web APIs
der version of some browsers do expect it.
...rowsers do expect it.
...it.
HTMLCollection.item - Web APIs
the htmlcollection method item() returns the node located at the specified offset into the collection.
...onstant for a given node.
...dex is less than zero or greater than or equal to the length property.
HTMLDListElement - Web APIs
size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmldlistelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...ly="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmldlistelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...o,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmldlistelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLDataElement - Web APIs
las,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmldataelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...o,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmldataelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmldataelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLDataListElement - Web APIs
ily="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmldatalistelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement htmldatalistelement.options read only is a htmlcollection representing a collection of the contained option elements.
...andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmldatalistelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement htmldatalistelement.options read only is a htmlcollection representing a collection of the contained option elements.
...pace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmldatalistelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement htmldatalistelement.options read only is a htmlcollection representing a collection of the contained option elements.
HTMLDetailsElement - Web APIs
xt-anchor="middle" alignment-baseline="middle">htmldetailselement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...ignment-baseline="middle">htmldetailselement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
..."middle">htmldetailselement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLDialogElement.open - Web APIs
the state of the open html attribute.
... it not set, and therefore the dialog is not shown.
... or hide the dialog.
HTMLDivElement - Web APIs
le">htmldivelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...ext></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...iv> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLElement - Web APIs
r the touchend event.
...nt.
...element' in that specification.
HTMLEmbedElement - Web APIs
nting the name of the embedded object.
... embedded object.
... htmlembedelement.src is a domstring that reflects the src html attribute, containing the address of the resource.
HTMLFontElement - Web APIs
in the hexadecimal #rrggbb format.
...rrggbb format.
...tmlfontelement.face is a domstring that reflects the face html attribute, containing a comma-separated list of one or more font names.
HTMLFormControlsCollection - Web APIs
the htmlformcontrolscollection interface represents a collection of html form control elements.
...l="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="311" y="30" font-size="12px" font-family="consolas,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.
...idth="2px" /><text x="311" y="30" font-size="12px" font-family="consolas,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.
HTMLFormElement.reset() - Web APIs
the htmlformelement.reset() method restores a form element's default values.
... the htmlformelement.reset() method restores a form element's default values.
... the htmlformelement.reset() method restores a form element's default values.
HTMLFrameSetElement - Web APIs
anipulating <frameset> elements.
...> elements.
...erties inherits properties from its parent, htmlelement and from windoweventhandlers.
HTMLHRElement - Web APIs
ing alignment of the rule with respect to the surrounding context.
...rule with respect to the surrounding context.
... to the surrounding context.
HTMLHyperlinkElementUtils - Web APIs
the htmlhyperlinkelementutils mixin defines utility methods and properties to work with htmlanchorelement and htmlareaelement.
...fier of the url.
...e this is a usvstring containing the username specified before the domain name.
HTMLImageElement.decode() - Web APIs
the decode() method of the htmlimageelement interface returns a promise that resolves when the image is decoded and it is safe to append the image to the dom.
...the full-resolution image by instantiating a new htmlimageelement, setting its source to the full-resolution image's url, then using decode() to get a promise which is resolved once the full-resolution image is ready for use.
...e to the full-resolution image's url, then using decode() to get a promise which is resolved once the full-resolution image is ready for use.
HTMLIsIndexElement - Web APIs
lement implements htmlunknownelement rather than htmlisindexelement.
...lunknownelement rather than htmlisindexelement.
...ather than htmlisindexelement.
HTMLMediaElement.msInsertAudioEffect() - Web APIs
non-standard this feature is non-standard and is not on a standards track.
...ard this feature is non-standard and is not on a standards track.
...e.
HTMLMediaElement.play() - Web APIs
the htmlmediaelement play() method attempts to begin playback of the media.
...ll cause the returned promise to be immediately rejected with a notallowederror.
... specification status comment html living standardthe definition of 'play()' in that specification.
HTMLMediaElement: play event - Web APIs
the play event is fired when the paused property is changed from true to false, as a result of the play method, or the autoplay attribute.
...pecification html5 media examples these examples add an event listener for the htmlmediaelement's play event, then post a message when that event handler has reacted to the event firing.
...ideo'); video.addeventlistener('play', (event) => { console.log('the boolean paused property is now false.
HTMLOListElement - Web APIs
g that the lowercase latin numerals are used: i, ii, iii, iv, v, … 'i' meaning that the uppercase latin numerals are used: i, ii, iii, iv, v, … htmlolistelement.compact is a boolean indicating that spacing between list items should be reduced.
...latin numerals are used: i, ii, iii, iv, v, … 'i' meaning that the uppercase latin numerals are used: i, ii, iii, iv, v, … htmlolistelement.compact is a boolean indicating that spacing between list items should be reduced.
...e used: i, ii, iii, iv, v, … 'i' meaning that the uppercase latin numerals are used: i, ii, iii, iv, v, … htmlolistelement.compact is a boolean indicating that spacing between list items should be reduced.
HTMLOptionElement - Web APIs
the htmloptionelement interface represents <option> elements and inherits all classes and methods of the htmlelement interface.
...ding it returns the element's text content.
...e element's text content.
HTMLOptionsCollection - Web APIs
the htmloptionscollection interface represents a collection of <option> html elements (in document order) and offers methods and properties for selecting from the list as well as optionally altering its items.
... pointer-events: all;} properties name type description length unsigned long as optionally allowed by the spec, this property isn't read-only.
...es name type description length unsigned long as optionally allowed by the spec, this property isn't read-only.
HTMLParagraphElement - Web APIs
aragraphelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
... a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLParamElement - Web APIs
esenting the value associated to the parameter.
...sociated to the parameter.
...rameter.
HTMLPreElement - Web APIs
the htmlpreelement interface exposes specific properties and methods (beyond those of the htmlelement interface it also has available to it by inheritance) for manipulating a block of preformatted text (<pre>).
...las,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlpreelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...o,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlpreelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLProgressElement - Web APIs
the htmlprogresselement interface provides special properties and methods (beyond the regular htmlelement interface it also has available to it by inheritance) for manipulating the layout and presentation of <progress> elements.
...e current value (value) by the maximum value (max); if the progress bar is an indeterminate progress bar, it returns -1.
...e) by the maximum value (max); if the progress bar is an indeterminate progress bar, it returns -1.
HTMLQuoteElement - Web APIs
the htmlquoteelement interface provides special properties and methods (beyond the regular htmlelement interface it also has available to it by inheritance) for manipulating quoting elements, like <blockquote> and <q>, but not the <cite> element.
...ly="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlquoteelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...ndale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlquoteelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLSelectElement.add() - Web APIs
the htmlselectelement.add() method adds an element to the collection of option elements for this select element.
...ameters item is an htmloptionelement or htmloptgroupelement before is optional and an element of the collection, or an index of type long, representing the item item should be inserted before.
...ml living standard.
HTMLStyleElement - Web APIs
the htmlstyleelement interface represents a <style> element.
... htmlstyleelement.disabled is a boolean value representing whether or not the stylesheet is disabled (true) or not (false).
...abled is a boolean value representing whether or not the stylesheet is disabled (true) or not (false).
HTMLTableColElement - Web APIs
haracter.
...colelement.span is an unsigned long that reflects the span html attribute, indicating the number of columns to apply this object's attributes to.
...is an unsigned long that reflects the span html attribute, indicating the number of columns to apply this object's attributes to.
HTMLTimeElement - Web APIs
monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmltimeelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...e53" text-anchor="middle" alignment-baseline="middle">htmltimeelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
..."middle" alignment-baseline="middle">htmltimeelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLTrackElement - Web APIs
d 2 indicates that the text track has been loaded with no fatal errors.
... that the text track has been loaded with no fatal errors.
...ack has been loaded with no fatal errors.
HTMLUListElement - Web APIs
tring value reflecting the type and defining the kind of marker to be used to display.
...g the type and defining the kind of marker to be used to display.
...fining the kind of marker to be used to display.
HTMLUnknownElement - Web APIs
the htmlunknownelement interface represents an invalid html element and derives from the htmlelement interface, but without implementing any additional properties or methods.
...0" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="401" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlunknownelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties no specific property; inherits properties from its parent, htmlelement.
...oke="#d4dde4" stroke-width="2px" /><text x="401" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlunknownelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties no specific property; inherits properties from its parent, htmlelement.
HTMLVideoElement.msFrameStep() - Web APIs
non-standard this feature is non-standard and is not on a standards track.
...on-standard this feature is non-standard and is not on a standards track.
... the htmlvideoelement.msframestep() method steps the video by one frame forward or one frame backward.
HTMLVideoElement.msInsertVideoEffect() - Web APIs
non-standard this feature is non-standard and is not on a standards track.
...ard this feature is non-standard and is not on a standards track.
...yntax str = htmlmediaelement.msinsertvideoeffect(activatableclassid: domstring, effectrequired: boolean, config); parameters activatableclassid a domstring defining the video effects class.
msSetVideoRectangle - Web APIs
non-standard this feature is non-standard and is not on a standards track.
...standard this feature is non-standard and is not on a standards track.
... dimensions of a sub-rectangle within a video.
HashChangeEvent - Web APIs
chor="middle" alignment-baseline="middle">hashchangeevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits the properties of its parent, event.
...e="middle">hashchangeevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits the properties of its parent, event.
...</svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits the properties of its parent, event.
History.back() - Web APIs
Web › API › History › back
the history.back() method causes the browser to move back one page in the session history.
... the history.back() method causes the browser to move back one page in the session history.
... the history.back() method causes the browser to move back one page in the session history.
History.pushState() - Web APIs
Web › API › History › pushState
in an html document, the history.pushstate() method adds a state to the browser's session history stack.
...he history entry's state object.
...ct.
IDBCursorSync - Web APIs
ync interface of the indexeddb api represents a cursor for iterating over multiple records in a database.
...uplicate 1 this cursor does not include duplicates, and its direction is monotonically increasing in the order of keys.
...d, advance to the immediate next position.
IDBDatabase.close() - Web APIs
Web › API › IDBDatabase › close
the close() method of the idbdatabase interface returns immediately and closes the connection in a separate thread.
... the close() method of the idbdatabase interface returns immediately and closes the connection in a separate thread.
... the close() method of the idbdatabase interface returns immediately and closes the connection in a separate thread.
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.
...ng the complete event by creating a transaction using the experimental (non-standard) readwriteflush mode (see idbdatabase.transaction.) this is currently experimental, and can only be used if the dom.indexeddb.experimental pref is set to true in about:config.
...ently experimental, and can only be used if the dom.indexeddb.experimental pref is set to true in about:config.
IDBFactory.cmp() - Web APIs
Web › API › IDBFactory › cmp
the cmp() method of the idbfactory interface compares two values as keys to determine equality and ordering for indexeddb operations, such as storing and iterating.
... the cmp() method of the idbfactory interface compares two values as keys to determine equality and ordering for indexeddb operations, such as storing and iterating.
...first key to compare.
IDBFactorySync - Web APIs
he synchronous version of the indexeddb api was originally intended for use only with web workers, and was eventually removed from the spec because its need was questionable.
...onable.
...pecified name, it uses that one; otherwise, it creates the database using the specified name and description.
IDBIndex.openCursor() - Web APIs
the opencursor() method of the idbindex interface returns an idbrequest object, and, in a separate thread, creates a cursor over the specified key range.
... the opencursor() method of the idbindex interface returns an idbrequest object, and, in a separate thread, creates a cursor over the specified key range.
...); parameters range optional a key or idbkeyrange to use as the cursor's range.
IDBIndex.openKeyCursor() - Web APIs
the openkeycursor() method of the idbindex interface returns an idbrequest object, and, in a separate thread, creates a cursor over the specified key range, as arranged by this index.
... the openkeycursor() method of the idbindex interface returns an idbrequest object, and, in a separate thread, creates a cursor over the specified key range, as arranged by this index.
...); parameters range optional a key or idbkeyrange to use as the cursor's range.
IDBKeyRange.includes() - Web APIs
the includes() method of the idbkeyrange interface returns a boolean indicating whether a specified key is inside the key range.
... the includes() method of the idbkeyrange interface returns a boolean indicating whether a specified key is inside the key range.
...n.
IDBKeyRange - Web APIs
note: this feature is available in web workers.
... feature is available in web workers.
...ly returns false if the upper-bound value is included in the key range.
IDBLocaleAwareKeyRange - Web APIs
the idblocaleawarekeyrange interface of the indexeddb api is a firefox-specific version of idbkeyrange — it functions in exactly the same fashion, and has the same properties and methods, but it is intended for use with idbindex objects when the original index had a locale value specified upon its creation (see createindex()'s optionalparameters) — that is, it has locale aware sorting enabled.
...e idblocaleawarekeyrange interface of the indexeddb api is a firefox-specific version of idbkeyrange — it functions in exactly the same fashion, and has the same properties and methods, but it is intended for use with idbindex objects when the original index had a locale value specified upon its creation (see createindex()'s optionalparameters) — that is, it has locale aware sorting enabled.
... indexeddb api is a firefox-specific version of idbkeyrange — it functions in exactly the same fashion, and has the same properties and methods, but it is intended for use with idbindex objects when the original index had a locale value specified upon its creation (see createindex()'s optionalparameters) — that is, it has locale aware sorting enabled.
IDBObjectStore.delete() - Web APIs
the delete() method of the idbobjectstore interface returns an idbrequest object, and, in a separate thread, deletes the specified record or records.
... delete() method of the idbobjectstore interface returns an idbrequest object, and, in a separate thread, deletes the specified record or records.
...le in web workers.
IDBTransaction - Web APIs
inished and successfully committed, or was aborted with theidbtransaction.abort() function.
...f the transaction.
... "readwrite" (1 in chrome) allows reading and writing of data in existing data stores to be changed.
IDBVersionChangeRequest - Web APIs
warning: the latest specification does not include this interface anymore as the idbdatabase.setversion() method has been removed.
...re as the idbdatabase.setversion() method has been removed.
...tversion() method has been removed.
IIRFilterNode - Web APIs
es forever, but this can be limited after some finite time in practice, when the output has approached zero closely enough.
...is can be limited after some finite time in practice, when the output has approached zero closely enough.
... approached zero closely enough.
IdleDeadline.timeRemaining() - Web APIs
the timeremaining() method on the idledeadline interface returns the estimated number of milliseconds remaining in the current idle period.
... the timeremaining() method on the idledeadline interface returns the estimated number of milliseconds remaining in the current idle period.
...ntrol to the user agent's event loop.
ImageCapture - Web APIs
the imagecapture interface of the mediastream image capture api provides methods to enable the capture of images or photos from a camera or other photographic device.
...erface for capturing images from a photographic device referenced through a valid mediastreamtrack.
...d mediastreamtrack.
enabled - Web APIs
summary indicates whether or not software installation is enabled for this client machine.
... summary indicates whether or not software installation is enabled for this client machine.
...r this client machine.
InstallTrigger - Web APIs
t are inherited from the old mozilla xpinstall technology for installing add-ons.
...pdated somewhat.
...s needed in the installation script.
IntersectionObserver.takeRecords() - Web APIs
the intersectionobserver method takerecords() returns an array of intersectionobserverentry objects, one for each targeted element which has experienced an intersection change since the last time the intersections were checked, either explicitly through a call to this method or implicitly by an automatic call to the observer's callback.
...ethod takerecords() returns an array of intersectionobserverentry objects, one for each targeted element which has experienced an intersection change since the last time the intersections were checked, either explicitly through a call to this method or implicitly by an automatic call to the observer's callback.
...eturns an array of intersectionobserverentry objects, one for each targeted element which has experienced an intersection change since the last time the intersections were checked, either explicitly through a call to this method or implicitly by an automatic call to the observer's callback.
KeyboardEvent.initKeyboardEvent() - Web APIs
the keyboardevent.initkeyboardevent() method initializes the attributes of a keyboard event object.
... the keyboardevent.initkeyboardevent() method initializes the attributes of a keyboard event object.
... the keyboardevent.initkeyboardevent() method initializes the attributes of a keyboard event object.
Keyboard API - Web APIs
the keyboard api provides methods for working with a physical keyboard that is attached to a device running a browser.
...ple, 'qwerty'), and modifier-key state (shift, control, etc.).
...]); this captures these keys regardless of which modifiers are used with the key press.
LocalMediaStream - Web APIs
warning: this interface is no longer available in any mainstream browser.
...am parent interface.
...mediastreamtrack.stop() on each track that needs to be stopped.
Location: replace() - Web APIs
Web › API › Location › replace
the replace() method of the location interface replaces the current resource with the one at the provided url.
... the replace() method of the location interface replaces the current resource with the one at the provided url.
...h the one at the provided url.
LockManager.request() - Web APIs
the request() method of the lockmanager interface requests a lock object with parameters specifying its name and characteristics.
...efault value is false.
...he request() call in do_read() until the write operation has completed.
LockedFile.truncate() - 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.
...it on production sites facing the web: it will not work for every user.
MSCandidateWindowUpdate - Web APIs
non-standard this feature is non-standard and is not on a standards track.
...track.
... general info synchronous no bubbles no cancelable no note windows 8.1 and windows 7 imes for certain languages on internet explorer for the desktop might not support this event.
MSManipulationEvent.initMSManipulationEvent() - Web APIs
non-standard this feature is non-standard and is not on a standards track.
...d this feature is non-standard and is not on a standards track.
...ault action cannot be canceled.
MathMLElement - Web APIs
the mathmlelement interface represents any mathml element.
... the mathmlelement interface represents any mathml element.
... the mathmlelement interface represents any mathml element.
MediaCapabilities.decodingInfo() - Web APIs
the mediacapabilities.decodinginfo() method, part of the media capabilities api, returns a promise with the tested media configuration's mediacapabilitiesinfo; this contains the three boolean properties supported, smooth, and powerefficient, which describe whether decoding the media described would be supported, smooth, and powerefficient.
...ctionary containing a valid media decoding type of file or media-source and a valid media configuration: either an audioconfiguration or a videoconfiguration.
...an attributes: supported smooth powerefficient exceptions a typeerror is raised if the mediaconfiguration passed to the decodinginfo() method is invalid, either because the type is not video or audio, the contenttype is not a valid codec mime type, the media decoding configuration is not a valid value for the media decoding type, or any other error in the media configuration passed to the method, including omitting values required in the media decoding configuration.
MediaCapabilities.encodingInfo() - Web APIs
the mediacapabilities.encodinginfo() method, part of the mediacapabilities interface of the media capabilities api, returns a promise with the tested media configuration's mediacapabilitiesinfo; this contains the three boolean properties supported, smooth, and powerefficient, which describe how compatible the device is with the type of media.
...ntaining a valid media encoding type of record or transmission and a valid media configuration: either an audioconfiguration or videoconfiguration dictionary.
... a promise fulfilling with a mediacapabilitiesinfo interface containing three boolean attributes: supported smooth powerefficient exceptions a typeerror is raised if the mediaconfiguration passed to the encodinginfo() method is invalid, either because the type is not video or audio, the contenttype is not a valid codec mime type, or any other error in the media configuration passed to the method, including omitting any of the media encoding configuration elements.
MediaConfiguration - Web APIs
the mediaconfiguration mediacapabilities dictionary of the media capabilities api describes how media and audio files must be configured, or defined, to be passed as a parameter of the mediacapabilities.encodinginfo() and mediacapabilities.encodinginfo() methods.
...ber of channels, the bitrate, and the sample rate.
... be present, as in the examples below, or a typeerror will occur.
MediaDevices.getUserMedia() - Web APIs
the mediadevices.getusermedia() method prompts the user for permission to use a media input which produces a mediastream with tracks containing the requested types of media.
...erent mechanisms.
...rame>, you can request permission just for that frame, which is clearly more secure than requesting a more general permission.
MediaRecorder.requestData() - Web APIs
the mediarecorder.requestdata() method (part of the mediarecorder api) is used to raise a dataavailable event containing a blob object of the captured media as it was when the method was called.
... the mediarecorder.requestdata() method (part of the mediarecorder api) is used to raise a dataavailable event containing a blob object of the captured media as it was when the method was called.
...error and terminate these steps.
MediaRecorder.resume() - Web APIs
the mediarecorder.resume() method (part of the mediarecorder api) is used to resume media recording when it has been previously paused.
... the mediarecorder.resume() method (part of the mediarecorder api) is used to resume media recording when it has been previously paused.
...hat runs the following steps: if mediarecorder.state is "inactive", raise a dom invalidstate error and terminate these steps.
MediaRecorder.stop() - Web APIs
the mediarecorder.stop() method (part of the mediarecorder api) is used to stop media capture.
... the mediarecorder.stop() method (part of the mediarecorder api) is used to stop media capture.
...ctive", raise a dom invalidstate error and terminate these steps.
MediaSource - Web APIs
ched but the stream has been ended via mediasource.endofstream() (ended.) mediasource.duration gets and sets the duration of the current media being presented.
...m has been ended via mediasource.endofstream() (ended.) mediasource.duration gets and sets the duration of the current media being presented.
...s list.
MediaStreamAudioDestinationNode - Web APIs
the mediastreamaudiodestinationnode interface represents an audio destination consisting of a webrtc mediastream with a single audiomediastreamtrack, which can be used in a similar way to a mediastream obtained from navigator.getusermedia.
... new mediastreamaudiodestinationnode object instance.
...diodestinationnode object instance.
MediaStreamTrack.stop() - Web APIs
the mediastreamtrack.stop() method stops the track.
...stop() on every track on a given <video>.
...nst tracks = stream.gettracks(); tracks.foreach(function(track) { track.stop(); }); videoelem.srcobject = null; } this works by obtaining the video element's stream from its srcobject property.
MediaStreamTrackEvent - Web APIs
the mediastreamtrackevent interface represents events which indicate that a mediastream has had tracks added to or removed from the stream through calls to media stream api methods.
... { fill: #0095dd; pointer-events: all;} the events based on this interface are addtrack and removetrack properties also inherits properties from its parent interface, event.
...er-events: all;} the events based on this interface are addtrack and removetrack properties also inherits properties from its parent interface, event.
MediaStream Image Capture API - Web APIs
traints what the device allows.
...epts and usage the process of retrieving an image or video stream happens as described below.
...nything else.
Using the MediaStream Recording API - Web APIs
getusermedia has created a media stream successfully, you create a new media recorder instance with the mediarecorder() constructor and pass it the stream directly.
...value of "recording".
...iarecorder.ondataavailable = function(e) { chunks.push(e.data); } note: the browser will fire dataavailable events as needed, but if you want to intervene you can also include a timeslice when invoking the start() method — for example start(10000) — to control this interval, or call mediarecorder.requestdata() to trigger an event when you need it.
MessagePort.start() - Web APIs
Web › API › MessagePort › start
the start() method of the messageport interface starts the sending of messages queued on the port.
... the start() method of the messageport interface starts the sending of messages queued on the port.
...syntax port.start() returns void.
MessagePort - Web APIs
the messageport interface of the channel messaging api represents one of the two ports of a messagechannel, allowing messages to be sent from one port and listening out for them arriving at the other.
... the messageport interface of the channel messaging api represents one of the two ports of a messagechannel, allowing messages to be sent from one port and listening out for them arriving at the other.
...n a messageport object receives a message that can't be deserialized.
msSetMediaProtectionManager - Web APIs
non-standard this feature is non-standard and is not on a standards track.
...tandard this feature is non-standard and is not on a standards track.
...windows.media.protection namespace provides classes to manage digital rights management (drm) media contents.
Navigator.getBattery() - Web APIs
the getbattery() method provides information about the system's battery.
...de to using the api, and sample code.
...ts fulfillment handler with a single parameter: a batterymanager object which you can use to get information about the battery's state.
Navigator.getUserMedia() - Web APIs
the deprecated navigator.getusermedia() method prompts the user for permission to use up to one video input device (such as a camera or shared screen) and up to one audio input device (such as a microphone) as the source for a mediastream.
...iastream whose video and/or audio tracks come from those devices is delivered to the specified success callback.
...h, since the specification strongly encourages using the newer promise returning version.
Navigator.msLaunchUri() - Web APIs
non-standard this feature is non-standard and is not on a standards track.
...ompatibilities between implementations and the behavior may change in the future.
...m that matches the uri, the successcallback is invoked, otherwise, the nohandlercallback is called.
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.
... in the same way as navigator.mssaveoropenblob() except that this disables the file open option.
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.
... in the same way as navigator.mssaveblob() except that this enables the file open option.
NavigatorID.taintEnabled() - Web APIs
the navigatorid.taintenabled() method always returns false.
... the navigatorid.taintenabled() method always returns false.
... the navigatorid.taintenabled() method always returns false.
NavigatorLanguage - Web APIs
navigatorlanguage contains methods and properties related to the language of the navigator.
...avigatorlanguage interface doesn't inherit any property.
....language read only returns a domstring representing the preferred language of the user, usually the language of the browser ui.
NavigatorOnLine - Web APIs
the navigatoronline interface contains methods and properties related to the connectivity status of the browser.
...toronline interface contains methods and properties related to the connectivity status of the browser.
...vity status of the browser.
NavigatorPlugins - Web APIs
the navigatorplugins mixin adds to the navigator interface methods and properties for discovering and interacting with plugins installed into the browser.
... the navigatorplugins mixin adds to the navigator interface methods and properties for discovering and interacting with plugins installed into the browser.
...rface methods and properties for discovering and interacting with plugins installed into the browser.
NavigatorStorage - Web APIs
h provide ways for web content to store data on a user's computer, including cookies, the web storage api (window.localstorage and window.sessionstorage), and indexeddb.
...configurations can be understood and controlled using a common set of methods and properties.
...lled using a common set of methods and properties.
Node.appendChild() - Web APIs
Web › API › Node › appendChild
the node.appendchild() method adds a node to the end of the list of children of a specified parent node.
...ing node in the document, appendchild() moves it from its current position to the new position (there is no requirement to remove the node from its parent node before appending it to some other node).
...e new position.
Node.insertBefore() - Web APIs
Web › API › Node › insertBefore
the node.insertbefore() method inserts a node before a reference node as a child of a specified parent node.
...nt"> <span id="childelement">foo bar</span> </div> <script> // create a new, plain <span> element let sp1 = document.createelement("span") // get the reference element let sp2 = document.getelementbyid("childelement") // get the parent element let parentdiv = sp2.parentnode // insert the new element into before sp2 parentdiv.insertbefore(sp1, sp2) </script> note: there is no insertafter() method.
...ript> // create a new, plain <span> element let sp1 = document.createelement("span") // get the reference element let sp2 = document.getelementbyid("childelement") // get the parent element let parentdiv = sp2.parentnode // insert the new element into before sp2 parentdiv.insertbefore(sp1, sp2) </script> note: there is no insertafter() method.
NodeIterator.detach() - Web APIs
the nodeiterator.detach() method is a no-op, kept for backward compatibility only.
... the nodeiterator.detach() method is a no-op, kept for backward compatibility only.
... the nodeiterator.detach() method is a no-op, kept for backward compatibility only.
NodeList.item() - Web APIs
Web › API › NodeList › item
returns a node from a nodelist by index.
... returns a node from a nodelist by index.
...value of null is returned if the index is out of range, and a typeerror is thrown if no argument is provided.
NonDocumentTypeChildNode - Web APIs
the nondocumenttypechildnode interface contains methods that are particular to node objects that can have a parent, but not suitable for documenttype.
...typechildnode.previouselementsibling read only returns the element immediately prior to this node in its parent's children list, or null if there is no element in the list prior to this node.
...eturns the element immediately prior to this node in its parent's children list, or null if there is no element in the list prior to this node.
OES_texture_float - Web APIs
the oes_texture_float extension is part of the webgl api and exposes floating-point pixel types for textures.
... the webgl api and exposes floating-point pixel types for textures.
...renderingcontext.teximage2d() and webglrenderingcontext.texsubimage2d(): the type parameter now accepts gl.float.
OES_texture_half_float - Web APIs
the oes_texture_half_float extension is part of the webgl api and adds texture formats with 16- (aka half float) and 32-bit floating-point components.
...ebglrenderingcontext.getextension() method.
...e (16-bit).
OffscreenCanvas - Web APIs
the offscreencanvas interface provides a canvas that can be rendered off screen.
... creates an imagebitmap object from the most recently rendered image of the offscreencanvas.
...ge of the offscreencanvas.
PaintWorklet - Web APIs
the paintworklet interface of the css painting api programmatically generates an image where a css property expects a file.
... the paintworklet interface of the css painting api programmatically generates an image where a css property expects a file.
...face through css.paintworklet.
PannerNode.setOrientation() - Web APIs
the setorientation() method of the pannernode interface defines the direction the audio source is playing in.
... parameters x, y and z are unitless and describe a direction vector in 3d space using the right-hand cartesian coordinate system.
...ut our panner-node example (view the source code) — this demo transports you to the 2.5d "room of metal", where you can play a track on a boom box and then walk around the boom box to see how the sound changes!
ParentNode.append() - Web APIs
Web › API › ParentNode › append
the parentnode.append() method inserts a set of node objects or domstring objects after the last child of the parentnode.
... ] appending text let parent = document.createelement("div") parent.append("some text") console.log(parent.textcontent) // "some text" appending an element and text let parent = document.createelement("div") let p = document.createelement("p") parent.append("some text", p) console.log(parent.childnodes) // nodelist [ #text "some text", <p> ] parentnode.append() is unscopable the append() method is not scoped into the with statement.
...rent.append("some text", p) console.log(parent.childnodes) // nodelist [ #text "some text", <p> ] parentnode.append() is unscopable the append() method is not scoped into the with statement.
ParentNode.prepend() - Web APIs
the parentnode.prepend() method inserts a set of node objects or domstring objects before the first child of the parentnode.
...lement("div"); parent.append("some text"); parent.prepend("headline: "); console.log(parent.textcontent); // "headline: some text" appending an element and text var parent = document.createelement("div"); var p = document.createelement("p"); parent.prepend("some text", p); console.log(parent.childnodes); // nodelist [ #text "some text", <p> ] parentnode.prepend() is unscopable the prepend() method is not scoped into the with statement.
...nd("some text", p); console.log(parent.childnodes); // nodelist [ #text "some text", <p> ] parentnode.prepend() is unscopable the prepend() method is not scoped into the with statement.
ParentNode.querySelectorAll() - Web APIs
the parentnode mixin defines the queryselectorall() method as returning a nodelist representing a list of elements matching the specified group of selectors which are descendants of the object on which the method was called.
... the parentnode mixin defines the queryselectorall() method as returning a nodelist representing a list of elements matching the specified group of selectors which are descendants of the object on which the method was called.
... the parentnode mixin defines the queryselectorall() method as returning a nodelist representing a list of elements matching the specified group of selectors which are descendants of the object on which the method was called.
ParentNode - Web APIs
the parentnode mixin contains methods and properties that are common to all types of node objects that can have children.
...element objects that are children of this parentnode, omitting all of its non-element nodes.
...hat specification.
PaymentRequest - Web APIs
ure context returns the identifier of the selected shipping option.
...that might be shown.
...gent requires that the merchant validate that the merchant or vendor requesting payment is legitimate.
PaymentRequestUpdateEvent.updateWith() - Web APIs
the updatewith() method of the paymentrequestupdateevent interface updates the details of an existing paymentrequest.
...invoice.
...), including error in the updated data causes the user agent to display the text as a general error message.
PaymentRequestUpdateEvent - Web APIs
dresschange event handler property.
...r property.
...ption.
PaymentResponse: payerdetailchange event - Web APIs
lchange events are delivered by the payment request api to a paymentresponse object when the user makes changes to their personal information while filling out a payment request form.
...vent 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.
... const errors = await promise.all(promisestovalidate).then(results => results.reduce((errors, result), object.assign(errors, result)) ); // if we found any errors, wait for them to be corrected if (object.getownpropertynames(errors).length) { await response.retry(errors); } else { // we have a good payment; send the data to the server await fetch("/pay-for-things/", { method: "post", body: response.json() }); response.complete("success"); } }; await response.retry({ payer: { email: "invalid domain.", phone: "invalid number.", }, }); addeventlistener equivalent you could also set up the event handler using the addeventlistener() method: response.addeventlistener("payerdetailchange", async ev => { ...
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.
...y 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.
...ote: this feature is available in web workers.
performance.clearResourceTimings() - Web APIs
the clearresourcetimings() method removes all performance entries with an entrytype of "resource" from the browser's performance data buffer and sets the size of the performance data buffer to zero.
... the clearresourcetimings() method removes all performance entries with an entrytype of "resource" from the browser's performance data buffer and sets the size of the performance data buffer to zero.
...ries with an entrytype of "resource" from the browser's performance data buffer and sets the size of the performance data buffer to zero.
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.
...lication defined timestamp can be retrieved by one of the performance interface's getentries*() methods (getentries(), getentriesbyname() or getentriesbytype()).
PerformanceEntry.duration - Web APIs
e difference between the performanceentry.responseend and performanceentry.starttime timestamps.
... 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 method var supported = typeof obj[methods[i]] == "fun...
...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 method var supported = typeof obj[methods[i]] == "function"; if (supported) { var js = obj[methods[i]](); log("..." + methods[i] + "() = " + json.stringify(js)); } else { log("..." + methods[i] + " = not supported"); } } } specifications specification status comment performance timeline level 2the definition of 'duration' in that specification.
PerformanceEntry.name - Web APIs
string performancepainttiming paint either 'first-paint' or 'first-contentful-paint'.
... 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 method var supported = typeof obj[methods[i]] == "fun...
...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 method var supported = typeof obj[methods[i]] == "function"; if (supported) { var js = obj[methods[i]](); log("..." + methods[i] + "() = " + json.stringify(js)); } else { log("..." + methods[i] + " = not supported"); } } } specifications specification status comment performance timeline level 2the definition of 'name' in that specification.
PerformanceEntry.startTime - Web APIs
ormanceresourcetiming object), this property returns the performanceentry.fetchstart timestamp.
... 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 method var supported = typeof obj[methods[i]] == "fun...
...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 method var supported = typeof obj[methods[i]] == "function"; if (supported) { var js = obj[methods[i]](); log("..." + methods[i] + "() = " + json.stringify(js)); } else { log("..." + methods[i] + " = not supported"); } } } specifications specification status comment performance timeline level 2the definition of 'starttime' in that specification.
PerformanceEntry - Web APIs
the performanceentry object encapsulates a single performance metric that is part of the performance timeline.
...y.entrytype read only a domstring representing the type of performance metric such as, for example, "mark".
... recommendation adds the performancemark and performancemeasure interfaces as well as the mark and measure values for entrytype.
PerformanceNavigation - Web APIs
ties.
... the url in the address bar.
...ge was accessed by clicking the reload button or via the location.reload() method.
PeriodicWave - Web APIs
efine custom oscillators when calling oscillatornode.setperiodicwave().
... itself is created/returned by audiocontext.createperiodicwave().
...odicwave().
Using Pointer Events - Web APIs
on github and pull requests and bug reports are welcome.
...sepad) with the physical screen.
... starting point for each touch's new line segment to be drawn.
ProgressEvent - Web APIs
al.
...ource using http, this only represent the part of the content itself, not headers and other overhead.
...nting the total amount of work that the underlying process is in the progress of performing.
PromiseRejectionEvent - Web APIs
s a promiserejectionevent event, given the type of event (unhandledrejection or rejectionhandled) and other details.
... the type of event (unhandledrejection or rejectionhandled) and other details.
... (unhandledrejection or rejectionhandled) and other details.
PushManager.registrations() - Web APIs
the registrations method is used to ask the system about existing push endpoint registrations.
... the registrations method is used to ask the system about existing push endpoint registrations.
... the registrations method is used to ask the system about existing push endpoint registrations.
PushManager - Web APIs
request urls for push notifications.
...at resolves to the permission state of the current pushmanager, which will be one of 'granted', 'denied', or 'prompt'.
....
RTCDTMFToneChangeEvent - Web APIs
mstring specifying the tone which has begun playing, or an empty string ("") if the previous tone has finished playing.
... tone which has begun playing, or an empty string ("") if the previous tone has finished playing.
...("") if the previous tone has finished playing.
RTCDataChannelEvent - Web APIs
hen you receive it, use the rtcdatachannelevent.channel property to gain access to the data channel which has been opened.
...tcdatachannelevent.channel property to gain access to the data channel which has been opened.
...nnel property to gain access to the data channel which has been opened.
RTCIceTransport - Web APIs
a domstring indicating what the current state of the ice agent is.
... what the current state of the ice agent is.
...describing one of the ice candidates that have been gathered so far for the local device.
RTCOfferOptions.iceRestart - Web APIs
the icerestart property of the rtcofferoptions dictionary is a boolean value which, when true, tells the rtcpeerconnection to start ice renegotiation.
...her or not the rtcpeerconnection should generate new values for the connection's ice-ufrag and ice-pwd values, which will trigger ice renegotiation on the next message sent to the remote peer.
... pc.oniceconnectionstatechange = function(evt) { if (pc.iceconnectionstate === "failed") { if (pc.restartice) { pc.restartice(); } else { pc.createoffer({ icerestart: true }) .then(pc.setlocaldescription) .then(sendoffertoserver); } } } if the state changes to failed, this handler starts by looking to see if the rtcpeerconnection includes the restartice() method; if it does, we call that to request an ice restart.
RTCPeerConnection.addStream() - Web APIs
the obsolete rtcpeerconnection method addstream() adds a mediastream as a local source of audio or video.
... the obsolete rtcpeerconnection method addstream() adds a mediastream as a local source of audio or video.
... connection.
RTCPeerConnection.getIdentityAssertion() - Web APIs
the rtcpeerconnection.getidentityassertion() method initiates the gathering of an identity assertion.
... the rtcpeerconnection.getidentityassertion() method initiates the gathering of an identity assertion.
...nalingstate is not "closed".
RTCPeerConnection.getStats() - Web APIs
the rtcpeerconnection method getstats() returns a promise which resolves with data providing statistics about either the overall connection or about the specified mediastreamtrack.
...rameters selector optional a mediastreamtrack for which to gather statistics.
...n of getstats() is obsolete; in addition, the data it returns is entirely different from the current specification, and the form of that data was never documented.
RTCPeerConnection.setLocalDescription() - Web APIs
the rtcpeerconnection method setlocaldescription() changes the local description associated with the connection.
... the rtcpeerconnection method setlocaldescription() changes the local description associated with the connection.
...nput parameters to be be called once the description has been successfully set.
RTCPeerConnection.setRemoteDescription() - Web APIs
the rtcpeerconnection method setremotedescription() sets the specified session description as the remote peer's current offer or answer.
... the rtcpeerconnection method setremotedescription() sets the specified session description as the remote peer's current offer or answer.
...nput parameters to be be called once the description has been successfully set.
RTCRemoteOutboundRtpStreamStats.localId - Web APIs
xamine, try out, and experiment with this example on glitch.
... to output some information about the network conditions...
...ize: ${bytessent} bytes.</div>`; statsbox.innerhtml += logentry; } else { statsbox.innerhtml += `<div class="stats-error">unable to find initial statistics for id ${endremoteoutbound.id}.</div>` } } statsbox.scrollto(0, statsbox.scrollheight); } } } here's what's going on in the networkteststop() function: after calling the rtcpeerconnection method getstats() to get the latest statistics report for the connection and storing it in endreport, this is an rtcstatsreport object, which maps strings taken from the rtcstatstype enumerated type to objects of the corresponding rtcstats-based type.
RTCRtpSender - Web APIs
and rtcp packets used to manage transmission of media and control data.
...der.setparameters() applies changes to parameters which configure how the track is encoded and transmitted to the remote peer.
...to the remote peer.
Range.setStart() - Web APIs
Web › API › Range › setStart
the range.setstart() method sets the start position of a range.
... points both set to the specified start position.
...fset = 2; // start at third node: 101 e.
ReadableStream - Web APIs
ams api represents a readable stream of byte data.
...leased.
...eturns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
Report - Web APIs
Web › API › Report
the report interface of the reporting api represents a single report.
...ver's report queue.
... requests to the endpoints defined via the report-to http header.
Response - Web APIs
Web › API › Response
esponse.usefinalurl a boolean indicating whether this is the final url of the response.
...e getter exposing a readablestream of the body contents.
...odyused read only stores a boolean that declares whether the body has been used in a response yet.
SVGAltGlyphDefElement - Web APIs
naco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgaltglyphdefelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} warning: this interface was removed in the svg 2 specification.
..."middle" alignment-baseline="middle">svgaltglyphdefelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} warning: this interface was removed in the svg 2 specification.
...eline="middle">svgaltglyphdefelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} warning: this interface was removed in the svg 2 specification.
SVGAltGlyphElement - Web APIs
ent.
...href it corresponds to the attribute glyphref on the given element.
...to the attribute glyphref on the given element.
SVGAltGlyphItemElement - Web APIs
aco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgaltglyphitemelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} warning: this interface was removed in the svg 2 specification.
...middle" alignment-baseline="middle">svgaltglyphitemelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} warning: this interface was removed in the svg 2 specification.
...line="middle">svgaltglyphitemelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} warning: this interface was removed in the svg 2 specification.
SVGAnimateColorElement - Web APIs
d4dde4" stroke-width="2px" /><text x="111" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svganimatecolorelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svganimationelement.
...ext x="111" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svganimatecolorelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svganimationelement.
...ont-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svganimatecolorelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svganimationelement.
SVGAnimateElement - Web APIs
ke="#d4dde4" stroke-width="2px" /><text x="166" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svganimateelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svganimationelement.
... /><text x="166" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svganimateelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svganimationelement.
...94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svganimateelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svganimationelement.
SVGAnimateMotionElement - Web APIs
4dde4" stroke-width="2px" /><text x="136" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svganimatemotionelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svganimationelement.
...xt x="136" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svganimatemotionelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svganimationelement.
...nt-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svganimatemotionelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svganimationelement.
SVGAnimateTransformElement - Web APIs
e4" stroke-width="2px" /><text x="121" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svganimatetransformelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svganimationelement.
... x="121" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svganimatetransformelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svganimationelement.
...size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svganimatetransformelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svganimationelement.
SVGAnimatedAngle - Web APIs
svg animated angle interface the svganimatedangle interface is used for attributes of basic type <angle> which can be animated.
...re applying any animations.
...nly svgangle representing the current animated value of the given attribute.
SVGAnimatedBoolean - Web APIs
svg animated boolean interface the svganimatedboolean interface is used for attributes of type boolean which can be animated.
... name type description baseval boolean the base value of the given attribute before applying any animations.
...e base value of the given attribute before applying any animations.
SVGAnimatedEnumeration - Web APIs
svg animated enumeration interface the svganimatedenumeration interface is used for attributes whose value must be a constant from a particular enumeration and which can be animated.
...ype description baseval unsigned short the base value of the given attribute before applying any animations.
...e of the given attribute before applying any animations.
SVGAnimatedInteger - Web APIs
svg animated integer interface the svganimatedinteger interface is used for attributes of basic type <integer> which can be animated.
... name type description baseval long the base value of the given attribute before applying any animations.
... the base value of the given attribute before applying any animations.
SVGAnimatedLength - Web APIs
svg animated length interface the svganimatedlength interface is used for attributes of basic type <length> which can be animated.
... name type description baseval svglength the base value of the given attribute before applying any animations.
... base value of the given attribute before applying any animations.
SVGAnimatedLengthList - Web APIs
svg animated length list interface the svganimatedlengthlist interface is used for attributes of type svglengthlist which can be animated.
... animations.
...st representing the current animated value of the given attribute.
SVGAnimatedNumber - Web APIs
svg animated number interface the svganimatednumber interface is used for attributes of basic type <number> which can be animated.
... name type description baseval float the base value of the given attribute before applying any animations.
... the base value of the given attribute before applying any animations.
SVGAnimatedNumberList - Web APIs
svg animated number list interface the svganimatednumber interface is used for attributes which take a list of numbers and which can be animated.
...ons.
...list that represents the current animated value of the given attribute.
SVGAnimatedPathData - Web APIs
svg animated path data interface the svganimatedpathdata interface supports elements which have a 'd' attribute which holds svg path data, and supports the ability to animate that attribute.
... pathseglist svgpathseglist provides access to the base (i.e., static) contents of the 'd' attribute in a form which matches one-for-one with svg's syntax.
...s access to the base (i.e., static) contents of the 'd' attribute in a form which matches one-for-one with svg's syntax.
SVGAnimatedPreserveAspectRatio - Web APIs
svg animated preserveaspectratio interface the svganimatedpreserveaspectratio interface is used for attributes of type svgpreserveaspectratio which can be animated.
...imatedpreserveaspectratio.animval read only is a svgpreserveaspectratio that represents the current animated value of the given attribute.
...resents the current animated value of the given attribute.
SVGAnimatedRect - Web APIs
the svganimatedrect interface is used for attributes of basic svgrect which can be animated.
...efore applying any animations.
...d only svgrect representing the current animated value of the given attribute.
SVGAnimatedTransformList - Web APIs
svg animated transform list interface the svganimatedtransformlist interface is used for attributes which take a list of numbers and which can be animated.
...ns.
...esenting the current animated value of the given attribute.
SVGCircleElement - Web APIs
ordinate of the center of the <circle> element.
...circle> element.
...s denoted by the cx attribute of the element.
SVGColorProfileElement - Web APIs
element.
...rresponding to the name attribute of the given element.
...element.renderingintent an unsigned short corresponding to the rendering-intent attribute of the given element.
SVGDescElement - Web APIs
" 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">svgdescelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent, svggeometryelement.
...4" 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">svgdescelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent, svggeometryelement.
... /><text x="411" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgdescelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent, svggeometryelement.
SVGDocument - Web APIs
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.
...ent the root "svg" in the document hierarchy.
... title domstring the title of a document as specified by the "title" sub-element of the "svg" root element (i.e., <svg><title>here is the title</title>...</svg>) url domstring the complete uri of the document.
SVGElement - Web APIs
ised to use element.classlist instead.
...nstead.
...nersvgelementread only an svgsvgelement referring to the nearest ancestor <svg> element.
SVGEllipseElement - Web APIs
eelement.cy read only this property returns a svganimatedlength reflecting the cy attribute of the given <ellipse> element.
...atedlength reflecting the cy attribute of the given <ellipse> element.
...the cy attribute of the given <ellipse> element.
SVGFEBlendElement - Web APIs
read only an svganimatedstring corresponding to the in attribute of the given element.
...in attribute of the given element.
... svganimatedstring corresponding to the in2 attribute of the given element.
SVGFEColorMatrixElement - Web APIs
ring corresponding to the in attribute of the given element.
...ement.
...responding to the type attribute of the given element.
SVGFEComponentTransferElement - Web APIs
vgfecomponenttransferelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement, and implements properties of svgfilterprimitivestandardattributes.
... a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement, and implements properties of svgfilterprimitivestandardattributes.
...this interface also inherits properties from its parent interface, svgelement, and implements properties of svgfilterprimitivestandardattributes.
SVGFECompositeElement - Web APIs
string corresponding to the in attribute of the given element.
...element.
...rresponding to the type attribute of the given element.
SVGFEConvolveMatrixElement - Web APIs
hx read only an svganimatednumber corresponding to the kernelunitlength attribute of the given element.
...he kernelunitlength attribute of the given element.
...nt.kernelunitlengthy read only an svganimatednumber corresponding to the kernelunitlength attribute of the given element.
SVGFEDiffuseLightingElement - Web APIs
ding to the diffuseconstant attribute of the given element.
...ment.
...ednumber corresponding to the x component of the kernelunitlength attribute of the given element.
SVGFEDisplacementMapElement - Web APIs
ad only an svganimatedenumeration corresponding to the xchannelselect attribute of the given element.
...he xchannelselect attribute of the given element.
...nnel_* constants defined on this interface.
SVGFEDropShadowElement - Web APIs
given element.
...t.stddeviationx read only an svganimatednumber corresponding to the (possibly automatically computed) x component of the stddeviationx attribute of the given element.
...ponding to the (possibly automatically computed) x component of the stddeviationx attribute of the given element.
SVGFEGaussianBlurElement - Web APIs
.
...ony read only an svganimatednumber corresponding to the (possibly automatically computed) y component of the stddeviation attribute of the given element.
...he (possibly automatically computed) y component of the stddeviation attribute of the given element.
SVGFEImageElement - Web APIs
and implements properties of svgfilterprimitivestandardattributes and svgurireference.
...dattributes and svgurireference.
...o read only an svganimatedpreserveaspectratio corresponding to the preserveaspectratio attribute of the given element.
SVGFEMergeElement - Web APIs
as,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfemergeelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface not provide any specific properties, but inherits properties from its parent interface, svgelement, and also implements properties of svgfilterprimitivestandardattributes.
...nchor="middle" alignment-baseline="middle">svgfemergeelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface not provide any specific properties, but inherits properties from its parent interface, svgelement, and also implements properties of svgfilterprimitivestandardattributes.
...</div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface not provide any specific properties, but inherits properties from its parent interface, svgelement, and also implements properties of svgfilterprimitivestandardattributes.
SVGFEMorphologyElement - Web APIs
bute of the given element.
...phology_operator_* constants defined on this interface.
...nt.radiusx read only an svganimatednumber corresponding to the x component of the radius attribute of the given element.
SVGFEOffsetElement - Web APIs
ements properties of svgfilterprimitivestandardattributes.
...tes.
... to the in attribute of the given element.
SVGFESpecularLightingElement - Web APIs
g to the specularexponent attribute of the given element.
...nt.
...dnumber corresponding to the x component of the kernelunitlength attribute of the given element.
SVGFETileElement - Web APIs
t-baseline="middle">svgfetileelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement, and also implements properties of svgfilterprimitivestandardattributes.
.../div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement, and also implements properties of svgfilterprimitivestandardattributes.
...s this interface also inherits properties from its parent interface, svgelement, and also implements properties of svgfilterprimitivestandardattributes.
SVGFETurbulenceElement - Web APIs
ment.stitchtiles read only an svganimatedenumeration corresponding to the stitchtiles attribute of the given element.
... corresponding to the stitchtiles attribute of the given element.
...e of the svg_stitchtype_* constants defined on this interface.
SVGFitToViewBox - Web APIs
svg fit to view box interface the svgfittoviewbox interface is used to reflect the viewbox and preserveaspectratio attributes, and is mixed in to other interfaces for elements that support these two attributes.
... name type description preserveaspectratio svganimatedpreserveaspectratio corresponds to attribute preserveaspectratio on the given element.
... preserveaspectratio svganimatedpreserveaspectratio corresponds to attribute preserveaspectratio on the given element.
SVGFontFaceElement - Web APIs
7f8" 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">svgfontfaceelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement.
...dth="2px" /><text x="91" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfontfaceelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement.
..."91" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfontfaceelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement.
SVGFontFaceFormatElement - Web APIs
roke="#d4dde4" stroke-width="2px" /><text x="121" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfontfaceformatelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement.
...x" /><text x="121" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfontfaceformatelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement.
...="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfontfaceformatelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement.
SVGFontFaceNameElement - Web APIs
stroke="#d4dde4" stroke-width="2px" /><text x="111" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfontfacenameelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement.
...2px" /><text x="111" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfontfacenameelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement.
... y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfontfacenameelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement.
SVGFontFaceSrcElement - Web APIs
stroke="#d4dde4" stroke-width="2px" /><text x="106" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfontfacesrcelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement.
..."2px" /><text x="106" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfontfacesrcelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement.
..." y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfontfacesrcelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement.
SVGFontFaceUriElement - Web APIs
stroke="#d4dde4" stroke-width="2px" /><text x="106" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfontfaceurielement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement.
..."2px" /><text x="106" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfontfaceurielement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement.
..." y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfontfaceurielement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement.
SVGGElement - Web APIs
px" /><text x="206" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svggelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svggraphicselement.
...y="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svggelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svggraphicselement.
...ale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svggelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svggraphicselement.
SVGGeometryElement - Web APIs
ght="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="171" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svggeometryelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} note: the pathlength property and the gettotallength() and getpointatlength() methods were originally part of the svgpathelement interface.
...pointer-events: all;} note: the pathlength property and the gettotallength() and getpointatlength() methods were originally part of the svgpathelement interface.
... pathlength property and the gettotallength() and getpointatlength() methods were originally part of the svgpathelement interface.
SVGGlyphElement - Web APIs
las,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgglyphelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} warning: this interface was removed in the svg 2 specification.
...nchor="middle" alignment-baseline="middle">svgglyphelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} warning: this interface was removed in the svg 2 specification.
...nt-baseline="middle">svgglyphelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} warning: this interface was removed in the svg 2 specification.
SVGHKernElement - Web APIs
f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="76" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svghkernelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement.
...-width="2px" /><text x="76" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svghkernelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement.
... x="76" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svghkernelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement.
SVGLinearGradientElement - Web APIs
eargradientelement.y1 read only an svganimatedlength corresponding to the y1 attribute of the given <lineargradient> element.
...corresponding to the y1 attribute of the given <lineargradient> element.
...1 attribute of the given <lineargradient> element.
SVGMPathElement - Web APIs
h="2px" /><text x="406" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgmpathelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svgelement.
...amily="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgmpathelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svgelement.
...,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgmpathelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svgelement.
SVGMarkerElement - Web APIs
svg path segment interface the svgmarkerelement interface corresponds to the marker element.
...attribute orient on the given marker element.
...r element.
SVGMetadataElement - Web APIs
2px" /><text x="391" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgmetadataelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svgelement.
...ly="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgmetadataelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svgelement.
...dale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgmetadataelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svgelement.
SVGPathSeg - Web APIs
svg path segment interface this is a base interface that corresponds to a single command within a path data specification.
...ption pathsegtype unsigned short the type of the path segment as specified by one of the constants defined on this interface.
... unsigned short the type of the path segment as specified by one of the constants defined on this interface.
SVGPatternElement - Web APIs
lement.
...enumeration corresponding to the y attribute of the given <pattern> element.
...ing to the y attribute of the given <pattern> element.
SVGPreserveAspectRatio - Web APIs
svg preserveaspectratio interface the svgpreserveaspectratio interface corresponds to the preserveaspectratio attribute, which is available for some of svg's elements.
...ne of the svg_preserveaspectratio_* constants defined on this interface.
... meetorslice unsigned short the type of the meet-or-slice value as specified by one of the svg_meetorslice_* constants defined on this interface.
SVGRadialGradientElement - Web APIs
adialgradientelement.r read only an svganimatedlength corresponding to the r attribute of the given <radialgradient> element.
... corresponding to the r attribute of the given <radialgradient> element.
...r attribute of the given <radialgradient> element.
SVGScriptElement - Web APIs
nts: all;} properties svgscriptelement.type read only a domstring corresponding to the type attribute of the given <script> element.
...ad only a domstring corresponding to the type attribute of the given <script> element.
...corresponding to the type attribute of the given <script> element.
SVGSetElement - Web APIs
/><text x="186" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgsetelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svganimationelement.
...consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgsetelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svganimationelement.
... mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgsetelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svganimationelement.
SVGSolidcolorElement - Web APIs
x" /><text x="101" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgsolidcolorelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svgelement.
...="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgsolidcolorelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svgelement.
...le mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgsolidcolorelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svgelement.
SVGStopElement - Web APIs
olas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgstopelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement.
...anchor="middle" alignment-baseline="middle">svgstopelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement.
...ent-baseline="middle">svgstopelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement.
SVGSwitchElement - Web APIs
><text x="181" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgswitchelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svggraphicselement.
...nsolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgswitchelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svggraphicselement.
...ono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgswitchelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svggraphicselement.
SVGTRefElement - Web APIs
="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgtrefelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgtextpositioningelement and implements properties from svgurireference.
...ily="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgtrefelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgtextpositioningelement and implements properties from svgurireference.
...andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgtrefelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgtextpositioningelement and implements properties from svgurireference.
SVGTextElement - Web APIs
x="-349" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgtextelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svgtextpositioningelement.
...s,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgtextelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svgtextpositioningelement.
...onospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgtextelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svgtextpositioningelement.
SVGTextPositioningElement - Web APIs
given element.
...y returns an svganimatedlengthlist reflecting the dx attribute of the given element.
...atedlengthlist reflecting the dx attribute of the given element.
SVGTitleElement - Web APIs
h="2px" /><text x="406" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgtitleelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svgelement.
...amily="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgtitleelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svgelement.
...,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgtitleelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent interface, svgelement.
SVGTransform - Web APIs
one of the component transformations within an svgtransformlist; thus, an svgtransform object corresponds to a single component (e.g., scale(…) or matrix(…)) within a transform attribute.
... for svg_transform_matrix, svg_transform_translate and svg_transform_scale, angle will be zero.
...ent the scale amounts (b=0, c=0, e=0 and f=0).
SVGVKernElement - Web APIs
f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="76" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgvkernelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement.
...-width="2px" /><text x="76" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgvkernelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement.
... x="76" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgvkernelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its parent, svgelement.
Screen.lockOrientation() - Web APIs
the lockorientation() method of the screen interface locks the screen into a specified orientation.
... the lockorientation() method of the screen interface locks the screen into a specified orientation.
... the lockorientation() method of the screen interface locks the screen into a specified orientation.
Screen.unlockOrientation() - Web APIs
the screen.unlockorientation() method removes all the previous screen locks set by the page/app.
... the screen.unlockorientation() method removes all the previous screen locks set by the page/app.
... the screen.unlockorientation() method removes all the previous screen locks set by the page/app.
Screen - Web APIs
Web › API › Screen
istance in pixels from the top side of the current screen.
...ontrols the brightness of a device's screen.
...tation unlock the screen orientation (only works in fullscreen or for installed apps) methods inherited from eventtarget: eventtarget.addeventlistener() registers an event handler of a specific event type on the eventtarget.
Screen Wake Lock API - Web APIs
een wake lock.
... be rejected for a number of reasons, including system settings (such as power save mode or low battery level) or if the document is not active or visible.
...lock support and updates the ui accordingly.
Selection.deleteFromDocument() - Web APIs
the deletefromdocument() method of the selection interface deletes the selected text from the document's dom.
... the deletefromdocument() method of the selection interface deletes the selected text from the document's dom.
... the deletefromdocument() method of the selection interface deletes the selected text from the document's dom.
Selection.toString() - Web APIs
the selection.tostring() method returns a string currently being represented by the selection object, i.e.
... the selection.tostring() method returns a string currently being represented by the selection object, i.e.
... the selection.tostring() method returns a string currently being represented by the selection object, i.e.
Selection API - Web APIs
the selection api provides functionality for reading and manipulating the range of text selected by the user.
...rnet android full support yescontainsnode experimentalchrome full support yesedge full support 12firefox full support 4notes full support 4notes notes before firefox 35, the method didn't throw if node was null.ie no support noopera full support yessafari full support yeswebview android full support yeschrome android full support yesfirefox android ...
...yessafari full support yeswebview android full support yeschrome android full support yesfirefox android full support 4notes full support 4notes notes before firefox 35, the method didn't throw if node was null.opera android full support yessafari ios full support yessamsung internet android full support yesdeletefromdocument experimentalchrome full support yesedge full support ...
Sensor APIs - Web APIs
a real hardware sensor, whether that sensor works, if it's still connected, or even whether the user has granted access to it.
...ides the acceleration applied to the device along all three axes, but without the contribution of gravity.
...tead it provides properties and methods accessed by interfaces that inherit from it.
ServiceWorkerGlobalScope: pushsubscriptionchange event - Web APIs
interface pushsubscriptionchangeevent event handler property onpushsubscriptionchange usage notes although examples demonstrating how to share subscription related information with the application server tend to use fetch(), this is not necessarily the best choice for real-world use, since it will not work if the app is offline, for example.
...pushsubscription has expired.
...{ return fetch("register", { method: "post", headers: { "content-type": "application/json" }, body: json.stringify({ endpoint: subscription.endpoint }) }); }) ); }, false); when a pushsubscriptionchange event arrives, indicating that the subscription has expired, we resubscribe by calling the push manager's subscribe() method.
ServiceWorkerGlobalScope - Web APIs
, a service worker can and will be terminated when idle to conserve memory and processor power.
...y.
...rvice sets an expiration time).
StaticRange - Web APIs
the dom staticrange interface extends abstractrange to provide a method to specify a range of content in the dom whose contents don't update to reflect changes which occur within the dom tree.
... the dom staticrange interface extends abstractrange to provide a method to specify a range of content in the dom whose contents don't update to reflect changes which occur within the dom tree.
... endcontainer at which the last character of the range is found.
Streams API concepts - Web APIs
adable streams via mechanisms like a response.body from a fetch request, or roll your own streams using the readablestream() constructor.
... the stream (for example, to abort it if wished).
...ackpressure in a readablestream, we can ask the controller for the chunk size desired by the consumer by querying the readablestreamdefaultcontroller.desiredsize property on the controller.
SubtleCrypto.decrypt() - Web APIs
the decrypt() method of the subtlecrypto interface decrypts some encrypted data.
... invalidaccesserror raised when the requested operation is not valid for the provided key (e.g.
...tion is not valid for the provided key (e.g.
SubtleCrypto.deriveBits() - Web APIs
the derivebits() method of the subtlecrypto interface can be used to derive an array of bits from a base key.
... the derivebits() method of the subtlecrypto interface can be used to derive an array of bits from a base key.
...and bob's public key.
SubtleCrypto.importKey() - Web APIs
the importkey() method of the subtlecrypto interface imports a key: that is, it takes as input a key in an external, portable format and gives you a cryptokey object that you can use in the web crypto api.
...u can use this format to import or export rsa or elliptic curve private keys.
....
SubtleCrypto.verify() - Web APIs
the verify() method of the subtlecrypto interface verifies a digital signature.
... fulfills with a boolean: true if the signature is valid, false otherwise.
... valid, false otherwise.
TextEncoder - Web APIs
example const encoder = new textencoder() const view = encoder.encode('€') console.log(view); // uint8array(3) [226, 130, 172] constructor textencoder() returns a newly constructed textencoder that will generate a byte stream with utf-8 encoding.
...w = encoder.encode('€') console.log(view); // uint8array(3) [226, 130, 172] constructor textencoder() returns a newly constructed textencoder that will generate a byte stream with utf-8 encoding.
...any method.
Touch - Web APIs
Web › API › Touch
s screeny.
... read only returns the angle (in degrees) that the ellipse described by radiusx and radiusy must be rotated, clockwise, to most accurately cover the area of contact between the user and the surface.
...e described by radiusx and radiusy must be rotated, clockwise, to most accurately cover the area of contact between the user and the surface.
TrackEvent - Web APIs
tializes a new trackevent object with the event type specified, as well as optional additional properties.
...bject with the event type specified, as well as optional additional properties.
...operties.
Transferable - Web APIs
the transferable interface represents an object that can be transfered between different execution contexts, like the main thread and web workers.
...interface represents an object that can be transfered between different execution contexts, like the main thread and web workers.
...cally no longer exists.
TransitionEvent.initTransitionEvent() - Web APIs
the transitionevent.inittransitionevent() method initializes a transition event created using the deprecated document.createevent("transitionevent") method.
... the transitionevent.inittransitionevent() method initializes a transition event created using the deprecated document.createevent("transitionevent") method.
...ean flag indicating if the event associated action can be avoided (true) or not (false).
TreeWalker - Web APIs
the treewalker object represents the nodes of a document subtree and a position within them.
... nodefilter.show_text 4 shows text nodes.
...odes.
URL.revokeObjectURL() - Web APIs
the url.revokeobjecturl() static method releases an existing object url which was previously created by calling url.createobjecturl().
... the url.revokeobjecturl() static method releases an existing object url which was previously created by calling url.createobjecturl().
... the url.revokeobjecturl() static method releases an existing object url which was previously created by calling url.createobjecturl().
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.
URLUtilsReadOnly - Web APIs
the obsolete urlutilsreadonly interface previously defined utility methods for working with urls.
... only is a domstring containing the port number of the url.
...umber of the url.
VideoPlaybackQuality - Web APIs
a videoplaybackquality object is returned by the htmlvideoelement.getvideoplaybackquality() method and contains metrics that can be used to determine the playback quality of a video.
...d long giving the number of video frames corrupted since the creation of the associated htmlvideoelement.
...since the creation of the associated htmlvideoelement.
WEBGL_compressed_texture_astc - Web APIs
the webgl_compressed_texture_astc extension is part of the webgl api and exposes adaptive scalable texture compression (astc) compressed texture formats to webgl.
...icle using astc texture compression for game assets by nvidia.
...game assets by nvidia.
WEBGL_compressed_texture_etc1 - Web APIs
the webgl_compressed_texture_etc1 extension is part of the webgl api and exposes the etc1 compressed texture format.
...res or more of the same resolution textures.
...e using the webglrenderingcontext.getextension() method.
WEBGL_debug_shaders - Web APIs
the webgl_debug_shaders extension is part of the webgl api and exposes a method to debug shaders from privileged contexts.
...ers extension is part of the webgl api and exposes a method to debug shaders from privileged contexts.
...ind of graphics card in the user's computer.
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.
... 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.
... 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.
WaveShaperNode - Web APIs
an waveshapernode object.
...ject.
...s inherits properties from its parent, audionode.
WebGLRenderingContext.clear() - Web APIs
the webglrenderingcontext.clear() method of the webgl api clears buffers to preset values.
... the webglrenderingcontext.clear() method of the webgl api clears buffers to preset values.
...temasks can affect the clear() method.
WebGLRenderingContext.compressedTexImage[23]D() - Web APIs
the webglrenderingcontext.compressedteximage2d() and webgl2renderingcontext.compressedteximage3d() methods of the webgl api specify a two- or three-dimensional texture image in a compressed format.
... the webglrenderingcontext.compressedteximage2d() and webgl2renderingcontext.compressedteximage3d() methods of the webgl api specify a two- or three-dimensional texture image in a compressed format.
...ive z face for a cube-mapped texture.
WebGLRenderingContext.compressedTexSubImage2D() - Web APIs
the webglrenderingcontext.compressedtexsubimage2d() method of the webgl api specifies a two-dimensional sub-rectangle for a texture image in a compressed format.
... the webglrenderingcontext.compressedtexsubimage2d() method of the webgl api specifies a two-dimensional sub-rectangle for a texture image in a compressed format.
...ffset within the compressed texture image.
WebGLRenderingContext.getContextAttributes() - Web APIs
the webglrenderingcontext.getcontextattributes() method returns a webglcontextattributes object that contains the actual context parameters.
...syntax gl.getcontextattributes(); return value a webglcontextattributes object that contains the actual context parameters, or null if the context is lost.
...n object that describes the attributes set on this context, for example: { alpha: true, antialias: true, depth: true, failifmajorperformancecaveat: false, powerpreference: "default", premultipliedalpha: true, preservedrawingbuffer: false, stencil: false, desynchronized: false } the context attributes can be set when creating the context using the htmlcanvaselement.getcontext() method: canvas.getcontext('webgl', { antialias: false, depth: false }); see getcontext() for more information about the individual attributes.
WebGLRenderingContext.makeXRCompatible() - Web APIs
the webglrenderingcontext method makexrcompatible() ensures that the rendering context described by the webglrenderingcontext is ready to render the scene for the immersive webxr device on which it will be displayed.
...as.
... new rendering hardware, the existing contents of the context may be lost and, therefore, would need to be re-rendered.
WebRTC connectivity - Web APIs
scription.
...about codecs supported by webrtc and which are compatible with which browsers.
... by the new candidate pair.
WebSocket.close() - Web APIs
Web › API › WebSocket › close
the websocket.close() method closes the websocket connection or connection attempt, if any.
... the websocket.close() method closes the websocket connection or connection attempt, if any.
...see the list of status codes of closeevent for permitted values.
Writing WebSocket client applications - Web APIs
which protocol the server selected.
...nnection, you can begin transmitting data to the server.
... f.write(text); document.getelementbyid("chatbox").contentwindow.scrollbypages(1); } }; here we use json.parse() to convert the json object back into the original object, then examine and act upon its contents.
Writing a WebSocket server in Java - Web APIs
l.regex.matcher; import java.util.regex.pattern; public class websocket { public static void main(string[] args) throws ioexception, nosuchalgorithmexception { serversocket server = new serversocket(80); try { system.out.println("server has started on 127.0.0.1:80.\r\nwaiting for a connection..."); socket client = server.accept(); system.out.println("a client connected."); socket methods: java.net.socket getinputstream() returns an input stream for this socket.
... = new serversocket(80); try { system.out.println("server has started on 127.0.0.1:80.\r\nwaiting for a connection..."); socket client = server.accept(); system.out.println("a client connected."); socket methods: java.net.socket getinputstream() returns an input stream for this socket.
...accept(); system.out.println("a client connected."); socket methods: java.net.socket getinputstream() returns an input stream for this socket.
Web Video Text Tracks Format (WebVTT) - Web APIs
e interface code is given below which can be used to expose the webvtt regions in dom api: enum scrollsetting { "" /* none */, "up" }; [constructor] interface vttregion { attribute double width; attribute long lines; attribute double regionanchorx; attribute double regionanchory; attribute double viewportanchorx; attribute double viewportanchory; attribute scrollsetting scroll; }; methods and properties the methods used in webvtt are those which are used to alter the cue or region as the attributes for both interfaces are different.
...e double regionanchory; attribute double viewportanchorx; attribute double viewportanchory; attribute scrollsetting scroll; }; methods and properties the methods used in webvtt are those which are used to alter the cue or region as the attributes for both interfaces are different.
...e methods which are available in this interface are: getcueashtml to get the html of that cue.
Movement, orientation, and motion: A WebXR example - Web APIs
he value of xrsession to see if we already have a xrsession object representing an ongoing webxr session.
...slation() function for 4x4 matrices is used to convert the viewer's start position as given in the viewerstartposition constant into a transform matrix.
...are four calls to displaymatrix(), a function which displays the contents of a matrix for analysis by the user.
Web Locks API - Web APIs
main entry point is navigator.locks.request() which requests a lock.
...t the same time.
...ing lock requests are not nested, or are always well ordered, or have timeouts.
Using the Web Storage API - Web APIs
walkthrough of how to make use of this technology.
...e: as well as viewing the example pages live using the above links, you can also check out the source code.
...t object associated with this event has a number of properties containing useful information — the key of the data that changed, the old value before the change, the new value after that change, the url of the document that changed the storage, and the storage object itself (which we've stringified so you can see its content).
Web Workers API - Web APIs
edworkerglobalscope object (in the case of dedicated workers - workers that are utilized by a single script), or a sharedworkerglobalscope (in the case of shared workers - workers that are shared between multiple scripts).
...ker, or use some default methods and properties of the window object.
...ons and have access to js-ctypes in your worker.
WheelEvent - Web APIs
delta* values' scroll amount.
... constant value description wheelevent.dom_delta_pixel 0x00 the delta* values are specified in pixels.
... value description wheelevent.dom_delta_pixel 0x00 the delta* values are specified in pixels.
Window.back() - Web APIs
Web › API › Window › back
the obsolete and non-standard method back() on the window interface returns the window to the previous item in the history.
... the obsolete and non-standard method back() on the window interface returns the window to the previous item in the history.
... the obsolete and non-standard method back() on the window interface returns the window to the previous item in the history.
Window.captureEvents() - Web APIs
the window.captureevents() method registers the window to capture all events of the specified type.
... detected!'); } </script> </head> <body onload="reg();"> <p>click anywhere on this page.</p> </body> </html> notes events raised in the dom by user activity (such as clicking buttons or shifting focus away from the current document) generally pass through the high-level window and document objects first before arriving at the object that initiated the event.
...itiated the event.
Window.convertPointFromPageToNode - Web APIs
given a point specified in the page's coordinate system, the window method convertpointfrompagetonode() returns a point object specifying the same location in the coordinate system of the specified dom node.
... given a point specified in the page's coordinate system, the window method convertpointfrompagetonode() returns a point object specifying the same location in the coordinate system of the specified dom node.
...w.convertpointfrompagetonode(node, pagepoint); parameters node the node into whose coordinate system the point is to be converted.
window.postMessage() - Web APIs
the window.postmessage() method safely enables cross-origin communication between window objects; e.g., between a page and a pop-up that it spawned, or between a page and an iframe embedded within it.
...ch a messageevent on it with targetwindow.postmessage().
...e), a convenient idiom for replying to a // message is to call postmessage on event.source and provide // event.origin as the targetorigin.
Window.requestFileSystem() - Web APIs
the non-standard window method requestfilesystem() method is a google chrome-specific method which lets a web site or app gain access to a sandboxed file system for its own use.
...e system for its own use.
....
WindowOrWorkerGlobalScope.atob() - Web APIs
the windoworworkerglobalscope.atob() function decodes a string of data which has been encoded using base64 encoding.
... the windoworworkerglobalscope.atob() function decodes a string of data which has been encoded using base64 encoding.
...ing const decodeddata = window.atob(encodeddata); // decode the string polyfill you can use a polifill from https://github.com/maxart2501/base64-js/blob/master/base64.js for browsers that don't support it.
WorkerLocation - Web APIs
ring containing an initial '/' followed by the path of the url of the script executed in the worker.
... url of the script executed in the worker.
...uted in the worker.
WorkerNavigator - Web APIs
the workernavigator interface implements properties from the navigatorid, navigatorlanguage, navigatoronline, navigatordatastore, and navigatorconcurrenthardware interfaces.
...ther the browser is online.
... read only returns a string representing the platform of the browser.
WritableStream - Web APIs
the writablestream interface of the the streams api provides a standard abstraction for writing streaming data to a destination, known as a sink.
...ked, no other writer can be acquired until this one is released.
....ready property returns a promise that resolves when the sink (the first property of the writablestream constructor) is done writing data.
WritableStreamDefaultController.error() - Web APIs
the error() method of the writablestreamdefaultcontroller interface causes any future interactions with the associated stream to error.
... the error() method of the writablestreamdefaultcontroller interface causes any future interactions with the associated stream to error.
... the error() method of the writablestreamdefaultcontroller interface causes any future interactions with the associated stream to error.
XMLDocument - Web APIs
the xmldocument interface represents an xml document.
..." /><text x="441" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">xmldocument</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} property also inherits properties from: document xmldocument.async used with xmldocument.load() to indicate an asynchronous request.
...0" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">xmldocument</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} property also inherits properties from: document xmldocument.async used with xmldocument.load() to indicate an asynchronous request.
XMLHttpRequest.abort() - Web APIs
the xmlhttprequest.abort() method aborts the request if it has already been sent.
... has already been sent.
...changed to xmlhttprequest.unsent (0) and the request's status code is set to 0.
XMLHttpRequest.getResponseHeader() - Web APIs
the xmlhttprequest method getresponseheader() returns the string containing the text of a particular header's value.
... the xmlhttprequest method getresponseheader() returns the string containing the text of a particular header's value.
...e headers with the same name, then their values are returned as a single concatenated string, where each value is separated from the previous one by a pair of comma and space.
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.
XPathEvaluator.evaluate() - Web APIs
the evaluate() method of the xpathevaluator interface executes an xpath expression on the given node or document and returns an xpathresult.
...the expression.
...ext node is from a document that is not supported by the xpathevaluator, a domexception of type wrong_document_err is raised.
XPathExpression.evaluate() - Web APIs
the evaluate() method of the xpathexpression interface executes an xpath expression on the given node or document and returns an xpathresult.
...result.
...ext node is from a document that is not supported by the xpathevaluator, a domexception of type wrong_document_err is raised.
XRBoundedReferenceSpace - Web APIs
useful.
...ties of xrreferencespace, xrboundedreferencespace includes the following: boundsgeometry read only an array of dompointreadonly objects, each of which defines a vertex in the polygon defining the boundaries within which the user will be required to remain.
...ing: boundsgeometry read only an array of dompointreadonly objects, each of which defines a vertex in the polygon defining the boundaries within which the user will be required to remain.
XRFrame - Web APIs
Web › API › XRFrame
onframe() callback function and provides access to the information needed in order to render a single frame of animation for an xrsession describing a vr or ar sccene.
...btain the xrviewerpose describing the viewer's position and orientation in space, and getpose() can be used to create an xrpose describing the relative position of one xrspace relative to another.
...scribing the viewer's position and orientation in space, and getpose() can be used to create an xrpose describing the relative position of one xrspace relative to another.
XRInputSource.targetRaySpace - Web APIs
input sources—regardless of their targetraymode—have a valid targetrayspace.
...requestreferencespace(), but is maintained as a different object to allow for future enhancements to the api.
...pace(), but is maintained as a different object to allow for future enhancements to the api.
XRInputSourceArray.keys() - Web APIs
the keys() method in the xrinputsourcearray interface returns a javascript iterator which can then be used to iterate over the keys used to reference each item in the array of input sources.
...} here, for...of is used to iterate over each of the keys.
...ifications specification status comment webxr device apithe definition of 'xrinputsourcearray' in that specification.1 working draft xrinputsourcearray interface [1] see iterator-like methods in information contained in a webidl file for information on how an iterable declaration in an interface definition causes entries(), foreach(), keys(), and values() methods to be exposed from objects that implement the interface.
XRInputSourceArray.values() - Web APIs
the xrinputsourcearray method values() returns a javascript iterator that can walk over the list of xrinputsource objects contained in the array, from first to last.
...over the array's contents.
...ifications specification status comment webxr device apithe definition of 'xrinputsourcearray' in that specification.1 working draft xrinputsourcearray interface [1] see iterator-like methods in information contained in a webidl file for information on how an iterable declaration in an interface definition causes entries(), foreach(), keys(), and values() methods to be exposed from objects that implement the interface.
XRInputSourcesChangeEvent - Web APIs
.
... or more xrinputsource objects, each representing an input device which has been newly connected or enabled for use.
...each representing an input device which has been newly connected or enabled for use.
XRReferenceSpaceEvent - Web APIs
ace, event, xrreferencespaceevent objects include the following properties: referencespace read only an xrreferencespace indicating the reference space that generated the event.
...lowing properties: referencespace read only an xrreferencespace indicating the reference space that generated the event.
...erencespace read only an xrreferencespace indicating the reference space that generated the event.
XRSession.updateRenderState() - Web APIs
the updaterenderstate() method of the xrsession interface of webxr api schedules changes to be applied to the active render state prior to rendering of the next frame.
...in radians, to be used when computing the projection matrix for an inline xrsession.
... projection matrix calculation also takes into account the output canvas's aspect ratio.
XRSessionEvent - Web APIs
ends or the visibility of its context changes.
...anges.
... xrsessionevent() creates and returns a new xrsessionevent object configured using the specified xrsessioneventinit object's values as available.
XRSpace - Web APIs
Web › API › XRSpace
ove within the space, the space itself remains fixed in place.
...ins fixed in place.
...his static nature; most commonly, an xrreferencespace may move in order to adjust based on reconfiguration of the user's headset or other motion-sensitive device.
msPutPropertyEnabled - Web APIs
non-standard this feature is non-standard and is not on a standards track.
...ndard this feature is non-standard and is not on a standards track.
...bled method sets whether a given property in the style object is enabled or disabled.
ARIA Test Cases - Accessibility
wing onto them with the virtual cursor.
... - - - orca - - - - label aria-label expected at behavior: screen reader should prefer aria-label information above anything else, including screen text or aria-labelledby.
... orca - - - - labelledby aria-labelledby expected at behavior: screen reader should prefer this information over screen text or other attributes, excluding aria-label, which supercedes even this one.
Alerts - Accessibility
...
...d(newalert); } function checkvalidity(aid, asearchterm, amsg) { var elem = document.getelementbyid(aid); var invalid = (elem.value.indexof(asearchterm) < 0); if (invalid) { elem.setattribute("aria-invalid", "true"); addalert(amsg); } else { elem.setattribute("aria-invalid", "false"); removeoldalert(); } } </script> the checkvalidity function the primary method in javascript used for form validation is the checkvalidity function.
...document.getelementbyid(aid); var invalid = (elem.value.indexof(asearchterm) < 0); if (invalid) { elem.setattribute("aria-invalid", "true"); addalert(amsg); } else { elem.setattribute("aria-invalid", "false"); removeoldalert(); } } </script> the checkvalidity function the primary method in javascript used for form validation is the checkvalidity function.
Color picker tool - CSS: Cascading Style Sheets
this.r = obj.r; this.g = obj.g; this.b = obj.b; this.a = obj.a; this.hue = obj.hue; this.saturation = obj.saturation; this.value = obj.value; this.format = '' + obj.format; this.lightness = obj.lightness; }; color.prototype.setformat = function setformat(format) { if (format === 'hsv') this.format = 'hsv'; if (format === 'hsl') this.format = 'hsl'; }; /*========== methods to set color properties ==========*/ color.prototype.isvalidrgbvalue = function isvalidrgbvalue(value) { return (typeof(value) === 'number' && isnan(value) === false && value >= 0 && value <= 255); }; color.prototype.setrgba = function setrgba(red, green, blue, alpha) { if (this.isvalidrgbvalue(red) === false || this.isvalidrgbvalue(green) === false || this.isvalidrgbvalue(blue...
...valid !== true) return; if (value[0] === '#') value = value.slice(1, value.length); if (value.length === 3) value = value.replace(/([0-9a-f])([0-9a-f])([0-9a-f])/i,'$1$1$2$2$3$3'); this.r = parseint(value.substr(0, 2), 16); this.g = parseint(value.substr(2, 2), 16); this.b = parseint(value.substr(4, 2), 16); this.alpha = 1; this.rgbtohsv(); }; /*========== conversion methods ==========*/ color.prototype.converttohsl = function converttohsl() { if (this.format === 'hsl') return; this.setformat('hsl'); this.rgbtohsl(); }; color.prototype.converttohsv = function converttohsv() { if (this.format === 'hsv') return; this.setformat('hsv'); this.rgbtohsv(); }; /*========== update methods ==========*/ color.prototype.updatergb = function updater...
...lta) { if (cmax === red ) { hue = ((green - blue) / delta); } if (cmax === green ) { hue = 2 + (blue - red) / delta; } if (cmax === blue ) { hue = 4 + (red - green) / delta; } if (cmax) saturation = delta / x; } this.hue = 60 * hue | 0; if (this.hue < 0) this.hue += 360; this.saturation = (saturation * 100) | 0; this.lightness = (lightness * 100) | 0; }; /*========== get methods ==========*/ color.prototype.gethexa = function gethexa() { var r = this.r.tostring(16); var g = this.g.tostring(16); var b = this.b.tostring(16); if (this.r < 16) r = '0' + r; if (this.g < 16) g = '0' + g; if (this.b < 16) b = '0' + b; var value = '#' + r + g + b; return value.touppercase(); }; color.prototype.getrgba = function getrgba() { var rgb = '(' + this.r + ', ' ...
Cookbook template - CSS: Cascading Style Sheets
include, or what problems does it need to solve?
...e the link to point to your merged download version.
...ad version.
Testing media queries programmatically - CSS: Cascading Style Sheets
the dom provides features that can test the results of a media query programmatically, via the mediaquerylist interface and its methods and properties.
...matically, via the mediaquerylist interface and its methods and properties.
...matches) { /* the viewport is currently in portrait orientation */ } else { /* the viewport is not currently in portrait orientation, therefore landscape */ } receiving query notifications if you need to be aware of changes to the evaluated result of the query on an ongoing basis, it's more efficient to register a listener than to poll the query's result.
Creating and triggering events - Developer guides
d synthetic events, as opposed to the events fired by the browser itself.
...ueryselector('form'); const textarea = document.queryselector('textarea'); // create a new event, allow bubbling, and provide any data you want to pass to the "detail" property const eventawesome = new customevent('awesome', { bubbles: true, detail: { text: () => textarea.value } }); // the form element listens for the custom "awesome" event and then consoles the output of the passed text() method form.addeventlistener('awesome', e => console.log(e.detail.text())); // as the user types, the textarea inside the form dispatches/triggers the event to fire, and uses itself as the starting point textarea.addeventlistener('input', e => e.target.dispatchevent(eventawesome)); creating and dispatching events dynamically elements can listen for events that haven't been created yet: <form> <te...
...onally, we've also leveraged the "function expression" (instead of the "arrow function expression") so "this" will represent the element this.dispatchevent(new customevent('awesome', { bubbles: true, detail: { text: () => textarea.value } })) }); triggering built-in events this example demonstrates simulating a click (that is programmatically generating a click event) on a checkbox using dom methods.
Media events - Developer guides
fox.
... mozaudioavailable sent when an audio buffer is provided to the audio layer for processing; the buffer contains raw audio samples that may or may not already have been played by the time you receive the event.
...sing code such as the following: var v = document.getelementsbytagname("video")[0]; v.addeventlistener("seeked", function() { v.play(); }, true); v.currenttime = 10.0; this example fetches the first video element in the document and attaches an event listener to it, watching for the seeked event, which is sent whenever a seek operation completes.
User input and controls - Developer guides
sms, you can control them using tools offered by the web platform or javascript libraries.
...ntation to a specific state (usually portrait or landscape) through the screen orientation api.
...it or landscape) through the screen orientation api.
<dialog>: The Dialog element - HTML: Hypertext Markup Language
Web › HTML › Element › dialog
dom interface htmldialogelement attributes this element includes the global attributes.
...h htmldialogelement.showmodal().
...open() { if (typeof favdialog.showmodal === "function") { favdialog.showmodal(); } else { alert("the <dialog> api is not supported by this browser"); } }); // "favorite animal" input sets the value of the submit button selectel.addeventlistener('change', function onselect(e) { confirmbtn.value = selectel.value; }); // "confirm" button of form triggers "close" on dialog because of [method="dialog"] favdialog.addeventlistener('close', function onclose() { outputbox.value = favdialog.returnvalue + " button clicked - " + (new date()).tostring(); }); result specifications specification status comment html living standardthe definition of '<dialog>' in that specification.
<input type="datetime-local"> - HTML: Hypertext Markup Language
both the date and the time.
...e colon character will need to be escaped for inclusion in the url parameters, e.g.
...e value in javascript using the htmlinputelement.value property, for example: var datecontrol = document.queryselector('input[type="datetime-local"]'); datecontrol.value = '2017-06-01t08:30'; there are several methods provided by javascript's date that can be used to convert numeric date information into a properly-formatted string, or you can do it manually.
<input type="range"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › range
't support type range, it will fall back and treat it as a text input.
...ent non-standard css property impacting the <progress> and <meter> elements, the orient attribute defines the orientation of the range slider.
...tical, to slide up and down with css by declaring a height value greater than the width value.
MIME types (IANA media types) - HTTP
application/octet-stream should be used.
...boundary=aboundarystring (other headers associated with the multipart document as a whole) --aboundarystring content-disposition: form-data; name="myfile"; filename="img.jpg" content-type: image/jpeg (data) --aboundarystring content-disposition: form-data; name="myfield" (data) --aboundarystring (more subparts) --aboundarystring-- the following <form>: <form action="http://localhost:8000/" method="post" enctype="multipart/form-data"> <label>name: <input name="mytextfield" value="test"></label> <label><input type="checkbox" name="mycheckbox"> check</label> <label>upload file: <input type="file" name="myfile" value="test.txt"></label> <button>send the file</button> </form> will send this message: post / http/1.1 host: localhost:8000 user-agent: mozilla/5.0 (macintosh; intel mac os...
...ime type by looking at the bytes of the resource.
Browser detection using the user agent - HTTP
ize even on large screens.
...e right of the pictures.
...cat boxes are at the bottom of the source code, and that all these boxes have the same parent element.
HTTP caching - HTTP
Web › HTTP › Caching
y might have set up a web proxy as part of its local network infrastructure to serve many users so that popular resources are reused a number of times, reducing network traffic and latency.
...twork infrastructure to serve many users so that popular resources are reused a number of times, reducing network traffic and latency.
...med in a specific way: in their url, usually in the filename, a revision (or version) number is added.
Access-Control-Allow-Headers - HTTP
listing them anyway will circumvent the additional restrictions that apply.
...accept example preflight request let's look at an example of a preflight request involving access-control-allow-headers.
...ght request is an options request which includes some combination of the three preflight request headers: access-control-request-method, access-control-request-headers, and origin, such as: options /resource/foo access-control-request-method: delete access-control-request-headers: origin, x-requested-with origin: https://foo.bar.org response if the server allows cors requests to use the delete method, it responds with an access-control-allow-methods response header, which lists delete along with the other methods it supports: http/1.1 200 ok content-length: 0 connection: keep-alive access-control-allow-origin: https://foo.bar.org access-control-allow-methods: post, get, options, delete access-control-max-age: 86400 if the requested method isn't supported, the server will respond with an err...
CSP: form-action - HTTP
ntent source.
... sites needing to allow these content types can specify them using the data attribute.
... mod_headers.c> header set content-security-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.
CSP: navigate-to - HTTP
ntent source.
... sites needing to allow these content types can specify them using the data attribute.
...lating code to be included in the violation report.
Large-Allocation - HTTP
as able to reload the page into a new process which should have more available contiguous memory.
... or noopener-opened tab or window.
...ed by window.open(), <a target="_blank"> or other similar methods without rel="noopener" or the "noopener" feature being set.
HTTP Messages - HTTP
Web › HTTP › Messages
the presence of the body and its size is specified by the start-line and http headers.
... for example, get indicates that a resource should be fetched or post means that data is pushed to the server (creating or modifying a resource, or generating a temporary document to send back).
...).
CONNECT - HTTP
Web › HTTP › Methods › CONNECT
the http connect method starts two-way communications with the requested resource.
... the http connect method starts two-way communications with the requested resource.
...ple, the connect method can be used to access websites that use ssl (https).
PATCH - HTTP
Web › HTTP › Methods › PATCH
the http patch request method applies partial modifications to a resource.
...e.
...tion of changes] response a successful response is indicated by any 2xx status code.
POST - HTTP
Web › HTTP › Methods › POST
the http post method sends data to the server.
...d values are percent encoded: this is the reason why this type is not suitable to use with binary data (use multipart/form-data instead) multipart/form-data: each value is sent as a block of data ("body part"), with a user agent-defined delimiter ("boundary") separating each part.
...ent as a block of data ("body part"), with a user agent-defined delimiter ("boundary") separating each part.
An overview of HTTP - HTTP
Web › HTTP › Overview
warm and more efficient.
...n this version of http, the semantics of each message is unchanged and the client reconstitutes (virtually) the original http/1.1 request.
... operations may be needed in other cases.
Enumerability and ownership of properties - JavaScript
the object directly and not to its prototype chain.
...for..in (excluding symbols) not available without extra code not available without extra code not available without extra code obtaining properties by enumerability/ownership note that this is not the most efficient algorithm for all cases, but useful for a quick demonstration.
...not available without extra code not available without extra code obtaining properties by enumerability/ownership note that this is not the most efficient algorithm for all cases, but useful for a quick demonstration.
Expressions and operators - JavaScript
ys are just objects, it's technically possible to delete elements from them.
...ber or string, the typeof operator returns the following results: typeof 62; // returns "number" typeof 'hello world'; // returns "string" for property values, the typeof operator returns the type of value the property contains: typeof document.lastmodified; // returns "string" typeof window.length; // returns "number" typeof math.ln2; // returns "number" for methods and functions, the typeof operator returns results as follows: typeof blur; // returns "function" typeof eval; // returns "function" typeof parseint; // returns "function" typeof shape.split; // returns "function" for predefined objects, the typeof operator returns results as follows: typeof date; // returns "function" typeof function; // returns "function" typeof math; ...
...es to true or false.
Keyed collections - JavaScript
llection of key/value pairs in which the keys are objects only and the values can be arbitrary values.
...state of garbage collection, introducing non-determinism.
... and methods belong inside the object and are stored in the privates weakmap object.
JavaScript technologies overview - JavaScript
..catch, ability to create user-defined error types) types (boolean, number, string, function, object, ...) the global object.
...r-defined error types) types (boolean, number, string, function, object, ...) the global object.
...onstantly improve their implementation.
Warning: expression closures are deprecated - JavaScript
avascript execution won't be halted.
...{ count: function() 1 }; standard syntax to convert the non-standard expression closures syntax to standard ecmascript syntax, you can add curly braces and return statements.
...ces and return statements.
TypeError: "x" is not a constructor - JavaScript
or error type typeerror what went wrong?
...n tsi', 1993); in promises when returning an immediately-resolved or immediately-rejected promise, you do not need to create a new promise(...) and act on it.
....) and act on it.
RangeError: precision is out of range - JavaScript
precision is out of range (edge) rangeerror: precision {0} out of range (firefox) rangeerror: toexponential() argument must be between 0 and 20 (chrome) rangeerror: tofixed() digits argument must be between 0 and 20 (chrome) rangeerror: toprecision() argument must be between 1 and 21 (chrome) error type rangeerror what went wrong?
... 0 and 20 (chrome) rangeerror: tofixed() digits argument must be between 0 and 20 (chrome) rangeerror: toprecision() argument must be between 1 and 21 (chrome) error type rangeerror what went wrong?
...ent must be between 1 and 21 (chrome) error type rangeerror what went wrong?
TypeError: "x" is (not) "y" - JavaScript
rty {x} of undefined or null reference (edge) typeerror: "x" is (not) "y" (firefox) examples: typeerror: "x" is undefined typeerror: "x" is null typeerror: "undefined" is not an object typeerror: "x" is not an object or null typeerror: "x" is not a symbol error type typeerror.
... object typeerror: "x" is not an object or null typeerror: "x" is not a symbol error type typeerror.
...rs oftentimes with undefined or null values.
The arguments object - JavaScript
sitory.
...t 0.
... it is similar, but lacks all array properties except length.
Rest parameters - JavaScript
d 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 example, a rest parameter is used to collect all parameters after the first into an array.
...ot on the arguments object: function sortrestargs(...theargs) { let sortedargs = theargs.sort() return sortedargs } console.log(sortrestargs(5, 3, 7, 1)) // 1, 3, 5, 7 function sortarguments() { let sortedargs = arguments.sort() return sortedargs // this will never happen } console.log(sortarguments(5, 3, 7, 1)) // throws a typeerror (arguments.sort is not a function) to use array methods on the arguments object, it must be converted to a real array first.
Array.prototype[@@unscopables] - JavaScript
ables for how to set unscopables for your own objects.
...s of array.prototype[@@unscopables] writable no enumerable no configurable yes examples use in with environments the following code works fine in es5 and below.
...e in with environments the following code works fine in es5 and below.
Array.prototype.reduce() - JavaScript
the reduce() method executes a reducer function (that you provide) on each element of the array, resulting in single output value.
...lue optional a value to use as the first argument to the first call of the callback.
... « accumulator, kvalue, k, o »).
Array.prototype.fill() - JavaScript
the fill() method changes all elements in an array to a static value, from a start index (default 0) to an end index (default array.length).
...act value.) start optional start index, default 0.
... var finalvalue = relativeend < 0 ?
Array.prototype.flatMap() - JavaScript
the flatmap() method first maps each element using a mapping function, then flattens the result into a new array.
... the flatmap() method first maps each element using a mapping function, then flattens the result into a new array.
...index of the current element being processed in the array.
Array.prototype.lastIndexOf() - JavaScript
the lastindexof() method returns the last index at which a given element can be found in the array, or -1 if it is not present.
...ffset from the end of the array.
...; var idx = array.lastindexof(element); while (idx != -1) { indices.push(idx); idx = (idx > 0 ?
Array.prototype.reverse() - JavaScript
the reverse() method reverses an array in place.
...e.
...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.
Array.prototype.toSource() - JavaScript
the tosource() method returns a string representing the source code of the array.
... the tosource() method returns a string representing the source code of the array.
...rr.tosource() return value a string representing the source code of the array.
BigInt64Array - JavaScript
the bigint64array typed array represents an array of 64-bit signed integers in the platform byte order.
...rray index syntax (that is, using bracket notation).
...aybuffer.
BigUint64Array - JavaScript
the biguint64array typed array represents an array of 64-bit unsigned integers in the platform byte order.
...ndex syntax (that is, using bracket notation).
...ffer.
Boolean.prototype.valueOf() - JavaScript
the valueof() method returns the primitive value of a boolean object.
...) method returns the primitive value of a boolean object.
... github repository.
Boolean - JavaScript
s = boolean(mystring); // initial value of true do not use a boolean object in place of a boolean primitive.
...all is used as an argument for this constructor, the result is a boolean object with the value false.
...non-standard and should not be used.
Date.prototype.getFullYear() - JavaScript
the getfullyear() method returns the year of the specified date according to local time.
... the getfullyear() method returns the year of the specified date according to local time.
... the getfullyear() method returns the year of the specified date according to local time.
Date.prototype.getYear() - JavaScript
the getyear() method returns the year in the specified date according to local time.
... the getyear() method returns the year in the specified date according to local time.
...le, if the year is 1976, getyear() returns 76.
Date.prototype.setMonth() - JavaScript
the setmonth() method sets the month for a specified date according to the currently set year.
..., 11 represents december, -1 represents december of the previous year, and 12 represents january of the following year.
...e dayvalue parameter, the value returned from the getdate() method is used.
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.
...instances refer to a specific point in time.
...c point in time.
Date.prototype.toTimeString() - JavaScript
the totimestring() method returns the time portion of a date object in human readable form in american english.
... refer to a specific point in time.
...n time.
Error.prototype.toSource() - JavaScript
the tosource() method returns code that could eval to the same error.
... the tosource() method returns code that could eval to the same error.
...ining the source code of the error.
FinalizationRegistry.prototype.unregister() - JavaScript
the unregister unregisters a target object from a finalizationregistry instance.
...l unregister if you haven't received a cleanup callback and no longer need to receive one.
... * releases resources held by this `thingy` instance.
FinalizationRegistry - JavaScript
age-collected).
... care about `theobject` anymore...
... a tab in a browser).
Float32Array - JavaScript
the float32array typed array represents an array of 32-bit floating point numbers (corresponding to the c float data type) in the platform byte order.
...ing standard array index syntax (that is, using bracket notation).
...ay from the start of its arraybuffer.
Float64Array - JavaScript
the float64array typed array represents an array of 64-bit floating point numbers (corresponding to the c double data type) in the platform byte order.
...ing standard array index syntax (that is, using bracket notation).
...ay from the start of its arraybuffer.
Generator.prototype.next() - JavaScript
the next() method returns an object with two properties done and value.
... the next() method returns an object with two properties done and value.
...tionally specifies the return value of the iterator.
Int16Array - JavaScript
the int16array typed array represents an array of twos-complement 16-bit signed integers in the platform byte order.
...methods, or using standard array index syntax (that is, using bracket notation).
...int16array from the start of its arraybuffer.
Int32Array - JavaScript
the int32array typed array represents an array of twos-complement 32-bit signed integers in the platform byte order.
...methods, or using standard array index syntax (that is, using bracket notation).
...int32array from the start of its arraybuffer.
Int8Array - JavaScript
the int8array typed array represents an array of twos-complement 8-bit signed integers.
...ject's methods, or using standard array index syntax (that is, using bracket notation).
... the int8array from the start of its arraybuffer.
Intl.DisplayNames - JavaScript
that enables the consistent translation of language, region and script display names.
...nteractive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...github.com/mdn/interactive-examples and send us a pull request.
Intl.Locale.prototype.maximize() - JavaScript
the intl.locale.prototype.maximize() method gets the most likely values for the language, script, and region of the locale based on existing values.
...ngauage id.
...united states, as it is the largest english-speaking country in the world.
Intl.Locale.prototype.minimize() - JavaScript
the intl.locale.prototype.minimize() method attempts to remove information about the locale that would be added by calling locale.maximize().
...interactive example is stored in a github repository.
... are superfluous subtags in the language identifier; for instance, "en-latn" can be simplified to "en", since "latn" is the only script used to write english.
Intl.RelativeTimeFormat.prototype.formatToParts() - JavaScript
the intl.relativetimeformat.prototype.formattoparts() method returns an array of objects representing the relative time format in parts that can be used for custom locale-aware formatting.
...o use in the internationalized relative time message.
...ative time message.
JSON.parse() - JavaScript
the json.parse() method parses a json string, constructing the javascript value or object described by the string.
...= /^[\],:{}\s]*$/; var rx_two = /\\(?:["\\\/bfnrt]|u[0-9a-fa-f]{4})/g; var rx_three = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[ee][+\-]?\d+)?/g; var rx_four = /(?:^|:|,)(?:\s*\[)+/g; var rx_dangerous = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; json.parse = function(text, reviver) { // the parse method takes a text and an optional reviver function, and returns // a javascript value if the text is a valid json text.
...ar rx_dangerous = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; json.parse = function(text, reviver) { // the parse method takes a text and an optional reviver function, and returns // a javascript value if the text is a valid json text.
JSON - JavaScript
the json object contains methods for parsing javascript object notation (json) and converting values to json.
... the json object contains methods for parsing javascript object notation (json) and converting values to json.
...rrayelements , json insignificant whitespace may be present anywhere except within a jsonnumber (numbers must contain no whitespace) or jsonstring (where it is interpreted as the corresponding character in the string, or would cause an error).
Map.prototype.set() - JavaScript
the set() method adds or updates an element with a specified key and a value to a map object.
..., value) parameters key the key of the element to add to the map object.
...to the map object.
Math.acos() - JavaScript
sitory.
... math.acos(x) parameters x a number representing a cosine, where x is between -1 and 1.
...ere x is between -1 and 1.
Math.asin() - JavaScript
rce for this interactive example is stored in a github repository.
...d us a pull request.
...er.
Math.atan() - JavaScript
t{such that} \; \tan(y) = x the source for this interactive example is stored in a github repository.
...ke to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...https://github.com/mdn/interactive-examples and send us a pull request.
Math.atan2() - JavaScript
bute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
......
...erclockwise angle, measured in radians, between the positive x axis, and the point (x, y).
Math.clz32() - JavaScript
(integer << 4 ) | 0x000f; integer &= (integer << 2 ) | 0x0003; integer &= (integer << 1 ) | 0x0001; // 2.
...r << 1); // 2.
...ing the bits reveals the lowest bits return 32 - clz(~integer) |0; } function ctron(integer) { // count trailing ones integer = integer | 0; // coerce to an integer return ctrz(~integer) |0; } // unfourtunately, asm.js demands slow crummy objects: return {a: ctrz, b: ctron}; })(window, null, null); var ctrz = counttrailsmethods.a; var ctron = counttrailsmethods.b; polyfill the following polyfill is the most efficient.
Math.cos() - JavaScript
.
...teractive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...teractive-examples and send us a pull request.
Math.sin() - JavaScript
returns the sine of a number.
...e to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
....com/mdn/interactive-examples and send us a pull request.
Math.tan() - JavaScript
of a number.
...ike to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...e https://github.com/mdn/interactive-examples and send us a pull request.
Number.parseFloat() - JavaScript
the number.parsefloat() method parses an argument and returns a floating point number.
...en it is converted to one using the tostring abstract operation.
... value a floating point number parsed from the given string.
Number.prototype.toFixed() - JavaScript
the tofixed() method formats a number using fixed-point notation.
...ionally support a larger range of values.
...voked on an object that is not a number.
Object.assign() - JavaScript
the object.assign() method copies all enumerable own properties from one or more source objects to a target object.
...— what to apply the sources’ properties to, which is returned after it is modified.
...: 3, foo: 3, foo3: 3 }, { baz: 4 }); // typeerror: "foo" is read-only // the exception is thrown when assigning target.foo console.log(target.bar); // 2, the first source was copied successfully.
Object.prototype.constructor - JavaScript
// new string() function string() { [native code] },false,test // 'test' changing the constructor of a function mostly this property is used for defining a function as a function-constructor with further calling it with new and prototype-inherits chain.
... // new string() function string() { [native code] },false,test // 'test' changing the constructor of a function mostly this property is used for defining a function as a function-constructor with further calling it with new and prototype-inherits chain.
...o parent prototype child.prototype.constructor = child // return original constructor to child but when do we need to perform the last line here?
Object.getOwnPropertyDescriptor() - JavaScript
the object.getownpropertydescriptor() method returns an object describing the configuration of a specific property on a given object (that is, one directly present on an object and not in the object's prototype chain).
...e https://github.com/mdn/interactive-examples and send us a pull request.
...figurable: true, // enumerable: true, // value: 73, // writable: true // } o = {}; object.defineproperty(o, 'qux', { value: 8675309, writable: false, enumerable: false }); d = object.getownpropertydescriptor(o, 'qux'); // d is { // value: 8675309, // writable: false, // enumerable: false, // configurable: false // } non-object coercion in es5, if the first argument to this method is not an object (a primitive), then it will cause a typeerror.
Object.prototype.isPrototypeOf() - JavaScript
the isprototypeof() method checks if an object exists in another object's prototype chain.
...rototype, not against afunction itself.
...o() {} function bar() {} function baz() {} bar.prototype = object.create(foo.prototype); baz.prototype = object.create(bar.prototype); var baz = new baz(); console.log(baz.prototype.isprototypeof(baz)); // true console.log(bar.prototype.isprototypeof(baz)); // true console.log(foo.prototype.isprototypeof(baz)); // true console.log(object.prototype.isprototypeof(baz)); // true isprototypeof() method, along with the instanceof operator particularly comes in handy if you have code that can only function when dealing with objects descended from a specific prototype chain, e.g., to guarantee that certain methods or properties will be present on that object.
Object.preventExtensions() - JavaScript
the object.preventextensions() method prevents new properties from ever being added to an object (i.e.
...sible.
...de, attempting to add new properties // to a non-extensible object throws a typeerror.
Object.prototype.toLocaleString() - JavaScript
the tolocalestring() method returns a string representing the object.
... the tolocalestring() method returns a string representing the object.
...n a github repository.
Promise.all() - JavaScript
the promise.all() method takes an iterable of promises as an input, and returns a single promise that resolves to an array of the results of the input promises.
...mise in all other cases.
...ettled() will wait for all input promises to complete, regardless of whether or not one rejects.
Promise.prototype.finally() - JavaScript
the finally() method returns a promise.
...ealt with.
...ally(function() { // settled (fulfilled or rejected) }); parameters onfinally a function called when the promise is settled.
Promise.resolve() - JavaScript
the promise.resolve() method returns a promise object that is resolved with a given value.
... the promise.resolve() method returns a promise object that is resolved with a given value.
... promise.resolve(value); parameters value argument to be resolved by this promise.
Reflect.getOwnPropertyDescriptor() - JavaScript
the static reflect.getownpropertydescriptor() method is similar to object.getownpropertydescriptor().
...descriptor(target, propertykey) parameters target the target object in which to look for the property.
...ptor() reflect.getownpropertydescriptor({x: 'hello'}, 'x') // {value: "hello", writable: true, enumerable: true, configurable: true} reflect.getownpropertydescriptor({x: 'hello'}, 'y') // undefined reflect.getownpropertydescriptor([], 'length') // {value: 0, writable: true, enumerable: false, configurable: false} difference to object.getownpropertydescriptor() if the target argument to this method is not an object (a primitive), then it will cause a typeerror.
Reflect.has() - JavaScript
the static reflect.has() method works like the in operator as a function.
...://github.com/mdn/interactive-examples and send us a pull request.
...ptions a typeerror, if target is not an object.
Reflect.preventExtensions() - JavaScript
the static reflect.preventextensions() method prevents new properties from ever being added to an object (i.e., prevents future extensions to the object).
...one https://github.com/mdn/interactive-examples and send us a pull request.
...imilar to object.preventextensions().
RegExp.$1-$9 - JavaScript
s regexp.$1, ..., regexp.$9.
...ay's indexes.
...ast and output it in the format last, first.
RegExp.prototype.toString() - JavaScript
the tostring() method returns a string representing the regular expression.
...enting the regular expression.
...u'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
RegExp - JavaScript
only against the first.
...e enabled.
...ype[@@replace]() replaces matches in given string with new substring.
Set.prototype.forEach() - JavaScript
the foreach() method executes a provided function once for each value in the set object, in insertion order.
...ers callback function to execute for each element, taking three arguments: currentvalue, currentkey the current element being processed in the set.
...nvoked for values which have been deleted.
Set.prototype.values() - JavaScript
the values() method returns a new iterator object that contains the values for each element in the set object in insertion order.
... the values() method returns a new iterator object that contains the values for each element in the set object in insertion order.
... the values() method returns a new iterator object that contains the values for each element in the set object in insertion order.
String.prototype.big() - JavaScript
the big() method creates a <big> html element that causes a string to be displayed in a big font.
... the big() method creates a <big> html element that causes a string to be displayed in a big font.
...uses a string to be displayed in a big font.
String.prototype.blink() - JavaScript
the blink() method creates a <blink> html element that causes a string to blink.
... the blink() method creates a <blink> html element that causes a string to blink.
...nt that causes a string to blink.
String.prototype.bold() - JavaScript
the bold() method creates a <b> html element that causes a string to be displayed as bold.
... the bold() method creates a <b> html element that causes a string to be displayed as bold.
... the bold() method creates a <b> html element that causes a string to be displayed as bold.
String.prototype.fixed() - JavaScript
the fixed() method creates a <tt> html element that causes a string to be displayed in fixed-pitch font.
... the fixed() method creates a <tt> html element that causes a string to be displayed in fixed-pitch font.
... the fixed() method creates a <tt> html element that causes a string to be displayed in fixed-pitch font.
String.prototype.italics() - JavaScript
the italics() method creates an <i> html element that causes a string to be italic.
... the italics() method creates an <i> html element that causes a string to be italic.
... the italics() method creates an <i> html element that causes a string to be italic.
String.prototype.link() - JavaScript
the link() method creates a string representing the code for an <a> html element to be used as a hypertext link to another url.
... the code for an <a> html element to be used as a hypertext link to another url.
...; it should be a valid url (relative or absolute), with any & characters escaped as &amp;, and any " characters escaped as &quot;.
String.prototype.match() - JavaScript
the match() method retrieves the result of matching a string against a regular expression.
...ub repository.
...ups whose keys are the names and values are the capturing groups or undefined if no named capturing groups were defined.
String.prototype.repeat() - JavaScript
the repeat() method constructs and returns a new string which contains the specified number of copies of the string on which it was called, concatenated together.
...syntax str.repeat(count) parameters count an integer between 0 and +infinity, indicating the number of times to repeat the string.
...unt - str.length); return str; } } examples using repeat 'abc'.repeat(-1) // rangeerror 'abc'.repeat(0) // '' 'abc'.repeat(1) // 'abc' 'abc'.repeat(2) // 'abcabc' 'abc'.repeat(3.5) // 'abcabcabc' (count will be converted to integer) 'abc'.repeat(1/0) // rangeerror ({ tostring: () => 'abc', repeat: string.prototype.repeat }).repeat(2) // 'abcabc' (repeat() is a generic method) specifications specification ecmascript (ecma-262)the definition of 'string.prototype.repeat' in that specification.
String.prototype.replace() - JavaScript
the replace() method returns a new string with some or all matches of a pattern replaced by a replacement.
...a parameter" section below.
...fset, string) { return (offset > 0 ?
String.prototype.replaceAll() - JavaScript
as of august 2020 the replaceall() method is supported by firefox but not by chrome.
... as of august 2020 the replaceall() method is supported by firefox but not by chrome.
...ring as a parameter" section below.
String.prototype.search() - JavaScript
the search() method executes a search for a match between a regular expression and this string object.
...p object regexp is passed, it is implicitly converted to a regexp with new regexp(regexp).
...pression and the given string, or -1 if no match was found.
String.prototype.small() - JavaScript
the small() method creates a <small> html element that causes a string to be displayed in a small font.
... the small() method creates a <small> html element that causes a string to be displayed in a small font.
... the small() method creates a <small> html element that causes a string to be displayed in a small font.
String.prototype.strike() - JavaScript
the strike() method creates a <strike> html element that causes a string to be displayed as struck-out text.
... the strike() method creates a <strike> html element that causes a string to be displayed as struck-out text.
... the strike() method creates a <strike> html element that causes a string to be displayed as struck-out text.
String.prototype.valueOf() - JavaScript
the valueof() method returns the primitive value of a string object.
... the valueof() method returns the primitive value of a string object.
... the valueof() method returns the primitive value of a string object.
Symbol.iterator - JavaScript
ies the default iterator for an object.
...tive-examples and send us a pull request.
...[...myiterable] // [1, 2, 3] or iterables can be defined directly inside a class or object using a computed property: class foo { *[symbol.iterator] () { yield 1; yield 2; yield 3; } } const someobj = { *[symbol.iterator] () { yield 'a'; yield 'b'; } } [...new foo] // [ 1, 2, 3 ] [...someobj] // [ 'a', 'b' ] non-well-formed iterables if an iterable's @@iterator method does not return an iterator object, then it is a non-well-formed iterable.
Symbol.match - JavaScript
the symbol.match well-known symbol specifies the matching of a regular expression against a string.
...is called by the string.prototype.match() method.
... configurable no examples disabling the isregexp check the following code will throw a typeerror: '/bar/'.startswith(/bar/); // throws typeerror, as /bar/ is a regular expression // and symbol.match is not modified.
Symbol.prototype.toString() - JavaScript
the tostring() method returns a string representing the specified symbol object.
...ecified symbol object.
...ke to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
Symbol.unscopables - JavaScript
e it scopable and thus it will appear in lexical scope variables.
...rty attributes of symbol.unscopables writable no enumerable no configurable no examples scoping in with statements the following code works fine in es5 and below.
...nts the following code works fine in es5 and below.
TypedArray.prototype.fill() - JavaScript
the fill() method fills all the elements of a typed array from a start index to an end index with a static value.
... the fill() method fills all the elements of a typed array from a start index to an end index with a static value.
...om/mdn/interactive-examples and send us a pull request.
TypedArray.prototype.filter() - JavaScript
the filter() method creates a new typed array with all elements that pass the test implemented by the provided function.
... the filter() method creates a new typed array with all elements that pass the test implemented by the provided function.
... request.
TypedArray.prototype.find() - JavaScript
the find() method returns a value in the typed array, if an element satisfies the provided testing function.
... the find() method returns a value in the typed array, if an element satisfies the provided testing function.
... taking three arguments: element the current element being processed in the typed array.
TypedArray.prototype.findIndex() - JavaScript
the findindex() method returns an index in the typed array, if an element in the typed array satisfies the provided testing function.
... the findindex() method returns an index in the typed array, if an element in the typed array satisfies the provided testing function.
...ree arguments: element the current element being processed in the typed array.
TypedArray.prototype.forEach() - JavaScript
the foreach() method executes a provided function once per array element.
... the foreach() method executes a provided function once per array element.
...nction that produces an element of the new typed array, taking three arguments: currentvalue the current element being processed in the typed array.
TypedArray.from() - JavaScript
the typedarray.from() method creates a new typed array from an array-like or iterable object.
... the typedarray.from() method creates a new typed array from an array-like or iterable object.
...ts elements, such as map and set).
TypedArray.prototype.indexOf() - JavaScript
the indexof() method returns the first index at which a given element can be found in the typed array, or -1 if it is not present.
... the indexof() method returns the first index at which a given element can be found in the typed array, or -1 if it is not present.
...e provided index is negative, the typed array is still searched from front to back.
TypedArray.prototype.join() - JavaScript
the join() method joins all elements of an array into a string.
... the join() method joins all elements of an array into a string.
...edarray, polyfilling must be done on an "as needed" basis.
TypedArray.prototype.lastIndexOf() - JavaScript
the lastindexof() method returns the last index at which a given element can be found in the typed array, or -1 if it is not present.
... the lastindexof() method returns the last index at which a given element can be found in the typed array, or -1 if it is not present.
...e typed array.
TypedArray.prototype.map() - JavaScript
the map() method creates a new typed array with the results of calling a provided function on every element in this typed array.
... the map() method creates a new typed array with the results of calling a provided function on every element in this typed array.
...ment of the new typed array, taking three arguments: currentvalue the current element being processed in the typed array.
TypedArray.prototype.reduceRight() - JavaScript
the reduceright() method applies a function against an accumulator and each value of the typed array (from right-to-left) has to reduce it to a single value.
... the reduceright() method applies a function against an accumulator and each value of the typed array (from right-to-left) has to reduce it to a single value.
... below).
TypedArray.prototype.sort() - JavaScript
the sort() method sorts the elements of a typed array numerically in place and returns the typed array.
... the sort() method sorts the elements of a typed array numerically in place and returns the typed array.
...you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
Uint16Array - JavaScript
the uint16array typed array represents an array of 16-bit unsigned integers in the platform byte order.
..., or using standard array index syntax (that is, using bracket notation).
...6array from the start of its arraybuffer.
Uint32Array - JavaScript
the uint32array typed array represents an array of 32-bit unsigned integers in the platform byte order.
..., or using standard array index syntax (that is, using bracket notation).
...2array from the start of its arraybuffer.
Uint8Array - JavaScript
the uint8array typed array represents an array of 8-bit unsigned integers.
...methods, or using standard array index syntax (that is, using bracket notation).
...urns the length (in bytes) of the uint8array.
Uint8ClampedArray - JavaScript
the uint8clampedarray typed array represents an array of 8-bit unsigned integers clamped to 0-255; if you specified a value that is out of the range of [0,255], 0 or 255 will be set instead; if you specify a non-integer, the nearest integer will be set.
...at is, using bracket notation).
... its arraybuffer.
parseFloat() - JavaScript
arameters string the value to parse.
...acters), parsefloat returns nan.
...nverts bigint syntax to numbers, losing precision.
for...in - JavaScript
nt property name is assigned to variable on each iteration.
...o variable on each iteration.
...s where the order of access is important.
Image file type and format guide - Web media technologies
8 bits, serving as an index into the color table.
...tensity of the greyscale pixel and an alpha sample, indicating how opaque the pixel is.
...ned photos, although it can be any kind of image.
How to make PWAs re-engageable using Notifications and Push - Progressive web apps (PWAs)
he app fetches the server's public key and converts the response to text; then it needs to be converted to a uint8array (to support chrome).
...ible to them, and the second one is the applicationserverkey, which contains our successfully acquired and converted vapid key.
... }); then the globaleventhandlers.onclick function on the subscribe button is defined: document.getelementbyid('doit').onclick = function() { const payload = document.getelementbyid('notification-payload').value; const delay = document.getelementbyid('notification-delay').value; const ttl = document.getelementbyid('notification-ttl').value; fetch('./sendnotification', { method: 'post', headers: { 'content-type': 'application/json' }, body: json.stringify({ subscription: subscription, payload: payload, delay: delay, ttl: ttl, }), }); }; when the button is clicked, fetch asks the server to send the notification with the given parameters: payload is the text that to be shown i...
rendering-intent - SVG: Scalable Vector Graphics
the rendering-intent attribute permits the specification of a color profile rendering intent other than the default.
...perceptual this value preserves the relationship between colors.
...ble the overall appearance of the scene.
Same-origin policy - Web security
when two documents do not have the same origin, these references provide very limited access to window and location objects, as described in the next two sections.
...length read only.
...age, and javascript in one origin cannot read from or write to the storage belonging to another origin.
Types of attacks - Web security
if you are logged into your bank account 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.
... <input type="hidden" name="for" value="mallory"> </form> <script>window.addeventlistener('domcontentloaded', (e) => { document.queryselector('form').submit(); }</script> there are a few techniques that should be used to prevent this from happening: get endpoints should be idempotent—actions that enact a change and do not simply retrieve data should require sending a post (or other http method) request.
...luded in <form> elements via a hidden input field.
Tutorials
this point we've already looked at css fundamentals, how to style text, and how to style and manipulate the boxes that your content sits inside.
...ansitions, part of the draft css3 specification, provide a way to animate changes to css properties, instead of having the changes take effect instantly.
... or even data from other websites or services.
Advanced Example - XSLT: Extensible Stylesheet Language Transformations
advanced example this advanced example sorts several divs based on their content.
...ing the xsltprocessor.getparameter() method, the code can figure whether to sort in ascending or descending order.
...mentbyid("example").innerhtml = ""; mydom = 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> ...
Understanding WebAssembly text format - WebAssembly
bytes somewhere inside this linear memory.
...cript can create webassembly linear memory instances via the webassembly.memory() interface, and access an existing memory instance (currently you can only have one per module instance) using the associated instance methods.
...you can find this example on github as wasm-table.html (see it live also).
Navigator.mozNotification - Archive of obsolete content
as of gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) provides support for creating notification objects, which are used to display desktop notification alerts to the user.
...desktop notification alerts to the user.
self - Archive of obsolete content
tabs = require("sdk/tabs"); tabs.open({ url: "./page.html", onready: function(tab) { tab.attach({ contentscriptfile: "./content-script.js", contentscriptoptions: { a: "blah" } }); } }); // content-script.js alert(self.options.a); port you can use port to receive messages from, and send messages to, the main add-on code.
...open({ url: "./page.html", onready: function(tab) { tab.attach({ contentscriptfile: "./content-script.js", contentscriptoptions: { a: "blah" } }); } }); // content-script.js alert(self.options.a); port you can use port to receive messages from, and send messages to, the main add-on code.
Communicating using "port" - Archive of obsolete content
er from receiving messages that are already queued.
...ir payloads are automatically deserialized, so you don't need to worry about serialization.
Content Scripts - Archive of obsolete content
lick', event.target.tostring()); event.stoppropagation(); event.preventdefault(); }, false); self.port.on('warning', function(message) { window.alert(message); }); in the add-on above there are two 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 from tab.attach() the tab.attach() method returns the worker you can use to communicate with the content script(s) you attached.
...ey have been loaded into the same context.
Private Properties - Archive of obsolete content
humbnails = {}; function getthumbnail(image) { let thumbnail = thumbnails[image]; if (!thumbnail) { thumbnail = createthumbnail(image); thumbnails[image] = thumbnail; } return thumbnail; } there are two problems with the above approach.
...humbnail = createthumbnail(image); thumbnails[image] = thumbnail; } return thumbnail; } there are two problems with the above approach.
hotkeys - Archive of obsolete content
r example, accel-s is typically used to save a file, but if you use it for something completely different, then it would be extremely confusing for users.
...trol: the control key.
url - Archive of obsolete content
that is, the highest-level domain under which individual domains may be registered.
...illa.org/add-ons?example=true&visible=yes#top"); console.log(url.protocol); // https: search if any parameters are present, a '?' followed by the parameters of the url, as a string.
content/worker - Archive of obsolete content
ill registered as a listener to a 'message' events.
...ssed the message, which must be a json-serializable value.
core/heritage - Archive of obsolete content
cipline, 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.
...uffy instanceof class // => true as you could notice from example above classes created via class function by default inherits from a class itself.
io/byte-streams - Archive of obsolete content
an also create bytereader objects using io/file's open() function.
... thrown.
io/text-streams - Archive of obsolete content
ects using io/file's open() function.
...cking stream.
remote/child - Archive of obsolete content
cess a link to the main process.
...d"); frames.on("attach", function(frame) { console.log("new frame"); frame.addeventlistener("domcontentloaded", function(e) { console.log(e.target.location.href); }); }); detach triggered when a frame is removed (for example, the user closed a tab).
remote/parent - Archive of obsolete content
process.
...crashed.
system/child_process - Archive of obsolete content
odule using require("sdk/system/child_process") fork() is not supported gid and uid are not supported in node.js, spawn() and exec() inherit the environment variables from the parent process, by default.
...ar ls = child_process.spawn('/bin/ls', ['-lh', '/usr']); ls.stdout.on('data', function (data) { console.log('stdout: ' + data); }); ls.stderr.on('data', function (data) { console.log('stderr: ' + data); }); ls.on('close', function (code) { console.log('child process exited with code ' + code); }); writing to child process' stdin because the sdk implementation does not include a write() method for child processes, you must use the "raw" emit event.
system/events - Archive of obsolete content
nt is fired, with a single event object as argument.
...g) listen only once to a particular event type parameters type : string the event type name to watch.
test/assert - Archive of obsolete content
r) create a new assert object.
...ts["test strict equality"] = function(assert) { assert.notstrictequal(1, "1", "test strict equality between 1 and '1'"); } parameters actual : object the actual result.
ui/frame - Archive of obsolete content
to the frame's attach event.
...nt, listener) this function is an alias for removelistener().
ui/toolbar - Archive of obsolete content
onbutton({ id: "next", label: "next", icon: "./icons/next.png" }); var play = actionbutton({ id: "play", label: "play", icon: "./icons/play.png" }); var frame = new frame({ url: "./frame-player.html" }); var toolbar = toolbar({ title: "player", items: [previous, next, play, frame] }); the toolbar appears just above the content window: to destroy a toolbar call its destroy() method.
...the frame should be hidden initially or not.
Low-Level APIs - Archive of obsolete content
ame/utils provides helper functions for working with platform internals like frames and browsers.
... add-on is running.
LookupNamespaceURI - Archive of obsolete content
here is an implementation of node.lookupnamespaceuri which should work cross-browser.
...la browsers) when used to reflect on static documents.
Miscellaneous - Archive of obsolete content
n that might not be called immediately alert("my extension's version is " + addon.version); }); restarting firefox/thunderbird/seamonkey_2.0 for firefox 3 see onwizardfinish around here: http://mxr.mozilla.org/seamonkey/sou...pdates.js#1639 for firefox 2 see around here: http://mxr.mozilla.org/mozilla1.8/so...pdates.js#1631 bug 338039 tracks improving this situation by providing a simple method to restart the application.
... netutil.readinputstreamtostring() getting postdata of a request before the request is sent the above code will get the postdata for a page that has already loaded.
Progress Listeners - Archive of obsolete content
progress listeners progress listeners allow extensions to be notified of events associated with documents loading in the browser and with tab switching events.
...echange: function() {}, onprogresschange: function() {}, onstatuschange: function() {}, onsecuritychange: function() {} }; window.addeventlistener("load", function() { myextension.init() }, false); window.addeventlistener("unload", function() { myextension.uninit() }, false); note: if you use the same listener for more than one tab/window, use awebprogress.domwindow in the callback methods to obtain the tab/window which triggers the state change or event.
JavaScript timers - Archive of obsolete content
uctions: settimeout() setinterval() setimmediate() requestanimationframe() the settimeout() function is commonly used if you wish to have your function called once after the specified delay.
...script programming language, all daemons are processes created by javascript timers or by a worker instantiation.
Deploying a Plugin as an Extension - Archive of obsolete content
n firefox 1.5 is the ability to place browser plugins in a firefox extension.
...xtension update mechanism to update their plugin to a newer version.
Displaying web content in an extension without security issues - Archive of obsolete content
via innerhtml, right?
...e same structure as the template tag.
Downloading JSON and JavaScript in extensions - Archive of obsolete content
cript an extension downloads perform nasty actions?
...compromised.
Installing Extensions and Themes From Web Pages - Archive of obsolete content
there are a variety of ways you can install extensions and themes from web pages, including direct linking to the xpi files and using the installtrigger object.
...tall function must return false so that when the link is clicked, only the script is run, and the link href is not navigated to.
Chapter 1: Introduction to Extensions - Archive of obsolete content
ted extensions that can be considered full-scale applications in their own right, essentially using firefox as the development platform.
...cale applications in their own right, essentially using firefox as the development platform.
Local Storage - Archive of obsolete content
that custom logging solutions were necessary, but mozilla labs have come up with a javascript implementation of a logger similar to the log4j logger used in java projects.
...ender(appender); after that, you can create a logger object for any object in your project like this: this._logger = log4moz.repository.getlogger("xulschool.someobject"); this._logger.level = log4moz.level["all"]; note: we recommend that you create a logger instance in the constructor of every object and store it in a private variable.
Setting Up a Development Environment - Archive of obsolete content
developing xpcom components to add certain advanced functions.
... the venkman javascript debugger is a great way to trace execution of your javascript code.
Performance best practices in extensions - Archive of obsolete content
at you can most extensions have a load event listener in the main overlay that runs their startup functions.
...avoid unqualified ":hover" like the plague.
Using Dependent Libraries In Extension Components - Archive of obsolete content
"dependent1" moz_dll_suffix, moz_dll_prefix "dependent2" moz_dll_suffix, nsnull // note: if the dependent libs themselves depend on other libs, the subdependencies // should be listed first.
...saddimage_option_match_filename_by_installname); if (componentlib == null) return ns_error_unexpected; //find the nsgetmodule procedure of the real component and “pass the buck”.
CSS3 - Archive of obsolete content
media type ( print, screen, … ) to a full language allowing queries on the device media capabilities like only screen and (color) .
...order-corner-shape property).
Enabling the behavior - retrieving tinderbox status - Archive of obsolete content
the tinderbox server every time a build finishes.
...t of their last build attempt.
Embedding FAQ - Archive of obsolete content
faq mozilla.dev.embedding how to start embedding you can find a examples, faqs, and the api from mozilla itself.
... faq mozilla.dev.embedding how to start embedding you can find a examples, faqs, and the api from mozilla itself.
Block and Line Layout Cheat Sheet - Archive of obsolete content
flags set on the frame to indicate its state.
...erved for an individual frame's private use ("private" flags).
Style System Overview - Archive of obsolete content
cessor implementations from the style sheets, and the css stylesheets force one cssruleprocessor per origin (rather than one per stylesheet).
... implemented by cssruleprocessor, htmlstylesheetimpl, and htmlcssstylesheetimpl has a rulesmatching method, which is required to call nsrulewalker::forward on any rules that match the element.
Gecko Coding Help Wanted - Archive of obsolete content
d straightforward, so you can get a feel for the lay of the code.
...el for the lay of the code.
Helper Apps (and a bit of Save As) - Archive of obsolete content
k", we just move/copy the temporary file over to the chosen location once the download completes.
...e do this we delete the temp file and put up an error dialog.
statusBar - Archive of obsolete content
the class statusbar contains functions to add and control the statusbar of the browser.
... the class statusbar contains functions to add and control the statusbar of the browser.
Metro browser chrome tests - Archive of obsolete content
.
...d in sub directories to avoid polluting the main test directory.
Microsummary topics - Archive of obsolete content
firefox 6.0 / thunderbird 6.0 / seamonkey 2.3) programmatically installing a microsummary generator to programmatically install a microsummary generator -- for example, in an extension that helps users create custom generators for their favorite sites -- obtain a reference to the nsimicrosummaryservice interface implemented by the nsimicrosummaryservice component, then call its installgenerator() method, passing it an xml document containing the generator.
...or from the creating a microsummary tutorial: var generatortext = ' \ <?xml version="1.0" encoding="utf-8"?> \ <generator xmlns="http://www.mozilla.org/microsummaries/0.1" \ name="firefox download count" \ uri="urn:{835daeb3-6760-47fa-8f4f-8e4fdea1fb16}"> \ <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> \ '; var domparser = components.classes["@mozilla.org/xmlextras/domparser;1"].
String Quick Reference - Archive of obsolete content
function declarations what: use abstract classes instead of concrete classes when passing strings across function boundaries why: using abstract classes allows the caller to choose the storage mechanism, allowing for possible sharing or more efficient handling of string fragments.
...: use abstract classes instead of concrete classes when passing strings across function boundaries why: using abstract classes allows the caller to choose the storage mechanism, allowing for possible sharing or more efficient handling of string fragments.
The life of an HTML HTTP request - Archive of obsolete content
h content node according to the rules specified in the user agent stylesheet (ua.css) and the document specific style sheets.
...().
Venkman Internals - Archive of obsolete content
file is loaded (note that this may never happen!).
...enkman, which is quite limited.
XBL - Archive of obsolete content
ometimes also called extensible bindings language) is a language for describing bindings that can be attached to elements in other documents.
...bl (currently a working draft, 2005) stands for svg's xml binding language.
XML in Mozilla - Archive of obsolete content
from scripts to the xpointer processor.
...o try (especially useful with fixptr) that will select the link target when you traverse it.
Trigger Scripts and Install Scripts - Archive of obsolete content
trigger scripts and install scripts trigger scripts are simple installations that can be initiated from event handlers and other javascript code on a web page.
... trigger scripts and install scripts trigger scripts are simple installations that can be initiated from event handlers and other javascript code on a web page.
copy - Archive of obsolete content
summary makes a queued copy of the specified file.
... summary makes a queued copy of the specified file.
dirGetParent - Archive of obsolete content
dirgetparent returns an object representing the parent directory of the current directory or file.
... dirgetparent returns an object representing the parent directory of the current directory or file.
dirRemove - Archive of obsolete content
dirremove removes a directory.
... dirremove removes a directory.
dirRename - Archive of obsolete content
dirrename renames a directory in place.
... dirrename renames a directory in place.
diskSpaceAvailable - Archive of obsolete content
diskspaceavailable returns the amount of disk space available in bytes on the local disk.
... diskspaceavailable returns the amount of disk space available in bytes on the local disk.
exists - Archive of obsolete content
exists returns a value indicating whether the specified file or directory exists.
... exists returns a value indicating whether the specified file or directory exists.
isDirectory - Archive of obsolete content
summary returns a boolean value indicating whether the specified filespecobject is a directory.
... summary returns a boolean value indicating whether the specified filespecobject is a directory.
isFile - Archive of obsolete content
summary returns a boolean value indicating whether the given filespecobject is a file.
... summary returns a boolean value indicating whether the given filespecobject is a file.
modDate - Archive of obsolete content
summary returns the last modified date of a specified file or directory.
... summary returns the last modified date of a specified file or directory.
modDateChanged - Archive of obsolete content
summary returns whether file has been modified since a certain date.
... summary returns whether file has been modified since a certain date.
move - Archive of obsolete content
move moves a file from one location to another.
... move moves a file from one location to another.
remove - Archive of obsolete content
summary deletes a specified file.
... summary deletes a specified file.
rename - Archive of obsolete content
summary renames a specified file in place.
... summary renames a specified file in place.
size - Archive of obsolete content
summary return the size of the given file in bytes.
... summary return the size of the given file in bytes.
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.
windowsRegisterServer - Archive of obsolete content
summary windowsregisterserver registers installed dlls with the windows registry.
... summary windowsregisterserver registers installed dlls with the windows registry.
windowsShortcut - Archive of obsolete content
summary creates a windows shortcut to the installed software.
... summary creates a windows shortcut to the installed software.
init - Archive of obsolete content
init initializes an init object.
... init initializes an init object.
loadResources - Archive of obsolete content
loadresources loads a properties file.
...he sole input parameter for loadresources is a string representing the path to the properties file in the xpi in which the key/value pairs are defined.
logComment - Archive of obsolete content
logcomment adds a comment line to the installation log.
...de.
performInstall - Archive of obsolete content
summary performs the actual installation of the software.
...ummary performs the actual installation of the software.
resetError - Archive of obsolete content
reseterror resets a saved error code to zero.
... reseterror resets a saved error code to zero.
Install Object - Archive of obsolete content
r plugin developers should see how to package a plugin as an extension.
...he necessary registry and version information.
WinProfile Object - Archive of obsolete content
d packages to the new packaging scheme with an install.rdf manifest.
... with an install.rdf manifest.
deleteKey - Archive of obsolete content
deletekey removes a key from the registry.
... deletekey removes a key from the registry.
deleteValue - Archive of obsolete content
deletevalue removes the value of an arbitrary key.
... deletevalue removes the value of an arbitrary key.
enumKeys - Archive of obsolete content
enumkeys enumerates the registry subkeys for the given key.
... enumkeys enumerates the registry subkeys for the given 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.
isKeyWritable - Archive of obsolete content
iskeywritable returns whether the given registry key is writable or not.
... iskeywritable returns whether the given registry key is writable or not.
keyExists - Archive of obsolete content
keyexists returns whether the key exists.
... keyexists returns whether the key exists.
valueExists - Archive of obsolete content
valueexists returns whether a value for the given key exists.
... valueexists returns whether a value for the given key exists.
Uploading and Downloading Files - Archive of obsolete content
can use, your help in updating this pages to use the supported api is very much welcome!
...guration to support put operations.
onFindAgainCommand - Archive of obsolete content
« xul reference home onfindagaincommand( findprevious ) return type: no return value call this method to handle your application's "find next" and "find previous" commands.
... « xul reference home onfindagaincommand( findprevious ) return type: no return value call this method to handle your application's "find next" and "find previous" commands.
startFind - Archive of obsolete content
« xul reference home startfind( mode ) return type: no return value call this method to handle your application's "find" command.
...ch term, and selects its contents.
loadOneTab - Archive of obsolete content
« xul reference home loadonetab( url, referreruri, charset, postdata, loadinbackground, allowthirdpartyfixup ) loadonetab( url, { referreruri: ..., charset: ..., postdata: ..., inbackground: ..., allowthirdpartyfixup: ..., relatedtocurrent: ...
...b in foreground or background.
openSubDialog - Archive of obsolete content
« xul reference home opensubdialog( url, features, params ) return type: window opens a child modal dialog.
... « xul reference home opensubdialog( url, features, params ) return type: window opens a child modal dialog.
replaceGroup - Archive of obsolete content
« xul reference home replacegroup( group ) not in firefox return type: array of session history objects replaces existing tabs with a new set.
...ere more tabs before, the additional ones are not removed.
Floating Panels - Archive of obsolete content
ide="true" titlebar="normal" label="image properties"> closing a floating panel unlike other panels, a floating panel does not close when clicking outside of it.
...panel does not close when clicking outside of it.
boxObject - Archive of obsolete content
« xul reference boxobject type: nsiboxobject this property is available for elements that are derived from boxes, which is most displayable xul elements.
... « xul reference boxobject type: nsiboxobject this property is available for elements that are derived from boxes, which is most displayable xul elements.
Result Generation - Archive of obsolete content
laced as children of the query element.
...or the lifetime of the template, or until it is rebuilt.
Rule Compilation - Archive of obsolete content
and lazy content generation when the template builder starts processing, and after it has started the datasource loading, it first must compile the query and rules.
...first must compile the query and rules.
Adding Event Handlers - Archive of obsolete content
event is a useful event since it automatically handles different ways of activating the element.
... two handlers have been added here.
Adding more elements - Archive of obsolete content
> now when the dialog is resized, the two buttons will move so that they are always along the bottom of the dialog.
...long the bottom of the dialog.
Adding Style Sheets - Archive of obsolete content
ll associate a single style sheet with each xul file.
...ish.
Creating a Wizard - Archive of obsolete content
pending on which page you are on, use the onpagerewound or onpageadvanced attributes on a wizardpage element.
...code for each page.
Features of a Window - Archive of obsolete content
« previousnext » we've already seen some features of windows.
...ve to the window that opened it.
Manifest Files - Archive of obsolete content
'.
...on.
Property Files - Archive of obsolete content
byid("strings"); var nofilesfound=strbundle.getstring("notfoundalert"); alert(nofilesfound); this example first gets a reference to the bundle using its id then, it looks up the string 'notfoundalert' in the property file.
...bundle.getstring("notfoundalert"); alert(nofilesfound); this example first gets a reference to the bundle using its id then, it looks up the string 'notfoundalert' in the property file.
XUL Structure - Archive of obsolete content
dled in the same way, you can load both from either your local file system, from a web page, or from an extension or standalone xulrunner application.
...s case, the package name is "browser" so we expect to find browser.xul.
XUL Accesskey FAQ and Policies - Archive of obsolete content
what is an accesskey?
...l="apply instantly" accesskey="a" /> apply instantly - or - <button label="apply instantly" accesskey="a" /> apply instantly in mozilla, we use dtd's for one more layer of abstraction, for purposes of internationalization.
XUL Changes for Firefox 1.5 - Archive of obsolete content
this is used typically on gnome systems where possible values are: accept, cancel, help, open, save, find, clear, yes, no, apply, close, print, add, remove, refresh, go-forward, go-back, properties, select-font, select-color, network.
...close, print, add, remove, refresh, go-forward, go-back, properties, select-font, select-color, network.
XUL Event Propagation - Archive of obsolete content
<menuitem value="new" onclick="alert('not captured')" /> ...
... element"); element.addeventlistener(event name, event handler function, whether to register a capturing listener); the event handler code argument can be in-line code or a function.
action - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] used to specify the content that should be generated for each matching result from a query.
...es 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
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.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
bbox - Archive of obsolete content
Archive › Mozilla › XUL › bbox
« xul reference home [ examples | attributes | properties | methods | related ] a horizontal box that is baseline aligned.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
bindings - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] used to specify a set of variable bindings for a rule.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
box - Archive of obsolete content
Archive › Mozilla › XUL › box
« xul reference home [ examples | attributes | properties | methods | related ] a container element which can contain any number of child elements.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
broadcaster - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a broadcaster is used when you want multiple elements to share one or more attribute values, or when you want elements to respond to a state change.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
broadcasterset - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a container element for broadcaster elements.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
column - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a single column in a columns element.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
columns - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] defines the columns of a grid.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
command - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a command element can be used to invoke an operation that can come from multiple sources.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
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.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
content - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] Éste elemento debería pertenecer a query ("consulta").
...nd inner elements.
dialogheader - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a heading row for a dialog box.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
dropmarker - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a dropmarker is a button with an arrow which will reveal more details when pressed.
... 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
grid - Archive of obsolete content
Archive › Mozilla › XUL › grid
note: this page is about grids in mozilla's xul technology.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
grippy - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] an element that may be used inside a splitter which can be used to collapse a sibling element of the splitter.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
groupbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] the groupbox is used to group related elements together.
... 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
hbox - Archive of obsolete content
Archive › Mozilla › XUL › hbox
« xul reference home [ examples | attributes | properties | methods | related ] a container element which can contain any number of child elements.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
key - Archive of obsolete content
Archive › Mozilla › XUL › key
« xul reference home [ examples | attributes | properties | methods | related ] the key element defines a window-global keyboard shortcut and must be placed inside a keyset element.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
keyset - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a container element for key elements.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
listcell - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a single cell of a listbox.
... 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
listcol - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a column in a listbox.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
listcols - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a container for the columns of a listbox, each of which are created with the listcol element.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
listhead - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a header row of a listbox.
... 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
listheader - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a header for a single column in a listbox.
... 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
menuitem - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a single choice in a menupopup element.
... 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
observes - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] the observes element can be used to listen to a broadcaster and receive events and attributes from it.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
page - Archive of obsolete content
Archive › Mozilla › XUL › page
« xul reference home [ examples | attributes | properties | methods | related ] similar to a window, except it should be used for xul files that are to be loaded into an iframe.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
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.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
popupset - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a container for menupopup, panel and tooltip elements.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
progressmeter - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a meter which can be used to display the progress of a lengthy operation.
... 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
query - Archive of obsolete content
Archive › Mozilla › XUL › query
« xul reference home [ examples | attributes | properties | methods | related ] used to specify the query for a template.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
queryset - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a container for query elements when more than one query is used.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
resizer - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] an element used for window resizing.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
row - Archive of obsolete content
Archive › Mozilla › XUL › row
« xul reference home [ examples | attributes | properties | methods | related ] a single row in a rows element.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
rows - Archive of obsolete content
Archive › Mozilla › XUL › rows
« xul reference home [ examples | attributes | properties | methods | related ] defines the rows of a grid.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
rule - Archive of obsolete content
Archive › Mozilla › XUL › rule
« xul reference home [ examples | attributes | properties | methods | related ] a rule is used in a template.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
script - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] much like the html script element, this is used to declare a script to be used by the xul window.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
scrollbar - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] when a container's contents which are larger that the size of the container, scroll bars may be placed at the side of the container to allow the user to scroll around in the container.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
scrollcorner - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] this element is used for the small box where the horizontal and vertical scrollbars meet.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
separator - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] creates a small separating gap between elements.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
spacer - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] an element that takes up space but does not display anything.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
spinbuttons - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] spin buttons are two arrows, one to increase a value and one to decrease a value.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
splitter - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] an element which should appear before or after an element inside a container.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
stack - Archive of obsolete content
Archive › Mozilla › XUL › stack
« xul reference home [ examples | attributes | properties | methods | related ] an element that renders its children on top of each other.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
stringbundleset - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a container for stringbundle elements.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
tabpanel - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a individual panel in a tabpanels element.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
template - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] used to declare a template for rule-based construction of elements.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
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:.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
titlebar - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] boxes created with the titlebar element behave just like a normal window titlebar: when the element is clicked and dragged, the window moves with it.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
toolbaritem - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] firefox only an item that appears on a toolbar.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
toolbarpalette - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] firefox only the item is a palette of available toolbar items.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
toolbarset - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] firefox only this element is used as a container for custom toolbars, which are added in the custom toolbar dialog.
...ies 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature...
toolbarspacer - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] firefox only a space between toolbar items.
... 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
treecell - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a single cell in a tree.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
treechildren - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] this element is the body of the tree.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
treecols - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a group of treecol elements.
... 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
treeitem - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a treeitem should be placed inside a treechildren element and should contain treerow elements.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
treerow - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a single row in a tree.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
treeseparator - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] used to place a separator row in a tree.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
triple - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a triple can be included inside a rule's conditions element.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
vbox - Archive of obsolete content
Archive › Mozilla › XUL › vbox
« xul reference home [ examples | attributes | properties | methods | related ] a container element which can contain any number of child elements.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
where - Archive of obsolete content
Archive › Mozilla › XUL › where
« xul reference home [ examples | attributes | properties | methods | related ] indicate a condition that must match for a template result to be used.
...s 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatur...
wizardpage - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] this element defines a page in a wizard.
...ited 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(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattributenode(), getattributenodens(), getattributens(), getboundingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagna...
XULRunner tips - Archive of obsolete content
sions theme manager chrome://mozapps/content/extensions/extensions.xul?type=themes extension:manager-themes javascript console chrome://global/content/console.xul global:console about:config chrome://global/content/config.xul developer extensions venkman need a custom build or a compatible extension need to edit compatibility in needs a method to start venkman (usually by overlaying the main xul file, similar to existing code for firefox, suite, etc.) the function toopenwindowbytype() needs to be defined.
...ance(components.interfaces.mozijssubscriptloader); sl.loadsubscript("chrome://inspector/content/hooks.js", tmpnamespace); tmpnamespace.inspectdomdocument(document); } now create a hook in your application window to start dom inspector, like this one: <button label="start inpector" oncommand="startdomi()"/> start your application and dom inspector will be installed.
Archived Mozilla and build documentation - Archive of obsolete content
ons can all be retrieved from user-customized bookmarks.
...edge base (2005).
2006-12-01 - Archive of obsolete content
er a byproduct of helma that extends java applications with rhino/js.
... from javascript files.
2006-12-01 - Archive of obsolete content
summary: mozilla.dev.apps.calendar - november 24 - december 01, 2006 announcements december 5th test day coming up!
...s.
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.
... 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.
NPN_GetValue - Archive of obsolete content
ix the platform-specific values for this parameter are npnvxdisplay (the current display), npnvxtappcontext (the browser's xtappcontext), and npnvnetscapewindow (the browser toplevel window in which the plugin is displayed).
...rosoft windows you can use this method to help create a menu or dialog box for a windowless plug-in.
NPN_PostURL - Archive of obsolete content
t in a file or use it in a program.
... program.
NPWindow - Archive of obsolete content
window element on windows and unix, or a rectangle within a native window on mac os.
... npwindow structure that represents a drawable (a pointer to an npwindow allocated by the browser).
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.
... 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.
Shipping a plugin as a Toolkit bundle - Archive of obsolete content
one of the new features that is available in firefox 1.5 is the ability to place browser plugins in a toolkit bundle.
...lable in firefox 1.5 is the ability to place browser plugins in a toolkit bundle.
Plugins - Archive of obsolete content
s x learn how to write a plugin for mac os x; a template xcode project is provided.
...s, and blog posts that may be useful.
Encryption and Decryption - Archive of obsolete content
.
...ublicly known, the other half (private key) can be derived using published, though complex, mathematical calculations.
Introduction to Public-Key Cryptography - Archive of obsolete content
ide only your name and a utility bill with your address on it.
...e way as any of these familiar forms of identification.
Displaying notifications (deprecated) - Archive of obsolete content
of the web content, using the standard notification system provided by the operating system.
...eelement("p"); e.innerhtml = "<strong>the notification was clicked.</strong>"; document.body.appendchild(e); }; notification.onclose = function() { var e = document.createelement("p"); e.innerhtml = "<strong>the notification was closed.</strong>"; document.body.appendchild(e); }; displaying the notification once the notification is configured the way you want it to be, call its show() method to display the notification: notification.show(); on android, for example, the resulting notification panel looks like this: when the user taps on the "hey, check this out!" notification here, the resulting changes to the document look like this: if you're using firefox mobile, you can see this example live by tapping the button below.
Array.observe() - Archive of obsolete content
the array.observe() method was used for asynchronously observing changes to arrays, similar to object.observe() for objects.
...: only for the "splice" type.
ArrayBuffer.transfer() - Archive of obsolete content
the static arraybuffer.transfer() method returns a new arraybuffer whose contents have been taken from the oldbuffer's data and then is either truncated or zero-extended by newbytelength.
...newbytelength is undefined, the bytelength of the oldbuffer is used.
Function.prototype.isGenerator() - Archive of obsolete content
the non-standard isgenerator() method used to determine whether or not a function is a generator.
... the non-standard isgenerator() method used to determine whether or not a function is a generator.
ActiveXObject - Archive of obsolete content
ssign the new activexobject to an object variable: var excelapp = new activexobject("excel.application"); var excelsheet = new activexobject("excel.sheet"); this code starts the application creating the object (in this case, a microsoft excel worksheet).
...lsheet and other excel objects, including the application object and the activesheet.cells collection.
Debug - Archive of obsolete content
non-standard.
...ws 8.x store apps.
Enumerator.item - Archive of obsolete content
non-standard.
... non-standard.
Enumerator.moveFirst - Archive of obsolete content
non-standard.
... this object is a microsoft extension and is only supported in internet explorer.
Enumerator.moveNext - Archive of obsolete content
non-standard.
...ension and is only supported in internet explorer.
VBArray.dimensions - Archive of obsolete content
non-standard.
... non-standard.
New in JavaScript 1.1 - Archive of obsolete content
tor 3.0 also introduced javascript language versions.
...ray.prototype.reverse() array.prototype.sort() array.prototype.split() new operators typeof void other new features <noscript> liveconnect.
Reflect.enumerate() - Archive of obsolete content
the static reflect.enumerate() method used to return an iterator with the enumerable own and inherited properties of the target object, but has been removed in ecmascript 2016 and is deprecated in browsers.
...properties of the target object, but has been removed in ecmascript 2016 and is deprecated in browsers.
String.prototype.quote() - Archive of obsolete content
obsolete since gecko 37 (firefox 37 / thunderbird 37 / seamonkey 2.34)this feature is obsolete.
... using it.
for each...in - Archive of obsolete content
declared with the var keyword.
...le is local to the function, not to the loop.
Troubleshooting XForms Forms - Archive of obsolete content
ss tables or repeat attributes, which at the moment are not working properly in the firefox xforms extension :( should be fixed by bug 306247 and bug 280368 respectively.
...perly in the firefox xforms extension :( should be fixed by bug 306247 and bug 280368 respectively.
Using the Right Markup to Invoke Plugins - Archive of obsolete content
as well.
...veats governing the use of the embed element are: do not include a name attribute with the object element, especially if it is the same name value as that of the embed element.
XUL Parser in Python - Archive of obsolete content
ader myself, and haven't figured out yet how to get that written automatically.
...on, strip(), that takes off the whole namespace that xmllib is trying to tack onto the front of each item it finds in the xml.
Building up a basic demo with PlayCanvas editor - Game development
he code editor.
...aling effect as a result.
Audio for Web games - Game development
d before playing can commence.
...d, as described above.
Desktop mouse and keyboard controls - Game development
e.input.mousepointer.rightbutton.isdown; keep in mind that instead of mousepointer, it's better to use activepointer for platform independent input if you want to keep the support for mobile touch interactions.
...gin playing.
Unconventional controls - Game development
eed a few helper variables for our code to work — one for the purpose of calculating the degrees from radians, two for holding the horizontal and vertical amount of degrees our hand is leaning above the controller, one for the threshold of that lean, and one for the state of our hand's grab status.
...s leaning above the controller, one for the threshold of that lean, and one for the state of our hand's grab status.
Implementing game control mechanisms - Game development
ffects.
...pointer.isdown) { // do something } // ...
Tiles and tilemaps overview - Game development
section of the world is being displayed.
...ng, that technique is not very efficient.
Buttons - Game development
all's wobble animation.
...the button spritesheet from github, and save it in your /img directory.
Collision detection - Game development
is new function as the bottom of your code, just before the closing </script> tag, as follows: function ballhitbrick(ball, brick) { brick.kill(); } and that's it!
...ld see the new collision detection working just as required.
Extra lives - Game development
t and can continue to play — they will see the life lost message, the ball and paddle positions will be reset on screen and on the next input (click or touch) the message will be hidden and the ball will start to move again.
... reset on screen and on the next input (click or touch) the message will be hidden and the ball will start to move again.
Load the assets and print them on screen - Game development
orial, we will use global variables.
...load the image for our ball.
Physics - Game development
t physics engines — arcade physics, p2 and ninja physics — with a fourth option, box2d, being available as a commercial plugin.
...ct physics is not enabled by default.
Visual-js game engine - Game development
r@0.7.0 very easy installation and project files generator .
... - implementation of matter.js based typescript .
Visual typescript game engine - Game development
install npm run build navigate in browser /build/app.html to see client app in action -the client part is a browser web application.
...ticonnection2.js | | | | | ├── rtcmulticonnection3.js | | | | | ├── linkify.js | | | | | ├── gethtmlmediaelement.js | | | | | ├── socket.io.js | | | | ├── broadcaster-media.ts | | | | ├── broadcaster.ts | | | | ├── connector.ts | | | | ├── network.ts | | | ├── visual-methods/ | | | | ├── sprite-animation.ts | | | | ├── text.ts | | | | ├── texture.ts | | | ├── browser.ts | | | ├── math.ts | | | ├── position.ts | | | ├── resources.ts | | | ├── sound.ts | | | ├── system.ts | | | ├── view-port.ts | | | ├── visual-render.ts | | ├...
Asynchronous - MDN Web Docs Glossary: Definitions of Web-related terms
the term asynchronous refers to two or more objects or events not existing or happening at the same time (or multiple related things happening without waiting for the previous one to complete).
...ties in which each party receives and processes messages whenever it's convenient or possible to do so, rather than doing so immediately upon receipt.
Lossless compression - MDN Web Docs Glossary: Definitions of Web-related terms
lossless compression is a class of data compression algorithms that allows the original data to be perfectly reconstructed from the compressed data.
...ion is a class of data compression algorithms that allows the original data to be perfectly reconstructed from the compressed data.
Signature - MDN Web Docs Glossary: Definitions of Web-related terms
the term signature can have several meanings depending on the context.
... the term signature can have several meanings depending on the context.
HTML: A good basis for accessibility - Learn web development
tion and best practices.
...rm accessibility if their accessible styling is removed or if javascript causes them to behave in unexpected ways.
HTML: A good basis for accessibility - Learn web development
tion and best practices.
...rm accessibility if their accessible styling is removed or if javascript causes them to behave in unexpected ways.
Overflowing content - Learn web development
y axis, however we get scrollbars in both axes.
...have changed the value of overflow for acquires a self-contained layout.
CSS values and units - Learn web development
ver else.
...to use hsl colors like this: just as rgb has rgba, hsl has an hsla equivalent, which gives you the same ability to specify the alpha channel.
Grids - Learn web development
-color: rgb(207,232,220); border: 2px solid rgb(79,185,227); } <div class="container"> <div>one</div> <div>two</div> <div>three</div> <div>four</div> <div>five</div> <div>six</div> <div>seven</div> </div> note: the *gap properties used to be prefixed by grid-, but this has been changed in the spec, as the intention is to make them usable in multiple layout methods.
...o dig further into the specification, read our guides to grid layout, which can be found below.
Multiple-column layout - Learn web development
previous overview: css layout next the multiple-column layout specification gives you a method of laying content out in columns, as you might see in a newspaper.
...} test your skills!
Normal Flow - Learn web development
ures that your content is readable, even if the user is using a very limited browser or a device such as a screen reader that reads out the content of the page.
...stand normal flow, and how the browser lays things out by default, move on to understand how to change this default display to create the layout needed by your design.
How CSS is structured - Learn web development
erstanding the purpose and use of css, let's examine the structure of css.
...s works.
How do you upload your files to a web server? - Learn web development
you to publish websites via github pages (gh-pages).
... covered the basics of using this in the publishing your website article from our getting started with the web guide, so we aren't going to repeat it all here.
Publishing your website - Learn web development
next once you finish writing the code and organizing the files that make up your website, you need to put it all online so people can find it.
...d it.
Tips for authoring fast-loading HTML pages - Learn web development
appearance of the page load.
...atically "correct" or normalize it; or whether, instead, to enforce a strict, no-tolerance input format).
Looping code - Learn web development
a name and phone number separated by a colon.
...hing on to the end of admitted.textcontent.
Test your skills: Strings - Learn web development
this aim of this skill test is to assess whether you've understood our handling text — strings in javascript and useful string methods articles.
...trings 2 in this task you are provided with two variables, quote and substring, which contain two strings.
JavaScript First Steps - Learn web development
ly manipulate numbers to do our bidding.
...alled in programming.
Client-Server Overview - Learn web development
t.
...l (http).
Introduction to the server side - Learn web development
lopment, learning about server-side development is highly recommended.
... form, or run a search, an http request is sent from your browser to the target server.
Server-side web frameworks - Learn web development
source on the server will instead include the update information as "post data" within the body of the request.
...web services on small, resource-constrained systems (e.g.
Ember Interactivity: Footer functionality, conditional rendering - Learn web development
just below the previous ones, which will allow us to toggle a completion state for each todo: @action togglecompletion(todo) { todo.iscompleted = !todo.iscompleted; } updating the template to show completed state finally, we will edit the todo.hbs template such that the checkbox's value is now bound to the iscompleted property on the todo, and so that on change, the togglecompletion() method on the todo service is invoked.
...tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events, methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, l...
Introduction to client-side frameworks - Learn web development
at could look something like this: function buildtodoitemel(id, name) { const item = document.createelement('li'); const span = document.createelement('span'); const textcontent = document.createtextnode(name); span.appendchild(textcontent) item.id = id; item.appendchild(span); item.appendchild(builddeletebuttonel(id)); return item; } here, we use the document.createelement() method to make our <li>, and several more lines of code to create the properties and children it needs.
...tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events, methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, l...
Framework main features - Learn web development
rovide functionality known as dependency injection, which is a way to get certain data directly to the components that need it, without passing it through intervening levels.
...tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events, methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, l...
Componentizing our React app - Learn web development
component as props.tasks.
...tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events, methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, l...
React interactivity: Editing, filtering, conditional rendering - Learn web development
task => task.completed }; the values of filter_map are functions that we will use to filter the tasks data array: the all filter shows all tasks, so we return true for all tasks.
...tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events, methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, l...
React resources - Learn web development
application you can install with npm or yarn.
...tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events, methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, l...
Rendering a list of Vue components - Learn web development
w more logical and consistent.
...tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events, methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, l...
Handling common JavaScript problems - Learn web development
utility libraries: provide a bunch of functions to make mundane tasks easier and less boring to manage.
...se libraries are designed to allow you to easily add special effects to your websites.
Embedding API for Accessibility
, such as preferences to allow the user to change foreground and background colors, and font sizes.
...clip of a human voice saying "you've got video" or even a simple beep.
A bird's-eye view of the Mozilla framework
racts with the idl interface.
...vice;1"].getservice(components.interfaces.nsirdfservice); the components object is made available to javascript via xpconnect; it serves as a bridge connecting javascript and xpcom.
Browser chrome tests
arness.
...ng a bug number.
Debugging on Windows
tring=<nsstringcontainer.v,su>, length=<nsstringcontainer.d1,u> nsacstring=<nscstringcontainer.v,s>, length=<nscstringcontainer.d1,u> nsstringcontainer=<v,su>, length=<d1,u> nscstringcontainer=<v,s>, length=<d1,u> there is a more extensive version of this file in progress in autoexpforvc8.
...omptr.*\:\:.*=nostepinto (nsg|g)etter_*addrefs.*=nostepinto ns_convertutf.* ; might be too broad: (ns|promise)[^\:]*[ss]tring.* ...add common functions to this list should probably make a .reg file for easy importing obtaining stdout and other file handles running the following command in the command window in visual studio returns the value of stdout, which can be used with various debugging methods (such as nsgenericelement::list) that take a file* param: debug.evaluatestatement {,,msvcr80d}(&__iob_func()[1]) (alternatively you can evaluate {,,msvcr80d}(&__iob_func()[1]) in the quickwatch window) similarly, you can open a file on the disk using fopen: >debug.evaluatestatement {,,msvcr80d}fopen("c:\\123", "w") 0x10311dc0 { ..snip..
How Mozilla's build system works
++ files to compile, and so on.
...y build in.
Callgraph
the callgraph project is intended to produce a complete callgraph covering c and c++ code within mozilla.
...on the relationship between functions and methods.
Creating Custom Events That Can Pass Data
{truncatedname}) dom_classinfo_map_entry(nsidom{truncated name}) dom_classinfo_event_map_entries dom_classinfo_map_end remember, {truncated name} is the same as above.
...o_map_entry(nsidom{truncated name}) dom_classinfo_event_map_entries dom_classinfo_map_end remember, {truncated name} is the same as above.
Eclipse CDT Manual Setup
a), and if you fail to take steps to make sure the build output specifies which directory the compiler is invoked from, this will not be possible.
... minor benefits that eclipse has to offer, but these are worth sacrificing for much improved code assistance.
Reviewer Checklist
[fennec: when writing tests that use paintedsurface, ensure the paintedsurface is closed when you're done with it.] performance impact check for main-thread io [fennec: android may warn about this with strictmode].
... the bug summary).
HTMLIFrameElement.clearMatch()
warning: removed in firefox 65.
... warning: removed in firefox 65.
HTMLIFrameElement.findAll()
warning: removed in firefox 65.
... warning: removed in firefox 65.
HTMLIFrameElement.findNext()
warning: removed in firefox 65.
... warning: removed in firefox 65.
HTMLIFrameElement.getMuted()
non-standard this feature is non-standard and is not on a standards track.
...ture is non-standard and is not on a standards track.
HTMLIFrameElement.getVolume()
non-standard this feature is non-standard and is not on a standards track.
... this feature is non-standard and is not on a standards track.
HTMLIFrameElement.goBack()
non-standard this feature is non-standard and is not on a standards track.
... this feature is non-standard and is not on a standards track.
HTMLIFrameElement.goForward()
non-standard this feature is non-standard and is not on a standards track.
...ard this feature is non-standard and is not on a standards track.
mozbrowsercontextmenu
in the case of an link context menu, it is the link's href.
...it is the link's href.
HTMLIframeElement.removeNextPaintListener()
warning: removed in firefox 65.
... warning: removed in firefox 65.
HTMLIFrameElement.sendTouchEvent()
warning: removed in firefox 65.
... warning: removed in firefox 65.
HTMLIFrameElement.setVisible()
non-standard this feature is non-standard and is not on a standards track.
...of resources required by the browser <iframe>.
IME handling guide
this document explains how gecko handles ime.
... widgetkeyboardevent should be dispatched when there is a composition is managed by this class in xp level.
Creating a New Protocol
headers, make in ipc/ipdl: make -c objdir/ipc/ipdl if there are any protocol-level errors, the ipdl compiler will print the relevant error messages and stop.
... any protocol-level errors, the ipdl compiler will print the relevant error messages and stop.
Implementing QueryInterface
this document describes the right way to write queryinterface().
...ation that already supports many other interfaces.
AddonUpdateChecker
the addonupdatechecker is used to download and parse update information for an add-on's update manifest.
... update check timed out.
InstallListener
installlisteners are notified of an addoninstall's progress.
... void ondownloadfailed(in addoninstall install) void oninstallstarted(in addoninstall install) void oninstallended(in addoninstall install, in addon addon) void oninstallcancelled(in addoninstall install) void oninstallfailed(in addoninstall install) void onexternalinstall(in addon install, in addon existingaddon, in boolean needsrestart) methods onnewinstall() called when a new instance of addoninstall is created, primarily so ui can display some kind of progress for all installs.
TypeListener
typelisteners can be registered with addtypelistener() and will then receive notification as addontype are registered and unregistered.
... typelisteners can be registered with addtypelistener() and will then receive notification as addontype are registered and unregistered.
UpdateCheckListener
updatechecklisteners are passed the results of update checks performed by the addonupdatechecker.
... updatechecklisteners are passed the results of update checks performed by the addonupdatechecker.
Add-on Repository
that are compatible with the current application and are not already installed or in the process of being installed.
...daddons(in integer maxresults, in searchcallback callback) void searchaddons(in string searchterms, in integer maxresults, in searchcallback callback) properties property type description homepageurl string the url of the repository site's home page.
AsyncShutdown.jsm
through a battery.
...on returned by calls to info().
Widget Wrappers
widget wrappers are objects that provide information about a widget.
... widget wrappers are objects that provide information about a widget.
FileUtils.jsm
pt code module offers utility routines dealing with files.
...eate 0x08 corresponds to the pr_create_file parameter to pr_open mode_append 0x10 corresponds to the pr_append parameter to pr_open mode_truncate 0x20 corresponds to the pr_truncate parameter to pr_open perms_file 0644 default permissions when creating files.
Http.jsm
per for xmlhttprequest that provides convenient and simplified api for dealing with http requests.
...ost or put (this is automatically set if postdata exists).
OS.File.Error
instances of os.file.error are used by os.file to notify of file-related errors.
....file.open("myfile.txt"); // ...
Localizing extension descriptions
this article provides details on how to go about localizing the descriptions of mozilla add-ons, as well as for other metadata about your add-on.
... this article provides details on how to go about localizing the descriptions of mozilla add-ons, as well as for other metadata about your add-on.
Mozilla Style System
ponsibility of other parts of the code.
...sor represents an origin within the css cascade.
BloatView
e list is not ok.
...y configs you'll want to modify are listed below: linux: unittests/linux_unittest.py mac: unittests/mac_unittest.py windows: unittests/win_unittest.py android: android/androidarm_4_3.py how to instrument your objects for bloatview first, if your object is an xpcom object and you use the ns_impl_addref and ns_impl_release (or a variation thereof) macro to implement your addref and release methods, then there is nothing you need do.
Investigating leaks using DMD heap scan mode
re i was investigating the leak from bug 1451985, i eventually reduced the list of entries until this was the most suspicious looking entry: 0x7f0892f29630 size = 392 bytes at byte offset 56 mozilla::dom::scriptloader::processexternalscript[...] [...] i went to that line of scriptloader::processexternalscript(), and it contained a call to scriptloader::createloadrequest().
...--> 0x7f0892f29630 [scriptloadrequest] this confirms that this block is actually a scriptloadrequest.
Measuring performance using the PerfMeasurement.jsm code module
onfigured to record the specified event types.
...sn't automatically zero the counters each time you start recording).
AsyncTestUtils extended framework
their chance to run again.
...ssages and add them to the provided folders.
Midas
d by internet explorer.
...selection and range objects.
I/O Functions
ld associate the identity with all layers of that type.
... by nspr.
Using JSS
Mozilla › Projects › NSS › JSS › Using JSS
classpath include the path containing the jss classes you built, or the path to jss42.jar.
...he path to jss42.jar.
nss tech note5
in bits.
... <big>choose a key generation mechanism</big> ck_mechanism_type keygenmech = ckm_des_key_gen; (for example) <big>generate the key</big> pk11symkey* symkey = pk11_keygen(slot, keygenmech, null, keysize, null); <big>you can also see an sample program that does key generation.</big> extract the raw key (this should not normally be used.
sslerr.html
ec_error_pkcs11_function_failed -8024 "a pkcs #11 module returned ckr_function_failed, indicating that the requested function could not be performed.
...pkcs #11 module returned ckr_function_failed, indicating that the requested function could not be performed.
Proxies in Necko
otocol handler for the given uri.
...tion) is enabled, it is asked for the proxy string for the given uri, which determines whether to use a proxy.
Hacking Tips
ed char *) ($pc - 1) = 0x90 (gdb) x /1i $pc - 1 0x7ffff7fb1659: nop (gdb) # set a breakpoint at the previous location (gdb) b *0x7ffff7fb1659 breakpoint 2 at 0x7ffff7fb1659 printing ion generated assembly code (from gdb) if you want to look at the assembly code generated by ionmonkey, you can follow this procedure: place a breakpoint at codegenerator.cpp on the codegenerator::link method.
...ntained by the javascript team, to find regressions and to compare spidermonkey with other javascript engines when possible.
Garbage collection
thing (it is essentially a cell** that the gc knows about.) root a starting point to the gc graph traversal, a root is known to be alive for some external reason (one other than being reachable by some other part of the gc heap.) weak pointer in common cs terminology, a weak pointer is one that doesn't keep the pointed-to value live for gc purposes.
...y some other part of the gc heap.) weak pointer in common cs terminology, a weak pointer is one that doesn't keep the pointed-to value live for gc purposes.
JS::AutoIdArray
nkey 17 take ownership of a jsidarray and free it later.
...nership of a jsidarray and free it later.
JS::AutoVectorRooter
this article covers features introduced in spidermonkey 17 base class that roots an internal variable-size array of type t.
... this article covers features introduced in spidermonkey 17 base class that roots an internal variable-size array of type t.
JS::GetFirstArgumentAsTypeHint
convert first argument of @@toprimitive method to jstype.
... cx jscontext * the context in which to define functions.
JS::HandleValueArray
only) length of elements array or (subarray only) length of sub array of values.
...lements array or (subarray only) length of sub array of values.
JSFreeOp
this article covers features introduced in spidermonkey 17 structure used during finalization instead of jscontext.
... this article covers features introduced in spidermonkey 17 structure used during finalization instead of jscontext.
JSNewEnumerateOp
the type of objectops::enumerate.
... 37 in/out parameter.
JSPrincipals
obsolete since jsapi 12 globalprivilegesenabled jsbool (*)(jscontext *, jsprincipals *) flag indicating whether principals are enabled globally.
...remented by one.
JS_CompileFunction
ng the source code of the function.
... non-null, the new function becomes a method of obj.
JS_DefineFunctions
add native methods to an object.
... name description defineallproperties define all properties regardless of their flags.
JS_DefinePropertyWithTinyId
e property to create.
...ength of name in characters; or (size_t) -1 to indicate that name is null-terminated.
JS_FS
name pays homage to the old jsnative/jsfastnative split) simply adds the flag jsfun_stub_gsops.
...lit) simply adds the flag jsfun_stub_gsops.
JS_FreezeObject
obj); name type description cx jscontext * the context.
... request.
JS_HasInstance
jsapi method equivalent to the instanceof operator in javascript.
...etermines if a specified js value, v, is an instance of js object, obj.
JS_SetFunctionCallback
api 37this feature is obsolete.
....
JS_SetProperty
ddproperty hook or a non-default setter to assign to v.
...ession obj[name] = v.
JS_ThrowStopIteration
_throwstopiteration(jscontext *cx); name type description cx jscontext * the context in which to throw the stopiteration object.
... cx jscontext * the context in which to throw the stopiteration object.
JS_ValueToString
t be "nan", "infinity", or "-infinity".
...ossibly using exponential notation.
SpiderMonkey 38
izecallback (bug 996785) js_setfunctioncallback (bug 1103269) jschar (bug 1063962) api changes jschar, a typedef for the standard c++ type char16_t, has been removed.
... with most jsapi methods), and via outparam (indicating whether the attempt took effect or not, independent of jsapi failure).
Secure Development Guidelines
pl_strncpyz this function copies a string and guarantees null termination.
...es null termination.
extIApplication
this content covers features introduced in thunderbird 3 the extiapplication is defined in toolkit/components/exthelper/extiapplication.idl.
...erfaces are only available to firefox: attribute type description bookmarks readonly attribute fuelibookmarkroots the root bookmarks object for the application.
extIExtension
this content covers features introduced in thunderbird 3 the extiextension interface represents an extension.
... prefs readonly attribute extipreferencebranch the preferences object for the extension.
extIPreferenceBranch
ons.extensionid.", while the application-level preferences have an empty root.
...ant avalue) void reset() attributes attribute type description root readonly attribute astring the name of the branch root.
XML Extras
nd wsdl no longer available from gecko 1.9/firefox 3.
... begins with lower case letter xmlhttprequest creation new activexobject("msxml2.xmlhttp") new xmlhttprequest() xmlhttprequest.send("some string") ok ok starting with milestone 0.9.7 (actually nightly 2001-11-28).
Creating a Python XPCOM component
from xpcom import components, verbose class pysimple: #pythontestcomponent _com_interfaces_ = components.interfaces.nsipysimple _reg_clsid_ = "{c456ceb5-f142-40a8-becc-764911bc8ca5}" _reg_contractid_ = "@mozilla.org/pysimple;1" def __init__(self): self.yourname = "a default name" # or mname ?
... also needed.
Avoiding leaks in JavaScript XPCOM components
wsers in tabs, creating and destroying them as needed.
...xbl bindings, and much of the memory associated with the page displayed in the tab is reachable from the javascript properties of the browser element.
Receiving startup notifications
rtup sent when xpcom finishes starting up.
...ager.getservice().
How To Pass an XPCOM Object to a New Window
a more useful example is available in the source code: toolkit/components/help/content/contexthelp.js#61 if you want to be able to call functions within an xpcom object from a xul window's code, you can do so if you pass the xpcom object as one of the arguments to the window creation method.
...to the window creation method.
Components.ID
summary components.id is a constructor that creates native objects that conform to the nsijsid interface.
...ts.id is a constructor that creates native objects that conform to the nsijsid interface.
Components.interfaces
mplement the nsijsiid interface.
...op.
Components.utils.getWeakReference
this method was introduced in firefox 3 and is used for obtaining a weak reference for an object.
...se get() succeeds doesn't mean your object is valid.
Components.utils.makeObjectPropsNormal
ensures that the specified object's methods are all in the object's scope, and aren't cross-component wrappers.
... ensures that the specified object's methods are all in the object's scope, and aren't cross-component wrappers.
Components.utils.unload
components.utils.unload was introduced in firefox 7 and is used to unload javascript code modules.
...can be particularly handy with restartless (boostrapped) extensions, so that you can unload an old version of a code module when a new version of your add-on is installed.
NS_ShutdownXPCOM
nates use of xpcom in the calling process.
...sxpcom.h" nsresult ns_shutdownxpcom( nsiservicemanager* asvcmanager ); parameters asvcmanager [in] the nsiservicemanager instance that was returned by ns_initxpcom2 (or ns_initxpcom3) or null.
NS ConvertASCIItoUTF16 external
class declaration method overview constructors get operator= adopt beginreading endreading charat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral lowercaseequalsliteral find ...
...defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral lowercaseequalsliteral find rfind findchar rfindchar appendint tointeger base classes nsstring_external data members no public members.
NS ConvertUTF16toUTF8 external
class declaration method overview constructors get operator= adopt beginreading endreading charat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar ...
...tespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar rfindchar appendint tointeger base classes nscstring_external data members no public members.
NS ConvertUTF8toUTF16 external
class declaration method overview constructors get operator= adopt beginreading endreading charat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral lowercaseequalsliteral find ...
...defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral lowercaseequalsliteral find rfind findchar rfindchar appendint tointeger base classes nsstring_external data members no public members.
NS LossyConvertUTF16toASCII external
class declaration method overview constructors get operator= adopt beginreading endreading charat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar ...
...tespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar rfindchar appendint tointeger base classes nscstring_external data members no public members.
PromiseFlatCString (External)
class declaration method overview get operator= adopt beginreading endreading charat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar rfindchar ...
...tespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar rfindchar appendint tointeger base classes nscstringcontainer data members no public members.
PromiseFlatString (External)
class declaration method overview get operator= adopt beginreading endreading charat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral lowercaseequalsliteral find rfind fin...
...defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral lowercaseequalsliteral find rfind findchar rfindchar appendint tointeger base classes nsstringcontainer data members no public members.
nsACString (External)
f8_external" shape="rect" title="ns_convertutf16toutf8_external"> <area alt="" coords="499,294,779,342" href="http://developer.mozilla.org/en/ns_lossyconvertutf16toascii_external" shape="rect" title="ns_lossyconvertutf16toascii_external"> <area alt="" coords="803,294,925,342" href="http://developer.mozilla.org/en/nsliteralcstring_(external)" shape="rect" title="nsliteralcstring_(external)"></map> method overview beginreading endreading charat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral operator= replace append appendliteral operator+= insert cut ...
... stripchars stripwhitespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar rfindchar appendint tointeger data members no public members.
nsAString (External)
rtasciitoutf16_external" shape="rect" title="ns_convertasciitoutf16_external"> <area alt="" coords="491,294,733,342" href="http://developer.mozilla.org/en/ns_convertutf8toutf16_external" shape="rect" title="ns_convertutf8toutf16_external"> <area alt="" coords="757,294,869,342" href="http://developer.mozilla.org/en/nsliteralstring_(external)" shape="rect" title="nsliteralstring_(external)"> </map> method overview beginreading endreading charat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral operator= replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> ...
...assign assignliteral operator= replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral lowercaseequalsliteral find rfind findchar rfindchar appendint tointeger data members no public members.
nsAutoRefTraits
nsautoreftraits<t> is a template class describing traits of resources held by objects of class nsautoref<t> and/or nscountedref<t>.
... nsautoreftraits<t> is a template class describing traits of resources held by objects of class nsautoref<t> and/or nscountedref<t>.
nsAutoString (External)
class declaration method overview get operator= adopt beginreading endreading charat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral lowercaseequalsliteral find rfind fin...
...defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral lowercaseequalsliteral find rfind findchar rfindchar appendint tointeger base classes nsstringcontainer data members no public members.
nsCAutoString (External)
class declaration method overview get operator= adopt beginreading endreading charat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar rfindchar ...
...tespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar rfindchar appendint tointeger base classes nscstringcontainer data members no public members.
nsCStringContainer (External)
class declaration method overview beginreading endreading charat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral operator= replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim defaultcomparator compare(const char*, print32 (*) compare(const nsacstring&, print32 (*) equals(const char*, print32 (*) equals(const nsacstring&, print32 (*) operator< operator<= operator== operator>= operator>...
...t char*, print32 (*) find(const char*, pruint32, print32 (*) rfind(const nsacstring&, print32 (*) rfind(const nsacstring&, print32, print32 (*) rfind(const char*, print32 (*) rfind(const char*, print32, print32 (*) findchar rfindchar appendint tointeger base classes nsacstring data members no public members.
nsCString external
class declaration method overview constructors get operator= adopt beginreading endreading charat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar ...
...tespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar rfindchar appendint tointeger base classes nscstringcontainer data members no public members.
nsDependentCString external
class declaration method overview constructors rebind get operator= adopt beginreading endreading charat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind ...
...tespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar rfindchar appendint tointeger base classes nscstring_external data members no public members.
nsDependentCSubstring external
class declaration method overview constructors rebind beginreading endreading charat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral operator= replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar rfindch...
...tespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar rfindchar appendint tointeger base classes nscstringcontainer data members no public members.
nsDependentString external
class declaration dependent strings method overview constructors rebind get operator= adopt beginreading endreading charat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral lowercas...
...defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral lowercaseequalsliteral find rfind findchar rfindchar appendint tointeger base classes nsstring_external data members no public members.
nsDependentSubstring external
class declaration substrings method overview constructors rebind beginreading endreading charat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral operator= replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim defaultcomparator compare(const prunichar*, print32 (*) compare(const nsastring&, print32 (*) equals(const prunichar*, print32 (*) equals(const nsastring&, print32 (*) operator< operator<= ...
... lowercaseequalsliteral find(const nsastring&, print32 (*) find(const nsastring&, pruint32, print32 (*) find rfind(const nsastring&, print32 (*) rfind(const nsastring&, print32, print32 (*) rfind findchar rfindchar appendint tointeger base classes nsstringcontainer data members no public members.
nsEmbedCString
pi reference summary the nsembedcstring concrete class provides a way to construct a nsacstring object that allocates null-terminated storage.
...for the type of this class.
nsEmbedString
crete class provides a way to construct a nsastring object that allocates null-terminated storage.
...alias for the type of this class.
nsLiteralCString (External)
class declaration method overview rebind get operator= adopt beginreading endreading charat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar r...
...tespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar rfindchar appendint tointeger base classes nscstring_external data members no public members.
nsLiteralString (External)
class declaration method overview rebind get operator= adopt beginreading endreading charat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar r...
...tespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral find rfind findchar rfindchar appendint tointeger base classes nscstring_external data members no public members.
nsStringContainer (External)
class declaration method overview beginreading endreading charat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral operator= replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral lowercaseequalsliteral find rfind findchar rfindchar ...
... defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral lowercaseequalsliteral find rfind findchar rfindchar appendint tointeger base classes nsastring data members no public members.
nsString external
class declaration basic strings method overview constructors get operator= adopt beginreading endreading charat operator[] first beginwriting endwriting setlength length isempty setisvoid isvoid assign assignliteral replace append appendliteral operator+= insert cut truncate stripchars stripwhitespace trim defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral lowercaseequalsliteral ...
...defaultcomparator compare equals operator< operator<= operator== operator>= operator> operator!= equalsliteral lowercaseequalsliteral find rfind findchar rfindchar appendint tointeger base classes nsstringcontainer data members no public members.
XPCOM glue classes
clarationns convertutf16toutf8 externalclass declarationns convertutf8toutf16 externalclass declarationns lossyconvertutf16toascii externalclass declarationns_convertasciitoutf16class declarationns_convertutf16toutf8class declarationns_convertutf8toutf16class declarationns_lossyconvertutf16toasciiclass declarationns_overridens_override is a macro which allows c++ code in mozilla to specify that a method is intended to override a base class method.
...externalclass declarationns lossyconvertutf16toascii externalclass declarationns_convertasciitoutf16class declarationns_convertutf16toutf8class declarationns_convertutf8toutf16class declarationns_lossyconvertutf16toasciiclass declarationns_overridens_override is a macro which allows c++ code in mozilla to specify that a method is intended to override a base class method.
IAccessible2
other-licenses/ia2/accessible2.idlnot scriptable please add a summary to this article.
...n relations, [out] long nrelations ); hresult role([out] long role ); hresult scrollto([in] enum ia2scrolltype scrolltype ); hresult scrolltopoint([in] enum ia2coordinatetype coordinatetype, [in] long x, [in] long y ); [propget] hresult states([out] accessiblestates states ); [propget] hresult uniqueid([out] long uniqueid ); [propget] hresult windowhandle([out] hwnd windowhandle ); methods attributes() returns the attributes specific to this iaccessible2 object, such as a cell's formula.
IAccessibleApplication
rom other versions of this application, or from other versions of this application running on different versions of an accessibility bridge or accessibility toolkit.
... iaccessibleapplication interface via queryservice from any object so that ats can easily determine specific information about the application such as its name or version.
IAccessibleComponent
is equal to that of the screen coordinate system.
...t corner of the current screen.
IAccessibleHypertext
t.
...sed to reference other documents.
IAccessibleImage
ons.
...icant information.
IAccessibleRelation
other-licenses/ia2/accessiblerelation.idlnot scriptable this interface gives access to an object's set of relations.
...et] hresult localizedrelationtype([out] bstr localizedrelationtype ); [propget] hresult ntargets([out] long ntargets ); [propget] hresult relationtype([out] bstr relationtype ); [propget] hresult target([in] long targetindex, [out] iunknown target ); [propget] hresult targets([in] long maxtargets, [out, size_is(maxtargets), length_is( ntargets)] iunknown targets, [out] long ntargets ); methods localizedrelationtype() returns a localized version of the relation type.
IAccessibleTable
sent then iaccessible2.indexinparent() can be used as in the typical case where cells are direct children of the table.
...s, [out, size_is(,maxcolumns), length_is(, ncolumns)] long columns, [out] long ncolumns ); [propget] hresult selectedrows([in] long maxrows, [out, size_is(,maxrows), length_is(, nrows)] long rows, [out] long nrows ); hresult selectrow([in] long row ); [propget] hresult summary([out] iunknown accessible ); hresult unselectcolumn([in] long column ); hresult unselectrow([in] long row ); methods accessibleat() returns the accessible object at the specified row and column in the table.
IAccessibleTable2
2/accessibletable2.idlnot scriptable this interface gives access to a two-dimensional table.
...lectedcells ); [propget] hresult selectedcolumns([out, size_is(, ncolumns)] long selectedcolumns, [out] long ncolumns ); [propget] hresult selectedrows([out, size_is(, nrows)] long selectedrows, [out] long nrows ); hresult selectrow([in] long row ); [propget] hresult summary([out] iunknown accessible ); hresult unselectcolumn([in] long column ); hresult unselectrow([in] long row ); methods caption() returns the caption for the table.
IAccessibleTableCell
other-licenses/ia2/accessibletablecell.idlnot scriptable this interface gives access to the cells of a two-dimensional table.
...[out] long row, [out] long column, [out] long rowextents, [out] long columnextents, [out] boolean isselected ); [propget] hresult rowextent([out] long nrowsspanned ); [propget] hresult rowheadercells([out, size_is(, nrowheadercells,)] iunknown cellaccessibles, [out] long nrowheadercells ); [propget] hresult rowindex([out] long rowindex ); [propget] hresult table([out] iunknown table ); methods columnextent() returns the number of columns occupied by this cell accessible.
IJSDebugger
note: you should almost never directly use this service; instead, you should use the javascript code module that does this for you.
... should use the javascript code module that does this for you.
amIInstallCallback
toolkit/mozapps/extensions/amiinstalltrigger.idlscriptable a callback function that web pages can implement to be notified when triggered installs complete.
... toolkit/mozapps/extensions/amiinstalltrigger.idlscriptable a callback function that web pages can implement to be notified when triggered installs complete.
amIWebInstallInfo
nsions/amiwebinstalllistener.idlscriptable this interface is used by the default implementation of amiwebinstalllistener to communicate with the running application and allow it to warn the user about blocked installs and start the installs running.
...oninstall objects.
amIWebInstallListener
ebinstalllistener is used to notify about new installs triggered by websites.
...n nsidomwindow awindow, in nsiuri auri, [array, size_is(acount)] in nsivariant ainstalls, [optional] in pruint32 acount); boolean onwebinstallrequested(in nsidomwindow awindow, in nsiuri auri, [array, size_is(acount)] in nsivariant ainstalls, [optional] in pruint32 acount); note: prior to gecko 8.0, all references to nsidomwindow used in this interface were nsidomwindowinternal.
amIWebInstallPrompt
toolkit/mozapps/extensions/amiwebinstalllistener.idlscriptable called when installation by websites is currently disabled.
... introduced gecko 2.0 inherits from: nsisupports last changed in gecko 8.0 (firefox 8.0 / thunderbird 8.0 / seamonkey 2.5) method overview void confirm(in nsidomwindow awindow, in nsiuri auri, [array, size_is(acount)] in nsivariant ainstalls, [optional] in pruint32 acount); prior to gecko 8.0, all references to nsidomwindow used in this interface were nsidomwindow.
amIWebInstaller
toolkit/mozapps/extensions/amiwebinstaller.idlscriptable this interface is used to allow web pages to start installing add-ons.
...llcount)] 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.
imgICache
cache = tools.getimgcachefordocument(relevantdocument); // alternatively, tools.getimgcacheforchannel(relevantchannel) if there is no relevant document or channel, null may be passed, but this will cause any image cache requests to use the permanent storage cache (ie.
...his will cause any image cache requests to use the permanent storage cache (ie.
imgIDecoderObserver
s should not be relied upon.
...; void onstartrequest(in imgirequest arequest); void onstopcontainer(in imgirequest arequest, in imgicontainer acontainer); void onstopdecode(in imgirequest arequest, in nsresult status, in wstring statusarg); void onstopframe(in imgirequest arequest, in unsigned long aframe); void onstoprequest(in imgirequest arequest, in boolean aislastpart); methods native code only!ondataavailable decode notification.
imgIEncoder
modules/libpr0n/public/imgiencoder.idlscriptable please add a summary to this article.
...g the next frame.
inIDOMUtils
layout/inspector/inidomutils.idlscriptable dom utility functions.
... constants constant value description exclude_shorthands (1<<0) include_aliases (1<<1) content state flags the content state flags are used in a bitmask.
mozIAsyncFavicons
sly.
...nloadtype, [optional] in nsifavicondatacallback acallback); void replacefavicondata(in nsiuri afaviconuri, [const,array,size_is(adatalen)] in octet adata, in unsigned long adatalen, in autf8string amimetype, [optional] in prtime aexpiration); void replacefavicondatafromdataurl(in nsiuri afaviconuri, in astring adataurl, [optional] in prtime aexpiration); methods getfaviconurlforpage() retrieve the url of the favicon for the given page.
mozIColorAnalyzer
toolkit/components/places/mozicoloranalyzer.idlscriptable provides methods to analyze colors in an image 1.0 66 introduced gecko 17.0 inherits from: nsisupports last changed in gecko 17.0 (firefox 17.0 / thunderbird 17.0 / seamonkey 2.14) method overview void findrepresentativecolor(in nsiuri imageuri, in mozirepresentativecolorcallback callback); methods findrepresentativecolor() given an image uri, find the most representative color for that image based on the frequency of each color.
...d on the frequency of each color.
mozISpellCheckingEngine
erface represents a spelling checker.
... the name of the engine.
mozIStorageBindingParams
d values to parameters prior to calling mozistoragestatement.executeasync().
...name, in long avalue); native code only!
mozIStorageBindingParamsArray
o store sets of bound parameters that will be used by the mozistoragestatement.executeasync().
...you can only create these objects by calling the mozistoragestatement.newbindingparamsarray().
mozIStorageCompletionCallback
this interface should be implemented to handle callbacks from asynchronous storage api routines.
... this interface should be implemented to handle callbacks from asynchronous storage api routines.
mozIStorageResultSet
the mozistorageresultset interface represents a set of results from a storage statement.
... the mozistorageresultset interface represents a set of results from a storage statement.
mozIStorageRow
the mozistoragerow interface represents a row in the result set from a storage database query.
... from a storage database query.
mozIStorageVacuumParticipant
implement this interface to provide information to allow a database to be periodically vacuumed by the storage service.
...ote: if the database is using the wal journal node and the current page size is not the expected one, the journal node will be changed to truncate because wal doesn't allow page size changes.
mozIThirdPartyUtil
netwerk/base/public/mozithirdpartyutil.idlscriptable utility functions for determining whether a given uri, channel, or window hierarchy is third party with respect to a known uri.
... 1.0 66 introduced gecko 2.0 inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview boolean isthirdpartychannel(in nsichannel achannel, [optional] in nsiuri auri); boolean isthirdpartyuri(in nsiuri afirsturi, in nsiuri aseconduri); boolean isthirdpartywindow(in nsidomwindow awindow, [optional] in nsiuri auri); methods isthirdpartychannel() determine whether the given channel and its content window hierarchy is third party.
mozIVisitStatusCallback
toolkit/components/places/moziasynchistory.idlscriptable this interface provides callback handling functionality for moziasynchistory.isurivisited 1.0 66 introduced gecko 11.0 inherits from: nsisupports last changed in gecko 11.0 (firefox 11.0 / thunderbird 11.0 / seamonkey 2.8) method overview void isvisited(in nsiuri auri, in boolean avisitedstatus); methods isvisited() called when the moziasynchistory.isurivisited() method's check to determine whether a given uri has been visited has completed.
....0 66 introduced gecko 11.0 inherits from: nsisupports last changed in gecko 11.0 (firefox 11.0 / thunderbird 11.0 / seamonkey 2.8) method overview void isvisited(in nsiuri auri, in boolean avisitedstatus); methods isvisited() called when the moziasynchistory.isurivisited() method's check to determine whether a given uri has been visited has completed.
nsIAbCard
essbook.
...s recipient .
nsIAccessNode
om node can have one nsiaccessnode.
...ioussiblingnode nsiaccessnode the previous nsiaccessnode sibling.
nsIAccessibilityService
accessible/public/nsiaccessibilityservice.idlscriptable please add a summary to this article.
...ible getaccessible(in nsidomnode anode, in nsipresshell apresshell, in nsiweakreference aweakshell, inout nsiframe framehint, out boolean aishidden); nsiaccessible addnativerootaccessible(in voidptr aatkaccessible); void removenativerootaccessible(in nsiaccessible arootaccessible); void invalidatesubtreefor(in nsipresshell apresshell, in nsicontent achangedcontent, in pruint32 aevent); methods removenativerootaccessible() void removenativerootaccessible( in nsiaccessible arootaccessible ); invalidatesubtreefor() invalidate the accessibility cache associated with apresshell, for accessibles that were generated for acontainercontent and it's subtree.
ExtendSelection
« nsiaccessible page summary this method extends the current selection from its current accessible anchor node to this accessible.
... « nsiaccessible page summary this method extends the current selection from its current accessible anchor node to this accessible.
nsIAccessibleHyperText
accessible/public/nsiaccessiblehypertext.idlscriptable this interface is the main interface to expose hyperlinks in a document, typically a text document, that are used to reference other documents.
... 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.
nsIAccessibleSelectable
accessible/public/nsiaccessibleselectable.idlscriptable an interface for the accessibility module and in-process accessibility clients for dealing with getting and changing the selection of accessible nodes.
...dselected(in long index); nsiaccessible refselection(in long index); void removechildfromselection(in long index); boolean selectallselection(); attributes attribute type description selectioncount long the number of accessible children currently selected.
nsIAccessibleStateChangeEvent
accessible/public/nsiaccessibleevent.idlscriptable please add a summary to this article.
...nt.idlscriptable please add a summary to this article.
nsIAccessibleTable
accessible/public/nsiaccessibletable.idlscriptable please add a summary to this article.
...ong the total number of selected columns.
nsIAccessibleTableCell
accessible/public/nsiaccessibletable.idlscriptable please add a summary to this article.
... of this cell.
nsIAccessibleTextChangeEvent
accessible/public/nsiaccessibleevent.idlscriptable please add a summary to this article.
... 1.0 66 introduced gecko 1.9 inherits from: nsisupports last changed in gecko 1.9 (firefox 3) method overview boolean isinserted(); attributes attribute type description length unsigned long returns length of changed text.
nsIAccessibleTreeCache
solete.
...e.
nsIAccessibleValue
accessible/public/nsiaccessiblevalue.idlscriptable please add a summary to this article.
...accessiblevalue.idlscriptable please add a summary to this article.
nsIApplicationCacheNamespace
cache namespace.
...load fails, the cache entry specified by the data attribute should be loaded intstead.
nsIApplicationUpdateService
toolkit/mozapps/update/nsiupdateservice.idlscriptable this interface describes a global application service that handles performing background update checks.
...ication and the platform the application is running on.
nsIAsyncStreamCopier
netwerk/base/public/nsiasyncstreamcopier.idlscriptable this interface is used to copy the contents of one stream to another.
...st changed in gecko 1.9.2 (firefox 3.6 / thunderbird 3.1 / fennec 1.0) method overview void asynccopy(in nsirequestobserver aobserver, in nsisupports aobservercontext); void init(in nsiinputstream asource, in nsioutputstream asink, in nsieventtarget atarget, in boolean asourcebuffered, in boolean asinkbuffered, in unsigned long achunksize, in boolean aclosesource, in boolean aclosesink); methods asynccopy() starts the copy operation.
nsIAuthPromptAdapterFactory
netwerk/base/public/nsiauthpromptadapterfactory.idlscriptable an interface for wrapping nsiauthprompt interfaces to make them usable via an nsiauthprompt2 interface.
... netwerk/base/public/nsiauthpromptadapterfactory.idlscriptable an interface for wrapping nsiauthprompt interfaces to make them usable via an nsiauthprompt2 interface.
nsIAutoCompleteInput
toolkit/components/autocomplete/public/nsiautocompleteinput.idlscriptable this interface monitors the input in a text field and displays an autocomplete panel at the appropriate time.
...utocomplete result.
nsIAutoCompleteObserver
toolkit/components/autocomplete/public/nsiautocompletesearch.idlscriptable please add a summary to this article.
...complete/public/nsiautocompletesearch.idlscriptable please add a summary to this article.
nsIAutoCompleteSearch
/components/autocomplete/nsiautocompletesearch.idlscriptable this interface is implemented by search providers to start and stop autocomplete.
...in gecko 1.7 users call startsearch() and pass in an nsiautocompleteobserver when the search starts.
nsIBadCertListener2
ublic/nsibadcertlistener2.idlscriptable this interface is used to is report a broken ssl status.
...handshake status of a connection that will be canceled because of improper certificate status.
nsIBinaryOutputStream
ed, fixed-endianness format.
...; void writeboolean(in prbool aboolean); void writebytearray([array, size_is(alength)] in pruint8 abytes, in pruint32 alength); void writebytes(alength)] in string astring, in pruint32 alength); void writedouble(in double adouble); void writefloat(in float afloat); void writestringz(in string astring); void writeutf8z(in wstring astring); void writewstringz(in wstring astring); methods setoutputstream() sets the stream to which output is directed.
nsIBlocklistPrompt
xpcom/system/nsiblocklistservice.idlscriptable this interface is used, if available, by the default implementation of nsiblocklistservice to display a confirmation user interface to the user before blocking extensions or plugins.
...lementation of nsiblocklistservice to display a confirmation user interface to the user before blocking extensions or plugins.
nsIBlocklistService
xpcom/system/nsiblocklistservice.idlscriptable please add a summary to this article.
...[optional] in astring appversion, [optional] in astring toolkitversion); boolean isaddonblocklisted(in jsval addon, [optional] in astring appversion, [optional] in astring toolkitversion); constants constant value description state_not_blocked 0 state_softblocked 1 state_blocked 2 state_outdated 3 methods getaddonblockliststate() determine the blocklist state of an add-on.
nsIBoxObject
layout/xul/base/public/nsiboxobject.idlscriptable please add a summary to this article.
....
nsICRLManager
security/manager/ssl/public/nsicrlmanager.idlscriptable please add a summary to this article.
...); nsiarray getcrls(); void importcrl([array, size_is(length)] in octet data, in unsigned long length, in nsiuri uri, in unsigned long type, in boolean dosilentdownload, in wstring crlkey); void reschedulecrlautoupdate(); boolean updatecrlfromurl(in wstring url, in wstring key); constants constant value description type_autoupdate_time_based 1 type_autoupdate_freq_based 2 methods computenextautoupdatetime() wstring computenextautoupdatetime( in nsicrlinfo info, in unsigned long autoupdatetype, in double noofdays ); parameters info autoupdatetype noofdays return value deletecrl() delete the crl.
nsICache
s the device(s) to which it belongs.
... entries for a cache session are stored as streams of data or as objects.
nsICharsetResolver
intl/chardet/public/nsicharsetresolver.idlscriptable please add a summary to this article.
... intl/chardet/public/nsicharsetresolver.idlscriptable please add a summary to this article.
nsIChromeFrameMessageManager
content/base/public/nsimessagemanager.idlscriptable handles loading of content in a remote chrome frame.
...criptable handles loading of content in a remote chrome frame.
nsIChromeRegistry
s to get information about chrome documents that have been registered.
...verview void canonify(in nsiuri achromeurl); obsolete since gecko 1.8 void checkfornewchrome(); nsiuri convertchromeurl(in nsiuri achromeurl); boolean wrappersenabled(in nsiuri auri); violates the xpcom interface guidelines 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.
nsIClipboardCommands
webshell/public/nsiclipboardcommands.idlscriptable an interface for embedding clients who wish to interact with the system-wide os clipboard.
...ecko 1.7 method overview boolean cancopyimagecontents(); boolean cancopyimagelocation(); boolean cancopylinklocation(); boolean cancopyselection(); boolean cancutselection(); boolean canpaste(); void copyimagecontents(); void copyimagelocation(); void copylinklocation(); void copyselection(); void cutselection(); void paste(); void selectall(); void selectnone(); methods cancopyimagecontents() returns whether we can copy an image's contents.
nsIClipboardDragDropHooks
hook can only be called once per user action/api.
...) the default action will occur.
nsICollection
xpcom/ds/nsicollection.idlscriptable this interface represents a list of nsisupports items.
...t(in nsisupports item); void clear(); pruint32 count(); nsienumerator enumerate(); nsisupports getelementat(in pruint32 index); void queryelementat(in pruint32 index, in nsiidref uuid, [iid_is(uuid),retval] out nsqiresult result); void removeelement(in nsisupports item); void setelementat(in pruint32 index, in nsisupports item); methods appendelement() appends a new item to the collection.
nsICommandController
interface that supports passing parameters to commands.
...var commandcontroller = components.classes["@mozilla.org/embedcomp/base-command-controller;1"] .createinstance(components.interfaces.nsicommandcontroller); method overview void docommandwithparams(in string command, in nsicommandparams acommandparams); void getcommandstatewithparams( in string command, in nsicommandparams acommandparams); methods docommandwithparams() executes the specified command with a set of parameters contained in an nsicommandparams object.
nsICommandLineHandler
@mozilla.org/venkman/clh;1 command-line-handler c-extensions @mozilla.org/extension-manager/clh;1 command-line-handler m-edit @mozilla.org/composer/clh;1 command-line-handler m-irc @mozilla.org/chatzilla/clh;1 command-line-handler y-final @mozilla.org/browser/clh-final;1 method overview void handle(in nsicommandline acommandline); attributes attribute type description helpinfo autf8string when the application is launched with the -help argument, this attribute is retrieved and displayed to the user (on stdout).
...tion helpinfo autf8string when the application is launched with the -help argument, this attribute is retrieved and displayed to the user (on stdout).
nsICommandLineRunner
the nsicommandlinerunner is an extension of nsicommandline used to initialize command lines and run them by processing the comand line handlers.
... / thunderbird 1.5 / seamonkey 1.0) inherits from: nsicommandline method overview void init(in long argc, in nscharptrarray argv, in nsifile workingdir, in unsigned long state); void run(); void setwindowcontext(in nsidomwindow awindow); attributes attribute type description helptext autf8string process and combine the help text provided by each command-line handler.
nsICompositionStringSynthesizer
mmit string domwindowutils.sendcompositionevent("compositionend", "foo-bar-buzz", ""); starting gecko 36, you can do it simpler: domwindowutils.sendcompositionevent("compositioncommitasis", "", ""); if you need to commit composition with different commit string gecko 36 or later, you can use "compositioncommit": domwindowutils.sendcompositionevent("compositioncommit", "foo-bar-buzz", ""); method overview void appendclause(in unsigned long alength, in unsigned long aattribute); boolean dispatchevent(); void setcaret(in unsigned long aoffset, in unsigned long alength); void setstring(in astring astring); constants constant value description attr_raw_input 0x02 a clause attribute.
... 0x03 a clause attribute but this is typically not used.
nsIConsoleListener
xpcom/base/nsiconsolelistener.idlscriptable this interface allows you to listen for messages sent to the console.
... xpcom/base/nsiconsolelistener.idlscriptable this interface allows you to listen for messages sent to the console.
nsIContentPrefObserver
dom/interfaces/base/nsicontentprefservice.idlscriptable this interface allows code to easily watch for changes to the values of content preferences.
... this interface allows code to easily watch for changes to the values of content preferences.
nsIContentSniffer
netwerk/base/public/nsicontentsniffer.idlscriptable content sniffer interface.
...termine a mime type from a chunk of bytes.
nsIContentView
rk.
... the new content view will have scroll values that are reset to the default.
nsIContentViewManager
to obtain a reference to the view manager for a document, you can queryinterface() the nsiframeloader object to nsicontentviewmanager.
...rview void getcontentviewsin(in float axpx, in float aypx, in float atopsize, in float arightsize, in float abottomsize, in float aleftsize, [optional] out unsigned long alength, [retval, array, size_is(alength)] out nsicontentview aresult); attributes attribute type description rootcontentview nsicontentview the root content view.
nsIControllers
any default controllers.
...mand(in string command); unsigned long getcontrollerid(in nsicontroller controller); void insertcontrollerat(in unsigned long index, in nsicontroller controller); void removecontroller(in nsicontroller controller); nsicontroller removecontrollerat(in unsigned long index); attributes attribute type description commanddispatcher nsidomxulcommanddispatcher obsolete since gecko 1.9 methods appendcontroller() adds a controller to the end of the list.
nsIConverterInputStream
d gecko 1.8 inherits from: nsiunicharinputstream last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) implemented by: @mozilla.org/intl/converter-input-stream;1.
...ts.classes["@mozilla.org/intl/converter-input-stream;1"] .createinstance(components.interfaces.nsiconverterinputstream); method overview void init(in nsiinputstream astream, in string acharset, in long abuffersize, in prunichar areplacementchar); constants constant value description default_replacement_character 0xfffd default replacement character value.
nsICookieConsent
netwerk/cookie/public/nsicookieconsent.idlscriptable please add a summary to this article.
... netwerk/cookie/public/nsicookieconsent.idlscriptable please add a summary to this article.
nsICookiePromptService
the nsicookiepromptservice interface is to open a dialog to ask to permission to accept the cookie.
...kiedialog(in nsidomwindow parent, in nsicookie cookie, in acstring hostname, in long cookiesfromhost, in boolean changingcookie, out boolean rememberdecision); constants constant value description deny_cookie 0 holds the value for a denying the cookie.
nsICookieStorage
3 / seamonkey 2.1)this feature is obsolete.
...pository for cookies.
nsICurrentCharsetListener
tlistener.idlscriptable please add a summary to this article.
...listener;1.
nsICycleCollectorListener
be call to begin(); then for every node in the graph a call to noteobject() and calls to noteedge() for every edge starting at that node; then a call to begindescriptions(); then for every black node in the cycle collector graph a call to either describerefcountedobject() or to describegcedobject(); and then a call to end().
...cribegcedobject(in unsigned long long aaddress, in boolean amarked); void describerefcountedobject(in unsigned long long aaddress, in unsigned long aknownedges, in unsigned long atotaledges); void end(); void noteedge(in unsigned long long afromaddress, in unsigned long long atoaddress, in string aedgename); void noteobject(in unsigned long long aaddress, in string aobjectdescription); methods begin() void begin(); parameters none.
nsIDBFolderInfo
m: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) implemented by: ?????????????????????????????????????.
... nummessages long numunreadmessages long sortorder nsmsgviewsortordervalue sorttype nsmsgviewsorttypevalue version unsigned long viewflags nsmsgviewflagstypevalue viewtype nsmsgviewtypevalue methods andflags() long andflags( in long flags ); parameters flags missing description return value missing description exceptions thrown missing exception missing description changeexpungedbytes() void changeexpungedbytes( in long delta ); parameters delta missing description exceptions thrown missing exception missing description c...
nsIDNSListener
netwerk/dns/nsidnslistener.idlscriptable please add a summary to this article.
... netwerk/dns/nsidnslistener.idlscriptable please add a summary to this article.
nsIDNSRequest
netwerk/dns/nsidnsrequest.idlscriptable please add a summary to this article.
... netwerk/dns/nsidnsrequest.idlscriptable please add a summary to this article.
nsIDOMElement
dom/interfaces/core/nsidomelement.idlscriptable this interface represents an element in an html or xml document.
...mespaceuri, in domstring localname) void setattribute(in domstring name, in domstring value) nsidomattr setattributenode(in nsidomattr newattr) nsidomattr setattributenodens(in nsidomattr newattr) void setattributens(in domstring namespaceuri, in domstring qualifiedname, in domstring value) attributes attribute type description tagname domstring the element tag name.
nsIDOMEventGroup
dom/interfaces/events/nsidomeventgroup.idlscriptable this interface is the interface implemented by all event targets in the document object model.
... dom/interfaces/events/nsidomeventgroup.idlscriptable this interface is the interface implemented by all event targets in the document object model.
nsIDOMFontFaceList
layout/inspector/public/nsidomfontfacelist.idlscriptable a list of nsidomfontface objects, each representing a single font face.
...representing a single font face.
nsIDOMGeoPositionCallback
the nsidomgeopositioncallback interface is called when updated position information is available.
...formation is available.
nsIDOMGeoPositionErrorCallback
the nsidomgeopositionerrorcallback interface is used to represent an object that receives callback notifications when geolocation errors occur.
...rcallback interface is used to represent an object that receives callback notifications when geolocation errors occur.
nsIDOMGlobalPropertyInitializer
last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) an xpcom component implementing this interface can be exposed to web content as a property on the window.
... 2.1) an xpcom component implementing this interface can be exposed to web content as a property on the window.
nsIDOMHTMLAudioElement
the nsidomhtmlaudioelement interface is used to implement the html5 <audio> element.
...s/html/nsidomhtmlaudioelement.idlscriptable please add a summary to this article.
nsIDOMMouseScrollEvent
dom/interfaces/events/nsidommousescrollevent.idlscriptable this interface represents a mouse scroll wheel event.
...ibute type description axis long indicates which mouse wheel axis changed; this will be either horizontal_axis or vertical_axis.
nsIDOMMozTouchEvent
this differs from tracking mouse events in that touch events can be generated independently for each finger touching the screen.
...arg, in unsigned long streamidarg); attributes attribute type description streamid unsigned long a unique identifier for each finger, so that each finger's movement can be tracked separately.
nsIDOMNode
dom/interfaces/core/nsidomnode.idlscriptable this interface is the primary datatype for the entire document object model.
...node read only.
nsIDOMOrientationEvent
ntationevent interface describes the event that can be delivered to dom windows, providing information from the device's accelerometer, allowing code to determine the orientation of the device.
...uble y, in double z); attributes attribute type description x double the amount of tilt along the x axis.
nsIDOMParser
omparser().
...he parser via createinstance() the created documents will use a moz-nullprincipal:{<guid>} uri, which will show in the error console in parsing errors, in particular.
nsIDOMSerializer
m nodes.
...ed by: @mozilla.org/xmlextras/xmlserializer;1.
nsIDOMSimpleGestureEvent
second finger down, second finger up, first finger up) on the input device.
...iption direction_up 1 upward swipe.
nsIDOMStorage
es an arbitrary set of key-value pairs, which may be retrieved, modified and removed as needed.
...th a key, but the order may change when a key is added or removed.
nsIDOMStorage2
ed in local storage may only be accessed by the same origin that created the items in the first place.
....9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) inherits from: nsisupports method overview void clear(); domstring getitem(in domstring key); domstring key(in unsigned long index); void removeitem(in domstring key); void setitem(in domstring key, in domstring data); attributes attribute type description length unsigned long the number of keys stored in local storage.
nsIDOMStorageEventObsolete
1.5 / thunderbird 1.5 / seamonkey 1.0) when a dom storage event is received, the recipient can check its domain attribute to determine which domain's data store has changed.
...boolean canbubblearg, in boolean cancelablearg, in domstring keyarg, in domstring oldvaluearg, in domstring newvaluearg, in domstring urlarg, in nsidomstorage storageareaarg); attributes attribute type description domain domstring the domain of the storage area which changed, or "#session" if the event represents a change to session storage.
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.
nsIDOMWindow
ed by any standard bodies, it originates from the de-facto dom level 0 standard.
... does not cross chrome-content boundaries.
nsIDOMXPathExpression
dom/interfaces/xpath/nsidomxpathexpression.idlscriptable represents a compiled xpath query returned from nsidomxpathevaluator.createexpression or document.createexpression inherits from: nsisupports last changed in gecko 1.7 method overview nsisupports evaluate(in nsidomnode contextnode, in unsigned short type, in nsisupports result) methods evaluate() evaluate the xpath expression.
...evaluate(in nsidomnode contextnode, in unsigned short type, in nsisupports result) methods evaluate() evaluate the xpath expression.
nsIDOMXPathResult
dom/interfaces/xpath/nsidomxpathresult.idlscriptable this interface describes an xpath result returned by nsidomxpathevaluator or document.evaluate inherits from: nsisupports last changed in gecko 1.7 method overview nsidomnode iteratenext(); nsidomnode snapshotitem(in unsigned long index); attributes attribute type description booleanvalue boolean if resulttype is boolean_type, the boolean value.
... set are in the same order that they appear in the document.
nsIDOMXULSelectControlElement
dom/interfaces/xul/nsidomxulselectcntrlel.idlscriptable please add a summary to this article.
...controlitemelement getitematindex(in long index); nsidomxulselectcontrolitemelement insertitemat(in long index, in domstring label, in domstring value); nsidomxulselectcontrolitemelement removeitemat(in long index); attributes attribute type description itemcount unsigned long read only.
nsIDataSignatureVerifier
security/manager/ssl/public/nsidatasignatureverifier.idlscriptable an interface for verifying that a given string of data was signed by the private key matching the given public key.
...anager/ssl/public/nsidatasignatureverifier.idlscriptable an interface for verifying that a given string of data was signed by the private key matching the given public key.
nsIDebug
script, java, python, perl, and so forth.
... or alternatively the ns_abort, ns_assertion, ns_break, and ns_warning macros, which also call ns_debugbreak() if used in a debugging build.
nsIDeviceMotionListener
xpcom/system/nsidevicemotion.idlscriptable this interface can be implemented by clients that want to be notified orientation or acceleration changes on supported devices.
.../nsidevicemotion.idlscriptable this interface can be implemented by clients that want to be notified orientation or acceleration changes on supported devices.
nsIDialogCreator
embedding/base/nsidialogcreator.idlscriptable please add a summary to this article.
...cko 2.0 inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 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 ...
nsIDictionary
e of objects, maintained as key/value pairs.
...3.5; use dict.jsm instead.
nsIDirIndexListener
netwerk/streamconv/public/nsidirindexlistener.idlscriptable this interface is used to receive contents of directory index listings from a protocol.
...ol.
nsIDirectoryEnumerator
is interface provides a means for enumerating the contents of a directory.
... inherits from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) method overview void close(); attributes attribute type description nextfile nsifile the next file in the sequence.
nsIDirectoryServiceProvider2
xpcom/io/nsidirectoryservice.idlscriptable an extension of nsidirectoryserviceprovider which allows multiple files to be returned for the given key.
... xpcom/io/nsidirectoryservice.idlscriptable an extension of nsidirectoryserviceprovider which allows multiple files to be returned for the given key.
nsIDispatchSupport
js/src/xpconnect/idl/nsidispatchsupport.idlnot scriptable please add a summary to this article.
...jsval val); unsigned long gethostingflags(in string acontext); boolean isclassmarkedsafeforscripting(in nscidref cid, out boolean classexists); boolean isclasssafetohost(in jscontextptr cx, in nscidref cid, in boolean capscheck, out boolean classexists); boolean isobjectsafeforscripting(in voidptr theobject, in nsiidref id); void jsval2comvariant(in jsval var, out comvariant comvar); methods comvariant2jsval() converts a com variant to a jsval.
nsIDocumentLoader
responsible for sending nsiwebprogresslistener notifications.
...t); native code only!
nsIDownloadHistory
docshell/base/nsidownloadhistory.idlscriptable this interface can be used to add a download to history.
...nload to history.
nsIDownloadManagerUI
toolkit/components/downloads/public/nsidownloadmanagerui.idlscriptable this interface is used to implement the user interface for the download manager.
...ts constant value description reason_user_interacted 0 when opening the download manager user interface, this value indicates that it's being done at the user's request.
nsIDownloadObserver
netwerk/base/public/nsidownloader.idlscriptable please add a summary to this article.
... netwerk/base/public/nsidownloader.idlscriptable please add a summary to this article.
nsIDownloader
able a special implementation of a nsistreamlistener that will make the contents of the stream available as a file.
...le as a file.
nsIDragSession
widget/public/nsidragsession.idlscriptable provides support for interacting with an ongoing drag session during a drag and drop operation.
...e same document.
nsIDroppedLinkHandler
dom/base/nsidroppedlinkhandler.idlscriptable please add a summary to this article.
... boolean candroplink(in nsidomdragevent aevent, in prbool aallowsamedocument); astring droplink(in nsidomdragevent aevent, out astring aname, [optional] in boolean adisallowinherit); void droplinks(in nsidomdragevent aevent, [optional] in boolean adisallowinherit, [optional] out unsigned long acount, [retval, array, size_is(acount)] out nsidroppedlinkitem alinks); methods candroplink() determines if a link being dragged can be dropped.
nsIEditorDocShell
docshell/base/nsieditordocshell.idlscriptable provides a way to get an editor from a specific frame in a docshell hierarchy.
...ion.makewindoweditable() and nsieditingsession.geteditorforwindow() from out side.
nsIEditorIMESupport
editor/idl/nsieditorimesupport.idlscriptable please add a summary to this article.
...id querycomposition(in nstexteventreplyptr areply); native code only!
nsIEditorLogging
editor/idl/nsieditorlogging.idlscriptable please add a summary to this article.
... editor/idl/nsieditorlogging.idlscriptable please add a summary to this article.
nsIEditorMailSupport
editor/idl/nsieditormailsupport.idlscriptable provides simple editing actions for the thunderbird mail editor.
...ascitedquotation(in astring aquotedtext, in astring acitation, in boolean ainserthtml); nsidomnode insertasquotation(in astring aquotedtext); void inserttextwithquotations(in domstring astringtoinsert); void pasteascitedquotation(in astring acitation, in long aselectiontype); void pasteasquotation(in long aselectiontype); void rewrap(in boolean arespectnewlines); void stripcites(); methods getembeddedobjects() get a list of img and object tags in the current document.
nsIEditorObserver
editor/idl/nsieditorobserver.idlscriptable used by applications wishing to be notified when the editor has completed a user action.
... editor/idl/nsieditorobserver.idlscriptable used by applications wishing to be notified when the editor has completed a user action.
nsIErrorService
xpcom/base/nsierrorservice.idlscriptable this is a service that allows nsresult codes to be mapped to string bundles that can be used to look up error messages.
... string geterrorstringbundlekey(in nsresult error); void registererrorstringbundle(in short errormodule, in string stringbundleurl); void registererrorstringbundlekey(in nsresult error, in string stringbundlekey); void unregistererrorstringbundle(in short errormodule); void unregistererrorstringbundlekey(in nsresult error); methods geterrorstringbundle() retrieves a string bundle url for an error module.
nsIException
xpcom/base/nsiexception.idlscriptable please add a summary to this article.
...tes unknown.
nsIExternalHelperAppService
lications for a given mime content type.
...rnal-helper-app-service;1"] .getservice(components.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.
nsIExternalURLHandlerService
uriloader/exthandler/nsiexternalurlhandlerservice.idlscriptable the external url handler service is used for finding platform-specific applications for handling particular urls.
...rnalurlhandlerservice.idlscriptable the external url handler service is used for finding platform-specific applications for handling particular urls.
nsIFTPEventSink
the nsiftpeventsink is an extension of nsisupports.
... the nsiftpeventsink is an extension of nsisupports.
nsIFeedContainer
toolkit/components/feeds/public/nsifeedcontainer.idlscriptable this interface provides standard fields used by both feeds (nsifeed) and feed entries (nsifeedentry) 1.0 66 introduced gecko 1.8 inherits from: nsifeedelementbase last changed in gecko 1.8.1 (firefox 2 / thunderbird 2 / seamonkey 1.1) method overview void normalize(); attributes attribute type description authors nsiarray an array of nsifeedperson objects describing the authors of the feed or entry.
...r entry's rights or license text.
nsIFeedResultListener
toolkit/components/feeds/public/nsifeedlistener.idlscriptable this interface should be implemented by programs to receive events from the feed parser as parsing progresses.
...it/components/feeds/public/nsifeedlistener.idlscriptable this interface should be implemented by programs to receive events from the feed parser as parsing progresses.
nsIFileInputStream
netwerk/base/nsifilestreams.idlscriptable an input stream that allows you to read from a file.
...ound thread, so that the opening and possible stating of the file happens there as well.
nsIFileOutputStream
netwerk/base/public/nsifilestreams.idlscriptable this interface is an output stream that lets you stream to a file.
...hread, so that the opening and possible stating of the file happens there as well.
nsIFileStreams
the nsifilestreams interface is an input stream that allows you to read from a file.
..., the file will be deleted again when it is closed again.
nsIFormHistory2
correspond to values the user has submitted.
...in long long abegintime, in long long aendtime); void removeentriesforname(in astring name); void removeentry(in astring name, in astring value); attributes attribute type description dbconnection mozistorageconnection returns the underlying db connection the form history module is using.
nsIFrameLoaderOwner
content/base/public/nsiframeloader.idlscriptable represents the owner of an nsiframeloader.
...anged in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview [noscript, notxpcom] alreadyaddrefed_nsframeloader getframeloader(); void swapframeloaders(in nsiframeloaderowner aotherowner); attributes attribute type description frameloader nsiframeloader the frame loader owned by this nsiframeloaderowner.
nsIGSettingsCollection
xpcom/system/nsigsettingsservice.idlscriptable please add a summary to this article.
...om: nsisupports last changed in gecko 6.0 (firefox 6.0 / thunderbird 6.0 / seamonkey 2.3) method overview boolean getboolean(in autf8string key); long getint(in autf8string key); autf8string getstring(in autf8string key); void setboolean(in autf8string key, in boolean value); void setint(in autf8string key, in long value); void setstring(in autf8string key, in autf8string value); methods getboolean() boolean getboolean( in autf8string key ); parameters key return value getint() long getint( in autf8string key ); parameters key return value getstring() autf8string getstring( in autf8string key ); parameters key return value setboolean() void setboolean( in autf8string key, in boolean value ); parameters key value setint() void setint( in autf8strin...
nsIGSettingsService
mmary to this article.
...upports last changed in gecko 6.0 (firefox 6.0 / thunderbird 6.0 / seamonkey 2.3) implemented by: @mozilla.org/gsettings-service;1 as a service: var gsettingsservice = components.classes["@mozilla.org/gsettings-service;1"] .createinstance(components.interfaces.nsigsettingsservice); method overview nsigsettingscollection getcollectionforschema(in autf8string schema); methods getcollectionforschema() nsigsettingscollection getcollectionforschema( in autf8string schema ); parameters schema return value ...
nsIGeolocationUpdate
/nsigeolocationprovider.idlscriptable provides a way for a geolocation provider to notify the system that a new location is available.
...cation provider to notify the system that a new location is available.
nsIGlobalHistory
docshell/base/nsiglobalhistory.idlscriptable the interface to global history.
... docshell/base/nsiglobalhistory.idlscriptable the interface to global history.
nsIGlobalHistory2
docshell/base/nsiglobalhistory2.idlscriptable this interface provides information about global history to gecko.
...nsition to toolkit interfaces.
nsIHTTPHeaderListener
turl call.
...osturl}() that implements both nsipluginstreamlistener and nsihttpheaderlistener.
nsIHapticFeedback
var hapticfeedback = components.classes["@mozilla.org/widget/hapticfeedback;1"] .getservice(components.interfaces.nsihapticfeedback); once you have the service, you can initiate haptic feedback (that is, cause the device to vibrate, if it's supported) by calling performsimpleaction(): hapticfeedback.performsimpleaction(components.interfaces.nsihapticfeedback.longpress); method overview void performsimpleaction(in long islongpress); constants press length constants constant value description shortpress 0 specify as the action type to perform a short vibration.
...msimpleaction(components.interfaces.nsihapticfeedback.longpress); method overview void performsimpleaction(in long islongpress); constants press length constants constant value description shortpress 0 specify as the action type to perform a short vibration.
nsIHttpActivityDistributor
cko 1.9.2 inherits from: nsihttpactivityobserver last changed in gecko 1.9.2 (firefox 3.6 / thunderbird 3.1 / fennec 1.0) implemented by: mozilla.org/network/http-activity-distributor;1 as a service: var httpactivitydistributor = components.classes["@mozilla.org/network/http-activity-distributor;1"] .getservice(components.interfaces.nsihttpactivitydistributor); method overview void addobserver(in nsihttpactivityobserver aobserver); void removeobserver(in nsihttpactivityobserver aobserver); methods addobserver() begins delivery of notifications of http transport activity.
...ityobserver aobserver); void removeobserver(in nsihttpactivityobserver aobserver); methods addobserver() begins delivery of notifications of http transport activity.
nsIHttpUpgradeListener
al.idlscriptable the callback interface for nsihttpchannelinternal.httpupgrade; this is called when an http protocol upgrade is finished.
... introduced gecko 6.0 inherits from: nsisupports last changed in gecko 6.0 (firefox 6.0 / thunderbird 6.0 / seamonkey 2.3) this is used, for example, by websockets in order to upgrade an http channel to use the websocket protocol.
nsIINIParserFactory
xpcom/ds/nsiiniparser.idlscriptable this interface is used to create nsiiniparser objects for use in parsing ini files.
...niparser.idlscriptable this interface is used to create nsiiniparser objects for use in parsing ini files.
nsIIdleService
pplications, the idle service will still consider the user to be active.
...r, in unsigned long time); attributes attribute type description idletime unsigned long the amount of time in milliseconds that has passed since the last user activity.
nsIInProcessContentFrameMessageManager
content/base/public/nsiframemessagemanager.idlnot scriptable ???
... content/base/public/nsiframemessagemanager.idlnot scriptable ???
nsIInstallLocation
nsifile operations that assume a directory and plain files will fail in firefox 4, unless you specify <em:unpack>.
...s here, you should offset from these values each time you create a new install location.
nsIInterfaceRequestor
ct implementing nsiinterfacerequestor.
...an interface a that you nsisupports.queryinterface() on to get to interface b, you must be able to nsisupports.queryinterface() on b to get back to a.
nsIJumpListBuilder
plistbuilder does not filter entries added that have been removed since the last commit.
...w's recent document lists.
nsIJumpListItem
nherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) note: to consumers: it's reasonable to expect we'll need support for other types of jump list items (an audio file, an email message, etc.).
...moved items processing.
nsILoadGroup
netwerk/base/public/nsiloadgroup.idlscriptable a load group maintains a collection of nsirequest objects.
...rver is notified when requests are added to and removed from this load group.
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.
... intl/locale/idl/nsilocale.idlscriptable represents one locale, which can be used for things like sorting text strings and formatting numbers, dates and times.
nsILoginManagerCrypto
toolkit/components/passwordmgr/public/nsiloginmanagercrypto.idlscriptable please add a summary to this article.
... astring decrypt(in astring ciphertext); astring encrypt(in astring plaintext); attributes attribute type description isloggedin boolean current login state of the token used for encryption.
nsILoginManagerIEMigrationHelper
toolkit/components/passwordmgr/public/nsiloginmanageriemigrationhelper.idlscriptable imports a login from the nsiieprofilemigrator into the login manager.
... toolkit/components/passwordmgr/public/nsiloginmanageriemigrationhelper.idlscriptable imports a login from the nsiieprofilemigrator into the login manager.
nsILoginManagerPrompter
summary to this article.
...rfaces.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.
nsIMacDockSupport
inherits from: nsimacdocksupport last changed in gecko 11.0 (firefox 11.0 / thunderbird 11.0 / seamonkey 2.8) implemented by: @mozilla.org/cookie-monster;1.
...reotherapplications); attributes attribute type description badgetext astring text to display in a badge on the application's dock icon.
nsIMarkupDocumentViewer
docshell/base/nsimarkupdocumentviewer.idlscriptable describes the properties of a content viewer for an html or xml markup document.
...tsize long the minimum font size to allow.
nsIMenuBoxObject
layout/xul/base/public/nsimenuboxobject.idlscriptable represents the box object for a xul menu.
...tivechild nsidomelement the currently active menu or menuitem child of the menu box.
nsIMicrosummarySet
criptable this interface provides access to sets of microsummaries returned from the nsimicrosummaryservice.
... last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) warning: microsummary support was removed in gecko 6.0 (firefox 6.0 / thunderbird 6.0 / seamonkey 2.3) method overview void addobserver(in nsimicrosummaryobserver observer); nsisimpleenumerator enumerate(); void removeobserver(in nsimicrosummaryobserver observer); methods addobserver() add a microsummary observer to this microsummary set.
nsIMimeConverter
the nsimimeconverter service allows you to convert headers into and out of mime format.
...oolean eatcontinuations); mimeencoderdata *b64encoderinit(in mimeconverteroutputcallback output_fn, in void *closure); mimeencoderdata *qpencoderinit(in mimeconverteroutputcallback output_fn, in void *closure); void encoderdestroy(in mimeencoderdata *data, in boolean abort_p); long encoderwrite(in mimeencoderdata *data, in string buffer, in long size); methods encodemimepartiistr() an variant of encodemimepartiistr_utf8() which treats the header as written in the given charset.
nsIMimeHeaders
brief description of interface ???
... .createinstance(components.interfaces.nsimimeheaders); method 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.
nsIMsgAccount
nsimsgaccount mailnews/base/public/nsimsgaccount.idlscriptable an account consists of an incoming server and one or more outgoing identities.
...ity); void clearallvalues(); void init(); void removeidentity(in nsimsgidentity identity); astring tostring(); attributes attribute type description defaultidentity nsimsgidentity identities nsisupportsarray read only.
nsIMsgCompFields
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 prunichar * recipients, in prbool emailaddressonly ); void convertbodytoplaintext ( ); attachment handling methods void addattachment ( in nsimsgattachment attachment ); void removeattachment ( in nsimsgattachment ...
...( out char * fallbackcharset ); 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.sen...
nsIMsgDBHdr
nt to do a persistent change to a message header, such as marking it as read, or replied to, or whatever, you must do it through its corresponding nsimsgfolder (msghdr.folder) or nsimsgdatabase (msghdr.folder.msgdatabase).
...countkey string indicates the account that was originally used to fetch the message.
nsIMsgDBViewCommandUpdater
simsgdbview.idl#349scriptable please add a summary to this article.
... windows in several different places: nsmsgdbviewcommandupdater (for the standalone message window) nsmsgdbviewcommandupdater (for the threadpane message window) nsmsgsearchcommandupdater (for search dialogs) method overview void updatecommandstatus(); void displaymessagechanged(in nsimsgfolder afolder, in astring asubject, in acstring akeywords); void updatenextmessageafterdelete(); methods updatecommandstatus() called when the number of selected items changes.
nsIMsgHeaderParser
e/ public/ nsimsgheaderparser.idl mailnews/mime/public/nsimsgheaderparser.idlscriptable ???
...ing reformattedaddress); wstring reformatunquotedaddresses(in wstring line); void removeduplicateaddresses(in string addrs, in string other_addrs, in prbool removealiasestome, out string newaddress); string unquotephraseoraddr(in string line, in boolean preserveintegrity); wstring unquotephraseoraddrwstring(in wstring line, in boolean preserveintegrity); methods extractheaderaddressmailboxes() given a string which contains a list of header addresses, returns a comma-separated list of just the 'mailbox' portions.
nsIMsgIdentity
the nsimsgidentity interface contains all the personal outgoing mail information for a given person.
...nreceipt boolean readonly: default request for return receipt option for this identity.
nsIMsgProtocolInfo
the nsimsgprotocolinfo interface describes the capabilities of an account type.
... username to log on.
nsIMsgSendLater
the nsimsgsendlater interface provides functions for managing the unsent folder of a messaging account.
...er); method overview void sendunsentmessages(in nsimsgidentity identity); void removelistener(in nsimsgsendlaterlistener listener); void addlistener(in nsimsgsendlaterlistener listener); nsimsgfolder getunsentmessagesfolder](in nsimsgidentity identity); attributes attribute type description msgwindow nsimsgwindow methods sendunsentmessages() sends all unsent messages for an identity.
nsIMsgThread
the nsimsgfolder interface is used to interact with threads in thunderbird.
... unsigned long key designating this thread.
nsIMsgWindow
from: nsisupports last changed in gecko 8 (firefox 8 / thunderbird 8 / seamonkey 2.5) implemented by: @mozilla.org/messenger/msgwindow;1.
... can be inherited (e.g for quoting).
nsINavHistoryBatchCallback
toolkit/components/places/public/nsinavhistoryservice.idlscriptable please add a summary to this article.
... toolkit/components/places/public/nsinavhistoryservice.idlscriptable please add a summary to this article.
nsINavHistoryQueryResultNode
queries and as a base class for bookmark folders.
...ount)] out nsinavhistoryquery queries); attributes attribute type description folderitemid long long for both simple folder nodes and simple-folder-query nodes, this is set to the concrete itemid of the folder.
nsINavHistoryResultTreeViewer
3) this object removes itself from the associated result when the tree is detached; this prevents circular references.
...reeview, and this will be the same as nsitreeview.rowcount.
nsIParserUtils
: nsisupports last changed in gecko 14.0 (firefox 14.0 / thunderbird 14.0 / seamonkey 2.11) warning: do not use this from within gecko--use nscontentutils, nstreesanitizer, and so on directly instead.
....
nsIPasswordManager
66 introduced gecko 1.0 deprecated gecko 1.9 inherits from: nsisupports last changed in gecko 1.0 see using nsipasswordmanager for examples.
...tributes attribute type description enumerator nsisimpleenumerator readonly: an enumeration of the stored usernames and passwords as nsipassword objects.
nsIPipe
xpcom/io/nsipipe.idlscriptable this interface represents an in-process buffer that can be read using nsiinputstream and written using nsioutputstream.
...ong segmentsize, in unsigned long segmentcount, in nsimemory segmentallocator); attributes attribute type description inputstream nsiasyncinputstream the pipe's input end, which also implements nsisearchableinputstream.
nsIPlacesView
ning of a selection depending on what kind of view produced the selection.
... upon drop, paste, or creation.
nsIPrefLocalizedString
scriptable this interface is simply a wrapper interface for nsisupportsstring so the preferences service can have a unique identifier to distinguish between requests for normal wide strings nsisupportsstring) and 'localized' wide strings, which get their default values from properites files.
... files.
nsIPrincipal
pal.idlscriptable provides the interface to a principal, which represents a security context.
... constants principal capability constants these values indicate the capabilities of a principal.
nsIPrinterEnumerator
widget/nsiprintoptions.idlscriptable please add a summary to this article.
...type description defaultprintername wstring the name of the system default printer.
nsIPrivateBrowsingService
tion to check the current value of the npnvprivatemodebool variable.
...he user interface.
nsIProfile
lemented by: @mozilla.org/profile/manager;1.
... the name of the profile currently in use.
nsIPropertyBag
xpcom/ds/nsipropertybag.idlscriptable this interface is used to store a set of properties.
...sipropertybag.idlscriptable this interface is used to store a set of properties.
nsIPushService
add-on, or component running in the browser.
...terfaces.nsipushservice); method overview void subscribe(in domstring scope, in nsiprincipal principal, in nsipushsubscriptioncallback callback); void getsubscription(in domstring scope, in nsiprincipal principal, in nsipushsubscriptioncallback callback); void unsubscribe(in domstring scope, in nsiprincipal principal, in nsiunsubscriberesultcallback callback); methods subscribe() creates a push subscription.
nsIRadioInterfaceLayer
0 / thunderbird 14.0 / seamonkey 2.11) implemented by: @mozilla.org/telephony/system-worker-manager;1.
...call_state_connected 5 call_state_holding 6 call_state_held 7 call_state_resuming 8 call_state_disconnecting 9 call_state_disconnected 10 call_state_incoming 11 datacall_state_unknown 0 datacall_state_connecting 1 datacall_state_connected 2 datacall_state_disconnecting 3 datacall_state_disconnected 4 call_state_ringing 2 obsolete since gecko 14.0 methods answercall() void answercall( in unsigned long callindex ); parameters callindex missing description exceptions thrown missing exception missing description deactivatedatacall() void deactivatedatacall( in domstring cid, in domstring reason ); parameters cid missing description reason missing description exceptions thrown missing exception missing description dial() functionality...
nsIRandomGenerator
netwerk/base/public/nsirandomgenerator.idlscriptable interface used to generate random data.
... netwerk/base/public/nsirandomgenerator.idlscriptable interface used to generate random data.
nsIRequest
netwerk/base/nsirequest.idlscriptable this interface is used by the request initiator to control the request.
...s session.
nsIRequestObserver
netwerk/base/public/nsirequestobserver.idlscriptable this interface is used by various streams (such as nsichannel ) to indicate the start and end of a request.
....idlscriptable this interface is used by various streams (such as nsichannel ) to indicate the start and end of a request.
nsIResumableChannel
netwerk/base/public/nsiresumablechannel.idlscriptable this interface is meant to be implemented by the channels that support resuming broken downloads (for example necko's html and ftp channels).
...tener, in nsisupports ctxt, in unsigned long startpos, in nsiresumableentityid entityid); obsolete since gecko 1.8 void resumeat(in unsigned long long startpos, in acstring entityid); attributes attribute type description entityid acstring the entity id for this uri.
nsISHEntry
ired to recreate the document from history.
...ag boolean indicate whether layouthistorystate should be saved.
nsISSLErrorListener
security/manager/ssl/public/nsisslerrorlistener.idlscriptable a mechanism to report a broken ssl connection.
...ic/nsisslerrorlistener.idlscriptable a mechanism to report a broken ssl connection.
nsISSLSocketControl
netwerk/socket/nsisslsocketcontrol.idlscriptable this interface establishes tls and ssl connections.
... netwerk/socket/nsisslsocketcontrol.idlscriptable this interface establishes tls and ssl connections.
nsIScreenManager
ion about the display screen (or screens) attached to the user's computer.
...ive code only!
nsIScriptError2
ipterror by adding a way to initialize the error with the window id of the outer window with which the error is associated.
...withwindowid().
nsIScriptableUnicodeConverter
ode encoder for use by scripts.
...ount); void converttobytearray(in astring astring,[optional] out unsigned long alen,[array, size_is(alen),retval] out octet adata); nsiinputstream converttoinputstream(in astring astring); attributes attribute type description charset string current character set.
nsISearchEngine
netwerk/base/public/nsibrowsersearchservice.idlscriptable please add a summary to this article.
...onstant value description type_mozsearch 1 type_sherlock 2 type_opensearch 3 search engine data type constants constant value description data_xml 1 data type is xml data_text 2 data type is text.
nsISelection
interface for manipulating and querying the current selected range of nodes within the document.
....
nsISelection3
content/base/public/nsiselection3.idlscriptable please add a summary to this article.
...a summary to this article.
nsISelectionImageService
layout/base/nsiselectionimageservice.idlnot scriptable please add a summary to this article.
... layout/base/nsiselectionimageservice.idlnot scriptable please add a summary to this article.
nsISessionStartup
ss.
...lable from the previous session.
nsISmsDatabaseService
1.0 66 introduced gecko 13.0 inherits from: nsisupports last changed in gecko 15.0 (firefox 15.0 / thunderbird 15.0 / seamonkey 2.12) implemented by: @mozilla.org/sms/smsdatabaseservice;1.
...ssagelist(in nsidommozsmsfilter filter, in boolean reverse, in long requestid, [optional] in unsigned long long processid); void getnextmessageinlist(in long listid, in long requestid, [optional] in unsigned long long processid); void clearmessagelist(in long listid); void markmessageread(in long messageid, in boolean value, in long requestid, [optional] in unsigned long long processid) methods savereceivedmessage() void savereceivedmessage( in domstring asender, in domstring abody, in unsigned long long adate ); parameters asender a domstring with the sender of the text message.
nsISmsRequestManager
66 introduced gecko 13.0 inherits from: nsisupports last changed in gecko 15.0 (firefox 15.0 / thunderbird 15.0 / seamonkey 2.12) implemented by: @mozilla.org/sms/smsrequestmanager;1.
...failed(in long arequestid, in long aerror); void notifysmssendfailed(in long arequestid, in long aerror); void notifysmssent(in long arequestid, in nsidommozsmsmessage amessage); constants all sms related errors that could apply to smsrequest objects.
nsISmsService
or the websms api 1.0 66 introduced gecko 13.0 inherits from: nsisupports last changed in gecko 15.0 (firefox 15.0 / thunderbird 15.0 / seamonkey 2.12) implemented by: @mozilla.org/sms/smsservice;1.
...mozsmsmessage createsmsmessage(in long id, in domstring delivery, in domstring sender, in domstring receiver, in domstring body, in jsval timestamp, in bool read ); unsigned short getnumberofmessagesfortext(in domstring text); boolean hassupport(); void send(in domstring number, in domstring message, in long requestid, [optional] in unsigned long long processid); methods createsmsmessage() [implicit_jscontext] 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.
nsISocketProvider
et classes like: udp, socks, tls, ssl, and so on.
...olution instead of the client.
nsIStackFrame
xpcom/base/nsiexception.idlscriptable please add a summary to this article.
...age constants.
nsIStandardURL
orts initialization from a relative path and provides some customization on how urls are normalized.
...lah://foo/bar => blah://foo/bar blah:///foo/bar => blah:///foo/bar urltype_authority 2 blah:foo/bar => blah://foo/bar blah:/foo/bar => blah://foo/bar blah://foo/bar => blah://foo/bar blah:///foo/bar => blah://foo/bar urltype_no_authority 3 blah:foo/bar => blah:///foo/bar blah:/foo/bar => blah:///foo/bar blah://foo/bar => blah://foo/bar blah:///foo/bar => blah:///foo/bar methods init() normalizes a given url to an standard url.
nsIStringBundleOverride
tringbundleservice = components.classes["@mozilla.org/intl/stringbundle/text-override;1"] .getservice(components.interfaces.nsistringbundleoverride); note: you should never need to use this service directly.
...terfaces.nsistringbundleoverride); note: you should never need to use this service directly.
nsIStructuredCloneContainer
ject into an nsistructuredclonecontainer using initfromvariant() or initfrombase64().
...tring adata,in unsigned long aformatversion); void initfromvariant(in nsivariant adata); attributes attribute type description formatversion unsigned long get the version of the structured clone algorithm which was used to generate this container's serialized buffer.
nsIStyleSheetService
se add a summary to this article.
...unsigned long type); boolean sheetregistered(in nsiuri sheeturi, in unsigned long type); void unregistersheet(in nsiuri sheeturi, in unsigned long type); constants constant value description agent_sheet 0 user_sheet 1 author_sheet 2 methods loadandregistersheet() synchronously loads a style sheet from sheeturi and adds it to the list of user or agent style sheets.
nsISupportsArray
xpcom/ds/nsisupportsarray.idlscriptable please add a summary to this article.
...veelementsat(in unsigned long aindex, in unsigned long acount); violates the xpcom interface guidelines boolean removelastelement([const] in nsisupports aelement); violates the xpcom interface guidelines boolean replaceelementat(in nsisupports aelement, in unsigned long aindex); violates the xpcom interface guidelines boolean sizeto(in long asize); violates the xpcom interface guidelines methods violates the xpcom interface guidelines appendelements() boolean appendelements( in nsisupportsarray aelements ); parameters aelements return value clone() nsisupportsarray clone(); parameters none.
nsISupportsInterfacePointer
xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for xpcom objects.
...sisupportsprimitives.idlscriptable this interface provides scriptable access for xpcom objects.
nsISupportsVoid
xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for generic pointers.
... xpcom/ds/nsisupportsprimitives.idlscriptable this interface provides scriptable access for generic pointers.
nsISupportsWeakReference
xpcom/base/nsiweakreference.idlscriptable this interface is a factory interface, which produces appropriate instances of nsiweakreference.
... xpcom/base/nsiweakreference.idlscriptable this interface is a factory interface, which produces appropriate instances of nsiweakreference.
nsISyncJPAKE
services/crypto/component/nsisyncjpake.idlscriptable please add a summary to this article.
...6key, out acstring ahmac256key); void round1(in acstring asignerid, out acstring agx1, out acstring agv1, out acstring ar1, out acstring agx2, out acstring agv2, out acstring ar2); void round2(in acstring apeerid, in acstring apin, in acstring agx3, in acstring agv3, in acstring ar3, in acstring agx4, in acstring agv4, in acstring ar4, out acstring aa, out acstring agva, out acstring ara); methods final() perform the final step of the jpake exchange.
nsITaskbarProgress
widget/public/nsitaskbarprogress.idlscriptable starting in windows 7, applications can display a progress notification in the taskbar.
...stop displaying progress on the taskbar button.
nsITextInputProcessorCallback
urn false; } }, setcomposition: function simpleime_setcomposition(atext, aclauses, acaret) { if (!this._tip) { this._tip = components.classes["@mozilla.org/text-input-processor;1"].
...ents.classes["@mozilla.org/text-input-processor;1"].
nsIThreadInternal
the nsithreadinternal interface is implemented by the xpcom thread object to let consumers observe dispatch activity on a thread.
... description observer nsithreadobserver get/set the current thread observer; set to null to disable observing.
nsIThreadPoolListener
the nsithreadpoollistener interface represents objects that listen to notifications generated by the nsithreadpool.
... the nsithreadpoollistener interface represents objects that listen to notifications generated by the nsithreadpool.
nsITimerCallback
xpcom/threads/nsitimer.idlscriptable defines the callback interface for nsitimer events.
... xpcom/threads/nsitimer.idlscriptable defines the callback interface for nsitimer events.
nsIToolkit
widget/public/nsitoolkit.idlnot scriptable this interface is used to initialize a message pump.
... widget/public/nsitoolkit.idlnot scriptable this interface is used to initialize a message pump.
nsITransactionList
editor/txmgr/idl/nsitransactionlist.idlscriptable please add a summary to this article.
... this article.
nsITransferable
ansferable;1.
...omise-dest-filename the destination url for a file promise.
nsITransportEventSink
netwerk/base/public/nsitransport.idlscriptable implemented by clients that wish to receive transport events.
... netwerk/base/public/nsitransport.idlscriptable implemented by clients that wish to receive transport events.
nsITreeColumn
the nsitreecolumn interface represents a tree column.
...e not selectable.
nsITreeContentView
the nsitreecontentview interface is implemented by tree views that are backed by dom content.
...entview.idlscriptable please add a summary to this article.
nsIURIFixup
p.idlscriptable interface implemented by objects capable of fixing up strings into uris.
...nly perform any lengthy keyword (or search) operation if it is set.
nsIUTF8ConverterService
intl/uconv/idl/nsiutf8converterservice.idlscriptable please add a summary to this article.
... intl/uconv/idl/nsiutf8converterservice.idlscriptable please add a summary to this article.
nsIUpdate
hen if the application process fails fall back to downloading a complete file-replace patch.
...e update failed to be downloaded.
nsIUpdateCheckListener
toolkit/mozapps/update/nsiupdateservice.idlscriptable an interface describing an object that listens to the progress of an update check operation.
...st changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) method overview void oncheckcomplete(in nsixmlhttprequest request, [array, size_is(updatecount)] in nsiupdate updates, in unsigned long updatecount); void onerror(in nsixmlhttprequest request, in nsiupdate update); void onprogress(in nsixmlhttprequest request, in unsigned long position, in unsigned long totalsize); methods oncheckcomplete() called when the update check is completed.
nsIUpdateItem
r.idlscriptable describes an item managed by the extension system, providing metadata describing the item.
... type_app 0x01 type_extension 0x02 type_theme 0x04 type_locale 0x08 type_multi_xpi 0x20 type_addon type_extension + type_theme + type_locale + type_plugin type_extension + type_theme + type_locale type_any type_app + type_addon 0xff type_plugin 0x10 methods init() initializes the object.
nsIUpdateManager
toolkit/mozapps/update/nsiupdateservice.idlscriptable this interface describes a global application service that maintains a list of previously installed updates, as well as the currently in use update.
...onkey 1.0) method overview nsiupdate getupdateat(in long index); void saveupdates(); attributes attribute type description activeupdate nsiupdate an nsiupdate object describing the currently in use update.
nsIUpdatePatch
toolkit/mozapps/update/nsiupdateservice.idlscriptable an interface that describes an object representing a patch file that can be downloaded and applied to a version of this application so that it can be updated.
...ate is selected.
nsIUpdatePrompt
toolkit/mozapps/update/nsiupdateservice.idlscriptable this interface describes an object that can be used to show various update-related notifications to the user.
...ts from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) method overview void checkforupdates(); void showupdateavailable(in nsiupdate update); void showupdatedownloaded(in nsiupdate update, [optional] in boolean background); void showupdateerror(in nsiupdate update); void showupdatehistory(in nsidomwindow parent); void showupdateinstalled(); methods checkforupdates() presents a user interface that checks for and displays the available updates.
nsIUrlListManagerCallback
toolkit/components/url-classifier/public/nsiurllistmanager.idlscriptable interface for a class that manages updates of the url classifier database.
... toolkit/components/url-classifier/public/nsiurllistmanager.idlscriptable interface for a class that manages updates of the url classifier database.
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.
nsIVersionComparator
1.1pre1 < 1.1pre10a < 1.1pre10 implemented by: @mozilla.org/xpcom/version-comparator;1.
...ozilla.org/xpcom/version-comparator;1.
nsIWebBrowserChrome
embedding/browser/webbrowser/nsiwebbrowserchrome.idlscriptable corresponds to the top-level, outermost window containing an embedded gecko web browser.
...l style bit just affects the way the window looks and does not mean it's actually modal.
nsIWebBrowserChrome3
embedding/browser/webbrowser/nsiwebbrowserchrome3.idlscriptable an extension to nsiwebbrowserchrome2.
...er/webbrowser/nsiwebbrowserchrome3.idlscriptable an extension to nsiwebbrowserchrome2.
nsIWebBrowserChromeFocus
embedding/browser/webbrowser/nsiwebbrowserchromefocus.idlscriptable implemented by the same object as nsiembeddingsitewindow.
... embedding/browser/webbrowser/nsiwebbrowserchromefocus.idlscriptable implemented by the same object as nsiembeddingsitewindow.
nsIWebBrowserFind
inherits from: nsisupports last changed in gecko 1.7 get one by doing a getinterface on an nsiwebbrowser.
...ames and searchparentframes are set, this returns false.
nsIWebPageDescriptor
docshell/base/nsiwebpagedescriptor.idlscriptable this interface allows content being displayed in one window to be loaded into another window without refetching it from the network.
... constants display type constants constant value description display_as_source 0x0001 generates an optionally syntax-highlighted (for xml/html documents) source of the original page.
nsIWebProgressListener2
an extended version of nsiwebprogresslistener.
...efox 3) inherits from: nsiwebprogresslistener method overview void onprogresschange64(in nsiwebprogress awebprogress, in nsirequest arequest, in long long acurselfprogress, in long long amaxselfprogress, in long long acurtotalprogress, in long long amaxtotalprogress); boolean onrefreshattempted(in nsiwebprogress awebprogress, in nsiuri arefreshuri, in long amillis, in boolean asameuri); methods onprogresschange64() notification that the progress has changed for one of the requests associated with awebprogress.
nsIWifiListener
netwerk/wifi/nsiwifilistener.idlscriptable this interface is implemented by clients interested in receiving notifications when the list of available wifi access points changes.
... interested in receiving notifications when the list of available wifi access points changes.
nsIWifiMonitor
.9.1 inherits from: nsisupports last changed in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) this is used, for example, by geolocation to use wifi access points for location detection.
...ed, for example, by geolocation to use wifi access points for location detection.
nsIWinAccessNode
accessible/public/msaa/nsiwinaccessnode.idlnot scriptable please add a summary to this article.
... accessible/public/msaa/nsiwinaccessnode.idlnot scriptable please add a summary to this article.
nsIWinAppHelper
inherits from: nsisupports last changed in gecko 1.9.2 (firefox 3.6 / thunderbird 3.1 / fennec 1.0) implemented by: @mozilla.org/xre/app-info;1.
...e logfile); obsolete since gecko 1.9.2 attributes attribute type description usercanelevate boolean read only.
nsIWindowsShellService
browser/components/shell/public/nsiwindowsshellservice.idlscriptable please add a summary to this article.
... mail messages for the current user.
nsIWorker
dom/interfaces/threads/nsidomworkers.idlscriptable this interface represents a dom worker thread.
...1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) for usage details, see worker and the article using dom workers.
nsIWorkerFactory
2.1) this interface was removed in gecko 8.0.
...create workers from chrome.
nsIWorkerMessageEvent
dom/interfaces/threads/nsidomworkers.idlscriptable this interface represents an event in a web worker thread's event queue.
...tring atypearg, in boolean acanbubblearg, in boolean acancelablearg, in domstring adataarg, in domstring aoriginarg, in nsisupports asourcearg); attributes attribute type description data domstring the event's data.
nsIWorkerMessagePort
dom/interfaces/threads/nsidomworkers.idlscriptable this interface represents a worker thread's message port, which is used to allow the worker to post messages back to its creator.
...m/interfaces/threads/nsidomworkers.idlscriptable this interface represents a worker thread's message port, which is used to allow the worker to post messages back to its creator.
nsIWorkerScope
dom/interfaces/threads/nsidomworkers.idlscriptable this interface represents the global scope in which a worker's script runs.
...rview void postmessage(in domstring amessage, [optional] in nsiworkermessageport amessageport); void close(); attributes attribute type description onclose nsidomeventlistener a listener object to be called when the worker stops running.
nsIWritablePropertyBag
xpcom/ds/nsiwritablepropertybag.idlscriptable please add a summary to this article.
... xpcom/ds/nsiwritablepropertybag.idlscriptable please add a summary to this article.
nsIXPCException
js/src/xpconnect/idl/xpcexception.idlscriptable these exception objects are the preferred types of exceptions when implementing xpcom interfaces in javascript.
...inherits from: nsiexception last changed in gecko 1.9.2 (firefox 3.6 / thunderbird 3.1 / fennec 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!
nsIXSLTProcessor
content/xslt/public/nsixsltprocessor.idlscriptable xslt processor inherits from: nsisupports last changed in gecko 1.7 implemented by: @mozilla.org/document-transformer;1?type=xslt.
... localname); void importstylesheet(in nsidomnode style); void removeparameter(in domstring namespaceuri, in domstring localname); void reset(); void setparameter(in domstring namespaceuri, in domstring localname, in nsivariant value); nsidomdocument transformtodocument(in nsidomnode source); nsidomdocumentfragment transformtofragment(in nsidomnode source, in nsidomdocument output); methods clearparameters() removes all set parameters from this nsixsltprocessor.
nsIXULBuilderListener
content/xul/templates/public/nsixulbuilderlistener.idlscriptable this object is a listener that will be notified when a template builder rebuilds its content.
... content/xul/templates/public/nsixulbuilderlistener.idlscriptable this object is a listener that will be notified when a template builder rebuilds its content.
nsIXULRuntime
information about the xul runtime.
... may throw ns_error_not_available.
nsIXULSortService
content/xul/templates/public/nsixulsortservice.idlscriptable a service used to sort the contents of a xul widget.
...rnode(in nsirdfcompositedatasource db, in nsrdfsortstate sortstateptr, in nsicontent root, in nsicontent trueparent, in nsicontent container, in nsicontent node, in boolean anotify); native code only!
nsIXmlRpcFault
in some browsers, its use is discouraged since it could be removed at any time.
...nnect.getpendingexception->data.
nsPIPromptService
d field.
...aybuttonenable the value is 6.
NS_CStringCopy
aining the new string value.
....
NS_StringCopy
the new string value.
...t returns an error code.
Using IndexedDB in chrome
r principal = cc["@mozilla.org/systemprincipal;1"].createinstance(ci.nsiprincipal); var sandbox = components.utils.sandbox(principal, options); // the sandbox will have access to indexeddb var sandboxscript = 'var req = indexeddb.open("my-database");'; components.utils.evalinsandbox(sandboxscript, sandbox); before firefox 33, you would access indexeddb from chrome code using the initwindowless method of the nsiindexeddatabasemanager service.
...ateinstance(ci.nsiprincipal); var sandbox = components.utils.sandbox(principal, options); // the sandbox will have access to indexeddb var sandboxscript = 'var req = indexeddb.open("my-database");'; components.utils.evalinsandbox(sandboxscript, sandbox); before firefox 33, you would access indexeddb from chrome code using the initwindowless method of the nsiindexeddatabasemanager service.
Autoconfiguration in Thunderbird
by the isp.
... like imap.<domain>, smtp.<domain>, mail.<domain> etc., and, when a mail server answers, checking whether it supports ssl, starttls and encrypted passwords (cram-md5).
DB Views (message lists)
database's nsmsgthread objects like the other view classes, it uses an nsmsggroupthread object, which also implements nsimsgthread.
...h also implements nsimsgthread.
Filelink Providers
submit="return false;"> <label for="username">username:</label> <input id="username" type="text" required="true" /> <label for="server">server:</label> <input id="server" type="text" required="true" /> <label for="port">port:</label> <input id="port" pattern="[0-9]+" required="true" /> </form> the form is expected to use html5 form validation.
...bel for="server">server:</label> <input id="server" type="text" required="true" /> <label for="port">port:</label> <input id="port" pattern="[0-9]+" required="true" /> </form> the form is expected to use html5 form validation.
Index
for an overview of the related interfaces.
...terfaces.
MailNews fakeserver
components, as edge cases with quirky servers being liberal with the specs will require different handlers.
...ith quirky servers being liberal with the specs will require different handlers.
MailNews Filters
g the search terms using the core mailnews/base/search code, and then applying the filter hits when the search terms match.
...le add new action to the filter editor js code add new action to the xbl widget in the filter editor if your action has a parameter, add code to initialize the ui editing an existing filter here and to save to the filter here add your action to filter.properties so it will show up in the filter log.
Mail and RDF
t is loaded by declaring the datasource variables in the source javascript as global variables.
...s of rdf resource factories will be left to 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.
Thunderbird Configuration Files
fault, so you need to create it before you can start adding your preferences.
...n the my computer icon on your desktop) and select tools > folder options.
Finding the code for a feature
uess i need to get the submenu instead.
...ing that up in mxr, its underlying function uses a very strange call prevhdrfolder[toggler](messages, key) to change the key.
Activity Manager examples
s.nsiactivityprocess.state_canceled; gactivitymanager.removeactivity(aactivity.id); return cr.ns_success; } } return cr.ns_failure; } } // step 2: modify the previous sample to add initiator, subject // and associate a nsiactivitycancelhandler component ...
...h" #include "nsiactivitymanager.h" .....
Folders and message lists
interacting with the current folder the folderdisplaywidget for the current folder can be accessed via the global variable gfolderdisplay.
...ral ways of getting the currently-selected message(s), depending on what exactly you're trying to do: gfolderdisplay.selectedcount: returns the number of messages currently selected.
libmime content type handlers
warning: the content of this article may be out of date.
..."nsisupports.h" #include "mimecth.h" // {20dabd99-f8b5-11d2-8ee0-00a024a7d144} #define ns_imime_content_type_handler_iid \ { 0x20dabd99, 0xf8b5, 0x11d2, \ { 0x8e, 0xe0, 0x0, 0xa0, 0x24, 0xa7, 0xd1, 0x44 } } class nsimimecontenttypehandler : public nsisupports { public: static const nsiid& getiid() { static nsiid iid = ns_imime_content_type_handler_iid; return iid; } ns_imethod getcontenttype(char **contenttype) = 0; ns_imethod createcontenttypehandlerclass(const char *content_type, contenttypehandlerinitstruct *initstruct, mimeobjectclass **objclass) = 0; }; #endif /* nsimimecontenttypehandler_h_ */ plugin installation/location the installation of these modules wi...
Virtualenv
ocess: http://mxr.mozilla.org/mozilla-central/source/js/src/build/autoconf/python-virtualenv.m4 .
...lenv/packages.txt , into the virtualenv via one of various methods.
Using C struct and pointers
.structtype("st_t", [ { "self": ctypes.pointertype(ctypes.void_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.
... 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.
Standard OS Libraries
, rootx.address(), rooty.address(), windowx.address(), windowy.address(), mask.address() ); xclosedisplay(display); components.utils.reporterror(rootx.value + "," + rooty.value); x11.close(); resources for x11 extended window manager hints githubgists :: noitidart / search · x11 - x11 js-ctypes snippets that can be copied and pasted to scratchpad xcb all the above methods, gdk, gtk, and x11/xlib are meant to be used on the main thread.
...githubgists :: noitidart / search · x11 - x11 js-ctypes snippets that can be copied and pasted to scratchpad xcb all the above methods, gdk, gtk, and x11/xlib are meant to be used on the main thread.
ctypes.open
at the heart of js-ctypes is the ctypes.open() function.
...irefox/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:// path; instead, on startup procedure of the bootstrap add-on obtain the file and/or jar path from installpath from the adata parameter.
ABI
alling windows system functions.
... do not have mangled names like those used by stdcall_abi above.
FunctionType
er, and array types, this should be a valid c type expression.
...es, this should be a valid c type expression.
Mozilla
e the component in c++ and javascript.
...e is wrapped using xpconnect and the wrapper is exposed to javascript as the javascript representation of the dom node.
Flash Activation: Browser Comparison - Plugins
n element so that it's visible on the page, and should resize or hide it only after the user has activated the plugin.
... javascript function plugincreated(), like this: <object type="application/x-my-plugin" data="somedata.mytype" id="myplugin"> <param name="callback" value="plugincreated()"> </object> the plugincreated() function is then responsible for the setup of your script and any calls back into the plugin that you need to make: function plugincreated() { document.getelementbyid('myplugin').callpluginmethod(); } ...
Debugger.Memory - Firefox Developer Tools
n various ways: it can mark each new object with the javascript call stack at which it was allocated.
...ll stacks at which allocations have occurred.
Debugger.Source - Firefox Developer Tools
ext as a string.
...aluated via new webassembly.module are represented.
Tutorial: Set a breakpoint - Firefox Developer Tools
at = ' + frame.eval('what').return); } }); console.log('finished setting breakpoint!'); in the scratchpad, ensure that no text is selected, and press the “run” button.
...sole.log('finished setting breakpoint!'); in the scratchpad, ensure that no text is selected, and press the “run” button.
Migrating from Firebug - Firefox Developer Tools
eady integrated into the devtools using the chromelogger protocol and doesn't require any extensions to be installed.
...command history available through a button in firebug's command line, is available by pressing ↑/↓ within the devtools command line.
Console messages - Firefox Developer Tools
able in the display pane to the clipboard.
....
ANGLE_instanced_arrays.drawArraysInstancedANGLE() - Web APIs
the angle_instanced_arrays.drawarraysinstancedangle() method of the webgl api renders primitives from array data like the gl.drawarrays() method.
... the angle_instanced_arrays.drawarraysinstancedangle() method of the webgl api renders primitives from array data like the gl.drawarrays() method.
ANGLE_instanced_arrays.drawElementsInstancedANGLE() - Web APIs
the angle_instanced_arrays.drawelementsinstancedangle() method of the webgl api renders primitives from array data like the gl.drawelements() method.
... the angle_instanced_arrays.drawelementsinstancedangle() method of the webgl api renders primitives from array data like the gl.drawelements() method.
ANGLE_instanced_arrays.vertexAttribDivisorANGLE() - Web APIs
the angle_instanced_arrays.vertexattribdivisorangle() method of the webgl api modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with ext.drawarraysinstancedangle() and ext.drawelementsinstancedangle().
... the angle_instanced_arrays.vertexattribdivisorangle() method of the webgl api modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with ext.drawarraysinstancedangle() and ext.drawelementsinstancedangle().
AbortSignal - Web APIs
d only a boolean that indicates whether the request(s) the signal is communicating with is/are aborted (true) or not (false).
...e request(s) the signal is communicating with is/are aborted (true) or not (false).
AnalyserNode - Web APIs
er value in the scaling range for the fft analysis data, for conversion to unsigned byte values — basically, this specifies the maximum value for the range of results when using getbytefrequencydata().
...aling range for the fft analysis data, for conversion to unsigned byte values — basically, this specifies the maximum value for the range of results when using getbytefrequencydata().
Animation.cancel() - Web APIs
Web › API › Animation › cancel
the web animations api's cancel() method of the animation interface clears all keyframeeffects caused by this animation and aborts its playback.
... the web animations api's cancel() method of the animation interface clears all keyframeeffects caused by this animation and aborts its playback.
Animation.pause() - Web APIs
Web › API › Animation › pause
the pause() method of the web animations api's animation interface suspends playback of the animation.
...e end time of the animation is positive infinity.
Animation.updatePlaybackRate() - Web APIs
the updateplaybackrate() method of the web animations api's animation interface sets the speed of an animation after first synchronizing its playback position.
...on a separate thread or process and will continue updating even while long-running javascript delays the main thread.
AnimationEffect.getComputedTiming() - Web APIs
the getcomputedtiming() method of the animationeffect interface returns the calculated timing properties for this animation effect.
... the getcomputedtiming() method of the animationeffect interface returns the calculated timing properties for this animation effect.
AudioBuffer - Web APIs
the audiobuffer interface represents a short audio asset residing in memory, created from an audio file using the audiocontext.decodeaudiodata() method, or from raw data using audiocontext.createbuffer().
...ad only returns an integer representing the length, in sample-frames, of the pcm data stored in the buffer.
AudioBufferSourceNode.start() - Web APIs
the start() method of the audiobuffersourcenode interface is used to schedule playback of the audio data contained in the buffer, or to begin playback immediately.
...sound buffer's natural sample rate, rather than the current playback rate, so even if the sound is playing at twice its normal speed, the midway point through a 10-second audio buffer is still 5.
AudioContext.close() - Web APIs
the close() method of the audiocontext interface closes the audio context, releasing any system audio resources that it uses.
...created objects, unless other references have been released as well; however, it will forcibly release any system audio resources that might prevent additional audiocontexts from being created and used, suspend the progression of audio time in the audio context, and stop processing audio data.
AudioContext.createJavaScriptNode() - Web APIs
the audiocontext.createjavascriptnode() method creates a javascriptnode which is used for directly manipulating audio data with javascript.
... the audiocontext.createjavascriptnode() method creates a javascriptnode which is used for directly manipulating audio data with javascript.
AudioContext.createMediaStreamDestination() - Web APIs
the createmediastreamdestination() method of the audiocontext interface is used to create a new mediastreamaudiodestinationnode object associated with a webrtc mediastream representing an audio stream, which may be stored in a local file or sent to another computer.
...g an audio stream, which may be stored in a local file or sent to another computer.
AudioContext.createWaveTable() - Web APIs
the audiocontext method createwavetable() is now obsolete; you should instead use the method createperiodicwave().
... the audiocontext method createwavetable() is now obsolete; you should instead use the method createperiodicwave().
AudioContext.resume() - Web APIs
the resume() method of the audiocontext interface resumes the progression of time in an audio context that has previously been suspended.
... the resume() method of the audiocontext interface resumes the progression of time in an audio context that has previously been suspended.
AudioContext.suspend() - Web APIs
the suspend() method of the audiocontext interface suspends the progression of time in the audio context, temporarily halting audio hardware access and reducing cpu/battery usage in the process — this is useful if you want an application to power down the audio hardware when it will not be using an audio context for a while.
... the suspend() method of the audiocontext interface suspends the progression of time in the audio context, temporarily halting audio hardware access and reducing cpu/battery usage in the process — this is useful if you want an application to power down the audio hardware when it will not be using an audio context for a while.
AudioContext - Web APIs
t.
...nherits properties from its parent interface, baseaudiocontext.
AudioListener.dopplerFactor - Web APIs
r effect.
...ut our panner-node example (view the source code) — this demo transports you to the 2.5d "room of metal", where you can play a track on a boom box and then walk around the boom box to see how the sound changes!
AudioListener.forwardX - Web APIs
a-rate when used with a pannernode whose panningmodel is set to equalpower, or k-rate otherwise.
...ut our panner-node example (view the source code) — this demo transports you to the 2.5d "room of metal", where you can play a track on a boom box and then walk around the boom box to see how the sound changes!
AudioListener.forwardY - Web APIs
a-rate when used with a pannernode whose panningmodel is set to equalpower, or k-rate otherwise.
...ut our panner-node example (view the source code) — this demo transports you to the 2.5d "room of metal", where you can play a track on a boom box and then walk around the boom box to see how the sound changes!
AudioListener.forwardZ - Web APIs
a-rate when used with a pannernode whose panningmodel is set to equalpower, or k-rate otherwise.
...ut our panner-node example (view the source code) — this demo transports you to the 2.5d "room of metal", where you can play a track on a boom box and then walk around the boom box to see how the sound changes!
AudioListener.positionX - Web APIs
s a-rate when used with a pannernode whose pannernode is set to equalpower, or k-rate otherwise.
...ut our panner-node example (view the source code) — this demo transports you to the 2.5d "room of metal", where you can play a track on a boom box and then walk around the boom box to see how the sound changes!
AudioListener.positionY - Web APIs
s a-rate when used with a pannernode whose pannernode is set to equalpower, or k-rate otherwise.
...ut our panner-node example (view the source code) — this demo transports you to the 2.5d "room of metal", where you can play a track on a boom box and then walk around the boom box to see how the sound changes!
AudioListener.positionZ - Web APIs
s a-rate when used with a pannernode whose pannernode is set to equalpower, or k-rate otherwise.
...ut our panner-node example (view the source code) — this demo transports you to the 2.5d "room of metal", where you can play a track on a boom box and then walk around the boom box to see how the sound changes!
AudioListener.speedOfSound - Web APIs
e speed the panner is travelling at (as defined by pannernode.setvelocity.) note: bear in mind that no propagation delay is automatically applied to a sound far from the listener.
...ut our panner-node example (view the source code) — this demo transports you to the 2.5d "room of metal", where you can play a track on a boom box and then walk around the boom box to see how the sound changes!
AudioListener.upX - Web APIs
Web › API › AudioListener › upX
eter is a-rate when used with a pannernode whose pannernode is set to equalpower, or k-rate otherwise.
...ut our panner-node example (view the source code) — this demo transports you to the 2.5d "room of metal", where you can play a track on a boom box and then walk around the boom box to see how the sound changes!
AudioListener.upY - Web APIs
Web › API › AudioListener › upY
eter is a-rate when used with a pannernode whose pannernode is set to equalpower, or k-rate otherwise.
...ut our panner-node example (view the source code) — this demo transports you to the 2.5d "room of metal", where you can play a track on a boom box and then walk around the boom box to see how the sound changes!
AudioListener.upZ - Web APIs
Web › API › AudioListener › upZ
eter is a-rate when used with a pannernode whose pannernode is set to equalpower, or k-rate otherwise.
...ut our panner-node example (view the source code) — this demo transports you to the 2.5d "room of metal", where you can play a track on a boom box and then walk around the boom box to see how the sound changes!
AudioNode.connect() - Web APIs
Web › API › AudioNode › connect
the connect() method of the audionode interface lets you connect one of the node's outputs to a target, which may be either another audionode (thereby directing the sound data to the specified node) or an audioparam, so that the node's output data is automatically used to change the value of that parameter over time.
...of the same audio context as the source node.
AudioNode.disconnect() - Web APIs
the disconnect() method of the audionode interface lets you disconnect one or more nodes from the node on which the method is called.
... method of the audionode interface lets you disconnect one or more nodes from the node on which the method is called.
AudioParam.cancelScheduledValues() - Web APIs
the cancelscheduledvalues() method of the audioparam interface cancels all scheduled future changes to the audioparam.
...he audioparam interface cancels all scheduled future changes to the audioparam.
AudioParam.setTargetAtTime() - Web APIs
the settargetattime() method of the audioparam interface schedules the start of a gradual change to the audioparam value.
...ngth timeconstant, the value will have approached target by another 1-e-1≈63.2%1 - e^{-1} \approx 63.2%.
AudioParam.setValueAtTime() - Web APIs
the setvalueattime() method of the audioparam interface schedules an instant change to the audioparam value at a precise time, as measured against audiocontext.currenttime.
...returns a reference to this audioparam object.
AudioParam - Web APIs
ionode creating the audioparam.
...ay of floating-point numbers scaled to fit into the given interval, starting at a given start time and spanning a given duration of time.
AudioProcessingEvent - Web APIs
ble read only boolean is it possible to cancel the event?
...ined as a parameter, numberofinputchannels, of the factory method audiocontext.createscriptprocessor().
AudioScheduledSourceNode.stop() - Web APIs
the stop() method on audioscheduledsourcenode schedules a sound to cease playback at the specified time.
... the stop() method on audioscheduledsourcenode schedules a sound to cease playback at the specified time.
AudioTrackList.getTrackById() - Web APIs
the audiotracklist method gettrackbyid() returns the first audiotrack object from the track list whose id matches the specified string.
... the specified string.
AudioTrackList - Web APIs
ed, indicating that a new audio track has been added to the media element.
...has been added to the media element.
AudioWorkletNode.onprocessorerror - Web APIs
the onprocessorerror property of the audioworkletnode interface defines an event handler function to be called when the processorerror event fires.
... the onprocessorerror property of the audioworkletnode interface defines an event handler function to be called when the processorerror event fires.
AuthenticatorAttestationResponse.getTransports() - Web APIs
gettransports() is a method of the authenticatorattestationresponse interface that returns an array containing strings describing the different transports which may be used by the authenticator.
...face that returns an array containing strings describing the different transports which may be used by the authenticator.
AuthenticatorAttestationResponse - Web APIs
authenticatorattestationresponse.clientdatajson secure contextread only client data for the authentication, such as origin and challenge.
...d challenge.
BaseAudioContext.createBuffer() - Web APIs
the createbuffer() method of the baseaudiocontext interface is used to create a new, empty audiobuffer object, which can then be populated by data, and played via an audiobuffersourcenode for more details about audio buffers, check out the audiobuffer reference page.
...by data, and played via an audiobuffersourcenode for more details about audio buffers, check out the audiobuffer reference page.
BaseAudioContext.createChannelMerger() - Web APIs
the createchannelmerger() method of the baseaudiocontext interface creates a channelmergernode, which combines channels from multiple audio streams into a single audio stream.
...n the input audio streams, which the output stream will contain; the default is 6 if this parameter is not specified.
BaseAudioContext.createChannelSplitter() - Web APIs
the createchannelsplitter() method of the baseaudiocontext interface is used to create a channelsplitternode, which is used to access the individual channels of an audio stream and process them separately.
... input audio stream that you want to output separately; the default is 6 if this parameter is not specified.
BaseAudioContext.createScriptProcessor() - Web APIs
the createscriptprocessor() method of the baseaudiocontext interface creates a scriptprocessornode used for direct audio processing.
...d audio quality.
BaseAudioContext.createStereoPanner() - Web APIs
the createstereopanner() method of the baseaudiocontext interface creates a stereopannernode, which can be used to apply stereo panning to an audio source.
...al-power panning algorithm.
BaseAudioContext.state - Web APIs
the state read-only property of the baseaudiocontext interface returns the current state of the audiocontext.
...e state read-only property of the baseaudiocontext interface returns the current state of the audiocontext.
BasicCardResponse - Web APIs
onal contains the expiry year of the card used to make the payment.
... methods that can be used for the payment, one containing details of the actual order (such as items bought and shipping options), and an optional object containing further options.
BeforeInstallPromptEvent - Web APIs
g the platforms on which the event was dispatched.
...e user such as, for example, "web" or "play" which would allow the user to chose between a web version or an android version.
BiquadFilterNode.getFrequencyResponse() - Web APIs
the getfrequencyresponse() method of the biquadfilternode interface takes the current filtering algorithm's settings and calculates the frequency response for frequencies specified in a specified array of frequencies.
... the getfrequencyresponse() method of the biquadfilternode interface takes the current filtering algorithm's settings and calculates the frequency response for frequencies specified in a specified array of frequencies.
Blob.slice() - Web APIs
Web › API › Blob › slice
the blob interface's slice() method creates and returns a new blob object which contains data from a subset of the blob on which it's called.
...the end of the blob toward the beginning.
Bluetooth.getAvailability() - Web APIs
the getavailability() method of bluetooth interface of web bluetooth api interface exposes the bluetooth capabilities of the current device.
...user might not allow use of web bluetooth api, even if getavailability() returned true (navigator.bluetooth.requestdevice() might not resolve with a bluetoothdevice).
Bluetooth.requestDevice() - Web APIs
the bluetooth.requestdevice() method of the bluetooth interface returns a promise to a bluetoothdevice object with the specified options.
... the bluetooth.requestdevice() method of the bluetooth interface returns a promise to a bluetoothdevice object with the specified options.
Bluetooth - Web APIs
Web › API › Bluetooth
the device, if any, from which the user opened the current page.
...hanged an event handler that runs when an event of type availabilitychanged has fired.
Body.blob() - Web APIs
Web › API › Body › blob
the blob() method of the body mixin takes a response stream and reads it to completion.
...lob() method of the body mixin takes a response stream and reads it to completion.
BroadcastChannel - Web APIs
l.name read only returns a domstring, the name of the channel.
..., the name of the channel.
Broadcast Channel API - Web APIs
g a channel a client joins a broadcast channel by creating a broadcastchannel object.
... what to do with them.
CDATASection - Web APIs
ll="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="451" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">cdatasection</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no specific properties and implements those of its parent text.
...th="2px" /><text x="451" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">cdatasection</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no specific properties and implements those of its parent text.
CSSConditionRule - Web APIs
csssupportsrule.
... cssconditionrule : cssgroupingrule { attribute domstring conditiontext; } properties the cssconditionrule derives from cssrule, cssgroupingrule and inherits all properties of these classes.
CSSKeywordValue - Web APIs
del api creates an object to represent css keywords and other identifiers.
... object to represent css keywords and other identifiers.
CSSMathSum - Web APIs
the cssmathsum interface of the css typed object model api represents the result obtained by calling add(), sub(), or tosum() on cssnumericvalue.
...) on cssnumericvalue.
CSSNumericValue.add() - Web APIs
the add() method of the cssnumericvalue interface adds a supplied number to the cssnumericvalue.
... the add() method of the cssnumericvalue interface adds a supplied number to the cssnumericvalue.
CSSNumericValue.div() - Web APIs
the div() method of the cssnumericvalue interface divides the cssnumericvalue by the supplied value.
... the div() method of the cssnumericvalue interface divides the cssnumericvalue by the supplied value.
CSSNumericValue.max() - Web APIs
the max() method of the cssnumericvalue interface returns the highest value from among the values passed.
... the max() method of the cssnumericvalue interface returns the highest value from among the values passed.
CSSNumericValue.min() - Web APIs
the min() method of the cssnumericvalue interface returns the lowest value from among those values passed.
... the min() method of the cssnumericvalue interface returns the lowest value from among those values passed.
CSSNumericValue.mul() - Web APIs
the mul() method of the cssnumericvalue interface multiplies the cssnumericvalue by the supplied value.
... the mul() method of the cssnumericvalue interface multiplies the cssnumericvalue by the supplied value.
CSSNumericValue.sub() - Web APIs
the sub() method of the cssnumericvalue interface subtracts a supplied number from the cssnumericvalue.
... the sub() method of the cssnumericvalue interface subtracts a supplied number from the cssnumericvalue.
CSSNumericValue.sum() - Web APIs
the sub() method of the cssnumericvalue interface subtracts a supplied number from the cssnumericvalue.
... the sub() method of the cssnumericvalue interface subtracts a supplied number from the cssnumericvalue.
CSSNumericValue.to() - Web APIs
the to() method of the cssnumericvalue interface converts a numberic value from one unit to another.
... the to() method of the cssnumericvalue interface converts a numberic value from one unit to another.
CSSNumericValue.toSum() - Web APIs
the tosum() method of the cssnumericvalue interface converts the object's value to a cssmathsum object to values of the specified unit.
... the tosum() method of the cssnumericvalue interface converts the object's value to a cssmathsum object to values of the specified unit.
CSSPrimitiveValue.getFloatValue() - Web APIs
the getfloatvalue() method of the cssprimitivevalue interface is used to get a float value in a specified unit.
...s an <angle> in degrees.
CSSPrimitiveValue.setFloatValue() - Web APIs
the setfloatvalue() method of the cssprimitivevalue interface is used to set a float value.
...s an <angle> in degrees.
CSSPseudoElement - Web APIs
nt interface represents a pseudo-element that may be the target of an event or animated using the web animations api.
...or animated using the web animations api.
CSSRuleList - Web APIs
s.
...tylesheet.cssrules), and index is the 0-based index of the rule, in the order as it appears in the style sheet css.
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.
CSSStyleDeclaration.setProperty() - Web APIs
the cssstyledeclaration.setproperty() method interface sets a new value for a property on a css style declaration object.
....cssrules; for each one, we check whether its cssstylerule.selectortext property is equal to the selector .box p, which indicates it is the one we want.
CSSUnitValue - Web APIs
ss typed object model api represents values that contain a single unit type.
... contain a single unit type.
CSSValue.cssValueType - Web APIs
enting a code defining the type of the value.
...the csstext contains "inherit".
CSSValue - Web APIs
Web › API › CSSValue
fining the type of the value.
...ext contains "inherit".
CSSValueList.item() - Web APIs
Web › API › CSSValueList › item
the item() method of the cssvaluelist interface is used to retrieve a cssvalue by ordinal index.
... the item() method of the cssvaluelist interface is used to retrieve a cssvalue by ordinal index.
CSSValueList - Web APIs
y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">cssvaluelist</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, cssvalue.
...consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">cssvaluelist</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, cssvalue.
Cache.add() - Web APIs
Web › API › Cache › add
the add() method of the cache interface takes a url, retrieves it, and adds the resulting response object to the given cache.
... the add() method of the cache interface takes a url, retrieves it, and adds the resulting response object to the given cache.
Cache.addAll() - Web APIs
Web › API › Cache › addAll
the addall() method of the cache interface takes an array of urls, retrieves them, and adds the resulting response objects to the given cache.
...ay of urls, retrieves them, and adds the resulting response objects to the given cache.
Cache - Web APIs
Web › API › Cache
ven though it is defined in the service worker spec.
...in.
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.
... 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.
CanvasCaptureMediaStreamTrack.requestFrame() - Web APIs
the canvascapturemediastreamtrack method requestframe() requests that a frame be captured from the canvas and sent to the stream.
...uestframe() requests that a frame be captured from the canvas and sent to the stream.
CanvasCaptureMediaStreamTrack - Web APIs
epresents the video track contained in a mediastream being generated from a <canvas> following a call to htmlcanvaselement.capturestream().
...n a mediastream being generated from a <canvas> following a call to htmlcanvaselement.capturestream().
CanvasGradient.addColorStop() - Web APIs
the canvasgradient.addcolorstop() method adds a new color stop, defined by an offset and a color, to a given canvas gradient.
...clusive, representing the position of the color stop.
CanvasRenderingContext2D.createImageData() - Web APIs
the canvasrenderingcontext2d.createimagedata() method of the canvas 2d api creates a new, blank imagedata object with the specified dimensions.
...the width and height.
CanvasRenderingContext2D.drawFocusIfNeeded() - Web APIs
the canvasrenderingcontext2d.drawfocusifneeded() method of the canvas 2d api draws a focus ring around the current or given path, if the specified element is focused.
...anvas 2d api draws a focus ring around the current or given path, if the specified element is focused.
CanvasRenderingContext2D.ellipse() - Web APIs
the canvasrenderingcontext2d.ellipse() method of the canvas 2d api adds an elliptical arc to the current sub-path.
... the canvasrenderingcontext2d.ellipse() method of the canvas 2d api adds an elliptical arc to the current sub-path.
CanvasRenderingContext2D.getLineDash() - Web APIs
the getlinedash() method of the canvas 2d api's canvasrenderingcontext2d interface gets the current line dash pattern.
...f numbers that specify distances to alternately draw a line and a gap (in coordinate space units).
CanvasRenderingContext2D.isPointInPath() - Web APIs
the canvasrenderingcontext2d.ispointinpath() method of the canvas 2d api reports whether or not the specified point is contained in the current path.
...zero": the non-zero winding rule.
CanvasRenderingContext2D.isPointInStroke() - Web APIs
the canvasrenderingcontext2d.ispointinstroke() method of the canvas 2d api reports whether or not the specified point is inside the area contained by the stroking of a path.
... x-axis coordinate of the point to check.
CanvasRenderingContext2D.rotate() - Web APIs
the canvasrenderingcontext2d.rotate() method of the canvas 2d api adds a rotation to the transformation matrix.
...d.rotate() method of the canvas 2d api adds a rotation to the transformation matrix.
CanvasRenderingContext2D.save() - Web APIs
the canvasrenderingcontext2d.save() method of the canvas 2d api saves the entire state of the canvas by pushing the current state onto a stack.
...rrent dash list.
CanvasRenderingContext2D.setLineDash() - Web APIs
the setlinedash() method of the canvas 2d api's canvasrenderingcontext2d interface sets the line dash pattern used when stroking lines.
...ely draw a line and a gap (in coordinate space units).
CanvasRenderingContext2D.setTransform() - Web APIs
the canvasrenderingcontext2d.settransform() method of the canvas 2d api resets (overrides) the current transformation to the identity matrix, and then invokes a transformation described by the arguments of this method.
... the canvasrenderingcontext2d.settransform() method of the canvas 2d api resets (overrides) the current transformation to the identity matrix, and then invokes a transformation described by the arguments of this method.
CanvasRenderingContext2D.transform() - Web APIs
the canvasrenderingcontext2d.transform() method of the canvas 2d api multiplies the current transformation with the matrix described by the arguments of this method.
... the canvasrenderingcontext2d.transform() method of the canvas 2d api multiplies the current transformation with the matrix described by the arguments of this method.
Drawing text - Web APIs
« previousnext » after having seen how to apply styles and colors in the previous chapter, we will now have a look at how to draw text onto the canvas.
...nvas.height); eval(textarea.value); } reset.addeventlistener('click', function() { textarea.value = code; drawcanvas(); }); edit.addeventlistener('click', function() { textarea.focus(); }) textarea.addeventlistener('input', drawcanvas); window.addeventlistener('load', drawcanvas); advanced text measurements in the case you need to obtain more details about the text, the following method allows you to measure it.
CaretPosition - Web APIs
the caretposition interface represents the caret position, an indicator for the text insertion point.
...an indicator for the text insertion point.
Using channel messaging - Web APIs
sages received on port1 function onmessage(e) { output.innerhtml = e.data; input.value = ''; } we start off by creating a new message channel by using the messagechannel() constructor.
...on initport(e) { port2 = e.ports[0]; port2.onmessage = onmessage; } // handle messages received on port2 function onmessage(e) { var listitem = document.createelement('li'); listitem.textcontent = e.data; list.appendchild(listitem); port2.postmessage('message received by iframe: "' + e.data + '"'); } when the initial message is received from the main page via the window.postmessage method, we run the initport function.
Client - Web APIs
Web › API › Client
the client interface represents an executable context such as a worker, or a sharedworker.
... the client interface represents an executable context such as a worker, or a sharedworker.
Clients.claim() - Web APIs
Web › API › Clients › claim
the claim() method of the clients interface allows an active service worker to set itself as the controller for all clients within its scope.
... the claim() method of the clients interface allows an active service worker to set itself as the controller for all clients within its scope.
Clipboard.readText() - Web APIs
the clipboard interface's readtext() method returns a promise which resolves with a copy of the textual contents of the system clipboard..
...or.clipboard.readtext() parameters none.
ClipboardItem() - Web APIs
te() and clipboard.read() respectively.
...nterface.
ClipboardItem.getType() - Web APIs
the gettype() method of the clipboarditem interface returns a promise that resolves with a blob of the requested mime type or an error if the mime type is not found.
...r blob = clipboarditem.gettype(type); parameters type a valid mime type.
ClipboardItem.types - Web APIs
the read-only types property of the clipboarditem interface returns an array of mime types available within the clipboarditem syntax var types = clipboarditem.types; value an array of available mime types.
...es property of the clipboarditem interface returns an array of mime types available within the clipboarditem syntax var types = clipboarditem.types; value an array of available mime types.
Comment - Web APIs
Web › API › Comment
,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">comment</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no specific property, but inherits those of its parent, characterdata, and indirectly those of node.
...middle" alignment-baseline="middle">comment</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no specific property, but inherits those of its parent, characterdata, and indirectly those of node.
CompositionEvent.locale - Web APIs
the locale read-only property of the compositionevent interface returns the locale of current input method (for example, the keyboard layout locale if the composition is associated with ime).
... the locale read-only property of the compositionevent interface returns the locale of current input method (for example, the keyboard layout locale if the composition is associated with ime).
Console.group() - Web APIs
Web › API › Console › group
); parameters label label for the group.
...s gecko 9.0(firefox 9.0 / thunderbird 9.0 / seamonkey 2.6) you can use nested groups to help organize your output by visually associating related messages.
console.trace() - Web APIs
Web › API › Console › trace
the console interface's trace() method outputs a stack trace to the web console.
...stack trace to the web console.
Console API - Web APIs
ually settled on implementing this behavior — although some implementations still have their own additional proprietary functions.
...devtools implementation safari devtools implementation usage is very simple — the console object — available via window.console, or workerglobalscope.console in workers; accessible using just console — contains many methods that you can call to perform rudimentary debugging tasks, generally focused around logging various values to the browser's web console.
ContentIndex.getAll() - Web APIs
the getall() method of the contentindex interface returns a promise that resolves with an iterable list of content index entries.
... the getall() method of the contentindex interface returns a promise that resolves with an iterable list of content index entries.
CredentialsContainer.create() - Web APIs
the create() method of the credentialscontainer interface returns a promise that resolves with a new credential instance based on the provided options, or null if no credential object can be created.
... the create() method of the credentialscontainer interface returns a promise that resolves with a new credential instance based on the provided options, or null if no credential object can be created.
CredentialsContainer.store() - Web APIs
the store() method of the credentialscontainer stores a set of credentials for the user inside a credential instance, returning this in a promise.
... the store() method of the credentialscontainer stores a set of credentials for the user inside a credential instance, returning this in a promise.
CryptoKey - Web APIs
Web › API › CryptoKey
the cryptokey interface of the web crypto api represents a cryptographic key obtained from one of the subtlecrypto methods generatekey(), derivekey(), importkey(), or unwrapkey().
...he key may be used to decrypt messages.
DOMImplementation.hasFeature() - Web APIs
the domimplementation.hasfeature() method returns a boolean flag indicating if a given feature is supported.
... the domimplementation.hasfeature() method returns a boolean flag indicating if a given feature is supported.
DOMLocator - Web APIs
inenumber read only returns a positive integer or -1.
...cator.columnnumber read only returns a positive integer or -1.
DOMMatrixReadOnly.flipX() - Web APIs
the flipx() method of the dommatrixreadonly interface creates a new matrix being the result of the original matrix flipped about the x-axis.
... drawn to the same position.
DOMPointReadOnly.toJSON() - Web APIs
the dompointreadonly method tojson() returns a dompointinit object giving the json form of the point object.
... the dompointreadonly method tojson() returns a dompointinit object giving the json form of the point object.
DOMTokenList.replace() - Web APIs
the replace() method of the domtokenlist interface replaces an existing token with a new token.
...irst, the html: <span class="a b c"></span> now the javascript: let span = document.queryselector("span"); let classes = span.classlist; let result = classes.replace("c", "z"); console.log(result); if (result) { span.textcontent = classes; } else { span.textcontent = 'token not replaced successfully'; } the output looks like this: polyfill the following polyfill will add the replace method to the domtokenlist class.
DOMTokenList.supports() - Web APIs
the supports() method of the domtokenlist interface returns true if a given token is in the associated attribute's supported tokens.
... the supports() method of the domtokenlist interface returns true if a given token is in the associated attribute's supported tokens.
DOMTokenList - Web APIs
tmlareaelement.rellist, htmliframeelement.sandbox, or htmloutputelement.htmlfor.
... using domtokenlist.add(), and then update the node.textcontent of the <p> to equal the domtokenlist.
DataTransfer.setData() - Web APIs
the datatransfer.setdata() method sets the drag operation's drag data to the specified data and type.
... example data types are text/plain and text/uri-list.
DataTransferItem.getAsString() - Web APIs
the datatransferitem.getasstring() method invokes the given callback with the drag data item's string data as the argument if the item's kind is a plain unicode string (i.e.
...ck); parameters callback a callback function that has access to the data transfer item's string data.
DataTransferItem.webkitGetAsEntry() - Web APIs
t to the container.
...ms.
DataTransferItem - Web APIs
one drag data item.
...g item is not a file).
DataTransferItemList.add() - Web APIs
the datatransferitemlist.add() method creates a new datatransferitem using the specified data and adds it to the drag data list.
...e specified data.
DataTransferItemList - Web APIs
the datatransferitemlist object is a list of datatransferitem objects representing items being dragged.
... object or a string) to the drag item list and returns a datatransferitem object for the new item.
DedicatedWorkerGlobalScope.close() - Web APIs
the close() method of the dedicatedworkerglobalscope interface discards any tasks queued in the dedicatedworkerglobalscope's event loop, effectively closing this particular scope.
...ely closing this particular scope.
DedicatedWorkerGlobalScope.postMessage() - Web APIs
the postmessage() method of the dedicatedworkerglobalscope interface sends a message to the main thread that spawned it.
...rglobalscope interface sends a message to the main thread that spawned it.
Document.adoptNode() - Web APIs
document.adoptnode() transfers a node from another document into the method's document.
...emoved from its original document (if any), and its ownerdocument is changed to the current document.
Document.clear() - Web APIs
Web › API › Document › clear
the document.clear() method clears the whole specified document in early (pre-1.0) versions of mozilla.
... the document.clear() method clears the whole specified document in early (pre-1.0) versions of mozilla.
Document.cookie - Web APIs
Web › API › Document › cookie
e.
...be no maximum length of a cookie's key or value size, and encourages implementations to support arbitrarily large cookies.
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.
...eelement() method creates the html element specified by tagname, or an htmlunknownelement if tagname isn't recognized.
Document.createExpression() - Web APIs
this method compiles an xpathexpression which can then be used for (repeated) evaluations.
...expression which can then be used for (repeated) evaluations.
Document.createRange() - Web APIs
the document.createrange() method returns a new range object.
... the document.createrange() method returns a new range object.
Document.getBoxObjectFor() - Web APIs
returns a boxobject (x, y, width, height) for a specified element.
... returns a boxobject (x, y, width, height) for a specified element.
Document.getElementsByTagName() - Web APIs
the getelementsbytagname method of document interface returns an htmlcollection of elements with the given tag name.
...ment.getelementsbytagname() again.
Document.hasFocus() - Web APIs
Web › API › Document › hasFocus
the hasfocus() method of the document interface returns a boolean value indicating whether the document or any element inside the document has focus.
... the hasfocus() method of the document interface returns a boolean value indicating whether the document or any element inside the document has focus.
Document.importNode() - Web APIs
the document object's importnode() method creates a copy of a node or documentfragment from another document, to be inserted into the current document later.
... the document object's importnode() method creates a copy of a node or documentfragment from another document, to be inserted into the current document later.
Document.open() - Web APIs
Web › API › Document › open
the document.open() method opens a document for writing.
...r is 42</p>"); document.close(); notes an automatic document.open() call happens when document.write() is called after the page has loaded.
Document.queryCommandEnabled() - Web APIs
the document.querycommandenabled() method reports whether or not the specified editor command is enabled by the browser.
...document.querycommandenabled() method reports whether or not the specified editor command is enabled by the browser.
DocumentFragment.querySelector() - Web APIs
the documentfragment.queryselector() method returns the first element, or null if no matches are found, within the documentfragment (using depth-first pre-order traversal of the document's nodes) that matches the specified group of selectors.
...th a syntax_err value is raised.
DocumentOrShadowRoot.elementsFromPoint() - Web APIs
the elementsfrompoint() method of the documentorshadowroot interface returns an array of all elements at the specified coordinates (relative to the viewport).
... the elementsfrompoint() method of the documentorshadowroot interface returns an array of all elements at the specified coordinates (relative to the viewport).
DocumentOrShadowRoot.msElementsFromRect() - Web APIs
the mselementsfromrect method returns the node list of elements that are under a rectangle defined by left, top, width, and height.
... the mselementsfromrect method returns the node list of elements that are under a rectangle defined by left, top, width, and height.
DocumentType - Web APIs
eg "html" for <!doctype html>.
...ctype html>.
Using the W3C DOM Level 1 Core - Web APIs
newelement.appendchild(newtext); // and put the paragraph on the end of the document by appending it to // the body (which is the parent of para) para.parentnode.appendchild(newelement); } you can see this script as a complete example.
...a complete example.
EXT_color_buffer_half_float - Web APIs
the ext_color_buffer_half_float extension is part of the webgl api and adds the ability to render to 16-bit floating-point color buffers.
... to webgl 1 contexts only.
EXT_sRGB - Web APIs
Web › API › EXT sRGB
the ext_srgb extension is part of the webgl api and adds srgb support to textures and framebuffer objects.
...webgl1 contexts.
Element.animate() - Web APIs
Web › API › Element › animate
the element interface's animate() method is a shortcut method which creates a new animation, applies it to the element, then plays the animation.
... blur(2) blur(5).
Element.getAnimations() - Web APIs
the getanimations() method of the element interface (specified on the animatable mixin) returns an array of all animation objects affecting this element or which are scheduled to do so in future.
...ollowing property: subtree a boolean value which, if true, causes animations that target descendants of element to be returned as well.
Element.getClientRects() - Web APIs
the getclientrects() method of the element interface returns a collection of domrect objects that indicate the bounding rectangles for each css border box in a client.
...tions, the caption is included even though it's outside the border box of the table.
Element.innerHTML - Web APIs
Web › API › Element › innerHTML
ined within the element.
...time.tolocaletimestring(); logelem.innerhtml += timestr + ": " + msg + "<br/>"; } log("logging mouse events inside this container..."); the log() function creates the log output by getting the current time from a date object using tolocaletimestring(), and building a string with the timestamp and the message text.
Element.insertAdjacentHTML() - Web APIs
the insertadjacenthtml() method of the element interface parses the specified text as html or xml and inserts the resulting nodes into the dom tree at a specified position.
...at this point, the new structure is: // <div id="one">one</div><div id="two">two</div> notes security considerations when inserting html into a page by using insertadjacenthtml(), be careful not to use user input that hasn't been escaped.
Element.insertAdjacentText() - Web APIs
the insertadjacenttext() method of the element interface inserts a given text node at a given position relative to the element it is invoked upon.
...ce code too.) here we have a simple paragraph.
Element.querySelector() - Web APIs
the queryselector() method of the element interface returns the first element that is a descendant of the element on which it is invoked that matches the specified group of selectors.
...tching, including those outside the set of elements including baseelement and its descendants; in other words, selectors is first applied to the whole document, not the baseelement, to generate an initial list of potential elements.
Element.setPointerCapture() - Web APIs
the setpointercapture() method of the element interface is used to designate a specific element as the capture target of future pointer events.
...articular element instead of the normal (or hit test) target at a pointer's location.
ElementCSSInlineStyle - Web APIs
nd not an interface; you can't actually create an object of type elementcssinlinestyle.
...t actually create an object of type elementcssinlinestyle.
ErrorEvent - Web APIs
no read only is an integer containing the line number of the script file on which the error occurred.
...an integer containing the line number of the script file on which the error occurred.
Event.cancelable - Web APIs
Web › API › Event › cancelable
ead-only property of the event interface indicates whether the event can be canceled, and therefore prevented as if the event never happened.
... // the event cannot be canceled, so it is not safe // to call preventdefault() on it.
EventListener - Web APIs
the eventlistener interface represents an object that can handle an event dispatched by an eventtarget object.
...e represents an object that can handle an event dispatched by an eventtarget object.
EventSource.close() - Web APIs
Web › API › EventSource › close
the close() method of the eventsource interface closes the connection, if one is made, and sets the eventsource.readystate attribute to 2 (closed).
... the close() method of the eventsource interface closes the connection, if one is made, and sets the eventsource.readystate attribute to 2 (closed).
EventTarget - Web APIs
th="110" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">eventtarget</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor eventtarget() creates a new eventtarget object instance.
...ill: #0095dd; pointer-events: all;} constructor eventtarget() creates a new eventtarget object instance.
ExtendableEvent.waitUntil() - Web APIs
the extendableevent.waituntil() method tells the event dispatcher that work is ongoing.
...nstalled until all of the core caches it depends on are successfully populated.
ExtendableEvent - Web APIs
{ fill: #0095dd; pointer-events: all;} note: this interface is only available when the global scope is a serviceworkerglobalscope.
...pointer-events: all;} note: this interface is only available when the global scope is a serviceworkerglobalscope.
ExtendableMessageEvent - Web APIs
lemessageevent.lasteventid read only represents, in server-sent events, the last event id of the event source.
...teventid read only represents, in server-sent events, the last event id of the event source.
FetchEvent.respondWith() - Web APIs
the respondwith() method of fetchevent prevents the browser's default fetch handling, and allows you to provide a promise for a response yourself.
... the request ourselves.
Fetch basic concepts - Web APIs
plains some of the basic concepts of the fetch api.
... when a request or response object is created, it has an associated headers object whose guard is set as summarized below: new object's type creating constructor guard setting of associated headers object request request() request request() with 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.
File.getAsDataURL() - Web APIs
Web › API › File › getAsDataURL
summary the getasdataurl provides a data: url that encodes the entire contents of the referenced file.
... summary the getasdataurl provides a data: url that encodes the entire contents of the referenced file.
FileList - Web APIs
Web › API › FileList
files.
...input: <input id="fileitem" type="file"> the following line of code fetches the first file in the node's file list as a file object: var file = document.getelementbyid('fileitem').files[0]; method overview file item(index); properties attribute type description length integer a read-only value indicating the number of files in the list.
FileReader.readAsArrayBuffer() - Web APIs
the filereader interface's readasarraybuffer() method is used to start reading the contents of a specified blob or file.
... the filereader interface's readasarraybuffer() method is used to start reading the contents of a specified blob or file.
FileReader.readAsBinaryString() - Web APIs
the readasbinarystring method is used to start reading the contents of the specified blob or file.
... the readasbinarystring method is used to start reading the contents of the specified blob or file.
FileReader.readAsText() - Web APIs
the readastext() method is used to read the contents of the specified blob or file.
... the readastext() method is used to read the contents of the specified blob or file.
FileReaderSync.readAsArrayBuffer() - Web APIs
the readasarraybuffer() method of the filereadersync interface allows to read file or blob objects in a synchronous way into an arraybuffer.
...ynchronous way into an arraybuffer.
FileReaderSync.readAsDataURL() - Web APIs
the readasdataurl() method of the filereadersync interface allows to read file or blob objects in a synchronous way into an domstring representing a data url.
...a synchronous way into an domstring representing a data url.
FileSystem - Web APIs
the file and directory entries api interface filesystem is used to represent a file system.
... 7alternate name alternate name uses the non-standard name: domfilesystemedge full support ≤18prefixed notes full support ≤18prefixed notes prefixed implemented with the vendor prefix: webkitnotes edge only supports this api in drag-and-drop scenarios using the the datatransferitem.webkitgetasentry() method.
FileSystemDirectoryEntry.createReader() - Web APIs
the filesystemdirectoryentry interface's method createreader() returns a filesystemdirectoryreader object which can be used to read the entries in the directory.
... the filesystemdirectoryentry interface's method createreader() returns a filesystemdirectoryreader object which can be used to read the entries in the directory.
FileSystemEntry.getParent() - Web APIs
the filesystementry interface's method getparent() obtains a filesystemdirectoryentry.
..., function(error) { console.error("an error occurred: unable to rename " + fileentry.name + " to newname.html."); }); this is accomplished by first obtaining a filesystemdirectoryentry object representing the directory the file is currently located in.
FileSystemFlags - Web APIs
the filesystemflags dictionary defines a set of values which are used when specifying option flags when calling certain methods in the file and directory entries api.
... the filesystemflags dictionary defines a set of values which are used when specifying option flags when calling certain methods in the file and directory entries api.
FontFace - Web APIs
Web › API › FontFace
erange a cssomstring that retrieves or sets the range of unicode codepoints encompassing the font.
... the range of unicode codepoints encompassing the font.
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.
FormData.entries() - Web APIs
Web › API › FormData › entries
the formdata.entries() method returns an iterator allowing to go through all key/value pairs contained in this object.
... the formdata.entries() method returns an iterator allowing to go through all key/value pairs contained in this object.
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.
FormData.keys() - Web APIs
Web › API › FormData › keys
the formdata.keys() method returns an iterator allowing to go through all keys contained in this object.
... the formdata.keys() method returns an iterator allowing to go through all keys contained in this object.
FormData.values() - Web APIs
Web › API › FormData › values
the formdata.values() method returns an iterator allowing to go through all values contained in this object.
... the formdata.values() method returns an iterator allowing to go through all values contained in this object.
FormData - Web APIs
Web › API › FormData
the formdata interface provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the xmlhttprequest.send() method.
...you want to generate query parameters in the way a <form> would do if it were using simple get submission.
Using the Frame Timing API - Web APIs
e("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.
... console.log("unexpected performance entry type: " + perfentries[i].entrytype); } } }); // observe frame, mark, measure and resource events observe_frame.observe({entrytypes: ['frame', 'mark', 'measure', 'resource']}); accessing frame data when a frame observer is invoked, the observer callback is given one argument that is a performanceobserverentrylist object.
Using the Gamepad API - Web APIs
the gamepad api is a way for developers and designers to access and use gamepads and other game controllers.
...irable for games or other interactive web pages that need to know the state of a gamepad now vs.
Geolocation.clearWatch() - Web APIs
the geolocation.clearwatch() method is used to unregister location/error monitoring handlers previously installed using geolocation.watchposition().
... the geolocation.clearwatch() method is used to unregister location/error monitoring handlers previously installed using geolocation.watchposition().
GeolocationCoordinates - Web APIs
es represents true north, and the direction is determined clockwise (which means that east is 90 degrees and west is 270 degrees).
...at east is 90 degrees and west is 270 degrees).
GeolocationPosition - Web APIs
ng the earth, but also its altitude and its speed.
...osition interface doesn't inherit any properties.
GeolocationPositionError - Web APIs
e allowed to acquire the geolocation, defined by positionoptions.timeout information was reached before the information was obtained.
... was reached before the information was obtained.
GlobalEventHandlers.onpointerdown - Web APIs
ong>"; evt.preventdefault(); } this simply uses onpointerdown to establish the function handledown() as the event handler for pointer down events.
...up = handleup; function handleup(evt) { targetbox.innerhtml = "tap me, click me, or touch me!"; evt.preventdefault(); } this code's job is to just restore the original text into the target box after the user's interaction with the element ends (for example, when they release the mouse button, or when they lift the stylus or finger from the screen).
GlobalEventHandlers - Web APIs
led when a transitionrun event is sent, indicating that a css transition is running, though not nessarilty started.
...ent, indicating that a css transition is running, though not nessarilty started.
Audio() - Web APIs
udioelement object, configured to be used for playing back the audio from the file specified by url.the new object's preload property is set to auto and its src property is set to the specified url or null if no url is given.
...ack the audio from the file specified by url.the new object's preload property is set to auto and its src property is set to the specified url or null if no url is given.
HTMLCanvasElement.captureStream() - Web APIs
the htmlcanvaselement capturestream() method returns a mediastream which includes a canvascapturemediastreamtrack containing a real-time video capture of the canvas's contents.
...s's contents.
HTMLCanvasElement.mozFetchAsStream() - Web APIs
the htmlcanvaselement.mozfetchasstream() internal method used to create a new input stream that, when ready, would provide the contents of the canvas as image data.
... the htmlcanvaselement.mozfetchasstream() internal method used to create a new input stream that, when ready, would provide the contents of the canvas as image data.
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.
...element on the page, then uses a filereader to read the image data from the file.
HTMLCollection - Web APIs
the htmlcollection interface represents a generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list.
...e list.
HTMLContentElement - Web APIs
the htmlcontentelement interface represents a <content> html element, which is used in shadow dom.
...element interface represents a <content> html element, which is used in shadow dom.
HTMLDialogElement.returnValue - Web APIs
ent interface gets or sets the return value for the <dialog>, usually to indicate which button the user pressed to close it.
....returnvalue = 'myreturnvalue'; var myreturnvalue = dialoginstance.returnvalue; value a domstring representing the returnvalue of the dialog.
HTMLElement.forceSpellCheck() - Web APIs
the forcespellcheck() method of the htmlelement interface forces a spelling and grammar check on html elements, even if the user has not focused on the elements.
... the forcespellcheck() method of the htmlelement interface forces a spelling and grammar check on html elements, even if the user has not focused on the elements.
HTMLIFrameElement - Web APIs
the htmliframeelement interface provides special properties and methods (beyond those of the htmlelement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements.
...oving an <iframe>'s src attribute (e.g.
HTMLImageElement - Web APIs
the htmlimageelement interface represents an html <img> element, providing the properties and methods used to manipulate image elements.
...wsrc a usvstring specifying the url of a low-quality (but faster to load) version of the same image.
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.
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.
HTMLKeygenElement - Web APIs
note: this page describes the keygen element interface as specified, not as currently implemented by gecko.
... control does not satisfy (if any).
HTMLMediaElement.load() - Web APIs
the htmlmediaelement method load() resets the media element to its initial state and begins the process of selecting a media source and loading the media in preparation for playback to begin at the beginning.
... the htmlmediaelement method load() resets the media element to its initial state and begins the process of selecting a media source and loading the media in preparation for playback to begin at the beginning.
HTMLObjectElement.setCustomValidity - Web APIs
the setcustomvalidity() method of the htmlobjectelement interface sets a custom validity message for the element.
...idity message for the element.
HTMLSelectElement.remove() - Web APIs
the htmlselectelement.remove() method removes the element at the specified index from the options collection for this select element.
... the htmlselectelement.remove() method removes the element at the specified index from the options collection for this select element.
HTMLShadowElement - Web APIs
th="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlshadowelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface inherits the properties of htmlelement.
...troke="#d4dde4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlshadowelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface inherits the properties of htmlelement.
HTMLTableCaptionElement - Web APIs
ospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmltablecaptionelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
..." text-anchor="middle" alignment-baseline="middle">htmltablecaptionelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLTableElement.createCaption() - Web APIs
the htmltableelement.createcaption() method returns the <caption> element associated with a given <table>.
... the htmltableelement.createcaption() method returns the <caption> element associated with a given <table>.
HTMLTableElement.createTFoot() - Web APIs
the htmltableelement.createtfoot() method returns the <tfoot> element associated with a given <table>.
... the htmltableelement.createtfoot() method returns the <tfoot> element associated with a given <table>.
HTMLTableElement.createTHead() - Web APIs
the htmltableelement.createthead() method returns the <thead> element associated with a given <table>.
... the htmltableelement.createthead() method returns the <thead> element associated with a given <table>.
HTMLTableElement.deleteCaption() - Web APIs
the htmltableelement.deletecaption() method removes the <caption> element from a given <table>.
... the htmltableelement.deletecaption() method removes the <caption> element from a given <table>.
HTMLTemplateElement - Web APIs
ndale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmltemplateelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface inherits the properties of htmlelement.
...text-anchor="middle" alignment-baseline="middle">htmltemplateelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface inherits the properties of htmlelement.
onMSVideoFormatChanged - Web APIs
y also be large incompatibilities between implementations and the behavior may change in the future.
...he future.
onMSVideoFrameStepCompleted - Web APIs
entations and the behavior may change in the future.
...event which occurs when the video frame has been stepped forward or backward one frame.
onMSVideoOptimalLayoutChanged - Web APIs
tween implementations and the behavior may change in the future.
...anged is an event which occurs when the msislayoutoptimalforplayback state changes.
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.
Headers.entries() - Web APIs
Web › API › Headers › entries
the headers.entries() method returns an iterator allowing to go through all key/value pairs contained in this object.
... the headers.entries() method returns an iterator allowing to go through all key/value pairs contained in this object.
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.
...in the headers object, it returns null.
Headers.getAll() - Web APIs
Web › API › Headers › getAll
obsolete since gecko 52 (firefox 52 / thunderbird 52 / seamonkey 2.49)this feature is obsolete.
... object, it returns an empty array.
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.
... returns a boolean stating whether a headers object contains a certain header.
Headers.keys() - Web APIs
Web › API › Headers › keys
the headers.keys() method returns an iterator allowing to go through all keys contained in this object.
... the headers.keys() method returns an iterator allowing to go through all keys contained in this object.
Headers.set() - Web APIs
Web › API › Headers › set
the set() method of the headers interface sets a new value for an existing header inside a headers object, or adds the header if it does not already exist.
...pend appends the new value to the end of the set of values.
Headers.values() - Web APIs
Web › API › Headers › values
the headers.values() method returns an iterator allowing to go through all values contained in this object.
... the headers.values() method returns an iterator allowing to go through all values contained in this object.
History.forward() - Web APIs
Web › API › History › forward
the history.forward() method causes the browser to move forward one page in the session history.
... the history.forward() method causes the browser to move forward one page in the session history.
History.go() - Web APIs
Web › API › History › go
the history.go() method loads a specific page from the session history.
... the history.go() method loads a specific page from the session history.
History.state - Web APIs
Web › API › History › state
the history.state property returns a value representing the state at the top of the history stack.
...a value representing the state at the top of the history stack.
Ajax navigation example - Web APIs
302: "found", 303: "see other", 304: "not modified", 305: "use proxy", 306: "reserved", 307: "temporary redirect", 308: "permanent redirect", 400: "bad request", 401: "unauthorized", 402: "payment required", 403: "forbidden", 404: "not found", 405: "method not allowed", 406: "not acceptable", 407: "proxy authentication required", 408: "request timeout", 409: "conflict", 410: "gone", 411: "length required", 412: "precondition failed", 413: "request entity too large", 414: "request-uri too long", 415: "unsupported media type", ...
...er.appendchild(oloadingimg); oloadingbox.appendchild(ocover); onpopstate = function (oevent) { bupdateurl = false; opageinfo.title = oevent.state.title; opageinfo.url = oevent.state.url; getpage(); }; window.addeventlistener ?
IDBCursor.advance() - Web APIs
Web › API › IDBCursor › advance
the advance() method of the idbcursor interface sets the number of times a cursor should move its position forward.
... the advance() method of the idbcursor interface sets the number of times a cursor should move its position forward.
IDBCursor.continue() - Web APIs
the continue() method of the idbcursor interface advances the cursor to the next position along its direction, to the item whose key matches the optional key parameter.
...cursor interface advances the cursor to the next position along its direction, to the item whose key matches the optional key parameter.
IDBCursor.delete() - Web APIs
Web › API › IDBCursor › delete
the delete() method of the idbcursor interface returns an idbrequest object, and, in a separate thread, deletes the record at the cursor's position, without changing the cursor's position.
...at you can't call delete() (or idbcursor.update()) on cursors obtained from idbindex.openkeycursor().
IDBCursor.update() - Web APIs
Web › API › IDBCursor › update
the update() method of the idbcursor interface returns an idbrequest object, and, in a separate thread, updates the value at the current position of the cursor in the object store.
...obtained from idbindex.openkeycursor().
IDBDatabase - Web APIs
e read only a domstring that contains the name of the connected database.
...be stored inside an indexeddb database.
IDBIndex.count() - Web APIs
Web › API › IDBIndex › count
the count() method of the idbindex interface returns an idbrequest object, and in a separate thread, returns the number of records within a key range.
...eparate thread, returns the number of records within a key range.
IDBIndex.get() - Web APIs
Web › API › IDBIndex › get
the get() method of the idbindex interface returns an idbrequest object, and, in a separate thread, finds either the value in the referenced object store that corresponds to the given key or the first corresponding value, if key is set to an idbkeyrange.
...is associated with.
IDBIndex.getAll() - Web APIs
Web › API › IDBIndex › getAll
the getall() method of the idbindex interface retrieves all objects that are inside the index.
...ng, the browser will use an unbound key range.
IDBIndex.getAllKeys() - Web APIs
the getallkeys() method of the idbindex interface instantly retrieves the primary keys of all objects inside the index, setting them as the result of the request object.
...ng, the browser will use an unbound key range.
IDBIndex.getKey() - Web APIs
Web › API › IDBIndex › getKey
the getkey() method of the idbindex interface returns an idbrequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an idbkeyrange.
...idbindex.get does.
IDBIndex.multiEntry - Web APIs
the multientry read-only property of the idbindex interface returns a boolean value that affects how the index behaves when the result of evaluating the index's key path yields an array.
... the multientry read-only property of the idbindex interface returns a boolean value that affects how the index behaves when the result of evaluating the index's key path yields an array.
IDBIndex.unique - Web APIs
Web › API › IDBIndex › unique
the unique read-only property returns a boolean that states whether the index allows duplicate keys.
... the unique read-only property returns a boolean that states whether the index allows duplicate keys.
IDBKeyRange.bound() - Web APIs
Web › API › IDBKeyRange › bound
the bound() method of the idbkeyrange interface creates a new key range with the specified upper and lower bounds.
...r specifies the lower bound of the new key range.
IDBKeyRange.lowerBound() - Web APIs
the lowerbound() method of the idbkeyrange interface creates a new key range with only a lower bound.
...re is available in web workers.
IDBKeyRange.only() - Web APIs
Web › API › IDBKeyRange › only
the only() method of the idbkeyrange interface creates a new key range containing a single value.
... the only() method of the idbkeyrange interface creates a new key range containing a single value.
IDBKeyRange.upperBound() - Web APIs
the upperbound() method of the idbkeyrange interface creates a new upper-bound key range.
...r endpoint value and is closed.
IDBMutableFile - Web APIs
ge in the future.
... object is created using the idbdatabase.createmutablefile method.
IDBObjectStore.clear() - Web APIs
the clear() method of the idbobjectstore interface creates and immediately returns an idbrequest object, and clears this object store in a separate thread.
...from the object store and removing all records in indexes that reference the object store.
IDBObjectStore.count() - Web APIs
the count() method of the idbobjectstore interface returns an idbrequest object, and, in a separate thread, returns the total number of records that match the provided key or idbkeyrange.
...l number of records in the store.
IDBObjectStore.getKey() - Web APIs
the getkey() method of the idbobjectstore interface returns an idbrequest object, and, in a separate thread, returns the key selected by the specified query.
...fully found, then a structured clone of it is created and set as the result of the request object.
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.
...store 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.
IDBObjectStore.openCursor() - Web APIs
the opencursor() method of the idbobjectstore interface returns an idbrequest object, and, in a separate thread, returns a new idbcursorwithvalue object.
...f nothing is passed, this will default to a key range that selects all the records in this object store.
IDBObjectStore.openKeyCursor() - Web APIs
the openkeycursor() method of the idbobjectstore interface returns an idbrequest object whose result will be set to an idbcursor that can be used to iterate through matching results.
...f nothing is passed, this will default to a key range that selects all the records in this object store.
IDBTransaction.abort() - Web APIs
the abort() method of the idbtransaction interface rolls back all the changes to objects in the database associated with this transaction.
... the abort() method of the idbtransaction interface rolls back all the changes to objects in the database associated with this transaction.
IIRFilterNode.getFrequencyResponse() - Web APIs
the getfrequencyresponse() method of the iirfilternode interface takes the current filtering algorithm's settings and calculates the frequency response for frequencies specified in a specified array of frequencies.
... the getfrequencyresponse() method of the iirfilternode interface takes the current filtering algorithm's settings and calculates the frequency response for frequencies specified in a specified array of frequencies.
IdleDeadline - Web APIs
the idledeadline interface is used as the data type of the input parameter to idle callbacks established by calling window.requestidlecallback().
...dtimeout, which lets you determine if your callback is executing because its timeout duration expired.
ImageBitmap - Web APIs
the imagebitmap interface represents a bitmap image which can be drawn to a <canvas> without undue latency.
...objects using the createimagebitmap() factory method.
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.
Browser storage limits and eviction criteria - Web APIs
ose the last private browsing window.
...y used (lru policy) when storage limits are reached.
Checking when a deadline is due - Web APIs
function checkdeadlines() { var now = new date(); first we grab the current date and time by creating a blank date object.
...low), and year (getfullyear() is needed; getyear() is deprecated, and returns a weird value that is not much use to anyone!) var objectstore = db.transaction(['todolist'], "readwrite").objectstore('todolist'); objectstore.opencursor().onsuccess = function(event) { var cursor = event.target.result; if(cursor) { next we create another indexeddb objectstore, and use the opencursor() method to open a cursor, which is basically a way in indexeddb to iterate through all the items in the store.
InputEvent - Web APIs
data being added to or removed from editable content.
...om editable content.
InstallEvent - Web APIs
e53" text-anchor="middle" alignment-baseline="middle">installevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor installevent.installevent() creates a new installevent object.
...middle" alignment-baseline="middle">installevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor installevent.installevent() creates a new installevent object.
IntersectionObserver.unobserve() - Web APIs
the intersectionobserver method unobserve() instructs the intersectionobserver to stop observing the specified target element.
... the intersectionobserver method unobserve() instructs the intersectionobserver to stop observing the specified target element.
IntersectionObserverEntry - Web APIs
ting.
...y.rootbounds read only returns a domrectreadonly for the intersection observer's root.
Keyboard.lock() - Web APIs
Web › API › Keyboard › lock
the lock() method of the keyboard interface returns a promise after enabling the capture of keypresses for any or all of the keys on the physical keyboard.
... the lock() method of the keyboard interface returns a promise after enabling the capture of keypresses for any or all of the keys on the physical keyboard.
Keyboard - Web APIs
Web › API › Keyboard
the keyboard interface of the the keyboard api provides functions that retrieve keyboard layout maps and toggle capturing of key presses from the physical keyboard.
...keyboard.getlayoutmap() returns a promise that resolves with an instance of keyboardlayoutmap which is a map-like object with functions for retrieving the strings associated with specific physical keys.
KeyframeEffect.setKeyframes() - Web APIs
the setkeyframes() method of the keyframeeffect interface replaces the keyframes that make up the affected keyframeeffect with a new set of keyframes.
...es.
KeyframeEffect - Web APIs
imated by this object.
...nimations that do not target a pseudo-element.
LinkStyle - Web APIs
Web › API › LinkStyle
the linkstyle interface provides access to the associated css style sheet of a node.
...cess to the associated css style sheet of a node.
Location: assign() - Web APIs
Web › API › Location › assign
the location.assign() method causes the window to load and display the document at the url specified.
...e location.assign() method causes the window to load and display the document at the url specified.
Location - Web APIs
Web › API › Location
followed by the parameters or "querystring" of the url.
...ly returns a usvstring containing the canonical form of the origin of the specific location.
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.
... the lockmanager interface of the the web locks api provides methods for requesting a new lock object and querying for an existing lock object.
LockedFile.flush() - Web APIs
Web › API › LockedFile › flush
non-standard this feature is non-standard and is not on a standards track.
... to ensure any change made to a file is properly written on disk.
LockedFile.readAsArrayBuffer() - Web APIs
non-standard this feature is non-standard and is not on a standards track.
...n production sites facing the web: it will not work for every user.
LockedFile.readAsText() - Web APIs
non-standard this feature is non-standard and is not on a standards track.
...ack.
LockedFile - Web APIs
only or readwrite.
... or not (false).
MSManipulationEvent - Web APIs
this feature is non-standard and is not on a standards track.
...e may also be large incompatibilities between implementations and the behavior may change in the future.
MediaDevices.getDisplayMedia() - Web APIs
the mediadevices interface's getdisplaymedia() method prompts the user to select and grant permission to capture the contents of a display or portion thereof (such as a window) as a mediastream.
...ery time.
MediaDevices - Web APIs
ted media input devices like cameras and microphones, as well as screen sharing.
...vices like cameras and microphones, as well as screen sharing.
MediaError - Web APIs
error condition which occurred; specifically, it isn't simply a summary of what the error code means, but actual diagnostic information to help in understanding what exactly went wrong.
...imply a summary of what the error code means, but actual diagnostic information to help in understanding what exactly went wrong.
MediaKeyMessageEvent - Web APIs
ediakeymessageevent.
...t.
MediaKeySystemAccess - Web APIs
the mediakeysystemaccess interface of the encryptedmediaextensions api provides access to a key system for decryption and/or a content protection provider.
... the mediakeysystemaccess interface of the encryptedmediaextensions api provides access to a key system for decryption and/or a content protection provider.
MediaList - Web APIs
Web › API › MediaList
the medialist interface represents the media queries of a stylesheet, e.g.
...attribute.
MediaQueryListEvent - Web APIs
uerylistevent() creates a new mediaquerylistevent instance.
...instance.
MediaRecorder.ondataavailable - Web APIs
last time a dataavailable event occurred is delivered in a blob; after this, capturing ends.
... is created and media capture continues into that blob.
MediaRecorder.pause() - Web APIs
the media.pause() method (part of the mediarecorder api) is used to pause recording of media streams.
... the media.pause() method (part of the mediarecorder api) is used to pause recording of media streams.
MediaRecorder.start() - Web APIs
the mediarecorder method start(), which is part of the mediastream recording api, begins recording media into one or more blob objects.
...ill raise a domerror event, followed by a mediarecorder.dataavailable event containing the blob it has gathered, followed by the mediarecorder.stop event.
MediaRecorderErrorEvent - Web APIs
ent object that encapsulates a reference to a domexception describing the error that occurred.
...capsulates a reference to a domexception describing the error that occurred.
MediaSession.setPositionState() - Web APIs
the mediasession method setpositionstate() is used to update the current document's media playback position and speed for presentation by user's device in any kind of interface that provides details about ongoing media.
... the mediasession method setpositionstate() is used to update the current document's media playback position and speed for presentation by user's device in any kind of interface that provides details about ongoing media.
MediaSession - Web APIs
wser on that device might deliver the metadata provided by calling mediasession to the device in order to be controllable using the global user interface.
...trollable using the global user interface.
MediaStream.addTrack() - Web APIs
the mediastream.addtrack() method adds a new track to the stream.
... the mediastream.addtrack() method adds a new track to the stream.
MediaStream.getTrackById() - Web APIs
the mediastream.gettrackbyid() method returns a mediastreamtrack object representing the track with the specified id string.
... the mediastream.gettrackbyid() method returns a mediastreamtrack object representing the track with the specified id string.
MediaStream - Web APIs
s denoting a universally unique identifier (uuid) for the object.
...dentifier (uuid) for the object.
MediaStreamEvent - Web APIs
being an event, this event also implements these properties.
...taining the stream associated with the event.
MouseScrollEvent - Web APIs
the mousescrollevent interface represents events that occur due to the user moving a mouse wheel or similar input device.
...argetarg, in long axis); attributes attribute type description axis read only long indicates scroll direction.
MutationObserver.disconnect() - Web APIs
the mutationobserver method disconnect() tells the observer to stop watching for mutations.
... the mutationobserver method disconnect() tells the observer to stop watching for mutations.
MutationObserver.observe() - Web APIs
the mutationobserver method observe() configures the mutationobserver callback to begin receiving notifications of changes to the dom that match the given options.
... occur after the connection is severed and before you have a chance to specifically begin monitoring the moved node or subtree for changes.
NDEFReader.scan() - Web APIs
Web › API › NDEFReader › scan
the scan() method of ndefreader interface reads ndef records from compatible nfc devices, e.g., ndef nfc tags.
...matching each ndefrecord.id.
NDEFReader - Web APIs
es if no parameters are specified.
... in addition to the properties listed below, ndefreader inherits properties from its parent interface, eventtarget.
NDEFReadingEvent - Web APIs
() creates an ndefreadingevent event with the given parameters.
...freadingevent event with the given parameters.
NDEFRecord.toRecords() - Web APIs
the torecords() method of the ndefrecord interface of web nfc api parses record payload ndefrecord.data besed on ndefrecord.recordtype and returns the result.
... the torecords() method of the ndefrecord interface of web nfc api parses record payload ndefrecord.data besed on ndefrecord.recordtype and returns the result.
NDEFWriter.write() - Web APIs
Web › API › NDEFWriter › write
the write() method of ndefwriter interface writes a specified message to a compatiable nfc tag.
...reading for the activated reader objects.
NamedNodeMap - Web APIs
o-updated if changes are made to its contents internally or elsewhere.
...s internally or elsewhere.
NavigationPreloadManager - Web APIs
the navigationpreloadmanager interface of the the service worker api provides methods for managing the preloading of resources with a service worker.
... the navigationpreloadmanager interface of the the service worker api provides methods for managing the preloading of resources with a service worker.
NavigatorConcurrentHardware - Web APIs
owser may, however, choose to reduce the number in order to represent more accurately the number of workers that can run at once properties navigatorconcurrenthardware.hardwareconcurrency read only returns the number of logical processors which may be available to the user agent.
...er to represent more accurately the number of workers that can run at once properties navigatorconcurrenthardware.hardwareconcurrency read only returns the number of logical processors which may be available to the user agent.
NavigatorPlugins.javaEnabled() - Web APIs
this method indicates whether the current browser is java-enabled or not.
... this method indicates whether the current browser is java-enabled or not.
NetworkInformation - Web APIs
ser agent.
...ad only returns the type of connection a device is using to communicate with the network.
Node.cloneNode() - Web APIs
Web › API › Node › cloneNode
the node.clonenode() method returns a duplicate of the node on which this method was called.
... the node.clonenode() method returns a duplicate of the node on which this method was called.
Node.getUserData() - Web APIs
Web › API › Node › getUserData
the node.getuserdata() method returns any user domuserdata set previously on the given node by node.setuserdata().
... the node.getuserdata() method returns any user domuserdata set previously on the given node by node.setuserdata().
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.
...me name which can be passed to the method hasfeature on domimplementation.
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).
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.namespaceURI - Web APIs
Web › API › Node › namespaceURI
creation time.
...e uri for html elements in html documents is null.
NodeIterator.filter - Web APIs
the nodeiterator.filter read-only method returns a nodefilter object, that is an object implement an acceptnode(node) method, used to screen nodes.
... the nodeiterator.filter read-only method returns a nodefilter object, that is an object implement an acceptnode(node) method, used to screen nodes.
Notification.close() - Web APIs
note: this feature is available in web workers.
... note: this feature is available in web workers.
Notification.requestPermission() - Web APIs
note: this feature is available in web workers.
... not available in sharedworker note: safari still uses the callback syntax to get the permission.
NotificationEvent - Web APIs
otificationevent.notification read only returns a notification object representing the notification that was clicked to fire the event.
...otification read only returns a notification object representing the notification that was clicked to fire the event.
Notifications API - Web APIs
e api is designed to be compatible with existing notification systems, across different platforms.
...orker api, to allow service workers to fire notifications.
OES_element_index_uint - Web APIs
the oes_element_index_uint extension is part of the webgl api and adds support for gl.unsigned_int types to webglrenderingcontext.drawelements().
... for gl.unsigned_int types to webglrenderingcontext.drawelements().
OES_standard_derivatives - Web APIs
the oes_standard_derivatives extension is part of the webgl api and adds the glsl derivative functions dfdx, dfdy, and fwidth.
...e webgl tutorial.
OES_texture_float_linear - Web APIs
the oes_texture_float_linear extension is part of the webgl api and allows linear filtering with floating-point pixel types for textures.
...ons in the webgl tutorial.
OES_texture_half_float_linear - Web APIs
the oes_texture_half_float_linear extension is part of the webgl api and allows linear filtering with half floating-point pixel types for textures.
... webgl tutorial.
OVR_multiview2 - Web APIs
t for rendering into multiple views simultaneously.
...s currently the maximum number of views supported by multiview.
OfflineAudioCompletionEvent - Web APIs
artrendering is supported in browsers, which will no longer need it.
...pported in browsers, which will no longer need it.
OfflineAudioContext.OfflineAudioContext() - Web APIs
d to render audio to an audiobuffer rather than to an audio output device.
...44100hz, which is the sample rate used by cd audio.
OfflineAudioContext.startRendering() - Web APIs
the startrendering() method of the offlineaudiocontext interface starts rendering the audio graph, taking into account the current connections and the current scheduled changes.
...ering() method of the offlineaudiocontext interface starts rendering the audio graph, taking into account the current connections and the current scheduled changes.
OrientationSensor - Web APIs
the orientationsensor interface of the the sensor apis is the base class for orientation sensors.
... see feature-policy for implementation instructions.
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.
... ctx.fillstyle = color; ctx.rect(x * size, y * size, size, size); ctx.fill(); } } } } // register our class under a specific name registerpaint('checkerboard', checkerboardpainter); the first step in using a paintworket is defining the paint worklet using the registerpaint() function, as done above.
PannerNode.distanceModel - Web APIs
duced by the distance according to: pow((math.max(distance, refdistance) / refdistance, -rollofffactor).
...ut our panner-node example (view the source code) — this demo transports you to the 2.5d "room of metal", where you can play a track on a boom box and then walk around the boom box to see how the sound changes!
PannerNode.maxDistance - Web APIs
efault value is 10000.
...ut our panner-node example (view the source code) — this demo transports you to the 2.5d "room of metal", where you can play a track on a boom box and then walk around the boom box to see how the sound changes!
PannerNode.panningModel - Web APIs
default value.
...ut our panner-node example (view the source code) — this demo transports you to the 2.5d "room of metal", where you can play a track on a boom box and then walk around the boom box to see how the sound changes!
ParentNode.querySelector() - Web APIs
the parentnode mixin defines the queryselector() method as returning an element representing the first element matching the specified group of selectors which are descendants of the object on which the method was called.
... the parentnode mixin defines the queryselector() method as returning an element representing the first element matching the specified group of selectors which are descendants of the object on which the method was called.
Path2D.addPath() - Web APIs
Web › API › Path2D › addPath
the path2d.addpath() method of the canvas 2d api adds one path2d object to another path2d object.
...a path2d path to add.
Path2D - Web APIs
Web › API › Path2D
the path2d interface of the canvas 2d api is used to declare a path that can then be used on a canvasrenderingcontext2d object.
... the path2d interface of the canvas 2d api is used to declare a path that can then be used on a canvasrenderingcontext2d object.
PaymentDetailsBase - Web APIs
never directly used by developers and is included here only to be used as the basis for those documents.
...es displayitemsoptional an array of paymentitem objects, each describing one line item for the payment request.
PaymentRequest.prototype.id - Web APIs
Web › API › PaymentRequest › id
an custom id via paymentdetailsinit dictionary's id member.
...e shows how to give a paymentrequest instance a custom id.
PaymentResponse.onpayerdetailchange - Web APIs
vent 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.
... const errors = await promise.all(promisestovalidate).then(results => results.reduce((errors, result), object.assign(errors, result)) ); // if we found any errors, wait for them to be corrected if (object.getownpropertynames(errors).length) { await response.retry(errors); } else { // we have a good payment; send the data to the server await fetch("/pay-for-things/", { method: "post", body: response.json() }); response.complete("success"); } }; await response.retry({ payer: { email: "invalid domain.", phone: "invalid number.", }, }); specifications specification status comment payment request apithe definition of 'onpayerdetailchange' in that specification.
performance.setResourceTimingBufferSize() - Web APIs
the setresourcetimingbuffersize() method sets the browser's resource timing buffer size to the specified number of "resource" performance entry type objects.
...y type objects.
PerformanceEventTiming - Web APIs
touchcancel properties performanceeventtiming.processingstart returns the time at which event dispatch started.
...mestamp); }, {once: true}); // sends the passed data to an analytics endpoint.
PerformanceFrameTiming - Web APIs
"frame" performance entry types) by qualifying and constraining the properties as follows: performanceentry.entrytype returns "frame".
...s) by qualifying and constraining the properties as follows: performanceentry.entrytype returns "frame".
PerformanceMark - Web APIs
nceentry properties by qualifying/constraining the properties as follows: performanceentry.entrytype returns "mark".
...ng/constraining the properties as follows: performanceentry.entrytype returns "mark".
PerformanceMeasure - Web APIs
erformanceentry.name returns the name given to the measure when it was created via a call to performance.measure().
...he name given to the measure when it was created via a call to performance.measure().
PerformanceNavigationTiming - Web APIs
the performancenavigationtiming interface provides methods and properties to store and retrieve metrics regarding the browser's document navigation events.
...ntiming.unloadeventend read only a domhighrestimestamp representing the time value equal to the time immediately after the user agent finishes the unload event of the previous document.
PeformanceObserver.disconnect() - Web APIs
the disconnect() method of the performanceobserver interface is used to stop the performance observer from receiving any performance entry events.
...// ...
PerformanceObserver.observe() - Web APIs
the observe() method of the performanceobserver interface is used to specify the set of performance entry types to observe.
..."]}); function perf_observer(list, observer) { // process the "measure" event } var observer2 = new performanceobserver(perf_observer); observer2.observe({entrytypes: ["measure"]}); specifications specification status comment performance timeline level 2the definition of 'observe()' in that specification.
PerformanceObserver.takeRecords() - Web APIs
the takerecords() method of the performanceobserver interface returns the current list of performance entries stored in the performance observer, emptying it out.
...serve({entrytypes: ["mark", "frame"]}); var records = observer.takerecords(); console.log(records[0].name); console.log(records[0].starttime); console.log(records[0].duration); specifications specification status comment performance timeline level 2the definition of 'takerecords()' in that specification.
PerformanceObserverEntryList - Web APIs
the performanceobserverentrylist interface is a list of peformance events that were explicitly observed via the observe() method.
... the performanceobserverentrylist interface is a list of peformance events that were explicitly observed via the observe() method.
PerformancePaintTiming - Web APIs
but it extends the following performanceentry properties (for "paint" performance entry types) by qualifying and constraining the properties as follows: performanceentry.entrytype returns "paint".
...erformanceentry properties (for "paint" performance entry types) by qualifying and constraining the properties as follows: performanceentry.entrytype returns "paint".
PerformanceTiming - Web APIs
ing readystatechange event is thrown.
...oadeventstart read only when the load event was sent for the current document.
Permissions.revoke() - Web APIs
the permissions.revoke() method of the permissions interface reverts a currently set permission back to its default state, which is usually prompt.
... the permissions.revoke() method of the permissions interface reverts a currently set permission back to its default state, which is usually prompt.
Permissions API - Web APIs
available on the navigator object, both in the standard browsing context and the worker context (workernavigator — so permission checks are available inside workers), and returns a permissions object that provides access to the permissions api functionality.
...cation finder.
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.
...perty.
PointerEvent - Web APIs
d the x axis.
...event handler for the pointerleave event.
Pointer events - Web APIs
re ongotpointercapture fired when an element receives pointer capture.
...vents for adjacent elements.
ProgressEvent.initProgressEvent() - Web APIs
the progressevent.initprogressevent() method initializes an animation event created using the deprecated document.createevent("progressevent") method.
... the progressevent.initprogressevent() method initializes an animation event created using the deprecated document.createevent("progressevent") method.
PublicKeyCredential.getClientExtensionResults() - Web APIs
getclientextensionresults() is a method of the publickeycredential interface that returns an arraybuffer which contains a map between the extensions identifiers and their results after having being processed by the client.
...for different extensions which are respectively given by publickeycredentialcreationoptions.extensions and publickeycredentialrequestoptions.extensions.
PushEvent - Web APIs
Web › API › PushEvent
al scope of a serviceworker.
...iceworker.
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.
RTCErrorEvent - Web APIs
rorevent object.
...erties in addition to the standard properties available on the event interface, rtcerrorevent also includes the following: error read only an rtcerror object specifying the error which occurred; this object includes the type of error that occurred, information about where the error occurred (such as which line number in the sdp or what sctp cause code was at issue).
RTCIdentityErrorEvent - Web APIs
p read only is a domstring describing the domain name of the identity provider (idp) generating the error response.
...nt.loginurl read only is a domstring giving the url where the user can complete the authentication.
RTCIdentityEvent - Web APIs
e following name: rtcpeerconnectionidentityevent.
...ction, once spec and implementation will have been stabilized.
RTCPeerConnection.addIceCandidate() - Web APIs
ther missing or an empty string (""), it signals that all remote candidates have been delivered.
...d the ice candidate fails.
RTCPeerConnection.createOffer() - Web APIs
the createoffer() method of the rtcpeerconnection interface initiates the creation of an sdp offer for the purpose of starting a new webrtc connection to a remote peer.
...ion object containing the newly-created offer.
RTCPeerConnection.generateCertificate() - Web APIs
the generatecertificate() method of the rtcpeerconnection interface creates and stores an x.509 certificate and corresponding private key then returns an rtccertificate, providing access to it.
...e() method of the rtcpeerconnection interface creates and stores an x.509 certificate and corresponding private key then returns an rtccertificate, providing access to it.
RTCPeerConnection.getConfiguration() - Web APIs
the rtcpeerconnection.getconfiguration() method returns an rtcconfiguration object which indicates the current configuration of the rtcpeerconnection on which the method is called.
...guration is the last configuration applied via setconfiguration(), or if setconfiguration() hasn't been called, the configuration the rtcpeerconnection was constructed with.
RTCPeerConnection.getSenders() - Web APIs
the rtcpeerconnection method getsenders() returns an array of rtcrtpsender objects, each of which represents the rtp sender responsible for transmitting one track's data.
... the rtcpeerconnection method getsenders() returns an array of rtcrtpsender objects, each of which represents the rtp sender responsible for transmitting one track's data.
RTCPeerConnection.removeStream() - Web APIs
the rtcpeerconnection.removestream() method removes a mediastream as a local source of audio or video.
... the rtcpeerconnection.removestream() method removes a mediastream as a local source of audio or video.
RTCPeerConnection.removeTrack() - Web APIs
the rtcpeerconnection.removetrack() method tells the local end of the connection to stop sending media from the specified track, without actually removing the corresponding rtcrtpsender from the list of senders as reported by rtcpeerconnection.getsenders().
... the rtcpeerconnection.removetrack() method tells the local end of the connection to stop sending media from the specified track, without actually removing the corresponding rtcrtpsender from the list of senders as reported by rtcpeerconnection.getsenders().
RTCPeerConnection.restartIce() - Web APIs
the webrtc api's rtcpeerconnection interface offers the restartice() method to allow a web application to easily request that ice candidate gathering be redone on both ends of the connection.
... the webrtc api's rtcpeerconnection interface offers the restartice() method to allow a web application to easily request that ice candidate gathering be redone on both ends of the connection.
RTCPeerConnection.setConfiguration() - Web APIs
the rtcpeerconnection.setconfiguration() method sets the current configuration of the rtcpeerconnection based on the values included in the specified rtcconfiguration object.
... the rtcpeerconnection.setconfiguration() method sets the current configuration of the rtcpeerconnection based on the values included in the specified rtcconfiguration object.
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.
...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.
RTCPeerConnectionIceErrorEvent - Web APIs
pecific string explaining the error.
... only an unsigned integer value giving the port number over which communication with the stun or turn server is taking place, using the ip address given in address.
RTCPeerConnectionIceEvent - Web APIs
s the rtcicecandidate containing the candidate associated with the event, or null if this event indicates that there are no further candidates to come.
...es to come.
RTCRtpReceiver - Web APIs
turns the mediastreamtrack associated with the current rtcrtpreceiver instance.
...stats() returns a promise whose fulfillment handler receives a rtcstatsreport which contains statistics about the incoming streams and their dependencies.
RTCRtpSender.replaceTrack() - Web APIs
the rtcrtpsender method replacetrack() replaces the track currently being used as the sender's source with a new mediastreamtrack.
...iation is required in this case.
RTCRtpSender.setStreams() - Web APIs
the rtcrtpsender method setstreams() associates the sender's track with the specified mediastream or array of mediastream objects.
... to the rtcpeerconnection to which the sender belongs.
RTCRtpStreamStats - Web APIs
the rtcrtpstreamstats dictionary is returned by the rtcpeerconnection.getstats(), rtcrtpsender.getstats(), and rtcrtpreceiver.getstats() methods to provide detailed statistics about webrtc connectivity.
... the rtcrtpstreamstats dictionary is returned by the rtcpeerconnection.getstats(), rtcrtpsender.getstats(), and rtcrtpreceiver.getstats() methods to provide detailed statistics about webrtc connectivity.
RTCRtpTransceiver.stop() - Web APIs
the stop() method in the rtcrtptransceiver interface permanently stops the transceiver by stopping both the associated rtcrtpsender and rtcrtpreceiver.
...rtptransceiver interface permanently stops the transceiver by stopping both the associated rtcrtpsender and rtcrtpreceiver.
RTCSessionDescription() - Web APIs
the rtcsessiondescription() constructor creates a new rtcsessiondescription with its properties initialized as described in the specified object.
...ption is used to roll back to the previous stable state.
RTCSessionDescription.toJSON() - Web APIs
the rtcsessiondescription.tojson() method generates a json description of the object.
... containing the following values: "type", containing the value of the rtcsessiondescription.type property and can be one of the following values: "offer", "answer", "pranswer" or null.
RTCSessionDescription - Web APIs
process begins with an offer being sent from the caller to the callee.
...r to the callee.
RadioNodeList - Web APIs
on retrieving the value property, the value of the currently checked radio button is returned as a string.
...e currently checked radio button is returned as a string.
Range.compareBoundaryPoints() - Web APIs
the range.compareboundarypoints() method compares the boundary points of the range with those of another range.
...mpares the boundary points of the range with those of another range.
Range.deleteContents() - Web APIs
the range.deletecontents() method removes the contents of the range from the document.
... 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.
... the range.detach() method does nothing.
Range.extractContents() - Web APIs
the range.extractcontents() method moves contents of the range from the document tree into a documentfragment.
... the range.extractcontents() method moves contents of the range from the document tree into a documentfragment.
Range.getBoundingClientRect() - Web APIs
the range.getboundingclientrect() method returns a domrect object that bounds the contents of the range; this is a rectangle enclosing the union of the bounding rectangles for all the elements in the range.
... the range.getboundingclientrect() method returns a domrect object that bounds the contents of the range; this is a rectangle enclosing the union of the bounding rectangles for all the elements in the range.
Range.surroundContents() - Web APIs
the range.surroundcontents() method moves content of the range into a new node, placing the new node at the start of the specified range.
... the range.surroundcontents() method moves content of the range into a new node, placing the new node at the start of the specified range.
ReadableStreamBYOBReader.cancel() - Web APIs
the cancel() method of the readablestreambyobreader interface cancels the stream, signaling a loss of interest in the stream by a consumer.
... the cancel() method of the readablestreambyobreader interface cancels the stream, signaling a loss of interest in the stream by a consumer.
ReadableStreamBYOBReader.releaseLock() - Web APIs
the releaselock() method of the readablestreambyobreader interface releases the reader's lock on the stream.
... the stream.
ReadableStreamDefaultController.error() - Web APIs
the error() method of the readablestreamdefaultcontroller interface causes any future interactions with the associated stream to error.
... the error() method of the readablestreamdefaultcontroller interface causes any future interactions with the associated stream to error.
ReadableStreamDefaultReader.cancel() - Web APIs
the cancel() method of the readablestreamdefaultreader interface cancels the stream, signaling a loss of interest in the stream by a consumer.
...cel is used when you've completely finished with the stream and don't need any more data from it, even if there are chunks enqueued waiting to be read.
ReadableStreamDefaultReader.releaseLock() - Web APIs
the releaselock() method of the readablestreamdefaultreader interface releases the reader's lock on the stream.
...reamdefaultreader interface releases the reader's lock on the stream.
RenderingContext - Web APIs
renderingcontext is a webidl typedef which can refer to any one of the interfaces that represent a graphics rendering context within a <canvas> element: canvasrenderingcontext2d, webglrenderingcontext, or webgl2renderingcontext.
... implementation perspective to have a shorthand that means "one of these interfaces." as such, renderingcontext is an implementation detail, and isn't something web developers directly use.
ReportingObserver - Web APIs
the reportingobserver interface of the reporting api allows you to collect and access reports.
...ailure); } else { navigator.getusermedia( constraints, success, failure); } this causes a deprecation report to be generated; because of the event handler we set up inside the reportingobserver() constructor, we can now click the button to display the report details.
Response.error() - Web APIs
Web › API › Response › error
the error() method of the response interface returns a new response object associated with a network error.
... the error() method of the response interface returns a new response object associated with a network error.
SVGAngle - Web APIs
Web › API › SVGAngle
cause value, valueinspecifiedunits, and unittype to be updated automatically to reflect this setting.
...face).
SVGAnimatedString - Web APIs
given attribute or property is being animated it contains the current animated value of the attribute or property.
...t animated value of the attribute or property.
SVGComponentTransferFunctionElement - Web APIs
nctionelement.amplitude read only an svganimatednumber corresponding to the amplitude attribute of the given element.
...er corresponding to the amplitude attribute of the given element.
SVGDefsElement - Web APIs
idth="2px" /><text x="191" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgdefselement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent, svggraphicselement.
...t-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgdefselement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its parent, svggraphicselement.
SVGExternalResourcesRequired - Web APIs
ds to the externalresourcesrequired attribute of the given element.
...ven element.
SVGFEDistantLightElement - Web APIs
{ fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement.
...s this interface also inherits properties from its parent interface, svgelement.
SVGFEFuncAElement - Web APIs
"6" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfefuncaelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface not provide any specific properties, but inherits properties from its parent interface, svgcomponenttransferfunctionelement.
...co,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfefuncaelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface not provide any specific properties, but inherits properties from its parent interface, svgcomponenttransferfunctionelement.
SVGFEFuncBElement - Web APIs
"6" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfefuncbelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface not provide any specific properties, but inherits properties from its parent interface, svgcomponenttransferfunctionelement.
...co,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfefuncbelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface not provide any specific properties, but inherits properties from its parent interface, svgcomponenttransferfunctionelement.
SVGFEFuncGElement - Web APIs
"6" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfefuncgelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface not provide any specific properties, but inherits properties from its parent interface, svgcomponenttransferfunctionelement.
...co,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfefuncgelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface not provide any specific properties, but inherits properties from its parent interface, svgcomponenttransferfunctionelement.
SVGFEFuncRElement - Web APIs
"6" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfefuncrelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface not provide any specific properties, but inherits properties from its parent interface, svgcomponenttransferfunctionelement.
...co,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfefuncrelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface not provide any specific properties, but inherits properties from its parent interface, svgcomponenttransferfunctionelement.
SVGFEMergeNodeElement - Web APIs
e mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfemergenodeelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement.
...alignment-baseline="middle">svgfemergenodeelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its parent interface, svgelement.
SVGFEPointLightElement - Web APIs
its properties from its parent interface, svgelement.
... svgfepointlightelement.x read only an svganimatednumber corresponding to the x attribute of the given element.
SVGFESpotLightElement - Web APIs
ement.pointatz read only an svganimatednumber corresponding to the pointatz attribute of the given element.
...ponding to the pointatz attribute of the given element.
SVGFilterElement - Web APIs
the svgfilterelement interface provides access to the properties of <filter> elements, as well as methods to manipulate them.
...n svganimatedlength that corresponds to the height attribute of the given <filter> element.
SVGFilterPrimitiveStandardAttributes - Web APIs
itivestandardattributes.width read only an svganimatedlength corresponding to the width attribute of the given element.
...edlength corresponding to the width attribute of the given element.
SVGGeometryElement.getPointAtLength() - Web APIs
the svggeometryelement.getpointatlength() method returns the point at a given distance along the path.
... the svggeometryelement.getpointatlength() method returns the point at a given distance along the path.
SVGGeometryElement.getTotalLength() - Web APIs
the svggeometryelement.gettotallength() method returns the user agent's computed value for the total length of the path in user units.
... the svggeometryelement.gettotallength() method returns the user agent's computed value for the total length of the path in user units.
SVGGraphicsElement - Web APIs
note: this interface was introduced in svg 2 and replaces the svglocatable and svgtransformable interfaces from svg 1.1.
...in svg 2 and replaces the svglocatable and svgtransformable interfaces from svg 1.1.
SVGImageElement - Web APIs
atio attribute of the given <image> element.
...ement.
SVGLengthList - Web APIs
g length list interface the svglengthlist defines a list of svglength objects.
... 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.
SVGNumber - Web APIs
Web › API › SVGNumber
ace corresponds to the <number> basic data type.
...svgnumber object can be designated as read only, which means that attempts to modify the object will result in an exception being thrown.
SVGNumberList - Web APIs
number list interface the svgnumberlist defines a list of svgnumber objects.
...tem) 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.
SVGPathElement.getTotalLength() - Web APIs
the svgpathelement.gettotallength() method returns the user agent's computed value for the total length of the path in user units.
... the svgpathelement.gettotallength() method returns the user agent's computed value for the total length of the path in user units.
SVGPathSegList - Web APIs
svg path segment list interface this interface defines a list of svgpathseg objects.
... normative document svg 1.1 (2nd edition) properties name type description numberofitemsread only unsigned long the number of items in the list.
SVGPointList - Web APIs
svg point list interface the svgpointlist defines a list of svgpoint objects.
...donly unsigned long numberofitems normative document svg 1.1 (2nd edition) properties name type description numberofitems unsigned long the number of items in the list.
SVGRenderingIntent - Web APIs
sponds to the value perceptual.
...nt_relative_colorimetric 3 corresponds to the value relative-colorimetric.
SVGStringList - Web APIs
svg string list interface the svgstringlist defines a list of domstring objects.
... 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.
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.
... readonly svganimatedstring classname readonly cssstyledeclaration style normative document svg 1.1 (2nd edition) properties name type description classname svganimatedstring corresponds to attribute class on the given element.
SVGTSpanElement - Web APIs
/><text x="-354" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgtspanelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't provide any specific properties, but inherits the properties from its parent, svgtextpositioningelement.
...="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgtspanelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't provide any specific properties, but inherits the properties from its parent, svgtextpositioningelement.
SVGTests - Web APIs
Web › API › SVGTests
es.
...attribute of the given element.
SVGTransformList - Web APIs
t interface the svgtransformlist defines a list of svgtransform objects.
...te() 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.
SVGURIReference - Web APIs
f read only an svganimatedstring that represents the value of the href attribute, and, on elements that are defined to support it, the deprecated xlink:href attribute.
... value of the href attribute, and, on elements that are defined to support it, the deprecated xlink:href attribute.
SVGUnitTypes - Web APIs
one of predefined types.
...efine a new value of this type or to attempt to switch an existing value to this type.
SVGZoomAndPan - Web APIs
redefined types.
...ew value of this type or to attempt to switch an existing value to this type.
ScrollToOptions - Web APIs
the scrolltooptions dictionary of the cssom view spec contains properties specifying where an element should be scrolled to, and whether the scrolling should be smooth.
...e a form that allows the user to enter three values — two numbers representing the left and top properties (i.e.
Selection.collapse() - Web APIs
the selection.collapse() method collapses the current selection to a single point.
... the selection.collapse() method collapses the current selection to a single point.
Selection.modify() - Web APIs
Web › API › Selection › modify
the selection.modify() method applies a change to the current selection or cursor position, using simple textual commands.
...ocumentboundary">document boundary</option> </select> <br><br> <button>extend selection</button> javascript let select = document.queryselector('select'); let button = document.queryselector('button'); button.addeventlistener('click', modify); function modify() { let selection = window.getselection(); selection.modify('extend', 'forward', select.value); } result specifications this method is not part of any specification.
Selection.selectionLanguageChange() - Web APIs
obsolete since gecko 29 (firefox 29 / thunderbird 29 / seamonkey 2.26)this feature is obsolete.
... obsolete since gecko 29 (firefox 29 / thunderbird 29 / seamonkey 2.26)this feature is obsolete.
Selection.setBaseAndExtent() - Web APIs
the setbaseandextent() method of the selection interface sets the selection to be a range including all or parts of two specified dom nodes, and any content located between them.
...e containing a single word.
Sensor - Web APIs
Web › API › Sensor
the sensor interface of the the sensor apis is the base class for all the other sensor interfaces.
...a reading.
ServiceWorker - Web APIs
the serviceworker.
...only returns the state of the service worker.
ServiceWorkerContainer.getRegistration() - Web APIs
the getregistration() method of the serviceworkercontainer interface gets a serviceworkerregistration object whose scope url matches the provided document url.
... the getregistration() method of the serviceworkercontainer interface gets a serviceworkerregistration object whose scope url matches the provided document url.
ServiceWorkerContainer.getRegistrations() - Web APIs
the getregistrations() method of the serviceworkercontainer interface gets all serviceworkerregistrations associated with a serviceworkercontainer, in an array.
... the getregistrations() method of the serviceworkercontainer interface gets all serviceworkerregistrations associated with a serviceworkercontainer, in an array.
ServiceWorkerContainer.register() - Web APIs
the register() method of the serviceworkercontainer interface creates or updates a serviceworkerregistration for the given scripturl.
... the register() method of the serviceworkercontainer interface creates or updates a serviceworkerregistration for the given scripturl.
ServiceWorkerGlobalScope.skipWaiting() - Web APIs
the serviceworkerglobalscope.skipwaiting() method of the serviceworkerglobalscope forces the waiting service worker to become the active service worker.
... the serviceworkerglobalscope.skipwaiting() method of the serviceworkerglobalscope forces the waiting service worker to become the active service worker.
ServiceWorkerMessageEvent - Web APIs
turns the origin of the service worker's environment settings object.
...f the service worker's environment settings object.
ShadowRoot - Web APIs
mixin.
...rome; other browsers still implement them on the document interface.
SharedWorkerGlobalScope.close() - Web APIs
the close() method of the sharedworkerglobalscope interface discards any tasks queued in the sharedworkerglobalscope's event loop, effectively closing this particular scope.
...ely closing this particular scope.
SharedWorkerGlobalScope: connect event - Web APIs
example shows a shared worker file — when a connection to the worker occurs from a main thread via a messageport, the onconnect event handler fires.
...nect = function(e) { var port = e.ports[0]; port.onmessage = function(e) { var workerresult = 'result: ' + (e.data[0] * e.data[1]); port.postmessage(workerresult); } port.start(); } for a complete running example, see our basic shared worker example (run shared worker.) addeventlistener equivalent you could also set up an event handler using the addeventlistener() method: self.addeventlistener('connect', function(e) { var port = e.ports[0]; port.onmessage = function(e) { var workerresult = 'result: ' + (e.data[0] * e.data[1]); port.postmessage(workerresult); } }); specifications specification status html living standardthe definition of 'connect event' in that specification.
SourceBuffer.appendBufferAsync() - Web APIs
the appendbufferasync() method of the sourcebuffer interface begins the process of asynchronously appending media segment data from an arraybuffer or arraybufferview object to the sourcebuffer.
... await msbuffer.appendbufferasync(buffer); } } catch(e) { handleexception(e); } } specifications not currently part of any specification.
SourceBuffer.remove() - Web APIs
the remove() method of the sourcebuffer interface removes media segments within a specific time range from the sourcebuffer.
... the remove() method of the sourcebuffer interface removes media segments within a specific time range from the sourcebuffer.
SourceBuffer.removeAsync() - Web APIs
the removeasync() method of the sourcebuffer interface starts the process of asynchronously removing from the sourcebuffer media segments found within a specific time range.
... the removeasync() method of the sourcebuffer interface starts the process of asynchronously removing from the sourcebuffer media segments found within a specific time range.
SourceBufferList - Web APIs
ufferlist</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties sourcebufferlist.length read only returns the number of sourcebuffer objects in the list.
...a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties sourcebufferlist.length read only returns the number of sourcebuffer objects in the list.
SpeechGrammarList - Web APIs
s of words that we want the recognition service to recognize.
...resent in a specific domstring within the code base (e.g.
SpeechRecognition - Web APIs
nitionresult.isfinal property is false.) speechrecognition.maxalternatives sets the maximum number of speechrecognitionalternatives provided per result.
... speechrecognition.maxalternatives sets the maximum number of speechrecognitionalternatives provided per result.
SpeechSynthesis.getVoices() - Web APIs
the getvoices() method of the speechsynthesis interface returns a list of speechsynthesisvoice objects representing all the available voices on the current device.
... the getvoices() method of the speechsynthesis interface returns a list of speechsynthesisvoice objects representing all the available voices on the current device.
SpeechSynthesis: voiceschanged event - Web APIs
the voiceschanged event of the web speech api is fired when the list of speechsynthesisvoice objects that would be returned by the speechsynthesis.getvoices() method has changed (when the voiceschanged event fires.) bubbles no cancelable no interface event event handler property onvoiceschanged examples this could be used to repopulate a list of voices that the user can choose between when the event fires.
... the speechsynthesis.getvoices() method has changed (when the voiceschanged event fires.) bubbles no cancelable no interface event event handler property onvoiceschanged examples this could be used to repopulate a list of voices that the user can choose between when the event fires.
SpeechSynthesisErrorEvent.error - Web APIs
the error property of the speechsynthesiserrorevent interface returns an error code indicating what has gone wrong with a speech synthesis attempt.
...thesiserrorevent interface returns an error code indicating what has gone wrong with a speech synthesis attempt.
SpeechSynthesisErrorEvent - Web APIs
contains information about any errors that occur while processing speechsynthesisutterance objects in the speech service.
...ects in the speech service.
SpeechSynthesisEvent - Web APIs
isevent.name read only 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.
...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.
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.
Storage - Web APIs
Web › API › Storage
l storage.
...cation, or deletion of stored data items.
StorageManager.estimate() - Web APIs
the estimate() method of the storagemanager interface asks the storage manager for how much storage the current origin takes up (usage), and how much space is available (quota).
... the estimate() method of the storagemanager interface asks the storage manager for how much storage the current origin takes up (usage), and how much space is available (quota).
StylePropertyMap - Web APIs
0" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="81" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">stylepropertymap</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, stylepropertymapreadonly.
...l="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="81" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">stylepropertymap</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, stylepropertymapreadonly.
StylePropertyMapReadOnly.get() - Web APIs
the get() method of the stylepropertymapreadonly interface returns a cssstylevalue object for the first value of the specified property.
...ref="https://example.com">link</a> </p> <dl id="regurgitation"></dl> we add a bit of css, including a custom property and an inhertable property: p { font-weight: bold; } a { --colour: red; color: var(--colour); } we use the element's computedstylemap() to return a stylepropertymapreadonly object.
StyleSheetList - Web APIs
the stylesheetlist interface represents a list of stylesheet.
...t of stylesheet.
SubmitEvent - Web APIs
type and other options are configured as specified.
... as specified.
SubtleCrypto.deriveKey() - Web APIs
the derivekey() method of the subtlecrypto interface can be used to derive a secret key from a master key.
...ge.
SubtleCrypto.sign() - Web APIs
Web › API › SubtleCrypto › sign
the sign() method of the subtlecrypto interface generates a digital signature.
... the sign() method of the subtlecrypto interface generates a digital signature.
SubtleCrypto - Web APIs
m design are extremely hard to get right, and are generally the domain of specialist security experts.
...d are generally the domain of specialist security experts.
SyncEvent - Web APIs
Web › API › SyncEvent
: #0095dd; pointer-events: all;} constructor syncevent.syncevent() creates a new syncevent object.
...-events: all;} constructor syncevent.syncevent() creates a new syncevent object.
Text.replaceWholeText() - Web APIs
the text.replacewholetext() method replaces the text of the node and all of its logically adjacent text nodes with the specified text.
... the text.replacewholetext() method replaces the text of the node and all of its logically adjacent text nodes with the specified text.
Text.splitText() - Web APIs
Web › API › Text › splitText
the text.splittext() method breaks the text node into two nodes at the specified offset, keeping both nodes in the tree as siblings.
...ffset point, and a newly created node of the same type contains the remaining text.
TextEncoder.prototype.encodeInto() - Web APIs
the textencoder.prototype.encodeinto() method takes a usvstring to encode and a destination uint8array to put resulting utf-8 encoded text into, and returns a dictionary object indicating the progress of the encoding.
... the textencoder.prototype.encodeinto() method takes a usvstring to encode and a destination uint8array to put resulting utf-8 encoded text into, and returns a dictionary object indicating the progress of the encoding.
TextTrack - Web APIs
Web › API › TextTrack
h.
...ext track mode constants.
getTrackById() - Web APIs
the texttracklist method gettrackbyid() returns the first texttrack object from the track list whose id matches the specified string.
...ches the specified string.
TextTrackList - Web APIs
in the list.
...dtrack an event handler to be called when the addtrack event is fired, indicating that a new text track has been added to the media element.
TimeRanges - Web APIs
the timeranges interface is used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the <audio> and <video> elements.
...ng the index number of the time range you want to retrieve.
TouchList.item() - Web APIs
Web › API › TouchList › item
the item() method returns the touch object at the specified index in the touchlist.
...uchlist.item(index); parameters index the index of the touch object to retrieve.
Touch events - Web APIs
multiple fingers on the surface at the same time.
...o determine the starting point for each touch's new line segment to be drawn.
TransitionEvent - Web APIs
f transitionevent transitioncancel an event fired when a css transition has been cancelled.
... when a css transition is created, when it is added to a set of running transitions, though not nessarilty started transitionstart an event fired when a css transition has started transitioning.
URLSearchParams.keys() - Web APIs
the keys() method of the urlsearchparams interface returns an iterator allowing iteration through all keys contained in this object.
... the keys() method of the urlsearchparams interface returns an iterator allowing iteration through all keys contained in this object.
URLSearchParams.sort() - Web APIs
the urlsearchparams.sort() method sorts all key/value pairs contained in this object in place and returns undefined.
... the urlsearchparams.sort() method sorts all key/value pairs contained in this object in place and returns undefined.
URLSearchParams.toString() - Web APIs
the tostring() method of the urlsearchparams interface returns a query string suitable for use in a url.
... the tostring() method of the urlsearchparams interface returns a query string suitable for use in a url.
URLSearchParams - Web APIs
the urlsearchparams interface defines utility methods to work with the query string of a url.
...th the query string of a url.
USB - Web APIs
Web › API › USB
the usb interface of the webusb api provides attributes and methods for finding and connecting usb devices from a web page.
... the usb interface of the webusb api provides attributes and methods for finding and connecting usb devices from a web page.
USBDevice - Web APIs
Web › API › USBDevice
the usbdevice interface of the the webusb api provides access to metadata about a paired usb device and methods for controlling it.
...orted by the device.
UserDataHandler - Web APIs
data with a key on a node, node.setuserdata() can also accept, in its third argument, a handler which will be called when the object is cloned, imported, deleted, renamed, or adopted.
...rd argument, a handler which will be called when the object is cloned, imported, deleted, renamed, or adopted.
Vibration API - Web APIs
is hardware, if it exists, and does nothing if the device doesn't support it.
... if(vibrateinterval) clearinterval(vibrateinterval); navigator.vibrate(0); } // start persistent vibration at given duration and interval // assumes a number value is given function startpersistentvibrate(duration, interval) { vibrateinterval = setinterval(function() { startvibrate(duration); }, interval); } of course, the snippet above doesn't take into account the array method of vibration; persistent array-based vibration will require calculating the sum of the array items and creating an interval based on that number (with an additional delay, probably).
getTrackById - Web APIs
the videotracklist method gettrackbyid() returns the first videotrack object from the track list whose id matches the specified string.
...s the specified string.
VideoTrackList - Web APIs
new video track has been added to the media element.
... media element.
WEBGL_color_buffer_float - Web APIs
the webgl_color_buffer_float extension is part of the webgl api and adds the ability to render to 32-bit floating-point color buffers.
...e to webgl 1 contexts only.
WEBGL_debug_renderer_info - Web APIs
of the webgl api and exposes two constants with information about the graphics driver for debugging purposes.
...ases to optimize your webgl content or to debug gpu problems.
WEBGL_depth_texture - Web APIs
the webgl_depth_texture extension is part of the webgl api and defines 2d depth and depth-stencil textures.
...lso using extensions in the webgl tutorial.
WEBGL_lose_context.loseContext() - Web APIs
the webgl_lose_context.losecontext() method is part of the webgl api and allows you to simulate losing the context of a webglrenderingcontext context.
... webgl_lose_context.losecontext() method is part of the webgl api and allows you to simulate losing the context of a webglrenderingcontext context.
WEBGL_lose_context.restoreContext() - Web APIs
the webgl_lose_context.restorecontext() method is part of the webgl api and allows you to simulate restoring the context of a webglrenderingcontext object.
... the webgl_lose_context.restorecontext() method is part of the webgl api and allows you to simulate restoring the context of a webglrenderingcontext object.
WEBGL_lose_context - Web APIs
the webgl_lose_context extension is part of the webgl api and exposes functions to simulate losing and restoring a webglrenderingcontext.
... the webgl_lose_context extension is part of the webgl api and exposes functions to simulate losing and restoring a webglrenderingcontext.
WakeLock.request() - Web APIs
Web › API › WakeLock › request
the request() method of the wakelock interface returns a promise that resolves with a wakelocksentinel object, which allows control over screen dimming and locking.
... object.
WakeLock - Web APIs
Web › API › WakeLock
the wakelock interface of the screen wake lock api prevents device screens from dimming or locking when an application needs to keep running.
...ents device screens from dimming or locking when an application needs to keep running.
WebGL2RenderingContext.clientWaitSync() - Web APIs
the webgl2renderingcontext.clientwaitsync() method of the webgl 2 api blocks and waits for a webglsync object to become signaled or a given timeout to be passed.
...nation of flags controlling the flushing behavior.
WebGL2RenderingContext.drawArraysInstanced() - Web APIs
the webgl2renderingcontext.drawarraysinstanced() method of the webgl 2 api renders primitives from array data like the gl.drawarrays() method.
... the webgl2renderingcontext.drawarraysinstanced() method of the webgl 2 api renders primitives from array data like the gl.drawarrays() method.
WebGL2RenderingContext.drawElementsInstanced() - Web APIs
the webgl2renderingcontext.drawelementsinstanced() method of the webgl 2 api renders primitives from array data like the gl.drawelements() method.
... the webgl2renderingcontext.drawelementsinstanced() method of the webgl 2 api renders primitives from array data like the gl.drawelements() method.
WebGL2RenderingContext.framebufferTextureLayer() - Web APIs
the webgl2renderingcontext.framebuffertexturelayer() method of the webgl 2 api attaches a single layer of a texture to a framebuffer.
... the webgl2renderingcontext.framebuffertexturelayer() method of the webgl 2 api attaches a single layer of a texture to a framebuffer.
WebGL2RenderingContext.uniformMatrix[234]x[234]fv() - Web APIs
the webgl2renderingcontext.uniformmatrix[234]x[234]fv() methods of the webgl 2 api specify matrix values for uniform variables.
... the webgl2renderingcontext.uniformmatrix[234]x[234]fv() methods of the webgl 2 api specify matrix values for uniform variables.
WebGL2RenderingContext.vertexAttribDivisor() - Web APIs
the webgl2renderingcontext.vertexattribdivisor() method of the webgl 2 api modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with gl.drawarraysinstanced() and gl.drawelementsinstanced().
... the webgl2renderingcontext.vertexattribdivisor() method of the webgl 2 api modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with gl.drawarraysinstanced() and gl.drawelementsinstanced().
WebGL2RenderingContext.vertexAttribIPointer() - Web APIs
the webgl2renderingcontext.vertexattribipointer() method of the webgl 2 api specifies integer data formats and locations of vertex attributes in a vertex attributes array.
...t in bytes of the first component in the vertex attribute array.
WebGL2RenderingContext.waitSync() - Web APIs
the webgl2renderingcontext.waitsync() method of the webgl 2 api returns immediately, but waits on the gl server until the given webglsync object is signaled.
... the webgl2renderingcontext.waitsync() method of the webgl 2 api returns immediately, but waits on the gl server until the given webglsync object is signaled.
WebGLBuffer - Web APIs
the webglbuffer interface is part of the webgl api and represents an opaque buffer object storing data such as vertices or colors.
... the webglbuffer interface is part of the webgl api and represents an opaque buffer object storing data such as vertices or colors.
WebGLFramebuffer - Web APIs
the webglframebuffer interface is part of the webgl api and represents a collection of buffers that serve as a rendering destination.
... the webglframebuffer interface is part of the webgl api and represents a collection of buffers that serve as a rendering destination.
WebGLRenderbuffer - Web APIs
the webglrenderbuffer interface is part of the webgl api and represents a buffer that can contain an image, or can be source or target of an rendering operation.
... the webglrenderbuffer interface is part of the webgl api and represents a buffer that can contain an image, or can be source or target of an rendering operation.
WebGLRenderingContext.bufferData() - Web APIs
the webglrenderingcontext.bufferdata() method of the webgl api initializes and creates the buffer object's data store.
... one of the allowed enums.
WebGLRenderingContext.clearColor() - Web APIs
the webglrenderingcontext.clearcolor() method of the webgl api specifies the color values used when clearing color buffers.
... the webglrenderingcontext.clearcolor() method of the webgl api specifies the color values used when clearing color buffers.
WebGLRenderingContext.clearDepth() - Web APIs
the webglrenderingcontext.cleardepth() method of the webgl api specifies the clear value for the depth buffer.
... the webglrenderingcontext.cleardepth() method of the webgl api specifies the clear value for the depth buffer.
WebGLRenderingContext.clearStencil() - Web APIs
the webglrenderingcontext.clearstencil() method of the webgl api specifies the clear value for the stencil buffer.
... the webglrenderingcontext.clearstencil() method of the webgl api specifies the clear value for the stencil buffer.
WebGLRenderingContext.commit() - Web APIs
the webglrenderingcontext.commit() method pushes frames back to the original htmlcanvaselement, if the context is not directly fixed to a specific canvas.
... examples var htmlcanvas = document.createelement('canvas'); var offscreen = htmlcanvas.transfercontroltooffscreen(); var gl = offscreen.getcontext('webgl'); // ...
WebGLRenderingContext.cullFace() - Web APIs
the webglrenderingcontext.cullface() method of the webgl api specifies whether or not front- and/or back-facing polygons can be culled.
...g polygons can be culled.
WebGLRenderingContext.deleteBuffer() - Web APIs
the webglrenderingcontext.deletebuffer() method of the webgl api deletes a given webglbuffer.
... the webglrenderingcontext.deletebuffer() method of the webgl api deletes a given webglbuffer.
WebGLRenderingContext.deleteFramebuffer() - Web APIs
the webglrenderingcontext.deleteframebuffer() method of the webgl api deletes a given webglframebuffer object.
... the webglrenderingcontext.deleteframebuffer() method of the webgl api deletes a given webglframebuffer object.
WebGLRenderingContext.deleteProgram() - Web APIs
the webglrenderingcontext.deleteprogram() method of the webgl api deletes a given webglprogram object.
... the webglrenderingcontext.deleteprogram() method of the webgl api deletes a given webglprogram object.
WebGLRenderingContext.deleteRenderbuffer() - Web APIs
the webglrenderingcontext.deleterenderbuffer() method of the webgl api deletes a given webglrenderbuffer object.
... the webglrenderingcontext.deleterenderbuffer() method of the webgl api deletes a given webglrenderbuffer object.
WebGLRenderingContext.deleteShader() - Web APIs
the webglrenderingcontext.deleteshader() method of the webgl api marks a given webglshader object for deletion.
... the webglrenderingcontext.deleteshader() method of the webgl api marks a given webglshader object for deletion.
WebGLRenderingContext.deleteTexture() - Web APIs
the webglrenderingcontext.deletetexture() method of the webgl api deletes a given webgltexture object.
... the webglrenderingcontext.deletetexture() method of the webgl api deletes a given webgltexture object.
WebGLRenderingContext.depthFunc() - Web APIs
the webglrenderingcontext.depthfunc() method of the webgl api specifies a function that compares incoming pixel depth to the current depth buffer value.
...ncoming value is greater than the depth buffer value) gl.notequal (pass if the incoming value is not equal to the depth buffer value) gl.gequal (pass if the incoming value is greater than or equal to the depth buffer value) gl.always (always pass) return value none.
WebGLRenderingContext.disable() - Web APIs
the webglrenderingcontext.disable() method of the webgl api disables specific webgl capabilities for this context.
... constant description gl.rasterizer_discard deactivates that primitives are discarded immediately before the rasterization stage, but after the optional transform feedback stage.
WebGLRenderingContext.enable() - Web APIs
the webglrenderingcontext.enable() method of the webgl api enables specific webgl capabilities for this context.
...able additionally: constant description gl.rasterizer_discard primitives are discarded immediately before the rasterization stage, but after the optional transform feedback stage.
WebGLRenderingContext.enableVertexAttribArray() - Web APIs
the webglrenderingcontext method enablevertexattribarray(), part of the webgl api, turns on the generic vertex attribute array at the specified index into the list of attribute arrays.
...e gpu.
WebGLRenderingContext.getExtension() - Web APIs
the webglrenderingcontext.getextension() method enables a webgl extension.
...gcontext.getextension() method enables a webgl extension.
WebGLRenderingContext.getSupportedExtensions() - Web APIs
the webglrenderingcontext.getsupportedextensions() method returns a list of all the supported webgl extensions.
...the supported webgl extensions.
WebGLRenderingContext.isEnabled() - Web APIs
the webglrenderingcontext.isenabled() method of the webgl api tests whether a specific webgl capability is enabled or not for this context.
... before the rasterization stage, but after the optional transform feedback stage.
WebGLRenderingContext.pixelStorei() - Web APIs
the webglrenderingcontext.pixelstorei() method of the webgl api specifies the pixel storage modes.
... opengl es 3.0 gl.unpack_skip_images number of pixel images skipped before the first pixel is read from memory glint 0 0 to infinity opengl es 3.0 examples setting the pixel storage mode affects the webglrenderingcontext.readpixels() operations, as well as unpacking of textures with the webglrenderingcontext.teximage2d() and webglrenderingcontext.texsubimage2d() methods.
WebGLRenderingContext.polygonOffset() - Web APIs
the webglrenderingcontext.polygonoffset() method of the webgl api specifies the scale factors and units to calculate depth values.
...le factor for the variable depth offset for each polygon.
WebGLRenderingContext.sampleCoverage() - Web APIs
the webglrenderingcontext.samplecoverage() method of the webgl api specifies multi-sample coverage parameters for anti-aliasing effects.
...nvert); parameters value a glclampf which sets a single floating-point coverage value clamped to the range [0,1].
WebGLRenderingContext.stencilFunc() - Web APIs
the webglrenderingcontext.stencilfunc() method of the webgl api sets the front and back function and reference value for stencil testing.
...to 2n -1 where n is the number of bitplanes in the stencil buffer.
WebGLRenderingContext.stencilFuncSeparate() - Web APIs
the webglrenderingcontext.stencilfuncseparate() method of the webgl api sets the front and/or back function and reference value for stencil testing.
...to 2n -1 where n is the number of bitplanes in the stencil buffer.
WebGLRenderingContext.stencilMask() - Web APIs
the webglrenderingcontext.stencilmask() method of the webgl api controls enabling and disabling of both the front and back writing of individual bits in the stencil planes.
... the webglrenderingcontext.stencilmask() method of the webgl api controls enabling and disabling of both the front and back writing of individual bits in the stencil planes.
WebGLRenderingContext.stencilMaskSeparate() - Web APIs
the webglrenderingcontext.stencilmaskseparate() method of the webgl api controls enabling and disabling of front and/or back writing of individual bits in the stencil planes.
... the webglrenderingcontext.stencilmaskseparate() method of the webgl api controls enabling and disabling of front and/or back writing of individual bits in the stencil planes.
WebGLRenderingContext.stencilOp() - Web APIs
the webglrenderingcontext.stencilop() method of the webgl api sets both the front and back-facing stencil test actions.
...stencil buffer value.
WebGLRenderingContext.stencilOpSeparate() - Web APIs
the webglrenderingcontext.stencilopseparate() method of the webgl api sets the front and/or back-facing stencil test actions.
...stencil buffer value.
WebGLRenderingContext.uniformMatrix[234]fv() - Web APIs
the webglrenderingcontext.uniformmatrix[234]fv() methods of the webgl api specify matrix values for uniform variables.
... the webglrenderingcontext.uniformmatrix[234]fv() methods of the webgl api specify matrix values for uniform variables.
WebGLRenderingContext.vertexAttribPointer() - Web APIs
the webglrenderingcontext.vertexattribpointer() method of the webgl api binds the buffer currently bound to gl.array_buffer to a generic vertex attribute of the current vertex buffer object and specifies its layout.
...escription let's assume we want to render some 3d geometry, and for that we will need to supply our vertices to the vertex shader.
WebGLRenderingContext - Web APIs
u have the webgl rendering context for a canvas, you can render within it.
...ntext.drawarrays() renders primitives from array data.
WebGLShaderPrecisionFormat - Web APIs
the webglshaderprecisionformat interface is part of the webgl api and represents the information returned by calling the webglrenderingcontext.getshaderprecisionformat() method.
... webglshaderprecisionformat.rangemax read only the base 2 log of the absolute value of the maximum value that can be represented.
WebGLTexture - Web APIs
the webgltexture interface is part of the webgl api and represents an opaque texture object providing storage and state for texturing operations.
... the webgltexture interface is part of the webgl api and represents an opaque texture object providing storage and state for texturing operations.
WebGLUniformLocation - Web APIs
the webgluniformlocation interface is part of the webgl api and represents the location of a uniform variable in a shader program.
... the webgluniformlocation interface is part of the webgl api and represents the location of a uniform variable in a shader program.
Lifetime of a WebRTC session - Web APIs
lle” and dropping it in a mailbox when you don't know her address.
...l to the process of establishing a webrtc connection left out of the specification?
WebSocket.send() - Web APIs
Web › API › WebSocket › send
the websocket.send() method enqueues the specified data to be transmitted to the server over the websocket connection, increasing the value of bufferedamount by the number of bytes needed to contain the data.
...raybufferview you can send any javascript typed array object as a binary frame; its binary data contents are queued in the buffer, increasing the value of bufferedamount by the requisite number of bytes.
Basic concepts behind Web Audio API - Web APIs
each input or output is composed of one or more audio channels, which together represent a specific audio layout.
... an output of audio data over time, usually gain or frequency data, and then using a graphical technology to turn that into a visual output, such as a graph.
Using IIR filters - Web APIs
tton> the filter button's click handler then connects the iirfilter up to the graph, between the source and the detination: filterbutton.addeventlistener('click', function() { if (this.dataset.filteron === 'false') { srcnode.disconnect(audioctx.destination); srcnode.connect(iirfilter).connect(audioctx.destination); ...
...nation); srcnode.connect(iirfilter).connect(audioctx.destination); ...
Web Crypto API - Web APIs
in of specialist security experts.
...etely ineffective.
Using the Web Speech API - Web APIs
ntion instance to control the recognition for our application.
...ition.maxalternatives = 1; starting the speech recognition after grabbing references to the output <div> and the html element (so we can output diagnostic messages and update the app background color later on), we implement an onclick handler so that when the screen is tapped/clicked, the speech recognition service will start.
Window.clearImmediate() - Web APIs
this method clears the action specified by window.setimmediate.
... this method clears the action specified by window.setimmediate.
Window.console - Web APIs
Web › API › Window › console
the window.console property returns a reference to the console object, which provides methods for logging information to the browser's console.
... the window.console property returns a reference to the console object, which provides methods for logging information to the browser's console.
Window.forward() - Web APIs
Web › API › Window › forward
moves the window one document forward in history.
... moves the window one document forward in history.
Window.getDefaultComputedStyle() - Web APIs
the getdefaultcomputedstyle() method gives the default computed values of all the css properties of an element, ignoring author styling.
...00px; top: 200px; height: 100px; } </style> <div id="elem-container">dummy</div> <div id="output"></div> <script> var elem = document.getelementbyid("elem-container"); var thecssprop = window.getdefaultcomputedstyle(elem).position; document.getelementbyid("output").innerhtml = thecssprop; // will output "static" </script> use with pseudo-elements the getdefaultcomputedstyle() method can pull style info from pseudo-elements (e.g., ::before or ::after).
Window.history - Web APIs
Web › API › Window › history
the window.history read-only property returns a reference to the history object, which provides an interface for manipulating the browser session history (pages visited in the tab or frame that the current page is loaded in).
...s next to the back and forward buttons.
Window.minimize() - Web APIs
Web › API › Window › minimize
the window.minimize() method sets the window to a minimized state.
... the window.minimize() method sets the window to a minimized state.
Window.onmozbeforepaint - Web APIs
obsolete since gecko 11 (firefox 11 / thunderbird 11 / seamonkey 2.8)this feature is obsolete.
...requested by one or more scripts calling window.mozrequestanimationframe().
Privileged features - Web APIs
s parent window is minimized.
... a sheet.
window.requestIdleCallback() - Web APIs
the window.requestidlecallback() method queues a function to be called during a browser's idle periods.
...ck to take place no sooner than the next pass through the event loop.
Window.resizeBy() - Web APIs
Web › API › Window › resizeBy
the window.resizeby() method resizes the current window by a specified amount.
... the window.resizeby() method resizes the current window by a specified amount.
Window.scroll() - Web APIs
Web › API › Window › scroll
the window.scroll() method scrolls the window to a particular place in the document.
...e document that you want displayed in the upper left.
WindowClient - Web APIs
the windowclient interface of the serviceworker api represents the scope of a service worker client that is a document in a browsing context, controlled by an active worker.
... the windowclient interface of the serviceworker api represents the scope of a service worker client that is a document in a browsing context, controlled by an active worker.
WindowEventHandlers - Web APIs
senting the code to be called when the storage event is raised.
...the storage event is raised.
WindowOrWorkerGlobalScope.clearInterval() - Web APIs
the clearinterval() method of the windoworworkerglobalscope mixin cancels a timed, repeating action which was previously established by a call to setinterval().
...hich means you can technically use clearinterval() and cleartimeout() interchangeably.
WindowOrWorkerGlobalScope.clearTimeout() - Web APIs
the cleartimeout() method of the windoworworkerglobalscope mixin cancels a timeout previously established by calling settimeout().
...ion() { window.cleartimeout(this.timeoutid); } }; window.onclick = function() { alarm.setup(); }; notes passing an invalid id to cleartimeout() silently does nothing; no exception is thrown.
self.createImageBitmap() - Web APIs
the createimagebitmap() method creates a bitmap from a given source, optionally cropped to contain only a portion of that source.
... the createimagebitmap() method creates a bitmap from a given source, optionally cropped to contain only a portion of that source.
WindowOrWorkerGlobalScope - Web APIs
b read only provides a mechanism for applications to asynchronously access capabilities of indexed databases; returns an idbfactory object.
...rovides a mechanism for applications to asynchronously access capabilities of indexed databases; returns an idbfactory object.
Worker.prototype.postMessage() - Web APIs
the postmessage() method of the worker interface sends a message to the worker's inner scope.
...sage() method of the worker interface sends a message to the worker's inner scope.
WorkerGlobalScope.close() - Web APIs
the close() method of the workerglobalscope interface discards any tasks queued in the workerglobalscope's event loop, effectively closing this particular scope.
...closing this particular scope.
WorkerGlobalScope.dump() - Web APIs
the dump() method of the workerglobalscope interface allows you to write a message to stdout — i.e.
...s x you'd run it using something like this (assuming you are inside the applications folder): ./firefox.app/contents/macos/firefox-bin -profile /tmp -no-remote now go into about:config and enable the browser.dom.window.dump.enabled pref.
Worklet - Web APIs
Web › API › Worklet
eb workers and gives developers access to low-level parts of the rendering pipeline.
...ead css animation worklet api layoutworklet for defining the positioning and dimensions of custom elements.
WritableStream.getWriter() - Web APIs
the getwriter() method of the writablestream interface returns a new instance of writablestreamdefaultwriter and locks the stream to that instance.
...eam you are trying to create a writer for is not a writablestream.
WritableStreamDefaultWriter.WritableStreamDefaultWriter() - Web APIs
the writablestreamdefaultwriter() constructor creates a new writablestreamdefaultwriter object instance.
... exceptions typeerror the provided stream value is not a writablestream, or it is locked to another writer already.
WritableStreamDefaultWriter.abort() - Web APIs
the abort() method of the writablestreamdefaultwriter interface aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
... the abort() method of the writablestreamdefaultwriter interface aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
WritableStreamDefaultWriter.close() - Web APIs
the close() method of the writablestreamdefaultwriter interface closes the associated writable stream.
...as encountered during the process.
WritableStreamDefaultWriter - Web APIs
leased, or rejects if the stream errors.
... its underlying sink, then returns a promise that resolves to indicate the success or failure of the write operation.
XDomainRequest.onprogress - Web APIs
this method is called periodically as an event handler for progress events on xdomainrequests, so that code can monitor progress while loading content.
...hile loading content.
Synchronous and asynchronous requests - Web APIs
unload handler.
...arset=utf-8"); client.send(analyticsdata); } using the sendbeacon() method, the data will be transmitted asynchronously to the web server when the user agent has had an opportunity to do so, without delaying the unload or affecting the performance of the next navigation.
XMLHttpRequest.onreadystatechange - Web APIs
en the readystatechange event is fired, that is every time the readystate property of the xmlhttprequest changes.
...ate property of the xmlhttprequest changes.
XMLHttpRequest.openRequest() - Web APIs
non-standard this feature is non-standard and is not on a standards track.
...on sites facing the web: it will not work for every user.
XMLHttpRequest.overrideMimeType() - Web APIs
the xmlhttprequest method overridemimetype() specifies a mime type other than the one provided by the server to be used instead when interpreting the data being transferred in a request.
... the xmlhttprequest method overridemimetype() specifies a mime type other than the one provided by the server to be used instead when interpreting the data being transferred in a request.
XMLHttpRequest.setRequestHeader() - Web APIs
the xmlhttprequest method setrequestheader() sets the value of an http request header.
... the xmlhttprequest method setrequestheader() sets the value of an http request header.
XMLHttpRequest.timeout - Web APIs
e used for synchronous xmlhttprequests requests used in a document environment or it will throw an invalidaccesserror exception.
...s requests used in a document environment or it will throw an invalidaccesserror exception.
XMLHttpRequestEventTarget.onabort - Web APIs
the xmlhttprequesteventtarget.onabort is the function called when an xmlhttprequest transaction is aborted, such as when the xmlhttprequest.abort() function is called.
...teventtarget.onabort is the function called when an xmlhttprequest transaction is aborted, such as when the xmlhttprequest.abort() function is called.
XMLHttpRequestEventTarget.onerror - Web APIs
the xmlhttprequesteventtarget.onerror is the function called when an xmlhttprequest transaction fails due to an error.
... the xmlhttprequesteventtarget.onerror is the function called when an xmlhttprequest transaction fails due to an error.
XMLHttpRequestEventTarget.onload - Web APIs
alled when an xmlhttprequest transaction completes successfully.
... xmlhttprequest.onload = callback; values callback is the function to be executed when the request completes successfully.
XMLHttpRequestEventTarget.onloadstart - Web APIs
the xmlhttprequesteventtarget.onloadstart is the function called when an xmlhttprequest transaction starts transferring data.
... the xmlhttprequesteventtarget.onloadstart is the function called when an xmlhttprequest transaction starts transferring data.
XMLHttpRequestEventTarget.onprogress - Web APIs
y.
... the function to be called periodically before the request is completed.
XPathEvaluator.createExpression() - Web APIs
this method compiles an xpathexpression which can then be used for (repeated) evaluations of the xpath expression.
...ns invalid_expression_err if the expression is not legal according to the rules of the xpathevaluator, an xpathexception of type invalid_expression_err is raised.
XPathResult.iterateNext() - Web APIs
the iteratenext() method of the xpathresult interface iterates over a node set result and returns the next node from it or null if there are no more nodes.
...the node set of the xpathresult.
XPathResult.snapshotItem() - Web APIs
the snapshotitem() method of the xpathresult interface returns an item of the snapshot collection or null in case the index is not within the range of nodes.
...e current document if it is mutated.
XPathResult - Web APIs
a number code representing the type of the result, as defined by the type constants.
...ype constants.
XRFrame.getViewerPose() - Web APIs
the getviewerpose() method, a member of the xrframe interface, returns a xrviewerpose object which describes the viewer's pose (position and orientation) relative to the specified reference space.
... the getviewerpose() method, a member of the xrframe interface, returns a xrviewerpose object which describes the viewer's pose (position and orientation) relative to the specified reference space.
XRInputSource.targetRayMode - Web APIs
the read-only xrinputsource property targetraymode indicates the method by which the target ray for the input source should be generated and how it should be presented to the user.
... the read-only xrinputsource property targetraymode indicates the method by which the target ray for the input source should be generated and how it should be presented to the user.
XRInputSourceEvent.frame - Web APIs
eevent.frame; value an xrframe indicating the event frame at which the user input event described by the object took place.
...g the event frame at which the user input event described by the object took place.
XRPermissionStatus - Web APIs
interface, permissionstatus.
...permissionstatus.
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.
...nimationframe() again.
XRTargetRayMode - Web APIs
the webxr device api enumerated type xrtargetraymode describes the method by an input controller's targeting ray is being produced.
...ng a gaze-tracking system, pointing at the target with a hand controller, glove, or motion-tracking system, or by tapping or clicking on the target using a finger on a screen or with a mouse.
Generating HTML - Web APIs
ting elements (colored in blue), those elements will be treated as html elements.
...|node()"/> </xsl:copy> </xsl:template> ...
msCachingEnabled - 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.
msGetRegionContent - Web APIs
ndard and is not on a standards track.
...he region flow that is positioned in the region.
mssitemodejumplistitemremoved - Web APIs
dard and is not on a standards track.
... between implementations and the behavior may change in the future.
msthumbnailclick - Web APIs
non-standard this feature is non-standard and is not on a standards track.
...ery user.
Architecture - Accessibility
line.
...tting the line starting with the logical caret offset, which may be the next line.
Web Accessibility: Understanding Colors and Luminance - Accessibility
e srgb color space." color has many ways of being defined, including rgb, rgb decimal, rgb percent, hsl, cmyk among others.
...e with traumatic brain injury, color in the red spectrum wavelength requires special attention and tests.
:lang() - CSS: Cascading Style Sheets
Web › CSS › :lang
-class matches elements based on the language they are determined to be in.
...e.
:scope - CSS: Cascading Style Sheets
Web › CSS › :scope
e point for selectors to match against.
...ame as :root, since there is not at this time a way to explicitly establish a scoped element.
@charset - CSS: Cascading Style Sheets
Web › CSS › @charset
the first one is used, and it cannot be used inside a style attribute on an html element or inside the <style> element where the character set of the html page is relevant.
...as soon as one yields a result) : the value of the unicode byte-order character placed at the beginning of the file.
Box alignment in Flexbox - CSS: Cascading Style Sheets
the box alignment specification details how alignment works in various layout methods; on this page, we explore how box alignment works in the context of flexbox.
... the box alignment specification details how alignment works in various layout methods; on this page, we explore how box alignment works in the context of flexbox.
Aligning Items in a Flex Container - CSS: Cascading Style Sheets
ms is distributed between the items.
...ned that the alignment properties currently contained in the level 1 flexbox specification are also included in box alignment level 3, which may well extend these properties and values in the future.
Mastering Wrapping of Flex Items - CSS: Cascading Style Sheets
right then go onto the second line and again start from the right.
...e difference.
Ordering Flex Items - CSS: Cascading Style Sheets
new layout methods such as flexbox and grid bring with them the possibility of controlling the order of content.
... the sort of cases where the order property makes sense.
CSS Flexible Box Layout - CSS: Cascading Style Sheets
tions.
...re now defined in box alignment.
Block and inline layout in normal flow - CSS: Cascading Style Sheets
way of them being part of the flex formatting context.
...items nested inside our flex item lay themselves out as block and inline elements unless something changes their display type.
Flow Layout and Overflow - CSS: Cascading Style Sheets
ore content to click through to when clicking the box or the title.
... would allow a string of content or a regular ellipsis to be inserted.
In Flow and Out of Flow - CSS: Cascading Style Sheets
in the previous guide i explained block and inline layout in normal flow.
... however, as you can see in the example below.
CSS grids, logical values, and writing modes - CSS: Cascading Style Sheets
in these guides, i have already touched on an important feature of grid layout: the support for different writing modes that is built into the specification.
...you use absolute positioning within a grid area, then you will again be using physical offsets to push the item around inside the grid area.
CSS Grid Layout and Accessibility - CSS: Cascading Style Sheets
isplay becomes implemented, it would be possible to make these children of a grid item participate in the overall grid layout by declaring the ul element a subgrid.
...tructured document is a very good way to avoid the problem, as you will be aware that you are removing semantic elements in order to make the layout work if you actually have to go into the document and do so!
Using CSS gradients - CSS: Cascading Style Sheets
ed at the 30% mark, and staying solid red up until 45% through the gradient, where it fades to cyan, being fully cyan for 15% of the gradient, and so on.
...cyan for 15% of the gradient, and so on.
Card - CSS: Cascading Style Sheets
if the track does have a footer it will be auto-sized, as rows created in the implicit grid are auto-sized by default.
...o add rules to the items.
CSS reference - CSS: Cascading Style Sheets
Web › CSS › Reference
ectors are fundamental selectors; these are the most basic selectors that are frequently combined to create other, more complex selectors.
...xt box model containing block layout mode margin collapsing replaced elements stacking context visual formatting model dom-css / cssom major object types documentorshadowroot.stylesheets stylesheets[i].cssrules cssrules[i].csstext (selector & style) cssrules[i].selectortext htmlelement.style htmlelement.style.csstext (just style) element.classname element.classlist important methods cssstylesheet.insertrule() cssstylesheet.deleterule() ...
display - CSS: Cascading Style Sheets
Web › CSS › display
ne-grid the element behaves like an inline element and lays out its content according to the grid model.
...ine layout in normal flow flow layout and overflow flow layout and writing modes formatting contexts explained in flow and out of flow display: flex basic concepts of flexbox aligning items in a flex container 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 e...
table-layout - CSS: Cascading Style Sheets
le-layout: initial; table-layout: unset; values auto by default, most browsers use an automatic table layout algorithm.
...ls are adjusted to fit the content.
Audio and Video Delivery - Developer guides
; } } mycontrol.addeventlistener('click', function() { switchstate(); }, false); window.addeventlistener( "keypress", checkkey, false ); } you can try this example out here.
...as easy as calling the element's pause() method, the browser keeps downloading the media until the media element is disposed of through garbage collection.
Overview of events and handlers - Developer guides
explained in the article on custom events.
...ed by modern web browsers which define many events emitted in response to user input or browser activity.
Rich-Text Editing in Mozilla - Developer guides
n type into it as if it were a textarea.
...ntlink { 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">title 2 &lt;h2&gt;</op...
Making content editable - Developer guides
have to do is set the contenteditable attribute on nearly any html element to make it editable.
...ntlink { 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">title 2 &lt;h2&gt;</op...
Separate sites for mobile and desktop - Developer guides
opment at once — if the user’s browser looks like it’s on a phone, you serve them mobile content, formatted for their phone and optimized for speed.
...e phones, it is worth noting that you may need to employ this strategy to some degree no matter what.
Developer guides
experience advantages as native apps.
...pplies to content you create—especially when you build properly localized and internationalized content.
HTML attribute: accept - HTML: Hypertext Markup Language
eaning "any image file".
...pt png or jpeg files.
Allowing cross-origin use of images and canvas - HTML: Hypertext Markup Language
ed downloading of the image cross-origin).
...xt2d) in the variable context.
<audio>: The Embed Audio element - HTML: Hypertext Markup Language
Web › HTML › Element › audio
if that data has expired from the media buffer.
... the browser estimates it can play the media up to its end without stopping for content buffering.
<iframe>: The Inline Frame element - HTML: Hypertext Markup Language
Web › HTML › Element › iframe
rameelement attributes this element includes the global attributes.
...is the default value).
<img>: The Image Embed element - HTML: Hypertext Markup Language
Web › HTML › Element › img
y concerns for more information and mitigations.
...ttribute is usually presented to the user as a tooltip, which appears shortly after the cursor stops moving over the image.
<input type="color"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › color
.
...change", watchcolorpicker, false); function watchcolorpicker(event) { document.queryselectorall("p").foreach(function(p) { p.style.color = event.target.value; }); } selecting the value if the <input> element's implementation of the color type on the user's browser doesn't support a color well, but is instead a text field for entering the color string directly, you can use the select() method to select the text currently in the edit field.
<input type="password"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › password
s to warn against insecure login forms; see insecure passwords.
...ous one by specifying that the user's pin must be at least four and no more than eight digits.
<input type="time"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › time
ute picker with sliding reels.
...seconds (or 1 minute, or 60,000 milliseconds).
<link>: The External Resource Link element - HTML: Hypertext Markup Language
Web › HTML › Element › link
use of this attribute is to define the type of stylesheet being referenced (such as text/css), but given that css is the only stylesheet language used on the web, not only is it possible to omit the type attribute, but is actually now recommended practice.
...s the value of this attribute provides information about the functions that might be performed on an object.
<video>: The Video Embed element - HTML: Hypertext Markup Language
Web › HTML › Element › video
e given time and seeks the media to that position if the media is currently loaded.
... the browser estimates it can play the media up to its end without stopping for content buffering.
Compression in HTTP - HTTP
algorithms also got more efficient, and new ones are supported by clients and servers.
... but on the body of the message between any two nodes on the path between the client and the server.
CSP: base-uri - HTTP
ntent source.
... sites needing to allow these content types can specify them using the data attribute.
CSP: child-src - HTTP
ntent source.
...sites needing to allow these content types can specify them using the data attribute.
CSP: connect-src - HTTP
ntent source.
... sites needing to allow these content types can specify them using the data attribute.
CSP: default-src - HTTP
ntent source.
... sites needing to allow these content types can specify them using the data attribute.
CSP: font-src - HTTP
ntent source.
...sites needing to allow these content types can specify them using the data attribute.
CSP: frame-src - HTTP
ntent source.
...sites needing to allow these content types can specify them using the data attribute.
CSP: img-src - HTTP
ntent source.
... sites needing to allow these content types can specify them using the data attribute.
CSP: manifest-src - HTTP
ntent source.
...sites needing to allow these content types can specify them using the data attribute.
CSP: media-src - HTTP
ntent source.
...sites needing to allow these content types can specify them using the data attribute.
CSP: object-src - HTTP
ntent source.
...sites needing to allow these content types can specify them using the data attribute.
CSP: prefetch-src - HTTP
ntent source.
... sites needing to allow these content types can specify them using the data attribute.
CSP: script-src-attr - HTTP
ntent source.
... sites needing to allow these content types can specify them using the data attribute.
CSP: script-src-elem - HTTP
ntent source.
... sites needing to allow these content types can specify them using the data attribute.
CSP: style-src-attr - HTTP
ntent source.
... sites needing to allow these content types can specify them using the data attribute.
CSP: style-src-elem - HTTP
ntent source.
... sites needing to allow these content types can specify them using the data attribute.
CSP: worker-src - HTTP
ntent source.
...sites needing to allow these content types can specify them using the data attribute.
If-Unmodified-Since - HTTP
the if-unmodified-since request http header makes the request conditional: the server will send back the requested resource, or accept it in the case of a post or another non-safe method, only if it has not been last modified after the given date.
...equest http header makes the request conditional: the server will send back the requested resource, or accept it in the case of a post or another non-safe method, only if it has not been last modified after the given date.
DELETE - HTTP
Web › HTTP › Methods › DELETE
the http delete request method deletes the specified resource.
... the http delete request method deletes the specified resource.
HEAD - HTTP
Web › HTTP › Methods › HEAD
the http head method requests the headers that would be returned if the head request's url was instead requested with the http get method.
... the http head method requests the headers that would be returned if the head request's url was instead requested with the http get method.
Network Error Logging - HTTP
"endpoints": [ { "url": "https://example.com/csp-reports" } ] } error reports in these examples, the entire reporting api payload is shown.
...ling_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.
Proxy servers and tunneling - HTTP
.
...s using a protocol of higher level (http) to transport a lower level protocol (tcp).
308 Permanent Redirect - HTTP
Web › HTTP › Status › 308
the hypertext transfer protocol (http) 308 permanent redirect redirect status response code indicates that the resource requested has been definitively moved to the url given by the location headers.
...tus response code indicates that the resource requested has been definitively moved to the url given by the location headers.
HTTP
Web › HTTP
at is, a protocol that doesn't lose messages silently like udp does.
...eference browse through detailed http reference documentation.
Concurrency model and the event loop - JavaScript
is the end'); })(); // "this is the start" // "this is just a message" // "this is the end" // "callback 1: this is a msg from call back" // "callback 2: this is a msg from call back" several runtimes communicating together a web worker or a cross-origin iframe has its own stack, heap, and message queue.
...; })(); // "this is the start" // "this is just a message" // "this is the end" // "callback 1: this is a msg from call back" // "callback 2: this is a msg from call back" several runtimes communicating together a web worker or a cross-origin iframe has its own stack, heap, and message queue.
RangeError: radix must be an integer - JavaScript
the javascript exception "radix must be an integer at least 2 and no greater than 36" occurs when the optional radix parameter of the number.prototype.tostring() or the bigint.prototype.tostring() method was specified and is not between 2 and 36.
...tring() method was specified and is not between 2 and 36.
TypeError: X.prototype.y called on incompatible type - JavaScript
ipt exception "called on incompatible target (or object)" occurs when a function (on a given object), is called with a this not corresponding to the type expected by the function.
...hod set.prototype.add called on incompatible receiver undefined (chrome) typeerror: bind must be called on a function (chrome) error type typeerror what went wrong?
TypeError: More arguments needed - JavaScript
rgument, but only 0 were passed typeerror: object.setprototypeof requires at least 2 arguments, but only 0 were passed typeerror: object.defineproperties requires at least 1 argument, but only 0 were passed error type typeerror.
...res at least 2 arguments, but only 0 were passed typeerror: object.defineproperties requires at least 1 argument, but only 0 were passed error type typeerror.
RangeError: repeat count must be non-negative - JavaScript
the javascript exception "repeat count must be non-negative" occurs when the string.prototype.repeat() method is used with a count argument that is a negative number.
... the javascript exception "repeat count must be non-negative" occurs when the string.prototype.repeat() method is used with a count argument that is a negative number.
RangeError: repeat count must be less than infinity - JavaScript
the javascript exception "repeat count must be less than infinity" occurs when the string.prototype.repeat() method is used with a count argument that is infinity.
...eat count must be less than infinity" occurs when the string.prototype.repeat() method is used with a count argument that is infinity.
SyntaxError: function statement requires a name - JavaScript
ction () { })(); labeled functions if you are using function labels, you will still need to provide a function name after the function keyword.
... if you are using function labels, you will still need to provide a function name after the function keyword.
getter - JavaScript
name of the property to bind to the given function.
...e.log(obj.hello); // "world" console.log(object.getownpropertydescriptor(obj, 'hello')); // undefined console.log( object.getownpropertydescriptor( object.getprototypeof(obj), 'hello' ) ); // { configurable: true, enumerable: false, get: function get hello() { return 'world'; }, set: undefined } specifications specification ecmascript (ecma-262)the definition of 'method definitions' in that specification.
Array.prototype[@@iterator]() - JavaScript
the @@iterator method is part of the iterable protocol, that defines how to synchronously iterate over a sequence of values.
...().value); // d console.log(earr.next().value); // e use case for brace notation the use case for this syntax over using the dot notation (array.prototype.values()) is in a case where you don't know what object is going to be ahead of time.
Array.prototype.filter() - JavaScript
the filter() method creates a new array with all elements that pass the test implemented by the provided function.
...h criteria (query) */ const filteritems = (arr, query) => { return arr.filter(el => el.tolowercase().indexof(query.tolowercase()) !== -1) } console.log(filteritems(fruits, 'ap')) // ['apple', 'grapes'] console.log(filteritems(fruits, 'an')) // ['banana', 'mango', 'orange'] affecting initial array (modifying, appending and deleting) the following examples tests the behavior of the filter method when the array is modified.
Array.prototype.flat() - JavaScript
the flat() method creates a new array with all sub-array elements concatenated into it recursively up to the specified depth.
...4500 examples flattening nested arrays const arr1 = [1, 2, [3, 4]]; arr1.flat(); // [1, 2, 3, 4] const arr2 = [1, 2, [3, 4, [5, 6]]]; arr2.flat(); // [1, 2, 3, 4, [5, 6]] const arr3 = [1, 2, [3, 4, [5, 6]]]; arr3.flat(2); // [1, 2, 3, 4, 5, 6] const arr4 = [1, 2, [3, 4, [5, 6, [7, 8, [9, 10]]]]]; arr4.flat(infinity); // [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] flattening and array holes the flat method removes empty slots in arrays: const arr5 = [1, 2, , 4, 5]; arr5.flat(); // [1, 2, 4, 5] specifications specification ecmascript (ecma-262)the definition of 'array.prototype.flat' in that specification.
Array.prototype.sort() - JavaScript
the sort() method sorts the elements of an array in place and returns the sorted array.
...terion) { return -1; } if (a is greater than b by the ordering criterion) { return 1; } // a must be equal to b return 0; } to compare numbers instead of strings, the compare function can simply subtract b from a.
Array.prototype.splice() - JavaScript
the splice() method changes the contents of an array by removing or replacing existing elements and/or adding new elements in place.
...amples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
ArrayBuffer.prototype.slice() - JavaScript
the slice() method returns a new arraybuffer whose contents are a copy of this arraybuffer's bytes from begin, inclusive, up to end, exclusive.
...com/mdn/interactive-examples and send us a pull request.
ArrayBuffer - JavaScript
of the buffer.
... that is used to create derived objects.
BigInt.asIntN() - JavaScript
the bigint.asintn static method is used to wrap a bigint value to a signed integer between -2width-1 and 2width-1-1.
... examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
BigInt.asUintN() - JavaScript
the bigint.asuintn static method is used to wrap a bigint value to an unsigned integer between 0 and 2width-1.
...ples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
BigInt64Array() constructor - JavaScript
the bigint64array() typed array constructor creates a new bigint64array object, which is, an array of 64-bit signed integers in the platform byte order.
...ay types (such as int32array), the typedarray gets copied into a new typed array.
BigUint64Array() constructor - JavaScript
the biguint64array() typed array constructor creates a new biguint64array object, which is, an array of 64-bit unsigned integers in the platform byte order.
...ay types (such as int32array), the typedarray gets copied into a new typed array.
DataView.prototype.getBigInt64() - JavaScript
the getbigint64() method gets a signed 64-bit integer (long long) at the specified byte offset from the start of the dataview.
... indicates whether the 64-bit int is stored in little- or big-endian format.
DataView.prototype.getBigUint64() - JavaScript
the getbiguint64() method gets an unsigned 64-bit integer (unsigned long long) at the specified byte offset from the start of the dataview.
...indicates whether the 64-bit int is stored in little- or big-endian format.
DataView.prototype.getFloat32() - JavaScript
the getfloat32() method gets a signed 32-bit float (float) at the specified byte offset from the start of the dataview.
...the 32-bit float is stored in little- or big-endian format.
DataView.prototype.getFloat64() - JavaScript
the getfloat64() method gets a signed 64-bit float (double) at the specified byte offset from the start of the dataview.
...the 64-bit float is stored in little- or big-endian format.
DataView.prototype.getInt16() - JavaScript
the getint16() method gets a signed 16-bit integer (short) at the specified byte offset from the start of the dataview.
...r the 16-bit int is stored in little- or big-endian format.
DataView.prototype.getInt32() - JavaScript
the getint32() method gets a signed 32-bit integer (long) at the specified byte offset from the start of the dataview.
...r the 32-bit int is stored in little- or big-endian format.
DataView.prototype.getInt8() - JavaScript
the getint8() method gets a signed 8-bit integer (byte) at the specified byte offset from the start of the dataview.
...8(byteoffset) parameters byteoffset the offset, in byte, from the start of the view where to read the data.
DataView.prototype.getUint16() - JavaScript
the getuint16() method gets an unsigned 16-bit integer (unsigned short) at the specified byte offset from the start of the dataview.
...e 16-bit int is stored in little- or big-endian format.
DataView.prototype.getUint32() - JavaScript
the getuint32() method gets an unsigned 32-bit integer (unsigned long) at the specified byte offset from the start of the dataview.
...e 32-bit int is stored in little- or big-endian format.
DataView.prototype.getUint8() - JavaScript
the getuint8() method gets an unsigned 8-bit integer (unsigned byte) at the specified byte offset from the start of the dataview.
...teoffset) parameters byteoffset the offset, in byte, from the start of the view where to read the data.
DataView.prototype.setBigInt64() - JavaScript
the setbigint64() method stores a signed 64-bit integer (long long) value at the specified byte offset from the start of the dataview.
...775807n).
DataView.prototype.setBigUint64() - JavaScript
the setbiguint64() method stores an unsigned 64-bit integer (unsigned long long) value at the specified byte offset from the start of the dataview.
...n - 1n (18446744073709551615n).
DataView.prototype.setFloat32() - JavaScript
the setfloat32() method stores a signed 32-bit float (float) value at the specified byte offset from the start of the dataview.
...e start of the view where to store the data.
DataView.prototype.setFloat64() - JavaScript
the setfloat64() method stores a signed 64-bit float (double) value at the specified byte offset from the start of the dataview.
...e start of the view where to store the data.
DataView.prototype.setInt16() - JavaScript
the setint16() method stores a signed 16-bit integer (short) value at the specified byte offset from the start of the dataview.
...m the start of the view where to store the data.
DataView.prototype.setInt32() - JavaScript
the setint32() method stores a signed 32-bit integer (long) value at the specified byte offset from the start of the dataview.
...m the start of the view where to store the data.
DataView.prototype.setInt8() - JavaScript
the setint8() method stores a signed 8-bit integer (byte) value at the specified byte offset from the start of the dataview.
...b.com/mdn/interactive-examples and send us a pull request.
DataView.prototype.setUint16() - JavaScript
the setuint16() method stores an unsigned 16-bit integer (unsigned short) value at the specified byte offset from the start of the dataview.
... the start of the view where to store the data.
DataView.prototype.setUint32() - JavaScript
the setuint32() method stores an unsigned 32-bit integer (unsigned long) value at the specified byte offset from the start of the dataview.
... the start of the view where to store the data.
DataView.prototype.setUint8() - JavaScript
the setuint8() method stores an unsigned 8-bit integer (byte) value at the specified byte offset from the start of the dataview.
...com/mdn/interactive-examples and send us a pull request.
Date.prototype.getDay() - JavaScript
the getday() method returns the day of the week for the specified date according to local time, where 0 represents sunday.
... the second statement below assigns the value 1 to weekday, based on the value of the date object xmas95.
Date.prototype.getMonth() - JavaScript
the getmonth() method returns the month in the specified date according to local time, as a zero-based value (where zero indicates the first month of the year).
...sing getmonth() the second statement below assigns the value 11 to the variable month, based on the value of the date object xmas95.
Date.prototype.setFullYear() - JavaScript
the setfullyear() method sets the full year for a specified date according to local time.
...ber.
Date.prototype.setHours() - JavaScript
the sethours() method sets the hours for a specified date according to local time, and returns the number of milliseconds since january 1, 1970 00:00:00 utc until the time represented by the updated date instance.
...nted by the extra milliseconds.
Date.prototype.setMinutes() - JavaScript
the setminutes() method sets the minutes for a specified date according to local time.
...tional.
Date.prototype.setSeconds() - JavaScript
the setseconds() method sets the seconds for a specified date according to local time.
...teobj.setseconds(secondsvalue) parameters secondsvalue an integer between 0 and 59, representing the seconds.
Date.prototype.setTime() - JavaScript
the settime() method sets the date object to the time represented by a number of milliseconds since january 1, 1970, 00:00:00 utc.
...lone https://github.com/mdn/interactive-examples and send us a pull request.
Date.prototype.setUTCFullYear() - JavaScript
the setutcfullyear() method sets the full year for a specified date according to universal time.
....
Date.prototype.setUTCHours() - JavaScript
the setutchours() method sets the hour for a specified date according to universal time, and returns the number of milliseconds since january 1, 1970 00:00:00 utc until the time represented by the updated date instance.
...ting the milliseconds.
Date.prototype.setUTCMinutes() - JavaScript
the setutcminutes() method sets the minutes for a specified date according to universal time.
....
Date.prototype.setUTCMonth() - JavaScript
the setutcmonth() method sets the month for a specified date according to universal time.
...dayvalue]) parameters monthvalue an integer between 0 and 11, representing the months january through december.
Date.prototype.setUTCSeconds() - JavaScript
the setutcseconds() method sets the seconds for a specified date according to universal time.
...ds(secondsvalue[, msvalue]) parameters secondsvalue an integer between 0 and 59, representing the seconds.
Date.prototype.setYear() - JavaScript
the setyear() method sets the year for a specified date according to local time.
... the setyear() method sets the year for a specified date according to local time.
Date.prototype.toGMTString() - JavaScript
the togmtstring() method converts a date to a string, using internet greenwich mean time (gmt) conventions.
...resent a human readable date string.
Date.prototype.toJSON() - JavaScript
the tojson() method returns a string representation of the date object.
...y.
Error.prototype.toString() - JavaScript
the tostring() method returns a string representing the specified error object.
... the tostring() method returns a string representing the specified error object.
FinalizationRegistry.prototype.register() - JavaScript
the register() method registers an object with a finalizationregistry instance so that if the object is garbage-collected, the registry's callback may get called.
...izationregistry instance so that if the object is garbage-collected, the registry's callback may get called.
Float32Array() constructor - JavaScript
the float32array() typed array constructor creates a new float32array object, which is, an array of 32-bit floating point numbers (corresponding to the c float data type) in the platform byte order.
...ay types (such as int32array), the typedarray gets copied into a new typed array.
Float64Array() constructor - JavaScript
the float64array() typed array constructor creates a new float64array object, which is, an array of 64-bit floating point numbers (corresponding to the c double data type) in the platform byte order.
...ay types (such as int32array), the typedarray gets copied into a new typed array.
Function.displayName - JavaScript
the display name of a function: function dosomething() {} console.log(dosomething.displayname); // "undefined" var popup = function(content) { console.log(content); }; popup.displayname = 'show popup'; console.log(popup.displayname); // "show popup" defining a displayname in function expressions you can define a function with a display name in a function expression: var object = { somemethod: function() {} }; object.somemethod.displayname = 'somemethod'; console.log(object.somemethod.displayname); // logs "somemethod" try { somemethod } catch(e) { console.log(e); } // referenceerror: somemethod is not defined changing displayname dynamically you can dynamically change the displayname of a function: var object = { // anonymous somemethod: function(value) { arguments.cal...
...ect.somemethod.displayname = 'somemethod'; console.log(object.somemethod.displayname); // logs "somemethod" try { somemethod } catch(e) { console.log(e); } // referenceerror: somemethod is not defined changing displayname dynamically you can dynamically change the displayname of a function: var object = { // anonymous somemethod: function(value) { arguments.callee.displayname = 'somemethod (' + value + ')'; } }; console.log(object.somemethod.displayname); // "undefined" object.somemethod('123') console.log(object.somemethod.displayname); // "somemethod (123)" specifications not part of any standard.
Function.prototype.toSource() - JavaScript
the tosource() method returns a string representing the source code of the object.
... the tosource() method returns a string representing the source code of the object.
Function - JavaScript
available within the function) instead.
...lly, a given sequence of arguments will be prepended to arguments provided the newly-bound function is called.
Generator.prototype.return() - JavaScript
the return() method returns the given value and finishes the generator.
... the return() method returns the given value and finishes the generator.
Generator.prototype.throw() - JavaScript
the throw() method resumes the execution of a generator by throwing an error into it and returns an object with two properties done and value.
...e return value of the iterator.
Int16Array() constructor - JavaScript
the int16array() typed array constructor creates an array of twos-complement 16-bit signed integers in the platform byte order.
...ay types (such as int32array), the typedarray gets copied into a new typed array.
Int32Array() constructor - JavaScript
the int32array() typed array constructor creates an array of twos-complement 32-bit signed integers in the platform byte order.
...ay types (such as int32array), the typedarray gets copied into a new typed array.
Int8Array() constructor - JavaScript
the int8array() constructor creates a typed array of twos-complement 8-bit signed integers.
...ay types (such as int32array), the typedarray gets copied into a new typed array.
Intl.Collator.prototype.resolvedOptions() - JavaScript
the intl.collator.prototype.resolvedoptions() method returns a new object with properties reflecting the locale and collation options computed during initialization of this collator object.
...efaults.
Intl.Collator - JavaScript
the intl.collator objects enable language sensitive string comparison.
...ntribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
Intl.DateTimeFormat.prototype.formatRangeToParts() - JavaScript
the intl.datetimeformat.prototype.formatrangetoparts() method allows locale-specific tokens representing each part of the formatted date range produced by datetimeformat formatters.
...e range produced by datetimeformat formatters.
Intl.DateTimeFormat.prototype.resolvedOptions() - JavaScript
the intl.datetimeformat.prototype.resolvedoptions() method returns a new object with properties reflecting the locale and date and time formatting options computed during initialization of this datetimeformat object.
... second timezonename the values resulting from format matching between the corresponding properties in the options argument and the available combinations and representations for date-time formatting in the selected locale.
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.
...ioncode ] *("-" variant ) subsequence of the unicode_language_id grammar in uts 35's unicode language and locale identifiers grammar.
Intl​.ListFormat.prototype​.format() - JavaScript
the format() method returns a string with a language-specific representation of the list.
... the format() method returns a string with a language-specific representation of the list.
Intl.ListFormat - JavaScript
.listformat object is a constructor for objects that enable language-sensitive list formatting.
...te to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
Intl.Locale.prototype.toString() - JavaScript
the locale's unicode locale identifier string.
...entation of a concept unicode locale identifier.
Intl.NumberFormat.prototype.resolvedOptions() - JavaScript
the intl.numberformat.prototype.resolvedoptions() method returns a new object with properties reflecting the locale and number formatting options computed during initialization of this numberformat object.
...s are present only if neither minimumsignificantdigits nor maximumsignificantdigits was provided in the options argument.
Intl.NumberFormat - JavaScript
ormat object is a constructor for objects that enable language sensitive number formatting.
...the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
Intl.PluralRules.prototype.resolvedOptions() - JavaScript
the intl.pluralrules.prototype.resolvedoptions() method returns a new object with properties reflecting the locale and plural formatting options computed during initialization of this pluralrules object.
...s are present only if neither minimumsignificantdigits nor maximumsignificantdigits was provided in the options argument.
Intl.PluralRules - JavaScript
the intl.pluralrules object enables plural-sensitive formatting and plural-related language rules.
... the intl.pluralrules object enables plural-sensitive formatting and plural-related language rules.
Intl.RelativeTimeFormat.prototype.resolvedOptions() - JavaScript
the intl.relativetimeformat.prototype.resolvedoptions() method returns a new object with properties reflecting the locale and relative time formatting options computed during initialization of this relativetimeformat object.
...r to the short style for some locales.
Intl.RelativeTimeFormat - JavaScript
ct enables language-sensitive relative time formatting.
...lone https://github.com/mdn/interactive-examples and send us a pull request.
Intl - JavaScript
or for objects that represents a unicode locale identifier.
... for objects that enable plural-sensitive formatting and language-specific rules for plurals.
Map.prototype.forEach() - JavaScript
the foreach() method executes a provided function once per each key/value pair in the map object, in insertion order.
..., thisarg]) parameters callback function to execute for each entry of mymap.
Math.abs() - JavaScript
f} \quad x < 0 \end{cases} the source for this interactive example is stored in a github repository.
...mple is stored in a github repository.
Math.acosh() - JavaScript
this interactive example is stored in a github repository.
...like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
Math.asinh() - JavaScript
at} \; \sinh(y) = x the source for this interactive example is stored in a github repository.
...ored in a github repository.
Math.atanh() - JavaScript
\; \tanh(y) = x the source for this interactive example is stored in a github repository.
...d in a github repository.
Math.cbrt() - JavaScript
\; \text{such that} \; y^3 = x the source for this interactive example is stored in a github repository.
...xample is stored in a github repository.
Math.ceil() - JavaScript
.
...repository.
Math.cosh() - JavaScript
\frac{e^x + e^{-x}}{2} the source for this interactive example is stored in a github repository.
...s stored in a github repository.
Math.exp() - JavaScript
source for this interactive example is stored in a github repository.
...ry.
Math.expm1() - JavaScript
or this interactive example is stored in a github repository.
...'d like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
Math.floor() - JavaScript
interactive example is stored in a github repository.
... to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
Math.fround() - JavaScript
identical.
...bit float to a 32-bit float.
Math.hypot() - JavaScript
rger than about 10154, taking the square of them will result in infinity.
...nity.
Math.imul() - JavaScript
dn/interactive-examples and send us a pull request.
...oduct = math.imul(a, b); parameters a first number.
Math.log() - JavaScript
https://github.com/mdn/interactive-examples and send us a pull request.
...uest.
Math.log10() - JavaScript
to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...ps://github.com/mdn/interactive-examples and send us a pull request.
Math.log1p() - JavaScript
roundoff is in binary so sometimes it gets ugly), so you get the answer 1.11022...e-15, with only 3 correct digits.
...swer 1.11022...e-15, with only 3 correct digits.
Math.log2() - JavaScript
ike to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
... https://github.com/mdn/interactive-examples and send us a pull request.
Math.max() - JavaScript
active examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...active-examples and send us a pull request.
Math.min() - JavaScript
st.
...lue1, value2, ...
Math.pow() - JavaScript
syntax math.pow(base, exponent) parameters base the base number.
...mber.
Math.round() - JavaScript
he lower absolute value.
...the argument is rounded to the next integer in the direction of +∞.
Math.sign() - JavaScript
a number.
...erted to one.
Math.sinh() - JavaScript
= \frac{e^x - e^{-x}}{2} the source for this interactive example is stored in a github repository.
... is stored in a github repository.
Math.sqrt() - JavaScript
ory.
...t, please clone https://github.com/mdn/interactive-examples and send us a pull request.
Math.tanh() - JavaScript
the math.tanh() function returns the hyperbolic tangent of a number, that is tanhx=sinhxcoshx=ex-e-xex+e-x=e2x-1e2x+1\tanh x = \frac{\sinh x}{\cosh x} = \frac {e^x - e^{-x}} {e^x + e^{-x}} = \frac{e^{2x} - 1}{e^{2x}+1} syntax math.tanh(x) parameters x a number.
...erbolic tangent of a number, that is tanhx=sinhxcoshx=ex-e-xex+e-x=e2x-1e2x+1\tanh x = \frac{\sinh x}{\cosh x} = \frac {e^x - e^{-x}} {e^x + e^{-x}} = \frac{e^{2x} - 1}{e^{2x}+1} syntax math.tanh(x) parameters x a number.
Number.isFinite() - JavaScript
the number.isfinite() method determines whether the passed value is a finite number.
... if you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
Number.isInteger() - JavaScript
the number.isinteger() method determines whether the passed value is an integer.
...e clone https://github.com/mdn/interactive-examples and send us a pull request.
Number.parseInt() - JavaScript
the number.parseint() method parses a string argument and returns an integer of the specified radix or base.
...l systems) of the string.
Number.prototype.toPrecision() - JavaScript
the toprecision() method returns a string representing the number object to the specified precision.
...g the number object to the specified precision.
Number.prototype.toSource() - JavaScript
the tosource() method returns a string representing the source code of the object.
...ect.
Number.prototype.valueOf() - JavaScript
the valueof() method returns the wrapped primitive value of a number object.
...ed primitive value of a number object.
Object.prototype.__defineGetter__() - JavaScript
this feature is deprecated in favor of defining getters using the object initializer syntax or the object.defineproperty() api.
... this feature is deprecated in favor of defining getters using the object initializer syntax or the object.defineproperty() api.
Object.prototype.__defineSetter__() - JavaScript
this feature is deprecated in favor of defining setters using the object initializer syntax or the object.defineproperty() api.
... parameters prop a string containing the name of the property to be bound to the given function.
Object.freeze() - JavaScript
the object.freeze() method freezes an object.
...at you are changing the value).
Object.isExtensible() - JavaScript
the object.isextensible() method determines if an object is extensible (whether it can have new properties added to it).
...n be changed.
Object.isSealed() - JavaScript
the object.issealed() method determines if an object is sealed.
...zen, // but it doesn't have to be.
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)); // 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().
Object.seal() - JavaScript
the object.seal() method seals an object, preventing new properties from being added to it and marking all existing properties as non-configurable.
...se strict'; delete obj.foo; // throws a typeerror obj.sparky = 'arf'; // throws a typeerror } fail(); // attempted additions through // object.defineproperty will also throw.
Object.setPrototypeOf() - JavaScript
the object.setprototypeof() method sets the prototype (i.e., the internal [[prototype]] property) of a specified object to another object or null.
...o have its prototype set.
Promise.reject() - JavaScript
the promise.reject() method returns a promise object that is rejected with a given reason.
...ll request.
Reflect.apply() - JavaScript
the static reflect.apply() method calls a target function with arguments as specified.
...thisargument the value of this provided for the call to target.
Reflect.defineProperty() - JavaScript
the static reflect.defineproperty() method is like object.defineproperty() but returns a boolean.
... parameters target the target object on which to define the property.
Reflect.deleteProperty() - JavaScript
the static reflect.deleteproperty() method allows to delete properties.
...les and send us a pull request.
Reflect.get() - JavaScript
the static reflect.get() method works like getting a property from an object (target[propertykey]) as a function.
... target the target object on which to get the property.
Reflect.getPrototypeOf() - JavaScript
the static reflect.getprototypeof() method is almost the same method as object.getprototypeof().
...please clone https://github.com/mdn/interactive-examples and send us a pull request.
Reflect.ownKeys() - JavaScript
the static reflect.ownkeys() method returns an array of the target object's own property keys.
... to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
Reflect.set() - JavaScript
the static reflect.set() method works like setting a property on an object.
...target the target object on which to set the property.
Reflect.setPrototypeOf() - JavaScript
the static reflect.setprototypeof() method is the same method as object.setprototypeof(), except for its return type.
...ect.setprototypeof(target, prototype) parameters target the target object of which to set the prototype.
RegExp.prototype.compile() - JavaScript
the deprecated compile() method is used to (re-)compile a regular expression during execution of a script.
...characters (^ and $) as working over multiple lines (i.e., match the beginning or end of each line (delimited by \n or \r), not only the very beginning or end of the whole input string) y sticky; matches only from the index indicated by the lastindex property of this regular expression in the target string (and does not attempt to match from any later indexes).
RegExp.prototype.toSource() - JavaScript
the tosource() method returns a string representing the source code of the object.
...bject.
Set.prototype.add() - JavaScript
the add() method appends a new element with a specified value to the end of a set object.
...f a set object.
Set.prototype.clear() - JavaScript
the clear() method removes all elements from a set object.
... the clear() method removes all elements from a set object.
Set.prototype.delete() - JavaScript
the delete() method removes the specified element from a set object.
...e example is stored in a github repository.
Set.prototype.has() - JavaScript
the has() method returns a boolean indicating whether an element with the specified value exists in a set object or not.
...eractive-examples and send us a pull request.
SharedArrayBuffer.prototype.slice() - JavaScript
the sharedarraybuffer.prototype.slice() method returns a new sharedarraybuffer whose contents are a copy of this sharedarraybuffer's bytes from begin, inclusive, up to end, exclusive.
... the sharedarraybuffer.prototype.slice() method returns a new sharedarraybuffer whose contents are a copy of this sharedarraybuffer's bytes from begin, inclusive, up to end, exclusive.
String.prototype.charCodeAt() - JavaScript
the charcodeat() method returns an integer between 0 and 65535 representing the utf-16 code unit at the given index.
... it is necessary to retrieve not only charcodeat(i), but also charcodeat(i+1) (as if manipulating a string with two letters), or to use codepointat(i) instead.
String.prototype.concat() - JavaScript
the concat() method concatenates the string arguments to the calling string and returns a new string.
... the concat() function concatenates the string arguments to the calling string and returns a new string.
String.prototype.fontcolor() - JavaScript
the fontcolor() method creates a <font> html element that causes a string to be displayed in the specified font color.
...es are listed in the css color reference.
String.prototype.fontsize() - JavaScript
the fontsize() method creates a <font> html element that causes a string to be displayed in the specified font size.
...ting a signed integer between 1 and 7.
String.prototype.lastIndexOf() - JavaScript
the lastindexof() method returns the index within the calling string object of the last occurrence of the specified value, searching backwards from fromindex.
...ndexof('a', 0); // returns -1 'canal'.lastindexof('x'); // returns -1 'canal'.lastindexof('c', -5); // returns 0 'canal'.lastindexof('c', 0); // returns 0 'canal'.lastindexof(''); // returns 5 'canal'.lastindexof('', 2); // returns 2 note: 'abab'.lastindexof('ab', 2) will return 2 and not 0, as fromindex limits only the beginning of the match.
String.prototype.normalize() - JavaScript
the normalize() method returns the unicode normalization form of the string.
...e code points are different, string comparison will not treat them as equal.
String.prototype.split() - JavaScript
the split() method divides a string into an ordered list of substrings, puts these substrings into an array, and returns the array.
... the split() method divides a string into an ordered list of substrings, puts these substrings into an array, and returns the array.
String.prototype.substr() - JavaScript
the substr() method returns a portion of the string, starting at the specified index and extending for a given number of characters afterwards.
...lowing code: // only run when the substr() function is broken if ('ab'.substr(-1) != 'b') { /** * get the substring of a string * @param {integer} start where to start the substring * @param {integer} length how many characters to return * @return {string} */ string.prototype.substr = function(substr) { return function(start, length) { // call the original method return substr.call(this, // did we get a negative start, calculate how much it is from the beginning of the string // adjust the start parameter for negative value start < 0 ?
String.prototype.toLocaleLowerCase() - JavaScript
the tolocalelowercase() method returns the calling string value converted to lower case, according to any locale-specific case mappings.
...e.
String.prototype.toLocaleUpperCase() - JavaScript
the tolocaleuppercase() method returns the calling string value converted to upper case, according to any locale-specific case mappings.
...e.
String.prototype.toLowerCase() - JavaScript
the tolowercase() method returns the calling string value converted to lower case.
...lue converted to lower case.
String.prototype.toSource() - JavaScript
the tosource() method returns a string representing the source code of the object.
...urce() str.tosource() return value a string representing the source code of the calling object.
String.prototype.trim() - JavaScript
the trim() method removes whitespace from both ends of a string.
...e terminator characters (lf, cr, etc.).
Symbol.matchAll - JavaScript
the symbol.matchall well-known symbol returns an iterator, that yields matches of the regular expression against a string.
...d in a github repository.
Symbol.replace - JavaScript
the symbol.replace well-known symbol specifies the method that replaces matched substrings of a string.
... the symbol.replace well-known symbol specifies the method that replaces matched substrings of a string.
Symbol.search - JavaScript
the symbol.search well-known symbol specifies the method that returns the index within a string that matches the regular expression.
... the symbol.search well-known symbol specifies the method that returns the index within a string that matches the regular expression.
Symbol.species - JavaScript
the species accessor property allows subclasses to override the default constructor for objects.
...nstructor for objects.
Symbol.split - JavaScript
the symbol.split well-known symbol specifies the method that splits a string at the indices that match a regular expression.
... the symbol.split well-known symbol specifies the method that splits a string at the indices that match a regular expression.
Symbol.prototype.toSource() - JavaScript
the tosource() method returns a string representing the source code of the object.
... the tosource() method returns a string representing the source code of the object.
TypedArray.prototype.copyWithin() - JavaScript
the copywithin() method copies the sequence of array elements within the array to the position starting at target.
... the copywithin() method copies the sequence of array elements within the array to the position starting at target.
TypedArray.prototype.includes() - JavaScript
the includes() method determines whether a typed array includes a certain element, returning true or false as appropriate.
... the includes() method determines whether a typed array includes a certain element, returning true or false as appropriate.
TypedArray.of() - JavaScript
the typedarray.of() method creates a new typed array from a variable number of arguments.
... the typedarray.of() method creates a new typed array from a variable number of arguments.
TypedArray.prototype.reverse() - JavaScript
the reverse() method reverses a typed array in place.
... the reverse() method reverses a typed array in place.
TypedArray.prototype.subarray() - JavaScript
the subarray() method returns a new typedarray on the same arraybuffer store and with the same element types as for this typedarray object.
...r the current array; if the computed length of the new array would be negative, it's clamped to zero.
TypedArray.prototype.toLocaleString() - JavaScript
the tolocalestring() method returns a string representing the elements of the typed array.
... the tolocalestring() method returns a string representing the elements of the typed array.
Uint16Array() constructor - JavaScript
ay types (such as int32array), the typedarray gets copied into a new typed array.
...e omitted, all of buffer is viewed; if only length is omitted, the remainder of buffer is viewed.
Uint32Array() constructor - JavaScript
the uint32array() typed array constructor creates an array of 32-bit unsigned integers in the platform byte order.
...ay types (such as int32array), the typedarray gets copied into a new typed array.
Uint8Array() constructor - JavaScript
the uint8array() constructor creates a typed array of 8-bit unsigned integers.
...ay types (such as int32array), the typedarray gets copied into a new typed array.
Uint8ClampedArray() constructor - JavaScript
the uint8clampedarray() constructor creates a typed array of 8-bit unsigned integers clamped to 0-255; if you specified a value that is out of the range of [0,255], 0 or 255 will be set instead; if you specify a non-integer, the nearest integer will be set.
...ay types (such as int32array), the typedarray gets copied into a new typed array.
WeakMap.prototype.clear() - JavaScript
the clear() method used to remove all elements from a weakmap object, but is no longer part of ecmascript and its implementations.
... the clear() method used to remove all elements from a weakmap object, but is no longer part of ecmascript and its implementations.
WeakMap.prototype.delete() - JavaScript
the delete() method removes the specified element from a weakmap object.
... examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
WeakMap.prototype.get() - JavaScript
the get() method returns a specified element from a weakmap object.
...tribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
WeakMap.prototype.has() - JavaScript
the has() method returns a boolean indicating whether an element with the specified key exists in the weakmap object or not.
...ntribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
WeakMap.prototype.set() - JavaScript
the set() method adds a new element with a specified key and value to a weakmap object.
...bute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
WeakRef - JavaScript
any strong references to it, the javascript engine's garbage collector may destroy the object and reclaim its memory.
...erent javascript engines may do these things differently, or the same engine may change its algorithms across versions.
WeakSet.prototype.clear() - JavaScript
the clear() method used to remove all elements from a weakset object, but is no longer part of ecmascript and its implementations.
... the clear() method used to remove all elements from a weakset object, but is no longer part of ecmascript and its implementations.
WeakSet.prototype.delete() - JavaScript
the delete() method removes the specified element from a weakset object.
...e examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
WeakSet.prototype.has() - JavaScript
the has() method returns a boolean indicating whether an object exists in a weakset or not.
...'d like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
WebAssembly.Global - JavaScript
constructor returns the function that created this object's instance.
...is object's instance.
WebAssembly.Memory - JavaScript
buffer that holds the raw bytes of memory accessed by a webassembly instance.
... (6.4mib).
WebAssembly.Module.exports() - JavaScript
e object.
...sage().
WebAssembly.Module - JavaScript
array containing descriptions of all the declared exports.
...sage().
WebAssembly.Table.prototype.get() - JavaScript
the get() prototype method of the webassembly.table() object retrieves a function reference stored at a given index.
...ence — this is an exported webassembly function, a javascript wrapper for an underlying wasm function.
WebAssembly.Table - JavaScript
javascript or in webassembly code will be accessible and mutable from both javascript and webassembly.
...lements are null.
eval() - JavaScript
dnesday","thursday","friday","saturday","sunday"][n%7 || 0]; } function runcodewithdatefunction(obj){ return function('"use strict";return (' + obj + ')')()( date ); } console.log(runcodewithdatefunction( "function(date){ return date(5) }" )) the code above may seem inefficiently slow because of the triple nested function, but let's analyze the benefits of the above efficient method: it allows the code in the string passed to runcodewithdatefunction() to be minified.
...getpropname(); // returns "a" or "b" eval( 'var result = obj.' + propname ); however, eval() is not necessary here.
Standard built-in objects - JavaScript
this chapter documents all of javascript's standard, built-in objects, including their methods and properties.
...re either created by the user script or provided by the host application.
delete operator - JavaScript
ion expression).
...ned value, use the undefined value instead of the delete operator.
switch - JavaScript
a default between cases?
... break; // it encounters this break so will not continue into 'default:' default: console.log('default') // fall-through case 1: console.log('1'); } it also works when you put default before all other cases.
Authoring MathML - MathML
"; document.body.appendchild(div); box = div.firstchild.firstchild.getboundingclientrect(); document.body.removechild(div); return math.abs(box.height - 23) <= 1 && math.abs(box.width - 77) <= 1; } alternatively, the following ua string sniffing will allow to detect the rendering engines with native mathml support (gecko and webkit).
...y easily lead to parsing or rendering errors etc the interface is not user-friendly: only code editor without immediate display of the mathematical expression.
Web audio codec guide - Web media technologies
in every way to the original sound, down to the bit.
...ifically, as part of mpeg-4 part 3 and mpeg-2 part 7.
Digital video concepts - Web media technologies
of these to represent their pixels during the encoding process as well as after decoding the video frames.
...e image and a matrix of u and v values indicating the colors to map to those pixels.
The "codecs" parameter in common media types - Web media technologies
se the codecs parameter in a few situations.
... parameter in a few situations.
CSS and JavaScript animation performance - Web Performance
iate points.
...ling element styles in the main ui thread before each repaint event happens, which is almost the same as resampling element styles via a requestanimationframe() callback, also triggered before the next repaint.
Web Performance
images and video the lowest hanging fruit of web performance is often media optimization.
...consider the performance of your web content on these platforms.
Making PWAs work offline with Service workers - Progressive web apps (PWAs)
t the code that registers a new service worker, in the app.js file: note : we're using the es6 arrow functions syntax in the service worker implementation if('serviceworker' in navigator) { navigator.serviceworker.register('./pwa-examples/js13kpwa/sw.js'); }; if the service worker api is supported in the browser, it is registered against the site using the serviceworkercontainer.register() method.
...lone()); return response; }); }); }) ); }); here, we respond to the fetch event with a function that tries to find the resource in the cache and return the response if it's there.
textLength - SVG: Scalable Vector Graphics
the textlength attribute, available on svg <text> and <tspan> elements, lets you specify the width of the space into which the text will draw.
... the textlength attribute, available on svg <text> and <tspan> elements, lets you specify the width of the space into which the text will draw.
SVG Attribute reference - SVG: Scalable Vector Graphics
Web › SVG › Attribute
z-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 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 referrerpolic...
...sform patternunits ping pointer-events points pointsatx pointsaty pointsatz preservealpha preserveaspectratio primitiveunits r r radius referrerpolicy refx refy rel rendering-intent repeatcount repeatdur requiredextensions requiredfeatures restart result rotate rx ry s scale seed shape-rendering slope spacing specularconstant specularexponent speed spreadmethod startoffset stddeviation stemh stemv stitchtiles stop-color stop-opacity strikethrough-position strikethrough-thickness string stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width style surfacescale systemlanguage t tabindex tablevalues target targetx targety text-anchor text-decoration text-renderi...
<textPath> - SVG: Scalable Vector Graphics
Web › SVG › Element › textPath
href the url to the path or basic shape on which to render the text.
... to the path or basic shape on which to render the text.
Getting started - SVG: Scalable Vector Graphics
esult is aesthetically pleasing.
...erenced with an object element: <object data="image.svg" type="image/svg+xml" /> likewise an iframe element can be used: <iframe src="image.svg"></iframe> an img element can theoretically be used too.
How to turn off form autocompletion - Web security
that the criterion can be passed (by adding the relevant autocomplete attributes to individual form fields) even when autocompletion for the form itself has been turned off.
... attributes to individual form fields) even when autocompletion for the form itself has been turned off.
Transport Layer Security - Web security
tiated.
...rs that the tls handshake negotiates is a cipher suite.
Interacting with page scripts - Archive of obsolete content
and the following message is logged: permission denied to access property 'greeting' expose functions to page scripts the structured clone algorithm is a bit more powerful than simple json serialization, but not much: in particular, functions aren't cloned.
Testing the Add-on SDK - Archive of obsolete content
make a pull request for the mozilla/addon-sdk then all of the jpm tests mentioned above will be run on travis-ci automatically and you will see the pass/fail results with a link to the log in the github pull request.
simple-storage - Archive of obsolete content
his problem is to use the --profile option to jpm with a path to a profile - not just a profile name.
ui - Archive of obsolete content
.
windows - Archive of obsolete content
ws").browserwindows; //print how many tabs the current window has console.log("the active window has " + windows.activewindow.tabs.length + " tabs."); // print the title of all browser windows for (let window of windows) { console.log(window.title); } // close the active window windows.activewindow.close(function() { console.log("the active window was closed"); }); methods activate() makes window active, which will focus that window and bring it to the foreground.
console/plain-text - Archive of obsolete content
e plain-text console is a constructor for creating a console object to be used for traditional logging purposes.
net/xhr - Archive of obsolete content
ut contains a special character or two that makes it far less secure than it seems at first glance.
places/bookmarks - Archive of obsolete content
placesemitter inherits from event/target, and emits data, error, and end.
test/utils - Archive of obsolete content
helper methods used in the commonjs unit testing suite.
util/collection - Archive of obsolete content
var collection = require("sdk/util/collection"); var c = new collection.collection(); c.add(1); c.add(2); c.add(3); for (item in c) console.log(item); ...
util/match-pattern - Archive of obsolete content
e.log(pattern.test("http://example.com/")); // true console.log(pattern.test("http://example.com/foo")); // true console.log(pattern.test("http://foo.com/")); // false!
Release notes - Archive of obsolete content
api-utils.publicconstructor details github commits made between firefox 28 and firefox 29.
cfx - Archive of obsolete content
e called local.json which should live in the root directory of your sdk.
jpm - Archive of obsolete content
ically.
Adding a Button to the Toolbar - Archive of obsolete content
other state attributes, either globally, for a specific window, or for a specific tab.
Getting started (cfx) - Archive of obsolete content
can test new changes without needing to restart the browser: make a change to your add-on run cfx xpi post the add-on to the port specified you could even automate this workflow with a simple script.
Modifying the Page Hosted by a Tab - Archive of obsolete content
to follow this tutorial you'll need to have learned the basics of jpm.
Using XPCOM without chrome - Archive of obsolete content
rver normally, a bookmark observer would require chrome components and xpcomutils as described in the following links: (observing changes to bookmarks and tags) , (creating event targets).
Dialogs and Prompts - Archive of obsolete content
now that you understand dialogs, let's examine prompts.
Forms related code snippets - Archive of obsolete content
adioboxes and textboxes (written in pure css, without javascript), please see this example.
Examples and demos from articles - Archive of obsolete content
ormations needed by each animation to start, stop, etc.
HTML to DOM - Archive of obsolete content
ng_type,null).stringvalue; dump("[df] text in /html/body/h1 = "+text+"\n"); } }, as you can see, we obtain full access to the dom of the page we loaded in background, and we can even evaluate xpath expressions.
JavaScript Debugger Service - Archive of obsolete content
ion here }, onscriptdestroyed: function(script) { // your function here } }; jsd.errorhook = { onerror: function(message, filename, lineno, colno, flags, errnum, exc) { // your function here } }; // triggered when jsd.errorhook[onerror] returns false jsd.debughook = { onexecute: function(frame, type, rv) { // your function 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.
On page load - Archive of obsolete content
e load it is likely you would want to run some cleanup code on page unload.
QuerySelector - Archive of obsolete content
alert($('#myid').id); (note that while using the firefox web console, the above functions are available automatically.) both xul and even xml can be easily made supportable (an alternative approach to the following would be to add chromewindow.prototype or window.prototype, accessing this.document.queryselector, or following the jquery style of chaining by returning 'this' within each prototype method of $()): htmldocument.prototype.$ = function (selector) { // only for html return this.queryselector(selector); }; example: <h1>test!</h1> <script> htmldocument.prototype.$ = function (selector) { return this.queryselector(selector); }; alert(document.$('h1')); // [object htmlheadingelement] </script> xuldocument.prototype.$ = function (selector) { // only for xul return this.query...
Tree - Archive of obsolete content
tindex(sel); note that the current index may be unselected (for example, a multi-select tree).
Custom about: URLs - Archive of obsolete content
ate a unique aboutpage_id, see this page to learn more about generating uuid's: uuid.
Enhanced Extension Installation - Archive of obsolete content
now only a single datasource, install location information is tracked for every item in the single datasource in the form of a string <em:installlocation> property on each item.
Extension Packaging - Archive of obsolete content
tion/x-xpinstall .xpi install extension files directly if you know the location of the application (if you are installing an extension as part of the application installer, for example), you can install the extension files directly to <appdir>/extensions/<extensionid>.
How to convert an overlay extension to restartless - Archive of obsolete content
sibly skin) mappings in it now.
Interaction between privileged and non-privileged pages - Archive of obsolete content
principle as the above example.
Jetpack Processes - Archive of obsolete content
rooted yet unreachable in both processes and a memory leak is created.
Listening to events in Firefox extensions - Archive of obsolete content
empts to refresh itself and allow the user to block the attempt.
Multiple item extension packaging - Archive of obsolete content
minversion and the maxversion specified should be the lowest maxversion from all of the installable bundles contained by the multiple item package for the em:targetapplication.
Appendix B: Install and Uninstall Scripts - Archive of obsolete content
told that firefox needs to restart in order for the extension to be completely removed.
The Essentials of an Extension - Archive of obsolete content
bout let declarations.
User Notifications and Alerts - Archive of obsolete content
, nb.priority_info_high, [ acceptbutton, declinebutton ]); all browser tabs have a notification box by default, so you don't need to do any overlaying.
Overlay extensions - Archive of obsolete content
is page contains links to documentation for the approach to developing extensions for gecko-based applications which uses: xul overlays to specify the interface apis available to privileged code, such as tabbrowser and javascript modules, to interact with the application and content.
Extensions support in SeaMonkey 2 - Archive of obsolete content
box id="browser-bottombox"> <something insertbefore="status-bar" /> </vbox> use the following technique to make your overlay work on both seamonkey 2 and firefox 3: <window id="main-window"> <vbox id="browser-bottombox" insertbefore="status-bar"> <something insertbefore="status-bar" /> </vbox> </window> thunderbird 3 gfolderdisplay api seamonkey 2.0 only supports a reduced set of methods: selectedcount selectedmessage selectedmessageisfeed selectedmessageisimap selectedmessageisnews selectedmessageisexternal selectedindices selectedmessages selectedmessageuris messagedisplay gmessagedisplay api seamonkey 2.0 only supports a reduced set of methods: displayedmessage visible javascript tweaks firefox supports some shorthand in various places.
Session store API - Archive of obsolete content
ions to easily save and restore data across firefox sessions.
Setting up an extension development environment - Archive of obsolete content
to test snippets of javascript (firefox and thunderbird) sqlite manager to manage the sqlite database (firefox and thunderbird) viewabout enables access to various about: dialogs from the view menu (firefox version, thunderbird version ) crash me now!
Supporting search suggestions in search plugins - Archive of obsolete content
json: ["fir", ["firefox", "first choice", "mozilla firefox"]] note that in this example, only the query string and completion array are specified, leaving out the optional elements.
An Interview With Douglas Bowman of Wired News - Archive of obsolete content
ould be rendered in the browser window.
chargingchange - Archive of obsolete content
the chargingchange event is fired when the charging attribute of the battery api has changed.
chargingtimechange - Archive of obsolete content
the chargingtimechange event is fired when the chargingtime attribute of the battery api has changed.
dischargingtimechange - Archive of obsolete content
schargingtimechange event is fired when the dischargingtime attribute of the battery api has changed.
levelchange - Archive of obsolete content
the levelchange event is fired when the level attribute of the battery api has changed.
List of Mozilla-Based Applications - Archive of obsolete content
lkit uses xulrunner dom to implement the widgets and event handling.
Defining Cross-Browser Tooltips - Archive of obsolete content
of elements.
ActiveX Control for Hosting Netscape Plug-ins in IE - Archive of obsolete content
custom plug-in parameters as additional <param> elements.
Making it into a dynamic overlay and packaging it up for distribution - Archive of obsolete content
warning: the content of this article may be out of date.
Download Manager improvements in Firefox 3 - Archive of obsolete content
irefox 3 offers improvements to the download manager that allow multiple progress listeners, use of the storage api for data management, download resuming, and more.
Drag and Drop - Archive of obsolete content
d in the dropped location.
Content states and the style system - Archive of obsolete content
ger match.
importUserCertificates - Archive of obsolete content
"certrepstring" this string is the cmmf certification response from the ca that contains the user's certificate(s).
Extenders - Archive of obsolete content
what we learned from it and the blog post announcing the first sdk release for what we're up to next!
Me - Archive of obsolete content
Archive › Mozilla › Jetpack › Meta › Me
rototype, which is no longer under active development.
Multimedia - Archive of obsolete content
audio interface for manipulating audio video interface for manipulating video music methods for interacting with music content ...
Jetpack Snippets - Archive of obsolete content
al jetpack scope jetpack.slidebar.append({ onready: function (slide) { // call out to a global function, passing the slidebar object exinitslidebar(slide); }, ...});function exinitslidebar(aslidebar) { // this variable will now be global slider = aslidebar;} // then, accessing the slidebar htmlvar tl = slider.contentdocument.getelementbyid("thumblist"); // or calling slidebar api methods or accessing propertiesslider.notify(); ...
Clipboard Test - Archive of obsolete content
r features to access the clipboard.
System - Archive of obsolete content
ge documents the jetpack prototype, which is no longer under active development.
Notifications - Archive of obsolete content
this page documents the jetpack prototype, which is no longer under active development.
Tabs - Archive of obsolete content
Archive › Mozilla › Jetpack › UI › Tabs
versestringshiftstringsortstringsplicestringunshiftstring)this is some default text lengththe number of open tabsstring focusedthe current tab in your browserstring tostringstuffstring popstuffstring pushstuffstring reversestuffstring shiftstuffstring sortstuffstring splicestuffstring unshiftstuffstring onready()when the inherited document is fully loaded.
slideBar - Archive of obsolete content
summary: slidebar is a reinvention of the old sidebar feature of browsers.
slideBar - Archive of obsolete content
what we're up to next!
Microsummary XML grammar reference - Archive of obsolete content
duction to how to create a microsummary, read the article creating a microsummary.
Bundles - Archive of obsolete content
lication profile directory can be used instead for this purpose.
Extensions - Archive of obsolete content
prism has support for extensions.
New Skin Notes - Archive of obsolete content
e "my" crazy up there -- do we need all the "my"s?
Reading textual data - Archive of obsolete content
m // this assumes istream is the stream you want to read from var scriptablestream = components.classes["@mozilla.org/scriptableinputstream;1"] .createinstance(components.interfaces.nsiscriptableinputstream); scriptablestream.init(istream); var chunk = scriptablestream.read(4096); var text = converter.converttounicode(chunk); however, you must be aware that this method will not work for character encodings that have embedded null bytes, such as utf-16 or utf-32.
Same origin policy for XBL - Archive of obsolete content
where the sheet is loaded from, just like it would for an html document loaded from a similar source.
SpiderMonkey coding conventions - Archive of obsolete content
spidermonkey project owners enforce coding conventions pretty strictly during code reviews.
File object - Archive of obsolete content
s is supported for this file.
Table Cellmap - Archive of obsolete content
sed by zero spans, this is at least a o2(n) algorithm.
Abc Assembler Tests - Archive of obsolete content
htrue // expected pushnull pushnull lessequals // actual callpropvoid compare_stricteq 3 // use .try / .catch to catch typeerror // convert_o null .try { pushnull convert_o pop findproperty fail pushstring "convert_o null" pushstring "exception should have been thrown: typeerror: error #1009: cannot access a property or method of a null object reference." getlocal1 callpropvoid fail 3 jump finished_convert_o_null } .catch { getlocal0 pushscope setlocal2 // save typeerror findproperty compare_typeerror pushstring "convert_o null" // test name pushstring "typeerror: error #1009" // expected getlocal2 // actual callpropvoid...
Tamarin build documentation - Archive of obsolete content
/builds/asc/latest/asc.jar put it in utils/ building tamarin for android 2.3.3 on mac public sdk/ndk setup to build tamarin for android you will need an sdk/ndk.
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.
URIs and URLs - Archive of obsolete content
their origin, and the resolution of some url may require the use of more than one protocol (e.g., both dns and http are typically used to access an "http" url's resource when it can't be found in a local cache).
Venkman Introduction - Archive of obsolete content
button to the right of the stop button dismisses the stop mode and specifies that scripts should be executed normally, without pausing as each statement is executed.
Writing textual data - Archive of obsolete content
alling this is important for proper output.
Install script template - Archive of obsolete content
values used by the cycore developers (www.cycore.com) who helped make this install script var exceptionoccurederror = -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 d...
File.windowsShortcut - Archive of obsolete content
file.windowsshortcut in this example, the windowsshortcut method is used to add a shortcut in the program directory ("program" is a keyword for the directory in which the program itself is installed, for example, c:\program files\netscape\netscape 6\" on windows) to windows software (misc.exe) that is installed in the "windows" directory.
Install.addDirectory - Archive of obsolete content
install.adddirectory the install object's adddirectory method queues an entire directory for installation once performinstall is called.
Install.addFile - Archive of obsolete content
install.addfile the install object's addfile method is the standard way to queue files for installation.
InstallTrigger.startSoftwareUpdate - Archive of obsolete content
installtrigger.startsoftwareupdate this is a very simple example of the installtrigger object's principal method, startsoftwareupdate, which takes a string representing the path to the xpi and installs that xpi on the local machine.
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.
File Object - Archive of obsolete content
nd as of gecko 1.9 no longer available.
alert - Archive of obsolete content
summary the alert function displays a modal dialog box with a message representing the input.
cancelInstall - Archive of obsolete content
summary aborts installation of the software; performs cleanup of temporary files.
Properties - Archive of obsolete content
on version may produce false results.
Return Codes - Archive of obsolete content
return codes the methods described in this chapter can return any of the following return codes.
dlgtype - Archive of obsolete content
« xul reference home dlgtype type: one of the values below the dialog type of the button, used only when the button is in a dialog box.
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.
homepage - Archive of obsolete content
« xul reference home homepage type: url this attribute allows you to set a homepage for the browser element.
onbeforeaccept - Archive of obsolete content
« xul reference home onbeforeaccept type: script code the code in this attribute is called when the ok button is pressed or the acceptdialog method is called.
panel.noautohide - Archive of obsolete content
« xul reference home noautohide type: boolean if false, the default value, the panel will be hidden when the user clicks outside the panel or switches focus to another application.
persistence - Archive of obsolete content
« xul reference home persistence type: integer the persistence may be set to a non-zero value so that the notificationbox's removetransientnotifications method does not remove them.
pinned - Archive of obsolete content
« xul reference home pinned type: boolean this attribute is set to true if the tab has been pinned (that is, if it's an app tab).
popup.left - Archive of obsolete content
« xul reference home left type: integer overrides the horizontal position of the popup specified by the showpopup method.
popup.top - Archive of obsolete content
« xul reference home top type: integer overrides the vertical position of the popup specified by the showpopup method.
prefpane.selected - Archive of obsolete content
« xul reference home selected type: boolean this attribute will be set to true for the currently selected prefpane.
priority - Archive of obsolete content
« xul reference home priority type: integer numeric value that specifies the order in which the notifications appear.
rows - Archive of obsolete content
Archive › Mozilla › XUL › Attribute › rows
« xul reference home rows type: integer the number of rows to display in the element.
suppressonselect - Archive of obsolete content
« xul reference home suppressonselect type: boolean if this attribute is not specified, a select event is fired whenever an item is selected, either by the user or by calling one of the select methods.
wait-cursor - Archive of obsolete content
« xul reference home wait-cursor type: boolean set this attribute to true to have the cursor switch to a waiting cursor while the mouse is hovering over the element.
Building accessible custom components in XUL - Archive of obsolete content
it?
IO - Archive of obsolete content
Archive › Mozilla › XUL › FileGuide › IO
r a list of errors that might occur while using files.
addTabsProgressListener - Archive of obsolete content
« xul reference home addtabsprogresslistener( listener ) return type: no return value add a progress listener to the browser which will monitor loaded documents in all tabs in the tabbed browser.
swapDocShells - Archive of obsolete content
« xul reference home swapdocshells( otherbrowser ) return type: no return value swaps the content, history and current state of this browser with another browser.
addSession - Archive of obsolete content
« xul reference home addsession( session ) obsolete since gecko 26 return type: nsiautocompletesession adds a new session object to the autocomplete widget.
addTab - Archive of obsolete content
Archive › Mozilla › XUL › Method › addTab
rreruri, charset, postdata, owner, allowthirdpartyfixup ) addtab( url, {referreruri: ..., charset: ..., postdata: ..., owner: ..., allowthirdpartyfixup: ..., relatedtocurrent: ...
advance - Archive of obsolete content
Archive › Mozilla › XUL › Method › advance
« xul reference home advance( pageid ) return type: no return value call this method to go to the next page.
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.
cancel - Archive of obsolete content
Archive › Mozilla › XUL › Method › cancel
« xul reference home cancel() return type: no return value call this method to cancel and close the wizard.
decrease - Archive of obsolete content
« xul reference home method of: scale textbox decrease() return type: no return value decreases the value of the scale or number box by the increment.
decreasePage - Archive of obsolete content
« xul reference home method of: scale decreasepage() return type: no return value decreases the value of the scale by the pageincrement.
extra1 - Archive of obsolete content
Archive › Mozilla › XUL › Method › extra1
« xul reference home extra1() return type: no return value call this method to simulate clicking the extra1 button.
extra2 - Archive of obsolete content
Archive › Mozilla › XUL › Method › extra2
« xul reference home extra2() return type: no return value call this method to simulate clicking the extra2 button.
getBrowserIndexForDocument - Archive of obsolete content
« xul reference home getbrowserindexfordocument( document ) return type: integer returns the index of the browser for the specified document in the tabbrowser the method was invoked on.
getEditor - Archive of obsolete content
« xul reference home geteditor( window ) return type: nsieditor returns the editing interface for the editor which contains numerous methods for manipulating the document.
getElementsByAttributeNS - Archive of obsolete content
e 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.
getHTMLEditor - Archive of obsolete content
« xul reference home gethtmleditor( window ) return type: nsihtmleditor returns the html editing interface for the editor which contains methods for manipulating an html document.
getNextItem - Archive of obsolete content
« xul reference home getnextitem( startitem, delta ) return type: element this method returns the item a given distance (delta) after the specified startitem, or null if no such item exists.
getPreviousItem - Archive of obsolete content
« xul reference home getpreviousitem( startitem, delta ) return type: element this method returns the item a given distance (delta) before the specified startitem, or null if no such item exists.
getSelectedItem - Archive of obsolete content
« xul reference home getselecteditem( index ) return type: element when multiple items are selected, you can retrieve each selected item using this method.
goTo - Archive of obsolete content
Archive › Mozilla › XUL › Method › goTo
« xul reference home goto( pageid ) return type: no return value this method is used to change which page is currently displayed, specified by the pageid argument.
hidePopup - Archive of obsolete content
« xul reference home method of: popup, menupopup, tooltip hidepopup() return type: no return value closes the popup immediately.
increase - Archive of obsolete content
« xul reference home method of: scale textbox increase() return type: no return value increases the value of the scale or number box by the increment.
increasePage - Archive of obsolete content
« xul reference home method of: scale increasepage() return type: no return value increases the value of the scale by the page increment.
insertItem - Archive of obsolete content
be used to wrap the new item in another element.
insertItemAt - Archive of obsolete content
« xul reference home insertitemat( index, label, value ) return type: element this method creates a new item and inserts it at the specified position.
loadURI - Archive of obsolete content
Archive › Mozilla › XUL › Method › loadURI
« xul reference home note: this is the xul method on <browser> / <tabbrowser>, not the global function in chrome://browser/content/browser.js.
loadURIWithFlags - Archive of obsolete content
« xul reference home loaduriwithflags( uri, flags, referrer, charset, postdata ) return type: no return value load a url into the document, with the specified load flags, the given referrer, character set, and post data.
menulist.select - Archive of obsolete content
« xul reference home select() return type: no return value select all the text in the menulist's textbox.
onSearchComplete - Archive of obsolete content
« xul reference home onsearchcomplete() return type: no return value calls the onsearchcomplete event handler.
onTextEntered - Archive of obsolete content
« xul reference home ontextentered() return type: event result calls the ontextentered event handler.
onTextReverted - Archive of obsolete content
« xul reference home ontextreverted() return type: event result calls the ontextreverted event handler.
openWindow - Archive of obsolete content
« xul reference home openwindow( windowtype, url, features, params ) return type: window open a child window.
reload - Archive of obsolete content
Archive › Mozilla › XUL › Method › reload
« xul reference home reload() return type: no return value reloads the document in the browser element on which you call this method.
removeAllTabsBut - Archive of obsolete content
« xul reference home removealltabsbut( tabelement ) return type: no return value removes all of the tab panels except for the one corresponding to the specified tab.
removeCurrentTab - Archive of obsolete content
« xul reference home removecurrenttab() return type: tab element removes the currently displayed tab page.
removeItemAt - Archive of obsolete content
« xul reference home removeitemat( index ) return type: element removes the child item in the element at the specified index.
removeTab - Archive of obsolete content
« xul reference home removetab( tabelement ) return type: no return value removes a specific tabbed page corresponding to the given tab element.
rewind - Archive of obsolete content
Archive › Mozilla › XUL › Method › rewind
« xul reference home rewind() return type: no return value call this method to go back a page.
selectItemRange - Archive of obsolete content
« xul reference home selectitemrange( startitem, enditem ) return type: no return value selects the items between the two items given as arguments, including the start and end items.
startEditing - Archive of obsolete content
« xul reference home startediting( row, column ) return type: no return value activates user editing of the given cell, which is specified by row index number and the nsitreecolumn in which it is located.
stop - Archive of obsolete content
Archive › Mozilla › XUL › Method › stop
« xul reference home stop() return type: no return value equivalent to pressing the stop button, this method stops the currently loading document.
stopEditing - Archive of obsolete content
« xul reference home stopediting( shouldaccept ) return type: no return value stops editing the cell currently being edited.
Node - Archive of obsolete content
Archive › Mozilla › XUL › Node
ree.
MenuButtons - Archive of obsolete content
en the first item on the menu ('save this document') is activated, it will also display the 'save' alert as the command event bubbles up to the button.
MenuItems - Archive of obsolete content
checked and show the toolbar when the menuitem is not checked because the checked state hasn't been modified.
builder - Archive of obsolete content
...
currentIndex - Archive of obsolete content
e obtained by this property.
currentPane - Archive of obsolete content
« xul reference currentpane type: prefpane element reference to the currently displayed pane.
currentURI - Archive of obsolete content
« xul reference currenturi type: nsiuri this read-only property contains the currently loaded url.
webNavigation - Archive of obsolete content
« xul reference webnavigation type: nsiwebnavigation this read-only property contains the nsiwebnavigation object for the document.
Sorting and filtering a custom tree view - Archive of obsolete content
this is example code for sorting and filtering a custom tree view, that is, a tree whose values are loaded via javascript.
chromeclass-toolbar - Archive of obsolete content
« xul reference home chromeclass-toolbar when this class is used, the toolbar will be hidden when a window is opened by setting the toolbar option to no in the window.open method.
Building Menus With Templates - Archive of obsolete content
r pass through the data handles the houses.
Building Trees - Archive of obsolete content
alue for normal progress meters.
Multiple Queries - Archive of obsolete content
when used together in this example, the results are combined and only three results are shown.
Template Logging - Archive of obsolete content
or example, if you spell a value wrong, no data may be returned, but the template system won't know that that this was because of a spelling error, or simply that there shouldn't be any data anyway.
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.
The Joy of XUL - Archive of obsolete content
r of other technologies introduced by mozilla that complement xul for building cross platform web applications.
Things I've tried to do with XUL - Archive of obsolete content
yourself to grow/shrink content as needed -- as you grow the content, when you shrink the window, the content will simply be clipped (because now it has a bigger size than the window).
Complete - Archive of obsolete content
that might depend on the locale in separate files in a separate directory.
Anonymous Content - Archive of obsolete content
g definition declared in an xbl file.
Box Objects - Archive of obsolete content
manipulating.
Creating a Window - Archive of obsolete content
recognize this url internally.
Creating an Installer - Archive of obsolete content
which will indicate which files from the archive should be installed.
Keyboard Shortcuts - Archive of obsolete content
« previousnext » you could use keyboard event handlers to respond to the keyboard.
Persistent Data - Archive of obsolete content
a script to collect information about what you would like to save and then save it to a file.
Popup Menus - Archive of obsolete content
ents, which is one advantage of using this popup syntax.
Stacks and Decks - Archive of obsolete content
"color: red; font-size: 15pt;"/> </stack> both description elements create text with a size of 15 points.
Tabboxes - Archive of obsolete content
it is common in preference dialogs for tabbed pages to appear.
Templates - Archive of obsolete content
« previousnext » in this section, we'll find out how to populate elements with data.
Toolbars - Archive of obsolete content
« previousnext » a toolbar is usually placed along the top of a window and contains a number of buttons that perform common functions.
Tree Selection - Archive of obsolete content
ich holds information about the selected rows.
Trees - Archive of obsolete content
Archive › Mozilla › XUL › Tutorial › Trees
the getcelltext() function will be called to get the label for a particular cell in the tree.
XBL Attribute Inheritance - Archive of obsolete content
tributes on the box with the okcancel class will automatically change the values on the buttons.
XBL Inheritance - Archive of obsolete content
initions.
XUL Tutorial - Archive of obsolete content
jects rdf and templates introduction to rdf templates trees and templates rdf datasources advanced rules persistent data skins and locales adding style sheets styling a tree modifying the default skin creating a skin skinning xul files by hand localization property files bindings introduction to xbl anonymous content xbl attribute inheritance adding properties adding methods adding event handlers xbl inheritance creating reusable content using css and xbl xbl example specialized window types features of a window creating dialogs open and save dialogs creating a wizard more wizards overlays cross package overlays installation creating an installer install scripts additional install features this xul tutorial was originally created by neil dea...
Urlbar-icons - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] the location of ui elements like the bookmarks, feed and go buttons.
XUL element attributes - Archive of obsolete content
be repeated for each node in the rdf datasource.
XUL Reference - Archive of obsolete content
ck grid columns column rows row scrollbox action assign binding bindings conditions content member param query queryset rule template textnode triple where script commandset command broadcaster broadcasterset observes key keyset stringbundle stringbundleset arrowscrollbox dropmarker grippy scrollbar scrollcorner spinbuttons all attributes all properties all methods attributes defined for all xul elements style classes event handlers deprecated/defunct markup ...
XUL Template Primer - Bindings - Archive of obsolete content
in the <conditions>, or it may refer to another <binding>'s object variable.[1] in our example, the second <binding>'s subject does this: the value for the ?addr variable is computed by the first <binding> the predicate must name the uri of an rdf property, in this case, nc:address.
XUL accessibility guidelines - Archive of obsolete content
racefully.
XML - Archive of obsolete content
balance precise control of layout with flexibility and ease of use, and in this respect it does a great job.
XUL - Archive of obsolete content
cations using xul and other components of the platform).
Application Update - Archive of obsolete content
this article will hopefully explain how to update your xulrunner application using the same method that firefox, thunderbird, songbird, and chatzilla use.
Custom app bundles for Mac OS X - Archive of obsolete content
.
Dialogs in XULRunner - Archive of obsolete content
log" description="example dialog"/> <groupbox flex="1"> <caption label="select favorite fruit"/> <radiogroup> <radio id="1" label="oranges because they are fruity"/> <radio id="2" selected="true" label="strawberries because of color"/> <radio id="3" label="bananna because it pre packaged"/> </radiogroup> </groupbox> </dialog> xul window elements have a special method to open dialogs, called window.opendialog().
Getting started with XULRunner - Archive of obsolete content
lowercase and longer than 3 characters step 5: set up the chrome manifest the chrome manifest file is used by xulrunner to define specific uris which in turn are used to locate application resources.
Make your xulrunner app match the system locale - Archive of obsolete content
work for you in all cases.
calIFileType - Archive of obsolete content
nsion; readonly attribute astring extensionfilter; readonly attribute astring description; }; attributes defaultextension the default extension that should be associated with files of this type.
Mozprocess - Archive of obsolete content
cwd=none, # working directory for cmd; defaults to none env={}, # environment to use for the process; defaults to os.environ ) exit_code = process.waitforfinish(timeout=60) # seconds see an example in https://github.com/mozilla/mozbase/b...profilepath.py processhandler may be subclassed to handle process timeouts (by overriding the ontimeout() method), process completion (by overriding onfinish()), and to process the command output (by overriding processoutputline()).
Gecko Compatibility Handbook - Archive of obsolete content
css 1 standard to some degree, the implementations are not complete and have non-standard features added.
2006-11-03 - Archive of obsolete content
summary: mozilla.dev.apps.thunderbird - october 28 - november 03, 2006 announcements none for this week.
2006-11-10 - Archive of obsolete content
ne by ignoring the 501 response codes.
Extentsions FAQ - Archive of obsolete content
yes, this is possible.
2006-09-29 - Archive of obsolete content
do not follow the wc3 guidelines in appendix c of xhtml 1.0.
2006-12-08 - Archive of obsolete content
summary: mozilla.dev.tech.xpcom - dec 02- dec 08, 2006 announcements none during this week.
NPIdentifier - Archive of obsolete content
« gecko plugin api reference « plug-in side plug-in api summary npidentifier is an opaque type used for method and property identifiers, such as strings or integers.
NPN_MemAlloc - Archive of obsolete content
its memory partition with cached data that is only purged as necessary.
NPN_MemFlush - Archive of obsolete content
urns the amount of freed memory, in bytes.
NPN_SetValue - Archive of obsolete content
la plugins project page for more details).
NPN_Write - Archive of obsolete content
the browser encountered an error while processing the data, so the plug-in should terminate the stream by calling npn_destroystream().
NPObject - Archive of obsolete content
count the reference count for the object.
The First Install Problem - Archive of obsolete content
ocument presents windows solutions for plugin vendors.
Syndicating content with RSS - Archive of obsolete content
syndication (or web syndication) is a method which lets a web site make its content available for others to read, listen to, or watch.
Threats - Archive of obsolete content
y, data and confidential information from your website by infecting website with malware.
Building a Theme - Archive of obsolete content
ses of just testing our .xpi file we can just drag it into the add-ons manager via "tools -> add-ons manager", or open it using "file -> open file...".
Common Firefox theme issues and solutions - Archive of obsolete content
pector breadcrumb button backgrounds are not consistent between pre-ff14 and ff14+ the use of the styling rule fill in -moz-border-image is incompatible with versions of firefox older than firefox14, however, its use is needed for firefox 14 and later.
-ms-ime-align - Archive of obsolete content
the -ms-ime-align css property is a microsoft extension aligning the input method editor (ime) candidate window box relative to the element on which the ime composition is active.
CSS - Archive of obsolete content
Archive › Web › CSS
esthe -ms-hyphenate-limit-lines css property is a microsoft extension specifying the maximum number of consecutive lines in an element that may be ended with a hyphenated word.-ms-hyphenate-limit-zonethe -ms-hyphenate-limit-zone css property is a microsoft extension specifying the width of the hyphenation zone.-ms-ime-alignthe -ms-ime-align css property is a microsoft extension aligning the input method editor (ime) candidate window box relative to the element on which the ime composition is active.
Accessing XML children - Archive of obsolete content
(); // returns 2 list[0]; // the first bar element list[1]; // the second bar element notice further that this list is "live" in the sense that changes made to the list are reflected back in the element that the list originally came from.
Introduction - Archive of obsolete content
cument that reads <foo>2</foo>.
Namespaces - Archive of obsolete content
returns the name of the element, without any namespace prefix.
Iterator - Archive of obsolete content
stance that iterates over object.
Array.unobserve() - Archive of obsolete content
the array.unobserve() method was used to remove observers set by array.observe(), but has been deprecated and removed from browsers.
Array comprehensions - Archive of obsolete content
2006, 2010, 2014]; [for (year of years) if (year > 2000) year]; // [2006, 2010, 2014] [for (year of years) if (year > 2000) if (year < 2010) year]; // [2006], the same as below: [for (year of years) if (year > 2000 && year < 2010) year]; // [2006] array comprehensions compared to map and filter an easy way to understand array comprehension syntax, is to compare it with the array map and filter methods: var numbers = [1, 2, 3]; numbers.map(function (i) { return i * i }); numbers.map(i => i * i); [for (i of numbers) i * i]; // all are [1, 4, 9] numbers.filter(function (i) { return i < 3 }); numbers.filter(i => i < 3); [for (i of numbers) if (i < 3) i]; // all are [1, 2] array comprehensions with two arrays using two for-of iterations to work with two arrays: var numbers = [1, 2, 3]; var ...
Enumerator - Archive of obsolete content
bytespergb; var totalgb = drv.totalsize / bytespergb; drivestring += freegb.tofixed(3) + " gb free of "; drivestring += totalgb.tofixed(3) + " gb"; } else{ drivestring += "not ready"; } drivestring += "<br />";; e.movenext(); } document.write(drivestring); // output: <drive information properties the enumerator object has no properties.
GetObject - Archive of obsolete content
use the optional class argument.
VBArray.getItem - Archive of obsolete content
non-standard.
VBArray.toArray - Archive of obsolete content
non-standard.
@cc_on - Archive of obsolete content
c_on statement activates conditional compilation support within comments in a script.
@if - Archive of obsolete content
lif clauses.
New in JavaScript 1.2 - Archive of obsolete content
for navigator 3.0.
New in JavaScript 1.4 - Archive of obsolete content
e following is a changelog for javascript 1.4, which was only used for netscape's server side javascript released in 1999.
New in JavaScript 1.6 - Archive of obsolete content
the following is a changelog for javascript 1.6.
ECMAScript 2015 support in Mozilla - Archive of obsolete content
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) ...
New in JavaScript - Archive of obsolete content
nd 2nd edition.
Number.toInteger() - Archive of obsolete content
the number.tointeger() method used to evaluate the passed value and convert it to an integer, but its implementation has been removed.
Object.getNotifier() - Archive of obsolete content
the object.getnotifer() method was used to create an object that allows to synthetically trigger a change, but has been deprecated and removed in browsers.
Object.observe() - Archive of obsolete content
the object.observe() method was used for asynchronously observing the changes to an object.
Object.unobserve() - Archive of obsolete content
the object.unobserve() method was used to remove observers set by object.observe(), but has been deprecated and removed from browsers.
LiveConnect Reference - Archive of obsolete content
this section documents the java classes used for liveconnect, along with their constructors and methods.
java - Archive of obsolete content
summary core object a top-level object used to access any java class in the package java.*.
netscape - Archive of obsolete content
summary core object a top-level object used to access any java class in the package netscape.*.
sun - Archive of obsolete content
summary core object a top-level object used to access any java class in the package sun.*.
ParallelArray - Archive of obsolete content
if necessary.
Window.importDialog() - Archive of obsolete content
e is discouraged since it could be removed at any time.
Mozilla XForms Specials - Archive of obsolete content
oaded from that url should be local files, and thus trusted, but it is not always the case.
Archived open Web documentation - Archive of obsolete content
page using javascript generators in firefox generators can be used to simplify asynchronous code in firefox by opting in to using javascript version 1.7 or later.
Choosing Standards Compliance Over Proprietary Practices - Archive of obsolete content
ng paragraphs.
Describing microformats in JavaScript - Archive of obsolete content
tructure is specified by its name, and may include additional attributes if the property so requires.
Parsing microformats in JavaScript - Archive of obsolete content
firefox 3 introduces a new api for managing and parsing microformats.
Using the DOM File API in chrome code - Extensions
platform note: however using hard-coded paths raises cross platform issues since it uses a platform-dependent path separator (here "/").
bootstrap.js - Extensions
the bootstrap.js script should contain several specific functions, which are called by the browser to manage the extension.
2D collision detection - Game development
var dy = circle1.y - circle2.y; var distance = math.sqrt(dx * dx + dy * dy); if (distance < circle1.radius + circle2.radius) { // collision detected!
WebVR — Virtual Reality for the Web - Game development
pi the webvr api is based on two concepts — sending stereoscopic images to both lenses in your headset and receiving positional data for your head from the sensor, and those two are handled by hmdvrdevice (head-mounted display virtual reality device) and positionsensorvrdevice.
Desktop gamepad controls - Game development
// ...
Crisp pixel art look with image-rendering - Game development
en on high definition monitors.
Efficient animation for web games - Game development
if you are setting a transform on something that would overlap its container’s bounds, you may want to set overflow: hidden on that container for the duration of the animation.
Finishing up - Game development
tanimationframe(draw); the draw() function is now getting executed again and again within a requestanimationframe() loop, but instead of the fixed 10 milliseconds frame rate, we are giving control of the framerate back to the browser.
Track the score and win - Game development
unction, to create and update the score display.
Bounce off the walls - Game development
— first we'll look at the walls.
Initialize the framework - Game development
haser source code to the page.
Player paddle and controls - Game development
lide with the ball we have to enable physics for the paddle.
Randomizing gameplay - Game development
h it to understand better how it works: summary you've finished all the lessons — congratulations!
Scaling - Game development
should look after completing this lesson at gamedev-phaser-content-kit/demos/lesson02.html.
Win the game - Game development
var count_alive = 0; for (i = 0; i < bricks.children.length; i++) { if (bricks.children[i].alive == true) { count_alive++; } } if (count_alive == 0) { alert('you won the game, congratulations!'); location.reload(); } } we loop through the bricks in the group using bricks.children, checking for the aliveness of each with each brick's .alive() method.
API - MDN Web Docs Glossary: Definitions of Web-related terms
face) is a set of features and rules that exist inside a software program (the application) enabling interaction with it through software - as opposed to a human user interface.
ASCII - MDN Web Docs Glossary: Definitions of Web-related terms
ascii (american standard code for information interchange) is one of the most popular coding method used by computers for converting letters, numbers, punctuation and control codes into digital form.
Abstraction - MDN Web Docs Glossary: Definitions of Web-related terms
ms behind simpler apis.
Cipher - MDN Web Docs Glossary: Definitions of Web-related terms
hm that can encode cleartext to make it unreadable, and to decode it back.
Cipher suite - MDN Web Docs Glossary: Definitions of Web-related terms
a cipher suite is a combination of a key exchange algorithm, authentication method, bulk encryption cipher, and message authentication code.
Class - MDN Web Docs Glossary: Definitions of Web-related terms
in object-oriented programming, a class defines an object's characteristics.
Cryptography - MDN Web Docs Glossary: Definitions of Web-related terms
r cryptology, is the science that studies how to encode and transmit messages securely.
Doctype - MDN Web Docs Glossary: Definitions of Web-related terms
that is, the "<!doctype html>" doctype ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications.
Dynamic programming language - MDN Web Docs Glossary: Definitions of Web-related terms
a dynamic programming language is a programming language in which operations otherwise done at compile-time can be done at run-time.
Fallback alignment - MDN Web Docs Glossary: Definitions of Web-related terms
in css box alignment, a fallback alignment is specified in order to deal with cases where the requested alignment cannot be fullfilled.
Flex - MDN Web Docs Glossary: Definitions of Web-related terms
o a flexible length in css grid layout.
Flexbox - MDN Web Docs Glossary: Definitions of Web-related terms
size and alignment of a group of items.
Forbidden header name - MDN Web Docs Glossary: Definitions of Web-related terms
rbidden because the user agent retains full control over them.
Grid Axis - MDN Web Docs Glossary: Definitions of Web-related terms
css grid layout is a two-dimensional layout method enabling the laying out of content in rows and columns.
Grid Cell - MDN Web Docs Glossary: Definitions of Web-related terms
in a css grid layout, a grid cell is the smallest unit you can have on your css grid.
Guard - MDN Web Docs Glossary: Definitions of Web-related terms
guard is a feature of headers objects (as defined in the fetch spec, which affects whether methods such as set() and append() can change the header's contents.
Gutters - MDN Web Docs Glossary: Definitions of Web-related terms
d of the gap.
HTTP/2 - MDN Web Docs Glossary: Definitions of Web-related terms
vision of the http network protocol.
Inheritance - MDN Web Docs Glossary: Definitions of Web-related terms
inheritance is a major feature of object-oriented programming.
Parent object - MDN Web Docs Glossary: Definitions of Web-related terms
the object to which a given property or method belongs.
Parse - MDN Web Docs Glossary: Definitions of Web-related terms
t parses the text into the css object model (or cssom), a data structure it then uses for styling layouts and painting.
Prototype-based programming - MDN Web Docs Glossary: Definitions of Web-related terms
prototype-based programming is a style of object-oriented programming in which classes are not explicitly defined, but rather derived by adding properties and methods to an instance of another class or, less frequently, adding them to an empty object.
Ruby - MDN Web Docs Glossary: Definitions of Web-related terms
ruby is an open-source programming language.
SEO - MDN Web Docs Glossary: Definitions of Web-related terms
g seo for a website, you give the site the best chances of showing up among the first results, increasing traffic and possibly revenue (for ecommerce and ads).
Transmission Control Protocol (TCP) - MDN Web Docs Glossary: Definitions of Web-related terms
ion-oriented communication between two computers on an ip network.
Type coercion - MDN Web Docs Glossary: Definitions of Web-related terms
ascript has coerced the 9 from a number into a string and then concatenated the two values together, resulting in a string of 59.
WebIDL - MDN Web Docs Glossary: Definitions of Web-related terms
webidl is the interface description language used to describe the data types, interfaces, methods, properties, and other components which make up a web application programming interface (api).
WebRTC - MDN Web Docs Glossary: Definitions of Web-related terms
webrtc (web real-time communication) is an api that can be used by video-chat, voice-calling, and p2p-file-sharing web apps.
XHR (XMLHttpRequest) - MDN Web Docs Glossary: Definitions of Web-related terms
xmlhttprequest (xhr) is a javascript api to create ajax requests.
XLink - MDN Web Docs Glossary: Definitions of Web-related terms
for those who may have found xlink 1.0 cumbersome for regular links, xlink 1.1 drops the need to specify xlink:type="simple" for simple links.
Array - MDN Web Docs Glossary: Definitions of Web-related terms
s an ordered collection of data (either primitive or object depending upon the language).
Brotli - MDN Web Docs Glossary: Definitions of Web-related terms
brotli is a general-purpose lossless compression algorithm.
JPEG - MDN Web Docs Glossary: Definitions of Web-related terms
jpeg (joint photographic experts group) is a commonly used method of lossy compression for digital images.
lossy compression - MDN Web Docs Glossary: Definitions of Web-related terms
lossy compression, or irreversible compression, is a data-compression method that uses inexact approximations and partial-data discarding to represent content.
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.
Test your skills: CSS and JavaScript accessibility - Learn web development
lity issues with the colors and sizing of the text; we'd like you to: 1.
CSS and JavaScript accessibility best practices - Learn web development
t.innerhtml = ''; for(let i = 0; i < formitems.length; i++) { const testitem = formitems[i]; if(testitem.input.value === '') { errorfield.style.left = '360px'; createlink(testitem); } } if(errorlist.innerhtml !== '') { e.preventdefault(); } } note: in this example, we are hiding and showing the error message box using absolute positioning rather than another method such as visibility or display, because it doesn't interfere with the screen reader being able to read content from it.
Accessible multimedia - Learn web development
const rwdbtn = document.queryselector('.rwd'); const fwdbtn = document.queryselector('.fwd'); const timelabel = document.queryselector('.time'); next, we need to grab a reference to the video/audio player itself — add this line below the previous lines: const player = document.queryselector('video'); this holds a reference to a htmlmediaelement object, which has several useful properties and methods available on it that can be used to wire up functionality to our buttons.
Debugging CSS - Learn web development
nstance that your problem is actually a bug in a browser, then a reduced test case can also be used to file a bug report with the relevant browser vendor (e.g.
Sizing items in CSS - Learn web development
an you remember the most important information?
Test your skills: floats - Learn web development
he desired result in this image.
Test Your Skills: Fundamental layout comprehension - Learn web development
d practice to get into — it's very hard to help someone with a coding problem if you can't see their code.
Positioning - Learn web development
this example live at 7_sticky-positioning.html (see source code).
Practical positioning examples - Learn web development
worry if you didn't get this all immediately — positioning is a fairly advanced topic, and you can always work through the articles again to aid your understanding.
What text editors are available? - Learn web development
a matter of taste, but some people like customizing every bit of the ui (user interface), from colors to button positions.
How do I start to design my website? - Learn web development
inadequate.
What are browser developer tools? - Learn web development
tools safari: develop ➤ show web inspector.
What is a URL? - Learn web development
to tell it to load the associated page (resource).
Advanced form styling - Learn web development
ome very useful libraries out there that can help you: uni-form is a framework that standardizes form markup, styling it with css.
Basic native form controls - Learn web development
image, meaning that the upper-left corner of the image represents the coordinate (0, 0)).
Example - Learn web development
this the example for a basic payment form for the article how to structure an html form.
Sending forms through JavaScript - Learn web development
but to send binary data by hand, there's extra work to do.
Example - Learn web development
this is the example code for the article your first html form.
Getting started with the Web - Learn web development
esting tools out there.
Creating hyperlinks - Learn web development
body </a> note: the values of each field must be url-encoded, that is with non-printing characters (invisible characters like tabs, carriage returns, and page breaks) and spaces percent-escaped.
From object to iframe — other embedding technologies - Learn web development
browser cannot read natively.
Video and audio content - Learn web development
ibute — again, no visual component.
HTML table advanced features and accessibility - Learn web development
cation">location</th> <th id="date">date</th> <th id="evaluation">evaluation</th> <th id="cost">cost (€)</th> </tr> </thead> <tbody> <tr> <th id="haircut">haircut</th> <td headers="location haircut">hairdresser</td> <td headers="date haircut">12/09</td> <td headers="evaluation haircut">great idea</td> <td headers="cost haircut">30</td> </tr> ...
HTML table basics - Learn web development
Learn › HTML › Tables › Basics
e" span across two columns.
Introducing asynchronous JavaScript - Learn web development
n the background.
Asynchronous JavaScript - Learn web development
other articles in the module.
Storing the information you need — Variables - Learn web development
focus on numbers in more detail, looking at how to do basic math in javascript.
What is JavaScript? - Learn web development
to the practical, getting you to jump straight in and build your own javascript examples.
Introducing JavaScript objects - Learn web development
unctions, and how to create object instances.
Measuring performance - Learn web development
des the performance timeline api, the navigation timing api, the user timing api, and the resource timing api.
Web performance - Learn web development
a deeper dive into performance tools, metrics, and apis and how we can make performance part of the web development workflow.
Properly configuring server MIME types - Learn web development
text/html'); instead, where $cgi is your reference to the cgi instance.
Getting started with Ember - Learn web development
tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events, methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, l...
Ember interactivity: Events, classes and state - Learn web development
tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events, methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, l...
Ember resources and troubleshooting - Learn web development
tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events, methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, l...
Routing in Ember - Learn web development
tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events, methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, l...
Ember app structure and componentization - Learn web development
tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events, methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, l...
Accessibility in React - Learn web development
tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events, methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, l...
Getting started with React - Learn web development
tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events, methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, l...
React interactivity: Events and state - Learn web development
tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events, methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, l...
Beginning our React todo list - Learn web development
tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events, methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, l...
Starting our Svelte Todo list app - Learn web development
tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events, methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, l...
Componentizing our Svelte app - Learn web development
tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events, methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, l...
Deployment and next steps - Learn web development
tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events, methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, l...
Getting started with Svelte - Learn web development
tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events, methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, l...
Vue resources - Learn web development
tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events, methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, l...
Styling Vue components with CSS - Learn web development
tting started with ember ember app structure and componentization ember interactivity: events, classes and state ember interactivity: footer functionality, conditional rendering routing in ember ember resources and troubleshooting vue getting started with vue creating our first vue component rendering a list of vue components adding a new todo form: vue events, methods, and models styling vue components with css using vue computed properties vue conditional rendering: editing existing todos focus management with vue refs vue resources svelte getting started with svelte starting our svelte todo list app dynamic behavior in svelte: working with variables and props componentizing our svelte app advanced svelte: reactivity, l...
Introduction to automated testing - Learn web development
le, put the following: const gulp = require('gulp'); gulp.task('default', function() { console.log('gulp running'); }); this requires the gulp module we installed earlier, and then runs a basic task that does nothing except for printing a message to the terminal — this is useful for letting us know that gulp is working.
Strategies for carrying out testing - Learn web development
a feature detection library to implement the functionality in a different way if the browser doesn't support css transitions (see implementing feature detection, later on in the course).
Deploying our app - Learn web development
need for testing, and will plant the seed that inspires you to go and learn more.
Accessibility API cross-reference
create a form.
Accessibility information for UI designers and developers
olored chart lines:people who cannot see the difference between the colors, can use the labels instead.
Software accessibility: Where are we today?
employment and life fulfillment.
Mozilla’s UAAG evaluation report
missing content.
Accessible Toolkit Checklist
eadonly, offscreen, focusable to avoid extra work, utilize implementing an msaa server mnemonics ability to define in xml for any widget with a text label (via attribute or a preceding char in label) automatically define mnemonics for all standard common dialogs (like yes/no confirmations and retry/exit error dialogs) support mnemonics in dialogs created via method calls layout engine - drawing underline under correct letter events - making keystrokes do the right thing msaa support, via iaccessible's get_acckeyboardshortcut support for ms windows settings when high contrast checkbox is set (in accessibility control panel, spi_gethighcontrast), or when user selects a "native" skin option in your software, then get all ...
Choosing the right memory allocator
art of nsimemory) see infallible memory allocation for information about how to allocate memory infallibly; that is, how to use memory allocators that will only return valid memory buffers, and never return null.
Command line options
ocess running the xulrunner application at path/to.
Debugging on Mac OS X
lowing objects from the 'frame' object.
Adding APIs to the navigator object
starting with gecko 9.0 (firefox 9.0 / thunderbird 9.0 / seamonkey 2.6), you can easily add new apis to the window.navigator object by using the category manager.
The Firefox codebase: CSS Guidelines
should be written, it is notably relevant for firefox front-end engineers.
Gecko Logging
a minimal c++ logging framework is provided for use in core gecko code.
Multiple Firefox profiles
y get a prompt to download a tar.bz2 file to extract from.
Process scripts
tem; let iface = queryinterface(ci.nsidocshell).queryinterface(ci.nsiinterfacerequestor); return iface.getinterface(ci.nsicontentframemessagemanager); } this is intended for unprivileged pages running in a content process.
Firefox UI considerations for web developers
that the user has chosen to pin to the top sites list in order to have quick access to them.
HTMLIFrameElement.addNextPaintListener()
warning: removed in firefox 65.
HTMLIFrameElement.download()
warning: removed in firefox 65.
HTMLIFrameElement.executeScript()
warning: removed in firefox 65.
HTMLIFrameElement.getActive()
non-standard this feature is non-standard and is not on a standards track.
HTMLIFrameElement.getCanGoBack()
non-standard this feature is non-standard and is not on a standards track.
HTMLIFrameElement.getCanGoForward()
non-standard this feature is non-standard and is not on a standards track.
HTMLIFrameElement.getContentDimensions()
warning: removed in firefox 65.
HTMLIFrameElement.getManifest()
warning: removed in firefox 65.
HTMLIFrameElement.getScreenshot()
warning: removed in firefox 65.
HTMLIFrameElement.getStructuredData()
non-standard this feature is non-standard and is not on a standards track.
HTMLIFrameElement.getVisible()
non-standard this feature is non-standard and is not on a standards track.
mozbrowsercaretstatechanged
le a boolean indicating whether the caret is currently visible (true) or not (false.) selectionvisible a boolean indicating whether the current selection is visible (true) or not (false.) selectioneditable a boolean indicating whether the current selection is editable (true) or not (false.) selectedtextcontext a domstring containing the currently-selected text content.
mozbrowserclose
non-standard this feature is non-standard and is not on a standards track.
mozbrowserfindchange
non-standard this feature is non-standard and is not on a standards track.
mozbrowseropenwindow
standard and is not on a standards track.
HTMLIFrameElement.mute()
Mozilla › Gecko › Chrome › API › Browser API › mute
non-standard this feature is non-standard and is not on a standards track.
HTMLIFrameElement.purgeHistory()
warning: removed in firefox 65.
HTMLIFrameElement.reload()
non-standard this feature is non-standard and is not on a standards track.
HTMLIFrameElement.sendMouseEvent()
non-standard this feature is non-standard and is not on a standards track.
HTMLIFrameElement.setActive()
non-standard this feature is non-standard and is not on a standards track.
HTMLIFrameElement.setVolume()
non-standard this feature is non-standard and is not on a standards track.
HTMLIFrameElement.stop()
Mozilla › Gecko › Chrome › API › Browser API › stop
non-standard this feature is non-standard and is not on a standards track.
HTMLIFrameElement.unmute()
non-standard this feature is non-standard and is not on a standards track.
HTMLIFrameElement.zoom()
Mozilla › Gecko › Chrome › API › Browser API › zoom
warning: removed in firefox 65.
Chrome-only Events reference
this page lists events that are only available in gecko chrome code (and sometimes in other privileged circumstances, eg.
Embedding the editor
an editor lives on top of an nsdocshell, rather than hanging off the nseditorboxobject.
Geckoview-Junit Tests
fest listing the geckoview junit tests.
Getting from Content to Layout
list of restyles to process.
How to get a stacktrace for a bug report
rash id.
How to get a stacktrace with WinDbg
irefox).
How to implement a custom autocomplete search component
t_registered; } return simpleautocompletesearchfactory; } you need to explicitly register the component by adding these lines into your chrome.manifest file: component {6224daa1-71x2-4d1a-ad90-01ca1c08e323} components/.js contract @mozilla.org/autocomplete/search;1?name=simple-autocomplete {6224daa1-71x2-4d1a-ad90-01ca1c08e323} you need to add the following method: getlabelat: function(index) { return this._results[index]; } to simpleautocompleteresult use this newly available component in a xul file like this: <textbox id="text1" type="autocomplete" autocompletesearch="simple-autocomplete" showcommentcolumn="true" autocompletesearchparam='[{"value":"mark","comment":"cool dude"},{"value":"mary","comment":"nice lady"},{"va...
How to Report a Hung Firefox
und above kill -n sigabrt 31042 # on osx kill -s sigabrt 31042 the firefox crash report ui should appear.
IPDL Type Serialization
iter, &(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.
Implementing Download Resuming
ityid from the channel, and store it for later use.
Examples
mponents.utils.reporterror); in this case, if the file existence check succeeds, the onfulfill callback is invoked.
Sqlite.jsm
that you are really done with them).
Using JavaScript code modules
he main effect of the by-value copy is that global variables of simple types won't be shared across scopes.
Webapps.jsm
the webapps.jsm modules exposes the domapplicationregistry, which is responsible for managing all of the open web apps.
Localization content best practices
sh — for example, to correct a typographical error or to make letter case consistent — then there is generally no need to update the entity name.
Creating localizable web applications
3'));?></div> using &laquo; and &raquo; should be ok here for rtl languages (they are flipped correctly if there are no latin characters next to them, which there aren't any), so let's leave it as it is.
Mozilla Web Services Security Model
the entire match to fail.
mozilla::CondVar
mozilla::condvar is a bare wrapper around prcondvar.
mozilla::Monitor
mozilla::monitor is a bare wrapper around prmonitor.
mozilla::MonitorAutoEnter
ut of scope, its destructor will exit() the underlying mozilla::monitorautoenter.
mozilla::Mutex
mozilla::mutex is a bare wrapper around prlock.
mozilla::MutexAutoLock
ithin mutexautolocks and vice versa, indefinitely deeply.
mozilla::MutexAutoUnlock
texautolocks and vice versa, indefinitely deeply.
GC and CC logs
riately to generate cc logs.
JS::PerfMeasurement
measured." perfmeasurement::num_measurable_events this constant equals the total number of events defined by the api - not necessarily the total number of events that a particular os allows you to measure.
TraceMalloc
er 177 21550 691 85460 514 63910 3.53 nshtmlvalue 139 7846 1215 68734 1076 60888 3.36 htmlcontentsink 6 4816 12 57782 6 52966 2.92 uncategorized.pl, which lists all the void* allocations (the ones that couldn't be categorized by type), sorted by size.
Patches and pushes
//www.mozilla.org/2006/browser/search/"> <shortname>yahoo</shortname> <description>yahoo search</description> <inputencoding>utf-8</inputencoding> <image width="16" height="16">data:image/x-icon;base64,r0lgodlheaaqajecap8aaaaaap///waaach5baeaaaialaaaaaaqabaaaaipli+py+0nogquybdened2khkffwuamezmpzsfmaihphrrguum/ft+uwaaow==</image> ***this tag is optional***<url type="application/x-suggestions+json" method="get" template="http://ff.search.yahoo.com/gossip?output=fxjson&amp;command={searchterms}" />*** <url type="text/html" method="get" template="http://search.yahoo.com/search"> <param name="p" value="{searchterms}"/> <param name="ei" value="utf-8"/> <mozparam name="fr" condition="pref" pref="yahoo-fr" /> </url> <searchform>http://search.yahoo.com/</searchform> </searchplugin> create...
Profile Manager
the software is obsolete and no longer being maintained.
Dynamic Library Linking
this section describes nspr's programming interface to load, unload and resolve symbols in dynamic libraries.
NSPR Error Handling
f_memory_error insufficient memory to perform request.
PR_PushIOLayer
bject's destructor.
PR_dtoa
ess of the end of the result.
NSS Code Coverage
ple: 72.69% (165/227/731) 72.69% - ratio of tested blocks and total blocks in file (generated by tcov).
4.3.1 Release Notes
ized by the ietf.
JSS Provider Notes
dsapublickey rsaprivatecrtkeyspec rsaprivatekey dsaprivatekeyspec dsaprivatekey pkcs8encodedkeyspec rsaprivatekey dsaprivatekey getkeyspec() is not supported.
Mozilla-JSS JCA Provider notes
rsapublickeyspec rsapublickey dsapublickeyspec dsapublickey x509encodedkeyspec rsapublickey dsapublickey rsaprivatecrtkeyspec rsaprivatekey dsaprivatekeyspec dsaprivatekey pkcs8encodedkeyspec rsaprivatekey dsaprivatekey getkeyspec() is not supported.
NSS 3.12.4 release notes
exclusions.
NSS Sample Code Sample_1_Hashing
l; limit = i % 16; } } if (column != level) { newline(out); } } /* * prints a usage message and exits */ static void usage(const char *progname) { int htype; int hash_algtotal = sizeof(hash_names) / sizeof(hash_names[0]); fprintf(stderr, "usage: %s -t type [ < input ] [ > output ]\n", progname); fprintf(stderr, "%-20s specify the digest method (must be one of\n", "-t type"); fprintf(stderr, "%-20s ", ""); for (htype = 0; htype < hash_algtotal; htype++) { fprintf(stderr, hash_names[htype].hashname); if (htype == (hash_algtotal - 2)) fprintf(stderr, " or "); else if (htype != (hash_algtotal - 1)) fprintf(stderr, ", "); } fprintf(stderr, " (case ignored))\n"); ...
Hashing - sample 1
; limit = i % 16; } } if (column != level) { newline(out); } } /* * prints a usage message and exits */ static void usage(const char *progname) { int htype; int hash_algtotal = sizeof(hash_names) / sizeof(hash_names[0]); fprintf(stderr, "usage: %s -t type [ < input ] [ > output ]\n", progname); fprintf(stderr, "%-20s specify the digest method (must be one of\n", "-t type"); fprintf(stderr, "%-20s ", ""); for (htype = 0; htype < hash_algtotal; htype++) { fprintf(stderr, hash_names[htype].hashname); if (htype == (hash_algtotal - 2)) fprintf(stderr, " or "); else if (htype != (hash_algtotal - 1)) fprintf(stderr, ", "); } fprintf(stderr, " (case ignored))\n"); ...
sample1
limit = i % 16; } } if (column != level) { newline(out); } } /* prints a usage message and exits */ static void usage(const char *progname) { int htype; int hash_algtotal = sizeof(hash_names) / sizeof(hash_names[0]); fprintf(stderr, "usage: %s -t type [ < input ] [ > output ]\n", progname); fprintf(stderr, "%-20s specify the digest method (must be one of\n", "-t type"); fprintf(stderr, "%-20s ", ""); for (htype = 0; htype < hash_algtotal; htype++) { fprintf(stderr, hash_names[htype].hashname); if (htype == (hash_algtotal - 2)) fprintf(stderr, " or "); else if (htype != (hash_algtotal - 1)) fprintf(stderr, ", "); } fprintf(stderr, " (case ignored)...
PKCS11 module installation
pkcs #11 modules are external modules which add to firefox support for smartcard readers, biometric security devices, and external certificate stores.
NSS tools : crlutil
as a delimiter.
sslfnc.html
out of range for any of the parameters causes the server default value to be used in the server cache.
sslintro.html
either this function or ssl_configserversessionidcache, not both.
NSS Tools crlutil
d if there is no delimiter.
NSS tools : crlutil
Mozilla › Projects › NSS › tools › crlutil
cert will be added if there is no delimiter.
Multithreading in Necko
hese threads are controlled by the nsfiletransportservice.
Rhino serialization
uctor.
Rhino shell
w value of the err property.
FOSS
s for embedding spidermonkey in c applications extensions http://code.google.com/p/jslibs/ - zlib, sqlite, nspr, ode, libpng, libjpeg, libffi, (...) libraries for spidermonkey http://www.jsdb.org/ - a js shell with native objects for files, networks, databases, compression, email, etc.
JS::Add*Root
ameter, if present and non-null, is stored in the jsruntime's root table entry along with rp.
JS::ToPrimitive
nt, js::mutablehandlevalue vp); name type description cx jscontext * the context in which to perform the conversion.
JSConvertOp
for objects having this class, implementing the ecmascript [[defaultvalue]] behavior for them.
JSExtendedClass
obsolete since javascript 1.8.5this feature is obsolete.
JSExtendedClass.wrappedObject
dedclass.wrappedobject, then objects of that class may be wrappers.
JSFUN_GLOBAL_PARENT
obsolete since javascript 1.8.5this feature is obsolete.
JSNative
jsnative is the type of many jsapi callbacks.
JSObject
jsobject is the type of javascript objects in the jsapi.
JSPRINCIPALS_HOLD
efore storing it and jsprincipals_drop(cx, principals) when done with it.
JSString
a jsstring represents a primitive javascript string in the jsapi.
JS_Add*Root
f present and non-null, is stored in the jsruntime's root table entry along with rp.
JS_CompileFunctionForPrincipals
sed to report the line number of the function or file where an error occurred during compilation.
JS_ConstructObject
use is discouraged since it could be removed at any time.
JS_DefineProperties
ription cx jscontext * the context in which to define the properties.
JS_ForwardGetPropertyTo
t to receive getter invocation.
JS_GET_CLASS
the build is thread-safe.
JS_GetArrayPrototype
e in a request on this jscontext.
JS_GetFunctionCallback
obsolete since jsapi 37this feature is obsolete.
JS_GetFunctionPrototype
st on this jscontext.
JS_GetObjectPrototype
a request on this jscontext.
JS_GetPrivate
valuetofunction instead to access it.) warning: it is dangerous to call js_getprivate on a jsobject * unless the object's jsclass is known.
JS_GetProperty
ass.getproperty hook of obj's class is called with the arguments (cx, obj, id, vp).
JS_LooselyEqual
e build, the caller must be in a request on this jscontext.
JS_NewDependentString
estring the string containing the characters for the new string.
JS_ParseJSON
jsint (in js_parsejsonwithreviver only) a reviver function to apply to the created value after parsing; see json.parse.
JS_SameValue
from which to derive runtime information.
JS_SetBranchCallback
ng js_setpendingexception() and returns js_false, then the javascript engine propagates the exception to the script that was executing at the time.
JS_SetCheckObjectAccessCallback
curitycallbacks instead.
JS_SetErrorReporter
condition in the jserrorreport structure.
JS_SetOperationCallback
obsolete since jsapi 30this feature is obsolete.
JS_StrictlyEqual
e caller must be in a request on this jscontext.
JS_ValueToFunction
.
JS_ValueToNumber
ops.defaultvalue hook, so host objects can override it all.) first, the object's jsclass.convert callback is called.
jsid
a jsid is a javascript identifier for a property or method of an object.
SpiderMonkey 1.8.5
machine code, for a significant speed increase.
SpiderMonkey 45
s_shutdown has moved from jsapi.h to js/initialization.h js_initreflect is now implicit js_addweakpointercallback is replaced with js_addweakpointerzonegroupcallback and js_addweakpointercompartmentcallback js_removeweakpointercallback is replaced with js_removeweakpointerzonegroupcallback and js_removeweakpointercompartmentcallback api changes javascript shell changes detail added/removed methods here...
Mozilla Projects
internet explorer supports the ability to make an entire document editable by setting the designmode property of the document object; this is how midas is invoked in gecko.
Gecko object attributes
« at apis support page introduction you can obtain object attributes by nsiaccessible.getattributes() method.
History Service Design
onnection has been set-up the schema version of the database is checked.
The Publicity Stream API
https://myapps.mozillalabs.com/jsapi/publicity.js all apis related to open web applications are accessed under the navigator.apps object.
XPCOM glue
Mozilla › Tech › XPCOM › Glue
the xpcom glue is a static library which component developers and embedders can link against.
How to build an XPCOM component in JavaScript
a "hello world" tutorial for creating an xpcom component in javascript.
XPCOM changes in Gecko 2.0
ccess wrapped objects.
Setting up the Gecko SDK
lthing(); protected: /* additional members */ nsstring mname; }; #endif cspecialthing.cpp #include "cspecialthing.h" ns_impl_isupports1(cspecialthing, ispecialthing) cspecialthing::cspecialthing() { /* member initializers and constructor code */ mname.assign(l"default name"); } cspecialthing::~cspecialthing() { /* destructor code */ } /* attribute astring name; */ ns_imethodimp cspecialthing::getname(nsastring & aname) { aname.assign(mname); return ns_ok; } ns_imethodimp cspecialthing::setname(const nsastring & aname) { mname.assign(aname); return ns_ok; } /* long add (in long a, in long b); */ ns_imethodimp cspecialthing::add(print32 a, print32 b, print32 *_retval) { *_retval = a + b; return ns_ok; } this is generally your code.
Detailed XPCOM hashtable guide
.
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.
XPCOM guide
Mozilla › Tech › XPCOM › Guide
ass hierarchy to pass string data, rather than using raw pointers.
Components.manager
components.manager is a convenience reflection of the global native component manager service.
Components.utils.Sandbox
er.unwrap().
Components.utils.getGlobalForObject
this method is used to determine the global object with which an object is associated.
Components.utils.schedulePreciseGC
this method lets scripts schedule a garbage collection cycle.
Using components
nterfacesbyid=[object nsxpccomponents_interfacesbyid] classesbyid=[object nsxpccomponents_classesbyid] stack=js frame :: scratchpad/4 :: cdump :: line 8 manager=[xpconnect wrapped nsicomponentmanager] id=[object nsxpccomponents_id] exception=[object nsxpccomponents_exception] reporterror=function reporterror() { [native code] } cancreatewrapper=function cancreatewrapper() { [native code] } cancallmethod=function cancallmethod() { [native code] } cangetproperty=function cangetproperty() { [native code] } cansetproperty=function cansetproperty() { [native code] } ...
XPConnect
ents how to talk with xpcom components.
NS_GetMemoryManager
er function returns ns_ok if successful.
NS_InitXPCOM2
e application specific directories and files (e.g., the user profile, the component registry, etc.).
NS_InitXPCOM3
fault (built-in) static modules to be registered, if present.
Folders
older interface.
NS_POSTCONDITION
summary macro has the same effect as ns_assertion.
NS_PRECONDITION
summary macro has the same effect as ns_assertion.
BeginReading
« xpcom api reference summary the beginreading function returns a const pointer to the first element of the string's internal buffer.
BeginReading
« xpcom api reference summary the beginreading function returns a const pointer to the first element of the string's internal buffer.
nsCStringEncoding
mation if the strings do not strictly contain ascii data.
mozIRepresentativeColorCallback
toolkit/components/places/mozicoloranalyzer.idlscriptable provides callback methods for mozicoloranalyzer 1.0 66 introduced gecko 17.0 inherits from: nsisupports last changed in gecko 17.0 (firefox 17.0 / thunderbird 17.0 / seamonkey 2.14) method overview void oncomplete(in boolean success, [optional] in unsigned long color); methods oncomplete() will be called when color analysis finishes.
DoAction
« nsiaccessible page summary this method performs the accessible action at the given zero-based index.
GetAccessibleAbove
« nsiaccessible page summary this method returns an accessible node geometrically above this one.
GetAccessibleBelow
« nsiaccessible page summary this method returns an accessible node geometrically below this one.
GetAccessibleRelated
« nsiaccessible page summary this method returns an accessible related to this one by the given relation type.
GetAccessibleToLeft
« nsiaccessible page summary this method returns an accessible node geometrically to the left of this one.
GetAccessibleToRight
« nsiaccessible page summary this method returns an accessible node geometrically to the right of this one.
GetActionDescription
« nsiaccessible page summary this method retrieves the description (localized name) of the accessible action at the given zero-based index.
GetActionName
« nsiaccessible page summary this method retrieves the name of the accessible action at the given zero-based index.
GetBounds
« nsiaccessible page summary this method returns accessible's (x and y) coordinates relative to the screen and accessible's width and height.
GetChildAt
« nsiaccessible page summary this method returns nth accessible child using zero-based index.
GetChildAtPoint
« nsiaccessible page summary this method returns an accessible child which contains the coordinate at (x, y) in screen pixels.
GetKeyBindings
« nsiaccessible page summary this method provides array of localized string of global keyboard accelerator for the given action index supported by accessible.
GetRelation
« nsiaccessible page summary this method returns accessible relation for this accessible object by index.
GetRelations
« nsiaccessible page summary this method returns multiple accessible relations for this accessible object.
GetState
« nsiaccessible page summary this method retrieves states of the accessible.
GroupPosition
« nsiaccessible page summary this method returns grouping information.
SetSelected
« nsiaccessible page summary this method adds or remove this accessible to the current selection.
TakeFocus
« nsiaccessible page summary this method focuses this accessible node.
TakeSelection
« nsiaccessible page summary this method selects this accessible node only.
nsIContentFrameMessageManager
the nsiframescriptloader interface.
nsIDOMClientRect
dom/interfaces/base/nsidomclientrect.idlscriptable represents a rectangular box.
nsIDOMFile
at the data can be retrieved and uploaded once the internet connection is restored.
nsIDOMFileException
the nsidomfileexception interface represents exceptions that can be raised by calls to the methods in the nsidomfile interface.
nsIDirectoryIterator
the nsidirectoryiterator interface provides a way to iterate over the entries in a directory.
getFile
ctory location.
getFiles
« xpcom api reference summary this method is called by the directory service to query an enumeration of file or directory locations.
nsIFrameScriptLoader
idl file: mozilla-central/source/dom/base/nsimessagemanager.idl inherits from: nsisupports this interface is used to load frame scripts.
nsIHttpServer
if no specific port is * desired * @throws ns_error_already_initialized * if this server is already started * @throws ns_error_not_available * if the server is not started and cannot be started on the desired port * (perhaps because the port is already in use or because the process does * not have privileges to do so) * @note * behavior is undefined if this method is called after stop() has been * called on this but before the provided callback function has been * called.
nsIINIParser
/ thunderbird 1.5 / seamonkey 1.0) typically, you'll create an nsiiniparser object by calling nsiiniparserfactory.createiniparser().
nsIMessageBroadcaster
er message "broadcasters" don't have a single "other side" that they send messages to, but rather a set of subordinate message managers.
nsIMessageListener
idl file: mozilla-central/source/dom/base/nsimessagemanager.idl inherits from: nsisupports this interface is used to receive messages sent using the nsimessagebroadcaster, nsimessagesender, or nsisyncmessagesender interfaces.
nsIMessageSender
enable clients to send asynchronous messages to a single "other side".
nsIMessageWakeupService
add a line that looks something like this: category wakeup-request nscomponent @mozilla.org/myservice;1,nsimyinterface,getservice,mymessage1,mymessage2[,..] the category entry value consists of a comma separate string that contains: the contract id for your component (e.g.
nsIMsgFilter
xception if the action is not label attribute nsmsglabelvalue label; junkscore attribute long junkscore; strvalue attribute autf8string strvalue; customid // action id if type is custom attribute acstring customid; customaction // custom action associated with customid // (which must be set prior to reading this attribute) readonly attribute nsimsgfiltercustomaction customaction; methods addterm() void nsimsgfilter::addterm ( in nsmsgsearchattribvalue attrib, in nsmsgsearchopvalue op, in nsimsgsearchvalue value, in boolean booleanand, in acstring arbitraryheader ) getterm() void nsimsgfilter::getterm ( in long termindex, in nsmsgsearchattribvalue attrib, in nsmsgsearchopv...
nsIMsgFilterList
ly attribute boolean nsimsgfilterlist::shoulddownloadallheaders filtercount readonly attribute unsigned long nsimsgfilterlist::filtercount loggingenabled attribute boolean nsimsgfilterlist::loggingenabled defaultfile attribute nsilocalfile nsimsgfilterlist::defaultfile logstream attribute nsioutputstream nsimsgfilterlist::logstream logurl readonly attribute acstring nsimsgfilterlist::logurl methods getfilterat() nsimsgfilter nsimsgfilterlist::getfilterat (in unsigned long filterindex ) getfilternamed() nsimsgfilter nsimsgfilterlist::getfilternamed (in astring filtername) setfilterat() nsimsgfilter nsimsgfilterlist::setfilterat ( in unsigned long filterindex, in nsimsgfilter filter ) removefilter() void nsimsgfilterlist::removefilter (in nsimsgfilter filter)...
nsIMsgSearchCustomTerm
the id must not * parse to an integer, and names of standard search * attributes in searchattribentrytable in nsmsgsearchterm.cpp * are not allowed.
nsIMsgSearchTerm
ty of the nsimsgdbhdr, and may have * nothing to do the message headers, e.g., gloda-id.
nsIProcessScriptLoader
idl file: mozilla-central/source/dom/base/nsimessagemanager.idl inherits from: nsisupports this interface is used by parent process message managers to load scripts into a child process.
nsISyncMessageSender
ge manager will send messages that are only delivered to its one parent-process message manager.
nsIXFormsNSInstanceElement
<instance/> elements, defining mozilla extensions.
nsIXFormsNSModelElement
illa extensions to the nsixformsmodelelement interface.
The Thread Manager
sithreadinternal a subclass of nsithread that is implemented by the xpcom thread object to add support for observing dispatch activity on a thread.
Reference Manual
cause leaks...
Using the Gecko SDK
ked frozen with the text <tt>@status frozen</tt> (with nspr as the exception to the rule).
nsCOMPtr versus RefPtr
the argument is nsisupports*).
Events
messages in the folder have been loaded onmessagesremovalfailed removing some messages from the current folder failed onmessagesremoved some messages of the current message list have been removed onsearching a folder view derived from a search is being loaded, e.g.
customDBHeaders Preference
headers pref is set will have the corresponding string property set on the msghdr.
Using the Multiple Accounts API
omingserver().
Using popup notifications
tification object's icon element.
Using tab-modal prompts
4 / thunderbird 3.3 / seamonkey 2.1), prompts (that is, alerts and other modal prompts) were window modal.
XPI
instructions (install.js or install.rdf) as well as the actual software to install, which is often itself packaged as a jar file.
Using COM from js-ctypes
sdn documentation says that even if coinitalize fails, counitialize // must be called couninitialize(); return 0; } to run the code, save it as test.cpp, and run following command in the directory (needs visual studio).
Declaring and Using Callbacks
a regular cdata object containing a pointer to the data.
Declaring and Calling Functions
functions are declared using the library object's declare() method.
Memory Management
ee that memory with the correct allocator.
js-ctypes reference
ncrete instances of the given type, i.e.
PKCS #11 Netscape Trust Objects - Network Security Services
ines ways to store certificates, keys and perform crypto operations.
Introduction to DOM Inspector - Firefox Developer Tools
nd clicking inspect or pressing enter.
Debugging service workers - Firefox Developer Tools
vice on what to do if you don't have a service worker registered, and were perhaps expecting there to be one registered!
Set a logpoint - Firefox Developer Tools
sis menu (...) and then click show split console.) when should you use logpoints?
Set an XHR breakpoint - Firefox Developer Tools
y call to a url that contains that keyword.
UI Tour - Firefox Developer Tools
ry.
Debugger-API - Firefox Developer Tools
picture are debugger.source instances, which represent javascript compilation units.
Network request details - Firefox Developer Tools
headers toolbar using the headers toolbar, you can: filter the headers in the response headers and request headers sections.
Waterfall - Firefox Developer Tools
ing the frame rate tool and the waterfall together, it's easy to see when long-running javascript is causing responsiveness problems.
about:debugging (before Firefox 68) - Firefox Developer Tools
sort of restartless add-on temporarily, from a directory on disk.
about:debugging - Firefox Developer Tools
button you can temporarily load a web extension from a directory on disk.
AbortController.abort() - Web APIs
the abort() method of the abortcontroller interface aborts a dom request (e.g.
AbortController - Web APIs
can create a new abortcontroller object using the abortcontroller.abortcontroller() constructor.
AbortSignal: abort event - Web APIs
no interface event event handler onabort examples in the following snippets, we create a new abortcontroller object, and get its abortsignal (available in the signal property).
AesGcmParams - Web APIs
string.
Ambient Light Events - Web APIs
exposure necessary to take a picture.
AnalyserNode.getByteFrequencyData() - Web APIs
the getbytefrequencydata() method of the analysernode interface copies the current frequency data into a uint8array (unsigned byte array) passed into it.
AnalyserNode.getByteTimeDomainData() - Web APIs
the getbytetimedomaindata() method of the analysernode interface copies the current waveform, or time-domain, data into a uint8array (unsigned byte array) passed into it.
AnalyserNode.getFloatFrequencyData() - Web APIs
the getfloatfrequencydata() method of the analysernode interface copies the current frequency data into a float32array array passed into it.
AnalyserNode.getFloatTimeDomainData() - Web APIs
the getfloattimedomaindata() method of the analysernode interface copies the current waveform, or time-domain, data into a float32array array passed into it.
Animation.commitStyles() - Web APIs
the commitstyles() method of the web animations api's animation interface commits the end styling state of an animation to the element being animated, even after that animation has been removed.
Animation.onfinish - Web APIs
the animation interface's onfinish property (from the web animations api) is the event handler for the finish event.
Animation.persist() - Web APIs
Web › API › Animation › persist
the persist() method of the web animations api's animation interface explicitly persists an animation, when it would otherwise be removed due to the browser's automatically removing filling animations behavior.
Animation.play() - Web APIs
Web › API › Animation › play
the play() method of the web animations api's animation interface starts or resumes playing of an animation.
Animation.reverse() - Web APIs
Web › API › Animation › reverse
the animation.reverse() method of the animation interface reverses the playback direction, meaning the animation ends at its beginning.
Animation - Web APIs
Web › API › Animation
animation.timeline gets or sets the timeline associated with this animation.
AnimationEffect.getTiming() - Web APIs
the animationeffect.gettiming() method of the animationeffect interface returns an effecttiming object containing the timing properties for the animation effect.
AnimationEffect.updateTiming() - Web APIs
the updatetiming() method of the animationeffect interface updates the specified timing properties for an animation effect.
AnimationEffect - Web APIs
the animationeffect interface of the web animations api defines current and future animation effects like keyframeeffect, which can be passed to animation objects for playing, and keyframeeffectreadonly (which is used by css animations and transitions).
Attr.namespaceURI - Web APIs
Web › API › Attr › namespaceURI
examination of the namespace declarations in scope.
AudioBuffer.copyFromChannel() - Web APIs
the copyfromchannel() method of the audiobuffer interface copies the audio sample data from the specified channel of the audiobuffer to a specified float32array.
AudioBuffer.copyToChannel() - Web APIs
the copytochannel() method of the audiobuffer interface copies the samples to the specified channel of the audiobuffer, from the source array.
AudioBuffer.getChannelData() - Web APIs
the getchanneldata() method of the audiobuffer interface returns a float32array containing the pcm data associated with the channel, defined by the channel parameter (with 0 representing the first channel).
AudioContext.createMediaElementSource() - Web APIs
the createmediaelementsource() method of the audiocontext interface is used to create a new mediaelementaudiosourcenode object, given an existing html <audio> or <video> element, the audio from which can then be played and manipulated.
AudioContext.createMediaStreamSource() - Web APIs
the createmediastreamsource() method of the audiocontext interface is used to create a new mediastreamaudiosourcenode object, given a media stream (say, from a mediadevices.getusermedia instance), the audio from which can then be played and manipulated.
AudioContext.createMediaStreamTrackSource() - Web APIs
the createmediastreamtracksource() method of the audiocontext interface creates and returns a mediastreamtrackaudiosourcenode which represents an audio source whose data comes from the specified mediastreamtrack.
AudioParam.cancelAndHoldAtTime() - Web APIs
the cancelandholdattime() property of the audioparam interface cancels all scheduled future changes to the audioparam but holds its value at a given time until further changes are made using other methods.
AudioParam.exponentialRampToValueAtTime() - Web APIs
the exponentialramptovalueattime() method of the audioparam interface schedules a gradual exponential change in the value of the audioparam.
AudioParam.linearRampToValueAtTime() - Web APIs
the linearramptovalueattime() method of the audioparam interface schedules a gradual linear change in the value of the audioparam.
AudioParam.setValueCurveAtTime() - Web APIs
the setvaluecurveattime() method of the audioparam interface schedules the parameter's value to change following a curve defined by a list of values.
AudioParamDescriptor - Web APIs
s static getter, then the returned array of objects based on this dictionary is used internally by audioworkletnode constructor to populate its parameters property accordingly.
AudioParamMap - Web APIs
iple audio parameters, each described as a mapping of a domstring identifying the parameter to the audioparam object representing its value.
AudioScheduledSourceNode.onended - Web APIs
ioscheduledsourcenode interface specifies an eventhandler to be executed when the ended event occurs on the node.
AudioScheduledSourceNode.start() - Web APIs
the start() method on audioscheduledsourcenode schedules a sound to begin playback at the specified time.
AudioTrack.enabled - Web APIs
ithin the audio tracks of the <video> element "main-video" the audio tracks whose kind values are "main" and "commentary".
AudioTrack.id - Web APIs
Web › API › AudioTrack › id
the id property contains a string which uniquely identifies the track represented by the audiotrack.
AudioWorkletGlobalScope.registerProcessor - Web APIs
the registerprocessor method of the audioworkletglobalscope interface registers a class constructor derived from audioworkletprocessor interface under a specified name.
AudioWorkletNode() - Web APIs
= new audioworkletnode(context, name); var node = new audioworkletnode(context, name, options); parameters context the baseaudiocontext instance this node will be associated with.
AudioWorkletNode.parameters - Web APIs
ke collection of audioparam objects.
AudioWorkletProcessor.parameterDescriptors (static getter) - Web APIs
e getter is optional.
AuthenticatorAssertionResponse.authenticatorData - Web APIs
ant bit and all bits not specifically mentioned below are "reserved for future use": bit 0, user presence (up) - if set, authenticator validated that the user was present through some test of user presence (tup), such as touching a button on the authenticator.
AuthenticatorAssertionResponse - Web APIs
thenticatorassertionresponse.authenticatordata and authenticatorresponse.clientdatajson.
AuthenticatorResponse - Web APIs
l.response.
BaseAudioContext.createAnalyser() - Web APIs
the createanalyser() method of the baseaudiocontext interface creates an analysernode, which can be used to expose audio time and frequency data and create data visualisations.
BaseAudioContext.createBiquadFilter() - Web APIs
the createbiquadfilter() method of the baseaudiocontext interface creates a biquadfilternode, which represents a second order filter configurable as several different common filter types.
BaseAudioContext.createBufferSource() - Web APIs
the createbuffersource() method of the baseaudiocontext interface is used to create a new audiobuffersourcenode, which can be used to play audio data contained within an audiobuffer object.
BaseAudioContext.createConvolver() - Web APIs
the createconvolver() method of the baseaudiocontext interface creates a convolvernode, which is commonly used to apply reverb effects to your audio.
BaseAudioContext.createDelay() - Web APIs
the createdelay() method of the baseaudiocontext interface is used to create a delaynode, which is used to delay the incoming audio signal by a certain amount of time.
BaseAudioContext.createDynamicsCompressor() - Web APIs
the createdynamicscompressor() method of the baseaudiocontext interface is used to create a dynamicscompressornode, which can be used to apply compression to an audio signal.
BaseAudioContext.createGain() - Web APIs
the creategain() method of the baseaudiocontext interface creates a gainnode, which can be used to control the overall gain (or volume) of the audio graph.
BaseAudioContext.createIIRFilter() - Web APIs
the createiirfilter() method of the baseaudiocontext interface creates an iirfilternode, which represents a general infinite impulse response (iir) filter which can be configured to serve as various types of filter.
BaseAudioContext.createOscillator() - Web APIs
the createoscillator() method of the baseaudiocontext interface creates an oscillatornode, a source representing a periodic waveform.
BaseAudioContext.createPeriodicWave() - Web APIs
the createperiodicwave() method of the baseaudiocontext interface is used to create a periodicwave, which is used to define a periodic waveform that can be used to shape the output of an oscillatornode.
BaseAudioContext.createWaveShaper() - Web APIs
the createwaveshaper() method of the baseaudiocontext interface creates a waveshapernode, which represents a non-linear distortion.
BasicCardRequest.supportedNetworks - Web APIs
identifiers approved for use with payment request api, and are currently: amex cartebancaire diners discover jcb mastercard mir unionpay visa example the following example shows a sample definition of the first parameter of the paymentrequest() constructor, the data property of which contains supportednetworks and supportedtypes properties.
BasicCardRequest.supportedTypes - Web APIs
trings, which describe the card types the retailer supports.
Battery Status API - Web APIs
n about the system's battery charge level and lets you be notified by events that are sent when the battery level or charging status change.
BeforeInstallPromptEvent.prompt() - Web APIs
the prompt() method of the beforeinstallpromptevent interface allows a developer to show the install prompt at a time of their own choosing.
BiquadFilterNode() - Web APIs
the biquadfilternode() constructor of the web audio api creates a new biquadfilternode object, which represents a simple low-order filter, and is created using the audiocontext.createbiquadfilter() method.
BluetoothAdvertisingData - Web APIs
ta.rssi read only returns the power at which the device’s packets are being received, measured in dbm.
connectGATT() - Web APIs
the bluetoothdevice.connectgatt() method returns a promise that resolves to an instance of bluetoothgattremoteserver.
BluetoothDevice - Web APIs
nformation service.
BluetoothRemoteGATTCharacteristic.getDescriptor() - Web APIs
the bluetoothremotegattcharacteristic.getdescriptor() method returns a promise that resolves to the first bluetoothgattdescriptor for a given descriptor uuid.
BluetoothRemoteGATTCharacteristic.getDescriptors() - Web APIs
the bluetoothremotegattcharacteristic.getdescriptors() method returns a promise that resolves to an array of all bluetoothgattdescriptor objects for a given descriptor uuid.
BluetoothRemoteGATTCharacteristic.readValue() - Web APIs
the bluetoothremotegattcharacteristic.readvalue() method returns a promise that resolves to a dataview holding a duplicate of the value property if it is available and supported.
BluetoothRemoteGATTCharacteristic.startNotifications() - Web APIs
the bluetoothremotegattcharacteristic.startnotifications() method returns a promise to the bluetoothremotegattcharacteristic instance when there is an active notification on it.
BluetoothRemoteGATTCharacteristic.stopNotifications() - Web APIs
the bluetoothremotegattcharacteristic.stopnotifications() method returns a promise to the bluetoothremotegattcharacteristic instance when there is no longer an active notification on it.
BluetoothRemoteGATTCharacteristic.writeValue() - Web APIs
the bluetoothremotegattcharacteristic.writevalue() method sets the value property to the bytes contained in an arraybuffer and returns a promise.
BluetoothRemoteGATTCharacteristic - Web APIs
00002a37-0000-1000-8000-00805f9b34fb' for the heart rate measurement characteristic.
readValue() - Web APIs
the bluetoothremotegattdescriptor.readvalue() method returns a promise that resolves to an arraybuffer holding a duplicate of the value property if it is available and supported.
writeValue() - Web APIs
the bluetoothremotegattdescriptor.writevalue() method sets the value property to the bytes contained in an arraybuffer and returns a promise.
BluetoothRemoteGATTDescriptor - Web APIs
stic this descriptor belongs to.
BluetoothRemoteGATTServer.connect() - Web APIs
the bluetoothremotegattserver.connect() method causes the script execution environment to connect to this.device.
BluetoothRemoteGATTServer.disconnect() - Web APIs
the bluetoothremotegattserver.disconnect() method causes the script execution environment to disconnect from this.device.
BluetoothRemoteGATTServer.getPrimaryService() - Web APIs
the bluetoothremotegattserver.getprimaryservice() method returns a promise to the primary bluetoothgattservice offered by the bluetooth device for a specified bluetoothserviceuuid.
BluetoothRemoteGATTServer.getPrimaryServices() - Web APIs
the bluetoothremotegattserver.getprimaryservices() method returns a promise to a list of primary bluetoothgattservice objects offered by the bluetooth device for a specified bluetoothserviceuuid.
BluetoothRemoteGATTServer - Web APIs
ervice>> getprimaryservices(optional bluetoothserviceuuid service); }; properties bluetoothremotegattserver.connectedread only a boolean value that returns true while this script execution environment is connected to this.device.
getCharacteristic() - Web APIs
the bluetoothgattservice.getcharacteristic() method returns a promise to an instance of bluetoothgattcharacteristic for a given universally unique identifier (uuid).
getCharacteristics() - Web APIs
the bluetoothgattservice.getcharacteristics() method returns a promise to a list of bluetoothgattcharacteristic instances for a given universally unique identifier (uuid).
getIncludedService() - Web APIs
the bluetoothgattservice.getincludedservice() method returns a promise to an instance of bluetoothgattservice for a given universally unique identifier (uuid).
getIncludedServices() - Web APIs
the bluetoothgattservice.getincludedservices() method returns a promise to an array of bluetoothgattservice instances for an optional universally unique identifier (uuid).
BluetoothRemoteGATTService - Web APIs
rviceuuid service); }; properties bluetoothremotegattservice.deviceread only returns information about a bluetooth device through an instance of bluetoothdevice.
Body.arrayBuffer() - Web APIs
Web › API › Body › arrayBuffer
the arraybuffer() method of the body mixin takes a response stream and reads it to completion.
Body.formData() - Web APIs
Web › API › Body › formData
the formdata() method of the body mixin takes a response stream and reads it to completion.
Body.json() - Web APIs
Web › API › Body › json
the json() method of the body mixin takes a response stream and reads it to completion.
Body.text() - Web APIs
Web › API › Body › text
the text() method of the body mixin takes a response stream and reads it to completion.
Body - Web APIs
Web › API › Body
andled.
BudgetService - Web APIs
the budgetservice interface of the web budget api provides a programmatic interface to the user agent’s budget service.
BudgetState - Web APIs
the budgetstate interface of the the web budget api provides the amount of the user agent's processing budget at a specific point in time.
ByteLengthQueuingStrategy.size() - Web APIs
the size() method of the bytelengthqueuingstrategy interface returns the given chunk’s bytelength property.
ByteLengthQueuingStrategy - Web APIs
the bytelengthqueuingstrategy interface of the the streams api provides a built-in byte length queuing strategy that can be used when constructing streams.
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.registerProperty() - Web APIs
the css.registerproperty() method registers custom properties, allowing for property type checking, default values, and properties that do or do not inherit their value.
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.
CSSImageValue - Web APIs
the cssimagevalue interface of the css typed object model api represents values for properties that take an image, for example background-image, list-style-image, or border-image-source.
CSSMathProduct - Web APIs
the cssmathproduct interface of the css typed object model api represents the result obtained by calling add(), sub(), or tosum() on cssnumericvalue.
CSSMathValue - Web APIs
e css typed object model api a base class for classes representing complex numeric values.
CSSNumericValue.equals() - Web APIs
the equals() method of the cssnumericvalue interface returns a boolean indicating whether the passed value are strictly equal.
CSSNumericValue.parse() - Web APIs
the parse() method of the cssnumericvalue interface converts a value string into an object whose members are value and the units.
CSSNumericValue.type - Web APIs
the type() method of the cssnumericvalue interface returns the type of cssnumericvalue, one of angle, flex, frequency, length, resolution, percent, percenthint, or time.
CSSNumericValue - Web APIs
all numeric values can perform.
CSSPositionValue - Web APIs
erface of the the css typed object model api represents values for properties that take a position, for example object-position.
CSSPrimitiveValue.getCounterValue() - Web APIs
the getcountervalue() method of the cssprimitivevalue interface is used to get the counter value.
CSSPrimitiveValue.getRGBColorValue() - Web APIs
the getrgbcolorvalue() method of the cssprimitivevalue interface is used to get an rgb color value.
CSSPrimitiveValue.getRectValue() - Web APIs
the getrectvalue() method of the cssprimitivevalue interface is used to get a rect value.
CSSPrimitiveValue.getStringValue() - Web APIs
the getstringvalue() method of the cssprimitivevalue interface is used to get a string value.
CSSPrimitiveValue.setStringValue() - Web APIs
the setstringvalue() method of the cssprimitivevalue interface is used to set a string value.
CSSStyleDeclaration.getPropertyCSSValue() - Web APIs
the cssstyledeclaration.getpropertycssvalue() method interface returns a cssvalue containing the css value for a property.
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.
CSSStyleDeclaration.removeProperty() - Web APIs
the cssstyledeclaration.removeproperty() method interface removes a property from a css style declaration object.
CSSStyleSheet.deleteRule() - Web APIs
the cssstylesheet method deleterule() removes a rule from the stylesheet object.
CSSStyleValue.parse() - Web APIs
the parse() method of the cssstylevalue interface sets a specific css property to the specified values and returns the first value as a cssstylevalue object.
CSSStyleValue.parseAll() - Web APIs
the parseall() method of the cssstylevalue interface sets all occurences of a specific css property to the specified value and returns an array of cssstylevalue objects, each containing one of the supplied values.
CSSStyleValue - Web APIs
rface of the the css typed object model api is the base class of all css values accessible through the typed om api.
CSSUnitValue.CSSUnitValue() - Web APIs
eates a new cssunitvalue object which returns a new cssunitvalue object which represents values that contain a single unit type.
CSSUnparsedValue.entries() - Web APIs
the cssunparsedvalue.entries() method returns an array of a given object's own enumerable property [key, value] pairs in the same order as that provided by a for...in loop (the difference being that a for-in loop enumerates properties in the prototype chain as well).
CSSUnparsedValue.forEach() - Web APIs
the cssunparsedvalue.foreach() method executes a provided function once for each element of the cssunparsedvalue.
CSSUnparsedValue.keys() - Web APIs
the cssunparsedvalue.keys() method returns a new array iterator object that contains the keys for each index in the array.
CSSUnparsedValue.values() - Web APIs
the cssunparsedvalue.values() method returns a new array iterator object that contains the values for each index in the cssunparsedvalue object.
CSSUnparsedValue - Web APIs
properties.
CSSVariableReferenceValue - Web APIs
purpose as the var() function.
Managing screen orientation - Web APIs
e the orientation of the screen and the orientation itself can be read with the screen.orientation property.
CSS Painting API - Web APIs
-only values of the output bitmap's width and height.
Cache.put() - Web APIs
Web › API › Cache › put
the put() method of the cache interface allows key/value pairs to be added to the current cache object.
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.
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.
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.
CanvasImageSource - Web APIs
canvasimagesource provides a mechanism for other interfaces to be used as image sources for some methods of the canvasdrawimage and canvasfillstrokestyles interfaces.
CanvasRenderingContext2D.bezierCurveTo() - Web APIs
the canvasrenderingcontext2d.beziercurveto() method of the canvas 2d api adds a cubic bézier curve to the current sub-path.
CanvasRenderingContext2D.drawWidgetAsOnScreen() - Web APIs
the non-standard and internal only canvasrenderingcontext2d.drawwidgetasonscreen() method of the canvas 2d api renders the root widget of a window into the canvas.
CanvasRenderingContext2D.getTransform() - Web APIs
the canvasrenderingcontext2d.gettransform() method of the canvas 2d api retrieves the current transformation matrix being applied to the context.
CanvasRenderingContext2D.lineCap - Web APIs
the canvasrenderingcontext2d.linecap property of the canvas 2d api determines the shape used to draw the end points of lines.
CanvasRenderingContext2D.lineDashOffset - Web APIs
the canvasrenderingcontext2d.linedashoffset property of the canvas 2d api sets the line dash offset, or "phase." note: lines are drawn by calling the stroke() method.
CanvasRenderingContext2D.lineJoin - Web APIs
ape used to join two line segments where they meet.
CanvasRenderingContext2D.lineWidth - Web APIs
the canvasrenderingcontext2d.linewidth property of the canvas 2d api sets the thickness of lines.
CanvasRenderingContext2D.measureText() - Web APIs
the canvasrenderingcontext2d.measuretext() method returns a textmetrics object that contains information about the measured text (such as its width, for example).
CanvasRenderingContext2D.moveTo() - Web APIs
the canvasrenderingcontext2d.moveto() method of the canvas 2d api begins a new sub-path at the point specified by the given (x, y) coordinates.
CanvasRenderingContext2D.quadraticCurveTo() - Web APIs
the canvasrenderingcontext2d.quadraticcurveto() method of the canvas 2d api adds a quadratic bézier curve to the current sub-path.
CanvasRenderingContext2D.scale() - Web APIs
the canvasrenderingcontext2d.scale() method of the canvas 2d api adds a scaling transformation to the canvas units horizontally and/or vertically.
CanvasRenderingContext2D.strokeStyle - Web APIs
changing the stroke color of a shape this example applies a blue stroke color to a rectangle.
CanvasRenderingContext2D.textAlign - Web APIs
the canvasrenderingcontext2d.textalign property of the canvas 2d api specifies the current text alignment used when drawing text.
Client.postMessage() - Web APIs
the postmessage() method of the client interface allows a service worker to send a message to a client (a window, worker, or sharedworker).
Clients.get() - Web APIs
Web › API › Clients › get
the get() method of the clients interface gets a service worker client matching a given id and returns it in a promise.
Clients - Web APIs
Web › API › Clients
the clients interface provides access to client objects.
Clipboard.write() - Web APIs
Web › API › Clipboard › write
the clipboard method write() writes arbitrary data, such as images, to the clipboard.
CompositionEvent.data - Web APIs
the data read-only property of the compositionevent interface returns the characters generated by the input method that raised the event; its exact nature varies depending on the type of event that generated the compositionevent object.
CompositionEvent.initCompositionEvent() - Web APIs
the initcompositionevent() method of the compositionevent interface initializes the attributes of a compositionevent object instance.
console.assert() - Web APIs
Web › API › Console › assert
the console.assert() method writes an error message to the console if the assertion is false.
console.clear() - Web APIs
Web › API › Console › clear
the console.clear() method clears the console if the environment allows it.
console.count() - Web APIs
Web › API › Console › count
the console.count() method logs the number of times that this particular call to count() has been called.
Console.countReset() - Web APIs
the console.countreset() method resets counter used with console.count().
console.debug() - Web APIs
Web › API › Console › debug
the console method debug() outputs a message to the web console at the "debug" log level.
Console.dir() - Web APIs
Web › API › Console › dir
the console method dir() displays an interactive list of the properties of the specified javascript object.
Console.info() - Web APIs
Web › API › Console › info
the console.info() method outputs an informational message to the web console.
console.log() - Web APIs
Web › API › Console › log
the console method log() outputs a message to the web console.
Console.profileEnd() - Web APIs
calling this api immediately after console.profile() can cause it to not work.
CountQueuingStrategy.size() - Web APIs
the size() method of the countqueuingstrategy interface always returns 1, so that the total queue size is a count of the number of chunks in the queue.
CountQueuingStrategy - Web APIs
the countqueuingstrategy interface of the the streams api provides a built-in chunk counting queuing strategy that can be used when constructing streams.
Credential - Web APIs
ision.
Credential Management API - Web APIs
g credentialscontainer.store().
CryptoKeyPair - Web APIs
private key.
CustomElementRegistry.define() - Web APIs
the define() method of the customelementregistry interface defines a new custom element.
CustomElementRegistry.get() - Web APIs
the get() method of the customelementregistry interface returns the constructor for a previously-defined custom element.
CustomElementRegistry.upgrade() - Web APIs
the upgrade() method of the customelementregistry interface upgrades all shadow-containing custom elements in a node subtree, even before they are connected to the main document.
CustomElementRegistry.whenDefined() - Web APIs
the whendefined() method of the customelementregistry interface returns a promise that resolves when the named element is defined.
DOMConfiguration - Web APIs
ections", "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 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.
DOMImplementation.createDocument() - Web APIs
the domimplementation.createdocument() method creates and returns an xmldocument.
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().
DOMImplementation.createHTMLDocument() - Web APIs
the domimplementation.createhtmldocument() method creates a new html document.
DOMImplementationList - Web APIs
returned by domimplementationsource.getdomimplementationlist() and domimplementationregistry.getdomimplementationlist() .
DOMParser() - Web APIs
the domparser() constructor creates a new domparser object.
DOMPoint.fromPoint() - Web APIs
the static dompoint method frompoint() creates and returns a new mutable dompoint object given a source point.
DOMPointInit.x - Web APIs
Web › API › DOMPointInit › x
g that it is allowed to be infinite or invalid (that is, its value may be nan or ±infinity).
DOMPointInit - Web APIs
the dompointinit dictionary is used to provide the values of the coordinates and perspective when creating and jsonifying a dompoint or dompointreadonly object.
DOMPointReadOnly.fromPoint() - Web APIs
the static dompointreadonly method frompoint() creates and returns a new dompointreadonly object given a source point.
DOMQuad - Web APIs
Web › API › DOMQuad
tboxquads() return accurate information even when arbitrary 2d or 3d transforms are present.
DOMRectReadOnly - Web APIs
lue of the domrect (usually the same as y.) domrectreadonly.right read only returns the right coordinate value of the domrect (usually the same as x + width).
Binary strings - Web APIs
Web › API › DOMString › Binary
applications become more and more powerful (adding features such as audio and video manipulation, access to raw data using websockets, and so forth) it has become clear that there are times when it would be helpful for javascript code to be able to quickly and easily manipulate raw binary data.
DOMString - Web APIs
Web › API › DOMString
domstring is a utf-16 string.
DOMStringList - Web APIs
a type returned by some apis which contains a list of domstring (strings).
DOMTokenList.add() - Web APIs
Web › API › DOMTokenList › add
the add() method of the domtokenlist interface adds the given token to the list.
DOMTokenList.contains() - Web APIs
the contains() method of the domtokenlist interface returns a boolean — true if the underlying list contains the given token, otherwise false.
DOMTokenList.entries() - Web APIs
the domtokenlist.entries() method returns an iterator allowing you to go through all key/value pairs contained in this object.
DOMTokenList.forEach() - Web APIs
the foreach() method of the domtokenlist interface calls the callback given in parameter once for each value pair in the list, in insertion order.
DOMTokenList.item() - Web APIs
Web › API › DOMTokenList › item
the item() method of the domtokenlist interface returns an item in the list by its index.
DOMTokenList.keys() - Web APIs
Web › API › DOMTokenList › keys
the keys() method of the domtokenlist interface returns an iterator allowing to go through all keys contained in this object.
DOMTokenList.remove() - Web APIs
the remove() method of the domtokenlist interface removes the specified tokens from the list.
DOMTokenList.toggle() - Web APIs
the toggle() method of the domtokenlist interface removes a given token from the list and returns false.
DOMTokenList.values() - Web APIs
the values() method of the domtokenlist interface returns an iterator allowing developers to go through all values contained in the domtokenlist.
DOMUserData - Web APIs
domuserdata refers to application data.
DataTransferItemList.DataTransferItem() - Web APIs
the datatransferitem() getter method implements support for accessing items in the datatransferitemlist using array-style syntax (that is datatransferitem[index]).
DedicatedWorkerGlobalScope.onmessage - Web APIs
the onmessage property of the dedicatedworkerglobalscope interface represents an eventhandler to be called when the message event occurs and bubbles through the worker — i.e.
DelayNode.delayTime - Web APIs
the delaytime property of the delaynode interface is an a-rate audioparam representing the amount of delay to apply.
DeprecationReportBody - Web APIs
the deprecationreportbody interface of the reporting api represents the body of a deprecation report (the return value of its report.body property).
Using light sensors - Web APIs
intensity, the browser is notified of the change and fires a devicelightevent event.
Document.caretRangeFromPoint() - Web APIs
the caretrangefrompoint() method of the document interface returns a range object for the document fragment under the specified coordinates.
Document.close() - Web APIs
Web › API › Document › close
the document.close() method finishes writing to a document, opened with document.open().
Document.createAttribute() - Web APIs
the document.createattribute() method creates a new attribute node, and returns it.
Document.createCDATASection() - Web APIs
some]]></xml> notes this will only work with xml, not html documents (as html documents do not support cdata sections); attempting it on an html document will throw not_supported_err.
Document.createElementNS() - Web APIs
creates an element with the specified namespace uri and qualified name.
Document.createEntityReference() - Web APIs
obsolete since gecko 7.0 (firefox 7.0 / thunderbird 7.0 / seamonkey 2.4)this feature is obsolete.
Document.createEvent() - Web APIs
many methods used with createevent, such as initcustomevent, are deprecated.
Document.createNSResolver() - Web APIs
lver = document.creatensresolver(node); parameters node is the node to be used as a context for namespace resolution.
Document.createTextNode() - Web APIs
creates a new text node.
Document.evaluate() - Web APIs
Web › API › Document › evaluate
xpath in javascript for more information.
Document.execCommand() - Web APIs
when an html document has been switched to designmode, its document object exposes an execcommand method to run commands that manipulate the current editable region, such as form inputs or contenteditable elements.
Document.exitFullscreen() - Web APIs
the document method exitfullscreen() requests that the element on this document which is currently being presented in full-screen mode be taken out of full-screen mode, restoring the previous state of the screen.
Document.exitPointerLock() - Web APIs
the exitpointerlock() method asynchronously releases a pointer lock previously requested through element.requestpointerlock.
Document.getAnimations() - Web APIs
the getanimations() method of the document interface returns an array of all animation objects currently in effect whose target elements are descendants of the document.
Document.hasStorageAccess() - Web APIs
the hasstorageaccess() method of the document interface returns a promise that resolves with a boolean value indicating whether the document has access to its first-party storage.
Document.images - Web APIs
Web › API › Document › images
e document interface returns a collection of the images in the current html document.
Document.location - Web APIs
Web › API › Document › location
the document.location read-only property returns a location object, which contains information about the url of the document and provides methods for changing that url and loading another url.
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.popupNode - Web APIs
via the keyboard, the popup node may be set to null.
Document.queryCommandState() - Web APIs
the querycommandstate() method will tell you if the current selection has a certain document.execcommand() command applied.
Document.queryCommandSupported() - Web APIs
the document.querycommandsupported() method reports whether or not the specified editor command is supported by the browser.
Document.querySelector() - Web APIs
the document method queryselector() returns the first element within the document that matches the specified selector, or group of selectors.
Document.registerElement() - Web APIs
warning: document.registerelement() is deprecated in favor of customelements.define().
Document.releaseCapture() - Web APIs
the releasecapture() method releases mouse capture if it's currently enabled on an element within this document.
Document.requestStorageAccess() - Web APIs
the requeststorageaccess() method of the document interface returns a promise that resolves if the access to first-party storage was granted, and rejects if access was denied.
Document.tooltipNode - Web APIs
the document.tooltipnode property returns the node which is the target of the current <xul:tooltip>.
Document: wheel event - Web APIs
nt.deltay * -2; } else { // zoom out scale /= event.deltay * 2; } // restrict scale scale = math.min(math.max(.125, scale), 4); // apply scale transform el.style.transform = `scale(${scale})`; } let scale = 1; const el = document.queryselector('div'); document.onwheel = zoom; addeventlistener equivalent the event handler can also be set up using the addeventlistener() method: document.addeventlistener('wheel', zoom); specifications specification status comment ui eventsthe definition of 'wheel' in that specification.
Document.write() - Web APIs
Web › API › Document › write
the document.write() method writes a string of text to a document stream opened by document.open().
DocumentFragment.querySelectorAll() - Web APIs
the documentfragment.queryselectorall() method returns a nodelist of elements within the documentfragment (using depth-first pre-order traversal of the document's nodes) that matches the specified group of selectors.
DocumentOrShadowRoot.nodeFromPoint() - Web APIs
the nodefrompoint() property of the documentorshadowroot interface returns the topmost node at the specified coordinates (relative to the viewport).
DocumentOrShadowRoot.nodesFromPoint() - Web APIs
the nodesfrompoint() property of the documentorshadowroot interface returns an array of all nodes at the specified coordinates (relative to the viewport).
DocumentOrShadowRoot - Web APIs
umentorshadowroot.pointerlockelement read only returns the element set as the target for mouse events while the pointer is locked.
Document Object Model (DOM) - Web APIs
ts or programming languages by representing the structure of a document—such as the html representing a web page—in memory.
EXT_blend_minmax - Web APIs
the ext_blend_minmax extension is part of the webgl api and extends blending capabilities by adding two new blend equations: the minimum or maximum color components of the source and destination colors.
EXT_disjoint_timer_query.beginQueryEXT() - Web APIs
the ext_disjoint_timer_query.beginqueryext() method of the webgl api starts a timer query.
EXT_disjoint_timer_query.createQueryEXT() - Web APIs
the ext_disjoint_timer_query.createqueryext() method of the webgl api creates and initializes webglquery objects, which track the time needed to fully complete a set of gl commands.
EXT_disjoint_timer_query.deleteQueryEXT() - Web APIs
the ext_disjoint_timer_query.deletequeryext() method of the webgl api deletes a given webglquery object.
EXT_disjoint_timer_query.endQueryEXT() - Web APIs
the ext_disjoint_timer_query.endqueryext() method of the webgl api ends a timer query.
EXT_disjoint_timer_query.getQueryEXT() - Web APIs
the ext_disjoint_timer_query.getqueryext() method of the webgl api returns information about a query target.
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.
EXT_disjoint_timer_query.isQueryEXT() - Web APIs
the ext_disjoint_timer_query.isqueryext() method of the webgl api returns true if the passed object is a webglquery object.
EXT_disjoint_timer_query.queryCounterEXT() - Web APIs
the ext_disjoint_timer_query.querycounterext() method of the webgl api records the current time into the corresponding query object.
EXT_float_blend - Web APIs
the webgl api's ext_float_blend extension allows blending and draw buffers with 32-bit floating-point components.
EXT_frag_depth - Web APIs
the ext_frag_depth extension is part of the webgl api and enables to set a depth value of a fragment from within the fragment shader.
EXT_shader_texture_lod - Web APIs
the ext_shader_texture_lod extension is part of the webgl api and adds additional texture functions to the opengl es shading language which provide the shader writer with explicit control of lod (level of detail).
EXT_texture_compression_bptc - Web APIs
the ext_texture_compression_bptc extension is part of the webgl api and exposes 4 bptc compressed texture formats.
EXT_texture_compression_rgtc - Web APIs
the ext_texture_compression_rgtc extension is part of the webgl api and exposes 4 rgtc compressed texture formats.
EXT_texture_filter_anisotropic - Web APIs
the ext_texture_filter_anisotropic extension is part of the webgl api and exposes two constants for anisotropic filtering (af).
Element.attachShadow() - Web APIs
the element.attachshadow() method attaches a shadow dom tree to the specified element and returns a reference to its shadowroot.
Element.attributes - Web APIs
the element.attributes property returns a live collection of all attribute nodes registered to the specified node.
Element.closest() - Web APIs
Web › API › Element › closest
the closest() method traverses the element and its parents (heading toward the document root) until it finds a node that matches the provided selector string.
Element: compositionend event - Web APIs
the compositionend event is fired when a text composition system such as an input method editor completes or cancels the current composition session.
Element: compositionstart event - Web APIs
the compositionstart event is fired when a text composition system such as an input method editor starts a new composition session.
Element: compositionupdate event - Web APIs
the compositionupdate event is fired when a new character is received in the context of a text composition session controlled by a text composition system such as an input method editor.
Element.computedStyleMap() - Web APIs
the computedstylemap() method of the element interface returns a stylepropertymapreadonly interface which provides a read-only representation of a css declaration block that is an alternative to cssstyledeclaration.
Element: contextmenu event - Web APIs
.
Element.createShadowRoot() - Web APIs
use element.createshadowroot to create an instance of shadow dom.
Element.currentStyle - Web APIs
element.currentstyle is a proprietary property which is similar to the standardized window.getcomputedstyle() method.
Element.getAttribute() - Web APIs
the getattribute() method of the element interface returns the value of a specified attribute on the element.
Element.getAttributeNames() - Web APIs
the getattributenames() method of the element interface returns the attribute names of the element as an array of strings.
Element.getBoundingClientRect() - Web APIs
the element.getboundingclientrect() method returns the size of an element and its position relative to the viewport.
Element.getElementsByTagName() - Web APIs
the element.getelementsbytagname() method returns a live htmlcollection of elements with the given tag name.
Element.getElementsByTagNameNS() - Web APIs
the element.getelementsbytagnamens() method returns a live htmlcollection of elements with the given tag name belonging to the given namespace.
Element.hasAttributes() - Web APIs
the hasattributes() method of the element interface returns a boolean indicating whether the current element has any attributes or not.
Element.hasPointerCapture() - Web APIs
the haspointercapture() method of the element interface sets whether the element on which it is invoked has pointer capture for the pointer identified by the given pointer id.
Element.insertAdjacentElement() - Web APIs
the insertadjacentelement() method of the element interface inserts a given element node at a given position relative to the element it is invoked upon.
Element.matches() - Web APIs
Web › API › Element › matches
the matches() method checks to see if the element would be selected by the provided selectorstring -- in other words -- checks if the element "is" the selector.
Element.name - Web APIs
Web › API › Element › name
ent in the dom.
Element.namespaceURI - Web APIs
kup based on an examination of the namespace declarations in scope.
Element.requestPointerLock() - Web APIs
the element.requestpointerlock() method lets you asynchronously ask for the pointer to be locked on the given element.
Element.scroll() - Web APIs
Web › API › Element › scroll
the scroll() method of the element interface scrolls the element to a particular set of coordinates inside a given element.
Element.scrollBy() - Web APIs
Web › API › Element › scrollBy
the scrollby() method of the element interface scrolls an element by the given amount.
Element.scrollIntoView() - Web APIs
the element interface's scrollintoview() method scrolls the element's parent container such that the element on which scrollintoview() is called is visible to the user syntax element.scrollintoview(); element.scrollintoview(aligntotop); // boolean parameter element.scrollintoview(scrollintoviewoptions); // object parameter parameters aligntotop optional is a boolean value: if true, the top of the element will be aligned to the top of the visible area of the scrollable ancestor.
Element.scrollTo() - Web APIs
Web › API › Element › scrollTo
the scrollto() method of the element interface scrolls to a particular set of coordinates inside a given element.
Element.setCapture() - Web APIs
call this method during the handling of a mousedown event to retarget all mouse events to this element until the mouse button is released or document.releasecapture() is called.
Element: wheel event - Web APIs
} function zoom(event) { event.preventdefault(); scale += event.deltay * -0.01; // restrict scale scale = math.min(math.max(.125, scale), 4); // apply scale transform el.style.transform = `scale(${scale})`; } let scale = 1; const el = document.queryselector('div'); el.onwheel = zoom; addeventlistener equivalent the event handler can also be set up using the addeventlistener() method: el.addeventlistener('wheel', zoom); specifications specification status comment ui eventsthe definition of 'wheel' in that specification.
ElementCSSInlineStyle.style - Web APIs
attribute, not those that come from style rules elsewhere, such as style rules in the <head> section, or external style sheets.
Event.composedPath() - Web APIs
the composedpath() method of the event interface returns the event’s path which is an array of the objects on which listeners will be invoked.
Event.defaultPrevented - Web APIs
the defaultprevented read-only property of the event interface returns a boolean indicating whether or not the call to event.preventdefault() canceled the event.
Event.preventDefault() - Web APIs
the event interface's preventdefault() method tells the user agent that if the event does not get explicitly handled, its default action should not be taken as it normally would be.
Event.stopImmediatePropagation() - Web APIs
the stopimmediatepropagation() method of the event interface prevents other listeners of the same event from being called.
EventListener.handleEvent() - Web APIs
the eventlistener method handleevent() method is called by the user agent when an event is sent to the eventlistener, in order to handle events that occur on an observed eventtarget.
EventTarget.removeEventListener() - Web APIs
the eventtarget.removeeventlistener() method removes from the eventtarget an event listener previously registered with eventtarget.addeventlistener().
FeaturePolicy.allowsFeature() - Web APIs
the allowsfeature() method of the featurepolicy interface enables introspection of individual directives of the feature 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.
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.
FeaturePolicy - Web APIs
the featurepolicy interface of the feature policy api represents the set of policies applied to the current execution context.
FederatedCredential - Web APIs
uctor federatedcredential() creates a new federatedcredential object.
FetchEvent.clientId - Web APIs
the clientid read-only property of the fetchevent interface returns the id of the client that the current service worker is controlling.
FileError - Web APIs
Web › API › FileError
ed to error callbacks.
FileReader.abort() - Web APIs
Web › API › FileReader › abort
the abort method aborts the read operation.
FileReader.readAsDataURL() - Web APIs
the readasdataurl method is used to read the contents of the specified blob or file.
FileRequest - Web APIs
request interface to provide some extra properties necessary for the lockedfile objects.
FileSystemDirectoryReader - Web APIs
leentry-based objects (generally filesystemfileentry or filesystemdirectoryentry) representing each entry in a directory.
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.
FileSystemEntry.getMetadata() - Web APIs
} the filesystementry interface's method getmetadata() obtains a metadata object with information about the file system entry, such as its modification date and time and its size.
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.
FileSystemEntry.remove() - Web APIs
the filesystementry interface's method remove() deletes the file or directory from the file system.
FileSystemEntry.toURL() - Web APIs
the filesystementry interface's method tourl() creates and returns a string containing a url which can be used to identify the file system entry.
File and Directory Entries API - Web APIs
esents a single file in a file system.
FontFace.load - Web APIs
Web › API › FontFace › load
the load() method of the fontface interface loads a font based on current object's constructor-passed requirements, including a location or source buffer, and returns a promise that resolves with the current fontface object.
FontFaceSet.check() - Web APIs
Web › API › FontFaceSet › check
the check() method of the fontfaceset returns whether all fonts in the given font list have been loaded and are available.
FontFaceSet.load() - Web APIs
Web › API › FontFaceSet › load
the load() method of the fontfaceset forces all the fonts given in parameters to be loaded.
FontFaceSet - Web APIs
t of type loading is fired, indicating a font-face set has started loading.
Frame Timing API - Web APIs
specify the set of performance events to observe - in this case, just the "frame" event type.
Gamepad - Web APIs
Web › API › Gamepad
the gamepad interface of the gamepad api defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.
GamepadHapticActuator.pulse() - Web APIs
the pulse() method of the gamepadhapticactuator interface makes the hardware pulse at a certain intensity for a specified duration.
GamepadHapticActuator - Web APIs
the gamepadhapticactuator interface of the gamepad api represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware.
Geolocation.getCurrentPosition() - Web APIs
the geolocation.getcurrentposition() method is used to get the current position of the device.
Geolocation.watchPosition() - Web APIs
the geolocation method watchposition() method is used to register a handler function that will be called automatically each time the position of the device changes.
GeometryUtils - Web APIs
the geometryutils interface provides different utility function to retrieve geometry information about dom nodes.
GlobalEventHandlers.onanimationcancel - Web APIs
then we set up the handlecancelevent() function, which is called in response to the animationcancel event, as set up in the html above.
GlobalEventHandlers.onauxclick - Web APIs
what inconsistent.
GlobalEventHandlers.oncancel - Web APIs
>.
GlobalEventHandlers.onclick - Web APIs
mouse or a touch screen.
GlobalEventHandlers.onclose - Web APIs
es when the user closes a <dialog>.
GlobalEventHandlers.oncontextmenu - Web APIs
ed on the window.
GlobalEventHandlers.ondblclick - Web APIs
r two click events.
GlobalEventHandlers.onemptied - Web APIs
var handlerfunction = element.onemptied; handlerfunction should be either null or a javascript function specifying the handler for the event.
GlobalEventHandlers.oninvalid - Web APIs
the oninvalid property of the globaleventhandlers mixin is an eventhandler that processes invalid events.
GlobalEventHandlers.onscroll - Web APIs
heel rotation, while onscroll handles scrolling of an object's content.
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.
HTMLCanvasElement.toDataURL() - Web APIs
the htmlcanvaselement.todataurl() method returns a data uri containing a representation of the image in the format specified by the type parameter (defaults to png).
HTMLCanvasElement.transferControlToOffscreen() - Web APIs
the htmlcanvaselement.transfercontroltooffscreen() method transfers control to an offscreencanvas object, either on the main thread or on a worker.
HTMLContentElement.getDistributedNodes() - Web APIs
the htmlcontentelement.getdistributednodes() method returns a static nodelist of the distributed nodes associated with this <content> element.
HTMLDocument - Web APIs
the htmldocument interface, which may be accessed through the window.htmldocument property, extends the window.htmldocument property to include methods and properties that are specific to html documents.
HTMLElement.click() - Web APIs
Web › API › HTMLElement › click
the htmlelement.click() method simulates a mouse click on an element.
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.
HTMLFormElement.reportValidity() - Web APIs
the htmlformelement.reportvalidity() method returns true if the element's child controls satisfy their validation constraints.
HTMLFormElement: submit event - Web APIs
sent to indicate the form's submit action has been triggered includes a submitter property, which is the button that was invoked to trigger the submit request.
HTMLHyperlinkElementUtils.toString() - Web APIs
the htmlhyperlinkelementutils.tostring() stringifier method returns a usvstring containing the whole url.
HTMLIFrameElement.setNfcFocus() - Web APIs
the setnfcfocus() method of the htmliframeelement interface sets whether an <iframe> can receive an nfc event.
HTMLImageElement.naturalWidth - Web APIs
th property returns the intrinsic (natural), density-corrected width of the image in css pixels.
HTMLImageElement.sizes - Web APIs
: 16px "open sans", verdana, arial, helvetica, sans-serif; } article img { display: block; max-width: 100%; border: 1px solid #888; box-shadow: 0 0.5em 0.3em #888; margin-bottom: 1.25em; } javascript the javascript code handles the two buttons that let you toggle the third width option between 40em and 50em; this is done by handling the click event, using the javascript string object method replace() to replace the relevant portion of the sizes string.
HTMLInputElement: invalid event - Web APIs
es interface event event handler property globaleventhandlers.oninvalid this event can be useful for displaying a summary of the problems with a form on submission.
HTMLInputElement.select() - Web APIs
the htmlinputelement.select() method selects all the text in a <textarea> element or in an <input> element that includes a text field.
HTMLInputElement.setRangeText() - Web APIs
the htmlinputelement.setrangetext() method replaces a range of text in an <input> or <textarea> element with a new string.
HTMLMediaElement.audioTracks - Web APIs
acks are added or existing ones removed.
HTMLMediaElement.canPlayType() - Web APIs
the htmlmediaelement method canplaytype() reports how likely it is that the current browser will be able to play media of a given mime type.
HTMLMediaElement.currentTime - Web APIs
e of currenttime this value seeks the media to the new time.
HTMLMediaElement: emptied event - Web APIs
the emptied event is fired when the media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it.
HTMLMediaElement.fastSeek() - Web APIs
the htmlmediaelement.fastseek() method quickly seeks the media to the new time with precision tradeoff.
HTMLMediaElement.pause() - Web APIs
the htmlmediaelement.pause() method will pause playback of the media, if the media is already in a paused state this method will have no effect.
HTMLMediaElement.setSinkId() - Web APIs
the htmlmediaelement.setsinkid() method sets the id of the audio device to use for output and returns a promise.
HTMLMediaElement.videoTracks - Web APIs
acks are added or existing ones removed.
HTMLMenuElement - Web APIs
="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">htmlmenuelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} propertiesthis interface has no properties, but inherits properties from: htmlelementmethodsthis interface has no methods, but inherits methods from: htmlelement specifications specification status comment html living standardthe definition of 'htmlmenuelement' in that specification.
HTMLMenuItemElement - Web APIs
" 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">htmlmenuitemelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} propertiesthis interface has no properties, but inherits properties from: htmlelementmethodsthis interface has no methods, but inherits methods from: htmlelement specifications specification status comment html 5.1the definition of 'htmlmenuitemelement' in that specification.
HTMLModElement - Web APIs
the htmlmodelement interface provides special properties (beyond the regular methods and properties available through the htmlelement interface they also have available to them by inheritance) for manipulating modification elements, that is <del> and <ins>.
HTMLObjectElement.checkValidity - Web APIs
the checkvalidity() method of the htmlobjectelement interface returns a boolean that always is true, because object objects are never candidates for constraint validation.
HTMLElement.blur() - Web APIs
the htmlelement.blur() method removes keyboard focus from the current element.
HTMLOrForeignElement - Web APIs
write access to all the custom data attributes (data-*) set on the element.nonce the nonce property of the htmlorforeignelement interface returns the cryptographic number used once that is used by content security policy to determine whether a given fetch will be allowed to proceed.tabindexthe tabindex property of the htmlorforeignelement interface represents the tab order of the current element.methodsblur()the htmlelement.blur() method removes keyboard focus from the current element.focus()the htmlelement.focus() method sets focus on the specified element, if it can be focused.
HTMLSelectElement.checkValidity() - Web APIs
the htmlselectelement.checkvalidity() method checks whether the element has any constraints and whether it satisfies them.
HTMLSelectElement.form - Web APIs
the htmlselectelement.form read-only property returns a htmlformelement representing the form that this element is associated with.
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.
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.
HTMLSelectElement.setCustomValidity() - Web APIs
the htmlselectelement.setcustomvalidity() method sets the custom validity message for the selection element to the specified message.
HTMLShadowElement.getDistributedNodes() - Web APIs
the htmlshadowelement.getdistributednodes() method returns a static nodelist of the distributed nodes associated with this <shadow> element.
HTMLSlotElement - Web APIs
the htmlslotelement interface of the shadow dom api enables access to the name and assigned nodes of an html <slot> element.
HTMLStyleElement.type - Web APIs
the htmlstyleelement.type read-only property returns the type of the current style.
HTMLTableElement.deleteRow() - Web APIs
the htmltableelement.deleterow() method removes a specific row (<tr>) from a given <table>.
HTMLTableElement.deleteTFoot() - Web APIs
the htmltableelement.deletetfoot() method removes the <tfoot> element from a given <table>.
HTMLTableElement.insertRow() - Web APIs
the htmltableelement.insertrow() method inserts a new row (<tr>) in a given <table>, and returns a reference to the new row.
HTMLTableElement.rows - Web APIs
of the htmltablerowelement objects representing all of the <tr> elements contained in the table.
HTMLTableRowElement.insertCell() - Web APIs
the htmltablerowelement.insertcell() method inserts a new cell (<td>) into a table row (<tr>) and returns a reference to the cell.
HTMLTrackElement: cuechange event - Web APIs
ck has changed the currently displaying cues.
HTMLVideoElement.getVideoPlaybackQuality() - Web APIs
the htmlvideoelement method getvideoplaybackquality() creates and returns a videoplaybackquality object containing metrics including how many frames have been lost.
File drag and drop - Web APIs
element uses the following styling: #drop_zone { border: 5px solid blue; width: 200px; height: 100px; } note that dragstart and dragend events are not fired when dragging a file into the browser from the os.
Headers.append() - Web APIs
Web › API › Headers › append
the append() method of the headers interface appends a new value onto an existing header inside a headers object, or adds the header if it does not already exist.
IDBCursor - Web APIs
Web › API › IDBCursor
range, this is set to undefined.
IDBCursorWithValue - Web APIs
s/web/api/idbcursorwithvalue" target="_top"><rect x="131" y="1" width="180" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="221" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">idbcursorwithvalue</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} methods inherits methods from its parent interface, idbcursor.
IDBIndex - Web APIs
Web › API › IDBIndex
is index is not auto-populated.
FileHandle.getFile() - Web APIs
non-standard this feature is non-standard and is not on a standards track.
FileHandle.onabort - Web APIs
standard and is not on a standards track.
FileHandle.open() - Web APIs
non-standard this feature is non-standard and is not on a standards track.
IDBObjectStore - Web APIs
ead only the key path of this object store.
IDBTransaction.commit() - Web APIs
the commit() method of the idbtransaction interface commits the transaction if it is called on an active transaction.
IDBTransaction.error - Web APIs
use domerror has been removed from the dom standard.
IDBTransaction.onabort - Web APIs
the onabort event handler of the idbtransaction interface handles the abort event, fired, when the current transaction is aborted via the idbtransaction.abort method.
IdleDeadline.didTimeout - Web APIs
the read-only didtimeout property on the idledeadline interface is a boolean value which indicates whether or not the idle callback is being invoked because the timeout interval specified when window.requestidlecallback() was called has expired.
ImageBitmap.close() - Web APIs
Web › API › ImageBitmap › close
the imagebitmap.close() method disposes of all graphical resources associated with an imagebitmap.
ImageBitmapRenderingContext - Web APIs
the imagebitmaprenderingcontext interface is a canvas rendering context that provides the functionality to replace the canvas's contents with the given imagebitmap.
ImageCapture.getPhotoCapabilities() - Web APIs
the getphotocapabilities() method of the imagecapture interface returns a promise that resolves with a photocapabilities object containing the ranges of available configuration options.
ImageCapture.getPhotoSettings() - Web APIs
the getphotosettings() method of the imagecapture interface returns a promise that resolves with a photosettings object containing the current photo configuration settings.
ImageCapture.grabFrame() - Web APIs
the grabframe() method of the imagecapture interface takes a snapshot of the live video in a mediastreamtrack and returns a promise that resolves with a imagebitmap containing the snapshot.
ImageCapture.takePhoto() - Web APIs
the takephoto() method of the imagecapture interface takes a single exposure using the video capture device sourcing a mediastreamtrack and returns a promise that resolves with a blob containing the data.
ImageData - Web APIs
Web › API › ImageData
the imagedata interface represents the underlying pixel data of an area of a <canvas> element.
Basic concepts - Web APIs
rsion than the current one.
IndexedDB API - Web APIs
he process by which the browser works out how much space to allocate to web data storage and what to delete when that limit is reached is not simple, and differs between browsers.
InputDeviceCapabilities - Web APIs
ical devices.
InputEvent.dataTransfer - Web APIs
out richtext or plaintext data being added to or removed from editible content.
IntersectionObserver.IntersectionObserver() - Web APIs
hat the entire target element is visible.
IntersectionObserver.disconnect() - Web APIs
the intersectionobserver method disconnect() stops watching all of its target elements for visibility changes.
IntersectionObserver.observe() - Web APIs
the intersectionobserver method observe() adds an element to the set of target elements being watched by the intersectionobserver.
IntersectionObserver - Web APIs
centage (%).
Keyboard.getLayoutMap() - Web APIs
the getlayoutmap() method of the keyboard interface returns a promise that resolves with an instance of keyboardlayoutmap which is a map-like object with functions for retrieving the strings associated with specific physical keys.
Keyboard.unlock() - Web APIs
Web › API › Keyboard › unlock
the unlock() method of the keyboard interface unlocks all keys captured by the keyboard.lock() method and returns synchronously.
KeyboardEvent.code - Web APIs
{ position.y = 0; } } the refresh() function handles applying the rotation and position by using an svg transform.
KeyboardEvent.getModifierState() - Web APIs
the keyboardevent.getmodifierstate() method returns the current state of the specified modifier key: true if the modifier is active (that is the modifier key is pressed or locked), otherwise, false.
KeyboardLayoutMap.forEach() - Web APIs
the foreach() method of the keyboardlayoutmap interface executes a provided function once for each element of the map.
KeyboardLayoutMap.get() - Web APIs
the get() method of the keyboardlayoutmap interface returns the element with the given key.
KeyboardLayoutMap.has() - Web APIs
the has() method of the keyboardlayoutmap interface returns a boolean indicating whether the object has an element with the specified key.
KeyboardLayoutMap - Web APIs
ype chain as well).
KeyframeEffect.getKeyframes() - Web APIs
the getkeyframes() method of a keyframeeffect returns an array of the computed keyframes that make up this animation along with their computed offsets.
LargestContentfulPaint - Web APIs
he timing-allow-origin header.
LayoutShift - Web APIs
viewport that was shifted) times the distance fraction (distance moved as a fraction of viewport).
Location: reload() - Web APIs
Web › API › Location › reload
the location.reload() method reloads the current url, like the refresh button.
Location: toString() - Web APIs
Web › API › Location › toString
the tostring() stringifier method of the location interface returns a usvstring containing the whole url.
LockManager.query() - Web APIs
Web › API › LockManager › query
the query() method of the lockmanager interface returns a promise which resolves with an object containing information about held and pending locks.
LockedFile.abort() - Web APIs
Web › API › LockedFile › abort
non-standard this feature is non-standard and is not on a standards track.
LockedFile.active - Web APIs
Web › API › LockedFile › active
every user.
LockedFile.append() - Web APIs
Web › API › LockedFile › append
non-standard this feature is non-standard and is not on a standards track.
LockedFile.getMetadata() - Web APIs
non-standard this feature is non-standard and is not on a standards track.
LockedFile.onabort - Web APIs
ure is non-standard and is not on a standards track.
LockedFile.write() - Web APIs
Web › API › LockedFile › write
non-standard this feature is non-standard and is not on a standards track.
MIDIAccess - Web APIs
the midiaccess interface of the web midi api provides methods for listing midi input and output devices, and obtaining access to those devices.
MSGraphicsTrust - Web APIs
this feature is non-standard and is not on a standards track.
MediaCapabilitiesInfo - Web APIs
the interface of the promise returned by the the mediacapabilities's encodinginfo() and decodinginfo() methods returning whether the media configuration tested is supported, smooth, and powerefficient.
MediaCapabilities - Web APIs
device, system and browser.
MediaCapabilitiesInfo - Web APIs
the mediacapabilitiesinfo interface of the media capabilities api is made available when the promise returned by the mediacapabilities.encodinginfo() or mediacapabilities.decodinginfo() methods of the mediacapabilities interface fulfills, providing information as to whether the media type is supported, and whether encoding or decoding such media would be smooth and power efficient.
MediaDeviceInfo - Web APIs
iadeviceinfo.labelread only returns a domstring that is a label describing this device (for example "external usb webcam").
MediaDevices: devicechange event - Web APIs
icechange event is sent to a mediadevices instance whenever a media device such as a camera, microphone, or speaker is connected to or removed from the system.
MediaDevices.enumerateDevices() - Web APIs
the mediadevices method enumeratedevices() requests a list of the available media input and output devices, such as microphones, cameras, headsets, and so forth.
MediaDevices.getSupportedConstraints() - Web APIs
the getsupportedconstraints() method of the mediadevices interface returns an object based on the mediatracksupportedconstraints dictionary, whose member fields each specify one of the constrainable properties the user agent understands.
MediaDevices.ondevicechange - Web APIs
}) .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.
MediaElementAudioSourceNode.mediaElement - Web APIs
the mediaelementaudiosourcenode interface's read-only mediaelement property indicates the htmlmediaelement that contains the audio track from which the node is receiving audio.
close() - Web APIs
the mediakeysession.close() method notifies that the current media session is no longer needed, and that the content decryption module should release any resources associated with this object and close it.
generateRequest() - Web APIs
the mediakeysession.generaterequest() method returns a promise after generating a media request based on initialization data.
load() - Web APIs
the mediakeysession.load() method returns a promise that resolves to a boolean value after loading data for a specified session object.
remove() - Web APIs
the mediakeysession.remove() method returns a promise after removing any session data associated with the current object.
update() - Web APIs
the mediakeysession.update() method loads messages and licenses to the cdm, and then returns a promise .
MediaKeySession - Web APIs
ns a unique string generated by the cdm for the current media object and its associated keys or licenses.
MediaKeyStatusMap - Web APIs
the mediakeystatusmap interface of the encryptedmediaextensions api is a read-only map of media key statuses by key ids.
createMediaKeys() - Web APIs
the mediakeysystemaccess.createmediakeys() method returns a promise that resolves to a new mediakeys object.
getConfiguration() - Web APIs
the mediakeysystemaccess.getconfiguration() method returns a mediakeysystemconfiguration object with the supported combination of configuration options.
createSession() - Web APIs
the mediakeys.createsession() method returns a new mediakeysession object, which represents a context for message exchange with a content decryption module (cdm).
setServerCertificate() - Web APIs
the mediakeys.setservercertificate() method a promise to a server certificate to be used to encrypt messages to the license server.
MediaKeys - Web APIs
Web › API › MediaKeys
the mediakeys interface of encryptedmediaextensions api represents a set of keys that an associated htmlmediaelement can use for decryption of media data during playback.
MediaPositionState.duration - Web APIs
the mediapositionstate dictionary's duration property is used when calling the mediasession method setpositionstate() to provide the user agent with the overall total duration in seconds of the media currently being performed.
MediaPositionState.playbackRate - Web APIs
the mediapositionstate dictionary's playbackrate property is used when calling the mediasession method setpositionstate() to tell the user agent the rate at which media is currently being played.
MediaPositionState.position - Web APIs
the mediapositionstate dictionary's position property is used when calling the mediasession method setpositionstate() to provide the user agent with the current playback position, in seconds, of the currently-playing media.
MediaQueryList.addListener() - Web APIs
the addlistener() method of the mediaquerylist interface adds a listener to the mediaquerylistener that will run a custom callback function in response to the media query status changing.
MediaQueryList.removeListener() - Web APIs
the removelistener() method of the mediaquerylist interface removes a listener from the mediaquerylistener.
MediaRecorder.isTypeSupported - Web APIs
the mediarecorder.istypesupported() static method returns a boolean which is true if the mime type specified is one the user agent should be able to successfully record.
MediaRecorder.onerror - Web APIs
well as other information may be invalid.
MediaRecorder.onpause - Web APIs
the mediarecorder.onpause event handler (part of the mediarecorder api) handles the pause event, allowing you to run code in response to the media recording being paused.
MediaRecorder.onresume - Web APIs
the mediarecorder.onresume event handler (part of the mediarecorder api) handles the resume event, allowing you to run code in response to the media recording being resumed after pausing.
MediaRecorder.onstart - Web APIs
the mediarecorder.onstartevent handler (part of the mediarecorder api) handles the start event, allowing you to run code in response to media recording being started by a mediarecorder.
MediaRecorder.onstop - Web APIs
the mediarecorder.onstop event handler (part of the mediarecorder api) handles the stop event, allowing you to run code in response to media recording via a mediarecorder being stopped.
MediaRecorderErrorEvent.error - Web APIs
errorevent.error; value a domexception describing the error represented by the event.
Media Session action types - Web APIs
to support an action on a media session, such as seeking, pausing, or changing tracks, you need to call the mediasession interface's setactionhandler() method to establish a handler for that action.
MediaSessionActionDetails - Web APIs
possible values.
MediaSource.addSourceBuffer() - Web APIs
the addsourcebuffer() method of the mediasource interface creates a new sourcebuffer of the given mime type and adds it to the mediasource's sourcebuffers list.
MediaSource.clearLiveSeekableRange() - Web APIs
the clearliveseekablerange() method of the mediasource interface clears a seekable range previously set with a call to setliveseekablerange().
MediaSource.endOfStream() - Web APIs
the endofstream() method of the mediasource interface signals the end of the stream.
MediaSource.isTypeSupported() - Web APIs
the mediasource.istypesupported() static method returns a boolean value which is true if the given mime type is likely to be supported by the current user agent.
MediaSource.removeSourceBuffer() - Web APIs
the removesourcebuffer() method of the mediasource interface removes the given sourcebuffer from the sourcebuffers list associated with this mediasource object.
MediaSource.setLiveSeekableRange() - Web APIs
the setliveseekablerange() method of the mediasource interface sets the range that the user can seek to in the media element.
MediaStream.clone() - Web APIs
Web › API › MediaStream › clone
the clone() method of the mediastream interface creates a duplicate of the mediastream.
MediaStream.getAudioTracks() - Web APIs
the getaudiotracks() method of the mediastream interface returns a sequence that represents all the mediastreamtrack objects in this stream's track set where mediastreamtrack.kind is audio.
MediaStream.getTracks() - Web APIs
the gettracks() method of the mediastream interface returns a sequence that represents all the mediastreamtrack objects in this stream's track set, regardless of mediastreamtrack.kind.
MediaStream.getVideoTracks() - Web APIs
the getvideotracks() method of the mediastream interface returns a sequence of mediastreamtrack objects representing the video tracks in this stream.
MediaStreamAudioSourceNode() - Web APIs
the web audio api's mediastreamaudiosourcenode() constructor creates and returns a new mediastreamaudiosourcenode object which uses the first audio track of a given mediastream as its source.
MediaStreamAudioSourceNode.mediaStream - Web APIs
the mediastreamaudiosourcenode interface's read-only mediastream property indicates the mediastream that contains the audio track from which the node is receiving audio.
MediaStreamAudioSourceOptions - Web APIs
the mediastreamaudiosourceoptions dictionary provides configuration options used when creating a mediastreamaudiosourcenode using its constructor.
MediaStreamTrack.applyConstraints() - Web APIs
the applyconstraints() method of the mediastreamtrack interface applies a set of constraints to the track; these constraints let the web site or app establish ideal values and acceptable ranges of values for the constrainable properties of the track, such as frame rate, dimensions, echo cancelation, and so forth.
MediaStreamTrack.clone() - Web APIs
the clone() method of the mediastreamtrack interface creates a duplicate of the mediastreamtrack.
MediaStreamTrack.getCapabilities() - Web APIs
the getcapabilities() method of the mediastreamtrack interface returns a mediatrackcapabilities object which specifies the values or range of values which each constrainable property, based upon the platform and user agent.
MediaStreamTrack.getConstraints() - Web APIs
the getconstraints() method of the mediastreamtrack interface returns a mediatrackconstraints object containing the set of constraints most recently established for the track using a prior call to applyconstraints().
MediaStreamTrack.getSettings() - Web APIs
the getsettings() method of the mediastreamtrack interface returns a mediatracksettings object containing the current values of each of the constrainable properties for the current mediastreamtrack.
MediaStreamTrack - Web APIs
nected and does its best-effort in providing real-time data.
MediaStreamTrackAudioSourceNode() - Web APIs
the web audio api's mediastreamtrackaudiosourcenode() constructor creates and returns a new mediastreamtrackaudiosourcenode object whose audio is taken from the mediastreamtrack specified in the given options object.
MediaStreamTrackAudioSourceOptions - Web APIs
the mediastreamtrackaudiosourceoptions dictionary is used when specifying options to the mediastreamtrackaudiosourcenode() constructor.
Recording a media element - Web APIs
which causes the video being captured by the user's camera to be displayed in the preview box.
MediaStream Recording API - Web APIs
"; a.href = url; a.download = "test.webm"; a.click(); window.url.revokeobjecturl(url); } // demo: to download after 9sec settimeout(event => { console.log("stopping"); mediarecorder.stop(); }, 9000); examining and controlling the recorder status you can also use the properties of the mediarecorder object to determine the state of the recording process, and its pause() and resume() methods to pause and resume recording of the source media.
MediaTrackSupportedConstraints.cursor - Web APIs
her or not the cursor constraint is supported by the user agent and the device on which the content is being used.
MediaTrackSupportedConstraints.displaySurface - Web APIs
nstraint is supported by the user agent and the device on which the content is being used.
MediaTrackSupportedConstraints.frameRate - Web APIs
result.innerhtml = "supported!"; } else { result.innerhtml = "not supported!"; } html <div id="result"> </div> css #result { font: 14px "arial", sans-serif; } result the output, showing if your browser supports the framerate constraint, is: while this example is trivial, you can replace the simple output of "supported" vs.
MediaTrackSupportedConstraints.logicalSurface - Web APIs
nstraint is supported by the user agent and the device on which the content is being used.
Media Session API - Web APIs
s, for standard media playback interactions.
Transcoding assets for Media Source Extensions - Web APIs
d line.
Media Source API - Web APIs
t.
Media Capture and Streams API (Media Stream) - Web APIs
the media capture and streams api, often called the media streams api or simply mediastream api, is an api related to webrtc which provides support for streaming audio and video data.
MerchantValidationEvent.complete() - Web APIs
the merchantvalidationevent method complete() takes merchant-specific information previously received from the validationurl and uses it to validate the merchant.
MerchantValidationEvent.validationURL - Web APIs
the merchantvalidationevent property validationurl is a read-only string value providing the url from which to fetch the payment handler-specific data needed to validate the merchant.
MessageChannel.port1 - Web APIs
n the following code block, you can see a new channel being created using the messagechannel() constructor.
MessageChannel - Web APIs
nstructor messagechannel() returns a new messagechannel object with two new messageport objects.
MessagePort.close() - Web APIs
Web › API › MessagePort › close
the close() method of the messageport interface disconnects the port, so it is no longer active.
MessagePort: message event - Web APIs
n it using code like this: window.addeventlistener('message', (event) => { const myport = event.ports[0]; myport.addeventlistener('message', (event) => { received.textcontent = event.data; }); myport.start(); }); note that the listener must call messageport.start() before any messages will be delivered to this port.
MessagePort: messageerror event - Web APIs
ports[0]; myport.addeventlistener('message', (event) => { received.textcontent = event.data; }); myport.addeventlistener('messageerror', (event) => { console.error(event.data); }); myport.start(); }); note that the listener must call messageport.start() before any messages will be delivered to this port.
MessagePort.postMessage() - Web APIs
the postmessage() method of the messageport interface sends a message from the port, and optionally, transfers ownership of objects to other browsing contexts.
Metadata - Web APIs
Web › API › Metadata
the metadata interface is used by the file and directory entries api to contain information about a file system entry.
MimeTypeArray - Web APIs
the mimetypearray interface returns an array of mimetype instances, each of which contains information about a supported browser plugins.
MouseEvent.getModifierState() - Web APIs
the mouseevent.getmodifierstate() method returns the current state of the specified modifier key: true if the modifier is active (i.e., the modifier key is pressed or locked), otherwise, false.
MouseEvent.region - Web APIs
Web › API › MouseEvent › region
the mouseevent.region read-only property returns the id of the canvas hit region affected by the event.
MutationObserver.MutationObserver() - Web APIs
the dom mutationobserver() constructor — part of the mutationobserver interface — creates and returns a new observer which invokes a specified callback when dom events occur.
MutationObserver.takeRecords() - Web APIs
the mutationobserver method takerecords() returns a list of all matching dom changes that have been detected but not yet processed by the observer's callback function, leaving the mutation queue empty.
MutationObserver - Web APIs
the mutationobserver interface provides the ability to watch for changes being made to the dom tree.
MutationObserverInit.attributeFilter - Web APIs
n.oldvalue, mutation.target.username); break; } break; } }); } var userlistelement = document.queryselector("#userlist"); var observer = new mutationobserver(callback); observer.observe(userlistelement, { attributefilter: [ "status", "username" ], attributeoldvalue: true, subtree: true }); the callback() function—which will be passed into the observe() method when starting the observer, looks at each item in the list of mutationrecord objects.
MutationObserverInit.attributeOldValue - Web APIs
+ " changed to " + mutation.target[mutation.attributename] + " (was " + mutation.oldvalue + ")"); break; } }); } var targetnode = document.queryselector("#target"); var observer = new mutationobserver(callback); observer.observe(targetnode, { attributes: true, attributeoldvalue: true }); the callback() function—which will be passed into the observe() method when starting the observer, looks at each item in the list of mutationrecord objects.
MutationObserverInit.attributes - Web APIs
+ " changed to " + mutation.target[mutation.attributename] + " (was " + mutation.oldvalue + ")"); break; } }); } var targetnode = document.queryselector("#target"); var observer = new mutationobserver(callback); observer.observe(targetnode, { attributes: true, attributeoldvalue: true }); the callback() function—which will be passed into the observe() method when starting the observer, looks at each item in the list of mutationrecord objects.
MutationObserverInit.characterData - Web APIs
ode or nodes being observed for changes to their textual contents.
MutationObserverInit - Web APIs
the mutationobserverinit dictionary describes the configuration of a mutation observer.
MutationRecord - Web APIs
ecord.type.
NDEFRecord - Web APIs
icator of the record.
NDEFWriter - Web APIs
the ndefwriter interface of the web nfc api is an abstract interface used to write data to compatible nfc devices, e.g.
NameList - Web APIs
Web › API › NameList
e was previously implemented in gecko, there was no way to actually create one.
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.
Navigation Timing API - Web APIs
revious page, how long domain lookups take, the total time spent executing the window's load handler, and so forth.
Navigator.battery - Web APIs
Web › API › Navigator › battery
rymanager which provides information about the system's battery charge level and whether the device is charging and exposes events that fire when these parameters change.
Navigator.canShare() - Web APIs
the navigator.canshare() method of the web share api returns true if a call to navigator.share() would succeed.
Navigator.clipboard - Web APIs
the clipboard api adds to the navigator interface the read-only clipboard property, which returns the clipboard object used to read and write the clipboard's contents.
Navigator.credentials - Web APIs
the credentials property of the navigator interface returns the credentialscontainer interface, which exposes methods to request credentials.
Navigator.geolocation - Web APIs
or.geolocation read-only property returns a geolocation object that gives web content access to the location of the device.
Navigator.getGamepads() - Web APIs
the navigator.getgamepads() method returns an array of gamepad objects, one for each gamepad connected to the device.
Navigator.locks - Web APIs
Web › API › Navigator › locks
the locks read-only property of the navigator interface returns a lockmanager object which provides methods for requesting a new lock object and querying for an existing lock object.
Navigator.mediaSession - Web APIs
used to share with the browser metadata and other information about the current playback state of media being handled by a document.
Navigator.mozIsLocallyAvailable() - Web APIs
the navigator.mozislocallyavailable() method allows add-ons to determine whether or not a given resource is available.
Navigator.registerProtocolHandler() - Web APIs
the navigator method registerprotocolhandler() lets web sites register their ability to open or handle particular url schemes (aka protocols).
Navigator.share() - Web APIs
Web › API › Navigator › share
the navigator.share() method of the web share api invokes the native sharing mechanism of the device.
NavigatorID.userAgent - Web APIs
tion string via a menu.
NavigatorPlugins.mimeTypes - Web APIs
returns a mimetypearray object, which contains a list of mimetype objects representing the mime types recognized by the browser.
NavigatorPlugins.plugins - Web APIs
gins; it just hides some plugin names from enumeration.
Network Information API - Web APIs
take large amounts of bandwidth or memory.
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.contains() - Web APIs
Web › API › Node › contains
the node.contains() method returns a boolean value indicating whether a node is a descendant of a given node, i.e.
Node.getRootNode() - Web APIs
Web › API › Node › getRootNode
the getrootnode() method of the node interface returns the context object's root, which optionally includes the shadow root if it is available.
Node.hasChildNodes() - Web APIs
the node.haschildnodes() method returns a boolean value indicating whether the given node has child nodes or not.
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.
Node.isEqualNode() - Web APIs
Web › API › Node › isEqualNode
the node.isequalnode() method tests whether two nodes are equal.
Node.isSameNode() - Web APIs
Web › API › Node › isSameNode
the issamenode() method for node objects tests whether two nodes are the same (that is, whether they reference the same object).
Node.normalize() - Web APIs
Web › API › Node › normalize
the node.normalize() method puts the specified node and all of its sub-tree into a "normalized" form.
Node.replaceChild() - Web APIs
Web › API › Node › replaceChild
the node.replacechild() method replaces a child node within the given (parent) node.
Node.rootNode - Web APIs
Web › API › Node › rootNode
important: for compatibility reasons, this property has been replaced by the node.getrootnode() method.
NodeIterator.expandEntityReferences - Web APIs
the nodeiterator.expandentityreferences read-only property returns a boolean flag indicating whether or not the children of entity reference nodes are visible to the nodeiterator.
NodeList.entries() - Web APIs
Web › API › NodeList › entries
the nodelist.entries() method returns an iterator allowing to go through all key/value pairs contained in this object.
NodeList.prototype.forEach() - Web APIs
Web › API › NodeList › forEach
the foreach() method of the nodelist interface calls the callback given in parameter once for each value pair in the list, in insertion order.
NodeList.keys() - Web APIs
Web › API › NodeList › keys
the nodelist.keys() method returns an iterator allowing to go through all keys contained in this object.
NodeList.values() - Web APIs
Web › API › NodeList › values
the nodelist.values() method returns an iterator allowing to go through all values contained in this object.
NonDocumentTypeChildNode.nextElementSibling - Web APIs
} } return null; }, set: undefined }); }); })([element.prototype, characterdata.prototype]); specifications specification status comment domthe definition of 'childnodenextelementsibling' in that specification.
NonDocumentTypeChildNode.previousElementSibling - Web APIs
return null; }, set: undefined }); }); })([element.prototype, characterdata.prototype]); specifications specification status comment domthe definition of 'nondocumenttypechildnode.previouselementsibling' in that specification.
Notation - Web APIs
Web › API › Notation
represents a dtd notation (read-only).
OES_fbo_render_mipmap - Web APIs
the oes_fbo_render_mipmap extension is part of the webgl api and makes it possible to attach any level of a texture to a framebuffer object.
OES_vertex_array_object.bindVertexArrayOES() - Web APIs
the oes_vertex_array_object.bindvertexarrayoes() method of the webgl api binds a passed webglvertexarrayobject object to the buffer.
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.
OES_vertex_array_object.deleteVertexArrayOES() - Web APIs
the oes_vertex_array_object.deletevertexarrayoes() method of the webgl api deletes a given webglvertexarrayobject object.
OES_vertex_array_object.isVertexArrayOES() - Web APIs
the oes_vertex_array_object.isvertexarrayoes() method of the webgl api returns true if the passed object is a webglvertexarrayobject object.
OVR_multiview2.framebufferTextureMultiviewOVR() - Web APIs
the ovr_multiview2.framebuffertexturemultiviewovr() method of the webgl api attaches a multiview texture to a webglframebuffer.
OfflineAudioContext.resume() - Web APIs
the resume() method of the offlineaudiocontext interface resumes the progression of time in an audio context that has been suspended.
OfflineAudioContext.suspend() - Web APIs
the suspend() method of the offlineaudiocontext interface schedules a suspension of the time progression in the audio context at the specified time and returns a promise.
OffscreenCanvas.convertToBlob() - Web APIs
the offscreencanvas.converttoblob() method creates a blob object representing the image contained in the canvas.
OffscreenCanvas() - Web APIs
the offscreencanvas() constructor returns a newly instantiated offscreencanvas object.
OffscreenCanvas.convertToBlob() - Web APIs
the offscreencanvas.converttoblob()method creates a blob object representing the image contained in the canvas.
OffscreenCanvas.getContext() - Web APIs
the offscreencanvas.getcontext() method returns a drawing context for an offscreen canvas, or null if the context identifier is not supported.
OffscreenCanvas.convertToBlob() - Web APIs
the offscreencanvas.converttoblob() method creates a blob object representing the image contained in the canvas.
OffscreenCanvas.transferToImageBitmap() - Web APIs
the offscreencanvas.transfertoimagebitmap() method creates an imagebitmap object from the most recently rendered image of the offscreencanvas.
OrientationSensor.populateMatrix() - Web APIs
the populatematrix method of the orientationsensor interface populates the given target matrix with the rotation matrix based on the latest sensor reading.
OscillatorNode.OscillatorNode() - Web APIs
the oscillatornode() constructor of the web audio api creates a new oscillatornode object which is an audionode that represents a periodic waveform, like a sine wave, optionally setting the node's properties' values to match values in a specified object.
OscillatorNode.setPeriodicWave() - Web APIs
the setperiodicwave() method of the oscillatornode interface is used to point to a periodicwave defining a periodic waveform that can be used to shape the oscillator's output, when type is custom.
OscillatorNode.start() - Web APIs
the start method of the oscillatornode interface specifies the exact time to start playing the tone.
OscillatorNode.stop() - Web APIs
the stop method of the oscillatornode interface specifies the time to stop playing the tone.
OscillatorNode.type - Web APIs
a domstring specifying the shape of oscillator wave.
OverconstrainedError - Web APIs
onstrainederror() creates a new overconstrainederror object.
ParentNode.childElementCount - Web APIs
while (node = nodes[i++]) { if (node.nodetype === 1) count++; } return count; } }); } })(window.node || window.element); specification specification status comment domthe definition of 'parentnode.childelementcount' in that specification.
ParentNode.children - Web APIs
entnode property children is a read-only property that returns a live htmlcollection which contains all of the child elements of the node upon which it was called.
ParentNode.firstElementChild - Web APIs
return node; } } return null; } }); } })(window.node || window.element); specification specification status comment domthe definition of 'parentnode.firstelementchild' in that specification.
ParentNode.lastElementChild - Web APIs
if(node.nodetype === 1) { return node; } } return null; } }); } })(window.node || window.element); specification specification status comment domthe definition of 'parentnode.lastelementchild' in that specification.
ParentNode.replaceChildren() - Web APIs
the parentnode.replacechildren() method replaces the existing children of a node with a specified new set of children.
PasswordCredential - Web APIs
rd of the user signing in.
PasswordCredential.additionalData - Web APIs
e sending it to server in a call to fetch.
PasswordCredential - Web APIs
only secure context a usvstring containing the password of the credential.
PaymentRequest.abort() - Web APIs
the paymentrequest.abort() method of the paymentrequest interface causes the user agent to end the payment request and to remove any user interface that might be shown.
PaymentRequest.shippingOption - Web APIs
shippingoption = request.shippingoption; example in the example below, the paymentrequest.onshippingoptionchange and the paymentrequest.onshippingaoptionchange events are dispatched.
PaymentRequest: shippingaddresschange event - Web APIs
s content altered, obscured, or left out entirely in order to prevent identifying the user without their consent (since if they choose to have you ship products to them, you'll need their address).
PaymentRequest: shippingoptionchange event - Web APIs
st.shippingoption); const total = { currency: "eur", label: "total due", value, }; event.updatewith({ total }); }, false); after caling a custom function, calculatenewtotal(), to compute the updated total based on the newly-selected shipping option as specified by the shippingoption.
PaymentRequestUpdateEvent.PaymentRequestUpdateEvent() - Web APIs
the paymentrequestupdateevent constructor creates a new paymentrequestupdateevent object which enables a web page to update the details of a paymentrequest in response to a user action.
PaymentResponse.shippingOption - Web APIs
tribute of the shipping option selected by the user.
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.
performance.now() - Web APIs
Web › API › Performance › now
the performance.now() method returns a domhighrestimestamp, measured in milliseconds.
performance.toJSON() - Web APIs
the tojson() method of the performance interface is a standard serializer: it returns a json representation of the performance object's properties.
PerformanceEntry.entryType - Web APIs
ancelongtasktiming domstring reports instances of long tasks example the following example shows the use of the entrytype property.
PerformanceNavigation.type - Web APIs
ing a constant describing how the navigation to this page was done.
PerformanceNavigationTiming.toJSON() - Web APIs
the tojson() method is a serializer - it returns a json representation of the performancenavigationtiming object.
PerformanceObserver() - Web APIs
the performanceobserver() constructor creates a new performanceobserver object with the given observer callback.
PerformanceObserver - Web APIs
the performanceobserver interface is used to observe performance measurement events and be notified of new performance entries as they are recorded in the browser's performance timeline.
PerformanceResourceTiming.toJSON() - Web APIs
the tojson() method is a serializer that returns a json representation of the performanceresourcetiming object.
PerformanceResourceTiming - Web APIs
che), of the payload body, before removing any applied content-codings.
PerformanceServerTiming.toJSON - Web APIs
the tojson() method of the performanceservertiming interface returns a domstring that is the json representation of the performanceservertiming object.
PerformanceServerTiming - Web APIs
re contexts (https) in some browsers.
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.
Permissions - Web APIs
the permissions interface of the permissions api provides the core permission api functionality, such as methods for querying and revoking permissions methods permissions.query() returns the user permission status for a given api.
Plugin - Web APIs
Web › API › Plugin
formation about a browser plugin.
PointerEvent.getCoalescedEvents() - Web APIs
the getcoalescedevents() method of the pointerevent interface returns a sequence of all pointerevent instances that were coalesced into the dispatched pointermove event.
ProcessingInstruction - Web APIs
any other applications which don't recognize the instruction.
Proximity Events - Web APIs
r fire them.
PublicKeyCredentialCreationOptions.extensions - Web APIs
ntains a value uniquely identifying a user verification data record.
PublicKeyCredentialCreationOptions - Web APIs
ions.attestation optional a string which indicates how the attestation (for the authenticator's origin) should be transported.
PublicKeyCredentialRequestOptions.extensions - Web APIs
ntains a value uniquely identifying a user verification data record.
PublicKeyCredentialRequestOptions - Web APIs
stoptions.userverification optional a string qualifying how the user verification should be part of the authentication process.
PushManager.getSubscription() - Web APIs
the pushmanager.getsubscription() method of the pushmanager interface retrieves an existing push subscription.
PushManager.hasPermission() - Web APIs
the pushmanager.haspermission() method of the pushmanager interface returns a promise that resolves to the pushpermissionstatus of the requesting webapp, which will be one of granted, denied, or default.
PushManager.permissionState() - Web APIs
the permissionstate() method of the pushmanager interface returns a promise that resolves to a domstring indicating the permission state of the push manager.
PushManager.subscribe() - Web APIs
the subscribe() method of the pushmanager interface subscribes to a push service.
PushMessageData.arrayBuffer() - Web APIs
the arraybuffer()method of the pushmessagedata interface extracts push message data as an arraybuffer object.
PushMessageData.blob() - Web APIs
the blob()method of the pushmessagedata interface extracts push message data as a blob object.
PushMessageData.json() - Web APIs
the json()method of the pushmessagedata interface extracts push message data by parsing it as a json string and returning the result.
PushMessageData.text() - Web APIs
the text()method of the pushmessagedata interface extracts push message data as a plain text string.
PushRegistrationManager - Web APIs
returns an interface to register or unregister a push registration, get an active registration, or check the permission status of the registration.
PushSubscription.toJSON() - Web APIs
the tojson() method of the pushsubscription interface is a standard serializer: it returns a json representation of the subscription properties, providing a useful shortcut.
PushSubscription.unsubscribe() - Web APIs
the unsubscribe() method of the pushsubscription interface returns a promise that resolves to a boolean when the current subscription is successfully unsubscribed.
PushSubscription - Web APIs
.expirationtime read only a domhighrestimestamp of the subscription expiration time associated with the push subscription, if there is one, or null otherwise.
Push API - Web APIs
Web › API › Push API
a serviceworker.
RTCAnswerOptions - Web APIs
the rtcansweroptions dictionary is used to provide optional settings when creating an sdp answer using rtcpeerconnection.createoffer() after receiving an offer from a remote peer.
RTCConfiguration.certificates - Web APIs
perty isn't included in the configuration, a set of certificates is automatically generated for each instance of rtcpeerconnection.
RTCConfiguration.iceServers - Web APIs
while it can be useful to provide a second server as a fallback in case the first is offline, listing too many servers can delay the user's connection being established, depending on the network's performance and how many servers get used for negotiation before a connection is established.
RTCConfiguration - Web APIs
the rtcconfiguration dictionary is used to provide configuration options for an rtcpeerconnection.
RTCDTMFSender.insertDTMF() - Web APIs
the insertdtmf() method on the rtcdtmfsender interface starts sending dtmf tones to the remote peer over the rtcpeerconnection.
RTCDTMFSender - Web APIs
baseline="middle">rtcdtmfsender</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties rtcdtmfsender.tonebuffer read only a domstring which contains the list of dtmf tones currently in the queue to be transmitted (tones which have already been played are no longer included in the string).
RTCDataChannel.bufferedAmount - Web APIs
the read-only rtcdatachannel property bufferedamount returns the number of bytes of data currently queued to be sent over the data channel.
RTCDataChannel: message event - Web APIs
e has been received from the remote peer.
RTCDataChannel.send() - Web APIs
the send() method of the rtcdatachannel interface sends data across the data channel to the remote peer.
RTCDtlsTransport - Web APIs
xt></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} propertiesicetransport read only the read-only rtcdtlstransport property icetransport contains a reference to the underlying rtcicetransport.state read only the state read-only property of the rtcdtlstransport interface provides information which describes a datagram transport layer security (dtls) transport state.methodsthis interface has no methods.
RTCIceCandidate. toJSON() - Web APIs
the rtcicecandidate method tojson() converts the rtcicecandidate on which it's called into json in the form of an rtcicecandidateinit object.
RTCIceCandidate - Web APIs
icecandidatetype enumerated type.
RTCIceCandidateInit - Web APIs
the webrtc api's rtcicecandidateinit dictionary, which contains the information needed to fundamentally describe an rtcicecandidate.
RTCIceCandidatePair.local - Web APIs
the local property of the rtcicecandidatepair dictionary specifies the rtcicecandidate which describes the configuration of the local end of a viable webrtc connection.
RTCIceCandidatePair.remote - Web APIs
the remote property of the rtcicecandidatepair dictionary specifies the rtcicecandidate describing the configuration of the remote end of a viable webrtc connection.
RTCIceCandidatePairStats.availableIncomingBitrate - Web APIs
epair.
RTCIceCandidatePairStats.availableOutgoingBitrate - Web APIs
this object has never been used.
RTCIceCandidatePairStats - Web APIs
urrently in use.
RTCIceCredentialType - Web APIs
the webrtc api's rtcicecredentialtype enumerated string type defines the authentication method used to gain access to an ice server identified by an rtciceserver object.
RTCIceParameters - Web APIs
the rtciceparameters dictionary specifies the username fragment and password assigned to an ice session.
RTCIceTransport: gatheringstatechange event - Web APIs
e connection including every rtcicetransport used by every rtcrtpsender and every rtcrtpreceiver on the entire connection.
RTCIceTransport.getLocalCandidates() - Web APIs
the rtcicetransport method getlocalcandidates() returns an array of rtcicecandidate objects, one for each of the candidates that have been gathered by the local device during the current ice agent session.
RTCIceTransport.getLocalParameters() - Web APIs
the rtcicetransport method getlocalparameters() returns an rtciceparameters object which provides information uniquely identifying the local peer for the duration of the ice session.
RTCIceTransport.getRemoteCandidates() - Web APIs
the rtcicetransport method getremotecandidates() returns an array which contains one rtcicecandidate for each of the candidates that have been received from the remote peer so far during the current ice gathering session.
RTCIceTransport.getRemoteParameters() - Web APIs
the rtcicetransport method getremoteparameters() returns an rtciceparameters object which provides information uniquely identifying the remote peer for the duration of the ice session.
RTCIceTransport.getSelectedCandidatePair() - Web APIs
the rtcicetransport method getselectedcandidatepair() returns an rtcicecandidatepair object containing the current best-choice pair of ice candidates describing the configuration of the endpoints of the transport.
RTCIceTransport.onselectedcandidatepairchange - Web APIs
ndidate pair that the rtcicetransport will be using for communication with the remote peer.
RTCInboundRtpStreamStats.fecPacketsReceived - Web APIs
des parity information which can be used to attempt to reconstruct rtp data packets which have been corrupted in transit.
RTCInboundRtpStreamStats.pliCount - Web APIs
es, has been lost.
RTCOfferOptions - Web APIs
the rtcofferoptions dictionary is used to provide optional settings when creating an rtcpeerconnection offer with the createoffer() method.
RTCOutboundRtpStreamStats.pliCount - Web APIs
eams.
RTCPeerConnection.addTransceiver() - Web APIs
the rtcpeerconnection method addtransceiver() creates a new rtcrtptransceiver and adds it to the set of transceivers associated with the rtcpeerconnection.
RTCPeerConnection: addstream event - Web APIs
peerconnection.
RTCPeerConnection.createAnswer() - Web APIs
the createanswer() method on the rtcpeerconnection interface creates an sdp answer to an offer received from a remote peer during the offer/answer negotiation of a webrtc connection.
RTCPeerConnection.createDataChannel() - Web APIs
the createdatachannel() method on the rtcpeerconnection interface creates a new channel linked with the remote peer, over which any kind of data may be transmitted.
RTCPeerConnection.getDefaultIceServers() - Web APIs
the getdefaulticeservers() method of the rtcpeerconnection interface returns an array of objects based on the rtciceserver dictionary, which indicates what, if any, ice servers the browser will use by default if none are provided to the rtcpeerconnection in its rtcconfiguration.
RTCPeerConnection.getReceivers() - Web APIs
the rtcpeerconnection.getreceivers() method returns an array of rtcrtpreceiver objects, each of which represents one rtp receiver.
RTCPeerConnection.getStreamById() - Web APIs
the rtcpeerconnection.getstreambyid() method returns the mediastream with the given id that is associated with local or remote end of the connection.
RTCPeerConnection.getTransceivers() - Web APIs
the rtcpeerconnection interface's gettransceivers() method returns a list of the rtcrtptransceiver objects being used to send and receive data on the connection.
RTCPeerConnection.onicecandidate - Web APIs
function to be called when the icecandidate event occurs on an rtcpeerconnection instance.
RTCRtpParameters - Web APIs
the rtcrtpparameters dictionary is the basic object describing the parameters of an rtp transport.
RTCRtpReceiveParameters - Web APIs
the rtcrtpreceiveparameters dictionary, based upon the rtcrtpparameters dictionary, is returned by the the rtcrtpreceiver method getparameters().
RTCRtpReceiver.getCapabilities() static function - Web APIs
ser in any way to handle media.
RTCRtpReceiver.getContributingSources() - Web APIs
the getcontributingsources() method of the rtcrtpreceiver interface returns an array of rtcrtpcontributingsource instances, each corresponding to one csrc (contributing source) identifier received by the current rtcrtpreceiver in the last ten seconds.
RTCRtpReceiver.getParameters() - Web APIs
the getparameters() method of the rtcrtpreceiver interface returns an rtcrtpreceiveparameters object describing the current configuration for the encoding and transmission of media on the receiver's track.
RTCRtpReceiver.getStats() - Web APIs
the rtcrtpreceiver method getstats() asynchronously requests an rtcstatsreport object which provides statistics about incoming traffic on the owning rtcpeerconnection, returning a promise whose fulfillment handler will be called once the results are available.
RTCRtpReceiver.getSynchronizationSources() - Web APIs
the getsynchronizationsources() method of the rtcrtpreceiver interface returns an array of rtcrtpcontributingsource instances, each corresponding to one ssrc (synchronization source) identifier received by the current rtcrtpreceiver in the last ten seconds.
RTCRtpSendParameters - Web APIs
the webrtc api's rtcrtpsendparameters dictionary is used to specify the parameters for an rtcrtpsender when calling its setparameters() method.
RTCRtpSender.getCapabilities() static function - Web APIs
ser in any way to handle media.
RTCRtpSender.getParameters() - Web APIs
the getparameters() method of the rtcrtpsender interface returns an rtcrtpsendparameters object describing the current configuration for the encoding and transmission of media on the sender's track.
RTCRtpSender.getStats() - Web APIs
the rtcrtpsender method getstats() asynchronously requests an rtcstatsreport object which provides statistics about outgoing traffic on the rtcpeerconnection which owns the sender, returning a promise which is fulfilled when the results are available.
RTCRtpSender.setParameters() - Web APIs
the setparameters() method of the rtcrtpsender interface applies changes the configuration of sender's track, which is the mediastreamtrack for which the rtcrtpsender is responsible.
RTCRtpStreamStats.pliCount - Web APIs
unt of coded video data, which may span frame boundaries, has been lost.
RTCRtpStreamStats.ssrc - Web APIs
ke any assumptions based on the value of ssrc other than that any two objects with the same ssrc value refer to the same source.
RTCRtpTransceiver.direction - Web APIs
the receiver is stopped.
RTCRtpTransceiver.stopped - Web APIs
the read-only stopped property on the rtcrtptransceiver interface indicates whether or not the transceiver's associated sender and receiver have both been stopped.
RTCRtpTransceiver - Web APIs
iver read only the rtcrtpreceiver object that handles receiving and decoding incoming media.
RTCStatsReport - Web APIs
the rtcstatsreport interface provides a statistics report obtained by calling one of the rtcpeerconnection.getstats(), rtcrtpreceiver.getstats(), and rtcrtpsender.getstats() methods.
Range() - Web APIs
Web › API › Range › Range
the range() constructor returns a newly created range object whose start and end is the global document object.
Range.cloneContents() - Web APIs
the range.clonecontents() returns a documentfragment copying the objects of type node included in the range.
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
the range.collapse() method collapses the range to one of its boundary points.
Range.collapsed - Web APIs
Web › API › Range › collapsed
the range.collapsed read-only property returns a boolean flag indicating whether the start and end points of the range are at the same position.
Range.commonAncestorContainer - Web APIs
ry points of the range.
Range.comparePoint() - Web APIs
the range.comparepoint() method returns -1, 0, or 1 depending on whether the referencenode is before, the same as, or after the range.
Range.createContextualFragment() - Web APIs
the range.createcontextualfragment() method returns a documentfragment by invoking the html fragment parsing algorithm or the xml fragment parsing algorithm with the start of the range (the parent of the selected node) as the context node.
Range.endContainer - Web APIs
the range.endcontainer read-only property returns the node within which the range ends.
Range.endOffset - Web APIs
Web › API › Range › endOffset
er is a node of type text, comment, or cdatasection, then the offset is the number of characters from the start of the endcontainer to the boundary point of the range.
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 range.insertnode() method inserts a node at the start of the range.
Range.intersectsNode() - Web APIs
the range.intersectsnode() method returns a boolean indicating whether the given node intersects the range.
Range.isPointInRange() - Web APIs
the range.ispointinrange() method returns a boolean indicating whether the given point is in the range.
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
the range.selectnodecontents() method sets the range to contain the contents of a node.
Range.setEnd() - Web APIs
Web › API › Range › setEnd
the range.setend() method sets the end position of a range to be located at the given offset into the specified node x.setting the end point above (higher in the document) than the start point will result in a collapsed range with the start and end points both set to the specified end position.
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.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.
Range.startContainer - Web APIs
the range.startcontainer read-only property returns the node within which the range starts.
Range.startOffset - Web APIs
Web › API › Range › startOffset
ts.
Range.toString() - Web APIs
Web › API › Range › toString
the range.tostring() method is a stringifier returning the text of the range.
ReadableByteStreamController.close() - Web APIs
the close() method of the readablebytestreamcontroller interface closes the associated stream.
ReadableByteStreamController.enqueue() - Web APIs
the enqueue() method of the readablebytestreamcontroller interface enqueues a given chunk in the associated stream.
ReadableByteStreamController.error() - Web APIs
the error() method of the readablebytestreamcontroller interface causes any future interactions with the associated stream to error.
ReadableByteStreamController - Web APIs
stream controllers are for byte streams.
ReadableStream.cancel() - Web APIs
the cancel() method of the readablestream interface cancels the associated stream.
ReadableStream.getReader() - Web APIs
the getreader() method of the readablestream interface creates a reader and locks the stream to it.
ReadableStream.tee() - Web APIs
the tee() method of the readablestream interface tees the current readable stream, returning a two-element array containing the two resulting branches as new readablestream instances.
ReadableStreamBYOBReader.ReadableStreamBYOBReader() - Web APIs
the readablestreambyobreader() constructor creates and returns a readablestreambyobreader object instance.
ReadableStreamBYOBReader.read() - Web APIs
the read() method of the readablestreambyobreader interface returns a promise providing access to the next chunk in the byte stream's internal queue.
ReadableStreamBYOBReader - Web APIs
ablestream() constructor).
ReadableStreamBYOBRequest.respond() - Web APIs
the error() method of the readablestreambyobrequest interface xxx syntax readablestreambyobrequestinstance.respond(byteswritten); parameters byteswritten xxx return value void.
ReadableStreamBYOBRequest.respondWithNewView() - Web APIs
the respondwithnewview() method of the readablestreambyobrequest interface xxx syntax readablestreambyobrequestinstance.respondwithnewview(view); parameters view xxx return value void.
ReadableStreamBYOBRequest - Web APIs
er view.
ReadableStreamDefaultController.close() - Web APIs
the close() method of the readablestreamdefaultcontroller interface closes the associated stream.
ReadableStreamDefaultController.enqueue() - Web APIs
the enqueue() method of the readablestreamdefaultcontroller interface enqueues a given chunk in the associated stream.
ReadableStreamDefaultController - Web APIs
allowing control of a readablestream's state and internal queue.
ReadableStreamDefaultReader.ReadableStreamDefaultReader() - Web APIs
the readablestreamdefaultreader() constructor creates and returns a readablestreamdefaultreader object instance.
ReadableStreamDefaultReader.read() - Web APIs
the read() method of the readablestreamdefaultreader interface returns a promise providing access to the next chunk in the stream's internal queue.
ReadableStreamDefaultReader - Web APIs
fetch request).
ReportingObserver.disconnect() - Web APIs
the disconnect() method of the reportingobserver interface stops a reporting observer that had previously started observing from collecting reports.
ReportingObserver.observe() - Web APIs
the observe() method of the reportingobserver interface instructs a reporting observer to start collecting reports in its report queue.
ReportingObserver.takeRecords() - Web APIs
the takerecords() method of the reportingobserver interface returns the current list of reports contained in the observer's report queue, and empties the queue.
Request.clone() - Web APIs
Web › API › Request › clone
the clone() method of the request interface creates a copy of the current request object.
Request.headers - Web APIs
Web › API › Request › headers
then save the request headers in a variable: var myrequest = new request('flowers.jpg'); var myheaders = myrequest.headers; // headers {} to add a header to the headers object we use headers.append; we then create a new request along with a 2nd init parameter, passing headers in as an init option: var myheaders = new headers(); myheaders.append('content-type', 'image/jpeg'); var myinit = { method: 'get', headers: myheaders, mode: 'cors', cache: 'default' }; var myrequest = new request('flowers.jpg', myinit); mycontenttype = myrequest.headers.get('content-type'); // returns 'image/jpeg' specifications specification status comment fetchthe definition of 'headers' in that specification.
Request.mode - Web APIs
Web › API › Request › mode
es, and which properties of the response are readable.
ResizeObserver.disconnect() - Web APIs
the disconnect() method of the resizeobserver interface unobserves all observed element or svgelement targets.
ResizeObserver.observe() - Web APIs
the observe() method of the resizeobserver interface starts observing the specified element or svgelement.
ResizeObserver.unobserve() - Web APIs
the unobserve() method of the resizeobserver interface ends the observing of a specified element or svgelement.
ResizeObserver - Web APIs
ite callback loops and cyclic dependencies that are often created when resizing via a callback function.
ResizeObserverEntry - Web APIs
pec for web compat reasons, and may be deprecated in future versions.
Resize Observer API - Web APIs
changes to a suitable event that hints at the element you are interested in changing size (e.g.
Response.clone() - Web APIs
Web › API › Response › clone
the clone() method of the response interface creates a clone of a response object, identical in every way, but stored in a different variable.
Response.redirect() - Web APIs
Web › API › Response › redirect
the redirect() method of the response interface returns a response resulting in a redirect to the specified url.
SVGAnimationElement: beginEvent event - Web APIs
the beginevent event of the svganimationelement interface is fired when the element local timeline begins to play.
SVGAnimationElement: endEvent event - Web APIs
the endevent event of the svganimationelement interface is fired when at the active end of the animation is reached.
SVGGeometryElement.isPointInFill() - Web APIs
the svggeometryelement.ispointinfill() method determines whether a given point is within the fill shape of an element.
SVGGeometryElement.isPointInStroke() - Web APIs
the svggeometryelement.ispointinstroke() method determines whether a given point is within the stroke shape of an element.
getBBox() - Web APIs
the svggraphicselement.getbbox() allows us to determine the coordinates of the smallest rectangle in which the object fits.
SVGImageElement.decode - Web APIs
the decode() method of the svgimageelement interface initiates asynchronous decoding of an image, returning a promise that resolves once the image data is ready for use.
SVGMatrix - Web APIs
Web › API › SVGMatrix
svgmatrix.a a float representing the a component of the matrix.
SVGPathElement.getPointAtLength() - Web APIs
the svgpathelement.getpointatlength() method returns the point at a given distance along the path.
SVGRect - Web APIs
Web › API › SVGRect
t.if the attribute is not specified, the effect is as if a value of 0 were specified.
ScreenOrientation - Web APIs
ent.
ScrollToOptions.behavior - Web APIs
e a form that allows the user to enter three values — two numbers representing the left and top properties (i.e.
ScrollToOptions.left - Web APIs
e a form that allows the user to enter three values — two numbers representing the left and top properties (i.e.
ScrollToOptions.top - Web APIs
e a form that allows the user to enter three values — two numbers representing the left and top properties (i.e.
Selection.addRange() - Web APIs
the selection.addrange() method adds a range to a selection.
Selection.collapseToEnd() - Web APIs
the selection.collapsetoend() method collapses the selection to the end of the last range in the selection.
Selection.collapseToStart() - Web APIs
the selection.collapsetostart() method collapses the selection to the start of the first range in the selection.
Selection.containsNode() - Web APIs
the selection.containsnode() method indicates whether a specfied node is part of the selection.
Selection.extend() - Web APIs
Web › API › Selection › extend
the selection.extend() method moves the focus of the selection to a specified point.
Selection.getRangeAt() - Web APIs
the selection.getrangeat() method returns a range object representing one of the ranges currently selected.
Selection.isCollapsed - Web APIs
d read-only property returns a boolean which indicates whether or not there is currently any text selected.
Selection.removeAllRanges() - Web APIs
the selection.removeallranges() method removes all ranges from the selection, leaving the anchornode and focusnode properties equal to null and leaving nothing selected.
Selection.removeRange() - Web APIs
the selection.removerange() method removes a range from a selection.
Selection.selectAllChildren() - Web APIs
the selection.selectallchildren() method adds all the children of the specified node to the selection.
Sensor.start() - Web APIs
Web › API › Sensor › start
the start method activates one of the sensors based on sensor.
Sensor.stop() - Web APIs
Web › API › Sensor › stop
the stop method of the sensor interface deactivates the current sensor.
Using server-sent events - Web APIs
ntrol), an error event is generated.
ServiceWorkerContainer.ready - Web APIs
tor.serviceworker.ready.then(function(serviceworkerregistration) { ...
ServiceWorkerContainer.startMessages() - Web APIs
the startmessages() method of the serviceworkercontainer interface explicitly starts the flow of messages being dispatched from a service worker to pages under its control (e.g.
ServiceWorkerGlobalScope: message event - Web APIs
the message event of the serviceworkerglobalscope interface occurs when incoming messages are received.
ServiceWorkerGlobalScope: notificationclick event - Web APIs
the notificationclick event is fired to indicate that a system notification spawned by serviceworkerregistration.shownotification() has been clicked.
ServiceWorkerGlobalScope.onfetch - Web APIs
the onfetch property of the serviceworkerglobalscope interface is an event handler fired whenever a fetch event occurs (usually when the windoworworkerglobalscope.fetch() method is called.) syntax serviceworkerglobalscope.onfetch = function(fetchevent) { ...
ServiceWorkerRegistration.getNotifications() - Web APIs
the getnotifications() method of the serviceworkerregistration interface returns a list of the notifications in the order that they were created from the current origin via the current service worker registration.
ServiceWorkerRegistration.showNotification() - Web APIs
the shownotification() method of the serviceworkerregistration interface creates a notification on an active service worker.
ServiceWorkerRegistration.unregister() - Web APIs
the unregister() method of the serviceworkerregistration interface unregisters the service worker registration and returns a promise.
ServiceWorkerRegistration.update() - Web APIs
the update() method of the serviceworkerregistration interface attempts to update the service worker.
SharedWorker.port - Web APIs
Web › API › SharedWorker › port
messageport object used to communicate and control the shared worker.
SharedWorkerGlobalScope.onconnect - Web APIs
example shows a shared worker file — when a connection to the worker occurs from a main thread via a messageport, the onconnect event handler fires.
Slottable - Web APIs
Web › API › Slottable
the slottable mixin defines features that allow nodes to become the contents of a <slot> element — the following features are included in both element and text.
SourceBuffer.abort() - Web APIs
the abort() method of the sourcebuffer interface aborts the current segment and resets the segment parser.
SourceBuffer.appendBuffer() - Web APIs
the appendbuffer() method of the sourcebuffer interface appends media segment data from an arraybuffer or arraybufferview object to the sourcebuffer.
SourceBuffer.appendStream() - Web APIs
the appendstream() method of the sourcebuffer interface appends media segment data from a readablestream object to the sourcebuffer.
SourceBuffer.changeType() - Web APIs
the changetype() method of the sourcebuffer interface sets the mime type that future calls to appendbuffer() should expect the new media data to conform to.
SpeechGrammarList.SpeechGrammarList() - Web APIs
hgrammarlist() constructor creates a new speechgrammarlist object instance.
SpeechGrammarList.addFromString() - Web APIs
the addfromstring() method of the speechgrammarlist interface takes a grammar present in a specific domstring within the code base (e.g.
SpeechGrammarList.addFromURI() - Web APIs
the addfromuri() method of the speechgrammarlist interface takes a grammar present at a specific uri and adds it to the speechgrammarlist as a new speechgrammar object.
SpeechRecognition.abort() - Web APIs
the abort() method of the web speech api stops the speech recognition service from listening to incoming audio, and doesn't attempt to return a speechrecognitionresult.
SpeechRecognition: audioend event - Web APIs
the audioend event of the web speech api is fired when the user agent has finished capturing audio for speech recognition.
SpeechRecognition: audiostart event - Web APIs
the audiostart event of the web speech api is fired when the user agent has started to capture audio for speech recognition.
SpeechRecognition: end event - Web APIs
the end event of the web speech api speechrecognition object is fired when the speech recognition service has disconnected.
SpeechRecognition: error event - Web APIs
the error event of the web speech api speechrecognition object is fired when a speech recognition error occurs.
SpeechRecognition: nomatch event - Web APIs
n the speech recognition service returns a final result with no significant recognition.
SpeechRecognition: result event - Web APIs
tion service returns a result — a word or phrase has been positively recognized and this has been communicated back to the app bubbles no cancelable no interface speechrecognitionevent event handler property onresult examples this code is excerpted from our speech color changer example.
SpeechRecognition: soundend event - Web APIs
the soundend event of the web speech api is fired when any sound — recognisable speech or not — has stopped being detected.
SpeechRecognition: soundstart event - Web APIs
the soundstart event of the web speech api is fired when any sound — recognisable speech or not — has been detected.
SpeechRecognition: speechend event - Web APIs
the speechend event of the web speech api is fired when speech recognized by the speech recognition service has stopped being detected.
SpeechRecognition: speechstart event - Web APIs
the speechstart event of the web speech api is fired when sound recognized by the speech recognition service as speech has been detected.
SpeechRecognition.start() - Web APIs
the start() method of the web speech api starts the speech recognition service listening to incoming audio with intent to recognize grammars associated with the current speechrecognition.
SpeechRecognition: start event - Web APIs
of the web speech api speechrecognition object is fired when the speech recognition service has begun listening to incoming audio with intent to recognize grammars associated with the current speechrecognition.
SpeechRecognition.stop() - Web APIs
the stop() method of the web speech api stops the speech recognition service from listening to incoming audio, and attempts to return a speechrecognitionresult using the audio captured so far.
SpeechRecognitionResult - Web APIs
whether this result is final (true) or not (false) — if so, then this is the final time this result will be returned; if not, then this result is an interim result, and may be updated later on.
SpeechRecognitionResultList - Web APIs
the speechrecognitionresultlist interface of the web speech api represents a list of speechrecognitionresult objects, or a single one if results are being captured in continuous mode.
SpeechSynthesis.cancel() - Web APIs
the cancel() method of the speechsynthesis interface removes all utterances from the utterance queue.
SpeechSynthesis.onvoiceschanged - Web APIs
the onvoiceschanged property of the speechsynthesis interface represents an event handler that will run when the list of speechsynthesisvoice objects that would be returned by the speechsynthesis.getvoices() method has changed (when the voiceschanged event fires.) this may occur when speech synthesis is being done on the server-side and the voices list is being determined asynchronously, or when client-side voices are installed/uninstalled while a speech synthesis application is running.
SpeechSynthesis.pause() - Web APIs
the pause() method of the speechsynthesis interface puts the speechsynthesis object into a paused state.
SpeechSynthesis.resume() - Web APIs
the resume() method of the speechsynthesis interface puts the speechsynthesis object into a non-paused state: resumes it if it was already paused.
SpeechSynthesis.speak() - Web APIs
the speak() method of the speechsynthesis interface adds an utterance to the utterance queue; it will be spoken when any other utterances queued before it have been spoken.
SpeechSynthesisUtterance: boundary event - Web APIs
the boundary event of the web speech api is fired when the spoken utterance reaches a word or sentence boundary.
SpeechSynthesisUtterance: end event - Web APIs
the end event of the web speech api speechsynthesisutterance object is fired when the utterance has finished being spoken.
SpeechSynthesisUtterance: error event - Web APIs
the error event of the web speech api speechsynthesisutterance object is fired when an error occurs that prevents the utterance from being succesfully spoken.
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.
SpeechSynthesisUtterance.onpause - Web APIs
the onpause property of the speechsynthesisutterance interface represents an event handler that will run when the utterance is paused part way through (when the pause event fires.) this occurs when the speechsynthesis.pause() method is invoked.
SpeechSynthesisUtterance.onresume - Web APIs
the onresume property of the speechsynthesisutterance interface represents an event handler that will run when a paused utterance is resumed (when the resume event fires.) this occurs when the speechsynthesis.resume() method is invoked on a paused speech synthesis instance.
SpeechSynthesisUtterance.onstart - Web APIs
the onstart property of the speechsynthesisutterance interface represents an event handler that will run when the utterance has begun to be spoken (when the start event fires.) this occurs when the speechsynthesis.speak() method is invoked.
SpeechSynthesisUtterance: pause event - Web APIs
the pause event of the web speech api speechsynthesisutterance object is fired when the utterance is paused part way through.
SpeechSynthesisUtterance: resume event - Web APIs
the resume event of the web speech api speechsynthesisutterance object is fired when a paused utterance is resumed.
SpeechSynthesisUtterance: start event - Web APIs
the start event of the web speech api speechsynthesisutterance object is fired when the utterance has begun to be spoken.
SpeechSynthesisUtterance - Web APIs
ate a select menu with them so the user can choose what voice they want.
StereoPannerNode.pan - Web APIs
he panning to apply.
Storage.clear() - Web APIs
Web › API › Storage › clear
the clear() method of the storage interface clears all keys stored in a given storage object.
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.
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.
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.
StorageEstimate.usage - Web APIs
the storageestimate dictionary's usage property is a conservative approximation of how much storage is allotted to the origin or web app that called storagemanager.estimate(); there may be more space available, but there will not be less.
StorageEstimate - Web APIs
the storageestimate dictionary is used by the storagemanager to provide estimates of the size of a site's or application's data store and how much of it is in use.
StorageManager.persist() - Web APIs
the persist() method of the storagemanager interface requests permission to use persistent storage, and returns a promise that resolves to true if permission is granted and box mode is persistent, and false otherwise.
StorageManager.persisted() - Web APIs
the persisted() method of the storagemanager interface returns a promise that resolves to true if box mode is persistent for your site's storage.
StorageManager - Web APIs
the storagemanager interface of the the storage api provides an interface for managing persistance permissions and estimating available storage.
StorageQuota - Web APIs
the storagequota property of the navigator interface of the quota management api provides means to query and request storage usage and quota information.
StylePropertyMap.append() - Web APIs
the append() method of the stylepropertymap interface adds a new css declaration to the stylepropertymap with the given property and value.
StylePropertyMap.clear() - Web APIs
the clear() method of the stylepropertymap interface removes all declarations in the stylepropertymap.
StylePropertyMap.delete() - Web APIs
the delete() method of the stylepropertymap interface removes the css declaration with the given property.
StylePropertyMap.set() - Web APIs
the set() method of the stylepropertymap interface changes the css declaration with the given property.
StylePropertyMapReadOnly.entries() - Web APIs
the stylepropertymapreadonly.entries() method returns an array of a given object's own enumerable property [key, value] pairs, in the same order as that provided by a for...in loop (the difference being that a for-in loop enumerates properties in the prototype chain as well).
StylePropertyMapReadOnly.forEach() - Web APIs
the stylepropertymapreadonly.foreach() method executes a provided function once for each element of stylepropertymapreadonly.
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.
StylePropertyMapReadOnly.keys() - Web APIs
the stylepropertymapreadonly.keys() method returns a new array iterator containing the keys for each item in stylepropertymapreadonly syntax stylepropertymapreadonly.keys() parameters none.
StylePropertyMapReadOnly.values() - Web APIs
the stylepropertymapreadonly.values() method returns a new array iterator containing the values for each index in the stylepropertymapreadonly object.
StylePropertyMapReadOnly - Web APIs
he stylepropertymapreadonly interface of the the css typed object model api provides a read-only representation of a css declaration block that is an alternative to cssstyledeclaration.
SubtleCrypto.digest() - Web APIs
the digest() method of the subtlecrypto interface generates a digest of the given data.
SubtleCrypto.encrypt() - Web APIs
c the encrypt() method of the subtlecrypto interface encrypts data.
SubtleCrypto.exportKey() - Web APIs
the exportkey() method of the subtlecrypto interface exports a key: that is, it takes as input a cryptokey object and gives you the key in an external, portable format.
SubtleCrypto.generateKey() - Web APIs
use the generatekey() method of the subtlecrypto interface to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
SyncManager.getTags() - Web APIs
the syncmanager.gettags method of the syncmanager interface returns a list of developer-defined identifiers for syncmanager registrations.
SyncManager.register() - Web APIs
the syncmanager.register method of the syncmanager interface returns a promise that resolves to a syncregistration instance.
SyncManager - Web APIs
the syncmanager interface of the the serviceworker api provides an interface for registering and listing sync registrations.
TextDecoder() - Web APIs
"csiso2022kr", "iso-2022-kr" 'iso-2022-kr' "utf-16be" 'utf-16be' "utf-16", "utf-16le" 'utf-16le' "x-user-defined" 'x-user-defined' "iso-2022-cn", "iso-2022-cn-ext" 'replacement' optionsoptional is a textdecoderoptions dictionary with the property: fatal a boolean flag indicating if the textdecoder.decode() method must throw a domexception with the "encodingerror" value when an coding error is found.
TextDecoder.prototype.decode() - Web APIs
the textdecoder.prototype.decode() method returns a domstring containing the text, given in parameters, decoded with the specific method for that textdecoder object.
TextEncoder.prototype.encode() - Web APIs
the textencoder.prototype.encode() method takes a usvstring as input, and returns a uint8array containing the text given in parameters encoded with the specific method for that textencoder object.
TextMetrics - Web APIs
the textmetrics interface represents the dimensions of a piece of text in the canvas; a textmetrics() instance can be retrieved using the canvasrenderingcontext2d.measuretext() method.
TextTrack: cuechange event - Web APIs
displaying cues.
TouchList.identifiedTouch() - Web APIs
the identifiedtouch() method returns the first touch item in the touchlist that matches the specified identifier.
TouchList.length - Web APIs
Web › API › TouchList › length
the length read-only property indicates the number of items (touch points) in a given touchlist.
TouchList - Web APIs
Web › API › TouchList
the touchlist interface represents a list of contact points on a touch surface.
Using Touch Events - Web APIs
ch points had moved and then implement the semantics of that gesture in an application-specific manner.
TrackDefaultList.TrackDefault() - Web APIs
the trackdefault() getter method of the trackdefaultlist interface allows the trackdefault objects in the list to be accessed with an array operator (i.e.
TrackDefaultList - Web APIs
cts.
TransformStream - Web APIs
the transformstream interface of the streams api represents a set of transformable data.
TreeWalker.expandEntityReferences - Web APIs
the treewalker.expandentityreferences read-only property returns a boolean flag indicating whether or not the children of entity reference nodes are visible to the treewalker.
TreeWalker.filter - Web APIs
Web › API › TreeWalker › filter
the treewalker.filter read-only property returns a nodefilter that is the filtering object associated with the treewalker.
TreeWalker.firstChild() - Web APIs
the treewalker.firstchild() method moves the current node to the first visible child of the current node, and returns the found child.
TreeWalker.lastChild() - Web APIs
the treewalker.lastchild() method moves the current node to the last visible child of the current node, and returns the found child.
TreeWalker.nextNode() - Web APIs
the treewalker.nextnode() method moves the current node to the next visible node in the document order, and returns the found node.
TreeWalker.nextSibling() - Web APIs
the treewalker.nextsibling() method moves the current node to its next sibling, if any, and returns the found sibling.
TreeWalker.parentNode() - Web APIs
the treewalker.parentnode() method moves the current node to the first visible ancestor node in the document order, and returns the found node.
TreeWalker.previousNode() - Web APIs
the treewalker.previousnode() method moves the current node to the previous visible node in the document order, and returns the found node.
TreeWalker.previousSibling() - Web APIs
the treewalker.previoussibling() method moves the current node to its previous sibling, if any, and returns the found sibling.
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.
UIEvent.cancelBubble - Web APIs
the uievent.cancelbubble property indicates if event bubbling for this event has been canceled or not.
URL.createObjectURL() - Web APIs
the url.createobjecturl() static method creates a domstring containing a url representing the object given in the parameter.
URL.toJSON() - Web APIs
Web › API › URL › toJSON
the tojson() method of the url interface returns a usvstring containing a serialized version of the url, although in practice it seems to have the same effect as url.tostring().
URL.toString() - Web APIs
Web › API › URL › toString
the url.tostring() stringifier method returns a usvstring containing the whole url.
URLSearchParams.append() - Web APIs
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.
URLSearchParams.entries() - Web APIs
the entries() method of the urlsearchparams interface returns an iterator allowing iteration through all key/value pairs contained in this object.
URLSearchParams.forEach() - Web APIs
the foreach() method of the urlsearchparams interface allows iteration through all values contained in this object via a callback function.
URLSearchParams.get() - Web APIs
the get() method of the urlsearchparams interface returns the first value associated to the given search parameter.
URLSearchParams.getAll() - Web APIs
the getall() method of the urlsearchparams interface returns all the values associated with a given search parameter as an array.
URLSearchParams.has() - Web APIs
the has() method of the urlsearchparams interface returns a boolean that indicates whether a parameter with the specified name exists.
URLSearchParams.values() - Web APIs
the values() method of the urlsearchparams interface returns an iterator allowing iteration through all values contained in this object.
URLUtilsReadOnly.toString() - Web APIs
the urlutilsreadonly.tostring() stringifier method returns a domstring containing the whole url.
URL API - Web APIs
Web › API › URL API
/someguy@mysite.com/login.
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.
USB.requestDevice() - Web APIs
Web › API › USB › requestDevice
the requestdevice() method of the usb interface returns a promise that resolves with an instance of usbdevice if the specified device is found.
USBDevice.claimInterface() - Web APIs
the claiminterface() method of the usbdevice interface returns a promise that resolves when the requested interface is claimed for exclusive access.
USBDevice.clearHalt() - Web APIs
the clearhalt() method of the usbdevice interface returns a promise that resolves when a halt condition is cleared.
USBDevice.close() - Web APIs
Web › API › USBDevice › close
the close() method of the usbdevice interface returns a promise that resolves when all open interfaces are released and the device session has ended.
USBDevice.controlTransferIn() - Web APIs
the controltransferin() method of the usbdevice interface returns a promise that resolves with a usbintransferresult when the result of a command or status request has been received from the usb device.
USBDevice.controlTransferOut() - Web APIs
the controltransferout() method of the usbdevice interface returns a promise that resolves with a usbouttransferresult when a command or status operation has been transmitted to the usb device.
USBDevice.isochronousTransferIn() - Web APIs
the isochronoustransferin() method of the usbdevice interface returns a promise that resolves with a usbisochronousintransferresult when time sensitive information has been transmitted received from the usb device.
USBDevice.isochronousTransferOut() - Web APIs
the isochronoustransferout() method of the usbdevice interface returns a promise that resolves with a usbisochronousouttransferresult when time sensitive information has been transmitted to the usb device.
USBDevice.open() - Web APIs
Web › API › USBDevice › open
the open() method of the usbdevice interface returns a promise that resolves when a device session has started.
USBDevice.releaseInterface() - Web APIs
the releaseinterface() method of the usbdevice interface returns a promise that resolves when a cliamed interface is released from exclusive access.
USBDevice.reset() - Web APIs
Web › API › USBDevice › reset
the reset() method of the usbdevice interface returns a promise that resolves when the device is reset and all app operations canceled and their promises rejected.
USBDevice.selectAlternateInterface() - Web APIs
the selectalternateinterface() method of the usbdevice interface returns a promise that resolves when the specified alternative endpoint is selected.
USBDevice.selectConfiguration() - Web APIs
the selectconfiguration() method of the usbdevice interface returns a promise that resolves when the specified configuration is selected.
USBDevice.transferIn() - Web APIs
the transferin() method of the usbdevice interface returns a promise that resolves with a usbtransferinresult when bulk or interrupt data is received from the usb device.
USBDevice.transferOut() - Web APIs
the transferout() method of the usbdevice interface returns a promise that resolves with a usbtransferoutresult when bulk or interrupt data is sent to the usb device.
USBEndpoint - Web APIs
lated with information about the endpoint on the provided usbaltenateinterface with the given endpoint number and transfer direction.
USBInTransferResult - Web APIs
the usbintransferresult interface of the webusb api provides the result from a call to the transferin() and controltransferin() methods of the usbdevice interface.
USBIsochronousInTransferPacket - Web APIs
the usbisochronousintransferpacket interface of the webusb api is part of the response from a call to the isochronoustransferin() method of the usbdevice interface.
USBIsochronousInTransferResult - Web APIs
the usbisochronousintransferresult interface of the webusb api provides the result from a call to the isochronoustransferin() method of the usbdevice interface.
USBIsochronousOutTransferPacket - Web APIs
the usbisochronousouttransferpacket interface of the webusb api is part of the response from a call to the isochronoustransferout() method of the usbdevice interface.
USBIsochronousOutTransferResult - Web APIs
the usbisochronousouttransferresult interface of the webusb api provides the result from a call to the isochronoustransferout() method of the usbdevice interface.
USBOutTransferResult - Web APIs
the usbouttransferresult interface of the webusb api provides the result from a call to the transferout() and controltransferout() methods of the usbdevice interface.
VTTCue - Web APIs
Web › API › VTTCue
representing the alignment of the cue.
ValidityState - Web APIs
is true, with the exception of the valid property, which is true if the element's value obeys all constraints.
VideoConfiguration - Web APIs
the videoconfiguration dictionary of the media capabilities api is used to define the video file being tested when calling the mediacapabilities methods encodinginfo() and decodinginfo() to determine whether or not the described video configuration is supported, and how smoothly and how smoooth and power-efficient it can be handled.
VideoTrack.id - Web APIs
Web › API › VideoTrack › id
the id property contains a string which uniquely identifies the track represented by the videotrack.
VisualViewport: resize event - Web APIs
the resize event of the visualviewport interface is fired when the visual viewport is resized.
VisualViewport: scroll event - Web APIs
the scroll event of the visualviewport interface is fired when the visual viewport is scrolled.
Visual Viewport API - Web APIs
receives the resize and event:visualviewport:scroll events you can onitor to know when chances occur to the window's viewport.
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_atc - Web APIs
of the webgl api and exposes 3 atc compressed texture formats.
WEBGL_compressed_texture_etc - Web APIs
the webgl_compressed_texture_etc extension is part of the webgl api and exposes 10 etc/eac compressed texture formats.
WEBGL_compressed_texture_pvrtc - Web APIs
the webgl_compressed_texture_pvrtc extension is part of the webgl api and exposes four pvrtc compressed texture formats.
WEBGL_compressed_texture_s3tc - Web APIs
the webgl_compressed_texture_s3tc extension is part of the webgl api and exposes four s3tc compressed texture formats.
WEBGL_compressed_texture_s3tc_srgb - Web APIs
the webgl_compressed_texture_s3tc_srgb extension is part of the webgl api and exposes four s3tc compressed texture formats for the srgb colorspace.
WEBGL_debug_shaders.getTranslatedShaderSource() - Web APIs
the webgl_debug_shaders.gettranslatedshadersource() method is part of the webgl api and allows you to debug a translated shader.
WakeLockSentinel.release() - Web APIs
the release() method of the wakelocksentinel interface releases the wakelocksentinel, returning a promise that is resolved once the sentinel has been successfully released.
WebGL2RenderingContext.beginQuery() - Web APIs
the webgl2renderingcontext.beginquery() method of the webgl 2 api starts an asynchronous query.
WebGL2RenderingContext.beginTransformFeedback() - Web APIs
the webgl2renderingcontext.begintransformfeedback() method of the webgl 2 api starts a transform feedback operation.
WebGL2RenderingContext.bindBufferBase() - Web APIs
the webgl2renderingcontext.bindbufferbase() method of the webgl 2 api binds a given webglbuffer to a given binding point (target) at a given index.
WebGL2RenderingContext.bindBufferRange() - Web APIs
the webgl2renderingcontext.bindbufferrange() method of the webgl 2 api binds a range of a given webglbuffer to a given binding point (target) at a given index.
WebGL2RenderingContext.bindSampler() - Web APIs
the webgl2renderingcontext.bindsampler() method of the webgl 2 api binds a passed webglsampler object to the texture unit at the passed index.
WebGL2RenderingContext.bindTransformFeedback() - Web APIs
the webgl2renderingcontext.bindtransformfeedback() method of the webgl 2 api binds a passed webgltransformfeedback object to the current gl state.
WebGL2RenderingContext.bindVertexArray() - Web APIs
the webgl2renderingcontext.bindvertexarray() method of the webgl 2 api binds a passed webglvertexarrayobject object to the buffer.
WebGL2RenderingContext.blitFramebuffer() - Web APIs
the webgl2renderingcontext.blitframebuffer() method of the webgl 2 api transfers a block of pixels from the read framebuffer to the draw framebuffer.
WebGL2RenderingContext.clearBuffer[fiuv]() - Web APIs
the webgl2renderingcontext.clearbuffer[fiuv]() methods of the webgl 2 api clear buffers from the currently bound framebuffer.
WebGL2RenderingContext.compressedTexSubImage3D() - Web APIs
the webgl2renderingcontext.compressedtexsubimage3d() method of the webgl api specifies a three-dimensional sub-rectangle for a texture image in a compressed format.
WebGL2RenderingContext.copyBufferSubData() - Web APIs
the webgl2renderingcontext.copybuffersubdata() method of the webgl 2 api copies part of the data of a buffer to another buffer.
WebGL2RenderingContext.copyTexSubImage3D() - Web APIs
the webgl2renderingcontext.copytexsubimage3d() method of the webgl api copies pixels from the current webglframebuffer into an existing 3d texture sub-image.
WebGL2RenderingContext.createQuery() - Web APIs
the webgl2renderingcontext.createquery() method of the webgl 2 api creates and initializes webglquery objects, which provide ways to asynchronously query for information.
WebGL2RenderingContext.createSampler() - Web APIs
the webgl2renderingcontext.createsampler() method of the webgl 2 api creates and initializes webglsampler objects.
WebGL2RenderingContext.createTransformFeedback() - Web APIs
the webgl2renderingcontext.createtransformfeedback() method of the webgl 2 api creates and initializes webgltransformfeedback objects.
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.deleteQuery() - Web APIs
the webgl2renderingcontext.deletequery() method of the webgl 2 api deletes a given webglquery object.
WebGL2RenderingContext.deleteSampler() - Web APIs
the webgl2renderingcontext.deletesampler() method of the webgl 2 api deletes a given webglsampler object.
WebGL2RenderingContext.deleteSync() - Web APIs
the webgl2renderingcontext.deletesync() method of the webgl 2 api deletes a given webglsync object.
WebGL2RenderingContext.deleteTransformFeedback() - Web APIs
the webgl2renderingcontext.deletetransformfeedback() method of the webgl 2 api deletes a given webgltransformfeedback object.
WebGL2RenderingContext.deleteVertexArray() - Web APIs
the webgl2renderingcontext.deletevertexarray() method of the webgl 2 api deletes a given webglvertexarrayobject object.
WebGL2RenderingContext.drawBuffers() - Web APIs
the webgl2renderingcontext.drawbuffers() method of the webgl 2 api defines draw buffers to which fragment colors are written into.
WebGL2RenderingContext.drawRangeElements() - Web APIs
the webgl2renderingcontext.drawrangeelements() method of the webgl api renders primitives from array data in a given range.
WebGL2RenderingContext.endQuery() - Web APIs
the webgl2renderingcontext.endquery() method of the webgl 2 api marks the end of a given query target.
WebGL2RenderingContext.endTransformFeedback() - Web APIs
the webgl2renderingcontext.endtransformfeedback() method of the webgl 2 api ends a transform feedback operation.
WebGL2RenderingContext.fenceSync() - Web APIs
the webgl2renderingcontext.fencesync() method of the webgl 2 api creates a new webglsync object and inserts it into the gl command stream.
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.
WebGL2RenderingContext.getActiveUniformBlockParameter() - Web APIs
the webgl2renderingcontext.getactiveuniformblockparameter() method of the webgl 2 api retrieves information about an active uniform block within a webglprogram.
WebGL2RenderingContext.getActiveUniforms() - Web APIs
the webgl2renderingcontext.getactiveuniforms() method of the webgl 2 api retrieves information about active uniforms within a webglprogram.
WebGL2RenderingContext.getBufferSubData() - Web APIs
the webgl2renderingcontext.getbuffersubdata() method of the webgl 2 api reads data from a buffer binding point and writes them to an arraybuffer or sharedarraybuffer.
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.
WebGL2RenderingContext.getIndexedParameter() - Web APIs
the webgl2renderingcontext.getindexedparameter() method of the webgl 2 api returns indexed information about a given target.
WebGL2RenderingContext.getInternalformatParameter() - Web APIs
the webgl2renderingcontext.getinternalformatparameter() method of the webgl 2 api returns information about implementation-dependent support for internal formats.
WebGL2RenderingContext.getQuery() - Web APIs
the webgl2renderingcontext.getquery() method of the webgl 2 api returns the currently active webglquery for the target, or null.
WebGL2RenderingContext.getQueryParameter() - Web APIs
the webgl2renderingcontext.getqueryparameter() method of the webgl 2 api returns parameter information of a webglquery object.
WebGL2RenderingContext.getSamplerParameter() - Web APIs
the webgl2renderingcontext.getsamplerparameter() method of the webgl 2 api returns parameter information of a webglsampler object.
WebGL2RenderingContext.getSyncParameter() - Web APIs
the webgl2renderingcontext.getsyncparameter() method of the webgl 2 api returns parameter information of a webglsync object.
WebGL2RenderingContext.getTransformFeedbackVarying() - Web APIs
the webgl2renderingcontext.gettransformfeedbackvarying() method of the webgl 2 api returns information about varying variables from webgltransformfeedback buffers.
WebGL2RenderingContext.getUniformBlockIndex() - Web APIs
the webgl2renderingcontext.getuniformblockindex() method of the webgl 2 api retrieves the index of a uniform block within a webglprogram.
WebGL2RenderingContext.getUniformIndices() - Web APIs
the webgl2renderingcontext.getuniformindices() method of the webgl 2 api retrieves the indices of a number of uniforms within a webglprogram.
WebGL2RenderingContext.invalidateFramebuffer() - Web APIs
the webgl2renderingcontext.invalidateframebuffer() method of the webgl 2 api invalidates the contents of attachments in a framebuffer.
WebGL2RenderingContext.invalidateSubFramebuffer() - Web APIs
the webgl2renderingcontext.invalidatesubframebuffer() method of the webgl 2 api invalidates portions of the contents of attachments in a framebuffer.
WebGL2RenderingContext.isQuery() - Web APIs
the webgl2renderingcontext.isquery() method of the webgl 2 api returns true if the passed object is a valid webglquery object.
WebGL2RenderingContext.isSampler() - Web APIs
the webgl2renderingcontext.issampler() method of the webgl 2 api returns true if the passed object is a valid webglsampler object.
WebGL2RenderingContext.isSync() - Web APIs
the webgl2renderingcontext.issync() method of the webgl 2 api returns true if the passed object is a valid webglsync object.
WebGL2RenderingContext.isTransformFeedback() - Web APIs
the webgl2renderingcontext.istransformfeedback() method of the webgl 2 api returns true if the passed object is a valid webgltransformfeedback object.
WebGL2RenderingContext.isVertexArray() - Web APIs
the webgl2renderingcontext.isvertexarray() method of the webgl api returns true if the passed object is a valid webglvertexarrayobject object.
WebGL2RenderingContext.pauseTransformFeedback() - Web APIs
the webgl2renderingcontext.pausetransformfeedback() method of the webgl 2 api pauses a transform feedback operation.
WebGL2RenderingContext.readBuffer() - Web APIs
the webgl2renderingcontext.readbuffer() method of the webgl 2 api selects a color buffer as the source for pixels for subsequent calls to copyteximage2d, copytexsubimage2d, copytexsubimage3d or readpixels.
WebGL2RenderingContext.renderbufferStorageMultisample() - Web APIs
the webgl2renderingcontext.renderbufferstoragemultisample() method of the webgl 2 api returns creates and initializes a renderbuffer object's data store and allows specifying a number of samples to be used.
WebGL2RenderingContext.resumeTransformFeedback() - Web APIs
the webgl2renderingcontext.resumetransformfeedback() method of the webgl 2 api resumes a transform feedback operation.
WebGL2RenderingContext.samplerParameter[if]() - Web APIs
the webgl2renderingcontext.samplerparameter[if]() methods of the webgl 2 api set webglsampler parameters.
WebGL2RenderingContext.texImage3D() - Web APIs
the webglrenderingcontext.teximage3d() method of the webgl api specifies a three-dimensional texture image.
WebGL2RenderingContext.texStorage2D() - Web APIs
the webgl2renderingcontext.texstorage2d() method of the webgl api specifies all levels of two-dimensional texture storage.
WebGL2RenderingContext.texStorage3D() - Web APIs
the webgl2renderingcontext.texstorage3d() method of the webgl api specifies all levels of a three-dimensional texture or two-dimensional array texture.
WebGL2RenderingContext.texSubImage3D() - Web APIs
the webgl2renderingcontext.texsubimage3d() method of the webgl api specifies a sub-rectangle of the current texture.
WebGL2RenderingContext.transformFeedbackVaryings() - Web APIs
the webgl2renderingcontext.transformfeedbackvaryings() method of the webgl 2 api specifies values to record in webgltransformfeedback buffers.
WebGL2RenderingContext.uniformBlockBinding() - Web APIs
the webgl2renderingcontext.uniformblockbinding() method of the webgl 2 api assigns binding points for active uniform blocks.
WebGL2RenderingContext.vertexAttribI4[u]i[v]() - Web APIs
the webgl2renderingcontext.vertexattribi4[u]i[v]() methods of the webgl 2 api specify integer values for generic vertex attributes.
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.
WebGLActiveInfo.size - Web APIs
the read-only webglactiveinfo.size property is a number representing the size of the requested data returned by calling the getactiveattrib() or getactiveuniform() methods.
WebGLActiveInfo.type - Web APIs
the read-only webglactiveinfo.type property represents the type of the requested data returned by calling the getactiveattrib() or getactiveuniform() methods.
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.
WebGLQuery - Web APIs
he webgl 2 api and provides ways to asynchronously query for information.
WebGLRenderingContext.activeTexture() - Web APIs
the webglrenderingcontext.activetexture() method of the webgl api specifies which texture unit to make active.
WebGLRenderingContext.attachShader() - Web APIs
the webglrenderingcontext.attachshader() method of the webgl api attaches either a fragment or vertex webglshader to a webglprogram.
WebGLRenderingContext.bindAttribLocation() - Web APIs
the webglrenderingcontext.bindattriblocation() method of the webgl api binds a generic vertex index to an attribute variable.
WebGLRenderingContext.bindBuffer() - Web APIs
the webglrenderingcontext.bindbuffer() method of the webgl api binds a given webglbuffer to a target.
WebGLRenderingContext.bindFramebuffer() - Web APIs
the webglrenderingcontext.bindframebuffer() method of the webgl api binds a given webglframebuffer to a target.
WebGLRenderingContext.bindRenderbuffer() - Web APIs
the webglrenderingcontext.bindrenderbuffer() method of the webgl api binds a given webglrenderbuffer to a target, which must be gl.renderbuffer.
WebGLRenderingContext.bindTexture() - Web APIs
the webglrenderingcontext.bindtexture() method of the webgl api binds a given webgltexture to a target (binding point).
WebGLRenderingContext.blendColor() - Web APIs
the webglrenderingcontext.blendcolor() method of the webgl api is used to set the source and destination blending factors.
WebGLRenderingContext.blendEquation() - Web APIs
the webglrenderingcontext.blendequation() method of the webgl api is used to set both the rgb blend equation and alpha blend equation to a single equation.
WebGLRenderingContext.blendEquationSeparate() - Web APIs
the webglrenderingcontext.blendequationseparate() method of the webgl api is used to set the rgb blend equation and alpha blend equation separately.
WebGLRenderingContext.blendFunc() - Web APIs
the webglrenderingcontext.blendfunc() method of the webgl api defines which function is used for blending pixel arithmetic.
WebGLRenderingContext.blendFuncSeparate() - Web APIs
the webglrenderingcontext.blendfuncseparate() method of the webgl api defines which function is used for blending pixel arithmetic for rgb and alpha components separately.
WebGLRenderingContext.bufferSubData() - Web APIs
the webglrenderingcontext.buffersubdata() method of the webgl api updates a subset of a buffer object's data store.
WebGLRenderingContext.checkFramebufferStatus() - Web APIs
the webglrenderingcontext.checkframebufferstatus() method of the webgl api returns the completeness status of the webglframebuffer object.
WebGLRenderingContext.colorMask() - Web APIs
the webglrenderingcontext.colormask() method of the webgl api sets which color components to enable or to disable when drawing or rendering to a webglframebuffer.
WebGLRenderingContext.compileShader() - Web APIs
the webglrenderingcontext.compileshader() method of the webgl api compiles a glsl shader into binary data so that it can be used by a webglprogram.
WebGLRenderingContext.copyTexImage2D() - Web APIs
the webglrenderingcontext.copyteximage2d() method of the webgl api copies pixels from the current webglframebuffer into a 2d texture image.
WebGLRenderingContext.copyTexSubImage2D() - Web APIs
the webglrenderingcontext.copytexsubimage2d() method of the webgl api copies pixels from the current webglframebuffer into an existing 2d texture sub-image.
WebGLRenderingContext.createBuffer() - Web APIs
the webglrenderingcontext.createbuffer() method of the webgl api creates and initializes a webglbuffer storing data such as vertices or colors.
WebGLRenderingContext.createFramebuffer() - Web APIs
the webglrenderingcontext.createframebuffer() method of the webgl api creates and initializes a webglframebuffer object.
WebGLRenderingContext.createProgram() - Web APIs
the webglrenderingcontext.createprogram() method of the webgl api creates and initializes a webglprogram object.
WebGLRenderingContext.createRenderbuffer() - Web APIs
the webglrenderingcontext.createrenderbuffer() method of the webgl api creates and initializes a webglrenderbuffer object.
WebGLRenderingContext.createShader() - Web APIs
the webglrenderingcontext method createshader() of the webgl api creates a webglshader that can then be configured further using webglrenderingcontext.shadersource() and webglrenderingcontext.compileshader().
WebGLRenderingContext.createTexture() - Web APIs
the webglrenderingcontext.createtexture() method of the webgl api creates and initializes a webgltexture object.
WebGLRenderingContext.depthMask() - Web APIs
the webglrenderingcontext.depthmask() method of the webgl api sets whether writing into the depth buffer is enabled or disabled.
WebGLRenderingContext.depthRange() - Web APIs
the webglrenderingcontext.depthrange() method of the webgl api specifies the depth range mapping from normalized device coordinates to window or viewport coordinates.
WebGLRenderingContext.detachShader() - Web APIs
the webglrenderingcontext.detachshader() method of the webgl api detaches a previously attached webglshader from a webglprogram.
WebGLRenderingContext.disableVertexAttribArray() - Web APIs
the webglrenderingcontext.disablevertexattribarray() method of the webgl api turns the generic vertex attribute array off at a given index position.
WebGLRenderingContext.drawArrays() - Web APIs
the webglrenderingcontext.drawarrays() method of the webgl api renders primitives from array data.
WebGLRenderingContext.drawElements() - Web APIs
the webglrenderingcontext.drawelements() method of the webgl api renders primitives from array data.
WebGLRenderingContext.finish() - Web APIs
the webglrenderingcontext.finish() method of the webgl api blocks execution until all previously called commands are finished.
WebGLRenderingContext.flush() - Web APIs
the webglrenderingcontext.flush() method of the webgl api empties different buffer commands, causing all commands to be executed as quickly as possible.
WebGLRenderingContext.framebufferRenderbuffer() - Web APIs
the webglrenderingcontext.framebufferrenderbuffer() method of the webgl api attaches a webglrenderbuffer object to a webglframebuffer object.
WebGLRenderingContext.framebufferTexture2D() - Web APIs
the webglrenderingcontext.framebuffertexture2d() method of the webgl api attaches a texture to a webglframebuffer.
WebGLRenderingContext.frontFace() - Web APIs
the webglrenderingcontext.frontface() method of the webgl api specifies whether polygons are front- or back-facing by setting a winding orientation.
WebGLRenderingContext.generateMipmap() - Web APIs
the webglrenderingcontext.generatemipmap() method of the webgl api generates a set of mipmaps for a webgltexture object.
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.
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.
WebGLRenderingContext.getAttachedShaders() - Web APIs
the webglrenderingcontext.getattachedshaders() method of the webgl api returns a list of webglshader objects attached to a webglprogram.
WebGLRenderingContext.getAttribLocation() - Web APIs
the webglrenderingcontext.getattriblocation() method of the webgl api returns the location of an attribute variable in a given webglprogram.
WebGLRenderingContext.getBufferParameter() - Web APIs
the webglrenderingcontext.getbufferparameter() method of the webgl api returns information about the buffer.
WebGLRenderingContext.getError() - Web APIs
the webglrenderingcontext.geterror() method of the webgl api returns error information.
WebGLRenderingContext.getFramebufferAttachmentParameter() - Web APIs
the webglrenderingcontext.getframebufferattachmentparameter() method of the webgl api returns information about a framebuffer's attachment.
WebGLRenderingContext.getParameter() - Web APIs
the webglrenderingcontext.getparameter() method of the webgl api returns a value for the passed parameter name.
WebGLRenderingContext.getProgramParameter() - Web APIs
the webglrenderingcontext.getprogramparameter() method of the webgl api returns information about the given program.
WebGLRenderingContext.getRenderbufferParameter() - Web APIs
the webglrenderingcontext.getrenderbufferparameter() method of the webgl api returns information about the renderbuffer.
WebGLRenderingContext.getShaderParameter() - Web APIs
the webglrenderingcontext.getshaderparameter() method of the webgl api returns information about the given shader.
WebGLRenderingContext.getShaderPrecisionFormat() - Web APIs
the webglrenderingcontext.getshaderprecisionformat() method of the webgl api returns a new webglshaderprecisionformat object describing the range and precision for the specified shader numeric format.
WebGLRenderingContext.getShaderSource() - Web APIs
the webglrenderingcontext.getshadersource() method of the webgl api returns the source code of a webglshader as a domstring.
WebGLRenderingContext.getTexParameter() - Web APIs
the webglrenderingcontext.gettexparameter() method of the webgl api returns information about the given texture.
WebGLRenderingContext.getUniform() - Web APIs
the webglrenderingcontext.getuniform() method of the webgl api returns the value of a uniform variable at a given location.
WebGLRenderingContext.getVertexAttrib() - Web APIs
the webglrenderingcontext.getvertexattrib() method of the webgl api returns information about a vertex attribute at a given position.
WebGLRenderingContext.getVertexAttribOffset() - Web APIs
the webglrenderingcontext.getvertexattriboffset() method of the webgl api returns the address of a specified vertex attribute.
WebGLRenderingContext.hint() - Web APIs
the webglrenderingcontext.hint() method of the webgl api specifies hints for certain behaviors.
WebGLRenderingContext.isBuffer() - Web APIs
the webglrenderingcontext.isbuffer() method of the webgl api returns true if the passed webglbuffer is valid and false otherwise.
WebGLRenderingContext.isContextLost() - Web APIs
the webglrenderingcontext.iscontextlost() method returns a boolean indicating whether or not the webgl context has been lost and must be re-established before rendering can resume.
WebGLRenderingContext.isFramebuffer() - Web APIs
the webglrenderingcontext.isframebuffer() method of the webgl api returns true if the passed webglframebuffer is valid and false otherwise.
WebGLRenderingContext.isProgram() - Web APIs
the webglrenderingcontext.isprogram() method of the webgl api returns true if the passed webglprogram is valid, false otherwise.
WebGLRenderingContext.isRenderbuffer() - Web APIs
the webglrenderingcontext.isrenderbuffer() method of the webgl api returns true if the passed webglrenderbuffer is valid and false otherwise.
WebGLRenderingContext.isShader() - Web APIs
the webglrenderingcontext.isshader() method of the webgl api returns true if the passed webglshader is valid, false otherwise.
WebGLRenderingContext.isTexture() - Web APIs
the webglrenderingcontext.istexture() method of the webgl api returns true if the passed webgltexture is valid and false otherwise.
WebGLRenderingContext.lineWidth() - Web APIs
the webglrenderingcontext.linewidth() method of the webgl api sets the line width of rasterized lines.
WebGLRenderingContext.linkProgram() - Web APIs
the webglrenderingcontext interface's linkprogram() method links a given webglprogram, completing the process of preparing the gpu code for the program's fragment and vertex shaders.
WebGLRenderingContext.readPixels() - Web APIs
the webglrenderingcontext.readpixels() method of the webgl api reads a block of pixels from a specified rectangle of the current color framebuffer into an arraybufferview object.
WebGLRenderingContext.renderbufferStorage() - Web APIs
the webglrenderingcontext.renderbufferstorage() method of the webgl api creates and initializes a renderbuffer object's data store.
WebGLRenderingContext.scissor() - Web APIs
the webglrenderingcontext.scissor() method of the webgl api sets a scissor box, which limits the drawing to a specified rectangle.
WebGLRenderingContext.shaderSource() - Web APIs
the webglrenderingcontext.shadersource() method of the webgl api sets the source code of a webglshader.
WebGLRenderingContext.texImage2D() - Web APIs
the webglrenderingcontext.teximage2d() method of the webgl api specifies a two-dimensional texture image.
WebGLRenderingContext.texParameter[fi]() - Web APIs
the webglrenderingcontext.texparameter[fi]() methods of the webgl api set texture parameters.
WebGLRenderingContext.texSubImage2D() - Web APIs
the webglrenderingcontext.texsubimage2d() method of the webgl api specifies a sub-rectangle of the current texture.
WebGLRenderingContext.useProgram() - Web APIs
the webglrenderingcontext.useprogram() method of the webgl api sets the specified webglprogram as part of the current rendering state.
WebGLRenderingContext.validateProgram() - Web APIs
the webglrenderingcontext.validateprogram() method of the webgl api validates a webglprogram.
WebGLRenderingContext.vertexAttrib[1234]f[v]() - Web APIs
the webglrenderingcontext.vertexattrib[1234]f[v]() methods of the webgl api specify constant values for generic vertex attributes.
WebGLRenderingContext.viewport() - Web APIs
the webglrenderingcontext.viewport() method of the webgl api sets the viewport, which specifies the affine transformation of x and y from normalized device coordinates to window coordinates.
WebGLSampler - Web APIs
the webglsampler interface is part of the webgl 2 api and stores sampling parameters for webgltexture access inside of a shader.
WebGLSync - Web APIs
Web › API › WebGLSync
the webglsync interface is part of the webgl 2 api and is used to synchronize activities between the gpu and the application.
WebGLTransformFeedback - Web APIs
the webgltransformfeedback interface is part of the webgl 2 api and enables transform feedback, which is the process of capturing primitives generated by vertex processing.
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.
Basic scissoring - Web APIs
he screen.
Compressed texture formats - Web APIs
the webgl api provides methods to use compressed texture formats.
Creating 3D objects using WebGL - Web APIs
« previousnext » let's take our square plane into three dimensions by adding five more faces to create a cube.
Using WebGL extensions - Web APIs
nded to be compatible with multiple web browsers.
WebGL best practices - Web APIs
f you need to draw discontinuous objects as a single drawarrays(triangle_strip) call.
Using WebRTC data channels - Web APIs
tion has been made successfully by watching for the open event to be sent to the rtcdatachannel.
WebSocket - Web APIs
Web › API › WebSocket
error occurs.
Writing WebSocket servers - Web APIs
ultiplayer game.
WebXR application life cycle - Web APIs
de.
WebXR Device API - Web APIs
turns the window's instance of xrsystem, which is the mechanism by which your code accesses the webxr api.
Keyframe Formats - Web APIs
ffect.keyframeeffect(), and keyframeeffect.setkeyframes() all accept objects formatted to represent a set of keyframes.
Web Animations API Concepts - Web APIs
perhaps a scrolltimeline, or other things entirely.
Web Animations API - Web APIs
nterfaces the web animations api adds some new features to document and element.
Web Speech API - Web APIs
is interface, a text-to-speech component that allows programs to read out their text content (normally via the device's default speech synthesiser.) different voice types are represented by speechsynthesisvoice objects, and different parts of text that you want to be spoken are represented by speechsynthesisutterance objects.
Window.alert() - Web APIs
Web › API › Window › alert
the window.alert() method displays an alert dialog with the optional specified content and an ok button.
Window: appinstalled event - Web APIs
the appinstalled event of the web manifest api is fired when the browser has successfully installed a page as an application.
Window.blur() - Web APIs
Web › API › Window › blur
shifts focus away from the window.
window.cancelAnimationFrame() - Web APIs
the window.cancelanimationframe() method cancels an animation frame request previously scheduled through a call to window.requestanimationframe().
window.cancelIdleCallback() - Web APIs
summary the window.cancelidlecallback() method cancels a callback previously scheduled with window.requestidlecallback().
Window.closed - Web APIs
Web › API › Window › closed
pener using the window.opener property and that the opener isn't closed: // check that an opener exists and is not closed if (window.opener && !window.opener.closed) { window.opener.location.href = 'http://www.mozilla.org'; } note that popups can only access the window that opened them.
Window.confirm() - Web APIs
Web › API › Window › confirm
the window.confirm() method displays a modal dialog with an optional message and two buttons: ok and cancel.
Window.customElements - Web APIs
the customelements read-only property of the window interface returns a reference to the customelementregistry object, which can be used to register new custom elements and get information about previously registered custom elements.
Window.dialogArguments - Web APIs
the dialogarguments property returns the parameters that were passed into the window.showmodaldialog() method.
Window.find() - Web APIs
Web › API › Window › find
note: support for window.find() might change in future versions of gecko.
Window.focus() - Web APIs
Web › API › Window › focus
makes a request to bring the window to the front.
Window.getAttention() - Web APIs
the window.getattention() method attempts to get the user's attention.
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.
Window: hashchange event - Web APIs
the hashchange event is fired when the fragment identifier of the url has changed (the part of the url beginning with and following the # symbol).
Window.home() - Web APIs
Web › API › Window › home
obsolete since gecko 31 (firefox 31 / thunderbird 31 / seamonkey 2.28)this feature is obsolete.
Window.innerHeight - Web APIs
if present.
Window.innerWidth - Web APIs
Web › API › Window › innerWidth
of the window's layout viewport.
Window: languagechange event - Web APIs
the languagechange event is fired at the global scope object when the user's preferred language changes.
window.location - Web APIs
Web › API › Window › location
on.assign() had been called with the modified url.
Window.matchMedia() - Web APIs
Web › API › Window › matchMedia
the window interface's matchmedia() method returns a new mediaquerylist object that can then be used to determine if the document matches the media query string, as well as to monitor the document to detect when it matches (or stops matching) that media query.
Window.moveBy() - Web APIs
Web › API › Window › moveBy
the moveby() method of the window interface moves the current window by a specified amount.
Window.moveTo() - Web APIs
Web › API › Window › moveTo
the moveto() method of the window interface moves the current window to the specified coordinates.
Window.name - Web APIs
Web › API › Window › name
n used in some frameworks for providing cross-domain messaging (e.g., sessionvars and dojo's dojox.io.windowname) as a more secure alternative to jsonp.
Window.navigator - Web APIs
Web › API › Window › navigator
the window.navigator read-only property returns a reference to the navigator object, which has methods and properties about the application running the script.
Window: orientationchange event - Web APIs
the orientationchange event is fired when the orientation of the device has changed.
Window.performance - Web APIs
ming api, and the resource timing api.
Window.releaseEvents() - Web APIs
ck, event.change, event.dblclick, event.dragddrop, event.error, event.focus, event.keydown, event.keypress, event.keyup, event.load, event.mousedown, event.mousemove, event.mouseout, event.mouseover, event.mouseup, event.move, event.reset, event.resize, event.select, event.submit, event.unload.
Window.resizeTo() - Web APIs
Web › API › Window › resizeTo
the window.resizeto() method dynamically resizes the window.
Window: resize event - Web APIs
pan id="width"></span></p> const heightoutput = document.queryselector('#height'); const widthoutput = document.queryselector('#width'); function reportwindowsize() { heightoutput.textcontent = window.innerheight; widthoutput.textcontent = window.innerwidth; } window.onresize = reportwindowsize; addeventlistener equivalent you could set up the event handler using the addeventlistener() method: window.addeventlistener('resize', reportwindowsize); specifications specification status document object model (dom) level 3 events specificationthe definition of 'resize' in that specification.
Window.restore() - Web APIs
Web › API › Window › restore
this method is currently not working, but you can use: window.moveto(window.screenx, window.screeny); browser compatibility the compatibility table in this page is generated from structured data.
Window.routeEvent() - Web APIs
Web › API › Window › routeEvent
obsolete since gecko 24 (firefox 24 / thunderbird 24 / seamonkey 2.21)this feature is obsolete.
Window.scrollBy() - Web APIs
Web › API › Window › scrollBy
the window.scrollby() method scrolls the document in the window by the given amount.
Window.scrollByLines() - Web APIs
the window.scrollbylines() method scrolls the document by the specified number of lines.
Window.scrollByPages() - Web APIs
the window.scrollbypages() method scrolls the current document by the specified number of pages.
Window.scrollTo() - Web APIs
Web › API › Window › scrollTo
is of the document that you want displayed in the upper left.
Window.setCursor() - Web APIs
Web › API › Window › setCursor
the window.setcursor() method sets the cursor for the current window.
Window.showModalDialog() - Web APIs
this feature has been removed.
Window.sizeToContent() - Web APIs
the window.sizetocontent() method sizes the window according to its content.
Window.speechSynthesis - Web APIs
d populate a select menu with them so the user can choose what voice they want.
Window.stop() - Web APIs
Web › API › Window › stop
the window.stop() stops further resource loading in the current browsing context, equivalent to the stop button in the browser.
WindowClient.focus() - Web APIs
the focus() method of the windowclient interface gives user input focus to the current client and returns a promise that resolves to the existing windowclient.
WindowClient.navigate() - Web APIs
the navigate() method of the windowclient interface loads a specified url into a controlled client page then returns a promise that resolves to the existing windowclient.
WindowEventHandlers.onbeforeunload - Web APIs
display them at all.
WindowEventHandlers.onunload - Web APIs
the onunload property of the windoweventhandlers mixin is the eventhandler for processing unload events.
WindowOrWorkerGlobalScope.queueMicrotask() - Web APIs
the queuemicrotask() method, which is exposed on the window or worker interface, queues a microtask to be executed at a safe time prior to control returning to the browser's event loop.
Worker.onmessage - Web APIs
Web › API › Worker › onmessage
the onmessage property of the worker interface represents an eventhandler, that is a function to be called when the message event occurs.
Worker.terminate() - Web APIs
Web › API › Worker › terminate
the terminate() method of the worker interface immediately terminates the worker.
WorkerGlobalScope.importScripts() - Web APIs
the importscripts() method of the workerglobalscope interface synchronously imports one or more scripts into the worker's scope.
WorkerGlobalScope: languagechange event - Web APIs
the languagechange event is fired at the global scope object when the user's preferred language changes.
WorkerGlobalScope.performance - Web APIs
the performance read-only property of the workerglobalscope interface returns a performance object to be used on the worker.
WorkerNavigator.locks - Web APIs
the locks read-only property of the workernavigator interface returns a lockmanager object which provides methods for requesting a new lock object and querying for an existing lock object.
Worklet.addModule() - Web APIs
Web › API › Worklet › addModule
the addmodule() method of the worklet interface loads the module in the given javascript file and adds it to the current worklet.
WritableStream.abort() - Web APIs
the abort() method of the writablestream interface aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
WritableStreamDefaultController - Web APIs
ontroller interface of the the streams api represents a controller allowing control of a writablestream's state.
WritableStreamDefaultWriter.releaseLock() - Web APIs
the releaselock() method of the writablestreamdefaultwriter interface releases the writer's lock on the corresponding stream.
WritableStreamDefaultWriter.write() - Web APIs
rocess is initiated.
XDomainRequest.abort() - Web APIs
aborts an xdomainrequest.
XDomainRequest.onerror - Web APIs
an event handler which is called when an xdomainrequest encounters an error.
XDomainRequest.onload - Web APIs
an event handler for when an xdomainrequest has finished receiving the response from the server.
XDomainRequest.ontimeout - Web APIs
an event handler which is called when a pending xdomainrequest times out.
XDomainRequest.send() - Web APIs
sends an xdomainrequest which has previously been opened calling xdomainrequest.open().
init() - Web APIs
initializes the object for use from c++ code.
XMLHttpRequest.getAllResponseHeaders() - Web APIs
the xmlhttprequest method getallresponseheaders() returns all the response headers, separated by crlf, as a string, or returns null if no response has been received.
XMLHttpRequest.mozBackgroundRequest - Web APIs
note: this method is not available from web content.
XMLHttpRequest: timeout event - Web APIs
expiring.
XMLSerializer.serializeToString() - Web APIs
the xmlserializer method serializetostring() constructs a string representing the specified dom tree in xml form.
XPathEvaluator - Web APIs
the xpathevaluator interface allows to compile and evaluate xpath expressions.
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.
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.
XPathNSResolver - Web APIs
the xpathnsresolver interface permits prefix strings in an xpath expression to be properly bound to namespace uri strings.
XRBoundedReferenceSpace.boundsGeometry - Web APIs
l point, and must be located at ground level (that is, its y coordinate must be 0).
XRFrame.getPose() - Web APIs
Web › API › XRFrame › getPose
the xrframe method getpose() returns the relative position and orientation—the pose—of one xrspace to that of another space.
XRInputSource.gripSpace - Web APIs
ources) { if (source.gripspace) { let grippose = frame.getpose(source.gripspace, xrrefspace); if (grippose) { mydrawmeshusingtransform(controllermesh, grippose.transform.matrix); } } } for each input source which has a value for gripspace, this loop obtains the xrpose representing the position and orientation that are described by gripspace.
XRPermissionDescriptor.mode - Web APIs
ermissiondescriptor.mode = xrsessionmode; xrmode = xrpermissiondescriptor.mode; value a domstring whose value is one of the strings found in the xrsessionmode enumerated type: immersive-ar the session's output will be given exclusive access to the immersive device, but the rendered content will be blended with the real-world environment.
XRPermissionDescriptor - Web APIs
ng the names of the webxr features for which permission must be obtained in order to use your app or site.
XRPermissionStatus.granted - Web APIs
the webxr device api's xrpermissionstatus interface's granted property is an array of strings, each identifying one of the webxr features for which permission has been granted as of the time at which the permission api's navigator.permissions.query() method was called.
XRPose.transform - Web APIs
Web › API › XRPose › transform
viding the position and orientation of the pose relative to the base xrspace as specified when the pose was obtained by calling xrframe.getpose().
XRReferenceSpace: reset event - Web APIs
gain tracking within the same tracking area.
XRReferenceSpaceType - Web APIs
the xrreferencespacetype enumerated type defines the strings which identify the types of reference spaces supported by webxr.
XRRenderState - Web APIs
generated by an xrsession gets composited.
XRRenderStateInit - Web APIs
the xrrenderstateinit dictionary is a writeable version of the xrrenderstate interface, and is used when calling an xrsession's updaterenderstate() method to apply changes to the render state prior to rendering the next frame.
XRRigidTransform - Web APIs
gidtransform is interpreted, the orientation is always applied to the affected object before the position is applied.
XRSession.cancelAnimationFrame() - Web APIs
the cancelanimationframe() method of the xrsession interface cancels an animation frame which was previously requested by calling requestanimationframe.
XRSession.end() - Web APIs
Web › API › XRSession › end
the end() method shuts down the xrsession on which it's called, returning a promise which resolves once the session has fully shut down.
XRSession.inputSources - Web APIs
the read-only inputsources property of the xrsession interface returns an xrinputsourcearray object which lists all controllers and input devices which are expressly associated with the xr device and are currently available.
XRSession.renderState - Web APIs
ates the returns a xrrenderstate object describing how the user's environment which should be rendered.
XRSession.requestReferenceSpace() - Web APIs
the requestreferencespace() method of the xrsession interface returns a promise that resolves with an instance of either xrreferencespace or xrboundedreferencespace as appropriate given the type of reference space requested.
XRSessionInit - Web APIs
the webxr device api dictionary xrsessioninit specifies required and/or optional features when requesting a new xrsession by calling the navigator.xr.requestsession() method.
XRSessionMode - Web APIs
the webxr device api's xrsessionmode enumerated type defines the string values used to identify the possible kinds of session mode that can be used.
XRSystem: devicechange event - Web APIs
ntly available.
XRView.transform - Web APIs
Web › API › XRView › transform
the read-only transform property of the xrview interface is an xrrigidtransform object which provides the position and orientation of the viewpoint relative to the xrreferencespace specified when the xrframe.getviewerpose() method was called to obtain the view object.
XRView - Web APIs
Web › API › XRView
s the current position and orientation of the viewpoint in relation to the xrreferencespace specified when getviewerpose() was called on the xrframe being rendered.
XRViewerPose - Web APIs
en rendering the scene for spectators or other players in a multiplayer game, the transform of the xrviewerpose can be used to determine both placement and facing direction of the other players in the game, so that they can be drawn in the correct place with the correct facing.
XRViewport - Web APIs
on of the coordinate system may vary with other surface types, but in webgl, the origin (0, 0) is located at the bottom-left corner of the surface.
XRWebGLLayer() - Web APIs
ailable are: alpha optional the frame buffer's color buffer will be established with an alpha channel if the alpha boolean property is true.
XRWebGLLayer.antialias - Web APIs
or web app.
XRWebGLLayer.getViewport() - Web APIs
the xrwebgllayer interface's getviewport() method returns the xrviewport that should be used to render the specified xrview into the webgl layer.
XRWebGLLayerInit - Web APIs
properties alpha optional the frame buffer's color buffer will be established with an alpha channel if the alpha boolean property is true.
XSLT Basic Example - Web APIs
<?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="example.xsl"?> <article> <title>my article</title> <authors> <author>mr.
msCaching - Web APIs
Web › API › msCaching
his feature is non-standard and is not on a standards track.
msGetPropertyEnabled - Web APIs
non-standard this feature is non-standard and is not on a standards track.
Web APIs
Web › API
xture_half_float oes_texture_half_float_linear oes_vertex_array_object ovr_multiview2 offlineaudiocompletionevent offlineaudiocontext offscreencanvas orientationsensor oscillatornode overconstrainederror p pagetransitionevent paintworklet pannernode parentnode passwordcredential path2d payererrors paymentaddress paymentcurrencyamount paymentdetailsbase paymentdetailsupdate paymentitem paymentmethodchangeevent paymentrequest paymentrequestevent paymentrequestupdateevent paymentresponse paymentvalidationerrors pbkdf2params performance performanceentry performanceeventtiming performanceframetiming performancelongtasktiming performancemark performancemeasure performancenavigation performancenavigationtiming performanceobserver performanceobserverentrylist performancepainttiming performa...
Using the alert role - Accessibility
ntion, for example: an invalid value was entered into a form field the user's login session is about to expire the connection to the server was lost, local changes will not be saved because of its intrusive nature, the alert role must be used sparingly and only in situations where the user's immediate attention is required.
Using the link role - Accessibility
for free using the <a> element, so you should really use that if possible.
ARIA: listbox role - Accessibility
urrent item has an associated context menu, shift+f10 will launch that menu.
Operable - Accessibility
e: also see the wcag description for guideline 2.4 navigable: provide ways to help users navigate, find content, and determine where they are.
::before (:before) - CSS: Cascading Style Sheets
Web › CSS › ::before
in the content property almost any way we want.
:defined - CSS: Cascading Style Sheets
Web › CSS › :defined
the :defined css pseudo-class represents any element that has been defined.
:dir() - CSS: Cascading Style Sheets
Web › CSS › :dir
ctors.
:visited - CSS: Cascading Style Sheets
Web › CSS › :visited
s-color.
any-hover - CSS: Cascading Style Sheets
Web › CSS › @media › any-hover
sed to test whether any available input mechanism can hover over elements.
Coordinate systems - CSS: Cascading Style Sheets
t handler for the various mouse events, named update(); this is shown below.
CSS Animations tips and tricks - CSS: Cascading Style Sheets
things you might want to do that aren't obvious, or clever ways to do things that you might not come up with right away.
Basic Concepts of Multicol - CSS: Cascading Style Sheets
multiple-column layout, usually referred to as multicol, is a specification for laying out content into a set of column boxes much like columns in a newspaper.
Styling Columns - CSS: Cascading Style Sheets
e gap between our columns is controlled by the column-gap property.
CSS Display - CSS: Cascading Style Sheets
ine layout in normal flow flow layout and overflow flow layout and writing modes formatting contexts explained in flow and out of flow display: flex basic concepts of flexbox aligning items in a flex container 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 e...
Auto-placement in CSS Grid Layout - CSS: Cascading Style Sheets
s not wrapped in any other element.
Layout using named grid lines - CSS: Cascading Style Sheets
...
Subgrid - CSS: Cascading Style Sheets
e parent lines, and one using the subgrid lines.
CSS Grid Layout - CSS: Cascading Style Sheets
rid-column-start grid-row-end grid-column-end grid-row grid-column grid-area 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 si...
Basic concepts of Logical Properties and Values - CSS: Cascading Style Sheets
ange the layout.
CSS selectors - CSS: Cascading Style Sheets
: #idname example: #toc will match the element that has the id "toc".
Overview of CSS Shapes - CSS: Cascading Style Sheets
to explore the box values in more detail see our guide covering shapes from box values.
Using CSS transitions - CSS: Cascading Style Sheets
nsitionevent object, which has two added properties beyond a typical event object: propertyname a string indicating the name of the css property whose transition completed.
Column layouts - CSS: Cascading Style Sheets
, and in this recipe we explore these options.
Grid wrapper - CSS: Cascading Style Sheets
o.
Pagination - CSS: Cascading Style Sheets
ad this example choices made this pattern is laid out using flexbox — one flex container nested inside another.
Sticky footers - CSS: Cascading Style Sheets
tainer it is in.
CSS Layout cookbook - CSS: Cascading Style Sheets
point in your projects, these recipes highlight the different ways layout specifications can be used, and the choices you can make as a developer.
Using Media Queries for Accessibility - CSS: Cascading Style Sheets
media queries can also be used to help users with disabilities understand your website better.
Using media queries - CSS: Cascading Style Sheets
meters (such as screen resolution or browser viewport width).
Media queries - CSS: Cascading Style Sheets
o which a linked resource (typically css) should be applied.
Privacy and the :visited selector - CSS: Cascading Style Sheets
ine where the user had been on the web, but could also be used to guess a lot of information about the user's identity.
background - CSS: Cascading Style Sheets
the background shorthand css property sets all background style properties at once, such as color, image, origin and size, or repeat method.
column-gap (grid-column-gap) - CSS: Cascading Style Sheets
size of the gap (gutter) between an element's columns.
element() - CSS: Cascading Style Sheets
Web › CSS › element
value generated from an arbitrary html element.
font-size - CSS: Cascading Style Sheets
Web › CSS › font-size
d by the <html> (root) element.
font-variant-position - CSS: Cascading Style Sheets
ant-position: normal; font-variant-position: sub; font-variant-position: super; /* global values */ font-variant-position: inherit; font-variant-position: initial; font-variant-position: unset; when the usage of these alternate glyphs is activated, if one character in the run doesn't have such a typographically-enhanced glyph, the whole set of characters of the run is rendered using a fallback method, synthesizing these glyphs.
image-set() - CSS: Cascading Style Sheets
Web › CSS › image-set
the image-set() css function notation is a method of letting the browser pick the most appropriate css image from a given set, primarily for high pixel density screens.
resize - CSS: Cascading Style Sheets
Web › CSS › resize
ithub.com/mdn/interactive-examples and send us a pull request.
shape-outside - CSS: Cascading Style Sheets
as added in the level 2 specification path().
will-change - CSS: Cascading Style Sheets
t, in order to try to deal with existing performance problems.
Live streaming web audio and video - Developer guides
, we need to use formats that facilitate this.
Setting up adaptive streaming media sources - Developer guides
aling with mpeg-dash is dash encoder.
Mouse gesture events - Developer guides
c tasks.
HTML5 Parser - Developer guides
Web › Guide › HTML › HTML5 › HTML5 Parser
vg>…</svg> is assigned to the svg namespace in the dom.
HTML5 - Developer guides
Web › Guide › HTML › HTML5
op api allows support for dragging and dropping items within and between web sites.
Introduction to Web development - Developer guides
ting started with javascript — what is javascript and how can it help you?
Parsing and serializing XML - Developer guides
differentiating has some practical benefits as well.
Applying color to HTML elements using CSS - HTML: Hypertext Markup Language
ha channel is a number between 0.0 (fully transparent) and 1.0 (fully opaque).
<input type="button"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › button
y valid html, the newer <button> element is now the favored way to create buttons.
<input type="checkbox"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › checkbox
turn single values on and off.
<input type="date"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › date
ra, whose data control looks like so: the edge date control looks like: and the firefox date control looks like this: value a domstring representing a date in yyyy-mm-dd format, or empty events change and input supported common attributes autocomplete, list, readonly, and step idl attributes list, value, valueasdate, valueasnumber.
<input type="email"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › email
support inputs of type email, a email input falls back to being a standard text input.
<input type="hidden"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › hidden
ve example below the following line of code — if it is working correctly, you should see nothing!
<input type="month"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › month
a.
<input type="number"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › number
s://github.com/mdn/interactive-examples and send us a pull request.
<input type="reset"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › reset
equest.
<input type="search"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › search
e interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
<input type="tel"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › tel
don't support type tel fall back to being a standard text input.
<input type="text"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › text
xamples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
<input type="url"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › url
don't support inputs of type url, a url input falls back to being a standard text input.
<input type="week"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › week
lear the control's value.
<marquee>: The Marquee element (Obsolete) - HTML: Hypertext Markup Language
Web › HTML › Element › marquee
andlers onbounce fires when the marquee has reached the end of its scroll position.
<p>: The Paragraph element - HTML: Hypertext Markup Language
Web › HTML › Element › p
first paragraph of text.
<textarea> - HTML: Hypertext Markup Language
Web › HTML › Element › textarea
words.
accesskey - HTML: Hypertext Markup Language
ionalization is a concern.
class - HTML: Hypertext Markup Language
the class global attribute is a space-separated list of the case-sensitive classes of the element.
tabindex - HTML: Hypertext Markup Language
l keyboard navigation, but could be focused with javascript or visually by clicking with the mouse.
title - HTML: Hypertext Markup Language
ssistive technology such as screen readers or magnifiers people experiencing fine motor control impairment people with cognitive concerns this is due to inconsistent browser support, compounded by the additional assistive technology parsing of the browser-rendered page.
Global attributes - HTML: Hypertext Markup Language
pital letter; all other letters default 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.
HTML documentation index - HTML: Hypertext Markup Language
Web › HTML › Index
ribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user.
Link types - HTML: Hypertext Markup Language
k> <a>, <area>, <form> prefetch suggests that the browser fetch the linked resource in advance, as it is likely to be requested by the user.
Using the application cache - HTML: Hypertext Markup Language
manifest is being fetched and checked for updates.
HTTP authentication - HTTP
third-party page.
Data URLs - HTTP
tag is required.
Basics of HTTP - HTTP
http is an extensible protocol that relies on concepts like resources and uniform resource identifiers (uris), simple message structure, and client-server communication flow.
CORS errors - HTTP
Web › HTTP › CORS › Errors
reason: cors header ‘origin’ cannot be added reason: cors request external redirect not allowed reason: cors request not http reason: cors header ‘access-control-allow-origin’ missing reason: cors header ‘access-control-allow-origin’ does not match ‘xyz’ reason: credential is not supported if the cors header ‘access-control-allow-origin’ is ‘*’ reason: did not find method in cors header ‘access-control-allow-methods’ reason: expected ‘true’ in cors header ‘access-control-allow-credentials’ reason: cors preflight channel did not succeed reason: invalid token ‘xyz’ in cors header ‘access-control-allow-methods’ reason: invalid token ‘xyz’ in cors header ‘access-control-allow-headers’ reason: missing token ‘xyz’ in cors header ‘a...
Connection management in HTTP/1.x - HTTP
waiting for the answer.
Content negotiation - HTTP
guous request, the server sends back a page containing links to the available alternative resources.
Using HTTP cookies - HTTP
Web › HTTP › Cookies
cookie mechanism is such that a server is unable to confirm that a cookie was set on a secure origin or even to tell where a cookie was originally set.
Cross-Origin Resource Policy (CORP) - HTTP
l attacks, like spectre, as well as cross-site script inclusion attacks.
Accept-Patch - HTTP
the accept-patch response http header advertises which media-type the server is able to understand.
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.
Authorization - HTTP
ication schemes authentification for aws servers (aws4-hmac-sha256) <credentials> if the "basic" authentication scheme is used, the credentials are constructed like this: the username and the password are combined with a colon (aladdin:opensesame).
Content-Encoding - HTTP
gzip on the client side, you can advertise a list of compression schemes that will be sent along in an http request.
Content-Location - HTTP
site returns a generic success message confirming the post was published.
Content-Type - HTTP
s used to encapsulate the boundaries of the multiple parts of the message.
ETag - HTTP
Web › HTTP › Headers › ETag
tations of the same resources might be semantically equivalent, but not byte-for-byte identical.
Feature-Policy: vibrate - HTTP
the http feature-policy header vibrate directive controls whether the current document is allowed to trigger device vibrations via navigator.vibrate() method of vibration api.
Feature-Policy - HTTP
romise returned by navigator.getbattery() will reject with a notallowederror domexception.
Origin - HTTP
Web › HTTP › Headers › Origin
the origin request header indicates where a fetch originates from.
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.
Proxy-Authorization - HTTP
ectives <type> authentication type.
WWW-Authenticate - HTTP
the http www-authenticate response header defines the authentication method that should be used to gain access to a resource.
GET - HTTP
Web › HTTP › Methods › GET
the http get method requests a representation of the specified resource.
PUT - HTTP
Web › HTTP › Methods › PUT
the http put request method creates a new resource or replaces a representation of the target resource with the request payload.
TRACE - HTTP
Web › HTTP › Methods › TRACE
the http trace method performs a message loop-back test along the path to the target resource, providing a useful debugging mechanism.
Protocol upgrade mechanism - HTTP
tion, so this does not provide security.
200 OK - HTTP
Web › HTTP › Status › 200
the http 200 ok success status response code indicates that the request has succeeded.
303 See Other - HTTP
Web › HTTP › Status › 303
the hypertext transfer protocol (http) 303 see other redirect status response code indicates that the redirects don't link to the newly uploaded resources, but to another page (such as a confirmation page or an upload progress page).
304 Not Modified - HTTP
Web › HTTP › Status › 304
the http 304 not modified client redirection response code indicates that there is no need to retransmit the requested resources.
412 Precondition Failed - HTTP
Web › HTTP › Status › 412
the hypertext transfer protocol (http) 412 precondition failed client error response code indicates that access to the target resource has been denied.
507 Insufficient Storage - HTTP
Web › HTTP › Status › 507
the hypertext transfer protocol (http) 507 insufficient storage response status code may be given in the context of the web distributed authoring and versioning (webdav) protocol (see rfc 4918).
CSS Houdini
in addition, layout, paint, and composite processes are repeated for javascript style updates.
About JavaScript - JavaScript
similar to both java and c++ to reduce the number of new concepts required to learn the language.
JavaScript data types and data structures - JavaScript
ity of being callable.
Loops and iteration - JavaScript
y elements, the for...in statement will return the name of your user-defined properties in addition to the numeric indexes.
JavaScript modules - JavaScript
are, reportsquarearea, reportsquareperimeter } from './modules/square.js'; and it would work just the same.
Assertions - JavaScript
rs inside borders of an entity.
Using Promises - JavaScript
de—or just to avoid having them cluttering up your output—by adding a handler for the unhandledrejection event, like this: window.addeventlistener("unhandledrejection", event => { /* you might start here by adding code to examine the promise specified by event.promise and the reason in event.reason */ event.preventdefault(); }, false); by calling the event's preventdefault() method, you tell the javascript runtime not to do its default action when rejected promises go unhandled.
JavaScript Guide - JavaScript
rator numbers and dates number literals number object math object date object text formatting string literals string object template literals internationalization regular expressions indexed collections arrays typed arrays keyed collections map weakmap set weakset working with objects objects and properties creating objects defining methods getter and setter details of the object model prototype-based oop creating object hierarchies inheritance promises guarantees chaining error propagation composition timing iterators and generators iterators iterables generators meta programming proxy handlers and traps revocable proxy reflect javascript modules exporting importi...
Memory Management - JavaScript
a function (which is a callable object) // function expressions also allocate an object someelement.addeventlistener('click', function() { someelement.style.backgroundcolor = 'blue'; }, false); allocation via function calls some function calls result in object allocation.
About the JavaScript reference - JavaScript
you are new to javascript, start with the guide.
The legacy Iterator protocol - JavaScript
ator protocol was a spidermonkey-specific feature, which is removed in firefox 58+.
TypeError: can't access property "x" of "y" - JavaScript
peerror: x is undefined, can't access property "prop" of it typeerror: x is null, can't access property "prop" of it typeerror: can't access property "prop" of undefined typeerror: can't access property "prop" of null error type typeerror.
TypeError: can't access dead object - JavaScript
rong (keep alive) reference to a dom element that persists even after it was destroyed in the dom.
TypeError: "x" is not a non-null object - JavaScript
peerror: "x" is not a non-null object (firefox) typeerror: property description must be an object: "x" (chrome) typeerror: invalid value used in weak set (chrome) error type typeerror what went wrong?
ReferenceError: "x" is not defined - JavaScript
note: when loading a library (such as jquery), make sure it is loaded before you access library variables, such as "$".
ReferenceError: reference to undefined property "x" - JavaScript
is case, the property bar is an undefined property, so a referenceerror will occur.
setter - JavaScript
ns the setter, which assigns 10 / 2 (5) to the 'a' property console.log(o.a) // 5 using a computed property name const expr = 'foo'; const obj = { baz: 'bar', set [expr](v) { this.baz = v; } }; console.log(obj.baz); // "bar" obj.foo = 'baz'; // run the setter console.log(obj.baz); // "baz" specifications specification ecmascript (ecma-262)the definition of 'method definitions' in that specification.
get Array[@@species] - JavaScript
species property returns the default constructor function, which is the array constructor for array objects: array[symbol.species]; // function array() species in derived objects in a derived collection object (e.g.
Array.prototype.reduceRight() - JavaScript
the reduceright() method applies a function against an accumulator and each value of the array (from right-to-left) to reduce it to a single value.
Array.prototype.entries() - JavaScript
the entries() method returns a new array iterator object that contains the key/value pairs for each index in the array.
Array.isArray() - JavaScript
the array.isarray() method determines whether the passed value is an array.
Array.prototype.join() - JavaScript
the join() method creates and returns a new string by concatenating all of the elements in an array (or an array-like object), separated by commas or a specified separator string.
Array.prototype.keys() - JavaScript
the keys() method returns a new array iterator object that contains the keys for each index in the array.
Array.of() - JavaScript
the array.of() method creates a new array instance from a variable number of arguments, regardless of number or type of the arguments.
Array.prototype.values() - JavaScript
the values() method returns a new array iterator object that contains the values for each index in the array.
get ArrayBuffer[@@species] - JavaScript
on, which is the arraybuffer constructor for arraybuffer objects: arraybuffer[symbol.species]; // function arraybuffer() species in derived objects in a derived collection object (e.g.
ArrayBuffer.isView() - JavaScript
the arraybuffer.isview() method determines whether the passed value is one of the arraybuffer views, such as typed array objects or a dataview.
Atomics.add() - JavaScript
the static atomics.add() method adds a given value at a given position in the array and returns the old value at that position.
Atomics.and() - JavaScript
the static atomics.and() method computes a bitwise and with a given value at a given position in the array, and returns the old value at that position.
Atomics.compareExchange() - JavaScript
the static atomics.compareexchange() method exchanges a given replacement value at a given position in the array, if a given expected value equals the old value.
Atomics.exchange() - JavaScript
the static atomics.exchange() method stores a given value at a given position in the array and returns the old value at that position.
Atomics.isLockFree() - JavaScript
the static atomics.islockfree() method is used to determine whether to use locks or atomic operations.
Atomics.load() - JavaScript
the static atomics.load() method returns a value at a given position in the array.
Atomics.notify() - JavaScript
the static atomics.notify() method notifies up some agents that are sleeping in the wait queue.
Atomics.or() - JavaScript
the static atomics.or() method computes a bitwise or with a given value at a given position in the array, and returns the old value at that position.
Atomics.store() - JavaScript
the static atomics.store() method stores a given value at the given position in the array and returns that value.
Atomics.sub() - JavaScript
the static atomics.sub() method substracts a given value at a given position in the array and returns the old value at that position.
Atomics.wait() - JavaScript
the static atomics.wait() method verifies that a given position in an int32array still contains a given value and if so sleeps, awaiting a wakeup or a timeout.
Atomics.xor() - JavaScript
the static atomics.xor() method computes a bitwise xor with a given value at a given position in the array, and returns the old value at that position.
BigInt.prototype.toLocaleString() - JavaScript
the tolocalestring() method returns a string with a language-sensitive representation of this bigint.
BigInt.prototype.valueOf() - JavaScript
the valueof() method returns the wrapped primitive value of a bigint object.
Boolean.prototype.toSource() - JavaScript
the tosource() method returns a string representing the source code of the object.
DataView - JavaScript
r the arraybuffer referenced by this view.
Date() constructor - JavaScript
an integer value representing the number of milliseconds since january 1, 1970, 00:00:00 utc (the ecmascript epoch, equivalent to the unix epoch), with leap seconds ignored.
Date.prototype.getDate() - JavaScript
the getdate() method returns the day of the month for the specified date according to local time.
Date.prototype.getHours() - JavaScript
the gethours() method returns the hour for the specified date, according to local time.
Date.prototype.getMilliseconds() - JavaScript
the getmilliseconds() method returns the milliseconds in the specified date according to local time.
Date.prototype.getMinutes() - JavaScript
the getminutes() method returns the minutes in the specified date according to local time.
Date.prototype.getSeconds() - JavaScript
the getseconds() method returns the seconds in the specified date according to local time.
Date.prototype.getTimezoneOffset() - JavaScript
the gettimezoneoffset() method returns the time zone difference, in minutes, from current locale (host system settings) to utc.
Date.prototype.getUTCDate() - JavaScript
the getutcdate() method returns the day (date) of the month in the specified date according to universal time.
Date.prototype.getUTCDay() - JavaScript
the getutcday() method returns the day of the week in the specified date according to universal time, where 0 represents sunday.
Date.prototype.getUTCFullYear() - JavaScript
the getutcfullyear() method returns the year in the specified date according to universal time.
Date.prototype.getUTCHours() - JavaScript
the getutchours() method returns the hours in the specified date according to universal time.
Date.prototype.getUTCMinutes() - JavaScript
the getutcminutes() method returns the minutes in the specified date according to universal time.
Date.prototype.getUTCSeconds() - JavaScript
the getutcseconds() method returns the seconds in the specified date according to universal time.
Date.prototype.setDate() - JavaScript
the setdate() method sets the day of the date object relative to the beginning of the currently set month.
Date.prototype.setMilliseconds() - JavaScript
the setmilliseconds() method sets the milliseconds for a specified date according to local time.
Date.prototype.setUTCDate() - JavaScript
the setutcdate() method sets the day of the month for a specified date according to universal time.
Date.prototype.setUTCMilliseconds() - JavaScript
the setutcmilliseconds() method sets the milliseconds for a specified date according to universal time.
Date.prototype.toLocaleDateString() - JavaScript
the tolocaledatestring() method returns a string with a language sensitive representation of the date portion of this date.
Date.prototype.toLocaleString() - JavaScript
the tolocalestring() method returns a string with a language sensitive representation of this date.
Date.prototype.toLocaleTimeString() - JavaScript
the tolocaletimestring() method returns a string with a language sensitive representation of the time portion of this date.
Date.prototype.toSource() - JavaScript
the tosource() method returns a string representing the source code of the object.
Date.prototype.toUTCString() - JavaScript
the toutcstring() method converts a date to a string, using the utc time zone.
Error.prototype.message - JavaScript
the message property is a human-readable description of the error.
Error.prototype.name - JavaScript
the name property represents a name for the type of error.
Generator - JavaScript
the generator object is returned by a generator function and it conforms to both the iterable protocol and the iterator protocol.
Intl.Collator.prototype.compare() - JavaScript
the intl.collator.prototype.compare() method compares two strings according to the sort order of this collator object.
Intl.Collator.supportedLocalesOf() - JavaScript
the intl.collator.supportedlocalesof() method returns an array containing those of the provided locales that are supported in collation without having to fall back to the runtime's default locale.
Intl.DateTimeFormat.prototype.format() - JavaScript
the intl.datetimeformat.prototype.format() method formats a date according to the locale and formatting options of this intl.datetimeformat object.
Intl.DateTimeFormat.prototype.formatRange() - JavaScript
ions provided when instantiating intl.datetimeformat object.
Intl.DateTimeFormat.supportedLocalesOf() - JavaScript
the intl.datetimeformat.supportedlocalesof() method returns an array containing those of the provided locales that are supported in date and time formatting without having to fall back to the runtime's default locale.
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.
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.
Intl​.List​Format​.prototype​.formatToParts() - JavaScript
the intl.listformat.prototype.formattoparts() method returns an array of objects representing the different components that can be used to format a list of values in a locale-aware fashion.
Intl​.List​Format​.prototype​.resolvedOptions() - JavaScript
the intl.listformat.prototype.resolvedoptions() method returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current listformat object.
Intl.ListFormat.supportedLocalesOf() - JavaScript
the intl.listformat.supportedlocalesof() method returns an array containing those of the provided locales that are supported in date and time formatting without having to fall back to the runtime's default locale.
Intl.Locale - JavaScript
stem returns the numeral system used by the locale.
Intl.NumberFormat.prototype.format() - JavaScript
the intl.numberformat.prototype.format() method formats a number according to the locale and formatting options of this numberformat object.
Intl.NumberFormat.supportedLocalesOf() - JavaScript
the intl.numberformat.supportedlocalesof() method returns an array containing those of the provided locales that are supported in number formatting without having to fall back to the runtime's default locale.
Intl.PluralRules.select() - JavaScript
the intl.pluralrules.prototype.select method returns a string indicating which plural rule to use for locale-aware formatting.
Intl.PluralRules.supportedLocalesOf() - JavaScript
the intl.pluralrules.supportedlocalesof() method returns an array containing those of the provided locales that are supported in plural formatting without having to fall back to the runtime's default locale.
Intl.RelativeTimeFormat.prototype.format() - JavaScript
the intl.relativetimeformat.prototype.format() method formats a value and unit according to the locale and formatting options of this relativetimeformat object.
Intl.RelativeTimeFormat.supportedLocalesOf() - JavaScript
the intl.relativetimeformat.supportedlocalesof() method returns an array containing those of the provided locales that are supported in date and time formatting without having to fall back to the runtime's default locale.
Intl.getCanonicalLocales() - JavaScript
the intl.getcanonicallocales() method returns an array containing the canonical locale names.
Map.prototype[@@iterator]() - JavaScript
the initial value of the @@iterator property is the same function object as the initial value of the entries method.
get Map[@@species] - JavaScript
nary objects the species property returns the default constructor function, which is the map constructor for map objects: map[symbol.species]; // function map() species in derived objects in a derived collection object (e.g.
Map.prototype.clear() - JavaScript
the clear() method removes all elements from a map object.
Map.prototype.delete() - JavaScript
the delete() method removes the specified element from a map object by key.
Map.prototype.entries() - JavaScript
the entries() method returns a new iterator object that contains the [key, value] pairs for each element in the map object in insertion order.
Map.prototype.get() - JavaScript
the get() method returns a specified element from a map object.
Map.prototype.has() - JavaScript
the has() method returns a boolean indicating whether an element with the specified key exists or not.
Map.prototype.keys() - JavaScript
the keys() method returns a new iterator object that contains the keys for each element in the map object in insertion order.
Map.prototype.values() - JavaScript
the values() method returns a new iterator object that contains the values for each element in the map object in insertion order.
Math.random() - JavaScript
range — which you can then scale to your desired range.
Math.random() - JavaScript
range — which you can then scale to your desired range.
NaN - JavaScript
true valueisnan(number.nan); // true however, do note the difference between isnan() and number.isnan(): the former will return true if the value is currently nan, or if it is going to be nan after it is coerced to a number, while the latter will return true only if the value is currently nan: isnan('hello world'); // true number.isnan('hello world'); // false additionally, some array methods cannot find nan, while others can.
Number.isNaN() - JavaScript
the number.isnan() method determines whether the passed value is nan and its type is number.
Number.isSafeInteger() - JavaScript
the number.issafeinteger() method determines whether the provided value is a number that is a safe integer.
Number.prototype.toLocaleString() - JavaScript
the tolocalestring() method returns a string with a language-sensitive representation of this number.
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.defineProperties() - JavaScript
the object.defineproperties() method defines new or modifies existing properties directly on an object, returning the object.
Object.entries() - JavaScript
the object.entries() method returns an array of a given object's own enumerable string-keyed property [key, value] pairs, in the same order as that provided by a for...in loop.
Object.getOwnPropertySymbols() - JavaScript
the object.getownpropertysymbols() method returns an array of all symbol properties found directly upon a given object.
Object.getPrototypeOf() - JavaScript
the object.getprototypeof() method returns the prototype (i.e.
Object.is() - JavaScript
the object.is() method determines whether two values are the same value.
Object.isFrozen() - JavaScript
f object.freeze has been called on it.
Object.values() - JavaScript
the object.values() method returns an array of a given object's own enumerable property values, in the same order as that provided by a for...in loop.
Promise.allSettled() - JavaScript
the promise.allsettled() method returns a promise that resolves after all of the given promises have either fulfilled or rejected, with an array of objects that each describes the outcome of each promise.
Promise.race() - JavaScript
the promise.race() method returns a promise that fulfills or rejects as soon as one of the promises in an iterable fulfills or rejects, with the value or reason from that promise.
Proxy.revocable() - JavaScript
the proxy.revocable() method is used to create a revocable proxy object.
Proxy - JavaScript
message1: "hello", message2: "everyone" }; const handler3 = { get: function (target, prop, receiver) { if (prop === "message2") { return "world"; } return reflect.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.
RangeError - JavaScript
iption a rangeerror is thrown when trying to pass a value as an argument to a function that does not allow a range that includes the value.
Reflect.construct() - JavaScript
the static reflect.construct() method acts like the new operator, but as a function.
get RegExp[@@species] - JavaScript
roperty returns the default constructor function, which is the regexp constructor for regexp objects: regexp[symbol.species]; // function regexp() species in derived objects in a derived collection object (e.g.
get Set[@@species] - JavaScript
nary objects the species property returns the default constructor function, which is the set constructor for set objects: set[symbol.species]; // function set() species in derived objects in a derived collection object (e.g.
Set.prototype.entries() - JavaScript
the entries() method returns a new iterator object that contains an array of [value, value] for each element in the set object, in insertion order.
Planned changes to shared memory - JavaScript
bject can be shared between workers via postmessage(), just like sharedarraybuffer, and the backing buffer of the memory object is a sharedarraybuffer.
SharedArrayBuffer - JavaScript
/ typeerror: calling a builtin sharedarraybuffer constructor // without new is forbidden var sab = new sharedarraybuffer(1024); constructor sharedarraybuffer() creates a new sharedarraybuffer object.
String.prototype[@@iterator]() - JavaScript
the [@@iterator]() method returns a new iterator object that iterates over the code points of a string value, returning each code point as a string value.
String.prototype.charAt() - JavaScript
the string object's charat() method returns a new string consisting of the single utf-16 code unit located at the specified offset into the string.
String.prototype.codePointAt() - JavaScript
the codepointat() method returns a non-negative integer that is the unicode code point value.
String.prototype.localeCompare() - JavaScript
the localecompare() method returns a number indicating whether a reference string comes before, or after, or is the same as the given string in sort order.
String.prototype.matchAll() - JavaScript
the matchall() method returns an iterator of all results matching a string against a regular expression, including capturing groups.
String.prototype.padEnd() - JavaScript
the padend() method pads the current string with a given string (repeated, if needed) so that the resulting string reaches a given length.
String.prototype.padStart() - JavaScript
the padstart() method pads the current string with another string (multiple times, if needed) until the resulting string reaches the given length.
String.raw() - JavaScript
the static string.raw() method is a tag function of template literals.
String.prototype.slice() - JavaScript
the slice() method extracts a section of a string and returns it as a new string, without modifying the original string.
Symbol.asyncIterator - JavaScript
async iterable and can be used in a for await...of loop.
Symbol.for() - JavaScript
the symbol.for(key) method searches for existing symbols in a runtime-wide symbol registry with the given key and returns it if found.
Symbol.isConcatSpreadable - JavaScript
the symbol.isconcatspreadable well-known symbol is used to configure if an object should be flattened to its array elements when using the array.prototype.concat() method.
Symbol.keyFor() - JavaScript
the symbol.keyfor(sym) method retrieves a shared symbol key from the global symbol registry for the given symbol.
Symbol.toStringTag - JavaScript
the symbol.tostringtag well-known symbol is a string valued property that is used in the creation of the default string description of an object.
get TypedArray[@@species] - JavaScript
int8array() uint8array[symbol.species]; // function uint8array() float32array[symbol.species]; // function float32array() species in derived objects in a derived collection object (e.g.
TypedArray.prototype.entries() - JavaScript
the entries() method returns a new array iterator object that contains the key/value pairs for each index in the array.
TypedArray.prototype.keys() - JavaScript
the keys() method returns a new array iterator object that contains the keys for each index in the array.
TypedArray.prototype.set() - JavaScript
the set() method stores multiple values in the typed array, reading input values from a specified array.
TypedArray.prototype.values() - JavaScript
the values() method returns a new array iterator object that contains the values for each index in the array.
WeakRef.prototype.deref() - JavaScript
the deref method returns the weakref instance's target object, or undefined if the target object has been garbage-collected.
WeakSet.prototype.add() - JavaScript
the add() method appends a new object to the end of a weakset object.
WeakSet - JavaScript
is created on the first run, and passed along with every subsequent function call (using the internal _refs parameter).
WebAssembly.CompileError - JavaScript
prototype.filename path to file that raised this error.
WebAssembly.Instance() constructor - JavaScript
the webassembly.instance() constructor creates a new instance object which is a stateful, executable instance of a webassembly.module.
WebAssembly.LinkError - JavaScript
inkerror.prototype.filename path to file that raised this error.
WebAssembly.Memory() constructor - JavaScript
s (6.4mib).
WebAssembly.Memory.prototype.buffer - JavaScript
the buffer prototype property of the webassembly.memory object returns the buffer contained in the memory.
WebAssembly.Memory.prototype.grow() - JavaScript
the grow() protoype method of the memory object increases the size of the memory instance by a specified number of webassembly pages.
WebAssembly.Module() constructor - JavaScript
o synchronously compile given webassembly binary code.
WebAssembly.RuntimeError - JavaScript
prototype.filename path to file that raised this error.
WebAssembly.Table() constructor - JavaScript
lements are null.
WebAssembly.Table.prototype.grow() - JavaScript
the grow() prototype method of the webassembly.table object increases the size of the table instance by a specified number of elements.
WebAssembly.Table.prototype.set() - JavaScript
the set() prototype method of the webassembly.table object mutates a reference stored at a given index to a different value.
WebAssembly.validate() - JavaScript
nary code to be validated.
WebAssembly - JavaScript
webassembly.module() contains stateless webassembly code that has already been compiled by the browser and can be efficiently shared with workers, and instantiated multiple times.
isFinite() - JavaScript
return value false if the argument is positive or negative infinity or nan or undefined; otherwise, true.
undefined - JavaScript
f the global object.
Destructuring assignment - JavaScript
console.log(a); // 1 console.log(b); // [2, 3] be aware that a syntaxerror will be thrown if a trailing comma is used on the left-hand side with a rest element: const [a, ...b,] = [1, 2, 3]; // syntaxerror: rest element may not have a trailing comma // always consider using rest operator as the last element unpacking values from a regular expression match when the regular expression exec() method finds a match, it returns an array containing first the entire matched portion of the string and then the portions of the string that matched each parenthesized group in the regular expression.
Equality (==) - JavaScript
them to the same type before comparing: when comparing a number to a string, try to convert the string to a numeric value.
class expression - JavaScript
ss expression is executed in strict mode.
Expressions and operators - JavaScript
ssion.
class - JavaScript
e-examples and send us a pull request.
function declaration - JavaScript
ram[, param,[..., param]]]) { [statements] } name the function name.
with - JavaScript
,2,3].values.
Template literals (Template strings) - JavaScript
l raw property, available on the first argument to the tag function, allows you to access the raw strings as they were entered, without processing escape sequences.
Trailing commas - JavaScript
trailing commas in functions ecmascript 2017 allows trailing commas in function parameter lists.
JavaScript reference - JavaScript
this part of the javascript section on mdn serves as a repository of facts about the javascript language.
JavaScript
ies covering some of today's most popular ones.
Lazy loading - Web Performance
nteractions such as scrolling and navigation.
Add to Home screen - Progressive web apps (PWAs)
tore the event object in the deferredprompt variable so it can be used later on to perform the actual installation.
Progressive web app structure - Progressive web apps (PWAs)
quick because of the ssr, and the navigation between pages is smooth because the client can re-render the page with only the parts that have changed.
The building blocks of responsive design - Progressive web apps (PWAs)
low resolutions are in danger of appearing tiny when displayed on a high resolution screen, so devices often apply a default zoom factor to rendered pages to avoid this.
Structural overview of progressive web apps - Progressive web apps (PWAs)
is quick because of the ssr, and the navigation between pages is smooth because the client can re-render the page with only the parts that have changed.
begin - SVG: Scalable Vector Graphics
Web › SVG › Attribute › begin
nal offset value as defined in <offset-value> can be appended.
end - SVG: Scalable Vector Graphics
Web › SVG › Attribute › end
e as defined in <offset-value> can be appended.
preserveAspectRatio - SVG: Scalable Vector Graphics
ke-linejoin: round; pointer-events: none; } rect:hover, rect:active { outline: 1px solid red; } syntax preserveaspectratio="<align> [<meetorslice>]" its value is made of one or two keywords: a required alignment value and an optional "meet or slice" reference as described below: alignment value the alignment value indicates whether to force uniform scaling and, if so, the alignment method to use in case the aspect ratio of the viewbox doesn't match the aspect ratio of the viewport.
<feSpecularLighting> - SVG: Scalable Vector Graphics
position and surface geometry of the input bump map.
<linearGradient> - SVG: Scalable Vector Graphics
objectboundingbox; animatable: yes gradienttransform this attribute provides additional transformation to the gradient coordinate system.
<radialGradient> - SVG: Scalable Vector Graphics
ribute defines a reference to another <lineargradient> element that will be used as a template.
SVG In HTML Introduction - SVG: Scalable Vector Graphics
s compatible to browsers that do not support svg; simply, no background appears in them it's very simple and performs very well the picture dynamically sizes itself to the required size in an intelligent way we can have declarative style rules applying to both html and svg the same script manipulates both html and svg the document is entirely standards-based to add a linked image with dom methods to an embedded svg element, one has to use setattributens to set href.
SVG fonts - SVG: Scalable Vector Graphics
<hkern u1="a" u2="v" k="20" /> referencing a font when you have put together your font declaration as described above, you can just use a simple font-family attribute to actually apply the font to some svg text: <font> <font-face font-family="super sans" /> <!-- and so on --> </font> <text font-family="super sans">my text uses super sans</text> however, you are free to combine several methods for great freedom of how and where to define the font.
Certificate Transparency - Web security
ate a tls extension of type signed_certificate_timestamp sent during the handshake ocsp stapling (that is, the status_request tls extension) and providing a signedcertificatetimestamplist with one or more scts with the x.509 certificate extension, the included scts are decided by the issuing ca.
Securing your site - Web security
ully secure.
Using shadow DOM - Web Components
<video> element, with the default browser controls exposed.
Using templates and slots - Web Components
constructor() { super(); let template = document.getelementbyid('my-paragraph'); let templatecontent = template.content; const shadowroot = this.attachshadow({mode: 'open'}) .appendchild(templatecontent.clonenode(true)); } } ); the key point to note here is that we append a clone of the template content to the shadow root, created using the node.clonenode() method.
XML introduction - XML: Extensible Markup Language
rsion of that same document: <?xml version="1.0" encoding="utf-8"?> <message> <warning> hello world </warning> </message> a document that contains an undefined tag is invalid.
choose - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the choose function returns one of the specified objects based on a boolean parameter.
XPath
xml document.
Basic Example - XSLT: Extensible Stylesheet Language Transformations
<myns:author>mr.
Setting Parameters - XSLT: Extensible Stylesheet Language Transformations
ecoded .xsl and .xml files is quite useful, configuring the .xsl file from javascript may be even more useful.
Compiling a New C/C++ Module to WebAssembly - WebAssembly
command.
Exported WebAssembly functions - WebAssembly
ports.tbl; console.log(tbl.get(0)()); // 13 console.log(tbl.get(1)()); // 42 othertable.set(0,tbl.get(0)); othertable.set(1,tbl.get(1)); console.log(othertable.get(0)()); console.log(othertable.get(1)()); }); here we create a table (othertable) from javascript using the webassembly.table constructor, then we load table.wasm into our page using the webassembly.instantiatestreaming() method.
Compiling an Existing C Module to WebAssembly - WebAssembly
o invoke this function.